Как выполнять Java Script на Get Post запросах!

Vasyl1

Client
Регистрация
11.12.2016
Сообщения
203
Благодарностей
23
Баллы
18
Здравствуйте! Пытаюсь создать регистратор на Get Post запросах. Но не знаю как выполнять Java Script. А он нужен для того чтобы получить переменную. Помогите. вот например запрос и ответ на него.
Код:
var CryptoJS=CryptoJS||function(n,p){var e={},g=e.lib={},v=function(){},t=g.Base={extend:function(a){v.prototype=this;var d=new v;a&&d.mixIn(a);d.hasOwnProperty("init")||(d.init=function(){d.$super.init.apply(this,arguments)});d.init.prototype=d;d.$super=this;return d},create:function(){var a=this.extend();a.init.apply(a,arguments);return a},init:function(){},mixIn:function(a){for(var d in a)a.hasOwnProperty(d)&&(this[d]=a[d]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}},q=g.WordArray=t.extend({init:function(a,d){a=this.words=a||[];this.sigBytes=d!=p?d:4*a.length},toString:function(a){return(a||w).stringify(this)},concat:function(a){var d=this.words,r=a.words,c=this.sigBytes;a=a.sigBytes;this.clamp();if(c%4)for(var b=0;b<a;b++)d[c+b>>>2]|=(r[b>>>2]>>>24-b%4*8&255)<<24-(c+b)%4*8;else if(65535<r.length)for(b=0;b<a;b+=4)d[c+b>>>2]=r[b>>>2];else d.push.apply(d,r);this.sigBytes+=a;return this},clamp:function(){var a=this.words,d=this.sigBytes;a[d>>>2]&=4294967295<<32-
d%4*8;a.length=n.ceil(d/4)},clone:function(){var a=t.clone.call(this);a.words=this.words.slice(0);return a},random:function(a){for(var d=[],r=0;r<a;r+=4)d.push(4294967296*n.random()|0);return new q.init(d,a)}}),u=e.enc={},w=u.Hex={stringify:function(a){var d=a.words;a=a.sigBytes;for(var r=[],c=0;c<a;c++){var b=d[c>>>2]>>>24-c%4*8&255;r.push((b>>>4).toString(16));r.push((b&15).toString(16))}return r.join("")},parse:function(a){for(var d=a.length,r=[],c=0;c<d;c+=2)r[c>>>3]|=parseInt(a.substr(c,2),16)<<24-c%8*4;return new q.init(r,d/2)}},b=u.Latin1={stringify:function(a){var d=a.words;a=a.sigBytes;for(var r=[],c=0;c<a;c++)r.push(String.fromCharCode(d[c>>>2]>>>24-c%4*8&255));return r.join("")},parse:function(a){for(var d=a.length,r=[],c=0;c<d;c++)r[c>>>2]|=(a.charCodeAt(c)&255)<<24-c%4*8;return new q.init(r,d)}},x=u.Utf8={stringify:function(a){try{return decodeURIComponent(escape(b.stringify(a)))}catch(d){throw Error("Malformed UTF-8 data");}},parse:function(a){return b.parse(unescape(encodeURIComponent(a)))}},f=g.BufferedBlockAlgorithm=t.extend({reset:function(){this._data=new q.init;this._nDataBytes=0},_append:function(a){"string"==typeof a&&(a=x.parse(a));this._data.concat(a);this._nDataBytes+=a.sigBytes},_process:function(a){var d=this._data,r=d.words,c=d.sigBytes,b=this.blockSize,f=c/(4*b),f=a?n.ceil(f):n.max((f|0)-this._minBufferSize,0);a=f*b;c=n.min(4*a,c);if(a){for(var e=0;e<a;e+=b)this._doProcessBlock(r,e);e=r.splice(0,a);d.sigBytes-=c}return new q.init(e,c)},clone:function(){var a=t.clone.call(this);a._data=this._data.clone();return a},_minBufferSize:0});g.Hasher=f.extend({cfg:t.extend(),init:function(a){this.cfg=this.cfg.extend(a);this.reset()},reset:function(){f.reset.call(this);this._doReset()},update:function(a){this._append(a);this._process();return this},finalize:function(a){a&&this._append(a);return this._doFinalize()},blockSize:16,_createHelper:function(a){return function(d,r){return(new a.init(r)).finalize(d)}},_createHmacHelper:function(a){return function(d,r){return(new y.HMAC.init(a,r)).finalize(d)}}});var y=e.algo={};return e}(Math);(function(n){for(var p=CryptoJS,e=p.lib,g=e.WordArray,v=e.Hasher,e=p.algo,t=[],q=[],u=function(a){return 4294967296*(a-(a|0))|0},w=2,b=0;64>b;){var x;a:{x=w;for(var f=n.sqrt(x),y=2;y<=f;y++)if(!(x%y)){x=!1;break a}x=!0}x&&(8>b&&(t[b]=u(n.pow(w,.5))),q[b]=u(n.pow(w,1/3)),b++);w++}var a=[],e=e.SHA256=v.extend({_doReset:function(){this._hash=new g.init(t.slice(0))},_doProcessBlock:function(d,r){for(var c=this._hash.words,b=c[0],f=c[1],e=c[2],y=c[3],g=c[4],t=c[5],v=c[6],u=c[7],p=0;64>p;p++){if(16>p)a[p]=d[r+p]|0;else{var n=a[p-15],w=a[p-2];a[p]=((n<<25|n>>>7)^(n<<14|n>>>18)^n>>>3)+a[p-7]+((w<<15|w>>>17)^(w<<13|w>>>19)^w>>>10)+a[p-16]}n=u+((g<<26|g>>>6)^(g<<21|g>>>11)^(g<<7|g>>>25))+(g&t^~g&v)+q[p]+a[p];w=((b<<30|b>>>2)^(b<<19|b>>>13)^(b<<10|b>>>22))+(b&f^b&e^f&e);u=v;v=t;t=g;g=y+n|0;y=e;e=f;f=b;b=n+w|0}c[0]=c[0]+b|0;c[1]=c[1]+f|0;c[2]=c[2]+e|0;c[3]=c[3]+y|0;c[4]=c[4]+g|0;c[5]=c[5]+t|0;c[6]=c[6]+v|0;c[7]=c[7]+u|0},_doFinalize:function(){var a=this._data,b=a.words,c=8*this._nDataBytes,f=8*a.sigBytes;b[f>>>5]|=128<<24-f%32;b[(f+64>>>9<<4)+14]=n.floor(c/4294967296);b[(f+64>>>9<<4)+15]=c;a.sigBytes=4*b.length;this._process();return this._hash},clone:function(){var a=v.clone.call(this);a._hash=this._hash.clone();return a}});p.SHA256=v._createHelper(e);p.HmacSHA256=v._createHmacHelper(e)})(Math);CryptoJS=CryptoJS||function(n,p){var e={},g=e.lib={},v=function(){},t=g.Base={extend:function(a){v.prototype=this;var d=new v;a&&d.mixIn(a);d.hasOwnProperty("init")||(d.init=function(){d.$super.init.apply(this,arguments)});d.init.prototype=d;d.$super=this;return d},create:function(){var a=this.extend();a.init.apply(a,arguments);return a},init:function(){},mixIn:function(a){for(var d in a)a.hasOwnProperty(d)&&(this[d]=a[d]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}},q=g.WordArray=t.extend({init:function(a,d){a=this.words=a||[];this.sigBytes=d!=p?d:4*a.length},toString:function(a){return(a||w).stringify(this)},concat:function(a){var d=this.words,b=a.words,c=this.sigBytes;a=a.sigBytes;this.clamp();if(c%4)for(var f=0;f<a;f++)d[c+f>>>2]|=(b[f>>>2]>>>24-f%4*8&255)<<24-(c+f)%4*8;else if(65535<b.length)for(f=0;f<a;f+=4)d[c+f>>>2]=b[f>>>2];else d.push.apply(d,b);this.sigBytes+=a;return this},clamp:function(){var a=this.words,d=this.sigBytes;a[d>>>2]&=4294967295<<32-
d%4*8;a.length=n.ceil(d/4)},clone:function(){var a=t.clone.call(this);a.words=this.words.slice(0);return a},random:function(a){for(var d=[],b=0;b<a;b+=4)d.push(4294967296*n.random()|0);return new q.init(d,a)}}),u=e.enc={},w=u.Hex={stringify:function(a){var d=a.words;a=a.sigBytes;for(var b=[],c=0;c<a;c++){var f=d[c>>>2]>>>24-c%4*8&255;b.push((f>>>4).toString(16));b.push((f&15).toString(16))}return b.join("")},parse:function(a){for(var d=a.length,b=[],c=0;c<d;c+=2)b[c>>>3]|=parseInt(a.substr(c,2),16)<<24-c%8*4;return new q.init(b,d/2)}},b=u.Latin1={stringify:function(a){var d=a.words;a=a.sigBytes;for(var b=[],c=0;c<a;c++)b.push(String.fromCharCode(d[c>>>2]>>>24-c%4*8&255));return b.join("")},parse:function(a){for(var d=a.length,b=[],c=0;c<d;c++)b[c>>>2]|=(a.charCodeAt(c)&255)<<24-c%4*8;return new q.init(b,d)}},x=u.Utf8={stringify:function(a){try{return decodeURIComponent(escape(b.stringify(a)))}catch(d){throw Error("Malformed UTF-8 data");}},parse:function(a){return b.parse(unescape(encodeURIComponent(a)))}},f=g.BufferedBlockAlgorithm=t.extend({reset:function(){this._data=new q.init;this._nDataBytes=0},_append:function(a){"string"==typeof a&&(a=x.parse(a));this._data.concat(a);this._nDataBytes+=a.sigBytes},_process:function(a){var d=this._data,b=d.words,c=d.sigBytes,f=this.blockSize,e=c/(4*f),e=a?n.ceil(e):n.max((e|0)-this._minBufferSize,0);a=e*f;c=n.min(4*a,c);if(a){for(var g=0;g<a;g+=f)this._doProcessBlock(b,g);g=b.splice(0,a);d.sigBytes-=c}return new q.init(g,c)},clone:function(){var a=t.clone.call(this);a._data=this._data.clone();return a},_minBufferSize:0});g.Hasher=f.extend({cfg:t.extend(),init:function(a){this.cfg=this.cfg.extend(a);this.reset()},reset:function(){f.reset.call(this);this._doReset()},update:function(a){this._append(a);this._process();return this},finalize:function(a){a&&this._append(a);return this._doFinalize()},blockSize:16,_createHelper:function(a){return function(d,b){return(new a.init(b)).finalize(d)}},_createHmacHelper:function(a){return function(d,b){return(new y.HMAC.init(a,b)).finalize(d)}}});var y=e.algo={};return e}(Math);(function(n){function p(b,e,a,d,r,c,g){b=b+(e&a|~e&d)+r+g;return(b<<c|b>>>32-c)+e}function e(b,e,a,d,r,c,g){b=b+(e&d|a&~d)+r+g;return(b<<c|b>>>32-c)+e}function g(b,e,a,d,r,c,g){b=b+(e^a^d)+r+g;return(b<<c|b>>>32-c)+e}function v(b,e,a,d,r,c,g){b=b+(a^(e|~d))+r+g;return(b<<c|b>>>32-c)+e}for(var t=CryptoJS,q=t.lib,u=q.WordArray,w=q.Hasher,q=t.algo,b=[],x=0;64>x;x++)b[x]=4294967296*n.abs(n.sin(x+1))|0;q=q.MD5=w.extend({_doReset:function(){this._hash=new u.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(f,q){for(var a=0;16>a;a++){var d=q+a,r=f[d];f[d]=(r<<8|r>>>24)&16711935|(r<<24|r>>>8)&4278255360}var a=this._hash.words,d=f[q+0],r=f[q+1],c=f[q+2],t=f[q+3],u=f[q+4],n=f[q+5],w=f[q+6],x=f[q+7],z=f[q+8],A=f[q+9],B=f[q+10],C=f[q+11],D=f[q+12],E=f[q+13],F=f[q+14],G=f[q+15],h=a[0],k=a[1],l=a[2],m=a[3],h=p(h,k,l,m,d,7,b[0]),m=p(m,h,k,l,r,12,b[1]),l=p(l,m,h,k,c,17,b[2]),k=p(k,l,m,h,t,22,b[3]),h=p(h,k,l,m,u,7,b[4]),m=p(m,h,k,l,n,12,b[5]),l=p(l,m,h,k,w,17,b[6]),k=p(k,l,m,h,x,22,b[7]),h=p(h,k,l,m,z,7,b[8]),m=p(m,h,k,l,A,12,b[9]),l=p(l,m,h,k,B,17,b[10]),k=p(k,l,m,h,C,22,b[11]),h=p(h,k,l,m,D,7,b[12]),m=p(m,h,k,l,E,12,b[13]),l=p(l,m,h,k,F,17,b[14]),k=p(k,l,m,h,G,22,b[15]),h=e(h,k,l,m,r,5,b[16]),m=e(m,h,k,l,w,9,b[17]),l=e(l,m,h,k,C,14,b[18]),k=e(k,l,m,h,d,20,b[19]),h=e(h,k,l,m,n,5,b[20]),m=e(m,h,k,l,B,9,b[21]),l=e(l,m,h,k,G,14,b[22]),k=e(k,l,m,h,u,20,b[23]),h=e(h,k,l,m,A,5,b[24]),m=e(m,h,k,l,F,9,b[25]),l=e(l,m,h,k,t,14,b[26]),k=e(k,l,m,h,z,20,b[27]),h=e(h,k,l,m,E,5,b[28]),m=e(m,h,k,l,c,9,b[29]),l=e(l,m,h,k,x,14,b[30]),k=e(k,l,m,h,D,20,b[31]),h=g(h,k,l,m,n,4,b[32]),m=g(m,h,k,l,z,11,b[33]),l=g(l,m,h,k,C,16,b[34]),k=g(k,l,m,h,F,23,b[35]),h=g(h,k,l,m,r,4,b[36]),m=g(m,h,k,l,u,11,b[37]),l=g(l,m,h,k,x,16,b[38]),k=g(k,l,m,h,B,23,b[39]),h=g(h,k,l,m,E,4,b[40]),m=g(m,h,k,l,d,11,b[41]),l=g(l,m,h,k,t,16,b[42]),k=g(k,l,m,h,w,23,b[43]),h=g(h,k,l,m,A,4,b[44]),m=g(m,h,k,l,D,11,b[45]),l=g(l,m,h,k,G,16,b[46]),k=g(k,l,m,h,c,23,b[47]),h=v(h,k,l,m,d,6,b[48]),m=v(m,h,k,l,x,10,b[49]),l=v(l,m,h,k,F,15,b[50]),k=v(k,l,m,h,n,21,b[51]),h=v(h,k,l,m,D,6,b[52]),m=v(m,h,k,l,t,10,b[53]),l=v(l,m,h,k,B,15,b[54]),k=v(k,l,m,h,r,21,b[55]),h=v(h,k,l,m,z,6,b[56]),m=v(m,h,k,l,G,10,b[57]),l=v(l,m,h,k,w,15,b[58]),k=v(k,l,m,h,E,21,b[59]),h=v(h,k,l,m,u,6,b[60]),m=v(m,h,k,l,C,10,b[61]),l=v(l,m,h,k,c,15,b[62]),k=v(k,l,m,h,A,21,b[63]);a[0]=a[0]+h|0;a[1]=a[1]+k|0;a[2]=a[2]+l|0;a[3]=a[3]+m|0},_doFinalize:function(){var b=this._data,e=b.words,a=8*this._nDataBytes,d=8*b.sigBytes;e[d>>>5]|=128<<24-d%32;var r=n.floor(a/4294967296);e[(d+64>>>9<<4)+15]=(r<<8|r>>>24)&16711935|(r<<24|r>>>8)&4278255360;e[(d+64>>>9<<4)+14]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360;b.sigBytes=4*(e.length+1);this._process();b=this._hash;e=b.words;for(a=0;4>a;a++)d=e[a],e[a]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360;return b},clone:function(){var b=w.clone.call(this);b._hash=this._hash.clone();return b}});t.MD5=w._createHelper(q);t.HmacMD5=w._createHmacHelper(q)})(Math);CryptoJS=CryptoJS||function(n,p){var e={},g=e.lib={},v=function(){},t=g.Base={extend:function(a){v.prototype=this;var b=new v;a&&b.mixIn(a);b.hasOwnProperty("init")||(b.init=function(){b.$super.init.apply(this,arguments)});b.init.prototype=b;b.$super=this;return b},create:function(){var a=this.extend();a.init.apply(a,arguments);return a},init:function(){},mixIn:function(a){for(var b in a)a.hasOwnProperty(b)&&(this[b]=a[b]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}},q=g.WordArray=t.extend({init:function(a,b){a=this.words=a||[];this.sigBytes=b!=p?b:4*a.length},toString:function(a){return(a||w).stringify(this)},concat:function(a){var b=this.words,e=a.words,c=this.sigBytes;a=a.sigBytes;this.clamp();if(c%4)for(var f=0;f<a;f++)b[c+f>>>2]|=(e[f>>>2]>>>24-f%4*8&255)<<24-(c+f)%4*8;else if(65535<e.length)for(f=0;f<a;f+=4)b[c+f>>>2]=e[f>>>2];else b.push.apply(b,e);this.sigBytes+=a;return this},clamp:function(){var a=this.words,b=this.sigBytes;a[b>>>2]&=4294967295<<32-
b%4*8;a.length=n.ceil(b/4)},clone:function(){var a=t.clone.call(this);a.words=this.words.slice(0);return a},random:function(a){for(var b=[],e=0;e<a;e+=4)b.push(4294967296*n.random()|0);return new q.init(b,a)}}),u=e.enc={},w=u.Hex={stringify:function(a){var b=a.words;a=a.sigBytes;for(var e=[],c=0;c<a;c++){var f=b[c>>>2]>>>24-c%4*8&255;e.push((f>>>4).toString(16));e.push((f&15).toString(16))}return e.join("")},parse:function(a){for(var b=a.length,e=[],c=0;c<b;c+=2)e[c>>>3]|=parseInt(a.substr(c,2),16)<<24-c%8*4;return new q.init(e,b/2)}},b=u.Latin1={stringify:function(a){var b=a.words;a=a.sigBytes;for(var e=[],c=0;c<a;c++)e.push(String.fromCharCode(b[c>>>2]>>>24-c%4*8&255));return e.join("")},parse:function(a){for(var b=a.length,e=[],c=0;c<b;c++)e[c>>>2]|=(a.charCodeAt(c)&255)<<24-c%4*8;return new q.init(e,b)}},x=u.Utf8={stringify:function(a){try{return decodeURIComponent(escape(b.stringify(a)))}catch(d){throw Error("Malformed UTF-8 data");}},parse:function(a){return b.parse(unescape(encodeURIComponent(a)))}},f=g.BufferedBlockAlgorithm=t.extend({reset:function(){this._data=new q.init;this._nDataBytes=0},_append:function(a){"string"==typeof a&&(a=x.parse(a));this._data.concat(a);this._nDataBytes+=a.sigBytes},_process:function(a){var b=this._data,e=b.words,c=b.sigBytes,f=this.blockSize,g=c/(4*f),g=a?n.ceil(g):n.max((g|0)-this._minBufferSize,0);a=g*f;c=n.min(4*a,c);if(a){for(var t=0;t<a;t+=f)this._doProcessBlock(e,t);t=e.splice(0,a);b.sigBytes-=c}return new q.init(t,c)},clone:function(){var a=t.clone.call(this);a._data=this._data.clone();return a},_minBufferSize:0});g.Hasher=f.extend({cfg:t.extend(),init:function(a){this.cfg=this.cfg.extend(a);this.reset()},reset:function(){f.reset.call(this);this._doReset()},update:function(a){this._append(a);this._process();return this},finalize:function(a){a&&this._append(a);return this._doFinalize()},blockSize:16,_createHelper:function(a){return function(b,e){return(new a.init(e)).finalize(b)}},_createHmacHelper:function(a){return function(b,e){return(new y.HMAC.init(a,e)).finalize(b)}}});var y=e.algo={};return e}(Math);(function(){var n=CryptoJS,p=n.lib,e=p.WordArray,g=p.Hasher,v=[],p=n.algo.SHA1=g.extend({_doReset:function(){this._hash=new e.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,g){for(var u=this._hash.words,n=u[0],b=u[1],p=u[2],f=u[3],y=u[4],a=0;80>a;a++){if(16>a)v[a]=e[g+a]|0;else{var d=v[a-3]^v[a-8]^v[a-14]^v[a-16];v[a]=d<<1|d>>>31}d=(n<<5|n>>>27)+y+v[a];d=20>a?d+((b&p|~b&f)+1518500249):40>a?d+((b^p^f)+1859775393):60>a?d+((b&p|b&f|p&f)-1894007588):d+((b^p^f)-899497514);y=f;f=p;p=b<<30|b>>>2;b=n;n=d}u[0]=u[0]+n|0;u[1]=u[1]+b|0;u[2]=u[2]+p|0;u[3]=u[3]+f|0;u[4]=u[4]+y|0},_doFinalize:function(){var e=this._data,g=e.words,p=8*this._nDataBytes,n=8*e.sigBytes;g[n>>>5]|=128<<24-n%32;g[(n+64>>>9<<4)+14]=Math.floor(p/4294967296);g[(n+64>>>9<<4)+15]=p;e.sigBytes=4*g.length;this._process();return this._hash},clone:function(){var e=g.clone.call(this);e._hash=this._hash.clone();return e}});n.SHA1=g._createHelper(p);n.HmacSHA1=g._createHmacHelper(p)})();(function(){var n=CryptoJS,p=n.lib.WordArray;n.enc.Base64={stringify:function(e){var g=e.words,n=e.sigBytes,p=this._map;e.clamp();e=[];for(var q=0;q<n;q+=3)for(var u=(g[q>>>2]>>>24-q%4*8&255)<<16|(g[q+1>>>2]>>>24-(q+1)%4*8&255)<<8|g[q+2>>>2]>>>24-(q+2)%4*8&255,w=0;4>w&&q+.75*w<n;w++)e.push(p.charAt(u>>>6*(3-w)&63));if(g=p.charAt(64))for(;e.length%4;)e.push(g);return e.join("")},parse:function(e){var g=e.length,n=this._map,t=n.charAt(64);t&&(t=e.indexOf(t),-1!=t&&(g=t));for(var t=[],q=0,u=0;u<g;u++)if(u%4){var w=n.indexOf(e.charAt(u-1))<<u%4*2,b=n.indexOf(e.charAt(u))>>>6-u%4*2;t[q>>>2]|=(w|b)<<24-q%4*8;q++}return p.create(t,q)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}})();
 

ibred

Client
Регистрация
04.04.2015
Сообщения
3 835
Благодарностей
3 552
Баллы
113

Vasyl1

Client
Регистрация
11.12.2016
Сообщения
203
Благодарностей
23
Баллы
18

Crypto Life

Client
Регистрация
16.08.2018
Сообщения
39
Благодарностей
1
Баллы
8
Добрый вечер. Опишите пожалуйста подробнее, что вы пытаетесь сделать, а из того что я понял, "Вы пытаетесь отправить форму на сервер вот так сразу" ? Я просто не совсем понимаю суть вашей задачи.
 

Vasyl1

Client
Регистрация
11.12.2016
Сообщения
203
Благодарностей
23
Баллы
18
Добрый вечер. Опишите пожалуйста подробнее, что вы пытаетесь сделать, а из того что я понял, "Вы пытаетесь отправить форму на сервер вот так сразу" ? Я просто не совсем понимаю суть вашей задачи.
Я не пытаюсь отправить форму, я эту формулу получил, но как ее использывать я не могу понять.
Для того чтобы зарегистрироваться на фрибиткоин, мне нужны вот эти даные


, а чтобы их получить мне нужно выполнить эти скрипты

, но как они работают я не могу понять так как мне почему то ничего не возвращает, или я что то делаю не так!
Я их выполняю локально!
То есть копировал какой то скрипт например этот
Код:
var libFuncName=null;if("undefined"===typeof jQuery&&"undefined"===typeof Zepto&&"function"===typeof $)libFuncName=$;else if("function"===typeof jQuery)libFuncName=jQuery;else if("function"===typeof Zepto)libFuncName=Zepto;else throw new TypeError;(function(c,k,l,h){c("head").append('<meta class="foundation-mq-small">');c("head").append('<meta class="foundation-mq-medium">');c("head").append('<meta class="foundation-mq-large">');k.matchMedia=k.matchMedia||function(b,a){var d,c=b.documentElement,f=c.firstElementChild||c.firstChild,g=b.createElement("body"),m=b.createElement("div");m.id="mq-test-1";m.style.cssText="position:absolute;top:-100em";g.style.background="none";g.appendChild(m);return function(a){m.innerHTML='\u00ad<style media="'+a+
'"> #mq-test-1 { width: 42px; }</style>';c.insertBefore(g,f);d=42===m.offsetWidth;c.removeChild(g);return{matches:d,media:a}}}(l);Array.prototype.filter||(Array.prototype.filter=function(b,a){if(null==this)throw new TypeError;var d=Object(this),c=d.length>>>0;if("function"===typeof b){for(var f=[],g=0;g<c;g++)if(g in d){var m=d[g];b&&b.call(a,m,g,d)&&f.push(m)}return f}});Function.prototype.bind||(Function.prototype.bind=function(b){if("function"!==typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var a=Array.prototype.slice.call(arguments,1),d=this,c=function(){},f=function(){return d.apply(this instanceof c&&b?this:b,a.concat(Array.prototype.slice.call(arguments)))};c.prototype=this.prototype;f.prototype=new c;return f});Array.prototype.indexOf||(Array.prototype.indexOf=function(b){if(null==this)throw new TypeError;var a=Object(this),d=a.length>>>0;if(0===d)return-1;var c=0;1<arguments.length&&(c=Number(arguments[1]),c!=c?c=0:0!=c&&Infinity!=c&&-Infinity!=c&&(c=(0<c||-1)*Math.floor(Math.abs(c))));if(c>=d)return-1;for(c=0<=c?c:Math.max(d-Math.abs(c),0);c<d;c++)if(c in a&&a[c]===b)return c;return-1});c.fn.stop=c.fn.stop||function(){return this};k.Foundation={name:"Foundation",version:"4.3.2",cache:{},media_queries:{small:c(".foundation-mq-small").css("font-family").replace(/\'/g,""),medium:c(".foundation-mq-medium").css("font-family").replace(/\'/g,""),large:c(".foundation-mq-large").css("font-family").replace(/\'/g,"")},stylesheet:c("<style></style>").appendTo("head")[0].sheet,init:function(b,a,d,e,f,g){d=[b,d,e,f];e=[];if(g=g||!1)this.nc=g;this.rtl=/rtl/i.test(c("html").attr("dir"));this.scope=b||this.scope;if(a&&"string"===typeof a&&!/reflow/i.test(a)){if(/off/i.test(a))return this.off();b=a.split(" ");if(0<b.length)for(g=b.length-1;0<=g;g--)e.push(this.init_lib(b[g],d))}else{/reflow/i.test(a)&&(d[1]="reflow");for(var m in this.libs)e.push(this.init_lib(m,d))}"function"===typeof a&&d.unshift(a);return this.response_obj(e,d)},response_obj:function(b,a){for(var d=0,c=a.length;d<c;d++)if("function"===typeof a[d])return a[d]({errors:b.filter(function(a){if("string"===typeof a)return a})});return b},init_lib:function(b,a){return this.trap(function(){return this.libs.hasOwnProperty(b)?(this.patch(this.libs[b]),this.libs[b].init.apply(this.libs[b],a)):function(){}}.bind(this),b)},trap:function(b,a){if(!this.nc)try{return b()}catch(d){return this.error({name:a,message:"could not be initialized",more:d.name+" "+d.message})}return b()},patch:function(b){this.fix_outer(b);b.scope=this.scope;b.rtl=this.rtl},inherit:function(b,a){for(var d=a.split(" "),c=d.length-1;0<=c;c--)this.lib_methods.hasOwnProperty(d[c])&&(this.libs[b.name][d[c]]=this.lib_methods[d[c]])},random_str:function(b){var a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");b||(b=Math.floor(Math.random()*a.length));for(var d="",c=0;c<b;c++)d+=a[Math.floor(Math.random()*a.length)];return d},libs:{},lib_methods:{set_data:function(b,a){var d=[this.name,+new Date,Foundation.random_str(5)].join("-");Foundation.cache[d]=a;b.attr("data-"+this.name+"-id",d);return a},get_data:function(b){return Foundation.cache[b.attr("data-"+this.name+"-id")]},remove_data:function(b){b?(delete Foundation.cache[b.attr("data-"+this.name+"-id")],b.attr("data-"+this.name+"-id","")):c("[data-"+this.name+"-id]").each(function(){delete Foundation.cache[c(this).attr("data-"+this.name+"-id")];c(this).attr("data-"+this.name+"-id","")})},throttle:function(b,a){var d=null;return function(){var c=this,f=arguments;clearTimeout(d);d=setTimeout(function(){b.apply(c,f)},a)}},data_options:function(b){var a={},d,e=(b.attr("data-options")||":").split(";");for(b=e.length-1;0<=b;b--)d=e[b].split(":"),/true/i.test(d[1])&&(d[1]=!0),/false/i.test(d[1])&&(d[1]=!1),isNaN(d[1]-0)||null===d[1]||""===d[1]||!1===d[1]||!0===d[1]||(d[1]=parseInt(d[1],10)),2===d.length&&0<d[0].length&&(a["string"===typeof d[0]?c.trim(d[0]):d[0]]="string"===typeof d[1]?c.trim(d[1]):d[1]);return a},delay:function(b,a){return setTimeout(b,a)},scrollTo:function(b,a,d){if(!(0>d)){var e=(a-c(k).scrollTop())/d*10;this.scrollToTimerCache=setTimeout(function(){isNaN(parseInt(e,10))||(k.scrollTo(0,c(k).scrollTop()+e),this.scrollTo(b,a,d-10))}.bind(this),10)}},scrollLeft:function(b){if(b.length)return"scrollLeft"in b[0]?b[0].scrollLeft:b[0].pageXOffset},empty:function(b){if(b.length&&0<b.length)return!1;if(b.length&&0===b.length)return!0;for(var a in b)if(hasOwnProperty.call(b,a))return!1;return!0},addCustomRule:function(b,a){a===h?Foundation.stylesheet.insertRule(b,Foundation.stylesheet.cssRules.length):Foundation.media_queries[a]!==h&&Foundation.stylesheet.insertRule("@media "+Foundation.media_queries[a]+"{ "+b+" }")}},fix_outer:function(b){b.outerHeight=function(a,d){return"function"===typeof Zepto?a.height():"undefined"!==typeof d?a.outerHeight(d):a.outerHeight()};b.outerWidth=function(a,d){return"function"===typeof Zepto?a.width():"undefined"!==typeof d?a.outerWidth(d):a.outerWidth()}},error:function(b){return b.name+" "+b.message+"; "+b.more},off:function(){c(this.scope).off(".fndtn");c(k).off(".fndtn");return!0},zj:c};c.fn.foundation=function(){var b=Array.prototype.slice.call(arguments,0);return this.each(function(){Foundation.init.apply(Foundation,[this].concat(b));return this})}})(libFuncName,this,this.document);(function(c,k,l,h){Foundation.libs.alerts={name:"alerts",version:"4.3.2",settings:{animation:"fadeOut",speed:300,callback:function(){}},init:function(b,a,d){this.scope=b||this.scope;Foundation.inherit(this,"data_options");"object"===typeof a&&c.extend(!0,this.settings,a);return"string"!==typeof a?(this.settings.init||this.events(),this.settings.init):this[a].call(this,d)},events:function(){var b=this;c(this.scope).on("click.fndtn.alerts","[data-alert] a.close",function(a){var d=c(this).closest("[data-alert]"),e=c.extend({},b.settings,b.data_options(d));a.preventDefault();d[e.animation](e.speed,function(){c(this).remove();e.callback()})});this.settings.init=!0},off:function(){c(this.scope).off(".fndtn.alerts")},reflow:function(){}}})(Foundation.zj,this,this.document);(function(c,k,l,h){Foundation.libs.clearing={name:"clearing",version:"4.3.2",settings:{templates:{viewing:'<a href="#" class="clearing-close">\u00d7</a><div class="visible-img" style="display: none"><img src="//:0"><p class="clearing-caption"></p><a href="#" class="clearing-main-prev"><span></span></a><a href="#" class="clearing-main-next"><span></span></a></div>'},close_selectors:".clearing-close",init:!1,locked:!1},init:function(b,a,d){var e=this;Foundation.inherit(this,"set_data get_data remove_data throttle data_options");"object"===typeof a&&(d=c.extend(!0,this.settings,a));return"string"!==typeof a?(c(this.scope).find("ul[data-clearing]").each(function(){var a=c(this),d=d||{},b=a.find("li");!e.get_data(a)&&0<b.length&&(d.$parent=a.parent(),e.set_data(a,c.extend({},e.settings,d,e.data_options(a))),e.assemble(a.find("li")),e.settings.init||e.events().swipe_events())}),this.settings.init):this[a].call(this,d)},events:function(){var b=this;c(this.scope).on("click.fndtn.clearing","ul[data-clearing] li",function(a,d,e){d=d||c(this);e=e||d;var f=d.next("li"),g=b.get_data(d.parent()),m=c(a.target);a.preventDefault();g||b.init();e.hasClass("visible")&&d[0]===e[0]&&0<f.length&&b.is_open(d)&&(e=f,m=e.find("img"));b.open(m,d,e);b.update_paddles(e)}).on("click.fndtn.clearing",".clearing-main-next",function(a){this.nav(a,"next")}.bind(this)).on("click.fndtn.clearing",".clearing-main-prev",function(a){this.nav(a,"prev")}.bind(this)).on("click.fndtn.clearing",this.settings.close_selectors,function(a){Foundation.libs.clearing.close(a,this)}).on("keydown.fndtn.clearing",function(a){this.keydown(a)}.bind(this));c(k).on("resize.fndtn.clearing",function(){this.resize()}.bind(this));this.settings.init=!0;return this},swipe_events:function(){var b=this;c(this.scope).on("touchstart.fndtn.clearing",".visible-img",function(a){a.touches||(a=a.originalEvent);var d={start_page_x:a.touches[0].pageX,start_page_y:a.touches[0].pageY,start_time:(new Date).getTime(),delta_x:0,is_scrolling:h};c(this).data("swipe-transition",d);a.stopPropagation()}).on("touchmove.fndtn.clearing",".visible-img",function(a){a.touches||(a=a.originalEvent);if(!(1<a.touches.length||a.scale&&1!==a.scale)){var d=c(this).data("swipe-transition");"undefined"===typeof d&&(d={});d.delta_x=a.touches[0].pageX-d.start_page_x;"undefined"===typeof d.is_scrolling&&(d.is_scrolling=!!(d.is_scrolling||Math.abs(d.delta_x)<Math.abs(a.touches[0].pageY-d.start_page_y)));if(!d.is_scrolling&&!d.active){a.preventDefault();var e=0>d.delta_x?"next":"prev";d.active=!0;b.nav(a,e)}}}).on("touchend.fndtn.clearing",".visible-img",function(a){c(this).data("swipe-transition",{});a.stopPropagation()})},assemble:function(b){var a=b.parent();a.after('<div id="foundationClearingHolder"></div>');b=c("#foundationClearingHolder");var d=this.get_data(a),a=a.detach(),a='<div class="carousel">'+this.outerHTML(a[0])+"</div>";return b.after('<div class="clearing-assembled"><div>'+d.templates.viewing+a+"</div></div>").remove()},open:function(b,a,d){var c=d.closest(".clearing-assembled"),f=c.find("div").first(),g=f.find(".visible-img"),m=g.find("img").not(b);this.locked()||(m.attr("src",this.load(b)).css("visibility","hidden"),this.loaded(m,function(){m.css("visibility","visible");c.addClass("clearing-blackout");f.addClass("clearing-container");g.show();this.fix_height(d).caption(g.find(".clearing-caption"),b).center(m).shift(a,d,function(){d.siblings().removeClass("visible");d.addClass("visible")})}.bind(this)))},close:function(b,a){b.preventDefault();var d;d=c(a);d=/blackout/.test(d.selector)?d:d.closest(".clearing-blackout");var e,f;a===b.target&&d&&(e=d.find("div").first(),f=e.find(".visible-img"),this.settings.prev_index=0,d.find("ul[data-clearing]").attr("style","").closest(".clearing-blackout").removeClass("clearing-blackout"),e.removeClass("clearing-container"),f.hide());return!1},is_open:function(b){return 0<b.parent().prop("style").length},keydown:function(b){var a=c(".clearing-blackout").find("ul[data-clearing]");39===b.which&&this.go(a,"next");37===b.which&&this.go(a,"prev");27===b.which&&c("a.clearing-close").trigger("click")},nav:function(b,a){var d=c(".clearing-blackout").find("ul[data-clearing]");b.preventDefault();this.go(d,a)},resize:function(){var b=c(".clearing-blackout .visible-img").find("img");b.length&&this.center(b)},fix_height:function(b){b=b.parent().children();var a=this;b.each(function(){var d=c(this),b=d.find("img");d.height()>a.outerHeight(b)&&d.addClass("fix-height")}).closest("ul").width(100*b.length+"%");return this},update_paddles:function(b){var a=b.closest(".carousel").siblings(".visible-img");0<b.next().length?a.find(".clearing-main-next").removeClass("disabled"):a.find(".clearing-main-next").addClass("disabled");0<b.prev().length?a.find(".clearing-main-prev").removeClass("disabled"):a.find(".clearing-main-prev").addClass("disabled")},center:function(b){this.rtl?b.css({marginRight:-(this.outerWidth(b)/2),marginTop:-(this.outerHeight(b)/2)}):b.css({marginLeft:-(this.outerWidth(b)/2),marginTop:-(this.outerHeight(b)/2)});return this},load:function(b){var a="A"===b[0].nodeName?b.attr("href"):b.parent().attr("href");this.preload(b);return a?a:b.attr("src")},preload:function(b){this.img(b.closest("li").next()).img(b.closest("li").prev())},loaded:function(b,a){function d(){a()}function c(){this.one("load",d);if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var a=this.attr("src"),b=a.match(/\?/)?"&":"?",b=b+("random="+(new Date).getTime());this.attr("src",a+b)}}b.attr("src")?b[0].complete||4===b[0].readyState?a():c.call(b):a()},img:function(b){if(b.length){var a=new Image,d=b.find("a");a.src=d.length?d.attr("href"):b.find("img").attr("src")}return this},caption:function(b,a){var d=a.data("caption");d?b.html(d).show():b.text("").hide();return this},go:function(b,a){var d=b.find(".visible"),c=d[a]();c.length&&c.find("img").trigger("click",[d,c])},shift:function(b,a,d){var c=a.parent(),f=this.settings.prev_index||a.index(),g=this.direction(c,b,a),m=parseInt(c.css("left"),10);b=this.outerWidth(a);a.index()===f||/skip/.test(g)?/skip/.test(g)&&(a=a.index()-this.settings.up_count,this.lock(),0<a?c.animate({left:-(a*b)},300,this.unlock()):c.animate({left:0},300,this.unlock())):/left/.test(g)?(this.lock(),c.animate({left:m+b},300,this.unlock())):/right/.test(g)&&(this.lock(),c.animate({left:m-b},300,this.unlock()));d()},direction:function(b,a,d){b=b.find("li");a=this.outerWidth(b)+this.outerWidth(b)/4;a=Math.floor(this.outerWidth(c(".clearing-container"))/a)-1;d=b.index(d);this.settings.up_count=a;b=this.adjacent(this.settings.prev_index,d)?d>a&&d>this.settings.prev_index?"right":d>a-1&&d<=this.settings.prev_index?"left":!1:"skip";this.settings.prev_index=d;return b},adjacent:function(b,a){for(var d=a+1;d>=a-1;d--)if(d===b)return!0;return!1},lock:function(){this.settings.locked=!0},unlock:function(){this.settings.locked=!1},locked:function(){return this.settings.locked},outerHTML:function(b){return b.outerHTML||(new XMLSerializer).serializeToString(b)},off:function(){c(this.scope).off(".fndtn.clearing");c(k).off(".fndtn.clearing");this.remove_data();this.settings.init=!1},reflow:function(){this.init()}}})(Foundation.zj,this,this.document);(function(c,k,l){function h(a){return a}function b(d){return decodeURIComponent(d.replace(a," "))}var a=/\+/g,d=c.cookie=function(a,f,g){if(f!==l){g=c.extend({},d.defaults,g);null===f&&(g.expires=-1);if("number"===typeof g.expires){var m=g.expires,n=g.expires=new Date;n.setDate(n.getDate()+m)}f=d.json?JSON.stringify(f):String(f);return k.cookie=[encodeURIComponent(a),"=",d.raw?f:encodeURIComponent(f),g.expires?"; expires="+g.expires.toUTCString():"",g.path?"; path="+g.path:"",g.domain?"; domain="+
g.domain:"",g.secure?"; secure":""].join("")}f=d.raw?h:b;g=k.cookie.split("; ");m=0;for(n=g.length;m<n;m++){var p=g[m].split("=");if(f(p.shift())===a)return a=f(p.join("=")),d.json?JSON.parse(a):a}return null};d.defaults={};c.removeCookie=function(a,d){return null!==c.cookie(a)?(c.cookie(a,null,d),!0):!1}})(Foundation.zj,document);(function(c,k,l,h){Foundation.libs.dropdown={name:"dropdown",version:"4.3.2",settings:{activeClass:"open",is_hover:!1,opened:function(){},closed:function(){}},init:function(b,a,d){this.scope=b||this.scope;Foundation.inherit(this,"throttle scrollLeft data_options");"object"===typeof a&&c.extend(!0,this.settings,a);return"string"!==typeof a?(this.settings.init||this.events(),this.settings.init):this[a].call(this,d)},events:function(){var b=this;c(this.scope).on("click.fndtn.dropdown","[data-dropdown]",function(a){var d=c.extend({},b.settings,b.data_options(c(this)));a.preventDefault();d.is_hover||b.toggle(c(this))}).on("mouseenter","[data-dropdown]",function(a){c.extend({},b.settings,b.data_options(c(this))).is_hover&&b.toggle(c(this))}).on("mouseleave","[data-dropdown-content]",function(a){a=c('[data-dropdown="'+c(this).attr("id")+'"]');c.extend({},b.settings,b.data_options(a)).is_hover&&b.close.call(b,c(this))}).on("opened.fndtn.dropdown","[data-dropdown-content]",this.settings.opened).on("closed.fndtn.dropdown","[data-dropdown-content]",this.settings.closed);c(l).on("click.fndtn.dropdown",function(a){var d=c(a.target).closest("[data-dropdown-content]");c(a.target).data("dropdown")||c(a.target).parent().data("dropdown")||(!c(a.target).data("revealId")&&0<d.length&&(c(a.target).is("[data-dropdown-content]")||c.contains(d.first()[0],a.target))?a.stopPropagation():b.close.call(b,c("[data-dropdown-content]")))});c(k).on("resize.fndtn.dropdown",b.throttle(function(){b.resize.call(b)},50)).trigger("resize");this.settings.init=!0},close:function(b){var a=this;b.each(function(){c(this).hasClass(a.settings.activeClass)&&(c(this).css(Foundation.rtl?"right":"left","-99999px").removeClass(a.settings.activeClass),c(this).trigger("closed"))})},open:function(b,a){this.css(b.addClass(this.settings.activeClass),a);b.trigger("opened")},toggle:function(b){var a=c("#"+b.data("dropdown"));0!==a.length&&(this.close.call(this,c("[data-dropdown-content]").not(a)),a.hasClass(this.settings.activeClass)?this.close.call(this,a):(this.close.call(this,c("[data-dropdown-content]")),this.open.call(this,a,b)))},resize:function(){var b=c("[data-dropdown-content].open"),a=c("[data-dropdown='"+b.attr("id")+"']");b.length&&a.length&&this.css(b,a)},css:function(b,a){var d=b.offsetParent(),e=a.offset();e.top-=d.offset().top;e.left-=d.offset().left;this.small()?(b.css({position:"absolute",width:"95%","max-width":"none",top:e.top+this.outerHeight(a)}),b.css(Foundation.rtl?"right":"left","2.5%")):(!Foundation.rtl&&c(k).width()>this.outerWidth(b)+a.offset().left&&!this.data_options(a).align_right?(d=e.left,b.hasClass("right")&&b.removeClass("right")):(b.hasClass("right")||b.addClass("right"),d=e.left-(this.outerWidth(b)-this.outerWidth(a))),b.attr("style","").css({position:"absolute",top:e.top+this.outerHeight(a),left:d}));return b},small:function(){return 768>c(k).width()||c("html").hasClass("lt-ie9")},off:function(){c(this.scope).off(".fndtn.dropdown");c("html, body").off(".fndtn.dropdown");c(k).off(".fndtn.dropdown");c("[data-dropdown-content]").off(".fndtn.dropdown");this.settings.init=!1},reflow:function(){}}})(Foundation.zj,this,this.document);(function(c,k,l,h){Foundation.libs.forms={name:"forms",version:"4.3.2",cache:{},settings:{disable_class:"no-custom",last_combo:null},init:function(a,d,b){"object"===typeof d&&c.extend(!0,this.settings,d);return"string"!==typeof d?(this.settings.init||this.events(),this.assemble(),this.settings.init):this[d].call(this,b)},assemble:function(){var a=this;c('form.custom input[type="radio"],[type="checkbox"]',c(this.scope)).not('[data-customforms="disabled"]').not("."+this.settings.disable_class).each(function(d,b){a.set_custom_markup(b)}).change(function(){a.set_custom_markup(this)});c("form.custom select",c(this.scope)).not('[data-customforms="disabled"]').not("."+this.settings.disable_class).not("[multiple=multiple]").each(this.append_custom_select)},events:function(){var a=this;c(this.scope).on("click.fndtn.forms","form.custom span.custom.checkbox",function(d){d.preventDefault();d.stopPropagation();a.toggle_checkbox(c(this))}).on("click.fndtn.forms","form.custom span.custom.radio",function(d){d.preventDefault();d.stopPropagation();a.toggle_radio(c(this))}).on("change.fndtn.forms","form.custom select",function(d,b){c(this).is('[data-customforms="disabled"]')||a.refresh_custom_select(c(this),b)}).on("click.fndtn.forms","form.custom label",function(d){if(c(d.target).is("label")){var b=c("#"+a.escape(c(this).attr("for"))).not('[data-customforms="disabled"]');0!==b.length&&("checkbox"===b.attr("type")?(d.preventDefault(),d=c(this).find("span.custom.checkbox"),0===d.length&&(d=b.add(this).siblings("span.custom.checkbox").first()),a.toggle_checkbox(d)):"radio"===b.attr("type")&&(d.preventDefault(),d=c(this).find("span.custom.radio"),0===d.length&&(d=b.add(this).siblings("span.custom.radio").first()),a.toggle_radio(d)))}}).on("mousedown.fndtn.forms","form.custom div.custom.dropdown",function(){return!1}).on("click.fndtn.forms","form.custom div.custom.dropdown a.current, form.custom div.custom.dropdown a.selector",function(d){var e=c(this).closest("div.custom.dropdown"),f=b(e,"select");e.hasClass("open")||c(a.scope).trigger("click");d.preventDefault();if(!1===f.is(":disabled")){e.toggleClass("open");if(e.hasClass("open"))c(a.scope).on("click.fndtn.forms.customdropdown",function(){e.removeClass("open");c(a.scope).off(".fndtn.forms.customdropdown")});else c(a.scope).on(".fndtn.forms.customdropdown");return!1}}).on("click.fndtn.forms touchend.fndtn.forms","form.custom div.custom.dropdown li",function(a){var e=c(this),f=e.closest("div.custom.dropdown"),g=b(f,"select"),m=0;a.preventDefault();a.stopPropagation();c(this).hasClass("disabled")||(c("div.dropdown").not(f).removeClass("open"),a=e.closest("ul").find("li.selected"),a.removeClass("selected"),e.addClass("selected"),f.removeClass("open").find("a.current").text(e.text()),e.closest("ul").find("li").each(function(a){e[0]===this&&(m=a)}),g[0].selectedIndex=m,g.data("prevalue",a.html()),"undefined"!=typeof l.createEvent?(f=l.createEvent("HTMLEvents"),f.initEvent("change",!0,!0),g[0].dispatchEvent(f)):g[0].fireEvent("onchange"))});c(k).on("keydown",function(a){var e=Foundation.libs.forms,f=c(".custom.dropdown"),g=b(f,"select"),m=c("input,select,textarea,button");0<f.length&&f.hasClass("open")&&(a.preventDefault(),9===a.which&&(c(m[c(m).index(g)+1]).focus(),f.removeClass("open")),13===a.which&&f.find("li.selected").trigger("click"),27===a.which&&f.removeClass("open"),65<=a.which&&90>=a.which&&(m=e.go_to(f,a.which),g=f.find("li.selected"),m&&(g.removeClass("selected"),e.scrollTo(m.addClass("selected"),300))),38===a.which?(g=f.find("li.selected"),a=g.prev(":not(.disabled)"),0<a.length&&(a.parent()[0].scrollTop=a.parent().scrollTop()-e.outerHeight(a),g.removeClass("selected"),a.addClass("selected"))):40===a.which&&(g=f.find("li.selected"),m=g.next(":not(.disabled)"),0<m.length&&(m.parent()[0].scrollTop=m.parent().scrollTop()+e.outerHeight(m),g.removeClass("selected"),m.addClass("selected"))))});c(k).on("keyup",function(a){a=l.activeElement;var b=c(".custom.dropdown");a===b.find(".current")[0]&&b.find(".selector").focus().click()});this.settings.init=!0},go_to:function(a,b){var c=a.find("li"),f=c.length;if(0<f)for(var g=0;g<f;g++)if(c.eq(g).text().charAt(0).toLowerCase()===String.fromCharCode(b).toLowerCase())return c.eq(g)},scrollTo:function(a,b){if(!(0>b)){var c=a.parent(),f=(this.outerHeight(a)*a.index()-c.scrollTop())/b*10;this.scrollToTimerCache=setTimeout(function(){isNaN(parseInt(f,10))||(c[0].scrollTop=c.scrollTop()+f,this.scrollTo(a,b-10))}.bind(this),10)}},set_custom_markup:function(a){a=c(a);var b=a.attr("type"),e=a.next("span.custom."+b);a.parent().hasClass("switch")||a.addClass("hidden-field");0===e.length&&(e=c('<span class="custom '+b+'"></span>').insertAfter(a));e.toggleClass("checked",a.is(":checked"));e.toggleClass("disabled",a.is(":disabled"))},append_custom_select:function(a,b){var e=Foundation.libs.forms,f=c(b),g=f.next("div.custom.dropdown"),m=g.find("ul");g.find(".current");g.find(".selector");var h=f.find("option"),k=h.filter(":selected"),s=f.attr("class")?f.attr("class").split(" "):[],l=0,u="",r,v=!1;0===g.length?(g=f.hasClass("small")?"small":f.hasClass("medium")?"medium":f.hasClass("large")?"large":f.hasClass("expand")?"expand":"",g=c('<div class="'+["custom","dropdown",g].concat(s).filter(function(a,b,d){return""===a?!1:d.indexOf(a)===b}).join(" ")+'"><a href="#" class="selector"></a><ul /></div>'),g.find(".selector"),m=g.find("ul"),u=h.map(function(){return"<li class='"+(c(this).attr("class")?c(this).attr("class"):"")+"'>"+c(this).html()+"</li>"}).get().join(""),m.append(u),v=g.prepend('<a href="#" class="current">'+(k.html()||"")+"</a>").find(".current"),f.after(g).addClass("hidden-field")):(u=h.map(function(){return"<li>"+c(this).html()+"</li>"}).get().join(""),m.html("").append(u));e.assign_id(f,g);g.toggleClass("disabled",f.is(":disabled"));r=m.find("li");e.cache[g.data("id")]=r.length;h.each(function(a){this.selected&&(r.eq(a).addClass("selected"),v&&v.html(c(this).html()));c(this).is(":disabled")&&r.eq(a).addClass("disabled")});g.is(".small, .medium, .large, .expand")||(g.addClass("open"),e=Foundation.libs.forms,e.hidden_fix.adjust(m),l=e.outerWidth(r)>l?e.outerWidth(r):l,Foundation.libs.forms.hidden_fix.reset(),g.removeClass("open"))},assign_id:function(a,b){var c=[+new Date,Foundation.random_str(5)].join("-");a.attr("data-id",c);b.attr("data-id",c)},refresh_custom_select:function(a,b){var e=this,f=0,g=a.next(),m=a.find("option"),h=g.find("ul"),k=g.find("li");if(m.length!==this.cache[g.data("id")]||b){h.html("");var s="";m.each(function(){var a=c(this),b=a.html(),d=this.selected;s+='<li class="'+(d?" selected ":"")+(a.is(":disabled")?" disabled ":"")+'">'+b+"</li>";d&&g.find(".current").html(b)});h.html(s);g.removeAttr("style");h.removeAttr("style");g.find("li").each(function(){g.addClass("open");e.outerWidth(c(this))>f&&(f=e.outerWidth(c(this)));g.removeClass("open")});k=g.find("li");this.cache[g.data("id")]=k.length}},refresh_custom_selection:function(a){var b=c("option:selected",a).text();c("a.current",a.next()).text(b)},toggle_checkbox:function(a){var b=a.prev(),c=b[0];!1===b.is(":disabled")&&(c.checked=c.checked?!1:!0,a.toggleClass("checked"),b.trigger("change"))},toggle_radio:function(a){var b=a.prev(),c=b.closest("form.custom"),f=b[0];!1===b.is(":disabled")&&(c.find('input[type="radio"][name="'+this.escape(b.attr("name"))+'"]').next().not(a).removeClass("checked"),a.hasClass("checked")||a.toggleClass("checked"),f.checked=a.hasClass("checked"),b.trigger("change"))},escape:function(a){return a?a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},hidden_fix:{tmp:[],hidden:null,adjust:function(a){var b=this;b.hidden=a.parents();b.hidden=b.hidden.add(a).filter(":hidden");b.hidden.each(function(){var a=c(this);b.tmp.push(a.attr("style"));a.css({visibility:"hidden",display:"block"})})},reset:function(){var a=this;a.hidden.each(function(b){var e=c(this);b=a.tmp[b];b===h?e.removeAttr("style"):e.attr("style",b)});a.tmp=[];a.hidden=null}},off:function(){c(this.scope).off(".fndtn.forms")},reflow:function(){}};var b=function(a,b){for(a=a.prev();a.length;){if(a.is(b))return a;a=a.prev()}return c()}})(Foundation.zj,this,this.document);(function(c,k,l,h){var b=b||!1;Foundation.libs.joyride={name:"joyride",version:"4.3.2",defaults:{expose:!1,modal:!1,tipLocation:"bottom",nubPosition:"auto",scrollSpeed:300,timer:0,startTimerOnClick:!0,startOffset:0,nextButton:!0,tipAnimation:"fade",pauseAfter:[],exposed:[],tipAnimationFadeSpeed:300,cookieMonster:!1,cookieName:"joyride",cookieDomain:!1,cookieExpires:365,tipContainer:"body",postRideCallback:function(){},postStepCallback:function(){},preStepCallback:function(){},preRideCallback:function(){},postExposeCallback:function(){},template:{link:'<a href="#close" class="joyride-close-tip">\u00d7</a>',timer:'<div class="joyride-timer-indicator-wrap"><span class="joyride-timer-indicator"></span></div>',tip:'<div class="joyride-tip-guide"><span class="joyride-nub"></span></div>',wrapper:'<div class="joyride-content-wrapper"></div>',button:'<a href="#" class="small button joyride-next-tip"></a>',modal:'<div class="joyride-modal-bg"></div>',expose:'<div class="joyride-expose-wrapper"></div>',exposeCover:'<div class="joyride-expose-cover"></div>'},exposeAddClass:""},settings:{},init:function(a,b,e){this.scope=a||this.scope;Foundation.inherit(this,"throttle data_options scrollTo scrollLeft delay");"object"===typeof b?c.extend(!0,this.settings,this.defaults,b):c.extend(!0,this.settings,this.defaults,e);return"string"!==typeof b?(this.settings.init||this.events(),this.settings.init):this[b].call(this,e)},events:function(){var a=this;c(this.scope).on("click.joyride",".joyride-next-tip, .joyride-modal-bg",function(a){a.preventDefault();1>this.settings.$li.next().length?this.end():0<this.settings.timer?(clearTimeout(this.settings.automate),this.hide(),this.show(),this.startTimer()):(this.hide(),this.show())}.bind(this)).on("click.joyride",".joyride-close-tip",function(a){a.preventDefault();this.end()}.bind(this));c(k).on("resize.fndtn.joyride",a.throttle(function(){0<c("[data-joyride]").length&&a.settings.$next_tip&&(0<a.settings.exposed.length&&c(a.settings.exposed).each(function(){var b=c(this);a.un_expose(b);a.expose(b)}),a.is_phone()?a.pos_phone():a.pos_default(!1,!0))},100));this.settings.init=!0},start:function(){var a=this,b=c(this.scope).find("[data-joyride]"),e=["timer","scrollSpeed","startOffset","tipAnimationFadeSpeed","cookieExpires"],f=e.length;this.settings.init||this.events();this.settings.$content_el=b;this.settings.$body=c(this.settings.tipContainer);this.settings.body_offset=c(this.settings.tipContainer).position();this.settings.$tip_content=this.settings.$content_el.find("> li");this.settings.paused=!1;this.settings.attempts=0;this.settings.tipLocationPatterns={top:["bottom"],bottom:[],left:["right","top","bottom"],right:["left","top","bottom"]};"function"!==typeof c.cookie&&(this.settings.cookieMonster=!1);if(!this.settings.cookieMonster||this.settings.cookieMonster&&null===c.cookie(this.settings.cookieName))this.settings.$tip_content.each(function(b){var d=c(this);c.extend(!0,a.settings,a.data_options(d));for(var h=f-1;0<=h;h--)a.settings[e[h]]=parseInt(a.settings[e[h]],10);a.create({$li:d,index:b})}),!this.settings.startTimerOnClick&&0<this.settings.timer?(this.show("init"),this.startTimer()):this.show("init")},resume:function(){this.set_li();this.show()},tip_template:function(a){var b,e;a.tip_class=a.tip_class||"";b=c(this.settings.template.tip).addClass(a.tip_class);e=c.trim(c(a.li).html())+this.button_text(a.button_text)+this.settings.template.link+this.timer_instance(a.index);b.append(c(this.settings.template.wrapper));b.first().attr("data-index",a.index);c(".joyride-content-wrapper",b).append(e);return b[0]},timer_instance:function(a){return 0===a&&this.settings.startTimerOnClick&&0<this.settings.timer||0===this.settings.timer?"":this.outerHTML(c(this.settings.template.timer)[0])},button_text:function(a){this.settings.nextButton?(a=c.trim(a)||"Next",a=this.outerHTML(c(this.settings.template.button).append(a)[0])):a="";return a},create:function(a){var b=a.$li.attr("data-button")||a.$li.attr("data-text"),e=a.$li.attr("class");a=c(this.tip_template({tip_class:e,index:a.index,button_text:b,li:a.$li}));c(this.settings.tipContainer).append(a)},show:function(a){var b=null;this.settings.$li===h||-1===c.inArray(this.settings.$li.index(),this.settings.pauseAfter)?(this.settings.paused?this.settings.paused=!1:this.set_li(a),this.settings.attempts=0,this.settings.$li.length&&0<this.settings.$target.length?(a&&(this.settings.preRideCallback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.show_modal()),this.settings.preStepCallback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.settings.expose&&this.expose(),this.settings.tipSettings=c.extend(this.settings,this.data_options(this.settings.$li)),this.settings.timer=parseInt(this.settings.timer,10),this.settings.tipSettings.tipLocationPattern=this.settings.tipLocationPatterns[this.settings.tipSettings.tipLocation],/body/i.test(this.settings.$target.selector)||this.scroll_to(),this.is_phone()?this.pos_phone(!0):this.pos_default(!0),b=this.settings.$next_tip.find(".joyride-timer-indicator"),/pop/i.test(this.settings.tipAnimation)?(b.width(0),0<this.settings.timer?(this.settings.$next_tip.show(),this.delay(function(){b.animate({width:b.parent().width()},this.settings.timer,"linear")}.bind(this),this.settings.tipAnimationFadeSpeed)):this.settings.$next_tip.show()):/fade/i.test(this.settings.tipAnimation)&&(b.width(0),0<this.settings.timer?(this.settings.$next_tip.fadeIn(this.settings.tipAnimationFadeSpeed).show(),this.delay(function(){b.animate({width:b.parent().width()},this.settings.timer,"linear")}.bind(this),this.settings.tipAnimationFadeSpeed)):this.settings.$next_tip.fadeIn(this.settings.tipAnimationFadeSpeed)),this.settings.$current_tip=this.settings.$next_tip):this.settings.$li&&1>this.settings.$target.length?this.show():this.end()):this.settings.paused=!0},is_phone:function(){return b?b.mq("only screen and (max-width: 767px)")||0<c(".lt-ie9").length:767>c(k).width()},hide:function(){this.settings.modal&&this.settings.expose&&this.un_expose();this.settings.modal||c(".joyride-modal-bg").hide();this.settings.$current_tip.css("visibility","hidden");setTimeout(c.proxy(function(){this.hide();this.css("visibility","visible")},this.settings.$current_tip),0);this.settings.postStepCallback(this.settings.$li.index(),this.settings.$current_tip)},set_li:function(a){a?(this.settings.$li=this.settings.$tip_content.eq(this.settings.startOffset),this.set_next_tip(),this.settings.$current_tip=this.settings.$next_tip):(this.settings.$li=this.settings.$li.next(),this.set_next_tip());this.set_target()},set_next_tip:function(){this.settings.$next_tip=c(".joyride-tip-guide[data-index='"+this.settings.$li.index()+"']");this.settings.$next_tip.data("closed","")},set_target:function(){var a=this.settings.$li.attr("data-class"),b=this.settings.$li.attr("data-id");this.settings.$target=b?c(l.getElementById(b)):a?c("."+a).first():c("body")},scroll_to:function(){var a;a=c(k).height()/2;a=Math.ceil(this.settings.$target.offset().top-a+this.outerHeight(this.settings.$next_tip));0<a&&this.scrollTo(c("html, body"),a,this.settings.scrollSpeed)},paused:function(){return-1===c.inArray(this.settings.$li.index()+1,this.settings.pauseAfter)},restart:function(){this.hide();this.settings.$li=h;this.show("init")},pos_default:function(a,b){Math.ceil(c(k).height()/2);this.settings.$next_tip.offset();var e=this.settings.$next_tip.find(".joyride-nub"),f=Math.ceil(this.outerWidth(e)/2),g=Math.ceil(this.outerHeight(e)/2),m=a||!1;m&&(this.settings.$next_tip.css("visibility","hidden"),this.settings.$next_tip.show());/body/i.test(this.settings.$target.selector)?this.settings.$li.length&&this.pos_modal(e):(this.bottom()?(f=this.settings.$target.offset().left,Foundation.rtl&&(f=this.settings.$target.offset().width-this.settings.$next_tip.width()+f),this.settings.$next_tip.css({top:this.settings.$target.offset().top+g+this.outerHeight(this.settings.$target),left:f}),this.nub_position(e,this.settings.tipSettings.nubPosition,"top")):this.top()?(f=this.settings.$target.offset().left,Foundation.rtl&&(f=this.settings.$target.offset().width-this.settings.$next_tip.width()+f),this.settings.$next_tip.css({top:this.settings.$target.offset().top-
this.outerHeight(this.settings.$next_tip)-g,left:f}),this.nub_position(e,this.settings.tipSettings.nubPosition,"bottom")):this.right()?(this.settings.$next_tip.css({top:this.settings.$target.offset().top,left:this.outerWidth(this.settings.$target)+this.settings.$target.offset().left+f}),this.nub_position(e,this.settings.tipSettings.nubPosition,"left")):this.left()&&(this.settings.$next_tip.css({top:this.settings.$target.offset().top,left:this.settings.$target.offset().left-this.outerWidth(this.settings.$next_tip)-
f}),this.nub_position(e,this.settings.tipSettings.nubPosition,"right")),!this.visible(this.corners(this.settings.$next_tip))&&this.settings.attempts<this.settings.tipSettings.tipLocationPattern.length&&(e.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),this.settings.tipSettings.tipLocation=this.settings.tipSettings.tipLocationPattern[this.settings.attempts],this.settings.attempts++,this.pos_default()));m&&(this.settings.$next_tip.hide(),this.settings.$next_tip.css("visibility","visible"))},pos_phone:function(a){var b=this.outerHeight(this.settings.$next_tip);this.settings.$next_tip.offset();var e=this.outerHeight(this.settings.$target),f=c(".joyride-nub",this.settings.$next_tip),g=Math.ceil(this.outerHeight(f)/2);a=a||!1;f.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left");a&&(this.settings.$next_tip.css("visibility","hidden"),this.settings.$next_tip.show());/body/i.test(this.settings.$target.selector)?this.settings.$li.length&&this.pos_modal(f):this.top()?(this.settings.$next_tip.offset({top:this.settings.$target.offset().top-b-g}),f.addClass("bottom")):(this.settings.$next_tip.offset({top:this.settings.$target.offset().top+e+g}),f.addClass("top"));a&&(this.settings.$next_tip.hide(),this.settings.$next_tip.css("visibility","visible"))},pos_modal:function(a){this.center();a.hide();this.show_modal()},show_modal:function(){if(!this.settings.$next_tip.data("closed")){var a=c(".joyride-modal-bg");1>a.length&&c("body").append(this.settings.template.modal).show();/pop/i.test(this.settings.tipAnimation)?a.show():a.fadeIn(this.settings.tipAnimationFadeSpeed)}},expose:function(){var a,b,e,f,g,m="expose-"+Math.floor(1E4*Math.random());if(0<arguments.length&&arguments[0]instanceof c)e=arguments[0];else if(this.settings.$target&&!/body/i.test(this.settings.$target.selector))e=this.settings.$target;else return!1;if(1>e.length)return k.console&&console.error("element not valid",e),!1;a=c(this.settings.template.expose);this.settings.$body.append(a);a.css({top:e.offset().top,left:e.offset().left,width:this.outerWidth(e,!0),height:this.outerHeight(e,!0)});b=c(this.settings.template.exposeCover);f={zIndex:e.css("z-index"),position:e.css("position")};g=null==e.attr("class")?"":e.attr("class");e.css("z-index",parseInt(a.css("z-index"))+1);"static"==f.position&&e.css("position","relative");e.data("expose-css",f);e.data("orig-class",g);e.attr("class",g+" "+this.settings.exposeAddClass);b.css({top:e.offset().top,left:e.offset().left,width:this.outerWidth(e,!0),height:this.outerHeight(e,!0)});this.settings.$body.append(b);a.addClass(m);b.addClass(m);e.data("expose",m);this.settings.postExposeCallback(this.settings.$li.index(),this.settings.$next_tip,e);this.add_exposed(e)},un_expose:function(){var a,b,e;e=!1;if(0<arguments.length&&arguments[0]instanceof c)b=arguments[0];else if(this.settings.$target&&!/body/i.test(this.settings.$target.selector))b=this.settings.$target;else return!1;if(1>b.length)return k.console&&console.error("element not valid",b),!1;a=b.data("expose");a=c("."+
a);1<arguments.length&&(e=arguments[1]);!0===e?c(".joyride-expose-wrapper,.joyride-expose-cover").remove():a.remove();e=b.data("expose-css");"auto"==e.zIndex?b.css("z-index",""):b.css("z-index",e.zIndex);e.position!=b.css("position")&&("static"==e.position?b.css("position",""):b.css("position",e.position));e=b.data("orig-class");b.attr("class",e);b.removeData("orig-classes");b.removeData("expose");b.removeData("expose-z-index");this.remove_exposed(b)},add_exposed:function(a){this.settings.exposed=this.settings.exposed||[];a instanceof c||"object"===typeof a?this.settings.exposed.push(a[0]):"string"==typeof a&&this.settings.exposed.push(a)},remove_exposed:function(a){var b;a instanceof c?b=a[0]:"string"==typeof a&&(b=a);this.settings.exposed=this.settings.exposed||[];a=this.settings.exposed.length;for(var e=0;e<a;e++)if(this.settings.exposed[e]==b){this.settings.exposed.splice(e,1);break}},center:function(){var a=c(k);this.settings.$next_tip.css({top:(a.height()-this.outerHeight(this.settings.$next_tip))/2+a.scrollTop(),left:(a.width()-this.outerWidth(this.settings.$next_tip))/2+this.scrollLeft(a)});return!0},bottom:function(){return/bottom/i.test(this.settings.tipSettings.tipLocation)},top:function(){return/top/i.test(this.settings.tipSettings.tipLocation)},right:function(){return/right/i.test(this.settings.tipSettings.tipLocation)},left:function(){return/left/i.test(this.settings.tipSettings.tipLocation)},corners:function(a){var b=c(k),e=b.height()/2,e=Math.ceil(this.settings.$target.offset().top-
e+this.settings.$next_tip.outerHeight()),f=b.width()+this.scrollLeft(b),g=b.height()+e,m=b.height()+b.scrollTop(),h=b.scrollTop();e<h&&(h=0>e?0:e);g>m&&(m=g);return[a.offset().top<h,f<a.offset().left+a.outerWidth(),m<a.offset().top+a.outerHeight(),this.scrollLeft(b)>a.offset().left]},visible:function(a){for(var b=a.length;b--;)if(a[b])return!1;return!0},nub_position:function(a,b,c){"auto"===b?a.addClass(c):a.addClass(b)},startTimer:function(){this.settings.$li.length?this.settings.automate=setTimeout(function(){this.hide();this.show();this.startTimer()}.bind(this),this.settings.timer):clearTimeout(this.settings.automate)},end:function(){this.settings.cookieMonster&&c.cookie(this.settings.cookieName,"ridden",{expires:this.settings.cookieExpires,domain:this.settings.cookieDomain});0<this.settings.timer&&clearTimeout(this.settings.automate);this.settings.modal&&this.settings.expose&&this.un_expose();this.settings.$next_tip.data("closed",!0);c(".joyride-modal-bg").hide();this.settings.$current_tip.hide();this.settings.postStepCallback(this.settings.$li.index(),this.settings.$current_tip);this.settings.postRideCallback(this.settings.$li.index(),this.settings.$current_tip);c(".joyride-tip-guide").remove()},outerHTML:function(a){return a.outerHTML||(new XMLSerializer).serializeToString(a)},off:function(){c(this.scope).off(".joyride");c(k).off(".joyride");c(".joyride-close-tip, .joyride-next-tip, .joyride-modal-bg").off(".joyride");c(".joyride-tip-guide, .joyride-modal-bg").remove();clearTimeout(this.settings.automate);this.settings={}},reflow:function(){}}})(Foundation.zj,this,this.document);(function(c,k,l,h){Foundation.libs.magellan={name:"magellan",version:"4.3.2",settings:{activeClass:"active",threshold:0},init:function(b,a,d){this.scope=b||this.scope;Foundation.inherit(this,"data_options");"object"===typeof a&&c.extend(!0,this.settings,a);return"string"!==typeof a?(this.settings.init||(this.fixed_magellan=c("[data-magellan-expedition]"),this.set_threshold(),this.last_destination=c("[data-magellan-destination]").last(),this.events()),this.settings.init):this[a].call(this,d)},events:function(){var b=this;c(this.scope).on("arrival.fndtn.magellan","[data-magellan-arrival]",function(a){a=c(this);var d=a.closest("[data-magellan-expedition]").attr("data-magellan-active-class")||b.settings.activeClass;a.closest("[data-magellan-expedition]").find("[data-magellan-arrival]").not(a).removeClass(d);a.addClass(d)});this.fixed_magellan.on("update-position.fndtn.magellan",function(){c(this)}).trigger("update-position");c(k).on("resize.fndtn.magellan",function(){this.fixed_magellan.trigger("update-position")}.bind(this)).on("scroll.fndtn.magellan",function(){var a=c(k).scrollTop();b.fixed_magellan.each(function(){var d=c(this);"undefined"===typeof d.data("magellan-top-offset")&&d.data("magellan-top-offset",d.offset().top);"undefined"===typeof d.data("magellan-fixed-position")&&d.data("magellan-fixed-position",!1);var e=a+b.settings.threshold>d.data("magellan-top-offset"),f=d.attr("data-magellan-top-offset");d.data("magellan-fixed-position")!=e&&(d.data("magellan-fixed-position",e),e?(d.addClass("fixed"),d.css({position:"fixed",top:0})):(d.removeClass("fixed"),d.css({position:"",top:""})),e&&"undefined"!=typeof f&&!1!=f&&d.css({position:"fixed",top:f+"px"}))})});if(0<this.last_destination.length)c(k).on("scroll.fndtn.magellan",function(a){var d=c(k).scrollTop(),e=d+c(k).height(),f=Math.ceil(b.last_destination.offset().top);c("[data-magellan-destination]").each(function(){var a=c(this),m=a.attr("data-magellan-destination");a.offset().top-d<=b.settings.threshold&&c("[data-magellan-arrival='"+m+"']").trigger("arrival");e>=c(b.scope).height()&&f>d&&f<e&&c("[data-magellan-arrival]").last().trigger("arrival")})});this.settings.init=!0},set_threshold:function(){"number"!==typeof this.settings.threshold&&(this.settings.threshold=0<this.fixed_magellan.length?this.outerHeight(this.fixed_magellan,!0):0)},off:function(){c(this.scope).off(".fndtn.magellan");c(k).off(".fndtn.magellan")},reflow:function(){}}})(Foundation.zj,this,this.document);(function(c,k,l,h){var b=function(){},a=function(a,b){if(a.hasClass(b.slides_container_class))return this;var n=this,p,s,B,u,r=0,v,q;a.children().first().addClass(b.active_slide_class);n.update_slide_number=function(d){b.slide_number&&(s.find("span:first").text(parseInt(d)+1),s.find("span:last").text(a.children().length));b.bullets&&(B.children().removeClass(b.bullets_active_class),c(B.children().get(d)).addClass(b.bullets_active_class))};n.update_active_link=function(d){d=c('a[data-orbit-link="'+
a.children().eq(d).attr("data-orbit-slide")+'"]');d.parents("ul").find("[data-orbit-link]").removeClass(b.bullets_active_class);d.addClass(b.bullets_active_class)};n.build_markup=function(){a.wrap('<div class="'+b.container_class+'"></div>');p=a.parent();a.addClass(b.slides_container_class);b.navigation_arrows&&(p.append(c('<a href="#"><span></span></a>').addClass(b.prev_class)),p.append(c('<a href="#"><span></span></a>').addClass(b.next_class)));b.timer&&(u=c("<div>").addClass(b.timer_container_class),u.append("<span>"),u.append(c("<div>").addClass(b.timer_progress_class)),u.addClass(b.timer_paused_class),p.append(u));b.slide_number&&(s=c("<div>").addClass(b.slide_number_class),s.append("<span></span> "+b.slide_number_text+" <span></span>"),p.append(s));b.bullets&&(B=c("<ol>").addClass(b.bullets_container_class),p.append(B),a.children().each(function(a,b){var d=c("<li>").attr("data-orbit-slide",a);B.append(d)}));b.stack_on_small&&p.addClass(b.stack_on_small_class);n.update_slide_number(0);n.update_active_link(0)};n._goto=function(d,e){if(d===r)return!1;"object"===typeof q&&q.restart();var f=a.children(),h="next";d<r&&(h="prev");d>=f.length?d=0:0>d&&(d=f.length-1);var k=c(f.get(r)),p=c(f.get(d));k.css("zIndex",2);k.removeClass(b.active_slide_class);p.css("zIndex",4).addClass(b.active_slide_class);a.trigger("orbit:before-slide-change");b.before_slide_change();n.update_active_link(d);var s=function(){var c=function(){r=d;!0===e&&(q=n.create_timer(),q.start());n.update_slide_number(r);a.trigger("orbit:after-slide-change",[{slide_number:r,total_slides:f.length}]);b.after_slide_change(r,f.length)};a.height()!=p.height()&&b.variable_height?a.animate({height:p.height()},250,"linear",c):c()};if(1===f.length)return s(),!1;var l=function(){"next"===h&&v.next(k,p,s);"prev"===h&&v.prev(k,p,s)};p.height()>a.height()&&b.variable_height?a.animate({height:p.height()},250,"linear",l):l()};n.next=function(a){a.stopImmediatePropagation();a.preventDefault();n._goto(r+1)};n.prev=function(a){a.stopImmediatePropagation();a.preventDefault();n._goto(r-1)};n.link_custom=function(a){a.preventDefault();a=c(this).attr("data-orbit-link");"string"===typeof a&&""!=(a=c.trim(a))&&(a=p.find("[data-orbit-slide="+a+"]"),-1!=a.index()&&n._goto(a.index()))};n.link_bullet=function(a){a=c(this).attr("data-orbit-slide");"string"===typeof a&&""!=(a=c.trim(a))&&n._goto(parseInt(a))};n.timer_callback=function(){n._goto(r+1,!0)};n.compute_dimensions=function(){var d=c(a.children().get(r)).height();b.variable_height||a.children().each(function(){c(this).height()>d&&(d=c(this).height())});a.height(d)};n.create_timer=function(){return new d(p.find("."+b.timer_container_class),b,n.timer_callback)};n.stop_timer=function(){"object"===typeof q&&q.stop()};n.toggle_timer=function(){p.find("."+b.timer_container_class).hasClass(b.timer_paused_class)?("undefined"===typeof q&&(q=n.create_timer()),q.start()):"object"===typeof q&&q.stop()};n.init=function(){n.build_markup();b.timer&&(q=n.create_timer(),q.start());v=new f(b,a);"slide"===b.animation&&(v=new e(b,a));p.on("click","."+b.next_class,n.next);p.on("click","."+b.prev_class,n.prev);p.on("click","[data-orbit-slide]",n.link_bullet);p.on("click",n.toggle_timer);if(b.swipe)p.on("touchstart.fndtn.orbit",function(a){a.touches||(a=a.originalEvent);var b={start_page_x:a.touches[0].pageX,start_page_y:a.touches[0].pageY,start_time:(new Date).getTime(),delta_x:0,is_scrolling:h};p.data("swipe-transition",b);a.stopPropagation()}).on("touchmove.fndtn.orbit",function(a){a.touches||(a=a.originalEvent);if(!(1<a.touches.length||a.scale&&1!==a.scale)){var b=p.data("swipe-transition");"undefined"===typeof b&&(b={});b.delta_x=a.touches[0].pageX-b.start_page_x;"undefined"===typeof b.is_scrolling&&(b.is_scrolling=!!(b.is_scrolling||Math.abs(b.delta_x)<Math.abs(a.touches[0].pageY-b.start_page_y)));b.is_scrolling||b.active||(a.preventDefault(),a=0>b.delta_x?r+1:r-1,b.active=!0,n._goto(a))}}).on("touchend.fndtn.orbit",function(a){p.data("swipe-transition",{});a.stopPropagation()});p.on("mouseenter.fndtn.orbit",function(a){b.timer&&b.pause_on_hover&&n.stop_timer()}).on("mouseleave.fndtn.orbit",function(a){b.timer&&b.resume_on_mouseout&&q.start()});c(l).on("click","[data-orbit-link]",n.link_custom);c(k).on("resize",n.compute_dimensions);c(k).on("load",n.compute_dimensions);c(k).on("load",function(){p.prev(".preloader").css("display","none")});a.trigger("orbit:ready")};n.init()},d=function(a,b,c){var d=this,e=b.timer_speed,f=a.find("."+b.timer_progress_class),h,k,l=-1;this.update_progress=function(a){var b=f.clone();b.attr("style","");b.css("width",a+"%");f.replaceWith(b);f=b};this.restart=function(){clearTimeout(k);a.addClass(b.timer_paused_class);l=-1;d.update_progress(0)};this.start=function(){if(!a.hasClass(b.timer_paused_class))return!0;l=-1===l?e:l;a.removeClass(b.timer_paused_class);h=(new Date).getTime();f.animate({width:"100%"},l,"linear");k=setTimeout(function(){d.restart();c()},l);a.trigger("orbit:timer-started")};this.stop=function(){if(a.hasClass(b.timer_paused_class))return!0;clearTimeout(k);a.addClass(b.timer_paused_class);var c=(new Date).getTime();l-=c-h;d.update_progress(100-l/e*100);a.trigger("orbit:timer-stopped")}},e=function(a,b){var d=a.animation_speed,e=1===c("html[dir=rtl]").length?"marginRight":"marginLeft",f={};f[e]="0%";this.next=function(a,b,c){b.animate(f,d,"linear",function(){a.css(e,"100%");c()})};this.prev=function(a,b,c){b.css(e,"-100%");b.animate(f,d,"linear",function(){a.css(e,"100%");c()})}},f=function(a,b){var d=a.animation_speed;c("html[dir=rtl]");this.next=function(a,b,c){b.css({margin:"0%",opacity:"0.01"});b.animate({opacity:"1"},d,"linear",function(){a.css("margin","100%");c()})};this.prev=function(a,b,c){b.css({margin:"0%",opacity:"0.01"});b.animate({opacity:"1"},d,"linear",function(){a.css("margin","100%");c()})}};Foundation.libs=Foundation.libs||{};Foundation.libs.orbit={name:"orbit",version:"4.3.2",settings:{animation:"slide",timer_speed:1E4,pause_on_hover:!0,resume_on_mouseout:!1,animation_speed:500,stack_on_small:!1,navigation_arrows:!0,slide_number:!0,slide_number_text:"of",container_class:"orbit-container",stack_on_small_class:"orbit-stack-on-small",next_class:"orbit-next",prev_class:"orbit-prev",timer_container_class:"orbit-timer",timer_paused_class:"paused",timer_progress_class:"orbit-progress",slides_container_class:"orbit-slides-container",bullets_container_class:"orbit-bullets",bullets_active_class:"active",slide_number_class:"orbit-slide-number",caption_class:"orbit-caption",active_slide_class:"active",orbit_transition_class:"orbit-transitioning",bullets:!0,timer:!0,variable_height:!1,swipe:!0,before_slide_change:b,after_slide_change:b},init:function(b,d,e){var f=this;Foundation.inherit(f,"data_options");"object"===typeof d&&c.extend(!0,f.settings,d);c(b).is("[data-orbit]")&&(d=c(b),e=f.data_options(d),new a(d,c.extend({},f.settings,e)));c("[data-orbit]",b).each(function(b,d){var e=c(d),g=f.data_options(e);new a(e,c.extend({},f.settings,g))})}}})(Foundation.zj,this,this.document);(function(c,k,l,h){Foundation.libs.reveal={name:"reveal",version:"4.3.2",locked:!1,settings:{animation:"fadeAndPop",animationSpeed:250,closeOnBackgroundClick:!0,closeOnEsc:!0,dismissModalClass:"close-reveal-modal",bgClass:"reveal-modal-bg",open:function(){},opened:function(){},close:function(){},closed:function(){},bg:c(".reveal-modal-bg"),css:{open:{opacity:0,visibility:"visible",display:"block"},close:{opacity:1,visibility:"hidden",display:"none"}}},init:function(b,a,d){Foundation.inherit(this,"data_options delay");"object"===typeof a?c.extend(!0,this.settings,a):"undefined"!==typeof d&&c.extend(!0,this.settings,d);return"string"!==typeof a?(this.events(),this.settings.init):this[a].call(this,d)},events:function(){var b=this;c(this.scope).off(".fndtn.reveal").on("click.fndtn.reveal","[data-reveal-id]",function(a){a.preventDefault();if(!b.locked){a=c(this);var d=a.data("reveal-ajax");b.locked=!0;"undefined"===typeof d?b.open.call(b,a):(d=!0===d?a.attr("href"):d,b.open.call(b,a,{url:d}))}}).on("click.fndtn.reveal touchend",this.close_targets(),function(a){a.preventDefault();if(!b.locked){var d=c.extend({},b.settings,b.data_options(c(".reveal-modal.open")));a=c(a.target)[0]===c("."+d.bgClass)[0];if(!a||d.closeOnBackgroundClick)b.locked=!0,b.close.call(b,a?c(".reveal-modal.open"):c(this).closest(".reveal-modal"))}});if(c(this.scope).hasClass("reveal-modal"))c(this.scope).on("open.fndtn.reveal",this.settings.open).on("opened.fndtn.reveal",this.settings.opened).on("opened.fndtn.reveal",this.open_video).on("close.fndtn.reveal",this.settings.close).on("closed.fndtn.reveal",this.settings.closed).on("closed.fndtn.reveal",this.close_video);else c(this.scope).on("open.fndtn.reveal",".reveal-modal",this.settings.open).on("opened.fndtn.reveal",".reveal-modal",this.settings.opened).on("opened.fndtn.reveal",".reveal-modal",this.open_video).on("close.fndtn.reveal",".reveal-modal",this.settings.close).on("closed.fndtn.reveal",".reveal-modal",this.settings.closed).on("closed.fndtn.reveal",".reveal-modal",this.close_video);c("body").bind("keyup.reveal",function(a){var d=c(".reveal-modal.open"),e=c.extend({},b.settings,b.data_options(d));27===a.which&&e.closeOnEsc&&d.foundation("reveal","close")});return!0},open:function(b,a){if(b)if("undefined"!==typeof b.selector)var d=c("#"+b.data("reveal-id"));else d=c(this.scope),a=b;else d=c(this.scope);if(!d.hasClass("open")){var e=c(".reveal-modal.open");"undefined"===typeof d.data("css-top")&&d.data("css-top",parseInt(d.css("top"),10)).data("offset",this.cache_offset(d));d.trigger("open");1>e.length&&this.toggle_bg();if("undefined"!==typeof a&&a.url){var f=this,g="undefined"!==typeof a.success?a.success:null;c.extend(a,{success:function(a,b,h){c.isFunction(g)&&g(a,b,h);d.html(a);c(d).foundation("section","reflow");f.hide(e,f.settings.css.close);f.show(d,f.settings.css.open)}});c.ajax(a)}else this.hide(e,this.settings.css.close),this.show(d,this.settings.css.open)}},close:function(b){b=b&&b.length?b:c(this.scope);var a=c(".reveal-modal.open");0<a.length&&(this.locked=!0,b.trigger("close"),this.toggle_bg(),this.hide(a,this.settings.css.close))},close_targets:function(){var b="."+this.settings.dismissModalClass;return this.settings.closeOnBackgroundClick?b+", ."+this.settings.bgClass:b},toggle_bg:function(){0===c("."+this.settings.bgClass).length&&(this.settings.bg=c("<div />",{"class":this.settings.bgClass}).appendTo("body"));0<this.settings.bg.filter(":visible").length?this.hide(this.settings.bg):this.show(this.settings.bg)},show:function(b,a){if(a){if(0===b.parent("body").length){var d=b.wrap('<div style="display: none;" />').parent();b.on("closed.fndtn.reveal.wrapped",function(){b.detach().appendTo(d);b.unwrap().unbind("closed.fndtn.reveal.wrapped")});b.detach().appendTo("body")}if(/pop/i.test(this.settings.animation)){a.top=c(k).scrollTop()-b.data("offset")+"px";var e={top:c(k).scrollTop()+b.data("css-top")+"px",opacity:1};return this.delay(function(){return b.css(a).animate(e,this.settings.animationSpeed,"linear",function(){this.locked=!1;b.trigger("opened")}.bind(this)).addClass("open")}.bind(this),this.settings.animationSpeed/2)}return/fade/i.test(this.settings.animation)?(e={opacity:1},this.delay(function(){return b.css(a).animate(e,this.settings.animationSpeed,"linear",function(){this.locked=!1;b.trigger("opened")}.bind(this)).addClass("open")}.bind(this),this.settings.animationSpeed/2)):b.css(a).show().css({opacity:1}).addClass("open").trigger("opened")}return/fade/i.test(this.settings.animation)?b.fadeIn(this.settings.animationSpeed/2):b.show()},hide:function(b,a){if(a){if(/pop/i.test(this.settings.animation)){var d={top:-c(k).scrollTop()-b.data("offset")+"px",opacity:0};return this.delay(function(){return b.animate(d,this.settings.animationSpeed,"linear",function(){this.locked=!1;b.css(a).trigger("closed")}.bind(this)).removeClass("open")}.bind(this),this.settings.animationSpeed/2)}return/fade/i.test(this.settings.animation)?(d={opacity:0},this.delay(function(){return b.animate(d,this.settings.animationSpeed,"linear",function(){this.locked=!1;b.css(a).trigger("closed")}.bind(this)).removeClass("open")}.bind(this),this.settings.animationSpeed/2)):b.hide().css(a).removeClass("open").trigger("closed")}return/fade/i.test(this.settings.animation)?b.fadeOut(this.settings.animationSpeed/2):b.hide()},close_video:function(b){b=c(this).find(".flex-video");var a=b.find("iframe");0<a.length&&(a.attr("data-src",a[0].src),a.attr("src","about:blank"),b.hide())},open_video:function(b){b=c(this).find(".flex-video");var a=b.find("iframe");if(0<a.length){if("string"===typeof a.attr("data-src"))a[0].src=a.attr("data-src");else{var d=a[0].src;a[0].src=h;a[0].src=d}b.show()}},cache_offset:function(b){var a=b.show().height()+parseInt(b.css("top"),10);b.hide();return a},off:function(){c(this.scope).off(".fndtn.reveal")},reflow:function(){}}})(Foundation.zj,this,this.document);(function(c,k,l){Foundation.libs.section={name:"section",version:"4.3.2",settings:{deep_linking:!1,small_breakpoint:768,one_up:!0,multi_expand:!1,section_selector:"[data-section]",region_selector:"section, .section, [data-section-region]",title_selector:".title, [data-section-title]",resized_data_attr:"data-section-resized",small_style_data_attr:"data-section-small-style",content_selector:".content, [data-section-content]",nav_selector:'[data-section="vertical-nav"], [data-section="horizontal-nav"]',active_class:"active",callback:function(){}},init:function(h,b,a){Foundation.inherit(this,"throttle data_options position_right offset_right");"object"===typeof b&&c.extend(!0,this.settings,b);return"string"!==typeof b?(this.events(),!0):this[b].call(this,a)},events:function(){for(var h=this,b=[],a=h.settings.section_selector,d=h.settings.region_selector.split(","),e=h.settings.title_selector.split(","),f=0,g=d.length;f<g;f++)for(var m=d[f],n=0,p=e.length;n<p;n++){var s=a+">"+m+">"+e[n];b.push(s+
" a");b.push(s)}c(h.scope).on("click.fndtn.section",b.join(","),function(a){var b=c(this).closest(h.settings.title_selector);h.close_navs(b);0<b.siblings(h.settings.content_selector).length&&h.toggle_active.call(b[0],a)});c(k).on("resize.fndtn.section",h.throttle(function(){h.resize()},30)).on("hashchange.fndtn.section",h.set_active_from_hash);c(l).on("click.fndtn.section",function(a){a.isPropagationStopped&&a.isPropagationStopped()||a.target!==l&&h.close_navs(c(a.target).closest(h.settings.title_selector))});c(k).triggerHandler("resize.fndtn.section");c(k).triggerHandler("hashchange.fndtn.section")},close_navs:function(h){var b=Foundation.libs.section,a=c(b.settings.nav_selector).filter(function(){return!c.extend({},b.settings,b.data_options(c(this))).one_up});if(0<h.length){var d=h.parent().parent();if(b.is_horizontal_nav(d)||b.is_vertical_nav(d))a=a.filter(function(){return this!==d[0]})}a.children(b.settings.region_selector).removeClass(b.settings.active_class)},toggle_active:function(h){var b=c(this),a=Foundation.libs.section,d=b.parent(),b=b.siblings(a.settings.content_selector),e=d.parent(),f=c.extend({},a.settings,a.data_options(e)),g=e.children(a.settings.region_selector).filter("."+a.settings.active_class);!f.deep_linking&&0<b.length&&h.preventDefault();h.stopPropagation();if(!d.hasClass(a.settings.active_class)){if(!a.is_accordion(e)||a.is_accordion(e)&&!a.settings.multi_expand)g.removeClass(a.settings.active_class),g.trigger("closed.fndtn.section");d.addClass(a.settings.active_class);a.resize(d.find(a.settings.section_selector).not("["+
a.settings.resized_data_attr+"]"),!0);d.trigger("opened.fndtn.section")}else if(d.hasClass(a.settings.active_class)&&a.is_accordion(e)||!f.one_up&&(a.small(e)||a.is_vertical_nav(e)||a.is_horizontal_nav(e)||a.is_accordion(e)))d.removeClass(a.settings.active_class),d.trigger("closed.fndtn.section");f.callback(e)},check_resize_timer:null,resize:function(h,b){var a=Foundation.libs.section,d=c(a.settings.section_selector),e=a.small(d),f=function(b,c){return!a.is_accordion(b)&&!b.is("["+a.settings.resized_data_attr+
"]")&&(!e||a.is_horizontal_tabs(b))&&c===("none"===b.css("display")||!b.parent().is(":visible"))};h=h||c(a.settings.section_selector);clearTimeout(a.check_resize_timer);e||h.removeAttr(a.settings.small_style_data_attr);h.filter(function(){return f(c(this),!1)}).each(function(){var d=c(this),e=d.children(a.settings.region_selector),f=e.children(a.settings.title_selector),h=e.children(a.settings.content_selector),k=0;if(b&&0==d.children(a.settings.region_selector).filter("."+a.settings.active_class).length){var l=c.extend({},a.settings,a.data_options(d));l.deep_linking||!l.one_up&&(a.is_horizontal_nav(d)||a.is_vertical_nav(d)||a.is_accordion(d))||e.filter(":visible").first().addClass(a.settings.active_class)}if(a.is_horizontal_tabs(d)||a.is_auto(d)){var u=0;f.each(function(){var b=c(this);if(b.is(":visible")){b.css(a.rtl?"right":"left",u);var d=parseInt(b.css("border-"+(a.rtl?"left":"right")+"-width"),10);"Nan"===d.toString()&&(d=0);u+=a.outerWidth(b)-d;k=Math.max(k,a.outerHeight(b))}});f.css("height",k);e.each(function(){var b=c(this),d=b.children(a.settings.content_selector),d=parseInt(d.css("border-top-width"),10);"Nan"===d.toString()&&(d=0);b.css("padding-top",k-d)});d.css("min-height",k)}else if(a.is_horizontal_nav(d)){var r=!0;f.each(function(){k=Math.max(k,a.outerHeight(c(this)))});e.each(function(){var b=c(this);b.css("margin-left","-"+(r?d:b.children(a.settings.title_selector)).css("border-left-width"));r=!1});e.css("margin-top","-"+d.css("border-top-width"));f.css("height",k);h.css("top",k);d.css("min-height",k)}else if(a.is_vertical_tabs(d)){var v=0;f.each(function(){var b=c(this);if(b.is(":visible")){b.css("top",v);var d=parseInt(b.css("border-top-width"),10);"Nan"===d.toString()&&(d=0);v+=a.outerHeight(b)-d}});h.css("min-height",v+1)}else if(a.is_vertical_nav(d)){var q=0,A=!0;f.each(function(){q=Math.max(q,a.outerWidth(c(this)))});e.each(function(){var b=c(this);b.css("margin-top","-"+(A?d:b.children(a.settings.title_selector)).css("border-top-width"));A=!1});f.css("width",q);h.css(a.rtl?"right":"left",q);d.css("width",q)}d.attr(a.settings.resized_data_attr,!0)});0<c(a.settings.section_selector).filter(function(){return f(c(this),!0)}).length&&(a.check_resize_timer=setTimeout(function(){a.resize(h.filter(function(){return f(c(this),!1)}),!0)},700));e&&h.attr(a.settings.small_style_data_attr,!0)},is_vertical_nav:function(c){return/vertical-nav/i.test(c.data("section"))},is_horizontal_nav:function(c){return/horizontal-nav/i.test(c.data("section"))},is_accordion:function(c){return/accordion/i.test(c.data("section"))},is_horizontal_tabs:function(c){return/^tabs$/i.test(c.data("section"))},is_vertical_tabs:function(c){return/vertical-tabs/i.test(c.data("section"))},is_auto:function(c){c=c.data("section");return""===c||/auto/i.test(c)},set_active_from_hash:function(){var h=Foundation.libs.section,b=k.location.hash.substring(1),a=c(h.settings.section_selector),d;a.each(function(){var a=c(this);a.children(h.settings.region_selector).each(function(){var f=c(this).children(h.settings.content_selector).data("slug");if(RegExp(f,"i").test(b))return d=a,!1});if(null!=d)return!1});null!=d&&a.each(function(){if(d==c(this)){var a=c(this),f=c.extend({},h.settings,h.data_options(a)),g=a.children(h.settings.region_selector),k=f.deep_linking&&0<b.length,l=!1;g.each(function(){var a=c(this);if(l)a.removeClass(h.settings.active_class);else if(k){var d=a.children(h.settings.content_selector).data("slug");d&&RegExp(d,"i").test(b)?(a.hasClass(h.settings.active_class)||a.addClass(h.settings.active_class),l=!0):a.removeClass(h.settings.active_class)}else a.hasClass(h.settings.active_class)&&(l=!0)});l||!f.one_up&&(h.is_horizontal_nav(a)||h.is_vertical_nav(a)||h.is_accordion(a))||g.filter(":visible").first().addClass(h.settings.active_class)}})},reflow:function(){var h=Foundation.libs.section;c(h.settings.section_selector).removeAttr(h.settings.resized_data_attr);h.throttle(function(){h.resize()},30)()},small:function(h){var b=c.extend({},this.settings,this.data_options(h));return this.is_horizontal_tabs(h)?!1:h&&this.is_accordion(h)||c("html").hasClass("lt-ie9")||c("html").hasClass("ie8compat")?!0:c(this.scope).width()<b.small_breakpoint},off:function(){c(this.scope).off(".fndtn.section");c(k).off(".fndtn.section");c(l).off(".fndtn.section")}};c.fn.reflow_section=function(c){var b=this,a=Foundation.libs.section;b.removeAttr(a.settings.resized_data_attr);a.throttle(function(){a.resize(b,c)},30)();return this}})(Foundation.zj,window,document);(function(c,k,l,h){Foundation.libs.tooltips={name:"tooltips",version:"4.3.2",settings:{selector:".has-tip",additionalInheritableClasses:[],tooltipClass:".tooltip",touchCloseText:"tap to close",appendTo:"body","disable-for-touch":!1,tipTemplate:function(b,a){return'<span data-selector="'+b+'" class="'+Foundation.libs.tooltips.settings.tooltipClass.substring(1)+'">'+a+'<span class="nub"></span></span>'}},cache:{},init:function(b,a,d){Foundation.inherit(this,"data_options");var e=this;"object"===typeof a?c.extend(!0,this.settings,a):"undefined"!==typeof d&&c.extend(!0,this.settings,d);if("string"!==typeof a)if(Modernizr.touch)c(this.scope).on("click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip","[data-tooltip]",function(a){var b=c.extend({},e.settings,e.data_options(c(this)));b["disable-for-touch"]||(a.preventDefault(),c(b.tooltipClass).hide(),e.showOrCreateTip(c(this)))}).on("click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip",this.settings.tooltipClass,function(a){a.preventDefault();c(this).fadeOut(150)});else c(this.scope).on("mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip","[data-tooltip]",function(a){var b=c(this);/enter|over/i.test(a.type)?e.showOrCreateTip(b):"mouseout"!==a.type&&"mouseleave"!==a.type||e.hide(b)});else return this[a].call(this,d)},showOrCreateTip:function(b){var a=this.getTip(b);return a&&0<a.length?this.show(b):this.create(b)},getTip:function(b){b=this.selector(b);var a=null;b&&(a=c('span[data-selector="'+b+'"]'+this.settings.tooltipClass));return"object"===typeof a?a:!1},selector:function(b){var a=b.attr("id"),c=b.attr("data-tooltip")||b.attr("data-selector");(a&&1>a.length||!a)&&"string"!=typeof c&&(c="tooltip"+Math.random().toString(36).substring(7),b.attr("data-selector",c));return a&&0<a.length?a:c},create:function(b){var a=c(this.settings.tipTemplate(this.selector(b),c("<div></div>").html(b.attr("title")).html())),d=this.inheritable_classes(b);a.addClass(d).appendTo(this.settings.appendTo);Modernizr.touch&&a.append('<span class="tap-to-close">'+
this.settings.touchCloseText+"</span>");b.removeAttr("title").attr("title","");this.show(b)},reposition:function(b,a,d){var e,f,g,h;a.css("visibility","hidden").show();e=b.data("width");f=a.children(".nub");g=this.outerHeight(f);this.outerHeight(f);h=function(a,b,c,d,e,f){return a.css({top:b?b:"auto",bottom:d?d:"auto",left:e?e:"auto",right:c?c:"auto",width:f?f:"auto"}).end()};h(a,b.offset().top+this.outerHeight(b)+10,"auto","auto",b.offset().left,e);767>c(k).width()?(h(a,b.offset().top+this.outerHeight(b)+
10,"auto","auto",12.5,c(this.scope).width()),a.addClass("tip-override"),h(f,-g,"auto","auto",b.offset().left)):(f=b.offset().left,Foundation.rtl&&(f=b.offset().left+b.offset().width-this.outerWidth(a)),h(a,b.offset().top+this.outerHeight(b)+10,"auto","auto",f,e),a.removeClass("tip-override"),d&&-1<d.indexOf("tip-top")?h(a,b.offset().top-this.outerHeight(a),"auto","auto",f,e).removeClass("tip-override"):d&&-1<d.indexOf("tip-left")?h(a,b.offset().top+this.outerHeight(b)/2-2.5*g,"auto","auto",b.offset().left-
this.outerWidth(a)-g,e).removeClass("tip-override"):d&&-1<d.indexOf("tip-right")&&h(a,b.offset().top+this.outerHeight(b)/2-2.5*g,"auto","auto",b.offset().left+this.outerWidth(b)+g,e).removeClass("tip-override"));a.css("visibility","visible").hide()},inheritable_classes:function(b){var a=["tip-top","tip-left","tip-bottom","tip-right","noradius"].concat(this.settings.additionalInheritableClasses);b=(b=b.attr("class"))?c.map(b.split(" "),function(b,e){if(-1!==c.inArray(b,a))return b}).join(" "):"";return c.trim(b)},show:function(b){var a=this.getTip(b);this.reposition(b,a,b.attr("class"));a.fadeIn(150)},hide:function(b){this.getTip(b).fadeOut(150)},reload:function(){var b=c(this);return b.data("fndtn-tooltips")?b.foundationTooltips("destroy").foundationTooltips("init"):b.foundationTooltips("init")},off:function(){c(this.scope).off(".fndtn.tooltip");c(this.settings.tooltipClass).each(function(b){c("[data-tooltip]").get(b).attr("title",c(this).text())}).remove()},reflow:function(){}}})(Foundation.zj,this,this.document);(function(c,k,l,h){Foundation.libs.topbar={name:"topbar",version:"4.3.2",settings:{index:0,stickyClass:"sticky",custom_back_text:!0,back_text:"Back",is_hover:!0,mobile_show_parent_link:!1,scrolltop:!0,init:!1},init:function(b,a,d){Foundation.inherit(this,"data_options addCustomRule");var e=this;"object"===typeof a?c.extend(!0,this.settings,a):"undefined"!==typeof d&&c.extend(!0,this.settings,d);return"string"!==typeof a?(c(".top-bar, [data-topbar]").each(function(){c.extend(!0,e.settings,e.data_options(c(this)));e.settings.$w=c(k);e.settings.$topbar=c(this);e.settings.$section=e.settings.$topbar.find("section");e.settings.$titlebar=e.settings.$topbar.children("ul").first();e.settings.$topbar.data("index",0);var a=e.settings.$topbar.parent();a.hasClass("fixed")||a.hasClass(e.settings.stickyClass)?(e.settings.$topbar.data("height",e.outerHeight(a)),e.settings.$topbar.data("stickyoffset",a.offset().top)):e.settings.$topbar.data("height",e.outerHeight(e.settings.$topbar));a=c("<div class='top-bar-js-breakpoint'/>").insertAfter(e.settings.$topbar);e.settings.breakPoint=a.width();a.remove();e.assemble();e.settings.is_hover&&e.settings.$topbar.find(".has-dropdown").addClass("not-click");e.addCustomRule(".f-topbar-fixed { padding-top: "+e.settings.$topbar.data("height")+"px }");e.settings.$topbar.parent().hasClass("fixed")&&c("body").addClass("f-topbar-fixed")}),e.settings.init||this.events(),this.settings.init):this[a].call(this,d)},toggle:function(){var b=c(".top-bar, [data-topbar]"),a=b.find("section, .section");this.breakpoint()&&(this.rtl?(a.css({right:"0%"}),a.find(">.name").css({right:"100%"})):(a.css({left:"0%"}),a.find(">.name").css({left:"100%"})),a.find("li.moved").removeClass("moved"),b.data("index",0),b.toggleClass("expanded").css("height",""));this.settings.scrolltop?b.hasClass("expanded")?b.parent().hasClass("fixed")&&(this.settings.scrolltop?(b.parent().removeClass("fixed"),b.addClass("fixed"),c("body").removeClass("f-topbar-fixed"),k.scrollTo(0,0)):b.parent().removeClass("expanded")):b.hasClass("fixed")&&(b.parent().addClass("fixed"),b.removeClass("fixed"),c("body").addClass("f-topbar-fixed")):(b.parent().hasClass(this.settings.stickyClass)&&b.parent().addClass("fixed"),b.parent().hasClass("fixed")&&(b.hasClass("expanded")?(b.addClass("fixed"),b.parent().addClass("expanded")):(b.removeClass("fixed"),b.parent().removeClass("expanded"),this.updateStickyPositioning())))},timer:null,events:function(){var b=this;c(this.scope).off(".fndtn.topbar").on("click.fndtn.topbar",".top-bar .toggle-topbar, [data-topbar] .toggle-topbar",function(a){a.preventDefault();b.toggle()}).on("click.fndtn.topbar",".top-bar li.has-dropdown",function(a){var d=c(this),e=c(a.target);d.closest("[data-topbar], .top-bar").data("topbar");e.data("revealId")?b.toggle():b.breakpoint()||b.settings.is_hover&&!Modernizr.touch||(a.stopImmediatePropagation(),"A"===e[0].nodeName&&e.parent().hasClass("has-dropdown")&&a.preventDefault(),d.hasClass("hover")?(d.removeClass("hover").find("li").removeClass("hover"),d.parents("li.hover").removeClass("hover")):d.addClass("hover"))}).on("click.fndtn.topbar",".top-bar .has-dropdown>a, [data-topbar] .has-dropdown>a",function(a){if(b.breakpoint()&&c(k).width()!=b.settings.breakPoint){a.preventDefault();a=c(this);var d=a.closest(".top-bar, [data-topbar]"),e=d.find("section, .section");a.next(".dropdown").outerHeight();var f=a.closest("li");d.data("index",d.data("index")+1);f.addClass("moved");b.rtl?(e.css({right:-(100*d.data("index"))+"%"}),e.find(">.name").css({right:100*d.data("index")+"%"})):(e.css({left:-(100*d.data("index"))+"%"}),e.find(">.name").css({left:100*d.data("index")+"%"}));d.css("height",b.outerHeight(a.siblings("ul"),!0)+b.settings.$topbar.data("height"))}});c(k).on("resize.fndtn.topbar",function(){if("undefined"!==typeof b.settings.$topbar){var a=b.settings.$topbar.parent("."+this.settings.stickyClass),d;b.breakpoint()||(d=b.settings.$topbar.hasClass("expanded"),c(".top-bar, [data-topbar]").css("height","").removeClass("expanded").find("li").removeClass("hover"),d&&b.toggle());0<a.length&&(a.hasClass("fixed")?(a.removeClass("fixed"),d=a.offset().top,c(l.body).hasClass("f-topbar-fixed")&&(d-=b.settings.$topbar.data("height")),b.settings.$topbar.data("stickyoffset",d),a.addClass("fixed")):(d=a.offset().top,b.settings.$topbar.data("stickyoffset",d)))}}.bind(this));c("body").on("click.fndtn.topbar",function(a){0<c(a.target).closest("li").closest("li.hover").length||c(".top-bar li, [data-topbar] li").removeClass("hover")});c(this.scope).on("click.fndtn",".top-bar .has-dropdown .back, [data-topbar] .has-dropdown .back",function(a){a.preventDefault();var d=c(this);a=d.closest(".top-bar, [data-topbar]");var e=a.find("section, .section"),f=d.closest("li.moved"),d=f.parent();a.data("index",a.data("index")-1);b.rtl?(e.css({right:-(100*a.data("index"))+"%"}),e.find(">.name").css({right:100*a.data("index")+"%"})):(e.css({left:-(100*a.data("index"))+"%"}),e.find(">.name").css({left:100*a.data("index")+"%"}));0===a.data("index")?a.css("height",""):a.css("height",b.outerHeight(d,!0)+b.settings.$topbar.data("height"));setTimeout(function(){f.removeClass("moved")},300)})},breakpoint:function(){return c(l).width()<=this.settings.breakPoint||c("html").hasClass("lt-ie9")},assemble:function(){var b=this;this.settings.$section.detach();this.settings.$section.find(".has-dropdown>a").each(function(){var a=c(this),d=a.siblings(".dropdown"),e=a.attr("href"),e=b.settings.mobile_show_parent_link&&e&&1<e.length?c('<li class="title back js-generated"><h5><a href="#"></a></h5></li><li><a class="parent-link js-generated" href="'+e+'">'+a.text()+"</a></li>"):c('<li class="title back js-generated"><h5><a href="#"></a></h5></li>');!0==b.settings.custom_back_text?e.find("h5>a").html(b.settings.back_text):e.find("h5>a").html("\u00ab "+a.html());d.prepend(e)});this.settings.$section.appendTo(this.settings.$topbar);this.sticky()},height:function(b){var a=0,d=this;b.find("> li").each(function(){a+=d.outerHeight(c(this),!0)});return a},sticky:function(){var b=this;c(k).scroll(function(){b.updateStickyPositioning()})},updateStickyPositioning:function(){var b="."+this.settings.stickyClass,a=c(k);if(0<c(b).length){var d=this.settings.$topbar.data("stickyoffset");c(b).hasClass("expanded")||(a.scrollTop()>d?c(b).hasClass("fixed")||(c(b).addClass("fixed"),c("body").addClass("f-topbar-fixed")):a.scrollTop()<=d&&c(b).hasClass("fixed")&&(c(b).removeClass("fixed"),c("body").removeClass("f-topbar-fixed")))}},off:function(){c(this.scope).off(".fndtn.topbar");c(k).off(".fndtn.topbar")},reflow:function(){}}})(Foundation.zj,this,this.document);(function(c,k,l,h){Foundation.libs.interchange={name:"interchange",version:"4.2.4",cache:{},images_loaded:!1,settings:{load_attr:"interchange",named_queries:{"default":"only screen and (min-width: 1px)",small:"only screen and (min-width: 768px)",medium:"only screen and (min-width: 1280px)",large:"only screen and (min-width: 1440px)",landscape:"only screen and (orientation: landscape)",portrait:"only screen and (orientation: portrait)",retina:"only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx)"},directives:{replace:function(b,a){if(/IMG/.test(b[0].nodeName)){var c=b[0].src;if(!RegExp(a,"i").test(c))return b[0].src=a,b.trigger("replace",[b[0].src,c])}}}},init:function(b,a,d){Foundation.inherit(this,"throttle");"object"===typeof a&&c.extend(!0,this.settings,a);this.events();this.images();return"string"!==typeof a?this.settings.init:this[a].call(this,d)},events:function(){var b=this;c(k).on("resize.fndtn.interchange",b.throttle(function(){b.resize.call(b)},50))},resize:function(){var b=this.cache;if(this.images_loaded)for(var a in b){if(b.hasOwnProperty(a)){var d=this.results(a,b[a]);if(d)this.settings.directives[d.scenario[1]](d.el,d.scenario[0])}}else setTimeout(c.proxy(this.resize,this),50)},results:function(b,a){var d=a.length;if(0<d)for(var e=c('[data-uuid="'+b+'"]'),d=d-1;0<=d;d--){var f=a[d][2];if((this.settings.named_queries.hasOwnProperty(f)?matchMedia(this.settings.named_queries[f]):matchMedia(f)).matches)return{el:e,scenario:a[d]}}return!1},images:function(b){return"undefined"===typeof this.cached_images||b?this.update_images():this.cached_images},update_images:function(){var b=l.getElementsByTagName("img"),a=b.length,d=0,e="data-"+this.settings.load_attr;this.cached_images=[];this.images_loaded=!1;for(var f=a-1;0<=f;f--)this.loaded(c(b[f]),function(b){d++;b&&0<(b.getAttribute(e)||"").length&&this.cached_images.push(b);d===a&&(this.images_loaded=!0,this.enhance())}.bind(this));return"deferred"},loaded:function(b,a){function c(){a(b[0])}function e(){this.one("load",c);if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var a=this.attr("src"),b=a.match(/\?/)?"&":"?",b=b+("random="+(new Date).getTime());this.attr("src",a+b)}}b.attr("src")?b[0].complete||4===b[0].readyState?c():e.call(b):c()},enhance:function(){for(var b=this.images().length-1;0<=b;b--)this._object(c(this.images()[b]));return c(k).trigger("resize")},parse_params:function(b,a,c){return[this.trim(b),this.convert_directive(a),this.trim(c)]},convert_directive:function(b){b=this.trim(b);return 0<b.length?b:"replace"},_object:function(b){var a=this.parse_data_attr(b),c=[],e=a.length;if(0<e)for(e-=1;0<=e;e--){var f=a[e].split(/\((.*?)(\))$/);if(1<f.length){var g=f[0].split(","),f=this.parse_params(g[0],g[1],f[1]);c.push(f)}}return this.store(b,c)},uuid:function(b){function a(){return(65536*(1+Math.random())|0).toString(16).substring(1)}b=b||"-";return a()+a()+b+a()+b+a()+b+a()+b+a()+a()+a()},store:function(b,a){var c=this.uuid(),e=b.data("uuid");if(e)return this.cache[e];b.attr("data-uuid",c);return this.cache[c]=a},trim:function(b){return"string"===typeof b?c.trim(b):b},parse_data_attr:function(b){b=b.data(this.settings.load_attr).split(/\[(.*?)\]/);for(var a=[],c=b.length-1;0<=c;c--)4<b[c].replace(/[\W\d]+/,"").length&&a.push(b[c]);return a},reflow:function(){this.images(!0)}}})(Foundation.zj,this,this.document);(function(c){c.Placeholders={Utils:{addEventListener:function(c,l,h){if(c.addEventListener)return c.addEventListener(l,h,!1);if(c.attachEvent)return c.attachEvent("on"+l,h)},inArray:function(c,l){var h,b;h=0;for(b=c.length;h<b;h++)if(c[h]===l)return!0;return!1},moveCaret:function(c,l){var h;c.createTextRange?(h=c.createTextRange(),h.move("character",l),h.select()):c.selectionStart&&(c.focus(),c.setSelectionRange(l,l))},changeType:function(c,l){try{return c.type=l,!0}catch(h){return!1}}}}})(this);(function(c){function k(){}function l(a){var b;if(a.value===a.getAttribute(y)&&"true"===a.getAttribute(C)){a.setAttribute(C,"false");a.value="";a.className=a.className.replace(v,"");if(b=a.getAttribute(D))a.type=b;return!0}return!1}function h(a){var b;b=a.getAttribute(y);return""===a.value&&b?(a.setAttribute(C,"true"),a.value=b,a.className+=" "+r,(b=a.getAttribute(D))?a.type="text":"password"===a.type&&w.changeType(a,"text")&&a.setAttribute(D,"password"),!0):!1}function b(a,b){var c,d,e,f,g;if(a&&a.getAttribute(y))b(a);else for(c=a?a.getElementsByTagName("input"):q,d=a?a.getElementsByTagName("textarea"):A,g=0,f=c.length+d.length;g<f;g++)e=g<c.length?c[g]:d[g-c.length],b(e)}function a(a){b(a,l)}function d(a){b(a,h)}function e(a){return function(){I&&a.value===a.getAttribute(y)&&"true"===a.getAttribute(C)?w.moveCaret(a,0):l(a)}}function f(a){return function(){h(a)}}function g(a){return function(b){J=a.value;if("true"===a.getAttribute(C)&&J===a.getAttribute(y)&&w.inArray(u,b.keyCode))return b.preventDefault&&b.preventDefault(),!1}}function m(a){return function(){var b;"true"===a.getAttribute(C)&&a.value!==J&&(a.className=a.className.replace(v,""),a.value=a.value.replace(a.getAttribute(y),""),a.setAttribute(C,!1),b=a.getAttribute(D))&&(a.type=b);""===a.value&&(a.blur(),w.moveCaret(a,0))}}function n(a){return function(){a===document.activeElement&&a.value===a.getAttribute(y)&&"true"===a.getAttribute(C)&&w.moveCaret(a,0)}}function p(b){return function(){a(b)}}function s(a){a.form&&(G=a.form,G.getAttribute(K)||(w.addEventListener(G,"submit",p(G)),G.setAttribute(K,"true")));w.addEventListener(a,"focus",e(a));w.addEventListener(a,"blur",f(a));I&&(w.addEventListener(a,"keydown",g(a)),w.addEventListener(a,"keyup",m(a)),w.addEventListener(a,"click",n(a)));a.setAttribute(L,"true");a.setAttribute(y,z);h(a)}var B="text search url tel email password number textarea".split(" "),u=[27,33,34,35,36,37,38,39,40,8,46],r="placeholdersjs",v=RegExp("(?:^|\\s)"+r+"(?!\\S)"),q,A,y="data-placeholder-value",C="data-placeholder-active",D="data-placeholder-type",K="data-placeholder-submit",L="data-placeholder-bound",E=document.createElement("input"),M=document.getElementsByTagName("head")[0],F=document.documentElement;c=c.Placeholders;var w=c.Utils,I,N,J,z,O,G,t,H,x;c.nativeSupport=void 0!==E.placeholder;if(!c.nativeSupport){q=document.getElementsByTagName("input");A=document.getElementsByTagName("textarea");I="false"===F.getAttribute("data-placeholder-focus");N="false"!==F.getAttribute("data-placeholder-live");E=document.createElement("style");E.type="text/css";F=document.createTextNode("."+r+" { color:#ccc; }");E.styleSheet?E.styleSheet.cssText=F.nodeValue:E.appendChild(F);M.insertBefore(E,M.firstChild);x=0;for(H=q.length+A.length;x<H;x++)t=x<q.length?q[x]:A[x-q.length],(z=t.attributes.placeholder)&&(z=z.nodeValue)&&w.inArray(B,t.type)&&s(t);O=setInterval(function(){x=0;for(H=q.length+A.length;x<H;x++)if(t=x<q.length?q[x]:A[x-q.length],(z=t.attributes.placeholder)&&(z=z.nodeValue)&&w.inArray(B,t.type)&&(t.getAttribute(L)||s(t),z!==t.getAttribute(y)||"password"===t.type&&!t.getAttribute(D)))"password"===t.type&&!t.getAttribute(D)&&w.changeType(t,"text")&&t.setAttribute(D,"password"),t.value===t.getAttribute(y)&&(t.value=z),t.setAttribute(y,z);N||clearInterval(O)},100)}c.disable=c.nativeSupport?k:a;c.enable=c.nativeSupport?k:d})(this);(function(c,k,l,h){Foundation.libs.abide={name:"abide",version:"4.3.2",settings:{live_validate:!0,focus_on_invalid:!0,timeout:1E3,patterns:{alpha:/[a-zA-Z]+/,alpha_numeric:/[a-zA-Z0-9]+/,integer:/-?\d+/,number:/-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?/,password:/(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/,card:/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/,cvv:/^([0-9]){3,4}$/,email:/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,url:/(https?|ftp|file|ssh):\/\/(((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?/,domain:/^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}$/,datetime:/([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))/,date:/(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))/,time:/(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}/,dateISO:/\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/,month_day_year:/(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.](19|20)\d\d/,color:/^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/}},timer:null,init:function(b,a,d){"object"===typeof a&&c.extend(!0,this.settings,a);if("string"!==typeof a)this.settings.init||this.events();else return this[a].call(this,d)},events:function(){var b=this,a=c("form[data-abide]",this.scope).attr("novalidate","novalidate");a.on("submit validate",function(a){return b.validate(c(this).find("input, textarea, select").get(),a)});this.settings.init=!0;if(this.settings.live_validate)a.find("input, textarea, select").on("blur change",function(a){b.validate([this],a)}).on("keydown",function(a){clearTimeout(b.timer);b.timer=setTimeout(function(){b.validate([this],a)}.bind(this),b.settings.timeout)})},validate:function(b,a){for(var d=this.parse_patterns(b),e=d.length,f=c(b[0]).closest("form"),g=0;g<e;g++)if(!d[g]&&/submit/.test(a.type))return this.settings.focus_on_invalid&&b[g].focus(),f.trigger("invalid"),c(b[g]).closest("form").attr("data-invalid",""),!1;/submit/.test(a.type)&&f.trigger("valid");f.removeAttr("data-invalid");return!0},parse_patterns:function(b){for(var a=[],c=b.length-1;0<=c;c--)a.push(this.pattern(b[c]));return this.check_validation_and_apply_styles(a)},pattern:function(b){var a=b.getAttribute("type"),c="string"===typeof b.getAttribute("required");if(this.settings.patterns.hasOwnProperty(a))return[b,this.settings.patterns[a],c];a=b.getAttribute("pattern")||"";if(this.settings.patterns.hasOwnProperty(a)&&0<a.length)return[b,this.settings.patterns[a],c];if(0<a.length)return[b,RegExp(a),c];a=/.*/;return[b,a,c]},check_validation_and_apply_styles:function(b){for(var a=[],d=b.length-1;0<=d;d--){var e=b[d][0],f=b[d][2],g=e.value,h=f?0<e.value.length:!0;"radio"===e.type&&f?a.push(this.valid_radio(e,f)):b[d][1].test(g)&&h||!f&&1>e.value.length?(c(e).removeAttr("data-invalid").parent().removeClass("error"),a.push(!0)):(c(e).attr("data-invalid","").parent().addClass("error"),a.push(!1))}return a},valid_radio:function(b,a){for(var d=b.getAttribute("name"),d=l.getElementsByName(d),e=d.length,f=!1,g=0;g<e;g++)d[g].checked&&(f=!0);for(g=0;g<e;g++)f?c(d[g]).removeAttr("data-invalid").parent().removeClass("error"):c(d[g]).attr("data-invalid","").parent().addClass("error");return f}}})(Foundation.zj,this,this.document);
И питался его выполнить через JS.


Но в итоге получал пустое поле!
 

Yuriy Zymlex

Moderator
Команда форума
Регистрация
24.10.2016
Сообщения
6 518
Благодарностей
3 370
Баллы
113
То есть копировал какой то скрипт например этот
Так и не сработает, тупо скопировать скрипт куда-то там - недостаточно.
Он рассчитан на работу в браузере, следовательно, необходимость его переписывания не обойти.
 

zortexx

Client
Регистрация
19.09.2011
Сообщения
2 520
Благодарностей
1 226
Баллы
113

Vasyl1

Client
Регистрация
11.12.2016
Сообщения
203
Благодарностей
23
Баллы
18

Чешир

Client
Регистрация
27.06.2014
Сообщения
1 634
Благодарностей
963
Баллы
113
  • Спасибо
Реакции: bezvozni

bezvozni

Client
Регистрация
31.03.2013
Сообщения
306
Благодарностей
29
Баллы
28
Последнее редактирование:

GreenWay

Client
Регистрация
11.05.2012
Сообщения
432
Благодарностей
139
Баллы
43
Я так понимаю в эти скрипты необходимо отправлять и переменные, которые можно получить начальными запросами - тогда и получишь то что хочешь.
Самому интересно как передавать переменные в скрипт.
Но, как по мне, гораздо проще открыть страничку, получить куки в контейнер и потом с этими куками работать на запросах.
 

backoff

Client
Регистрация
20.04.2015
Сообщения
6 052
Благодарностей
6 481
Баллы
113
По логике, по идее, сначала мы должны получить все переменные, которые участвуют в генерации, в самом JS. Подставить их в js скрипт и исполнить, тогда по идее и получим то что надо.
 
  • Спасибо
Реакции: RazDvaTri

Hartwell

Client
Регистрация
25.09.2014
Сообщения
194
Благодарностей
118
Баллы
43
Код:
(function(a) {
    a.fingerprint = function() {
        function g() {
            return [navigator.userAgent, [screen.height, screen.width, screen.colorDepth].join("x"), (new Date).getTimezoneOffset(), !!window.sessionStorage, !!window.localStorage, a.map(navigator.plugins, function(e) {
                return [e.name, e.description, a.map(e, function(a) {
                    return [a.type, a.suffixes].join("~")
                }).join(",")].join("::")
            }).join(";")].join("###")
        }
        var f;
        if ("function" == typeof window.md5)
            f = md5(g());
        else
            throw "md5 unavailable, please get it from http://github.com/wbond/md5-js/";
        return f
    }
входные параметры для фингерпринта уж больно "перебор".. учитывая уникальность браузерных конфигов и тд и тп...
тс, попробуй просто рандом 32 значную hex строку в параметр fingerprint, что то мне подсказывает что не играет роли
 
  • Спасибо
Реакции: Astraport

Кто просматривает тему: (Всего: 2, Пользователи: 0, Гости: 2)