/*!
* jQuery.appear * https://github.com/bas2k/jquery.appear/ * http://code.google.com/p/jquery-appear/ * * Copyright (c) 2009 Michael Hixson * Copyright (c) 2012 Alexander Brovikov * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) */
!function(t){t.fn.appear=function(e,i){var n=t.extend({data:void 0,one:!0,accX:0,accY:0},i);return this.each(function(){var i=t(this);if(i.appeared=!1,!e)return void i.trigger("appear",n.data);var o=t(window),a=function(){if(!i.is(":visible"))return void(i.appeared=!1);var t=o.scrollLeft(),e=o.scrollTop(),a=i.offset(),r=a.left,s=a.top,l=n.accX,u=n.accY,c=i.height(),d=o.height(),p=i.width(),h=o.width();s+c+u>=e&&s<=e+d+u&&r+p+l>=t&&r<=t+h+l?i.appeared||i.trigger("appear",n.data):i.appeared=!1},r=function(){if(i.appeared=!0,n.one){o.unbind("scroll",a);var r=t.inArray(a,t.fn.appear.checks);r>=0&&t.fn.appear.checks.splice(r,1)}e.apply(this,arguments)};n.one?i.one("appear",n.data,r):i.bind("appear",n.data,r),o.scroll(a),t.fn.appear.checks.push(a),a()})},t.extend(t.fn.appear,{checks:[],timeout:null,checkAll:function(){var e=t.fn.appear.checks.length;if(e>0)for(;e--;)t.fn.appear.checks[e]()},run:function(){t.fn.appear.timeout&&clearTimeout(t.fn.appear.timeout),t.fn.appear.timeout=setTimeout(t.fn.appear.checkAll,20)}}),t.each(["append","prepend","after","before","attr","removeAttr","addClass","removeClass","toggleClass","remove","css","show","hide"],function(e,i){var n=t.fn[i];n&&(t.fn[i]=function(){var e=n.apply(this,arguments);return t.fn.appear.run(),e})})}(jQuery),function(t){t.fn.countTo=function(e){e=t.extend({},t.fn.countTo.defaults,e||{});var i=Math.ceil(e.speed/e.refreshInterval),n=(e.to-e.from)/i;return t(this).each(function(){function o(){s+=n,r++,t(a).html(s.toFixed(e.decimals)),"function"==typeof e.onUpdate&&e.onUpdate.call(a,s),r>=i&&(clearInterval(l),s=e.to,"function"==typeof e.onComplete&&e.onComplete.call(a,s))}var a=this,r=0,s=e.from,l=setInterval(o,e.refreshInterval)})},t.fn.countTo.defaults={from:0,to:100,speed:1e3,refreshInterval:100,decimals:0,onUpdate:null,onComplete:null}}(jQuery),function(t,e){function i(t){return"object"==typeof t}function n(t){return"string"==typeof t}function o(t){return"number"==typeof t}function a(t){return t===e}function r(){N=google.maps,R||(R={verbose:!1,queryLimit:{attempt:5,delay:250,random:250},classes:function(){var e={};return t.each("Map Marker InfoWindow Circle Rectangle OverlayView StreetViewPanorama KmlLayer TrafficLayer BicyclingLayer GroundOverlay StyledMapType ImageMapType".split(" "),function(t,i){e[i]=N[i]}),e}(),map:{mapTypeId:N.MapTypeId.ROADMAP,center:[46.578498,2.457275],zoom:2},overlay:{pane:"floatPane",content:"",offset:{x:0,y:0}},geoloc:{getCurrentPosition:{maximumAge:6e4,timeout:5e3}}})}function s(t,e){return a(t)?"gmap3_"+(e?j+1:++j):t}function l(t){var e,i=N.version.split(".");for(t=t.split("."),e=0;e<i.length;e++)i[e]=parseInt(i[e],10);for(e=0;e<t.length;e++){if(t[e]=parseInt(t[e],10),!i.hasOwnProperty(e))return!1;if(i[e]<t[e])return!1}return!0}function u(e,i,n,o,a){function r(i,o){i&&t.each(i,function(t,i){var r=e,s=i;F(i)&&(r=i[0],s=i[1]),o(n,t,function(t){s.apply(r,[a||n,t,l])})})}var s=i.td||{},l={id:o,data:s.data,tag:s.tag};r(s.events,N.event.addListener),r(s.onces,N.event.addListenerOnce)}function c(t){var e,i=[];for(e in t)t.hasOwnProperty(e)&&i.push(e);return i}function d(t,e){var i,n=arguments;for(i=2;i<n.length;i++)if(e in n[i]&&n[i].hasOwnProperty(e))return void(t[e]=n[i][e])}function p(e,i){var n,o,a=["data","tag","id","events","onces"],r={};if(e.td)for(n in e.td)e.td.hasOwnProperty(n)&&"options"!==n&&"values"!==n&&(r[n]=e.td[n]);for(o=0;o<a.length;o++)d(r,a[o],i,e.td);return r.options=t.extend({},e.opts||{},i.options||{}),r}function h(){if(R.verbose){var t,e=[];if(window.console&&W(console.error)){for(t=0;t<arguments.length;t++)e.push(arguments[t]);console.error.apply(console,e)}else{for(e="",t=0;t<arguments.length;t++)e+=arguments[t].toString()+" ";alert(e)}}}function f(t){return(o(t)||n(t))&&""!==t&&!isNaN(t)}function m(t){var e,n=[];if(!a(t))if(i(t))if(o(t.length))n=t;else for(e in t)n.push(t[e]);else n.push(t);return n}function g(e){if(e)return W(e)?e:(e=m(e),function(n){var o;if(a(n))return!1;if(i(n)){for(o=0;o<n.length;o++)if(t.inArray(n[o],e)>=0)return!0;return!1}return t.inArray(n,e)>=0})}function v(t,e,i){var o=e?t:null;return!t||n(t)?o:t.latLng?v(t.latLng):t instanceof N.LatLng?t:f(t.lat)?new N.LatLng(t.lat,t.lng):!i&&F(t)&&f(t[0])&&f(t[1])?new N.LatLng(t[0],t[1]):o}function y(t){var e,i;return!t||t instanceof N.LatLngBounds?t||null:(F(t)?2===t.length?(e=v(t[0]),i=v(t[1])):4===t.length&&(e=v([t[0],t[1]]),i=v([t[2],t[3]])):"ne"in t&&"sw"in t?(e=v(t.ne),i=v(t.sw)):"n"in t&&"e"in t&&"s"in t&&"w"in t&&(e=v([t.n,t.e]),i=v([t.s,t.w])),e&&i?new N.LatLngBounds(i,e):null)}function w(t,e,i,o,a){var r=!!i&&v(o.td,!1,!0),s=r?{latLng:r}:!!o.td.address&&(n(o.td.address)?{address:o.td.address}:o.td.address),l=!!s&&H.get(s),u=this;s?(a=a||0,l?(o.latLng=l.results[0].geometry.location,o.results=l.results,o.status=l.status,e.apply(t,[o])):(s.location&&(s.location=v(s.location)),s.bounds&&(s.bounds=y(s.bounds)),C().geocode(s,function(n,r){r===N.GeocoderStatus.OK?(H.store(s,{results:n,status:r}),o.latLng=n[0].geometry.location,o.results=n,o.status=r,e.apply(t,[o])):r===N.GeocoderStatus.OVER_QUERY_LIMIT&&a<R.queryLimit.attempt?setTimeout(function(){w.apply(u,[t,e,i,o,a+1])},R.queryLimit.delay+Math.floor(Math.random()*R.queryLimit.random)):(h("geocode failed",r,s),o.latLng=o.results=!1,o.status=r,e.apply(t,[o]))}))):(o.latLng=v(o.td,!1,!0),e.apply(t,[o]))}function b(e,i,n,o){function a(){do s++;while(s<e.length&&!("address"in e[s]));return s>=e.length?void n.apply(i,[o]):void w(r,function(i){delete i.td,t.extend(e[s],i),a.apply(r,[])},!0,{td:e[s]})}var r=this,s=-1;a()}function x(t,e,i){var n=!1;navigator&&navigator.geolocation?navigator.geolocation.getCurrentPosition(function(o){n||(n=!0,i.latLng=new N.LatLng(o.coords.latitude,o.coords.longitude),e.apply(t,[i]))},function(){n||(n=!0,i.latLng=!1,e.apply(t,[i]))},i.opts.getCurrentPosition):(i.latLng=!1,e.apply(t,[i]))}function I(t){var e,n=!1;if(i(t)&&t.hasOwnProperty("get")){for(e in t)if("get"!==e)return!1;n=!t.get.hasOwnProperty("callback")}return n}function C(){return B.geocoder||(B.geocoder=new N.Geocoder),B.geocoder}function T(){var t=[];this.get=function(e){if(t.length){var n,o,a,r,s,l=c(e);for(n=0;n<t.length;n++){for(r=t[n],s=l.length===r.keys.length,o=0;o<l.length&&s;o++)a=l[o],s=a in r.request,s&&(s=i(e[a])&&"equals"in e[a]&&W(e[a])?e[a].equals(r.request[a]):e[a]===r.request[a]);if(s)return r.results}}},this.store=function(e,i){t.push({request:e,keys:c(e),results:i})}}function _(){var t=[],e=this;e.empty=function(){return!t.length},e.add=function(e){t.push(e)},e.get=function(){return!!t.length&&t[0]},e.ack=function(){t.shift()}}function S(){function e(t){return{id:t.id,name:t.name,object:t.obj,tag:t.tag,data:t.data}}function i(t){W(t.setMap)&&t.setMap(null),W(t.remove)&&t.remove(),W(t.free)&&t.free(),t=null}var n={},o={},r=this;r.add=function(t,e,i,a){var l=t.td||{},u=s(l.id);return n[e]||(n[e]=[]),u in o&&r.clearById(u),o[u]={obj:i,sub:a,name:e,id:u,tag:l.tag,data:l.data},n[e].push(u),u},r.getById=function(t,i,n){var a=!1;return t in o&&(a=i?o[t].sub:n?e(o[t]):o[t].obj),a},r.get=function(t,i,a,r){var s,l,u=g(a);if(!n[t]||!n[t].length)return null;for(s=n[t].length;s;)if(s--,l=n[t][i?s:n[t].length-s-1],l&&o[l]){if(u&&!u(o[l].tag))continue;return r?e(o[l]):o[l].obj}return null},r.all=function(t,i,r){var s=[],l=g(i),u=function(t){var i,a;for(i=0;i<n[t].length;i++)if(a=n[t][i],a&&o[a]){if(l&&!l(o[a].tag))continue;s.push(r?e(o[a]):o[a].obj)}};if(t in n)u(t);else if(a(t))for(t in n)u(t);return s},r.rm=function(t,e,i){var a,s;if(!n[t])return!1;if(e)if(i)for(a=n[t].length-1;a>=0&&(s=n[t][a],!e(o[s].tag));a--);else for(a=0;a<n[t].length&&(s=n[t][a],!e(o[s].tag));a++);else a=i?n[t].length-1:0;return a in n[t]&&r.clearById(n[t][a],a)},r.clearById=function(t,e){if(t in o){var r,s=o[t].name;for(r=0;a(e)&&r<n[s].length;r++)t===n[s][r]&&(e=r);return i(o[t].obj),o[t].sub&&i(o[t].sub),delete o[t],n[s].splice(e,1),!0}return!1},r.objGetById=function(t){var e,i;if(n.clusterer)for(i in n.clusterer)if((e=o[n.clusterer[i]].obj.getById(t))!==!1)return e;return!1},r.objClearById=function(t){var e;if(n.clusterer)for(e in n.clusterer)if(o[n.clusterer[e]].obj.clearById(t))return!0;return null},r.clear=function(t,e,i,o){var a,s,l,u=g(o);if(t&&t.length)t=m(t);else{t=[];for(a in n)t.push(a)}for(s=0;s<t.length;s++)if(l=t[s],e)r.rm(l,u,!0);else if(i)r.rm(l,u,!1);else for(;r.rm(l,u,!1););},r.objClear=function(e,i,a,r){var s;if(n.clusterer&&(t.inArray("marker",e)>=0||!e.length))for(s in n.clusterer)o[n.clusterer[s]].obj.clear(i,a,r)}}function E(e,i,o){function a(t){var e={};return e[t]={},e}function r(){var t;for(t in o)if(o.hasOwnProperty(t)&&!l.hasOwnProperty(t))return t}var s,l={},u=this,c={latLng:{map:!1,marker:!1,infowindow:!1,circle:!1,overlay:!1,getlatlng:!1,getmaxzoom:!1,getelevation:!1,streetviewpanorama:!1,getaddress:!0},geoloc:{getgeoloc:!0}};n(o)&&(o=a(o)),u.run=function(){for(var n,a;n=r();){if(W(e[n]))return s=n,a=t.extend(!0,{},R[n]||{},o[n].options||{}),void(n in c.latLng?o[n].values?b(o[n].values,e,e[n],{td:o[n],opts:a,session:l}):w(e,e[n],c.latLng[n],{td:o[n],opts:a,session:l}):n in c.geoloc?x(e,e[n],{td:o[n],opts:a,session:l}):e[n].apply(e,[{td:o[n],opts:a,session:l}]));l[n]=null}i.apply(e,[o,l])},u.ack=function(t){l[s]=t,u.run.apply(u,[])}}function k(){return B.ds||(B.ds=new N.DirectionsService),B.ds}function P(){return B.dms||(B.dms=new N.DistanceMatrixService),B.dms}function A(){return B.mzs||(B.mzs=new N.MaxZoomService),B.mzs}function L(){return B.es||(B.es=new N.ElevationService),B.es}function M(t,e){function i(){var t=this;return t.onAdd=function(){},t.onRemove=function(){},t.draw=function(){},R.classes.OverlayView.apply(t,[])}i.prototype=R.classes.OverlayView.prototype;var n=new i;return n.setMap(t),n}function z(e,n,o){function a(t){z[t]||(delete D[t].options.map,z[t]=new R.classes.Marker(D[t].options),u(e,{td:D[t]},z[t],D[t].id))}function r(){return(y=$.getProjection())?(_=!0,k.push(N.event.addListener(n,"zoom_changed",h)),k.push(N.event.addListener(n,"bounds_changed",h)),void m()):void setTimeout(function(){r.apply(E,[])},25)}function l(t){i(P[t])?(W(P[t].obj.setMap)&&P[t].obj.setMap(null),W(P[t].obj.remove)&&P[t].obj.remove(),W(P[t].shadow.remove)&&P[t].obj.remove(),W(P[t].shadow.setMap)&&P[t].shadow.setMap(null),delete P[t].obj,delete P[t].shadow):z[t]&&z[t].setMap(null),delete P[t]}function c(){var t,e,i,n,o,a,r,s,l=Math.cos,u=Math.sin,c=arguments;return c[0]instanceof N.LatLng?(t=c[0].lat(),i=c[0].lng(),c[1]instanceof N.LatLng?(e=c[1].lat(),n=c[1].lng()):(e=c[1],n=c[2])):(t=c[0],i=c[1],c[2]instanceof N.LatLng?(e=c[2].lat(),n=c[2].lng()):(e=c[2],n=c[3])),o=Math.PI*t/180,a=Math.PI*i/180,r=Math.PI*e/180,s=Math.PI*n/180,6371e3*Math.acos(Math.min(l(o)*l(r)*l(a)*l(s)+l(o)*u(a)*l(r)*u(s)+u(o)*u(r),1))}function d(){var t=c(n.getCenter(),n.getBounds().getNorthEast()),e=new N.Circle({center:n.getCenter(),radius:1.25*t});return e.getBounds()}function p(){var t,e={};for(t in P)e[t]=!0;return e}function h(){clearTimeout(v),v=setTimeout(m,25)}function f(t){var e=y.fromLatLngToDivPixel(t),i=y.fromDivPixelToLatLng(new N.Point(e.x+o.radius,e.y-o.radius)),n=y.fromDivPixelToLatLng(new N.Point(e.x-o.radius,e.y+o.radius));return new N.LatLngBounds(n,i)}function m(){if(!I&&!T&&_){var e,i,a,r,s,u,c,h,m,g,v,y=!1,x=[],E={},k=n.getZoom(),A="maxZoom"in o&&k>o.maxZoom,L=p();for(C=!1,k>3&&(s=d(),y=s.getSouthWest().lng()<s.getNorthEast().lng()),e=0;e<D.length;e++)!D[e]||y&&!s.contains(D[e].options.position)||w&&!w(O[e])||x.push(e);for(;;){for(e=0;E[e]&&e<x.length;)e++;if(e===x.length)break;if(r=[],S&&!A){v=10;do for(h=r,r=[],v--,c=h.length?s.getCenter():D[x[e]].options.position,s=f(c),i=e;i<x.length;i++)E[i]||s.contains(D[x[i]].options.position)&&r.push(i);while(h.length<r.length&&r.length>1&&v)}else for(i=e;i<x.length;i++)if(!E[i]){r.push(i);break}for(u={indexes:[],ref:[]},m=g=0,a=0;a<r.length;a++)E[r[a]]=!0,u.indexes.push(x[r[a]]),u.ref.push(x[r[a]]),m+=D[x[r[a]]].options.position.lat(),g+=D[x[r[a]]].options.position.lng();m/=r.length,g/=r.length,u.latLng=new N.LatLng(m,g),u.ref=u.ref.join("-"),u.ref in L?delete L[u.ref]:(1===r.length&&(P[u.ref]=!0),b(u))}t.each(L,function(t){l(t)}),T=!1}}var v,y,w,b,x,I=!1,C=!1,T=!1,_=!1,S=!0,E=this,k=[],P={},A={},L={},z=[],D=[],O=[],$=M(n,o.radius);r(),E.getById=function(t){return t in A&&(a(A[t]),z[A[t]])},E.rm=function(t){var e=A[t];z[e]&&z[e].setMap(null),delete z[e],z[e]=!1,delete D[e],D[e]=!1,delete O[e],O[e]=!1,delete A[t],delete L[e],C=!0},E.clearById=function(t){if(t in A)return E.rm(t),!0},E.clear=function(t,e,i){var n,o,a,r,s,l=[],u=g(i);for(t?(n=D.length-1,o=-1,a=-1):(n=0,o=D.length,a=1),r=n;r!==o&&(!D[r]||u&&!u(D[r].tag)||(l.push(L[r]),!e&&!t));r+=a);for(s=0;s<l.length;s++)E.rm(l[s])},E.add=function(t,e){t.id=s(t.id),E.clearById(t.id),A[t.id]=z.length,L[z.length]=t.id,z.push(null),D.push(t),O.push(e),C=!0},E.addMarker=function(t,i){i=i||{},i.id=s(i.id),E.clearById(i.id),i.options||(i.options={}),i.options.position=t.getPosition(),u(e,{td:i},t,i.id),A[i.id]=z.length,L[z.length]=i.id,z.push(t),D.push(i),O.push(i.data||{}),C=!0},E.td=function(t){return D[t]},E.value=function(t){return O[t]},E.marker=function(t){return t in z&&(a(t),z[t])},E.markerIsSet=function(t){return Boolean(z[t])},E.setMarker=function(t,e){z[t]=e},E.store=function(t,e,i){P[t.ref]={obj:e,shadow:i}},E.free=function(){var e;for(e=0;e<k.length;e++)N.event.removeListener(k[e]);k=[],t.each(P,function(t){l(t)}),P={},t.each(D,function(t){D[t]=null}),D=[],t.each(z,function(t){z[t]&&(z[t].setMap(null),delete z[t])}),z=[],t.each(O,function(t){delete O[t]}),O=[],A={},L={}},E.filter=function(t){w=t,m()},E.enable=function(t){S!==t&&(S=t,m())},E.display=function(t){b=t},E.error=function(t){x=t},E.beginUpdate=function(){I=!0},E.endUpdate=function(){I=!1,C&&m()},E.autofit=function(t){var e;for(e=0;e<D.length;e++)D[e]&&t.extend(D[e].options.position)}}function D(t,e){var i=this;i.id=function(){return t},i.filter=function(t){e.filter(t)},i.enable=function(){e.enable(!0)},i.disable=function(){e.enable(!1)},i.add=function(t,i,n){n||e.beginUpdate(),e.addMarker(t,i),n||e.endUpdate()},i.getById=function(t){return e.getById(t)},i.clearById=function(t,i){var n;return i||e.beginUpdate(),n=e.clearById(t),i||e.endUpdate(),n},i.clear=function(t,i,n,o){o||e.beginUpdate(),e.clear(t,i,n),o||e.endUpdate()}}function O(e,i,n,o){var a=this,r=[];R.classes.OverlayView.call(a),a.setMap(e),a.onAdd=function(){var e=a.getPanes();i.pane in e&&t(e[i.pane]).append(o),t.each("dblclick click mouseover mousemove mouseout mouseup mousedown".split(" "),function(e,i){r.push(N.event.addDomListener(o[0],i,function(e){t.Event(e).stopPropagation(),N.event.trigger(a,i,[e]),a.draw()}))}),r.push(N.event.addDomListener(o[0],"contextmenu",function(e){t.Event(e).stopPropagation(),N.event.trigger(a,"rightclick",[e]),a.draw()}))},a.getPosition=function(){return n},a.setPosition=function(t){n=t,a.draw()},a.draw=function(){var t=a.getProjection().fromLatLngToDivPixel(n);o.css("left",t.x+i.offset.x+"px").css("top",t.y+i.offset.y+"px")},a.onRemove=function(){var t;for(t=0;t<r.length;t++)N.event.removeListener(r[t]);o.remove()},a.hide=function(){o.hide()},a.show=function(){o.show()},a.toggle=function(){o&&(o.is(":visible")?a.show():a.hide())},a.toggleDOM=function(){a.setMap(a.getMap()?null:e)},a.getDOMElement=function(){return o[0]}}function $(o){function r(){!x&&(x=C.get())&&x.run()}function c(){x=null,C.ack(),r.call(I)}function d(t){var e,i=t.td.callback;i&&(e=Array.prototype.slice.call(arguments,1),W(i)?i.apply(o,e):F(i)&&W(i[1])&&i[1].apply(i[0],e))}function f(t,e,i){i&&u(o,t,e,i),d(t,e),x.ack(e)}function g(e,i){i=i||{};var n=i.td&&i.td.options?i.td.options:0;M?n&&(n.center&&(n.center=v(n.center)),M.setOptions(n)):(n=i.opts||t.extend(!0,{},R.map,n||{}),n.center=e||v(n.center),M=new R.classes.Map(o.get(0),n))}function w(i){var n,a,r=new z(o,M,i),s={},l={},c=[],d=/^[0-9]+$/;for(a in i)d.test(a)?(c.push(1*a),l[a]=i[a],l[a].width=l[a].width||0,l[a].height=l[a].height||0):s[a]=i[a];return c.sort(function(t,e){return t>e}),n=s.calculator?function(e){var i=[];return t.each(e,function(t,e){i.push(r.value(e))}),s.calculator.apply(o,[i])}:function(t){return t.length},r.error(function(){h.apply(I,arguments)}),r.display(function(a){var d,p,h,f,m,g,y=n(a.indexes);if(i.force||y>1)for(d=0;d<c.length;d++)c[d]<=y&&(p=l[c[d]]);p?(m=p.offset||[-p.width/2,-p.height/2],h=t.extend({},s),h.options=t.extend({pane:"overlayLayer",content:p.content?p.content.replace("CLUSTER_COUNT",y):"",offset:{x:("x"in m?m.x:m[0])||0,y:("y"in m?m.y:m[1])||0}},s.options||{}),f=I.overlay({td:h,opts:h.options,latLng:v(a)},!0),h.options.pane="floatShadow",h.options.content=t(document.createElement("div")).width(p.width+"px").height(p.height+"px").css({cursor:"pointer"}),g=I.overlay({td:h,opts:h.options,latLng:v(a)},!0),s.data={latLng:v(a),markers:[]},t.each(a.indexes,function(t,e){s.data.markers.push(r.value(e)),r.markerIsSet(e)&&r.marker(e).setMap(null)}),u(o,{td:s},g,e,{main:f,shadow:g}),r.store(a,f,g)):t.each(a.indexes,function(t,e){r.marker(e).setMap(M)})}),r}function b(e,i,n){var a=[],r="values"in e.td;return r||(e.td.values=[{options:e.opts}]),e.td.values.length?(g(),t.each(e.td.values,function(t,r){var s,l,c,d,h=p(e,r);if(h.options[n])if(h.options[n][0][0]&&F(h.options[n][0][0]))for(l=0;l<h.options[n].length;l++)for(c=0;c<h.options[n][l].length;c++)h.options[n][l][c]=v(h.options[n][l][c]);else for(l=0;l<h.options[n].length;l++)h.options[n][l]=v(h.options[n][l]);h.options.map=M,d=new N[i](h.options),a.push(d),s=T.add({td:h},i.toLowerCase(),d),u(o,{td:h},d,s)}),void f(e,r?a:a[0])):void f(e,!1)}var x,I=this,C=new _,T=new S,M=null;I._plan=function(t){var e;for(e=0;e<t.length;e++)C.add(new E(I,c,t[e]));r()},I.map=function(t){g(t.latLng,t),u(o,t,M),f(t,M)},I.destroy=function(t){T.clear(),o.empty(),M&&(M=null),f(t,!0)},I.overlay=function(e,i){var n=[],a="values"in e.td;return a||(e.td.values=[{latLng:e.latLng,options:e.opts}]),e.td.values.length?(O.__initialised||(O.prototype=new R.classes.OverlayView,O.__initialised=!0),t.each(e.td.values,function(a,r){var s,l,c=p(e,r),d=t(document.createElement("div")).css({border:"none",borderWidth:0,position:"absolute"});d.append(c.options.content),l=new O(M,c.options,v(c)||v(r),d),n.push(l),d=null,i||(s=T.add(e,"overlay",l),u(o,{td:c},l,s))}),i?n[0]:void f(e,a?n:n[0])):void f(e,!1)},I.marker=function(e){var i,n,a,r="values"in e.td,l=!M;return r||(e.opts.position=e.latLng||v(e.opts.position),e.td.values=[{options:e.opts}]),e.td.values.length?(l&&g(),e.td.cluster&&!M.getBounds()?void N.event.addListenerOnce(M,"bounds_changed",function(){I.marker.apply(I,[e])}):void(e.td.cluster?(e.td.cluster instanceof D?(n=e.td.cluster,a=T.getById(n.id(),!0)):(a=w(e.td.cluster),n=new D(s(e.td.id,!0),a),T.add(e,"clusterer",n,a)),a.beginUpdate(),t.each(e.td.values,function(t,i){var n=p(e,i);n.options.position=v(n.options.position?n.options.position:i),n.options.position&&(n.options.map=M,l&&(M.setCenter(n.options.position),l=!1),a.add(n,i))}),a.endUpdate(),f(e,n)):(i=[],t.each(e.td.values,function(t,n){var a,r,s=p(e,n);s.options.position=v(s.options.position?s.options.position:n),s.options.position&&(s.options.map=M,l&&(M.setCenter(s.options.position),l=!1),r=new R.classes.Marker(s.options),i.push(r),a=T.add({td:s},"marker",r),u(o,{td:s},r,a))}),f(e,r?i:i[0])))):void f(e,!1)},I.getroute=function(t){t.opts.origin=v(t.opts.origin,!0),t.opts.destination=v(t.opts.destination,!0),k().route(t.opts,function(e,i){d(t,i===N.DirectionsStatus.OK&&e,i),x.ack()})},I.getdistance=function(t){var e;for(t.opts.origins=m(t.opts.origins),e=0;e<t.opts.origins.length;e++)t.opts.origins[e]=v(t.opts.origins[e],!0);for(t.opts.destinations=m(t.opts.destinations),e=0;e<t.opts.destinations.length;e++)t.opts.destinations[e]=v(t.opts.destinations[e],!0);P().getDistanceMatrix(t.opts,function(e,i){d(t,i===N.DistanceMatrixStatus.OK&&e,i),x.ack()})},I.infowindow=function(i){var n=[],r="values"in i.td;r||(i.latLng&&(i.opts.position=i.latLng),i.td.values=[{options:i.opts}]),t.each(i.td.values,function(t,s){var l,c,d=p(i,s);d.options.position=v(d.options.position?d.options.position:s.latLng),M||g(d.options.position),c=new R.classes.InfoWindow(d.options),c&&(a(d.open)||d.open)&&(r?c.open(M,d.anchor||e):c.open(M,d.anchor||(i.latLng?e:i.session.marker?i.session.marker:e))),n.push(c),l=T.add({td:d},"infowindow",c),u(o,{td:d},c,l)}),f(i,r?n:n[0])},I.circle=function(e){var i=[],n="values"in e.td;return n||(e.opts.center=e.latLng||v(e.opts.center),e.td.values=[{options:e.opts}]),e.td.values.length?(t.each(e.td.values,function(t,n){var a,r,s=p(e,n);s.options.center=v(s.options.center?s.options.center:n),M||g(s.options.center),s.options.map=M,r=new R.classes.Circle(s.options),i.push(r),a=T.add({td:s},"circle",r),u(o,{td:s},r,a)}),void f(e,n?i:i[0])):void f(e,!1)},I.getaddress=function(t){d(t,t.results,t.status),x.ack()},I.getlatlng=function(t){d(t,t.results,t.status),x.ack()},I.getmaxzoom=function(t){A().getMaxZoomAtLatLng(t.latLng,function(e){d(t,e.status===N.MaxZoomStatus.OK&&e.zoom,status),x.ack()})},I.getelevation=function(t){var e,i=[],n=function(e,i){d(t,i===N.ElevationStatus.OK&&e,i),x.ack()};if(t.latLng)i.push(t.latLng);else for(i=m(t.td.locations||[]),e=0;e<i.length;e++)i[e]=v(i[e]);if(i.length)L().getElevationForLocations({locations:i},n);else{if(t.td.path&&t.td.path.length)for(e=0;e<t.td.path.length;e++)i.push(v(t.td.path[e]));i.length?L().getElevationAlongPath({path:i,samples:t.td.samples},n):x.ack()}},I.defaults=function(e){t.each(e.td,function(e,n){i(R[e])?R[e]=t.extend({},R[e],n):R[e]=n}),x.ack(!0)},I.rectangle=function(e){var i=[],n="values"in e.td;return n||(e.td.values=[{options:e.opts}]),e.td.values.length?(t.each(e.td.values,function(t,n){var a,r,s=p(e,n);s.options.bounds=y(s.options.bounds?s.options.bounds:n),M||g(s.options.bounds.getCenter()),s.options.map=M,r=new R.classes.Rectangle(s.options),i.push(r),a=T.add({td:s},"rectangle",r),u(o,{td:s},r,a)}),void f(e,n?i:i[0])):void f(e,!1)},I.polyline=function(t){b(t,"Polyline","path")},I.polygon=function(t){b(t,"Polygon","paths")},I.trafficlayer=function(t){g();var e=T.get("trafficlayer");e||(e=new R.classes.TrafficLayer,e.setMap(M),T.add(t,"trafficlayer",e)),f(t,e)},I.bicyclinglayer=function(t){g();var e=T.get("bicyclinglayer");e||(e=new R.classes.BicyclingLayer,e.setMap(M),T.add(t,"bicyclinglayer",e)),f(t,e)},I.groundoverlay=function(t){t.opts.bounds=y(t.opts.bounds),t.opts.bounds&&g(t.opts.bounds.getCenter());var e,i=new R.classes.GroundOverlay(t.opts.url,t.opts.bounds,t.opts.opts);i.setMap(M),e=T.add(t,"groundoverlay",i),f(t,i,e)},I.streetviewpanorama=function(e){e.opts.opts||(e.opts.opts={}),e.latLng?e.opts.opts.position=e.latLng:e.opts.opts.position&&(e.opts.opts.position=v(e.opts.opts.position)),e.td.divId?e.opts.container=document.getElementById(e.td.divId):e.opts.container&&(e.opts.container=t(e.opts.container).get(0));var i,n=new R.classes.StreetViewPanorama(e.opts.container,e.opts.opts);n&&M.setStreetView(n),i=T.add(e,"streetviewpanorama",n),f(e,n,i)},I.kmllayer=function(e){var i=[],n="values"in e.td;return n||(e.td.values=[{options:e.opts}]),e.td.values.length?(t.each(e.td.values,function(t,n){var a,r,s,c=p(e,n);M||g(),s=c.options,c.options.opts&&(s=c.options.opts,c.options.url&&(s.url=c.options.url)),s.map=M,r=l("3.10")?new R.classes.KmlLayer(s):new R.classes.KmlLayer(s.url,s),i.push(r),a=T.add({td:c},"kmllayer",r),u(o,{td:c},r,a)}),void f(e,n?i:i[0])):void f(e,!1)},I.panel=function(e){g();var i,n,r=0,s=0,l=t(document.createElement("div"));l.css({position:"absolute",zIndex:1e3,visibility:"hidden"}),e.opts.content&&(n=t(e.opts.content),l.append(n),o.first().prepend(l),a(e.opts.left)?a(e.opts.right)?e.opts.center&&(r=(o.width()-n.width())/2):r=o.width()-n.width()-e.opts.right:r=e.opts.left,a(e.opts.top)?a(e.opts.bottom)?e.opts.middle&&(s=(o.height()-n.height())/2):s=o.height()-n.height()-e.opts.bottom:s=e.opts.top,l.css({top:s,left:r,visibility:"visible"})),i=T.add(e,"panel",l),f(e,l,i),l=null},I.directionsrenderer=function(e){e.opts.map=M;var i,n=new N.DirectionsRenderer(e.opts);e.td.divId?n.setPanel(document.getElementById(e.td.divId)):e.td.container&&n.setPanel(t(e.td.container).get(0)),i=T.add(e,"directionsrenderer",n),f(e,n,i)},I.getgeoloc=function(t){f(t,t.latLng)},I.styledmaptype=function(t){g();var e=new R.classes.StyledMapType(t.td.styles,t.opts);M.mapTypes.set(t.td.id,e),f(t,e)},I.imagemaptype=function(t){g();var e=new R.classes.ImageMapType(t.opts);M.mapTypes.set(t.td.id,e),f(t,e)},I.autofit=function(e){var i=new N.LatLngBounds;t.each(T.all(),function(t,e){e.getPosition?i.extend(e.getPosition()):e.getBounds?(i.extend(e.getBounds().getNorthEast()),i.extend(e.getBounds().getSouthWest())):e.getPaths?e.getPaths().forEach(function(t){t.forEach(function(t){i.extend(t)})}):e.getPath?e.getPath().forEach(function(t){i.extend(t)}):e.getCenter?i.extend(e.getCenter()):"function"==typeof D&&e instanceof D&&(e=T.getById(e.id(),!0),e&&e.autofit(i))}),i.isEmpty()||M.getBounds()&&M.getBounds().equals(i)||("maxZoom"in e.td&&N.event.addListenerOnce(M,"bounds_changed",function(){this.getZoom()>e.td.maxZoom&&this.setZoom(e.td.maxZoom)}),M.fitBounds(i)),f(e,!0)},I.clear=function(e){if(n(e.td)){if(T.clearById(e.td)||T.objClearById(e.td))return void f(e,!0);e.td={name:e.td}}e.td.id?t.each(m(e.td.id),function(t,e){T.clearById(e)||T.objClearById(e)}):(T.clear(m(e.td.name),e.td.last,e.td.first,e.td.tag),T.objClear(m(e.td.name),e.td.last,e.td.first,e.td.tag)),f(e,!0)},I.get=function(i,o,a){var r,s,l=o?i:i.td;return o||(a=l.full),n(l)?(s=T.getById(l,!1,a)||T.objGetById(l),s===!1&&(r=l,l={})):r=l.name,"map"===r&&(s=M),s||(s=[],l.id?(t.each(m(l.id),function(t,e){s.push(T.getById(e,!1,a)||T.objGetById(e))}),F(l.id)||(s=s[0])):(t.each(r?m(r):[e],function(e,i){var n;l.first?(n=T.get(i,!1,l.tag,a),n&&s.push(n)):l.all?t.each(T.all(i,l.tag,a),function(t,e){s.push(e)}):(n=T.get(i,!0,l.tag,a),n&&s.push(n))}),l.all||F(r)||(s=s[0]))),s=F(s)||!l.all?s:[s],o?s:void f(i,s)},I.exec=function(e){t.each(m(e.td.func),function(i,n){t.each(I.get(e.td,!0,!e.td.hasOwnProperty("full")||e.td.full),function(t,e){n.call(o,e)})}),f(e,!0)},I.trigger=function(e){if(n(e.td))N.event.trigger(M,e.td);else{var i=[M,e.td.eventName];e.td.var_args&&t.each(e.td.var_args,function(t,e){i.push(e)}),N.event.trigger.apply(N.event,i)}d(e),x.ack()}}var R,N,j=0,W=t.isFunction,F=t.isArray,B={},H=new T;t.fn.gmap3=function(){var e,i=[],n=!0,o=[];for(r(),e=0;e<arguments.length;e++)arguments[e]&&i.push(arguments[e]);return i.length||i.push("map"),t.each(this,function(){var e=t(this),a=e.data("gmap3");n=!1,a||(a=new $(e),e.data("gmap3",a)),1!==i.length||"get"!==i[0]&&!I(i[0])?a._plan(i):"get"===i[0]?o.push(a.get("map",!0)):o.push(a.get(i[0].get,!0,i[0].get.full))}),o.length?1===o.length?o[0]:o:this}}(jQuery),/*!
* imagesLoaded PACKAGED v3.0.2 * JavaScript is all like "You images are done yet or what?" */
/*!
* EventEmitter v4.1.0 - git.io/ee * Oliver Caldwell * MIT license * @preserve */
function(t){"use strict";function e(){}function i(t,e){if(o)return e.indexOf(t);for(var i=e.length;i--;)if(e[i]===t)return i;return-1}var n=e.prototype,o=!!Array.prototype.indexOf;n._getEvents=function(){return this._events||(this._events={})},n.getListeners=function(t){var e,i,n=this._getEvents();if("object"==typeof t){e={};for(i in n)n.hasOwnProperty(i)&&t.test(i)&&(e[i]=n[i])}else e=n[t]||(n[t]=[]);return e},n.getListenersAsObject=function(t){var e,i=this.getListeners(t);return i instanceof Array&&(e={},e[t]=i),e||i},n.addListener=function(t,e){var n,o=this.getListenersAsObject(t);for(n in o)o.hasOwnProperty(n)&&i(e,o[n])===-1&&o[n].push(e);return this},n.on=n.addListener,n.defineEvent=function(t){return this.getListeners(t),this},n.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},n.removeListener=function(t,e){var n,o,a=this.getListenersAsObject(t);for(o in a)a.hasOwnProperty(o)&&(n=i(e,a[o]),n!==-1&&a[o].splice(n,1));return this},n.off=n.removeListener,n.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},n.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},n.manipulateListeners=function(t,e,i){var n,o,a=t?this.removeListener:this.addListener,r=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(n=i.length;n--;)a.call(this,e,i[n]);else for(n in e)e.hasOwnProperty(n)&&(o=e[n])&&("function"==typeof o?a.call(this,n,o):r.call(this,n,o));return this},n.removeEvent=function(t){var e,i=typeof t,n=this._getEvents();if("string"===i)delete n[t];else if("object"===i)for(e in n)n.hasOwnProperty(e)&&t.test(e)&&delete n[e];else delete this._events;return this},n.emitEvent=function(t,e){var i,n,o,a=this.getListenersAsObject(t);for(n in a)if(a.hasOwnProperty(n))for(i=a[n].length;i--;)o=e?a[n][i].apply(null,e):a[n][i](),o===!0&&this.removeListener(t,a[n][i]);return this},n.trigger=n.emitEvent,n.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},"function"==typeof define&&define.amd?define(function(){return e}):t.EventEmitter=e}(this),/*!
* eventie v1.0.3 * event binding helper * eventie.bind( elem, 'click', myFn ) * eventie.unbind( elem, 'click', myFn ) */
function(t){"use strict";var e=document.documentElement,i=function(){};e.addEventListener?i=function(t,e,i){t.addEventListener(e,i,!1)}:e.attachEvent&&(i=function(e,i,n){e[i+n]=n.handleEvent?function(){var e=t.event;e.target=e.target||e.srcElement,n.handleEvent.call(n,e)}:function(){var i=t.event;i.target=i.target||i.srcElement,n.call(e,i)},e.attachEvent("on"+i,e[i+n])});var n=function(){};e.removeEventListener?n=function(t,e,i){t.removeEventListener(e,i,!1)}:e.detachEvent&&(n=function(t,e,i){t.detachEvent("on"+e,t[e+i]);try{delete t[e+i]}catch(n){t[e+i]=void 0}});var o={bind:i,unbind:n};"function"==typeof define&&define.amd?define(o):t.eventie=o}(this),/*!
* imagesLoaded v3.0.2 * JavaScript is all like "You images are done yet or what?" */
function(t){"use strict";function e(t,e){for(var i in e)t[i]=e[i];return t}function i(t){return"[object Array]"===l.call(t)}function n(t){var e=[];if(i(t))e=t;else if("number"==typeof t.length)for(var n=0,o=t.length;n<o;n++)e.push(t[n]);else e.push(t);return e}function o(t,i){function o(t,i,r){if(!(this instanceof o))return new o(t,i);"string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=n(t),this.options=e({},this.options),"function"==typeof i?r=i:e(this.options,i),r&&this.on("always",r),this.getImages(),a&&(this.jqDeferred=new a.Deferred);var s=this;setTimeout(function(){s.check()})}function l(t){this.img=t}o.prototype=new t,o.prototype.options={},o.prototype.getImages=function(){this.images=[];for(var t=0,e=this.elements.length;t<e;t++){var i=this.elements[t];"IMG"===i.nodeName&&this.addImage(i);for(var n=i.querySelectorAll("img"),o=0,a=n.length;o<a;o++){var r=n[o];this.addImage(r)}}},o.prototype.addImage=function(t){var e=new l(t);this.images.push(e)},o.prototype.check=function(){function t(t,o){return e.options.debug&&s&&r.log("confirm",t,o),e.progress(t),i++,i===n&&e.complete(),!0}var e=this,i=0,n=this.images.length;if(this.hasAnyBroken=!1,!n)return void this.complete();for(var o=0;o<n;o++){var a=this.images[o];a.on("confirm",t),a.check()}},o.prototype.progress=function(t){this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emit("progress",this,t),this.jqDeferred&&this.jqDeferred.notify(this,t)},o.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emit(t,this),this.emit("always",this),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},a&&(a.fn.imagesLoaded=function(t,e){var i=new o(this,t,e);return i.jqDeferred.promise(a(this))});var u={};return l.prototype=new t,l.prototype.check=function(){var t=u[this.img.src];if(t)return void this.useCached(t);if(u[this.img.src]=this,this.img.complete&&void 0!==this.img.naturalWidth)return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");var e=this.proxyImage=new Image;i.bind(e,"load",this),i.bind(e,"error",this),e.src=this.img.src},l.prototype.useCached=function(t){if(t.isConfirmed)this.confirm(t.isLoaded,"cached was confirmed");else{var e=this;t.on("confirm",function(t){return e.confirm(t.isLoaded,"cache emitted confirmed"),!0})}},l.prototype.confirm=function(t,e){this.isConfirmed=!0,this.isLoaded=t,this.emit("confirm",this,e)},l.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindProxyEvents()},l.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindProxyEvents()},l.prototype.unbindProxyEvents=function(){i.unbind(this.proxyImage,"load",this),i.unbind(this.proxyImage,"error",this)},o}var a=t.jQuery,r=t.console,s="undefined"!=typeof r,l=Object.prototype.toString;"function"==typeof define&&define.amd?define(["eventEmitter","eventie"],o):t.imagesLoaded=o(t.EventEmitter,t.eventie)}(window),/*!
* Isotope PACKAGED v3.0.1 * * Licensed GPLv3 for open source use * or Isotope Commercial License for commercial use * * http://isotope.metafizzy.co * Copyright 2016 Metafizzy */
/**
* Bridget makes jQuery widgets * v2.0.0 * MIT license */
function(t,e){"use strict";"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,a,s){function l(t,e,n){var o,a="$()."+i+'("'+e+'")';return t.each(function(t,l){var u=s.data(l,i);if(!u)return void r(i+" not initialized. Cannot call methods, i.e. "+a);var c=u[e];if(!c||"_"==e.charAt(0))return void r(a+" is not a valid method");var d=c.apply(u,n);o=void 0===o?d:o}),void 0!==o?o:t}function u(t,e){t.each(function(t,n){var o=s.data(n,i);o?(o.option(e),o._init()):(o=new a(n,e),s.data(n,i,o))})}s=s||e||t.jQuery,s&&(a.prototype.option||(a.prototype.option=function(t){s.isPlainObject(t)&&(this.options=s.extend(!0,this.options,t))}),s.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return l(this,t,e)}return u(this,t),this},n(s))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,a=t.console,r="undefined"==typeof a?function(){}:function(t){a.error(t)};return n(e||t.jQuery),i}),/**
* EvEmitter v1.0.3 * Lil' event emitter * MIT License */
function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return n.indexOf(e)==-1&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return n!=-1&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,o=i[n];e=e||[];for(var a=this._onceEvents&&this._onceEvents[t];o;){var r=a&&a[o];r&&(this.off(t,o),delete a[o]),o.apply(this,e),n+=r?0:1,o=i[n]}return this}},t}),/*!
* getSize v2.0.2 * measure size of elements * MIT license */
function(t,e){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<u;e++){var i=l[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||s("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}function o(){if(!c){c=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);a.isBoxSizeOuter=r=200==t(o.width),i.removeChild(e)}}function a(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var a=n(e);if("none"==a.display)return i();var s={};s.width=e.offsetWidth,s.height=e.offsetHeight;for(var c=s.isBorderBox="border-box"==a.boxSizing,d=0;d<u;d++){var p=l[d],h=a[p],f=parseFloat(h);s[p]=isNaN(f)?0:f}var m=s.paddingLeft+s.paddingRight,g=s.paddingTop+s.paddingBottom,v=s.marginLeft+s.marginRight,y=s.marginTop+s.marginBottom,w=s.borderLeftWidth+s.borderRightWidth,b=s.borderTopWidth+s.borderBottomWidth,x=c&&r,I=t(a.width);I!==!1&&(s.width=I+(x?0:m+w));var C=t(a.height);return C!==!1&&(s.height=C+(x?0:g+b)),s.innerWidth=s.width-(m+w),s.innerHeight=s.height-(g+b),s.outerWidth=s.width+v,s.outerHeight=s.height+y,s}}var r,s="undefined"==typeof console?e:function(t){console.error(t)},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=l.length,c=!1;return a}),/**
* matchesSelector v2.0.1 * matchesSelector( element, '.selector' ) * MIT license */
function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i],o=n+"MatchesSelector";if(t[o])return o}}();return function(e,i){return e[t](i)}}),/**
* Fizzy UI utils v2.0.2 * MIT license */
function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e},i.makeArray=function(t){var e=[];if(Array.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e},i.removeFrom=function(t,e){var i=t.indexOf(e);i!=-1&&t.splice(i,1)},i.getParent=function(t,i){for(;t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void o.push(t);e(t,n)&&o.push(t);for(var i=t.querySelectorAll(n),a=0;a<i.length;a++)o.push(i[a])}}),o},i.debounceMethod=function(t,e,i){var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];t&&clearTimeout(t);var e=arguments,a=this;this[o]=setTimeout(function(){n.apply(a,e),delete a[o]},i||100)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?t():document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var n=t.console;return i.htmlInit=function(e,o){i.docReady(function(){var a=i.toDashed(o),r="data-"+a,s=document.querySelectorAll("["+r+"]"),l=document.querySelectorAll(".js-"+a),u=i.makeArray(s).concat(i.makeArray(l)),c=r+"-options",d=t.jQuery;u.forEach(function(t){var i,a=t.getAttribute(r)||t.getAttribute(c);try{i=a&&JSON.parse(a)}catch(s){return void(n&&n.error("Error parsing "+r+" on "+t.className+": "+s))}var l=new e(t,i);d&&d.data(t,o,l)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function o(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var a=document.documentElement.style,r="string"==typeof a.transition?"transition":"WebkitTransition",s="string"==typeof a.transform?"transform":"WebkitTransform",l={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],u={transform:s,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"},c=n.prototype=Object.create(t.prototype);c.constructor=n,c._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},c.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},c.getSize=function(){this.size=e(this.element)},c.css=function(t){var e=this.element.style;for(var i in t){var n=u[i]||i;e[n]=t[i]}},c.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],a=this.layout.size,r=n.indexOf("%")!=-1?parseFloat(n)/100*a.width:parseInt(n,10),s=o.indexOf("%")!=-1?parseFloat(o)/100*a.height:parseInt(o,10);r=isNaN(r)?0:r,s=isNaN(s)?0:s,r-=e?a.paddingLeft:a.paddingRight,s-=i?a.paddingTop:a.paddingBottom,this.position.x=r,this.position.y=s},c.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"paddingLeft":"paddingRight",a=i?"left":"right",r=i?"right":"left",s=this.position.x+t[o];e[a]=this.getXValue(s),e[r]="";var l=n?"paddingTop":"paddingBottom",u=n?"top":"bottom",c=n?"bottom":"top",d=this.position.y+t[l];e[u]=this.getYValue(d),e[c]="",this.css(e),this.emitEvent("layout",[this])},c.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},c.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},c._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=parseInt(t,10),a=parseInt(e,10),r=o===this.position.x&&a===this.position.y;if(this.setPosition(t,e),r&&!this.isTransitioning)return void this.layoutPosition();var s=t-i,l=e-n,u={};u.transform=this.getTranslate(s,l),this.transition({to:u,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},c.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop");return t=i?t:-t,e=n?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},c.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},c.moveTo=c._transitionTo,c.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},c._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},c.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var d="opacity,"+o(s);c.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:d,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(l,this,!1)}},c.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},c.onotransitionend=function(t){this.ontransitionend(t)};var p={"-webkit-transform":"transform"};c.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=p[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd){var o=e.onEnd[n];o.call(this),delete e.onEnd[n]}this.emitEvent("transitionEnd",[this])}},c.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(l,this,!1),this.isTransitioning=!1},c._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var h={transitionProperty:"",transitionDuration:"",transitionDelay:""};return c.removeTransitionStyles=function(){this.css(h)},c.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},c.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},c.remove=function(){return r&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},c.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},c.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},c.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},c.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},c.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},c.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},n}),/*!
* Outlayer v2.1.0 * the brains and guts of a layout library * MIT license */
function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,o,a){return e(t,i,n,o,a)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,o){"use strict";function a(t,e){var i=n.getQueryElement(t);if(!i)return void(l&&l.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,u&&(this.$element=u(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var o=++d;this.element.outlayerGUID=o,p[o]=this,this._create();var a=this._getOption("initLayout");a&&this.layout()}function r(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function s(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var o=f[n]||1;return i*o}var l=t.console,u=t.jQuery,c=function(){},d=0,p={};a.namespace="outlayer",a.Item=o,a.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var h=a.prototype;n.extend(h,e.prototype),h.option=function(t){n.extend(this.options,t)},h._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},a.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},h._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},h.reloadItems=function(){this.items=this._itemize(this.element.children)},h._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var a=e[o],r=new i(a,this);n.push(r)}return n},h._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},h.getItemElements=function(){return this.items.map(function(t){return t.element})},h.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},h._init=h.layout,h._resetLayout=function(){this.getSize()},h.getSize=function(){this.size=i(this.element)},h._getMeasurement=function(t,e){var n,o=this.options[t];o?("string"==typeof o?n=this.element.querySelector(o):o instanceof HTMLElement&&(n=o),this[t]=n?i(n)[e]:o):this[t]=0},h.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},h._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},h._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},h._getItemLayoutPosition=function(){return{x:0,y:0}},h._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},h.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=s(t),this.stagger)},h._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},h._postLayout=function(){this.resizeContainer()},h.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},h._getContainerSize=c,h._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},h._emitCompleteOnItems=function(t,e){function i(){o.dispatchEvent(t+"Complete",null,[e])}function n(){r++,r==a&&i()}var o=this,a=e.length;if(!e||!a)return void i();var r=0;e.forEach(function(e){e.once(t,n)})},h.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),u)if(this.$element=this.$element||u(this.element),e){var o=u.Event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},h.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},h.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},h.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},h.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},h._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)},h._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},h._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},h._manageStamp=c,h._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,o=i(t),a={left:e.left-n.left-o.marginLeft,top:e.top-n.top-o.marginTop,right:n.right-e.right-o.marginRight,bottom:n.bottom-e.bottom-o.marginBottom};return a},h.handleEvent=n.handleEvent,h.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},h.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},h.onresize=function(){this.resize()},n.debounceMethod(a,"onresize",100),h.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},h.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},h.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},h.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},h.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},h.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},h.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},h.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},h.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},h.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},h.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},h.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},h.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete p[e],delete this.element.outlayerGUID,u&&u.removeData(this.element,this.constructor.namespace)},a.data=function(t){t=n.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&p[e]},a.create=function(t,e){var i=r(a);return i.defaults=n.extend({},a.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},a.compatOptions),i.namespace=t,i.data=a.data,i.Item=r(o),n.htmlInit(i,t),u&&u.bridget&&u.bridget(t,i),i};var f={ms:1,s:1e3};return a.Item=o,a}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/item",["outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))}(window,function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create;i._create=function(){this.id=this.layout.itemGUID++,n.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t=this.layout.options.getSortData,e=this.layout._sorters;for(var i in t){var n=e[i];this.sortData[i]=n(this.element,this)}}};var o=i.destroy;return i.destroy=function(){o.apply(this,arguments),this.css({display:""})},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("get-size"),require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))}(window,function(t,e){"use strict";function i(t){this.isotope=t,t&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var n=i.prototype,o=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"];return o.forEach(function(t){n[t]=function(){return e.prototype[t].apply(this.isotope,arguments)}}),n.needsVerticalResizeLayout=function(){var e=t(this.isotope.element),i=this.isotope.size&&e;return i&&e.innerHeight!=this.isotope.size.innerHeight},n._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},n.getColumnWidth=function(){this.getSegmentSize("column","Width")},n.getRowHeight=function(){this.getSegmentSize("row","Height")},n.getSegmentSize=function(t,e){var i=t+e,n="outer"+e;if(this._getMeasurement(i,n),!this[i]){var o=this.getFirstItemSize();this[i]=o&&o[n]||this.isotope.size["inner"+e]}},n.getFirstItemSize=function(){var e=this.isotope.filteredItems[0];return e&&e.element&&t(e.element)},n.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},n.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},i.modes={},i.create=function(t,e){function o(){i.apply(this,arguments)}return o.prototype=Object.create(n),o.prototype.constructor=o,e&&(o.options=e),o.prototype.namespace=t,i.modes[t]=o,o},i}),/*!
* Masonry v4.1.0 * Cascading grid layout library * http://masonry.desandro.com * MIT License * by David DeSandro */
function(t,e){"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");return i.compatOptions.fitWidth="isFitWidth",i.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0},i.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,a=o/n,r=n-o%n,s=r&&r<1?"round":"floor";a=Math[s](a),this.cols=Math.max(a,1)},i.prototype.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},i.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&e<1?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this._getColGroup(n),a=Math.min.apply(Math,o),r=o.indexOf(a),s={x:this.columnWidth*r,y:a},l=a+t.size.outerHeight,u=this.cols+1-o.length,c=0;c<u;c++)this.colYs[r+c]=l;return s},i.prototype._getColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++){var o=this.colYs.slice(n,n+t);e[n]=Math.max.apply(Math,o)}return e},i.prototype._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),a=o?n.left:n.right,r=a+i.outerWidth,s=Math.floor(a/this.columnWidth);s=Math.max(0,s);var l=Math.floor(r/this.columnWidth);l-=r%this.columnWidth?0:1,l=Math.min(this.cols-1,l);for(var u=this._getOption("originTop"),c=(u?n.top:n.bottom)+i.outerHeight,d=s;d<=l;d++)this.colYs[d]=Math.max(c,this.colYs[d])},i.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},i.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},i.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i}),/*!
* Masonry layout mode * sub-classes Masonry * http://masonry.desandro.com */
function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.Isotope.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i=t.create("masonry"),n=i.prototype,o={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var a in e.prototype)o[a]||(n[a]=e.prototype[a]);var r=n.measureColumns;n.measureColumns=function(){this.items=this.isotope.filteredItems,r.call(this)};var s=n._getOption;return n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:s.apply(this.isotope,arguments)},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("fitRows"),i=e.prototype;return i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var n={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,n},i._getContainerSize=function(){return{height:this.maxY}},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;return i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}},e}),/*!
* Isotope v3.0.1 * * Licensed GPLv3 for open source use * or Isotope Commercial License for commercial use * * http://isotope.metafizzy.co * Copyright 2016 Metafizzy */
function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(i,n,o,a,r,s){return e(t,i,n,o,a,r,s)}):"object"==typeof module&&module.exports?module.exports=e(t,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope/js/item"),require("isotope/js/layout-mode"),require("isotope/js/layout-modes/masonry"),require("isotope/js/layout-modes/fit-rows"),require("isotope/js/layout-modes/vertical")):t.Isotope=e(t,t.Outlayer,t.getSize,t.matchesSelector,t.fizzyUIUtils,t.Isotope.Item,t.Isotope.LayoutMode)}(window,function(t,e,i,n,o,a,r){function s(t,e){return function(i,n){for(var o=0;o<t.length;o++){var a=t[o],r=i.sortData[a],s=n.sortData[a];if(r>s||r<s){var l=void 0!==e[a]?e[a]:e,u=l?1:-1;return(r>s?1:-1)*u}}return 0}}var l=t.jQuery,u=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},c=e.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});c.Item=a,c.LayoutMode=r;var d=c.prototype;d._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),e.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var t in r.modes)this._initLayoutMode(t)},d.reloadItems=function(){this.itemGUID=0,e.prototype.reloadItems.call(this)},d._itemize=function(){for(var t=e.prototype._itemize.apply(this,arguments),i=0;i<t.length;i++){var n=t[i];n.id=this.itemGUID++}return this._updateItemsSortData(t),t},d._initLayoutMode=function(t){var e=r.modes[t],i=this.options[t]||{};this.options[t]=e.options?o.extend(e.options,i):i,this.modes[t]=new e(this)},d.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},d._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},d.arrange=function(t){this.option(t),this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[e]):this._hideReveal(e),this._sort(),this._layout()},d._init=d.arrange,d._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},d._getIsInstant=function(){var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;return this._isInstant=e,e},d._bindArrangeComplete=function(){function t(){e&&i&&n&&o.dispatchEvent("arrangeComplete",null,[o.filteredItems])}var e,i,n,o=this;this.once("layoutComplete",function(){e=!0,t()}),this.once("hideComplete",function(){i=!0,t()}),this.once("revealComplete",function(){n=!0,t()})},d._filter=function(t){var e=this.options.filter;e=e||"*";for(var i=[],n=[],o=[],a=this._getFilterTest(e),r=0;r<t.length;r++){var s=t[r];if(!s.isIgnored){var l=a(s);l&&i.push(s),l&&s.isHidden?n.push(s):l||s.isHidden||o.push(s)}}return{matches:i,needReveal:n,needHide:o}},d._getFilterTest=function(t){return l&&this.options.isJQueryFiltering?function(e){return l(e.element).is(t)}:"function"==typeof t?function(e){return t(e.element)}:function(e){return n(e.element,t)}},d.updateSortData=function(t){var e;t?(t=o.makeArray(t),e=this.getItems(t)):e=this.items,this._getSorters(),this._updateItemsSortData(e)},d._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=p(i)}},d._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++){var n=t[i];n.updateSortData()}};var p=function(){function t(t){if("string"!=typeof t)return t;var i=u(t).split(" "),n=i[0],o=n.match(/^\[(.+)\]$/),a=o&&o[1],r=e(a,n),s=c.sortDataParsers[i[1]];return t=s?function(t){return t&&s(r(t))}:function(t){return t&&r(t)}}function e(t,e){return t?function(e){return e.getAttribute(t)}:function(t){var i=t.querySelector(e);return i&&i.textContent}}return t}();c.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},d._sort=function(){var t=this.options.sortBy;if(t){var e=[].concat.apply(t,this.sortHistory),i=s(e,this.options.sortAscending);this.filteredItems.sort(i),t!=this.sortHistory[0]&&this.sortHistory.unshift(t)}},d._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},d._resetLayout=function(){e.prototype._resetLayout.call(this),this._mode()._resetLayout()},d._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},d._manageStamp=function(t){this._mode()._manageStamp(t)},d._getContainerSize=function(){return this._mode()._getContainerSize()},d.needsResizeLayout=function(){return this._mode().needsResizeLayout()},d.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},d.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=e.concat(this.items)}},d._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},d.insert=function(t){var e=this.addItems(t);if(e.length){var i,n,o=e.length;for(i=0;i<o;i++)n=e[i],this.element.appendChild(n.element);var a=this._filter(e).matches;for(i=0;i<o;i++)e[i].isLayoutInstant=!0;for(this.arrange(),i=0;i<o;i++)delete e[i].isLayoutInstant;this.reveal(a)}};var h=d.remove;return d.remove=function(t){t=o.makeArray(t);var e=this.getItems(t);h.call(this,t);for(var i=e&&e.length,n=0;i&&n<i;n++){var a=e[n];o.removeFrom(this.filteredItems,a)}},d.shuffle=function(){for(var t=0;t<this.items.length;t++){var e=this.items[t];e.sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},d._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;var n=t.apply(this,e);return this.options.transitionDuration=i,n},d.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},c}),/*! jqBootstrapValidation
* A plugin for automating validation on Twitter Bootstrap formatted forms. * * v1.3.6 * * License: MIT <http://opensource.org/licenses/mit-license.php> - see LICENSE file * * http://ReactiveRaven.github.com/jqBootstrapValidation/ */function(t){function e(t){return new RegExp("^"+t+"$")}function i(t,e){for(var i=Array.prototype.slice.call(arguments).splice(2),n=t.split("."),o=n.pop(),a=0;a<n.length;a++)e=e[n[a]];return e[o].apply(this,i)}var n=[],o={options:{prependExistingHelpBlock:!1,sniffHtml:!0,preventSubmit:!0,submitError:!1,submitSuccess:!1,semanticallyStrict:!1,autoAdd:{helpBlocks:!0},filter:function(){return!0}},methods:{init:function(e){var i=t.extend(!0,{},o);i.options=t.extend(!0,i.options,e);var s=this,l=t.unique(s.map(function(){return t(this).parents("form")[0]}).toArray());return t(l).bind("submit",function(e){var n=t(this),o=0,a=n.find("input,textarea,select").not("[type=submit],[type=image]").filter(i.options.filter);a.trigger("submit.validation").trigger("validationLostFocus.validation"),a.each(function(e,i){var n=t(i),a=n.parents(".form-group").first();a.hasClass("warning")&&(a.removeClass("warning").addClass("error"),o++)}),a.trigger("validationLostFocus.validation"),o?(i.options.preventSubmit&&e.preventDefault(),n.addClass("error"),t.isFunction(i.options.submitError)&&i.options.submitError(n,e,a.jqBootstrapValidation("collectErrors",!0))):(n.removeClass("error"),t.isFunction(i.options.submitSuccess)&&i.options.submitSuccess(n,e))}),this.each(function(){var e=t(this),o=e.parents(".form-group").first(),s=o.find(".help-block").first(),l=e.parents("form").first(),u=[];if(!s.length&&i.options.autoAdd&&i.options.autoAdd.helpBlocks&&(s=t('<div class="help-block" />'),o.find(".controls").append(s),n.push(s[0])),i.options.sniffHtml){var c="";if(void 0!==e.attr("pattern")&&(c="Not in the expected format",e.data("validationPatternMessage")&&(c=e.data("validationPatternMessage")),e.data("validationPatternMessage",c),e.data("validationPatternRegex",e.attr("pattern"))),void 0!==e.attr("max")||void 0!==e.attr("aria-valuemax")){var d=void 0!==e.attr("max")?e.attr("max"):e.attr("aria-valuemax");c="Too high: Maximum of '"+d+"'",e.data("validationMaxMessage")&&(c=e.data("validationMaxMessage")),e.data("validationMaxMessage",c),e.data("validationMaxMax",d)}if(void 0!==e.attr("min")||void 0!==e.attr("aria-valuemin")){var p=void 0!==e.attr("min")?e.attr("min"):e.attr("aria-valuemin");c="Too low: Minimum of '"+p+"'",e.data("validationMinMessage")&&(c=e.data("validationMinMessage")),e.data("validationMinMessage",c),e.data("validationMinMin",p)}void 0!==e.attr("maxlength")&&(c="Too long: Maximum of '"+e.attr("maxlength")+"' characters",e.data("validationMaxlengthMessage")&&(c=e.data("validationMaxlengthMessage")),e.data("validationMaxlengthMessage",c),e.data("validationMaxlengthMaxlength",e.attr("maxlength"))),void 0!==e.attr("minlength")&&(c="Too short: Minimum of '"+e.attr("minlength")+"' characters",e.data("validationMinlengthMessage")&&(c=e.data("validationMinlengthMessage")),e.data("validationMinlengthMessage",c),e.data("validationMinlengthMinlength",e.attr("minlength"))),void 0===e.attr("required")&&void 0===e.attr("aria-required")||(c=i.builtInValidators.required.message,e.data("validationRequiredMessage")&&(c=e.data("validationRequiredMessage")),e.data("validationRequiredMessage",c)),void 0!==e.attr("type")&&"number"===e.attr("type").toLowerCase()&&(c=i.builtInValidators.number.message,e.data("validationNumberMessage")&&(c=e.data("validationNumberMessage")),e.data("validationNumberMessage",c)),void 0!==e.attr("type")&&"email"===e.attr("type").toLowerCase()&&(c="Not a valid email address",e.data("validationValidemailMessage")?c=e.data("validationValidemailMessage"):e.data("validationEmailMessage")&&(c=e.data("validationEmailMessage")),e.data("validationValidemailMessage",c)),void 0!==e.attr("minchecked")&&(c="Not enough options checked; Minimum of '"+e.attr("minchecked")+"' required",e.data("validationMincheckedMessage")&&(c=e.data("validationMincheckedMessage")),e.data("validationMincheckedMessage",c),e.data("validationMincheckedMinchecked",e.attr("minchecked"))),void 0!==e.attr("maxchecked")&&(c="Too many options checked; Maximum of '"+e.attr("maxchecked")+"' required",e.data("validationMaxcheckedMessage")&&(c=e.data("validationMaxcheckedMessage")),e.data("validationMaxcheckedMessage",c),e.data("validationMaxcheckedMaxchecked",e.attr("maxchecked")))}void 0!==e.data("validation")&&(u=e.data("validation").split(",")),t.each(e.data(),function(t,e){var i=t.replace(/([A-Z])/g,",$1").split(",");"validation"===i[0]&&i[1]&&u.push(i[1])});var h=u,f=[];do t.each(u,function(t,e){u[t]=a(e)}),u=t.unique(u),f=[],t.each(h,function(n,o){if(void 0!==e.data("validation"+o+"Shortcut"))t.each(e.data("validation"+o+"Shortcut").split(","),function(t,e){f.push(e)});else if(i.builtInValidators[o.toLowerCase()]){var r=i.builtInValidators[o.toLowerCase()];"shortcut"===r.type.toLowerCase()&&t.each(r.shortcut.split(","),function(t,e){e=a(e),f.push(e),u.push(e)})}}),h=f;while(h.length>0);var m={};t.each(u,function(n,o){var r=e.data("validation"+o+"Message"),s=void 0!==r,l=!1;if(r=r?r:"'"+o+"' validation failed ",t.each(i.validatorTypes,function(i,n){void 0===m[i]&&(m[i]=[]),l||void 0===e.data("validation"+o+a(n.name))||(m[i].push(t.extend(!0,{name:a(n.name),message:r},n.init(e,o))),l=!0)}),!l&&i.builtInValidators[o.toLowerCase()]){var u=t.extend(!0,{},i.builtInValidators[o.toLowerCase()]);s&&(u.message=r);var c=u.type.toLowerCase();"shortcut"===c?l=!0:t.each(i.validatorTypes,function(i,n){void 0===m[i]&&(m[i]=[]),l||c!==i.toLowerCase()||(e.data("validation"+o+a(n.name),u[n.name.toLowerCase()]),m[c].push(t.extend(u,n.init(e,o))),l=!0)})}l||t.error("Cannot find validation info for '"+o+"'")}),s.data("original-contents",s.data("original-contents")?s.data("original-contents"):s.html()),s.data("original-role",s.data("original-role")?s.data("original-role"):s.attr("role")),o.data("original-classes",o.data("original-clases")?o.data("original-classes"):o.attr("class")),e.data("original-aria-invalid",e.data("original-aria-invalid")?e.data("original-aria-invalid"):e.attr("aria-invalid")),e.bind("validation.validation",function(n,o){var a=r(e),s=[];return t.each(m,function(n,r){(a||a.length||o&&o.includeEmpty||i.validatorTypes[n].blockSubmit&&o&&o.submitting)&&t.each(r,function(t,o){i.validatorTypes[n].validate(e,a,o)&&s.push(o.message)})}),s}),e.bind("getValidators.validation",function(){return m}),e.bind("submit.validation",function(){return e.triggerHandler("change.validation",{submitting:!0})}),e.bind(["keyup","focus","blur","click","keydown","keypress","change"].join(".validation ")+".validation",function(n,a){var u=r(e),c=[];o.find("input,textarea,select").each(function(i,n){var o=c.length;if(t.each(t(n).triggerHandler("validation.validation",a),function(t,e){c.push(e)}),c.length>o)t(n).attr("aria-invalid","true");else{var r=e.data("original-aria-invalid");t(n).attr("aria-invalid",void 0!==r&&r)}}),l.find("input,select,textarea").not(e).not('[name="'+e.attr("name")+'"]').trigger("validationLostFocus.validation"),c=t.unique(c.sort()),c.length?(o.removeClass("success error").addClass("warning"),i.options.semanticallyStrict&&1===c.length?s.html(c[0]+(i.options.prependExistingHelpBlock?s.data("original-contents"):"")):s.html('
- '+c.join("
- ")+"
- https://github.com/nicinabox/superslides
- Copyright (c) 2013 Nic Aitch; Licensed MIT */
- <a class="'+r+'prev" href="#">'+o.vars.prevText+'</a>
- <a class="'+r+'next" href="#">'+o.vars.nextText+"</a>
* jquery-simple-text-rotator.js v1 * =========================================================== * Copyright 2013 Pete Rojwongsuriya. * http://www.thepetedesign.com * * A very simple and light weight jQuery plugin that * allows you to rotate multiple text without changing * the layout * https://github.com/peachananr/simple-text-rotator * * ========================================================== */
!function(t){var e={animation:"dissolve",separator:",",speed:2e3};t.fx.step.textShadowBlur=function(e){t(e.elem).prop("textShadowBlur",e.now).css({textShadow:"0 0 "+Math.floor(e.now)+"px black"})},t.fn.textrotator=function(i){var n=t.extend({},e,i);return this.each(function(){var e=t(this),i=[];t.each(e.text().split(n.separator),function(t,e){i.push(e)}),e.text(i[0]);var o=function(){switch(n.animation){case"dissolve":e.animate({textShadowBlur:20,opacity:0},500,function(){a=t.inArray(e.text(),i),a+1==i.length&&(a=-1),e.text(i[a+1]).animate({textShadowBlur:0,opacity:1},500)});break;case"flip":e.find(".back").length>0&&e.html(e.find(".back").html());var o=e.text(),a=t.inArray(o,i);a+1==i.length&&(a=-1),e.html(""),t(""+o+"").appendTo(e),t(""+i[a+1]+"").appendTo(e),e.wrapInner("<span class='rotating' />").find(".rotating").hide().addClass("flip").show().css({"-webkit-transform":" rotateY(-180deg)","-moz-transform":" rotateY(-180deg)","-o-transform":" rotateY(-180deg)",transform:" rotateY(-180deg)"});break;case"flipUp":e.find(".back").length>0&&e.html(e.find(".back").html());var o=e.text(),a=t.inArray(o,i);a+1==i.length&&(a=-1),e.html(""),t(""+o+"").appendTo(e),t(""+i[a+1]+"").appendTo(e),e.wrapInner("<span class='rotating' />").find(".rotating").hide().addClass("flip up").show().css({"-webkit-transform":" rotateX(-180deg)","-moz-transform":" rotateX(-180deg)","-o-transform":" rotateX(-180deg)",transform:" rotateX(-180deg)"});break;case"flipCube":e.find(".back").length>0&&e.html(e.find(".back").html());var o=e.text(),a=t.inArray(o,i);a+1==i.length&&(a=-1),e.html(""),t(""+o+"").appendTo(e),t(""+i[a+1]+"").appendTo(e),e.wrapInner("<span class='rotating' />").find(".rotating").hide().addClass("flip cube").show().css({"-webkit-transform":" rotateY(180deg)","-moz-transform":" rotateY(180deg)","-o-transform":" rotateY(180deg)",transform:" rotateY(180deg)"});break;case"flipCubeUp":e.find(".back").length>0&&e.html(e.find(".back").html());var o=e.text(),a=t.inArray(o,i);a+1==i.length&&(a=-1),e.html(""),t(""+o+"").appendTo(e),t(""+i[a+1]+"").appendTo(e),e.wrapInner("<span class='rotating' />").find(".rotating").hide().addClass("flip cube up").show().css({"-webkit-transform":" rotateX(180deg)","-moz-transform":" rotateX(180deg)","-o-transform":" rotateX(180deg)",transform:" rotateX(180deg)"});break;case"spin":e.find(".rotating").length>0&&e.html(e.find(".rotating").html()),a=t.inArray(e.text(),i),a+1==i.length&&(a=-1),e.wrapInner("<span class='rotating spin' />").find(".rotating").hide().text(i[a+1]).show().css({"-webkit-transform":" rotate(0) scale(1)","-moz-transform":"rotate(0) scale(1)","-o-transform":"rotate(0) scale(1)",transform:"rotate(0) scale(1)"});break;case"fade":e.fadeOut(n.speed,function(){a=t.inArray(e.text(),i),a+1==i.length&&(a=-1),e.text(i[a+1]).fadeIn(n.speed)})}};setInterval(o,n.speed)})}}(window.jQuery),/*!
- FitVids 1.1
- Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
- Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
- Released under the WTFPL license - http://sam.zoy.org/wtfpl/
- /
x
<style id="fit-vids-style">'+o+"</style>",n.appendChild(a.childNodes[1])}return e&&t.extend(i,e),this.each(function(){var e=["iframe[src*='player.vimeo.com']","iframe[src*='youtube.com']","iframe[src*='youtube-nocookie.com']","iframe[src*='kickstarter.com'][src*='video.html']","object","embed"];i.customSelector&&e.push(i.customSelector);var n=".fitvidsignore";i.ignore&&(n=n+", "+i.ignore);var o=t(this).find(e.join(","));o=o.not("object object"),o=o.not(n),o.each(function(){var e=t(this);if(!(e.parents(n).length>0||"embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){e.css("height")||e.css("width")||!isNaN(e.attr("height"))&&!isNaN(e.attr("width"))||(e.attr("height",9),e.attr("width",16));var i="object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height(),o=isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10),a=i/o;if(!e.attr("id")){var r="fitvid"+Math.floor(999999*Math.random());e.attr("id",r)}e.wrap('').parent(".fluid-width-video-wrapper").css("padding-top",100*a+"%"),e.removeAttr("height").removeAttr("width")}})})}}(window.jQuery||window.Zepto),function(t){var e,i,n,o,a,r,s,l="Close",u="BeforeClose",c="AfterClose",d="BeforeAppend",p="MarkupParse",h="Open",f="Change",m="mfp",g="."+m,v="mfp-ready",y="mfp-removing",w="mfp-prevent-close",b=function(){},x=!!window.jQuery,I=t(window),C=function(t,i){e.ev.on(m+t+g,i)},T=function(e,i,n,o){var a=document.createElement("div");return a.className="mfp-"+e,n&&(a.innerHTML=n),o?i&&i.appendChild(a):(a=t(a),i&&a.appendTo(i)),a},_=function(i,n){e.ev.triggerHandler(m+i,n),e.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),e.st.callbacks[i]&&e.st.callbacks[i].apply(e,t.isArray(n)?n:[n]))},S=function(i){return i===s&&e.currTemplate.closeBtn||(e.currTemplate.closeBtn=t(e.st.closeMarkup.replace("%title%",e.st.tClose)),s=i),e.currTemplate.closeBtn},E=function(){t.magnificPopup.instance||(e=new b,e.init(),t.magnificPopup.instance=e)},k=function(){var t=document.createElement("p").style,e=["ms","O","Moz","Webkit"];if(void 0!==t.transition)return!0;for(;e.length;)if(e.pop()+"Transition"in t)return!0;return!1};b.prototype={constructor:b,init:function(){var i=navigator.appVersion;e.isIE7=i.indexOf("MSIE 7.")!==-1,e.isIE8=i.indexOf("MSIE 8.")!==-1,e.isLowIE=e.isIE7||e.isIE8,e.isAndroid=/android/gi.test(i),e.isIOS=/iphone|ipad|ipod/gi.test(i),e.supportsTransition=k(),e.probablyMobile=e.isAndroid||e.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),o=t(document),e.popupsCache={}},open:function(i){n||(n=t(document.body));var a;if(i.isObj===!1){e.items=i.items.toArray(),e.index=0;var s,l=i.items;for(a=0;a<l.length;a++)if(s=l[a],s.parsed&&(s=s.el[0]),s===i.el[0]){e.index=a;break}}else e.items=t.isArray(i.items)?i.items:[i.items],e.index=i.index||0;if(e.isOpen)return void e.updateItemHTML();e.types=[],r="",i.mainEl&&i.mainEl.length?e.ev=i.mainEl.eq(0):e.ev=o,i.key?(e.popupsCache[i.key]||(e.popupsCache[i.key]={}),e.currTemplate=e.popupsCache[i.key]):e.currTemplate={},e.st=t.extend(!0,{},t.magnificPopup.defaults,i),e.fixedContentPos="auto"===e.st.fixedContentPos?!e.probablyMobile:e.st.fixedContentPos,e.st.modal&&(e.st.closeOnContentClick=!1,e.st.closeOnBgClick=!1,e.st.showCloseBtn=!1,e.st.enableEscapeKey=!1),e.bgOverlay||(e.bgOverlay=T("bg").on("click"+g,function(){e.close()}),e.wrap=T("wrap").attr("tabindex",-1).on("click"+g,function(t){e._checkIfClose(t.target)&&e.close()}),e.container=T("container",e.wrap)),e.contentContainer=T("content"),e.st.preloader&&(e.preloader=T("preloader",e.container,e.st.tLoading));var u=t.magnificPopup.modules;for(a=0;a<u.length;a++){var c=u[a];c=c.charAt(0).toUpperCase()+c.slice(1),e["init"+c].call(e)}_("BeforeOpen"),e.st.showCloseBtn&&(e.st.closeBtnInside?(C(p,function(t,e,i,n){i.close_replaceWith=S(n.type)}),r+=" mfp-close-btn-in"):e.wrap.append(S())),e.st.alignTop&&(r+=" mfp-align-top"),e.fixedContentPos?e.wrap.css({overflow:e.st.overflowY,overflowX:"hidden",overflowY:e.st.overflowY}):e.wrap.css({top:I.scrollTop(),position:"absolute"}),(e.st.fixedBgPos===!1||"auto"===e.st.fixedBgPos&&!e.fixedContentPos)&&e.bgOverlay.css({height:o.height(),position:"absolute"}),e.st.enableEscapeKey&&o.on("keyup"+g,function(t){27===t.keyCode&&e.close()}),I.on("resize"+g,function(){e.updateSize()}),e.st.closeOnContentClick||(r+=" mfp-auto-cursor"),r&&e.wrap.addClass(r);var d=e.wH=I.height(),f={};if(e.fixedContentPos&&e._hasScrollBar(d)){var m=e._getScrollbarSize();m&&(f.marginRight=m)}e.fixedContentPos&&(e.isIE7?t("body, html").css("overflow","hidden"):f.overflow="hidden");var y=e.st.mainClass;return e.isIE7&&(y+=" mfp-ie7"),y&&e._addClassToMFP(y),e.updateItemHTML(),_("BuildControls"),t("html").css(f),e.bgOverlay.add(e.wrap).prependTo(e.st.prependTo||n),e._lastFocusedEl=document.activeElement,setTimeout(function(){e.content?(e._addClassToMFP(v),e._setFocus()):e.bgOverlay.addClass(v),o.on("focusin"+g,e._onFocusIn)},16),e.isOpen=!0,e.updateSize(d),_(h),i},close:function(){e.isOpen&&(_(u),e.isOpen=!1,e.st.removalDelay&&!e.isLowIE&&e.supportsTransition?(e._addClassToMFP(y),setTimeout(function(){e._close()},e.st.removalDelay)):e._close())},_close:function(){_(l);var i=y+" "+v+" ";if(e.bgOverlay.detach(),e.wrap.detach(),e.container.empty(),e.st.mainClass&&(i+=e.st.mainClass+" "),e._removeClassFromMFP(i),e.fixedContentPos){var n={marginRight:""};e.isIE7?t("body, html").css("overflow",""):n.overflow="",t("html").css(n)}o.off("keyup"+g+" focusin"+g),e.ev.off(g),e.wrap.attr("class","mfp-wrap").removeAttr("style"),e.bgOverlay.attr("class","mfp-bg"),e.container.attr("class","mfp-container"),!e.st.showCloseBtn||e.st.closeBtnInside&&e.currTemplate[e.currItem.type]!==!0||e.currTemplate.closeBtn&&e.currTemplate.closeBtn.detach(),e._lastFocusedEl&&t(e._lastFocusedEl).focus(),e.currItem=null,e.content=null,e.currTemplate=null,e.prevHeight=0,_(c)},updateSize:function(t){if(e.isIOS){var i=document.documentElement.clientWidth/window.innerWidth,n=window.innerHeight*i;e.wrap.css("height",n),e.wH=n}else e.wH=t||I.height();e.fixedContentPos||e.wrap.css("height",e.wH),_("Resize")},updateItemHTML:function(){var i=e.items[e.index];e.contentContainer.detach(),e.content&&e.content.detach(),i.parsed||(i=e.parseEl(e.index));var n=i.type;if(_("BeforeChange",[e.currItem?e.currItem.type:"",n]),e.currItem=i,!e.currTemplate[n]){var o=!!e.st[n]&&e.st[n].markup;_("FirstMarkupParse",o),o?e.currTemplate[n]=t(o):e.currTemplate[n]=!0}a&&a!==i.type&&e.container.removeClass("mfp-"+a+"-holder");var r=e["get"+n.charAt(0).toUpperCase()+n.slice(1)](i,e.currTemplate[n]);e.appendContent(r,n),i.preloaded=!0,_(f,i),a=i.type,e.container.prepend(e.contentContainer),_("AfterChange")},appendContent:function(t,i){e.content=t,t?e.st.showCloseBtn&&e.st.closeBtnInside&&e.currTemplate[i]===!0?e.content.find(".mfp-close").length||e.content.append(S()):e.content=t:e.content="",_(d),e.container.addClass("mfp-"+i+"-holder"),e.contentContainer.append(e.content)},parseEl:function(i){var n,o=e.items[i];if(o.tagName?o={el:t(o)}:(n=o.type,o={data:o,src:o.src}),o.el){for(var a=e.types,r=0;r<a.length;r++)if(o.el.hasClass("mfp-"+a[r])){n=a[r];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=n||e.st.type||"inline",o.index=i,o.parsed=!0,e.items[i]=o,_("ElementParse",o),e.items[i]},addGroup:function(t,i){var n=function(n){n.mfpEl=this,e._openClick(n,t,i)};i||(i={});var o="click.magnificPopup";i.mainEl=t,i.items?(i.isObj=!0,t.off(o).on(o,n)):(i.isObj=!1,i.delegate?t.off(o).on(o,i.delegate,n):(i.items=t,t.off(o).on(o,n)))},_openClick:function(i,n,o){var a=void 0!==o.midClick?o.midClick:t.magnificPopup.defaults.midClick;if(a||2!==i.which&&!i.ctrlKey&&!i.metaKey){var r=void 0!==o.disableOn?o.disableOn:t.magnificPopup.defaults.disableOn;if(r)if(t.isFunction(r)){if(!r.call(e))return!0}else if(I.width()<r)return!0;i.type&&(i.preventDefault(),e.isOpen&&i.stopPropagation()),o.el=t(i.mfpEl),o.delegate&&(o.items=n.find(o.delegate)),e.open(o)}},updateStatus:function(t,n){if(e.preloader){i!==t&&e.container.removeClass("mfp-s-"+i),n||"loading"!==t||(n=e.st.tLoading);var o={status:t,text:n};_("UpdateStatus",o),t=o.status,n=o.text,e.preloader.html(n),e.preloader.find("a").on("click",function(t){t.stopImmediatePropagation()}),e.container.addClass("mfp-s-"+t),i=t}},_checkIfClose:function(i){if(!t(i).hasClass(w)){var n=e.st.closeOnContentClick,o=e.st.closeOnBgClick;if(n&&o)return!0;if(!e.content||t(i).hasClass("mfp-close")||e.preloader&&i===e.preloader[0])return!0;if(i===e.content[0]||t.contains(e.content[0],i)){if(n)return!0}else if(o&&t.contains(document,i))return!0;return!1}},_addClassToMFP:function(t){e.bgOverlay.addClass(t),e.wrap.addClass(t)},_removeClassFromMFP:function(t){this.bgOverlay.removeClass(t),e.wrap.removeClass(t)},_hasScrollBar:function(t){return(e.isIE7?o.height():document.body.scrollHeight)>(t||I.height())},_setFocus:function(){(e.st.focus?e.content.find(e.st.focus).eq(0):e.wrap).focus()},_onFocusIn:function(i){if(i.target!==e.wrap[0]&&!t.contains(e.wrap[0],i.target))return e._setFocus(),!1},_parseMarkup:function(e,i,n){var o;n.data&&(i=t.extend(n.data,i)),_(p,[e,i,n]),t.each(i,function(t,i){if(void 0===i||i===!1)return!0;if(o=t.split("_"),o.length>1){var n=e.find(g+"-"+o[0]);if(n.length>0){var a=o[1];"replaceWith"===a?n[0]!==i[0]&&n.replaceWith(i):"img"===a?n.is("img")?n.attr("src",i):n.replaceWith('<img src="'+i+'" class="'+n.attr("class")+'" />'):n.attr(o[1],i)}}else e.find(g+"-"+t).html(i)})},_getScrollbarSize:function(){if(void 0===e.scrollbarSize){var t=document.createElement("div");t.id="mfp-sbm",t.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t),e.scrollbarSize=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return e.scrollbarSize}},t.magnificPopup={instance:null,proto:b.prototype,modules:[],open:function(e,i){return E(),e=e?t.extend(!0,{},e):{},e.isObj=!0,e.index=i||0,this.instance.open(e)},close:function(){return t.magnificPopup.instance&&t.magnificPopup.instance.close()},registerModule:function(e,i){i.options&&(t.magnificPopup.defaults[e]=i.options),t.extend(this.proto,i.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},t.fn.magnificPopup=function(i){E();var n=t(this);if("string"==typeof i)if("open"===i){var o,a=x?n.data("magnificPopup"):n[0].magnificPopup,r=parseInt(arguments[1],10)||0;a.items?o=a.items[r]:(o=n,a.delegate&&(o=o.find(a.delegate)),o=o.eq(r)),e._openClick({mfpEl:o},n,a)}else e.isOpen&&e[i].apply(e,Array.prototype.slice.call(arguments,1));else i=t.extend(!0,{},i),x?n.data("magnificPopup",i):n[0].magnificPopup=i,e.addGroup(n,i);return n};var P,A,L,M="inline",z=function(){L&&(A.after(L.addClass(P)).detach(),L=null)};t.magnificPopup.registerModule(M,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){e.types.push(M),C(l+"."+M,function(){z()})},getInline:function(i,n){if(z(),i.src){var o=e.st.inline,a=t(i.src);if(a.length){var r=a[0].parentNode;r&&r.tagName&&(A||(P=o.hiddenClass,A=T(P),P="mfp-"+P),L=a.after(A).detach().removeClass(P)),e.updateStatus("ready")}else e.updateStatus("error",o.tNotFound),a=t("* easy-pie-chart * Lightweight plugin to render simple, animated and retina optimized pie charts * * @license * @author Robert Fleischmann <rendro87@gmail.com> (http://robert-fleischmann.de) * @version 2.1.7 **/
function(t,e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t)}):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(this,function(t){var e=function(t,e){var i,n=document.createElement("canvas");t.appendChild(n),"object"==typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(n);var o=n.getContext("2d");n.width=n.height=e.size;var a=1;window.devicePixelRatio>1&&(a=window.devicePixelRatio,n.style.width=n.style.height=[e.size,"px"].join(""),n.width=n.height=e.size*a,o.scale(a,a)),o.translate(e.size/2,e.size/2),o.rotate((-.5+e.rotate/180)*Math.PI);var r=(e.size-e.lineWidth)/2;e.scaleColor&&e.scaleLength&&(r-=e.scaleLength+2),Date.now=Date.now||function(){return+new Date};var s=function(t,e,i){i=Math.min(Math.max(-1,i||0),1);var n=i<=0;o.beginPath(),o.arc(0,0,r,0,2*Math.PI*i,n),o.strokeStyle=t,o.lineWidth=e,o.stroke()},l=function(){var t,i;o.lineWidth=1,o.fillStyle=e.scaleColor,o.save();for(var n=24;n>0;--n)n%6===0?(i=e.scaleLength,t=0):(i=.6*e.scaleLength,t=e.scaleLength-i),o.fillRect(-e.size/2+t,0,i,1),o.rotate(Math.PI/12);o.restore()},u=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}(),c=function(){e.scaleColor&&l(),e.trackColor&&s(e.trackColor,e.trackWidth||e.lineWidth,1)};this.getCanvas=function(){return n},this.getCtx=function(){return o},this.clear=function(){o.clearRect(e.size/-2,e.size/-2,e.size,e.size)},this.draw=function(t){e.scaleColor||e.trackColor?o.getImageData&&o.putImageData?i?o.putImageData(i,0,0):(c(),i=o.getImageData(0,0,e.size*a,e.size*a)):(this.clear(),c()):this.clear(),o.lineCap=e.lineCap;var n;n="function"==typeof e.barColor?e.barColor(t):e.barColor,s(n,e.lineWidth,t/100)}.bind(this),this.animate=function(t,i){var n=Date.now();e.onStart(t,i);var o=function(){var a=Math.min(Date.now()-n,e.animate.duration),r=e.easing(this,a,t,i-t,e.animate.duration);this.draw(r),e.onStep(t,i,r),a>=e.animate.duration?e.onStop(t,i):u(o)}.bind(this);u(o)}.bind(this)},i=function(t,i){var n={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,trackWidth:void 0,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(t,e,i,n,o){return e/=o/2,e<1?n/2*e*e+i:-n/2*(--e*(e-2)-1)+i},onStart:function(t,e){},onStep:function(t,e,i){},onStop:function(t,e){}};if("undefined"!=typeof e)n.renderer=e;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");n.renderer=SVGRenderer}var o={},a=0,r=function(){this.el=t,this.options=o;for(var e in n)n.hasOwnProperty(e)&&(o[e]=i&&"undefined"!=typeof i[e]?i[e]:n[e],"function"==typeof o[e]&&(o[e]=o[e].bind(this)));"string"==typeof o.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[o.easing])?o.easing=jQuery.easing[o.easing]:o.easing=n.easing,"number"==typeof o.animate&&(o.animate={duration:o.animate,enabled:!0}),"boolean"!=typeof o.animate||o.animate||(o.animate={duration:1e3,enabled:o.animate}),this.renderer=new o.renderer(t,o),this.renderer.draw(a),t.dataset&&t.dataset.percent?this.update(parseFloat(t.dataset.percent)):t.getAttribute&&t.getAttribute("data-percent")&&this.update(parseFloat(t.getAttribute("data-percent")))}.bind(this);this.update=function(t){return t=parseFloat(t),o.animate.enabled?this.renderer.animate(a,t):this.renderer.draw(t),a=t,this}.bind(this),this.disableAnimation=function(){return o.animate.enabled=!1,this},this.enableAnimation=function(){return o.animate.enabled=!0,this},r()};t.fn.easyPieChart=function(e){return this.each(function(){var n;t.data(this,"easyPieChart")||(n=t.extend({},e,t(this).data()),t.data(this,"easyPieChart",new i(this,n)))})}}),/** @license Sticky-kit v1.1.2 | WTFPL | Leaf Corcoran 2015 | http://leafo.net
*/
function(){var t,e;t=this.jQuery||window.jQuery,e=t(window),t.fn.stick_in_parent=function(i){var n,o,a,r,s,l,u,c,d,p,h,f;for(null==i&&(i={}),f=i.sticky_class,l=i.inner_scrolling,h=i.recalc_every,p=i.parent,d=i.offset_top,c=i.spacer,a=i.bottoming,null==d&&(d=0),null==p&&(p=void 0),null==l&&(l=!0),null==f&&(f="is_stuck"),n=t(document),null==a&&(a=!0),r=function(i,o,r,s,u,m,g,v){var y,w,b,x,I,C,T,_,S,E,k,P;if(!i.data("sticky_kit")){if(i.data("sticky_kit",!0),I=n.height(),T=i.parent(),null!=p&&(T=T.closest(p)),!T.length)throw"failed to find stick parent";if(b=!1,y=!1,k=null!=c?c&&i.closest(c):t("<div />"),k&&k.css("position",i.css("position")),_=function(){var t,e,a;if(!v)return I=n.height(),t=parseInt(T.css("border-top-width"),10),e=parseInt(T.css("padding-top"),10),o=parseInt(T.css("padding-bottom"),10),r=T.offset().top+t+e,s=T.height(),b&&(b=!1,y=!1,null==c&&(i.insertAfter(k),k.detach()),i.css({position:"",top:"",width:"",bottom:""}).removeClass(f),a=!0),u=i.offset().top-(parseInt(i.css("margin-top"),10)||0)-d,m=i.outerHeight(!0),g=i.css("float"),k&&k.css({width:i.outerWidth(!0),height:m,display:i.css("display"),"vertical-align":i.css("vertical-align"),"float":g}),a?P():void 0},_(),m!==s)return x=void 0,C=d,E=h,P=function(){var t,p,w,S,P,A;if(!v)return w=!1,null!=E&&(E-=1,E<=0&&(E=h,_(),w=!0)),w||n.height()===I||(_(),w=!0),S=e.scrollTop(),null!=x&&(p=S-x),x=S,b?(a&&(P=S+m+C>s+r,y&&!P&&(y=!1,i.css({position:"fixed",bottom:"",top:C}).trigger("sticky_kit:unbottom"))),S<u&&(b=!1,C=d,null==c&&("left"!==g&&"right"!==g||i.insertAfter(k),k.detach()),t={position:"",width:"",top:""},i.css(t).removeClass(f).trigger("sticky_kit:unstick")),l&&(A=e.height(),m+d>A&&(y||(C-=p,C=Math.max(A-m,C),C=Math.min(d,C),b&&i.css({top:C+"px"}))))):S>u&&(b=!0,t={position:"fixed",top:C},t.width="border-box"===i.css("box-sizing")?i.outerWidth()+"px":i.width()+"px",i.css(t).addClass(f),null==c&&(i.after(k),"left"!==g&&"right"!==g||k.append(i)),i.trigger("sticky_kit:stick")),b&&a&&(null==P&&(P=S+m+C>s+r),!y&&P)?(y=!0,"static"===T.css("position")&&T.css({position:"relative"}),i.css({position:"absolute",bottom:o,top:"auto"}).trigger("sticky_kit:bottom")):void 0},S=function(){return _(),P()},w=function(){if(v=!0,e.off("touchmove",P),e.off("scroll",P),e.off("resize",S),t(document.body).off("sticky_kit:recalc",S),i.off("sticky_kit:detach",w),i.removeData("sticky_kit"),i.css({position:"",bottom:"",top:"",width:""}),T.position("position",""),b)return null==c&&("left"!==g&&"right"!==g||i.insertAfter(k),k.remove()),i.removeClass(f)},e.on("touchmove",P),e.on("scroll",P),e.on("resize",S),t(document.body).on("sticky_kit:recalc",S),i.on("sticky_kit:detach",w),setTimeout(P,0)}},s=0,u=this.length;s<u;s++)o=this[s],r(t(o));return this}}.call(this),/*
* jQuery OwlCarousel v1.3.3 * * Copyright (c) 2013 Bartosz Wojciechowski * http://www.owlgraphic.com/owlcarousel/ * * Licensed under MIT * */"function"!=typeof Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),function(t,e,i){var n={init:function(e,i){var n=this;n.$elem=t(i),n.options=t.extend({},t.fn.owlCarousel.options,n.$elem.data(),e),n.userOptions=e,n.loadContent()},loadContent:function(){function e(t){var e,i="";if("function"==typeof n.options.jsonSuccess)n.options.jsonSuccess.apply(this,[t]);else{for(e in t.owl)t.owl.hasOwnProperty(e)&&(i+=t.owl[e].item);n.$elem.html(i)}n.logIn()}var i,n=this;"function"==typeof n.options.beforeInit&&n.options.beforeInit.apply(this,[n.$elem]),"string"==typeof n.options.jsonPath?(i=n.options.jsonPath,t.getJSON(i,e)):n.logIn()},logIn:function(){var t=this;t.$elem.data("owl-originalStyles",t.$elem.attr("style")),t.$elem.data("owl-originalClasses",t.$elem.attr("class")),t.$elem.css({opacity:0}),t.orignalItems=t.options.items,t.checkBrowser(),t.wrapperWidth=0,t.checkVisible=null,t.setVars()},setVars:function(){var t=this;return 0!==t.$elem.children().length&&(t.baseClass(),t.eventTypes(),t.$userItems=t.$elem.children(),t.itemsAmount=t.$userItems.length,t.wrapItems(),t.$owlItems=t.$elem.find(".owl-item"),t.$owlWrapper=t.$elem.find(".owl-wrapper"),t.playDirection="next",t.prevItem=0,t.prevArr=[0],t.currentItem=0,t.customEvents(),void t.onStartup())},onStartup:function(){var t=this;t.updateItems(),t.calculateAll(),t.buildControls(),t.updateControls(),t.response(),t.moveEvents(),t.stopOnHover(),t.owlStatus(),t.options.transitionStyle!==!1&&t.transitionTypes(t.options.transitionStyle),t.options.autoPlay===!0&&(t.options.autoPlay=5e3),t.play(),t.$elem.find(".owl-wrapper").css("display","block"),t.$elem.is(":visible")?t.$elem.css("opacity",1):t.watchVisibility(),t.onstartup=!1,t.eachMoveUpdate(),"function"==typeof t.options.afterInit&&t.options.afterInit.apply(this,[t.$elem])},eachMoveUpdate:function(){var t=this;t.options.lazyLoad===!0&&t.lazyLoad(),t.options.autoHeight===!0&&t.autoHeight(),t.onVisibleItems(),"function"==typeof t.options.afterAction&&t.options.afterAction.apply(this,[t.$elem])},updateVars:function(){var t=this;"function"==typeof t.options.beforeUpdate&&t.options.beforeUpdate.apply(this,[t.$elem]),t.watchVisibility(),t.updateItems(),t.calculateAll(),t.updatePosition(),t.updateControls(),t.eachMoveUpdate(),"function"==typeof t.options.afterUpdate&&t.options.afterUpdate.apply(this,[t.$elem])},reload:function(){var t=this;e.setTimeout(function(){t.updateVars()},0)},watchVisibility:function(){var t=this;return t.$elem.is(":visible")===!1&&(t.$elem.css({opacity:0}),e.clearInterval(t.autoPlayInterval),e.clearInterval(t.checkVisible),void(t.checkVisible=e.setInterval(function(){t.$elem.is(":visible")&&(t.reload(),t.$elem.animate({opacity:1},200),e.clearInterval(t.checkVisible))},500)))},wrapItems:function(){var t=this;t.$userItems.wrapAll('
var t=this;return document.querySelector(this.selector)?this.done():setTimeout(function(){return t.check()},P.elements.checkInterval)},t.prototype.done=function(){return this.progress=100},t}(),i=function(){function t(){var t,e,i=this;this.progress=null!=(e=this.states[document.readyState])?e:100,t=document.onreadystatechange,document.onreadystatechange=function(){return null!=i.states[document.readyState]&&(i.progress=i.states[document.readyState]),"function"==typeof t?t.apply(null,arguments):void 0}}return t.prototype.states={loading:0,interactive:50,complete:100},t}(),a=function(){function t(){var t,e,i,n,o,a=this;this.progress=0,t=0,o=[],n=0,i=k(),e=setInterval(function(){var r;return r=k()-i-50,i=k(),o.push(r),o.length>P.eventLag.sampleCount&&o.shift(),t=g(o),++n>=P.eventLag.minSamples&&t<P.eventLag.lagThreshold?(a.progress=100,clearInterval(e)):a.progress=100*(3/(t+3))},50)}return t}(),p=function(){function t(t){this.source=t,this.last=this.sinceLastUpdate=0,this.rate=P.initialRate,this.catchup=0,this.progress=this.lastProgress=0,null!=this.source&&(this.progress=L(this.source,"progress"))}return t.prototype.tick=function(t,e){var i;return null==e&&(e=L(this.source,"progress")),e>=100&&(this.done=!0),e===this.last?this.sinceLastUpdate+=t:(this.sinceLastUpdate&&(this.rate=(e-this.last)/this.sinceLastUpdate),this.catchup=(e-this.progress)/P.catchupTime,this.sinceLastUpdate=0,this.last=e),e>this.progress&&(this.progress+=this.catchup*t),i=1-Math.pow(this.progress/100,P.easeFactor),this.progress+=i*this.rate*t,this.progress=Math.min(this.lastProgress+P.maxProgressPerFrame,this.progress),this.progress=Math.max(0,this.progress),this.progress=Math.min(100,this.progress),this.lastProgress=this.progress,this.progress},t}(),R=null,z=null,v=null,N=null,m=null,y=null,u.running=!1,_=function(){if(P.restartOnPushState)return u.restart()},null!=window.history.pushState&&(U=window.history.pushState,window.history.pushState=function(){return _(),U.apply(window.history,arguments)}),null!=window.history.replaceState&&(Y=window.history.replaceState,window.history.replaceState=function(){return _(),Y.apply(window.history,arguments)}),d={ajax:t,elements:n,document:i,eventLag:a},(E=function(){var t,i,n,o,a,r,s,l;for(u.sources=R=[],r=["ajax","elements","document","eventLag"],i=0,o=r.length;i<o;i++)t=r[i],P[t]!==!1&&R.push(new d[t](P[t]));for(l=null!=(s=P.extraSources)?s:[],n=0,a=l.length;n<a;n++)$=l[n],R.push(new $(P));return u.bar=v=new e,z=[],N=new p})(),u.stop=function(){return u.trigger("stop"),u.running=!1,v.destroy(),y=!0,null!=m&&("function"==typeof w&&w(m),m=null),E()},u.restart=function(){return u.trigger("restart"),u.stop(),u.start()},u.go=function(){var t;return u.running=!0,v.render(),t=k(),y=!1,m=M(function(e,i){var n,o,a,r,s,l,c,d,h,f,m,g,w,b,x,I;for(d=100-v.progress,o=m=0,a=!0,l=g=0,b=R.length;g<b;l=++g)for($=R[l],f=null!=z[l]?z[l]:z[l]=[],s=null!=(I=$.elements)?I:[$],c=w=0,x=s.length;w<x;c=++w)r=s[c],h=null!=f[c]?f[c]:f[c]=new p(r),a&=h.done,h.done||(o++,m+=h.tick(e));return n=m/o,v.update(N.tick(e,n)),v.done()||a||y?(v.update(100),u.trigger("done"),setTimeout(function(){return v.finish(),u.running=!1,u.trigger("hide")},Math.max(P.ghostTime,Math.max(P.minTime-(k()-t),0)))):i()})},u.start=function(t){x(P,t),u.running=!0;try{v.render()}catch(e){l=e}return document.querySelector(".pace")?(u.trigger("start"),u.go()):setTimeout(u.start,50)},"function"==typeof define&&define.amd?define(["pace"],function(){return u}):"object"==typeof exports?module.exports=u:P.startOnPageLoad&&u.start()}.call(this),/*!
* jQuery Ripples plugin v0.5.3 / https://github.com/sirxemic/jquery.ripples * MIT License * @author sirxemic / https://sirxemic.com/ */function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}(function(t){"use strict";function e(t){return"%"==t[t.length-1]}function i(){function t(t,e){var n="OES_texture_"+t,o=n+"_linear",a=o in i,r=[n];return a&&r.push(o),{type:e,linearSupport:a,extensions:r}}var e=document.createElement("canvas");if(u=e.getContext("webgl")||e.getContext("experimental-webgl"),!u)return null;var i={};if(["OES_texture_float","OES_texture_half_float","OES_texture_float_linear","OES_texture_half_float_linear"].forEach(function(t){var e=u.getExtension(t);e&&(i[t]=e)}),!i.OES_texture_float)return null;var n=[];n.push(t("float",u.FLOAT)),i.OES_texture_half_float&&n.push(t("half_float",i.OES_texture_half_float.HALF_FLOAT_OES));var o=u.createTexture(),a=u.createFramebuffer();u.bindFramebuffer(u.FRAMEBUFFER,a),u.bindTexture(u.TEXTURE_2D,o),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_MIN_FILTER,u.NEAREST),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_MAG_FILTER,u.NEAREST),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_WRAP_S,u.CLAMP_TO_EDGE),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_WRAP_T,u.CLAMP_TO_EDGE);for(var r=null,s=0;s<n.length;s++)if(u.texImage2D(u.TEXTURE_2D,0,u.RGBA,32,32,0,u.RGBA,n[s].type,null),u.framebufferTexture2D(u.FRAMEBUFFER,u.COLOR_ATTACHMENT0,u.TEXTURE_2D,o,0),u.checkFramebufferStatus(u.FRAMEBUFFER)===u.FRAMEBUFFER_COMPLETE){r=n[s];break}return r}function n(t,e){try{return new ImageData(t,e)}catch(i){var n=document.createElement("canvas");return n.getContext("2d").createImageData(t,e)}}function o(t){var e=t.split(" ");if(1!==e.length)return e.map(function(e){switch(t){case"center":return"50%";case"top":case"left":return"0";case"right":case"bottom":return"100%";default:return e}});switch(t){case"center":return["50%","50%"];case"top":return["50%","0"];case"bottom":return["50%","100%"];case"left":return["0","50%"];case"right":return["100%","50%"];default:return[t,"50%"]}}function a(t,e,i){function n(t,e){var i=u.createShader(t);if(u.shaderSource(i,e),u.compileShader(i),!u.getShaderParameter(i,u.COMPILE_STATUS))throw new Error("compile error: "+u.getShaderInfoLog(i));return i}var o={};if(o.id=u.createProgram(),u.attachShader(o.id,n(u.VERTEX_SHADER,t)),u.attachShader(o.id,n(u.FRAGMENT_SHADER,e)),u.linkProgram(o.id),!u.getProgramParameter(o.id,u.LINK_STATUS))throw new Error("link error: "+u.getProgramInfoLog(o.id));o.uniforms={},o.locations={},u.useProgram(o.id),u.enableVertexAttribArray(0);for(var a,r,s=/uniform (\w+) (\w+)/g,l=t+e;null!=(a=s.exec(l));)r=a[2],o.locations[r]=u.getUniformLocation(o.id,r);return o}function r(t,e){u.activeTexture(u.TEXTURE0+(e||0)),u.bindTexture(u.TEXTURE_2D,t)}function s(t){var e=/url\(["']?([^"']*)["']?\)/.exec(t);return null==e?null:e[1]}function l(t){return t.match(/^data:/)}var u,c=t(window),d=i(),p=n(32,32);t("head").prepend("<style>.jquery-ripples { position: relative; z-index: 0; }</style>");var h=function(e,i){function n(){o.step(),requestAnimationFrame(n)}var o=this;this.$el=t(e),this.interactive=i.interactive,this.resolution=i.resolution,this.textureDelta=new Float32Array([1/this.resolution,1/this.resolution]),this.perturbance=i.perturbance,this.dropRadius=i.dropRadius,this.crossOrigin=i.crossOrigin,this.imageUrl=i.imageUrl;var a=document.createElement("canvas");a.width=this.$el.innerWidth(),a.height=this.$el.innerHeight(),this.canvas=a,this.$canvas=t(a),this.$canvas.css({position:"absolute",left:0,top:0,right:0,bottom:0,zIndex:-1}),this.$el.addClass("jquery-ripples").append(a),this.context=u=a.getContext("webgl")||a.getContext("experimental-webgl"),d.extensions.forEach(function(t){u.getExtension(t)}),t(window).on("resize",function(){var t=o.$el.innerWidth(),e=o.$el.innerHeight();t==o.canvas.width&&e==o.canvas.height||(a.width=t,a.height=e)}),this.textures=[],this.framebuffers=[],this.bufferWriteIndex=0,this.bufferReadIndex=1;for(var r=0;r<2;r++){var s=u.createTexture(),l=u.createFramebuffer();u.bindFramebuffer(u.FRAMEBUFFER,l),l.width=this.resolution,l.height=this.resolution,u.bindTexture(u.TEXTURE_2D,s),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_MIN_FILTER,d.linearSupport?u.LINEAR:u.NEAREST),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_MAG_FILTER,d.linearSupport?u.LINEAR:u.NEAREST),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_WRAP_S,u.CLAMP_TO_EDGE),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_WRAP_T,u.CLAMP_TO_EDGE),u.texImage2D(u.TEXTURE_2D,0,u.RGBA,this.resolution,this.resolution,0,u.RGBA,d.type,null),u.framebufferTexture2D(u.FRAMEBUFFER,u.COLOR_ATTACHMENT0,u.TEXTURE_2D,s,0),this.textures.push(s),this.framebuffers.push(l)}this.quad=u.createBuffer(),u.bindBuffer(u.ARRAY_BUFFER,this.quad),u.bufferData(u.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,1,1,-1,1]),u.STATIC_DRAW),this.initShaders(),this.initTexture(),this.setTransparentTexture(),this.loadImage(),u.clearColor(0,0,0,0),u.blendFunc(u.SRC_ALPHA,u.ONE_MINUS_SRC_ALPHA),this.visible=!0,this.running=!0,this.inited=!0,this.setupPointerEvents(),requestAnimationFrame(n)};h.DEFAULTS={imageUrl:null,resolution:256,dropRadius:20,perturbance:.03,interactive:!0,crossOrigin:""},h.prototype={setupPointerEvents:function(){function t(){return i.visible&&i.running&&i.interactive}function e(e,n){t()&&i.dropAtPointer(e,i.dropRadius*(n?1.5:1),n?.14:.01)}var i=this;this.$el.on("mousemove.ripples",function(t){e(t)}).on("touchmove.ripples, touchstart.ripples",function(t){for(var i=t.originalEvent.changedTouches,n=0;n<i.length;n++)e(i[n])}).on("mousedown.ripples",function(t){e(t,!0)})},loadImage:function(){var t=this;u=this.context;var e=this.imageUrl||s(this.originalCssBackgroundImage)||s(this.$el.css("backgroundImage"));if(e!=this.imageSource){if(this.imageSource=e,!this.imageSource)return void this.setTransparentTexture();var i=new Image;i.onload=function(){function e(t){return 0==(t&t-1)}u=t.context;var n=e(i.width)&&e(i.height)?u.REPEAT:u.CLAMP_TO_EDGE;u.bindTexture(u.TEXTURE_2D,t.backgroundTexture),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_WRAP_S,n),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_WRAP_T,n),u.texImage2D(u.TEXTURE_2D,0,u.RGBA,u.RGBA,u.UNSIGNED_BYTE,i),t.backgroundWidth=i.width,t.backgroundHeight=i.height,t.hideCssBackground()},i.onerror=function(){u=t.context,t.setTransparentTexture()},i.crossOrigin=l(this.imageSource)?null:this.crossOrigin,i.src=this.imageSource}},step:function(){u=this.context,this.visible&&(this.computeTextureBoundaries(),this.running&&this.update(),this.render())},drawQuad:function(){u.bindBuffer(u.ARRAY_BUFFER,this.quad),u.vertexAttribPointer(0,2,u.FLOAT,!1,0,0),u.drawArrays(u.TRIANGLE_FAN,0,4)},render:function(){u.bindFramebuffer(u.FRAMEBUFFER,null),u.viewport(0,0,this.canvas.width,this.canvas.height),u.enable(u.BLEND),u.clear(u.COLOR_BUFFER_BIT|u.DEPTH_BUFFER_BIT),u.useProgram(this.renderProgram.id),r(this.backgroundTexture,0),r(this.textures[0],1),u.uniform1f(this.renderProgram.locations.perturbance,this.perturbance),u.uniform2fv(this.renderProgram.locations.topLeft,this.renderProgram.uniforms.topLeft),u.uniform2fv(this.renderProgram.locations.bottomRight,this.renderProgram.uniforms.bottomRight),u.uniform2fv(this.renderProgram.locations.containerRatio,this.renderProgram.uniforms.containerRatio),u.uniform1i(this.renderProgram.locations.samplerBackground,0),u.uniform1i(this.renderProgram.locations.samplerRipples,1),this.drawQuad(),u.disable(u.BLEND)},update:function(){u.viewport(0,0,this.resolution,this.resolution),u.bindFramebuffer(u.FRAMEBUFFER,this.framebuffers[this.bufferWriteIndex]),r(this.textures[this.bufferReadIndex]),u.useProgram(this.updateProgram.id),this.drawQuad(),this.swapBufferIndices()},swapBufferIndices:function(){this.bufferWriteIndex=1-this.bufferWriteIndex,this.bufferReadIndex=1-this.bufferReadIndex},computeTextureBoundaries:function(){var t,i=this.$el.css("background-size"),n=this.$el.css("background-attachment"),a=o(this.$el.css("background-position"));if("fixed"==n?(t={left:window.pageXOffset,top:window.pageYOffset},t.width=c.width(),t.height=c.height()):(t=this.$el.offset(),t.width=this.$el.innerWidth(),t.height=this.$el.innerHeight()),"cover"==i)var r=Math.max(t.width/this.backgroundWidth,t.height/this.backgroundHeight),s=this.backgroundWidth*r,l=this.backgroundHeight*r;else if("contain"==i)var r=Math.min(t.width/this.backgroundWidth,t.height/this.backgroundHeight),s=this.backgroundWidth*r,l=this.backgroundHeight*r;else{i=i.split(" ");var s=i[0]||"",l=i[1]||s;e(s)?s=t.width*parseFloat(s)/100:"auto"!=s&&(s=parseFloat(s)),e(l)?l=t.height*parseFloat(l)/100:"auto"!=l&&(l=parseFloat(l)),"auto"==s&&"auto"==l?(s=this.backgroundWidth,l=this.backgroundHeight):("auto"==s&&(s=this.backgroundWidth*(l/this.backgroundHeight)),"auto"==l&&(l=this.backgroundHeight*(s/this.backgroundWidth)))}var u=a[0],d=a[1];u=e(u)?t.left+(t.width-s)*parseFloat(u)/100:t.left+parseFloat(u),d=e(d)?t.top+(t.height-l)*parseFloat(d)/100:t.top+parseFloat(d);var p=this.$el.offset();this.renderProgram.uniforms.topLeft=new Float32Array([(p.left-u)/s,(p.top-d)/l]),this.renderProgram.uniforms.bottomRight=new Float32Array([this.renderProgram.uniforms.topLeft[0]+this.$el.innerWidth()/s,this.renderProgram.uniforms.topLeft[1]+this.$el.innerHeight()/l]);var h=Math.max(this.canvas.width,this.canvas.height);this.renderProgram.uniforms.containerRatio=new Float32Array([this.canvas.width/h,this.canvas.height/h])},initShaders:function(){var t=["attribute vec2 vertex;","varying vec2 coord;","void main() {","coord = vertex * 0.5 + 0.5;","gl_Position = vec4(vertex, 0.0, 1.0);","}"].join("\n");this.dropProgram=a(t,["precision highp float;","const float PI = 3.141592653589793;","uniform sampler2D texture;","uniform vec2 center;","uniform float radius;","uniform float strength;","varying vec2 coord;","void main() {","vec4 info = texture2D(texture, coord);","float drop = max(0.0, 1.0 - length(center * 0.5 + 0.5 - coord) / radius);","drop = 0.5 - cos(drop * PI) * 0.5;","info.r += drop * strength;","gl_FragColor = info;","}"].join("\n")),this.updateProgram=a(t,["precision highp float;","uniform sampler2D texture;","uniform vec2 delta;","varying vec2 coord;","void main() {","vec4 info = texture2D(texture, coord);","vec2 dx = vec2(delta.x, 0.0);","vec2 dy = vec2(0.0, delta.y);","float average = (","texture2D(texture, coord - dx).r +","texture2D(texture, coord - dy).r +","texture2D(texture, coord + dx).r +","texture2D(texture, coord + dy).r",") * 0.25;","info.g += (average - info.r) * 2.0;","info.g *= 0.995;","info.r += info.g;","gl_FragColor = info;","}"].join("\n")),u.uniform2fv(this.updateProgram.locations.delta,this.textureDelta),this.renderProgram=a(["precision highp float;","attribute vec2 vertex;","uniform vec2 topLeft;","uniform vec2 bottomRight;","uniform vec2 containerRatio;","varying vec2 ripplesCoord;","varying vec2 backgroundCoord;","void main() {","backgroundCoord = mix(topLeft, bottomRight, vertex * 0.5 + 0.5);","backgroundCoord.y = 1.0 - backgroundCoord.y;","ripplesCoord = vec2(vertex.x, -vertex.y) * containerRatio * 0.5 + 0.5;","gl_Position = vec4(vertex.x, -vertex.y, 0.0, 1.0);","}"].join("\n"),["precision highp float;","uniform sampler2D samplerBackground;","uniform sampler2D samplerRipples;","uniform vec2 delta;","uniform float perturbance;","varying vec2 ripplesCoord;","varying vec2 backgroundCoord;","void main() {","float height = texture2D(samplerRipples, ripplesCoord).r;","float heightX = texture2D(samplerRipples, vec2(ripplesCoord.x + delta.x, ripplesCoord.y)).r;","float heightY = texture2D(samplerRipples, vec2(ripplesCoord.x, ripplesCoord.y + delta.y)).r;","vec3 dx = vec3(delta.x, heightX - height, 0.0);","vec3 dy = vec3(0.0, heightY - height, delta.y);","vec2 offset = -normalize(cross(dy, dx)).xz;","float specular = pow(max(0.0, dot(offset, normalize(vec2(-0.6, 1.0)))), 4.0);","gl_FragColor = texture2D(samplerBackground, backgroundCoord + offset * perturbance) + specular;","}"].join("\n")),u.uniform2fv(this.renderProgram.locations.delta,this.textureDelta)},initTexture:function(){this.backgroundTexture=u.createTexture(),u.bindTexture(u.TEXTURE_2D,this.backgroundTexture),u.pixelStorei(u.UNPACK_FLIP_Y_WEBGL,1),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_MAG_FILTER,u.LINEAR),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_MIN_FILTER,u.LINEAR)},setTransparentTexture:function(){u.bindTexture(u.TEXTURE_2D,this.backgroundTexture),u.texImage2D(u.TEXTURE_2D,0,u.RGBA,u.RGBA,u.UNSIGNED_BYTE,p)},hideCssBackground:function(){var t=this.$el[0].style.backgroundImage;"none"!=t&&(this.originalInlineCss=t,this.originalCssBackgroundImage=this.$el.css("backgroundImage"),this.$el.css("backgroundImage","none"))},restoreCssBackground:function(){this.$el.css("backgroundImage",this.originalInlineCss||"")},dropAtPointer:function(t,e,i){var n=parseInt(this.$el.css("border-left-width"))||0,o=parseInt(this.$el.css("border-top-width"))||0;this.drop(t.pageX-this.$el.offset().left-n,t.pageY-this.$el.offset().top-o,e,i)},drop:function(t,e,i,n){u=this.context;var o=this.$el.innerWidth(),a=this.$el.innerHeight(),s=Math.max(o,a);i/=s;var l=new Float32Array([(2*t-o)/s,(a-2*e)/s]);u.viewport(0,0,this.resolution,this.resolution),u.bindFramebuffer(u.FRAMEBUFFER,this.framebuffers[this.bufferWriteIndex]),r(this.textures[this.bufferReadIndex]),u.useProgram(this.dropProgram.id),u.uniform2fv(this.dropProgram.locations.center,l),u.uniform1f(this.dropProgram.locations.radius,i),u.uniform1f(this.dropProgram.locations.strength,n),this.drawQuad(),this.swapBufferIndices()},destroy:function(){this.$el.off(".ripples").removeClass("jquery-ripples").removeData("ripples"),this.$canvas.remove(),this.restoreCssBackground()},show:function(){this.visible=!0,this.$canvas.show(),this.hideCssBackground()},hide:function(){this.visible=!1,this.$canvas.hide(),this.restoreCssBackground()},pause:function(){this.running=!1},play:function(){this.running=!0},set:function(t,e){switch(t){case"dropRadius":case"perturbance":case"interactive":case"crossOrigin":this[t]=e;break;case"imageUrl":this.imageUrl=e,this.loadImage()}}};var f=t.fn.ripples;t.fn.ripples=function(e){if(!d)throw new Error("Your browser does not support WebGL, the OES_texture_float extension or rendering to floating point textures.");var i=arguments.length>1?Array.prototype.slice.call(arguments,1):void 0;return this.each(function(){var n=t(this),o=n.data("ripples"),a=t.extend({},h.DEFAULTS,n.data(),"object"==typeof e&&e);(o||"string"!=typeof e)&&(o?"string"==typeof e&&h.prototype[e].apply(o,i):n.data("ripples",o=new h(this,a)))})},t.fn.ripples.Constructor=h,t.fn.ripples.noConflict=function(){return t.fn.ripples=f,this}}),function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():e()}(this,function(){function t(t){if(null===m){for(var e=t.length,i=0,n=document.getElementById(a),o="
- ";i<e;)o+="
- "+t[i]+" ",i++;o+="
'+e(I[z].innerHTML)+"
",c&&(j+=b?'<a href="'+P[z]+'">'+_[z].getAttribute("aria-label")+"</a>
":''+_[z].getAttribute("aria-label")+"
")):I[z].textContent?(d&&(j+=''+T[z].textContent+"
"),j+=''+I[z].textContent+"
",c&&(j+=''+_[z].textContent+"
")):(d&&(j+=''+T[z].textContent+"
"),j+=''+I[z].textContent+"
",c&&(j+=''+_[z].textContent+"
")),g&&(j+='<a href="https://twitter.com/intent/tweet?in_reply_to='+k[z]+'" class="twitter_reply_icon"'+(y?' target="_blank">':">")+'Reply</a><a href="https://twitter.com/intent/retweet?tweet_id='+k[z]+'" class="twitter_retweet_icon"'+(y?' target="_blank">':">")+'Retweet</a><a href="https://twitter.com/intent/favorite?tweet_id='+k[z]+'" class="twitter_fav_icon"'+(y?' target="_blank">':">")+"Favorite</a>
"),v&&void 0!==S[z]&&void 0!==o(S[z])&&(j+='* Name : Just Another Parallax [Jarallax] * Version : 1.7.3 * Author : _nK https://nkdev.info * GitHub : https://github.com/nk-o/jarallax */
function(t){"use strict";function e(){o=t.innerWidth||document.documentElement.clientWidth,a=t.innerHeight||document.documentElement.clientHeight}function i(t,e,i){t.addEventListener?t.addEventListener(e,i):t.attachEvent("on"+e,function(){i.call(t)})}function n(i){t.requestAnimationFrame(function(){"scroll"!==i.type&&e();for(var t=0,n=f.length;t<n;t++)"scroll"!==i.type&&(f[t].coverImage(),f[t].clipContainer()),f[t].onScroll()})}Date.now||(Date.now=function(){return(new Date).getTime()}),t.requestAnimationFrame||!function(){for(var e=["webkit","moz"],i=0;i<e.length&&!t.requestAnimationFrame;++i){var n=e[i];t.requestAnimationFrame=t[n+"RequestAnimationFrame"],t.cancelAnimationFrame=t[n+"CancelAnimationFrame"]||t[n+"CancelRequestAnimationFrame"]}if(/iP(ad|hone|od).*OS 6/.test(t.navigator.userAgent)||!t.requestAnimationFrame||!t.cancelAnimationFrame){var o=0;t.requestAnimationFrame=function(t){var e=Date.now(),i=Math.max(o+16,e);return setTimeout(function(){t(o=i)},i-e)},t.cancelAnimationFrame=clearTimeout}}();var o,a,r=function(){if(!t.getComputedStyle)return!1;var e,i=document.createElement("p"),n={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};(document.body||document.documentElement).insertBefore(i,null);for(var o in n)"undefined"!=typeof i.style[o]&&(i.style[o]="translate3d(1px,1px,1px)",e=t.getComputedStyle(i).getPropertyValue(n[o]));return(document.body||document.documentElement).removeChild(i),"undefined"!=typeof e&&e.length>0&&"none"!==e}(),s=navigator.userAgent.toLowerCase().indexOf("android")>-1,l=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!t.MSStream,u=!!t.opera,c=/Edge\/\d+/.test(navigator.userAgent),d=/Trident.*rv[ :]*11\./.test(navigator.userAgent),p=!!Function("/*@cc_on return document.documentMode===10@*/")(),h=document.all&&!t.atob;e();var f=[],m=function(){function t(t,i){var n,o=this;if(o.$item=t,o.defaults={type:"scroll",speed:.5,imgSrc:null,imgWidth:null,imgHeight:null,enableTransform:!0,elementInViewport:null,zIndex:-100,noAndroid:!1,noIos:!0,onScroll:null,onInit:null,onDestroy:null,onCoverImage:null},n=JSON.parse(o.$item.getAttribute("data-jarallax")||"{}"),o.options=o.extend({},o.defaults,n,i),!(s&&o.options.noAndroid||l&&o.options.noIos)){o.options.speed=Math.min(2,Math.max(-1,parseFloat(o.options.speed)));var a=o.options.elementInViewport;a&&"object"==typeof a&&"undefined"!=typeof a.length&&(a=a[0]),!a instanceof Element&&(a=null),o.options.elementInViewport=a,o.instanceID=e++,o.image={src:o.options.imgSrc||null,$container:null,$item:null,width:o.options.imgWidth||null,height:o.options.imgHeight||null,useImgTag:l||s||u||d||p||c},o.initImg()&&o.init()}}var e=0;return t}();m.prototype.css=function(e,i){if("string"==typeof i)return t.getComputedStyle?t.getComputedStyle(e).getPropertyValue(i):e.style[i];i.transform&&(i.WebkitTransform=i.MozTransform=i.transform);for(var n in i)e.style[n]=i[n];return e},m.prototype.extend=function(t){t=t||{};for(var e=1;e<arguments.length;e++)if(arguments[e])for(var i in arguments[e])arguments[e].hasOwnProperty(i)&&(t[i]=arguments[e][i]);return t},m.prototype.initImg=function(){var t=this;return null===t.image.src&&(t.image.src=t.css(t.$item,"background-image").replace(/^url\(['"]?/g,"").replace(/['"]?\)$/g,"")),!(!t.image.src||"none"===t.image.src)},m.prototype.init=function(){function t(){e.coverImage(),e.clipContainer(),e.onScroll(!0),e.options.onInit&&e.options.onInit.call(e),setTimeout(function(){e.$item&&e.css(e.$item,{"background-image":"none","background-attachment":"scroll","background-size":"auto"})},0)}var e=this,i={position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden",pointerEvents:"none"},n={position:"fixed"};e.$item.setAttribute("data-jarallax-original-styles",e.$item.getAttribute("style")),"static"===e.css(e.$item,"position")&&e.css(e.$item,{position:"relative"}),"auto"===e.css(e.$item,"z-index")&&e.css(e.$item,{zIndex:0}),e.image.$container=document.createElement("div"),e.css(e.image.$container,i),e.css(e.image.$container,{visibility:"hidden","z-index":e.options.zIndex}),e.image.$container.setAttribute("id","jarallax-container-"+e.instanceID),e.$item.appendChild(e.image.$container),e.image.useImgTag&&r&&e.options.enableTransform?(e.image.$item=document.createElement("img"),e.image.$item.setAttribute("src",e.image.src),n=e.extend({"max-width":"none"},i,n)):(e.image.$item=document.createElement("div"),n=e.extend({"background-position":"50% 50%","background-size":"100% auto","background-repeat":"no-repeat no-repeat","background-image":'url("'+e.image.src+'")'},i,n)),h&&(n.backgroundAttachment="fixed"),e.parentWithTransform=0;for(var o=e.$item;null!==o&&o!==document&&0===e.parentWithTransform;){var a=e.css(o,"-webkit-transform")||e.css(o,"-moz-transform")||e.css(o,"transform");a&&"none"!==a&&(e.parentWithTransform=1,e.css(e.image.$container,{transform:"translateX(0) translateY(0)"})),o=o.parentNode}e.css(e.image.$item,n),e.image.$container.appendChild(e.image.$item),e.image.width&&e.image.height?t():e.getImageSize(e.image.src,function(i,n){e.image.width=i,e.image.height=n,t()}),f.push(e)},m.prototype.destroy=function(){for(var t=this,e=0,i=f.length;e<i;e++)if(f[e].instanceID===t.instanceID){f.splice(e,1);break}var n=t.$item.getAttribute("data-jarallax-original-styles");t.$item.removeAttribute("data-jarallax-original-styles"),"null"===n?t.$item.removeAttribute("style"):t.$item.setAttribute("style",n),t.$clipStyles&&t.$clipStyles.parentNode.removeChild(t.$clipStyles),t.image.$container.parentNode.removeChild(t.image.$container),t.options.onDestroy&&t.options.onDestroy.call(t),delete t.$item.jarallax;for(var o in t)delete t[o]},m.prototype.getImageSize=function(t,e){if(t&&e){var i=new Image;i.onload=function(){e(i.width,i.height)},i.src=t}},m.prototype.clipContainer=function(){if(!h){var t=this,e=t.image.$container.getBoundingClientRect(),i=e.width,n=e.height;if(!t.$clipStyles){t.$clipStyles=document.createElement("style"),t.$clipStyles.setAttribute("type","text/css"),t.$clipStyles.setAttribute("id","#jarallax-clip-"+t.instanceID);var o=document.head||document.getElementsByTagName("head")[0];o.appendChild(t.$clipStyles)}var a=["#jarallax-container-"+t.instanceID+" {"," clip: rect(0 "+i+"px "+n+"px 0);"," clip: rect(0, "+i+"px, "+n+"px, 0);","}"].join("\n");t.$clipStyles.styleSheet?t.$clipStyles.styleSheet.cssText=a:t.$clipStyles.innerHTML=a}},m.prototype.coverImage=function(){var t=this;if(t.image.width&&t.image.height){var e=t.image.$container.getBoundingClientRect(),i=e.width,n=e.height,o=e.left,s=t.image.width,l=t.image.height,u=t.options.speed,c="scroll"===t.options.type||"scroll-opacity"===t.options.type,d=0,p=0,h=n,f=0,m=0;c&&(d=u<0?u*Math.max(n,a):u*(n+a),u>1?h=Math.abs(d-a):u<0?h=d/u+Math.abs(d):h+=Math.abs(a-n)*(1-u),d/=2),p=h*s/l,p<i&&(p=i,h=p*l/s),t.bgPosVerticalCenter=0,!(c&&h<a)||r&&t.options.enableTransform||(t.bgPosVerticalCenter=(a-h)/2,h=a),c?(f=o+(i-p)/2,m=(a-h)/2):(f=(i-p)/2,m=(n-h)/2),r&&t.options.enableTransform&&t.parentWithTransform&&(f-=o),t.parallaxScrollDistance=d,t.css(t.image.$item,{width:p+"px",height:h+"px",marginLeft:f+"px",marginTop:m+"px"}),t.options.onCoverImage&&t.options.onCoverImage.call(t)}},m.prototype.isVisible=function(){return this.isElementInViewport||!1},m.prototype.onScroll=function(t){var e=this;if(e.image.width&&e.image.height){var i=e.$item.getBoundingClientRect(),n=i.top,s=i.height,l={position:"absolute",visibility:"visible",backgroundPosition:"50% 50%"},u=i;if(e.options.elementInViewport&&(u=e.options.elementInViewport.getBoundingClientRect()),e.isElementInViewport=u.bottom>=0&&u.right>=0&&u.top<=a&&u.left<=o,t||e.isElementInViewport){var c=Math.max(0,n),d=Math.max(0,s+n),p=Math.max(0,-n),f=Math.max(0,n+s-a),m=Math.max(0,s-(n+s-a)),g=Math.max(0,-n+a-s),v=1-2*(a-n)/(a+s),y=1;if(s<a?y=1-(p||f)/s:d<=a?y=d/a:m<=a&&(y=m/a),"opacity"!==e.options.type&&"scale-opacity"!==e.options.type&&"scroll-opacity"!==e.options.type||(l.transform="translate3d(0, 0, 0)",l.opacity=y),"scale"===e.options.type||"scale-opacity"===e.options.type){var w=1;e.options.speed<0?w-=e.options.speed*y:w+=e.options.speed*(1-y),l.transform="scale("+w+") translate3d(0, 0, 0)"}if("scroll"===e.options.type||"scroll-opacity"===e.options.type){var b=e.parallaxScrollDistance*v;r&&e.options.enableTransform?(e.parentWithTransform&&(b-=n),l.transform="translate3d(0, "+b+"px, 0)"):e.image.useImgTag?l.top=b+"px":(e.bgPosVerticalCenter&&(b+=e.bgPosVerticalCenter),l.backgroundPosition="50% "+b+"px"),l.position=h?"absolute":"fixed"}e.css(e.image.$item,l),e.options.onScroll&&e.options.onScroll.call(e,{section:i,beforeTop:c,beforeTopEnd:d,afterTop:p,beforeBottom:f,beforeBottomEnd:m,afterBottom:g,visiblePercent:y,fromViewportCenter:v})}}},i(t,"scroll",n),i(t,"resize",n),i(t,"orientationchange",n),i(t,"load",n);var g=function(t){("object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName)&&(t=[t]);var e,i=arguments[1],n=Array.prototype.slice.call(arguments,2),o=t.length,a=0;for(a;a<o;a++)if("object"==typeof i||"undefined"==typeof i?t[a].jarallax||(t[a].jarallax=new m(t[a],i)):t[a].jarallax&&(e=t[a].jarallax[i].apply(t[a].jarallax,n)),"undefined"!=typeof e)return e;return t};g.constructor=m;var v=t.jarallax;if(t.jarallax=g,t.jarallax.noConflict=function(){return t.jarallax=v,this},"undefined"!=typeof jQuery){var y=function(){var e=arguments||[];Array.prototype.unshift.call(e,this);var i=g.apply(t,e);return"object"!=typeof i?i:this};y.constructor=m;var w=jQuery.fn.jarallax;jQuery.fn.jarallax=y,jQuery.fn.jarallax.noConflict=function(){return jQuery.fn.jarallax=w,this}}i(t,"DOMContentLoaded",function(){g(document.querySelectorAll("[data-jarallax], [data-jarallax-video]"))})}(window),/*!
* Name : Video Worker (wrapper for Youtube, Vimeo and Local videos) * Version : 1.2.1 * Author : _nK https://nkdev.info * GitHub : https://github.com/nk-o/jarallax */
function(t){"use strict";function e(t){t=t||{};for(var e=1;e<arguments.length;e++)if(arguments[e])for(var i in arguments[e])arguments[e].hasOwnProperty(i)&&(t[i]=arguments[e][i]);return t}function i(){this._done=[],this._fail=[]}function n(t,e,i){t.addEventListener?t.addEventListener(e,i):t.attachEvent("on"+e,function(){i.call(t)})}i.prototype={execute:function(t,e){var i=t.length;for(e=Array.prototype.slice.call(e);i--;)t[i].apply(null,e)},resolve:function(){this.execute(this._done,arguments)},reject:function(){this.execute(this._fail,arguments)},done:function(t){this._done.push(t)},fail:function(t){this._fail.push(t)}};var o=function(){function t(t,n){var o=this;o.url=t,o.options_default={autoplay:1,loop:1,mute:1,controls:0,startTime:0,endTime:0},o.options=e({},o.options_default,n),o.videoID=o.parseURL(t),o.videoID&&(o.ID=i++,o.loadAPI(),o.init())}var i=0;return t}();o.prototype.parseURL=function(t){function e(t){var e=/.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=)([^#\&\?]*).*/,i=t.match(e);return!(!i||11!==i[1].length)&&i[1]}function i(t){var e=/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/,i=t.match(e);return!(!i||!i[3])&&i[3]}function n(t){for(var e=t.split(/,(?=mp4\:|webm\:|ogv\:|ogg\:)/),i={},n=0,o=0;o<e.length;o++){var a=e[o].match(/^(mp4|webm|ogv|ogg)\:(.*)/);a&&a[1]&&a[2]&&(i["ogv"===a[1]?"ogg":a[1]]=a[2],n=1)}return!!n&&i}var o=e(t),a=i(t),r=n(t);return o?(this.type="youtube",o):a?(this.type="vimeo",a):!!r&&(this.type="local",r)},o.prototype.isValid=function(){return!!this.videoID},o.prototype.on=function(t,e){this.userEventsList=this.userEventsList||[],(this.userEventsList[t]||(this.userEventsList[t]=[])).push(e)},o.prototype.off=function(t,e){if(this.userEventsList&&this.userEventsList[t])if(e)for(var i=0;i<this.userEventsList[t].length;i++)this.userEventsList[t][i]===e&&(this.userEventsList[t][i]=!1);else delete this.userEventsList[t]},o.prototype.fire=function(t){var e=[].slice.call(arguments,1);if(this.userEventsList&&"undefined"!=typeof this.userEventsList[t])for(var i in this.userEventsList[t])this.userEventsList[t][i]&&this.userEventsList[t][i].apply(this,e)},o.prototype.play=function(t){var e=this;e.player&&("youtube"===e.type&&e.player.playVideo&&("undefined"!=typeof t&&e.player.seekTo(t||0),e.player.playVideo()),"vimeo"===e.type&&("undefined"!=typeof t&&e.player.setCurrentTime(t),e.player.getPaused().then(function(t){t&&e.player.play()})),"local"===e.type&&("undefined"!=typeof t&&(e.player.currentTime=t),e.player.play()))},o.prototype.pause=function(){this.player&&("youtube"===this.type&&this.player.pauseVideo&&this.player.pauseVideo(),"vimeo"===this.type&&this.player.pause(),"local"===this.type&&this.player.pause())},o.prototype.getImageURL=function(t){var e=this;if(e.videoImage)return void t(e.videoImage);if("youtube"===e.type){var i=["maxresdefault","sddefault","hqdefault","0"],n=0,o=new Image;o.onload=function(){120!==(this.naturalWidth||this.width)||n===i.length-1?(e.videoImage="https://img.youtube.com/vi/"+e.videoID+"/"+i[n]+".jpg",t(e.videoImage)):(n++,this.src="https://img.youtube.com/vi/"+e.videoID+"/"+i[n]+".jpg")},o.src="https://img.youtube.com/vi/"+e.videoID+"/"+i[n]+".jpg"}if("vimeo"===e.type){var a=new XMLHttpRequest;a.open("GET","https://vimeo.com/api/v2/video/"+e.videoID+".json",!0),a.onreadystatechange=function(){if(4===this.readyState&&this.status>=200&&this.status<400){var i=JSON.parse(this.responseText);e.videoImage=i[0].thumbnail_large,t(e.videoImage)}},a.send(),a=null}},o.prototype.getIframe=function(e){var i=this;return i.$iframe?void e(i.$iframe):void i.onAPIready(function(){function o(t,e,i){var n=document.createElement("source");n.src=e,n.type=i,t.appendChild(n)}var a;if(i.$iframe||(a=document.createElement("div"),a.style.display="none"),"youtube"===i.type){i.playerOptions={},i.playerOptions.videoId=i.videoID,i.playerOptions.playerVars={autohide:1,rel:0,autoplay:0},i.options.controls||(i.playerOptions.playerVars.iv_load_policy=3,i.playerOptions.playerVars.modestbranding=1,i.playerOptions.playerVars.controls=0,i.playerOptions.playerVars.showinfo=0,i.playerOptions.playerVars.disablekb=1);var r,s;i.playerOptions.events={onReady:function(t){i.options.mute&&t.target.mute(),i.options.autoplay&&i.play(i.options.startTime),i.fire("ready",t)},onStateChange:function(t){i.options.loop&&t.data===YT.PlayerState.ENDED&&i.play(i.options.startTime),r||t.data!==YT.PlayerState.PLAYING||(r=1,i.fire("started",t)),t.data===YT.PlayerState.PLAYING&&i.fire("play",t),t.data===YT.PlayerState.PAUSED&&i.fire("pause",t),t.data===YT.PlayerState.ENDED&&i.fire("end",t),i.options.endTime&&(t.data===YT.PlayerState.PLAYING?s=setInterval(function(){i.options.endTime&&i.player.getCurrentTime()>=i.options.endTime&&(i.options.loop?i.play(i.options.startTime):i.pause())},150):clearInterval(s))}};var l=!i.$iframe;if(l){var u=document.createElement("div");u.setAttribute("id",i.playerID),a.appendChild(u),document.body.appendChild(a)}i.player=i.player||new t.YT.Player(i.playerID,i.playerOptions),l&&(i.$iframe=document.getElementById(i.playerID),i.videoWidth=parseInt(i.$iframe.getAttribute("width"),10)||1280,i.videoHeight=parseInt(i.$iframe.getAttribute("height"),10)||720)}if("vimeo"===i.type){i.playerOptions="",i.playerOptions+="player_id="+i.playerID,i.playerOptions+="&autopause=0",i.options.controls||(i.playerOptions+="&badge=0&byline=0&portrait=0&title=0"),i.playerOptions+="&autoplay="+(i.options.autoplay?"1":"0"),i.playerOptions+="&loop="+(i.options.loop?1:0),i.$iframe||(i.$iframe=document.createElement("iframe"),i.$iframe.setAttribute("id",i.playerID),i.$iframe.setAttribute("src","https://player.vimeo.com/video/"+i.videoID+"?"+i.playerOptions),i.$iframe.setAttribute("frameborder","0"),a.appendChild(i.$iframe),document.body.appendChild(a)),i.player=i.player||new Vimeo.Player(i.$iframe),i.player.getVideoWidth().then(function(t){i.videoWidth=t||1280}),i.player.getVideoHeight().then(function(t){i.videoHeight=t||720}),i.player.setVolume(i.options.mute?0:100);var c;i.player.on("timeupdate",function(t){c||i.fire("started",t),c=1,i.options.endTime&&i.options.endTime&&t.seconds>=i.options.endTime&&(i.options.loop?i.play(i.options.startTime):i.pause())}),i.player.on("play",function(t){i.fire("play",t),i.options.startTime&&0===t.seconds&&i.play(i.options.startTime)}),i.player.on("pause",function(t){i.fire("pause",t)}),i.player.on("ended",function(t){i.fire("end",t)}),i.player.on("loaded",function(t){i.fire("ready",t)})}if("local"===i.type){if(!i.$iframe){i.$iframe=document.createElement("video"),i.options.mute&&(i.$iframe.muted=!0),i.options.loop&&(i.$iframe.loop=!0),i.$iframe.setAttribute("id",i.playerID),a.appendChild(i.$iframe),document.body.appendChild(a);for(var d in i.videoID)o(i.$iframe,i.videoID[d],"video/"+d)}i.player=i.player||i.$iframe;var p;n(i.player,"playing",function(t){p||i.fire("started",t),p=1}),n(i.player,"timeupdate",function(){i.options.endTime&&i.options.endTime&&this.currentTime>=i.options.endTime&&(i.options.loop?i.play(i.options.startTime):i.pause())}),n(i.player,"play",function(t){i.fire("play",t)}),n(i.player,"pause",function(t){i.fire("pause",t)}),n(i.player,"ended",function(t){i.fire("end",t)}),n(i.player,"loadedmetadata",function(){i.videoWidth=this.videoWidth||1280,i.videoHeight=this.videoHeight||720,i.fire("ready"),i.options.autoplay&&i.play(i.options.startTime)})}e(i.$iframe)})},o.prototype.init=function(){var t=this;t.playerID="VideoWorker-"+t.ID};var a=0,r=0;o.prototype.loadAPI=function(){var e=this;if(!a||!r){var i="";if("youtube"!==e.type||a||(a=1,i="//www.youtube.com/iframe_api"),"vimeo"!==e.type||r||(r=1,i="//player.vimeo.com/api/player.js"),i){"file://"===t.location.origin&&(i="http:"+i);var n=document.createElement("script"),o=document.getElementsByTagName("head")[0];n.src=i,o.appendChild(n),o=null,n=null}}};var s=0,l=0,u=new i,c=new i;o.prototype.onAPIready=function(e){var i=this;if("youtube"===i.type&&("undefined"!=typeof YT&&0!==YT.loaded||s?"object"==typeof YT&&1===YT.loaded?e():u.done(function(){e()}):(s=1,t.onYouTubeIframeAPIReady=function(){t.onYouTubeIframeAPIReady=null,u.resolve("done"),e()})),"vimeo"===i.type)if("undefined"!=typeof Vimeo||l)"undefined"!=typeof Vimeo?e():c.done(function(){e()});else{l=1;var n=setInterval(function(){"undefined"!=typeof Vimeo&&(clearInterval(n),c.resolve("done"),e())},20)}"local"===i.type&&e()},t.VideoWorker=o}(window),/*!
* Name : Video Background Extension for Jarallax * Version : 1.0.0 * Author : _nK http://nkdev.info * GitHub : https://github.com/nk-o/jarallax */
function(){"use strict";if("undefined"!=typeof jarallax){var t=jarallax.constructor,e=t.prototype.init;t.prototype.init=function(){var t=this;e.apply(t),t.video&&t.video.getIframe(function(e){var i=e.parentNode;t.css(e,{position:"fixed",top:"0px",left:"0px",right:"0px",bottom:"0px",width:"100%",height:"100%",maxWidth:"none",maxHeight:"none",visibility:"visible",margin:0,zIndex:-1}),t.$video=e,t.image.$container.appendChild(e),i.parentNode.removeChild(i)})};var i=t.prototype.coverImage;t.prototype.coverImage=function(){var t=this;i.apply(t),t.video&&"IFRAME"===t.image.$item.nodeName&&t.css(t.image.$item,{height:t.image.$item.getBoundingClientRect().height+400+"px",marginTop:-200+parseFloat(t.css(t.image.$item,"margin-top"))+"px"})};var n=t.prototype.initImg;t.prototype.initImg=function(){var t=this,e=n.apply(t);if(t.options.videoSrc||(t.options.videoSrc=t.$item.getAttribute("data-jarallax-video")||!1),t.options.videoSrc){var i=new VideoWorker(t.options.videoSrc,{startTime:t.options.videoStartTime||0,endTime:t.options.videoEndTime||0});if(i.isValid()&&(t.image.useImgTag=!0,i.on("ready",function(){var e=t.onScroll;t.onScroll=function(){e.apply(t),t.isVisible()?i.play():i.pause()}}),i.on("started",function(){t.image.$default_item=t.image.$item,t.image.$item=t.$video,t.image.width=t.options.imgWidth=t.video.videoWidth||1280,t.image.height=t.options.imgHeight=t.video.videoHeight||720,t.coverImage(),t.clipContainer(),t.onScroll(),t.image.$default_item&&(t.image.$default_item.style.display="none")}),t.video=i,"local"!==i.type&&i.getImageURL(function(e){t.image.src=e,t.init()})),"local"!==i.type)return!1;if(!e)return t.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",!0}return e};var o=t.prototype.destroy;t.prototype.destroy=function(){var t=this;o.apply(t)}}}(),/**
* Single Page Nav Plugin * Copyright (c) 2014 Chris Wojcik <hello@chriswojcik.net> * Dual licensed under MIT and GPL. * @author Chris Wojcik * @version 1.2.0 */
"function"!=typeof Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),function(t,e,i,n){"use strict";var o={init:function(i,n){this.options=t.extend({},t.fn.singlePageNav.defaults,i),this.container=n,this.$container=t(n),this.$links=this.$container.find("a"),""!==this.options.filter&&(this.$links=this.$links.filter(this.options.filter)),this.$window=t(e),this.$htmlbody=t("html, body"),this.$links.on("click.singlePageNav",t.proxy(this.handleClick,this)),this.didScroll=!1,this.checkPosition(),this.setTimer()},handleClick:function(e){var i=this,n=e.currentTarget,o=t(n.hash);e.preventDefault(),o.length&&(i.clearTimer(),"function"==typeof i.options.beforeStart&&i.options.beforeStart(),i.setActiveLink(n.hash),i.scrollTo(o,function(){i.options.updateHash&&history.pushState&&history.pushState(null,null,n.hash),i.setTimer(),"function"==typeof i.options.onComplete&&i.options.onComplete()}))},scrollTo:function(t,e){var i=this,n=i.getCoords(t).top,o=!1;i.$htmlbody.stop().animate({scrollTop:n},{duration:i.options.speed,easing:i.options.easing,complete:function(){"function"!=typeof e||o||e(),o=!0}})},setTimer:function(){var t=this;t.$window.on("scroll.singlePageNav",function(){t.didScroll=!0}),t.timer=setInterval(function(){t.didScroll&&(t.didScroll=!1,t.checkPosition())},250)},clearTimer:function(){clearInterval(this.timer),this.$window.off("scroll.singlePageNav"),this.didScroll=!1},checkPosition:function(){var t=this.$window.scrollTop(),e=this.getCurrentSection(t);null!==e&&this.setActiveLink(e)},getCoords:function(t){return{top:Math.round(t.offset().top)-this.options.offset}},setActiveLink:function(t){var e=this.$container.find("a[href$='"+t+"']");e.hasClass(this.options.currentClass)||(this.$links.removeClass(this.options.currentClass),e.addClass(this.options.currentClass))},getCurrentSection:function(e){var i,n,o,a;for(i=0;i<this.$links.length;i++)n=this.$links[i].hash,t(n).length&&(o=this.getCoords(t(n)),e>=o.top-this.options.threshold&&(a=n));return a||(0===this.$links.length?null:this.$links[0].hash)}};t.fn.singlePageNav=function(t){return this.each(function(){var e=Object.create(o);e.init(t,this)})},t.fn.singlePageNav.defaults={offset:0,threshold:120,speed:400,currentClass:"current",easing:"swing",updateHash:!1,filter:"",onComplete:!1,beforeStart:!1}}(jQuery,window,document), // Licensed under the terms of the MIT license. function(){function t(){var t=!1;t&&u("keydown",o),y.keyboardSupport&&!t&&l("keydown",o)}function e(){if(document.body){var e=document.body,i=document.documentElement,n=window.innerHeight,o=e.scrollHeight;if(C=document.compatMode.indexOf("CSS")>=0?i:e,g=e,t(),I=!0,top!=self)b=!0;else if(o>n&&(e.offsetHeight<=n||i.offsetHeight<=n)&&(i.style.height="auto",C.offsetHeight<=n)){var a=document.createElement("div");a.style.clear="both",e.appendChild(a)}y.fixedBackground||w||(e.style.backgroundAttachment="scroll",i.style.backgroundAttachment="scroll")}}function i(t,e,i,n){if(n||(n=1e3),d(e,i),1!=y.accelerationMax){var o=+new Date,a=o-k;if(a<y.accelerationDelta){var r=(1+30/a)/2;r>1&&(r=Math.min(r,y.accelerationMax),e*=r,i*=r)}k=+new Date}if(S.push({x:e,y:i,lastX:e<0?.99:-.99,lastY:i<0?.99:-.99,start:+new Date}),!E){var s=t===document.body,l=function(o){for(var a=+new Date,r=0,u=0,c=0;c<S.length;c++){var d=S[c],p=a-d.start,h=p>=y.animationTime,f=h?1:p/y.animationTime;y.pulseAlgorithm&&(f=m(f));var g=d.x*f-d.lastX>>0,v=d.y*f-d.lastY>>0;r+=g,u+=v,d.lastX+=g,d.lastY+=v,h&&(S.splice(c,1),c--)}s?window.scrollBy(r,u):(r&&(t.scrollLeft+=r),u&&(t.scrollTop+=u)),e||i||(S=[]),S.length?M(l,t,n/y.frameRate+1):E=!1};M(l,t,0),E=!0}}function n(t){I||e();var n=t.target,o=s(n);if(!o||t.defaultPrevented||c(g,"embed")||c(n,"embed")&&/\.pdf/i.test(n.src))return!0;var a=t.wheelDeltaX||0,r=t.wheelDeltaY||0;return a||r||(r=t.wheelDelta||0),!(y.touchpadSupport||!p(r))||(Math.abs(a)>1.2&&(a*=y.stepSize/120),Math.abs(r)>1.2&&(r*=y.stepSize/120),i(o,-a,-r),void t.preventDefault())}function o(t){var e=t.target,n=t.ctrlKey||t.altKey||t.metaKey||t.shiftKey&&t.keyCode!==_.spacebar;if(/input|textarea|select|embed/i.test(e.nodeName)||e.isContentEditable||t.defaultPrevented||n)return!0;if(c(e,"button")&&t.keyCode===_.spacebar)return!0;var o,a=0,r=0,l=s(g),u=l.clientHeight;switch(l==document.body&&(u=window.innerHeight),t.keyCode){case _.up:r=-y.arrowScroll;break;case _.down:r=y.arrowScroll;break;case _.spacebar:o=t.shiftKey?1:-1,r=-o*u*.9;break;case _.pageup:r=.9*-u;break;case _.pagedown:r=.9*u;break;case _.home:r=-l.scrollTop;break;case _.end:var d=l.scrollHeight-l.scrollTop-u;r=d>0?d+10:0;break;case _.left:a=-y.arrowScroll;break;case _.right:a=y.arrowScroll;break;default:return!0}i(l,a,r),t.preventDefault()}function a(t){g=t.target}function r(t,e){for(var i=t.length;i--;)P[L(t[i])]=e;return e}function s(t){var e=[],i=C.scrollHeight;do{var n=P[L(t)];if(n)return r(e,n);if(e.push(t),i===t.scrollHeight){if(!b||C.clientHeight+10<i)return r(e,document.body)}else if(t.clientHeight+10<t.scrollHeight&&(overflow=getComputedStyle(t,"").getPropertyValue("overflow-y"),"scroll"===overflow||"auto"===overflow))return r(e,t)}while(t=t.parentNode)}function l(t,e,i){window.addEventListener(t,e,i||!1)}function u(t,e,i){window.removeEventListener(t,e,i||!1)}function c(t,e){return(t.nodeName||"").toLowerCase()===e.toLowerCase()}function d(t,e){t=t>0?1:-1,e=e>0?1:-1,x.x===t&&x.y===e||(x.x=t,x.y=e,S=[],k=0)}function p(t){if(t){t=Math.abs(t),T.push(t),T.shift(),clearTimeout(A);var e=T[0]==T[1]&&T[1]==T[2],i=h(T[0],120)&&h(T[1],120)&&h(T[2],120);return!(e||i)}}function h(t,e){return Math.floor(t/e)==t/e}function f(t){var e,i,n;return t*=y.pulseScale,t<1?e=t-(1-Math.exp(-t)):(i=Math.exp(-1),t-=1,n=1-Math.exp(-t),e=i+n*(1-i)),e*y.pulseNormalize}function m(t){return t>=1?1:t<=0?0:(1==y.pulseNormalize&&(y.pulseNormalize/=f(1)),f(t))}var g,v={frameRate:150,animationTime:500,stepSize:150,pulseAlgorithm:!0,pulseScale:6,pulseNormalize:1,accelerationDelta:20,accelerationMax:1,keyboardSupport:!0,arrowScroll:50,touchpadSupport:!0,fixedBackground:!0,excluded:""},y=v,w=!1,b=!1,x={x:0,y:0},I=!1,C=document.documentElement,T=[120,120,120],_={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36},y=v,S=[],E=!1,k=+new Date,P={};setInterval(function(){P={}},1e4);var A,L=function(){var t=0;return function(e){return e.uniqueID||(e.uniqueID=t++)}}(),M=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(t,e,i){window.setTimeout(t,i||1e3/60)}}(),z=/chrome/i.test(window.navigator.userAgent),D="onmousewheel"in document;D&&z&&(l("mousedown",a),l("mousewheel",n),l("load",e))}(),/*!
- Bootstrap submenu fix
- Version: 1.1
- Author web-master72
- /