/*

 handlebars v3.0.0

Copyright (C) 2011-2014 by Yehuda Katz

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

@license
*/
!function(c,d){"function"==typeof define&&define.amd?define([],d):"object"==typeof exports?module.exports=d():c.Handlebars=d()}(this,function(){var q=function(){function o(b){return M[b]}function p(d){for(var e=1;e<arguments.length;e++){for(var f in arguments[e]){Object.prototype.hasOwnProperty.call(arguments[e],f)&&(d[f]=arguments[e][f])}}return d}function G(e,f){for(var g=0,h=e.length;h>g;g++){if(e[g]===f){return g}}return -1}function H(a){return a&&a.toHTML?a.toHTML():null==a?"":a?(a=""+a,O.test(a)?a.replace(N,o):a):a+""}function I(b){return b||0===b?R(b)&&0===b.length?!0:!1:!0}function J(c,d){return c.path=d,c}function K(c,d){return(c?c+".":"")+d}var L={},M={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},N=/[&<>"'`]/g,O=/[&<>"'`]/;L.extend=p;var P=Object.prototype.toString;L.toString=P;var Q=function(b){return"function"==typeof b};Q(/x/)&&(Q=function(b){return"function"==typeof b&&"[object Function]"===P.call(b)});var Q;L.isFunction=Q;var R=Array.isArray||function(b){return b&&"object"==typeof b?"[object Array]"===P.call(b):!1};return L.isArray=R,L.indexOf=G,L.escapeExpression=H,L.isEmpty=I,L.blockParams=J,L.appendContextPath=K,L}(),r=function(){function d(c,i){var j,k,l=i&&i.loc;l&&(j=l.start.line,k=l.start.column,c+=" - "+j+":"+k);for(var m=Error.prototype.constructor.call(this,c),n=0;n<f.length;n++){this[f[n]]=m[f[n]]}l&&(this.lineNumber=j,this.column=k)}var e,f=["description","fileName","lineNumber","message","name","number","stack"];return d.prototype=new Error,e=d}(),s=function(G,H){function I(c,d){this.helpers=c||{},this.partials=d||{},J(this)}function J(b){b.registerHelper("helperMissing",function(){if(1===arguments.length){return void 0}throw new M("Missing helper: '"+arguments[arguments.length-1].name+"'")}),b.registerHelper("blockHelperMissing",function(a,f){var h=f.inverse,i=f.fn;if(a===!0){return i(this)}if(a===!1||null==a){return h(this)}if(Q(a)){return a.length>0?(f.ids&&(f.ids=[f.name]),b.helpers.each(a,f)):h(this)}if(f.data&&f.ids){var j=W(f.data);j.contextPath=L.appendContextPath(f.data.contextPath,f.name),f={data:j}}return i(a,f)}),b.registerHelper("each",function(f,g){function k(a,d,e){l&&(l.key=a,l.index=d,l.first=0===d,l.last=!!e,X&&(l.contextPath=X+a)),ab+=Y(f[a],{data:l,blockParams:L.blockParams([f[a],a],[X+a,null])})}if(!g){throw new M("Must pass iterator to #each")}var l,X,Y=g.fn,Z=g.inverse,aa=0,ab="";if(g.data&&g.ids&&(X=L.appendContextPath(g.data.contextPath,g.ids[0])+"."),R(f)&&(f=f.call(this)),g.data&&(l=W(g.data)),f&&"object"==typeof f){if(Q(f)){for(var ac=f.length;ac>aa;aa++){k(aa,aa,aa===f.length-1)}}else{var ad;for(var ae in f){f.hasOwnProperty(ae)&&(ad&&k(ad,aa-1),ad=ae,aa++)}ad&&k(ad,aa-1,!0)}}return 0===aa&&(ab=Z(this)),ab}),b.registerHelper("if",function(c,d){return R(c)&&(c=c.call(this)),!d.hash.includeZero&&!c||L.isEmpty(c)?d.inverse(this):d.fn(this)}),b.registerHelper("unless",function(a,d){return b.helpers["if"].call(this,a,{fn:d.inverse,inverse:d.fn,hash:d.hash})}),b.registerHelper("with",function(e,f){R(e)&&(e=e.call(this));var g=f.fn;if(L.isEmpty(e)){return f.inverse(this)}if(f.data&&f.ids){var h=W(f.data);h.contextPath=L.appendContextPath(f.data.contextPath,f.ids[0]),f={data:h}}return g(e,f)}),b.registerHelper("log",function(a,e){var f=e.data&&null!=e.data.level?parseInt(e.data.level,10):1;b.log(f,a)}),b.registerHelper("lookup",function(c,d){return c&&c[d]})}var K={},L=G,M=H,N="3.0.0";K.VERSION=N;var O=6;K.COMPILER_REVISION=O;var P={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1"};K.REVISION_CHANGES=P;var Q=L.isArray,R=L.isFunction,S=L.toString,T="[object Object]";K.HandlebarsEnvironment=I,I.prototype={constructor:I,logger:U,log:V,registerHelper:function(c,d){if(S.call(c)===T){if(d){throw new M("Arg not supported with multiple helpers")}L.extend(this.helpers,c)}else{this.helpers[c]=d}},unregisterHelper:function(b){delete this.helpers[b]},registerPartial:function(c,d){if(S.call(c)===T){L.extend(this.partials,c)}else{if("undefined"==typeof d){throw new M("Attempting to register a partial as undefined")}this.partials[c]=d}},unregisterPartial:function(b){delete this.partials[b]}};var U={methodMap:{0:"debug",1:"info",2:"warn",3:"error"},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:1,log:function(d,e){if("undefined"!=typeof console&&U.level<=d){var f=U.methodMap[d];(console[f]||console.log).call(console,e)}}};K.logger=U;var V=U.log;K.log=V;var W=function(c){var d=L.extend({},c);return d._parent=c,d};return K.createFrame=W,K}(q,r),t=function(){function c(b){this.string=b}var d;return c.prototype.toString=c.prototype.toHTML=function(){return""+this.string},d=c}(),u=function(G,H,I){function J(f){var g=f&&f[0]||1,h=T;if(g!==h){if(h>g){var i=U[h],j=U[g];throw new S("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+i+") or downgrade your runtime to an older version ("+j+").")}throw new S("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+f[1]+").")}}function K(f,g){if(!g){throw new S("No environment passed to template")}if(!f||!f.main){throw new S("Unknown template object: "+typeof f)}g.VM.checkRevision(f.compiler);var h=function(a,b,k){k.hash&&(b=R.extend({},b,k.hash)),a=g.VM.resolvePartial.call(this,a,b,k);var l=g.VM.invokePartial.call(this,a,b,k);if(null==l&&g.compile&&(k.partials[k.name]=g.compile(a,f.compilerOptions,g),l=k.partials[k.name](b,k)),null!=l){if(k.indent){for(var m=l.split("\n"),n=0,o=m.length;o>n&&(m[n]||n+1!==o);n++){m[n]=k.indent+m[n]}l=m.join("\n")}return l}throw new S("The partial "+k.name+" could not be compiled when running in runtime-only mode")},i={strict:function(c,d){if(!(d in c)){throw new S('"'+d+'" not defined in '+c)}return c[d]},lookup:function(e,k){for(var l=e.length,m=0;l>m;m++){if(e[m]&&null!=e[m][k]){return e[m][k]}}},lambda:function(c,d){return"function"==typeof c?c.call(d):c},escapeExpression:R.escapeExpression,invokePartial:h,fn:function(a){return f[a]},programs:[],program:function(k,l,m,n,o){var p=this.programs[k],W=this.fn(k);return l||o||n||m?p=L(this,k,W,l,m,n,o):p||(p=this.programs[k]=L(this,k,W)),p},data:function(c,d){for(;c&&d--;){c=c._parent}return c},merge:function(d,e){var k=d||e;return d&&e&&d!==e&&(k=R.extend({},e,d)),k},noop:g.VM.noop,compilerInfo:f.compiler},j=function(a,d){d=d||{};var e=d.data;j._setup(d),!d.partial&&f.useData&&(e=P(a,e));var k,l=f.useBlockParams?[]:void 0;return f.useDepths&&(k=d.depths?[a].concat(d.depths):[a]),f.main.call(i,a,i.helpers,i.partials,e,l,k)};return j.isTop=!0,j._setup=function(a){a.partial?(i.helpers=a.helpers,i.partials=a.partials):(i.helpers=i.merge(a.helpers,g.helpers),f.usePartial&&(i.partials=i.merge(a.partials,g.partials)))},j._child=function(a,d,k,l){if(f.useBlockParams&&!k){throw new S("must pass block params")}if(f.useDepths&&!l){throw new S("must pass parent depths")}return L(i,a,f[a],d,0,k,l)},j}function L(i,j,k,l,m,n,o){var p=function(a,c){return c=c||{},k.call(i,a,i.helpers,i.partials,c.data||l,n&&[c.blockParams].concat(n),o&&[a].concat(o))};return p.program=j,p.depth=o?o.length:0,p.blockParams=m||0,p}function M(d,e,f){return d?d.call||f.name||(f.name=d,d=f.partials[d]):d=f.partials[f.name],d}function N(d,e,f){if(f.partial=!0,void 0===d){throw new S("The partial "+f.name+" could not be found")}return d instanceof Function?d(e,f):void 0}function O(){return""}function P(c,d){return d&&"root" in d||(d=d?V(d):{},d.root=c),d}var Q={},R=G,S=H,T=I.COMPILER_REVISION,U=I.REVISION_CHANGES,V=I.createFrame;return Q.checkRevision=J,Q.template=K,Q.program=L,Q.resolvePartial=M,Q.invokePartial=N,Q.noop=O,Q}(q,r,s),v=function(p,G,H,I,J){var K,L=p,M=G,N=H,O=I,P=J,Q=function(){var b=new L.HandlebarsEnvironment;return O.extend(b,L),b.SafeString=M,b.Exception=N,b.Utils=O,b.escapeExpression=O.escapeExpression,b.VM=P,b.template=function(a){return P.template(a,b)},b},R=Q();R.create=Q;var S="undefined"!=typeof global?global:window,T=S.Handlebars;return R.noConflict=function(){S.Handlebars===R&&(S.Handlebars=T)},R["default"]=R,K=R}(s,t,r,q,u),w=function(){var c,d={Program:function(e,f,g,h){this.loc=h,this.type="Program",this.body=e,this.blockParams=f,this.strip=g},MustacheStatement:function(g,h,i,j,k,l){this.loc=l,this.type="MustacheStatement",this.path=g,this.params=h||[],this.hash=i,this.escaped=j,this.strip=k},BlockStatement:function(j,k,l,m,n,o,p,G,H){this.loc=H,this.type="BlockStatement",this.path=j,this.params=k||[],this.hash=l,this.program=m,this.inverse=n,this.openStrip=o,this.inverseStrip=p,this.closeStrip=G},PartialStatement:function(f,g,h,i,j){this.loc=j,this.type="PartialStatement",this.name=f,this.params=g||[],this.hash=h,this.indent="",this.strip=i},ContentStatement:function(e,f){this.loc=f,this.type="ContentStatement",this.original=this.value=e},CommentStatement:function(e,f,g){this.loc=g,this.type="CommentStatement",this.value=e,this.strip=f},SubExpression:function(e,f,g,h){this.loc=h,this.type="SubExpression",this.path=e,this.params=f||[],this.hash=g},PathExpression:function(f,g,h,i,j){this.loc=j,this.type="PathExpression",this.data=f,this.original=i,this.parts=h,this.depth=g},StringLiteral:function(e,f){this.loc=f,this.type="StringLiteral",this.original=this.value=e},NumberLiteral:function(e,f){this.loc=f,this.type="NumberLiteral",this.original=this.value=Number(e)},BooleanLiteral:function(e,f){this.loc=f,this.type="BooleanLiteral",this.original=this.value="true"===e},Hash:function(e,f){this.loc=f,this.type="Hash",this.pairs=e},HashPair:function(e,f,g){this.loc=g,this.type="HashPair",this.key=e,this.value=f},helpers:{helperExpression:function(b){return !("SubExpression"!==b.type&&!b.params.length&&!b.hash)},scopedId:function(b){return/^\.|this\b/.test(b.original)},simpleId:function(b){return 1===b.parts.length&&!d.helpers.scopedId(b)&&!b.depth}}};return c=d}(),x=function(){var c,d=function(){function e(){this.yy={}}var f={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,content:12,COMMENT:13,CONTENT:14,openRawBlock:15,END_RAW_BLOCK:16,OPEN_RAW_BLOCK:17,helperName:18,openRawBlock_repetition0:19,openRawBlock_option0:20,CLOSE_RAW_BLOCK:21,openBlock:22,block_option0:23,closeBlock:24,openInverse:25,block_option1:26,OPEN_BLOCK:27,openBlock_repetition0:28,openBlock_option0:29,openBlock_option1:30,CLOSE:31,OPEN_INVERSE:32,openInverse_repetition0:33,openInverse_option0:34,openInverse_option1:35,openInverseChain:36,OPEN_INVERSE_CHAIN:37,openInverseChain_repetition0:38,openInverseChain_option0:39,openInverseChain_option1:40,inverseAndProgram:41,INVERSE:42,inverseChain:43,inverseChain_option0:44,OPEN_ENDBLOCK:45,OPEN:46,mustache_repetition0:47,mustache_option0:48,OPEN_UNESCAPED:49,mustache_repetition1:50,mustache_option1:51,CLOSE_UNESCAPED:52,OPEN_PARTIAL:53,partialName:54,partial_repetition0:55,partial_option0:56,param:57,sexpr:58,OPEN_SEXPR:59,sexpr_repetition0:60,sexpr_option0:61,CLOSE_SEXPR:62,hash:63,hash_repetition_plus0:64,hashSegment:65,ID:66,EQUALS:67,blockParams:68,OPEN_BLOCK_PARAMS:69,blockParams_repetition_plus0:70,CLOSE_BLOCK_PARAMS:71,path:72,dataName:73,STRING:74,NUMBER:75,BOOLEAN:76,DATA:77,pathSegments:78,SEP:79,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",13:"COMMENT",14:"CONTENT",16:"END_RAW_BLOCK",17:"OPEN_RAW_BLOCK",21:"CLOSE_RAW_BLOCK",27:"OPEN_BLOCK",31:"CLOSE",32:"OPEN_INVERSE",37:"OPEN_INVERSE_CHAIN",42:"INVERSE",45:"OPEN_ENDBLOCK",46:"OPEN",49:"OPEN_UNESCAPED",52:"CLOSE_UNESCAPED",53:"OPEN_PARTIAL",59:"OPEN_SEXPR",62:"CLOSE_SEXPR",66:"ID",67:"EQUALS",69:"OPEN_BLOCK_PARAMS",71:"CLOSE_BLOCK_PARAMS",74:"STRING",75:"NUMBER",76:"BOOLEAN",77:"DATA",79:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[12,1],[10,3],[15,5],[9,4],[9,4],[22,6],[25,6],[36,6],[41,2],[43,3],[43,1],[24,3],[8,5],[8,5],[11,5],[57,1],[57,1],[58,5],[63,1],[65,3],[68,3],[18,1],[18,1],[18,1],[18,1],[18,1],[54,1],[54,1],[73,2],[72,1],[78,3],[78,1],[6,0],[6,2],[19,0],[19,2],[20,0],[20,1],[23,0],[23,1],[26,0],[26,1],[28,0],[28,2],[29,0],[29,1],[30,0],[30,1],[33,0],[33,2],[34,0],[34,1],[35,0],[35,1],[38,0],[38,2],[39,0],[39,1],[40,0],[40,1],[44,0],[44,1],[47,0],[47,2],[48,0],[48,1],[50,0],[50,2],[51,0],[51,1],[55,0],[55,2],[56,0],[56,1],[60,0],[60,2],[61,0],[61,1],[64,1],[64,2],[70,1],[70,2]],performAction:function(j,k,l,m,n,o){var p=o.length-1;switch(n){case 1:return o[p-1];case 2:this.$=new m.Program(o[p],null,{},m.locInfo(this._$));break;case 3:this.$=o[p];break;case 4:this.$=o[p];break;case 5:this.$=o[p];break;case 6:this.$=o[p];break;case 7:this.$=o[p];break;case 8:this.$=new m.CommentStatement(m.stripComment(o[p]),m.stripFlags(o[p],o[p]),m.locInfo(this._$));break;case 9:this.$=new m.ContentStatement(o[p],m.locInfo(this._$));break;case 10:this.$=m.prepareRawBlock(o[p-2],o[p-1],o[p],this._$);break;case 11:this.$={path:o[p-3],params:o[p-2],hash:o[p-1]};break;case 12:this.$=m.prepareBlock(o[p-3],o[p-2],o[p-1],o[p],!1,this._$);break;case 13:this.$=m.prepareBlock(o[p-3],o[p-2],o[p-1],o[p],!0,this._$);break;case 14:this.$={path:o[p-4],params:o[p-3],hash:o[p-2],blockParams:o[p-1],strip:m.stripFlags(o[p-5],o[p])};break;case 15:this.$={path:o[p-4],params:o[p-3],hash:o[p-2],blockParams:o[p-1],strip:m.stripFlags(o[p-5],o[p])};break;case 16:this.$={path:o[p-4],params:o[p-3],hash:o[p-2],blockParams:o[p-1],strip:m.stripFlags(o[p-5],o[p])};break;case 17:this.$={strip:m.stripFlags(o[p-1],o[p-1]),program:o[p]};break;case 18:var G=m.prepareBlock(o[p-2],o[p-1],o[p],o[p],!1,this._$),H=new m.Program([G],null,{},m.locInfo(this._$));H.chained=!0,this.$={strip:o[p-2].strip,program:H,chain:!0};break;case 19:this.$=o[p];break;case 20:this.$={path:o[p-1],strip:m.stripFlags(o[p-2],o[p])};break;case 21:this.$=m.prepareMustache(o[p-3],o[p-2],o[p-1],o[p-4],m.stripFlags(o[p-4],o[p]),this._$);break;case 22:this.$=m.prepareMustache(o[p-3],o[p-2],o[p-1],o[p-4],m.stripFlags(o[p-4],o[p]),this._$);break;case 23:this.$=new m.PartialStatement(o[p-3],o[p-2],o[p-1],m.stripFlags(o[p-4],o[p]),m.locInfo(this._$));break;case 24:this.$=o[p];break;case 25:this.$=o[p];break;case 26:this.$=new m.SubExpression(o[p-3],o[p-2],o[p-1],m.locInfo(this._$));break;case 27:this.$=new m.Hash(o[p],m.locInfo(this._$));break;case 28:this.$=new m.HashPair(o[p-2],o[p],m.locInfo(this._$));break;case 29:this.$=o[p-1];break;case 30:this.$=o[p];break;case 31:this.$=o[p];break;case 32:this.$=new m.StringLiteral(o[p],m.locInfo(this._$));break;case 33:this.$=new m.NumberLiteral(o[p],m.locInfo(this._$));break;case 34:this.$=new m.BooleanLiteral(o[p],m.locInfo(this._$));break;case 35:this.$=o[p];break;case 36:this.$=o[p];break;case 37:this.$=m.preparePath(!0,o[p],this._$);break;case 38:this.$=m.preparePath(!1,o[p],this._$);break;case 39:o[p-2].push({part:o[p],separator:o[p-1]}),this.$=o[p-2];break;case 40:this.$=[{part:o[p]}];break;case 41:this.$=[];break;case 42:o[p-1].push(o[p]);break;case 43:this.$=[];break;case 44:o[p-1].push(o[p]);break;case 51:this.$=[];break;case 52:o[p-1].push(o[p]);break;case 57:this.$=[];break;case 58:o[p-1].push(o[p]);break;case 63:this.$=[];break;case 64:o[p-1].push(o[p]);break;case 71:this.$=[];break;case 72:o[p-1].push(o[p]);break;case 75:this.$=[];break;case 76:o[p-1].push(o[p]);break;case 79:this.$=[];break;case 80:o[p-1].push(o[p]);break;case 83:this.$=[];break;case 84:o[p-1].push(o[p]);break;case 87:this.$=[o[p]];break;case 88:o[p-1].push(o[p]);break;case 89:this.$=[o[p]];break;case 90:o[p-1].push(o[p])}},table:[{3:1,4:2,5:[2,41],6:3,13:[2,41],14:[2,41],17:[2,41],27:[2,41],32:[2,41],46:[2,41],49:[2,41],53:[2,41]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:[1,11],14:[1,18],15:16,17:[1,21],22:14,25:15,27:[1,19],32:[1,20],37:[2,2],42:[2,2],45:[2,2],46:[1,12],49:[1,13],53:[1,17]},{1:[2,1]},{5:[2,42],13:[2,42],14:[2,42],17:[2,42],27:[2,42],32:[2,42],37:[2,42],42:[2,42],45:[2,42],46:[2,42],49:[2,42],53:[2,42]},{5:[2,3],13:[2,3],14:[2,3],17:[2,3],27:[2,3],32:[2,3],37:[2,3],42:[2,3],45:[2,3],46:[2,3],49:[2,3],53:[2,3]},{5:[2,4],13:[2,4],14:[2,4],17:[2,4],27:[2,4],32:[2,4],37:[2,4],42:[2,4],45:[2,4],46:[2,4],49:[2,4],53:[2,4]},{5:[2,5],13:[2,5],14:[2,5],17:[2,5],27:[2,5],32:[2,5],37:[2,5],42:[2,5],45:[2,5],46:[2,5],49:[2,5],53:[2,5]},{5:[2,6],13:[2,6],14:[2,6],17:[2,6],27:[2,6],32:[2,6],37:[2,6],42:[2,6],45:[2,6],46:[2,6],49:[2,6],53:[2,6]},{5:[2,7],13:[2,7],14:[2,7],17:[2,7],27:[2,7],32:[2,7],37:[2,7],42:[2,7],45:[2,7],46:[2,7],49:[2,7],53:[2,7]},{5:[2,8],13:[2,8],14:[2,8],17:[2,8],27:[2,8],32:[2,8],37:[2,8],42:[2,8],45:[2,8],46:[2,8],49:[2,8],53:[2,8]},{18:22,66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{18:31,66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{4:32,6:3,13:[2,41],14:[2,41],17:[2,41],27:[2,41],32:[2,41],37:[2,41],42:[2,41],45:[2,41],46:[2,41],49:[2,41],53:[2,41]},{4:33,6:3,13:[2,41],14:[2,41],17:[2,41],27:[2,41],32:[2,41],42:[2,41],45:[2,41],46:[2,41],49:[2,41],53:[2,41]},{12:34,14:[1,18]},{18:36,54:35,58:37,59:[1,38],66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{5:[2,9],13:[2,9],14:[2,9],16:[2,9],17:[2,9],27:[2,9],32:[2,9],37:[2,9],42:[2,9],45:[2,9],46:[2,9],49:[2,9],53:[2,9]},{18:39,66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{18:40,66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{18:41,66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{31:[2,71],47:42,59:[2,71],66:[2,71],74:[2,71],75:[2,71],76:[2,71],77:[2,71]},{21:[2,30],31:[2,30],52:[2,30],59:[2,30],62:[2,30],66:[2,30],69:[2,30],74:[2,30],75:[2,30],76:[2,30],77:[2,30]},{21:[2,31],31:[2,31],52:[2,31],59:[2,31],62:[2,31],66:[2,31],69:[2,31],74:[2,31],75:[2,31],76:[2,31],77:[2,31]},{21:[2,32],31:[2,32],52:[2,32],59:[2,32],62:[2,32],66:[2,32],69:[2,32],74:[2,32],75:[2,32],76:[2,32],77:[2,32]},{21:[2,33],31:[2,33],52:[2,33],59:[2,33],62:[2,33],66:[2,33],69:[2,33],74:[2,33],75:[2,33],76:[2,33],77:[2,33]},{21:[2,34],31:[2,34],52:[2,34],59:[2,34],62:[2,34],66:[2,34],69:[2,34],74:[2,34],75:[2,34],76:[2,34],77:[2,34]},{21:[2,38],31:[2,38],52:[2,38],59:[2,38],62:[2,38],66:[2,38],69:[2,38],74:[2,38],75:[2,38],76:[2,38],77:[2,38],79:[1,43]},{66:[1,30],78:44},{21:[2,40],31:[2,40],52:[2,40],59:[2,40],62:[2,40],66:[2,40],69:[2,40],74:[2,40],75:[2,40],76:[2,40],77:[2,40],79:[2,40]},{50:45,52:[2,75],59:[2,75],66:[2,75],74:[2,75],75:[2,75],76:[2,75],77:[2,75]},{23:46,36:48,37:[1,50],41:49,42:[1,51],43:47,45:[2,47]},{26:52,41:53,42:[1,51],45:[2,49]},{16:[1,54]},{31:[2,79],55:55,59:[2,79],66:[2,79],74:[2,79],75:[2,79],76:[2,79],77:[2,79]},{31:[2,35],59:[2,35],66:[2,35],74:[2,35],75:[2,35],76:[2,35],77:[2,35]},{31:[2,36],59:[2,36],66:[2,36],74:[2,36],75:[2,36],76:[2,36],77:[2,36]},{18:56,66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{28:57,31:[2,51],59:[2,51],66:[2,51],69:[2,51],74:[2,51],75:[2,51],76:[2,51],77:[2,51]},{31:[2,57],33:58,59:[2,57],66:[2,57],69:[2,57],74:[2,57],75:[2,57],76:[2,57],77:[2,57]},{19:59,21:[2,43],59:[2,43],66:[2,43],74:[2,43],75:[2,43],76:[2,43],77:[2,43]},{18:63,31:[2,73],48:60,57:61,58:64,59:[1,38],63:62,64:65,65:66,66:[1,67],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{66:[1,68]},{21:[2,37],31:[2,37],52:[2,37],59:[2,37],62:[2,37],66:[2,37],69:[2,37],74:[2,37],75:[2,37],76:[2,37],77:[2,37],79:[1,43]},{18:63,51:69,52:[2,77],57:70,58:64,59:[1,38],63:71,64:65,65:66,66:[1,67],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{24:72,45:[1,73]},{45:[2,48]},{4:74,6:3,13:[2,41],14:[2,41],17:[2,41],27:[2,41],32:[2,41],37:[2,41],42:[2,41],45:[2,41],46:[2,41],49:[2,41],53:[2,41]},{45:[2,19]},{18:75,66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{4:76,6:3,13:[2,41],14:[2,41],17:[2,41],27:[2,41],32:[2,41],45:[2,41],46:[2,41],49:[2,41],53:[2,41]},{24:77,45:[1,73]},{45:[2,50]},{5:[2,10],13:[2,10],14:[2,10],17:[2,10],27:[2,10],32:[2,10],37:[2,10],42:[2,10],45:[2,10],46:[2,10],49:[2,10],53:[2,10]},{18:63,31:[2,81],56:78,57:79,58:64,59:[1,38],63:80,64:65,65:66,66:[1,67],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{59:[2,83],60:81,62:[2,83],66:[2,83],74:[2,83],75:[2,83],76:[2,83],77:[2,83]},{18:63,29:82,31:[2,53],57:83,58:64,59:[1,38],63:84,64:65,65:66,66:[1,67],69:[2,53],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{18:63,31:[2,59],34:85,57:86,58:64,59:[1,38],63:87,64:65,65:66,66:[1,67],69:[2,59],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{18:63,20:88,21:[2,45],57:89,58:64,59:[1,38],63:90,64:65,65:66,66:[1,67],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{31:[1,91]},{31:[2,72],59:[2,72],66:[2,72],74:[2,72],75:[2,72],76:[2,72],77:[2,72]},{31:[2,74]},{21:[2,24],31:[2,24],52:[2,24],59:[2,24],62:[2,24],66:[2,24],69:[2,24],74:[2,24],75:[2,24],76:[2,24],77:[2,24]},{21:[2,25],31:[2,25],52:[2,25],59:[2,25],62:[2,25],66:[2,25],69:[2,25],74:[2,25],75:[2,25],76:[2,25],77:[2,25]},{21:[2,27],31:[2,27],52:[2,27],62:[2,27],65:92,66:[1,93],69:[2,27]},{21:[2,87],31:[2,87],52:[2,87],62:[2,87],66:[2,87],69:[2,87]},{21:[2,40],31:[2,40],52:[2,40],59:[2,40],62:[2,40],66:[2,40],67:[1,94],69:[2,40],74:[2,40],75:[2,40],76:[2,40],77:[2,40],79:[2,40]},{21:[2,39],31:[2,39],52:[2,39],59:[2,39],62:[2,39],66:[2,39],69:[2,39],74:[2,39],75:[2,39],76:[2,39],77:[2,39],79:[2,39]},{52:[1,95]},{52:[2,76],59:[2,76],66:[2,76],74:[2,76],75:[2,76],76:[2,76],77:[2,76]},{52:[2,78]},{5:[2,12],13:[2,12],14:[2,12],17:[2,12],27:[2,12],32:[2,12],37:[2,12],42:[2,12],45:[2,12],46:[2,12],49:[2,12],53:[2,12]},{18:96,66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{36:48,37:[1,50],41:49,42:[1,51],43:98,44:97,45:[2,69]},{31:[2,63],38:99,59:[2,63],66:[2,63],69:[2,63],74:[2,63],75:[2,63],76:[2,63],77:[2,63]},{45:[2,17]},{5:[2,13],13:[2,13],14:[2,13],17:[2,13],27:[2,13],32:[2,13],37:[2,13],42:[2,13],45:[2,13],46:[2,13],49:[2,13],53:[2,13]},{31:[1,100]},{31:[2,80],59:[2,80],66:[2,80],74:[2,80],75:[2,80],76:[2,80],77:[2,80]},{31:[2,82]},{18:63,57:102,58:64,59:[1,38],61:101,62:[2,85],63:103,64:65,65:66,66:[1,67],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{30:104,31:[2,55],68:105,69:[1,106]},{31:[2,52],59:[2,52],66:[2,52],69:[2,52],74:[2,52],75:[2,52],76:[2,52],77:[2,52]},{31:[2,54],69:[2,54]},{31:[2,61],35:107,68:108,69:[1,106]},{31:[2,58],59:[2,58],66:[2,58],69:[2,58],74:[2,58],75:[2,58],76:[2,58],77:[2,58]},{31:[2,60],69:[2,60]},{21:[1,109]},{21:[2,44],59:[2,44],66:[2,44],74:[2,44],75:[2,44],76:[2,44],77:[2,44]},{21:[2,46]},{5:[2,21],13:[2,21],14:[2,21],17:[2,21],27:[2,21],32:[2,21],37:[2,21],42:[2,21],45:[2,21],46:[2,21],49:[2,21],53:[2,21]},{21:[2,88],31:[2,88],52:[2,88],62:[2,88],66:[2,88],69:[2,88]},{67:[1,94]},{18:63,57:110,58:64,59:[1,38],66:[1,30],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{5:[2,22],13:[2,22],14:[2,22],17:[2,22],27:[2,22],32:[2,22],37:[2,22],42:[2,22],45:[2,22],46:[2,22],49:[2,22],53:[2,22]},{31:[1,111]},{45:[2,18]},{45:[2,70]},{18:63,31:[2,65],39:112,57:113,58:64,59:[1,38],63:114,64:65,65:66,66:[1,67],69:[2,65],72:23,73:24,74:[1,25],75:[1,26],76:[1,27],77:[1,29],78:28},{5:[2,23],13:[2,23],14:[2,23],17:[2,23],27:[2,23],32:[2,23],37:[2,23],42:[2,23],45:[2,23],46:[2,23],49:[2,23],53:[2,23]},{62:[1,115]},{59:[2,84],62:[2,84],66:[2,84],74:[2,84],75:[2,84],76:[2,84],77:[2,84]},{62:[2,86]},{31:[1,116]},{31:[2,56]},{66:[1,118],70:117},{31:[1,119]},{31:[2,62]},{14:[2,11]},{21:[2,28],31:[2,28],52:[2,28],62:[2,28],66:[2,28],69:[2,28]},{5:[2,20],13:[2,20],14:[2,20],17:[2,20],27:[2,20],32:[2,20],37:[2,20],42:[2,20],45:[2,20],46:[2,20],49:[2,20],53:[2,20]},{31:[2,67],40:120,68:121,69:[1,106]},{31:[2,64],59:[2,64],66:[2,64],69:[2,64],74:[2,64],75:[2,64],76:[2,64],77:[2,64]},{31:[2,66],69:[2,66]},{21:[2,26],31:[2,26],52:[2,26],59:[2,26],62:[2,26],66:[2,26],69:[2,26],74:[2,26],75:[2,26],76:[2,26],77:[2,26]},{13:[2,14],14:[2,14],17:[2,14],27:[2,14],32:[2,14],37:[2,14],42:[2,14],45:[2,14],46:[2,14],49:[2,14],53:[2,14]},{66:[1,123],71:[1,122]},{66:[2,89],71:[2,89]},{13:[2,15],14:[2,15],17:[2,15],27:[2,15],32:[2,15],42:[2,15],45:[2,15],46:[2,15],49:[2,15],53:[2,15]},{31:[1,124]},{31:[2,68]},{31:[2,29]},{66:[2,90],71:[2,90]},{13:[2,16],14:[2,16],17:[2,16],27:[2,16],32:[2,16],37:[2,16],42:[2,16],45:[2,16],46:[2,16],49:[2,16],53:[2,16]}],defaultActions:{4:[2,1],47:[2,48],49:[2,19],53:[2,50],62:[2,74],71:[2,78],76:[2,17],80:[2,82],90:[2,46],97:[2,18],98:[2,70],103:[2,86],105:[2,56],108:[2,62],109:[2,11],121:[2,68],122:[2,29]},parseError:function(b){throw new Error(b)},parse:function(G){function H(){var b;return b=I.lexer.lex()||1,"number"!=typeof b&&(b=I.symbols_[b]||b),b}var I=this,J=[0],K=[null],L=[],M=this.table,N="",O=0,P=0,Q=0;this.lexer.setInput(G),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,"undefined"==typeof this.lexer.yylloc&&(this.lexer.yylloc={});var R=this.lexer.yylloc;L.push(R);var S=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var T,U,V,W,X,Y,Z,aa,ab,ac={};;){if(V=J[J.length-1],this.defaultActions[V]?W=this.defaultActions[V]:((null===T||"undefined"==typeof T)&&(T=H()),W=M[V]&&M[V][T]),"undefined"==typeof W||!W.length||!W[0]){var ad="";if(!Q){ab=[];for(Y in M[V]){this.terminals_[Y]&&Y>2&&ab.push("'"+this.terminals_[Y]+"'")}ad=this.lexer.showPosition?"Parse error on line "+(O+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+ab.join(", ")+", got '"+(this.terminals_[T]||T)+"'":"Parse error on line "+(O+1)+": Unexpected "+(1==T?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(ad,{text:this.lexer.match,token:this.terminals_[T]||T,line:this.lexer.yylineno,loc:R,expected:ab})}}if(W[0] instanceof Array&&W.length>1){throw new Error("Parse Error: multiple actions possible at state: "+V+", token: "+T)}switch(W[0]){case 1:J.push(T),K.push(this.lexer.yytext),L.push(this.lexer.yylloc),J.push(W[1]),T=null,U?(T=U,U=null):(P=this.lexer.yyleng,N=this.lexer.yytext,O=this.lexer.yylineno,R=this.lexer.yylloc,Q>0&&Q--);break;case 2:if(Z=this.productions_[W[1]][1],ac.$=K[K.length-Z],ac._$={first_line:L[L.length-(Z||1)].first_line,last_line:L[L.length-1].last_line,first_column:L[L.length-(Z||1)].first_column,last_column:L[L.length-1].last_column},S&&(ac._$.range=[L[L.length-(Z||1)].range[0],L[L.length-1].range[1]]),X=this.performAction.call(ac,N,P,O,this.yy,W[1],K,L),"undefined"!=typeof X){return X}Z&&(J=J.slice(0,-1*Z*2),K=K.slice(0,-1*Z),L=L.slice(0,-1*Z)),J.push(this.productions_[W[1]][0]),K.push(ac.$),L.push(ac._$),aa=M[J[J.length-2]][J[J.length-1]],J.push(aa);break;case 3:return !0}}return !0}},g=function(){var b={EOF:1,parseError:function(h,i){if(!this.yy.parser){throw new Error(h)}this.yy.parser.parseError(h,i)},setInput:function(h){return this._input=h,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var h=this._input[0];this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h;var i=h.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),h},unput:function(h){var i=h.length,j=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i-1),this.offset-=i;var k=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),j.length-1&&(this.yylineno-=j.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:j?(j.length===k.length?this.yylloc.first_column:0)+k[k.length-j.length].length-j[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-i]),this},more:function(){return this._more=!0,this},less:function(h){this.unput(this.match.slice(h))},pastInput:function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var h=this.match;return h.length<20&&(h+=this._input.substr(0,20-h.length)),(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var h=this.pastInput(),i=new Array(h.length+1).join("-");return h+this.upcomingInput()+"\n"+i+"^"},next:function(){if(this.done){return this.EOF}this._input||(this.done=!0);var h,i,j,k,l;this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),n=0;n<m.length&&(j=this._input.match(this.rules[m[n]]),!j||i&&!(j[0].length>i[0].length)||(i=j,k=n,this.options.flex));n++){}return i?(l=i[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],h=this.performAction.call(this,this.yy,this,m[k],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),h?h:void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var h=this.next();return"undefined"!=typeof h?h:this.lex()},begin:function(h){this.conditionStack.push(h)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(h){this.begin(h)}};return b.options={},b.performAction=function(h,i,j,k){function l(m,n){return i.yytext=i.yytext.substr(m,i.yyleng-n)}switch(j){case 0:if("\\\\"===i.yytext.slice(-2)?(l(0,1),this.begin("mu")):"\\"===i.yytext.slice(-1)?(l(0,1),this.begin("emu")):this.begin("mu"),i.yytext){return 14}break;case 1:return 14;case 2:return this.popState(),14;case 3:return i.yytext=i.yytext.substr(5,i.yyleng-9),this.popState(),16;case 4:return 14;case 5:return this.popState(),13;case 6:return 59;case 7:return 62;case 8:return 17;case 9:return this.popState(),this.begin("raw"),21;case 10:return 53;case 11:return 27;case 12:return 45;case 13:return this.popState(),42;case 14:return this.popState(),42;case 15:return 32;case 16:return 37;case 17:return 49;case 18:return 46;case 19:this.unput(i.yytext),this.popState(),this.begin("com");break;case 20:return this.popState(),13;case 21:return 46;case 22:return 67;case 23:return 66;case 24:return 66;case 25:return 79;case 26:break;case 27:return this.popState(),52;case 28:return this.popState(),31;case 29:return i.yytext=l(1,2).replace(/\\"/g,'"'),74;case 30:return i.yytext=l(1,2).replace(/\\'/g,"'"),74;case 31:return 77;case 32:return 76;case 33:return 76;case 34:return 75;case 35:return 69;case 36:return 71;case 37:return 66;case 38:return i.yytext=l(1,2),66;case 39:return"INVALID";case 40:return 5}},b.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]*?(?=(\{\{\{\{\/)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[[^\]]*\])/,/^(?:.)/,/^(?:$)/],b.conditions={mu:{rules:[6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[5],inclusive:!1},raw:{rules:[3,4],inclusive:!1},INITIAL:{rules:[0,1,40],inclusive:!0}},b}();return f.lexer=g,e.prototype=f,f.Parser=e,new e}();return c=d}(),y=function(g,h){function i(){this.parents=[]}var j,k=g,l=h;return i.prototype={constructor:i,mutating:!1,acceptKey:function(d,e){var f=this.accept(d[e]);if(this.mutating){if(f&&(!f.type||!l[f.type])){throw new k('Unexpected node type "'+f.type+'" found when accepting '+e+" on "+d.type)}d[e]=f}},acceptRequired:function(c,d){if(this.acceptKey(c,d),!c[d]){throw new k(c.type+" requires "+d)}},acceptArray:function(d){for(var e=0,f=d.length;f>e;e++){this.acceptKey(d,e),d[e]||(d.splice(e,1),e--,f--)}},accept:function(c){if(c){this.current&&this.parents.unshift(this.current),this.current=c;var d=this[c.type](c);return this.current=this.parents.shift(),!this.mutating||d?d:d!==!1?c:void 0}},Program:function(b){this.acceptArray(b.body)},MustacheStatement:function(b){this.acceptRequired(b,"path"),this.acceptArray(b.params),this.acceptKey(b,"hash")},BlockStatement:function(b){this.acceptRequired(b,"path"),this.acceptArray(b.params),this.acceptKey(b,"hash"),this.acceptKey(b,"program"),this.acceptKey(b,"inverse")},PartialStatement:function(b){this.acceptRequired(b,"name"),this.acceptArray(b.params),this.acceptKey(b,"hash")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:function(b){this.acceptRequired(b,"path"),this.acceptArray(b.params),this.acceptKey(b,"hash")},PartialExpression:function(b){this.acceptRequired(b,"name"),this.acceptArray(b.params),this.acceptKey(b,"hash")},PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},Hash:function(b){this.acceptArray(b.pairs)},HashPair:function(b){this.acceptRequired(b,"value")}},j=i}(r,w),z=function(i){function j(){}function k(f,g,h){void 0===g&&(g=f.length);var G=f[g-1],H=f[g-2];return G?"ContentStatement"===G.type?(H||!h?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(G.original):void 0:h}function l(f,g,h){void 0===g&&(g=-1);var G=f[g+1],H=f[g+2];return G?"ContentStatement"===G.type?(H||!h?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(G.original):void 0:h}function m(f,g,h){var G=f[null==g?0:g+1];if(G&&"ContentStatement"===G.type&&(h||!G.rightStripped)){var H=G.value;G.value=G.value.replace(h?/^\s+/:/^[ \t]*\r?\n?/,""),G.rightStripped=G.value!==H}}function n(f,g,h){var G=f[null==g?f.length-1:g-1];if(G&&"ContentStatement"===G.type&&(h||!G.leftStripped)){var H=G.value;return G.value=G.value.replace(h?/\s+$/:/[ \t]+$/,""),G.leftStripped=G.value!==H,G.leftStripped}}var o,p=i;return j.prototype=new p,j.prototype.Program=function(c){var d=!this.isRootSeen;this.isRootSeen=!0;for(var e=c.body,f=0,G=e.length;G>f;f++){var H=e[f],I=this.accept(H);if(I){var J=k(e,f,d),K=l(e,f,d),L=I.openStandalone&&J,M=I.closeStandalone&&K,N=I.inlineStandalone&&J&&K;I.close&&m(e,f,!0),I.open&&n(e,f,!0),N&&(m(e,f),n(e,f)&&"PartialStatement"===H.type&&(H.indent=/([ \t]+$)/.exec(e[f-1].original)[1])),L&&(m((H.program||H.inverse).body),n(e,f)),M&&(m(e,f),n((H.inverse||H.program).body))}}return c},j.prototype.BlockStatement=function(c){this.accept(c.program),this.accept(c.inverse);var d=c.program||c.inverse,e=c.program&&c.inverse,f=e,G=e;if(e&&e.chained){for(f=e.body[0].program;G.chained;){G=G.body[G.body.length-1].program}}var H={open:c.openStrip.open,close:c.closeStrip.close,openStandalone:l(d.body),closeStandalone:k((f||d).body)};if(c.openStrip.close&&m(d.body,null,!0),e){var I=c.inverseStrip;I.open&&n(d.body,null,!0),I.close&&m(f.body,null,!0),c.closeStrip.open&&n(G.body,null,!0),k(d.body)&&l(f.body)&&(n(d.body),m(f.body))}else{c.closeStrip.open&&n(d.body,null,!0)}return H},j.prototype.MustacheStatement=function(b){return b.strip},j.prototype.PartialStatement=j.prototype.CommentStatement=function(c){var d=c.strip||{};return{inlineStandalone:!0,open:d.open,close:d.close}},o=j}(y),A=function(k){function l(c,d){this.source=c,this.start={line:d.first_line,column:d.first_column},this.end={line:d.last_line,column:d.last_column}}function m(c,d){return{open:"~"===c.charAt(2),close:"~"===d.charAt(d.length-3)}}function n(b){return b.replace(/^\{\{~?\!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function o(j,K,L){L=this.locInfo(L);for(var M=j?"@":"",N=[],O=0,P="",Q=0,R=K.length;R>Q;Q++){var S=K[Q].part;if(M+=(K[Q].separator||"")+S,".."===S||"."===S||"this"===S){if(N.length>0){throw new J("Invalid path: "+M,{loc:L})}".."===S&&(O++,P+="../")}else{N.push(S)}}return new this.PathExpression(j,O,N,M,L)}function p(i,j,K,L,M,N){var O=L.charAt(3)||L.charAt(2),P="{"!==O&&"&"!==O;return new this.MustacheStatement(i,j,K,P,M,this.locInfo(N))}function G(g,h,i,j){if(g.path.original!==i){var K={loc:g.path.loc};throw new J(g.path.original+" doesn't match "+i,K)}j=this.locInfo(j);var L=new this.Program([h],null,{},j);return new this.BlockStatement(g.path,g.params,g.hash,L,void 0,{},{},{},j)}function H(j,K,L,M,N,O){if(M&&M.path&&j.path.original!==M.path.original){var P={loc:j.path.loc};throw new J(j.path.original+" doesn't match "+M.path.original,P)}K.blockParams=j.blockParams;var Q,R;return L&&(L.chain&&(L.program.body[0].closeStrip=M.strip),R=L.strip,Q=L.program),N&&(N=Q,Q=K,K=N),new this.BlockStatement(j.path,j.params,j.hash,K,Q,j.strip,R,M&&M.strip,this.locInfo(O))}var I={},J=k;return I.SourceLocation=l,I.stripFlags=m,I.stripComment=n,I.preparePath=o,I.prepareMustache=p,I.prepareRawBlock=G,I.prepareBlock=H,I}(r),B=function(n,o,p,G,H){function I(d,e){if("Program"===d.type){return d}K.yy=P,P.locInfo=function(b){return new P.SourceLocation(e&&e.srcName,b)};var f=new M;return f.accept(K.parse(d))}var J={},K=n,L=o,M=p,N=G,O=H.extend;J.parser=K;var P={};return O(P,N,L),J.parse=I,J}(x,w,z,A,q),C=function(o,p,G){function H(){}function I(f,g,h){if(null==f||"string"!=typeof f&&"Program"!==f.type){throw new N("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+f)}g=g||{},"data" in g||(g.data=!0),g.compat&&(g.useDepths=!0);var i=h.parse(f,g),j=(new h.Compiler).compile(i,g);return(new h.JavaScriptCompiler).compile(j,g)}function J(g,h,i){function j(){var a=i.parse(g,h),b=(new i.Compiler).compile(a,h),c=(new i.JavaScriptCompiler).compile(b,h,void 0,!0);return i.template(c)}if(null==g||"string"!=typeof g&&"Program"!==g.type){throw new N("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+g)}h=h||{},"data" in h||(h.data=!0),h.compat&&(h.useDepths=!0);var k,l=function(c,d){return k||(k=j()),k.call(this,c,d)};return l._setup=function(b){return k||(k=j()),k._setup(b)},l._child=function(d,e,m,n){return k||(k=j()),k._child(d,e,m,n)},l}function K(d,e){if(d===e){return !0}if(O(d)&&O(e)&&d.length===e.length){for(var f=0;f<d.length;f++){if(!K(d[f],e[f])){return !1}}return !0}}function L(c){if(!c.path.parts){var d=c.path;c.path=new Q.PathExpression(!1,0,[d.original+""],d.original+"",d.log)}}var M={},N=o,O=p.isArray,P=p.indexOf,Q=G,R=[].slice;return M.Compiler=H,H.prototype={compiler:H,equals:function(f){var g=this.opcodes.length;if(f.opcodes.length!==g){return !1}for(var h=0;g>h;h++){var i=this.opcodes[h],j=f.opcodes[h];if(i.opcode!==j.opcode||!K(i.args,j.args)){return !1}}for(g=this.children.length,h=0;g>h;h++){if(!this.children[h].equals(f.children[h])){return !1}}return !0},guid:0,compile:function(e,f){this.sourceNode=[],this.opcodes=[],this.children=[],this.options=f,this.stringParams=f.stringParams,this.trackIds=f.trackIds,f.blockParams=f.blockParams||[];var g=f.knownHelpers;if(f.knownHelpers={helperMissing:!0,blockHelperMissing:!0,each:!0,"if":!0,unless:!0,"with":!0,log:!0,lookup:!0},g){for(var h in g){f.knownHelpers[h]=g[h]}}return this.accept(e)},compileProgram:function(d){var e=(new this.compiler).compile(d,this.options),f=this.guid++;return this.usePartial=this.usePartial||e.usePartial,this.children[f]=e,this.useDepths=this.useDepths||e.useDepths,f},accept:function(c){this.sourceNode.unshift(c);var d=this[c.type](c);return this.sourceNode.shift(),d},Program:function(e){this.options.blockParams.unshift(e.blockParams);for(var f=e.body,g=0,h=f.length;h>g;g++){this.accept(f[g])}return this.options.blockParams.shift(),this.isSimple=1===h,this.blockParams=e.blockParams?e.blockParams.length:0,this},BlockStatement:function(e){L(e);var f=e.program,g=e.inverse;f=f&&this.compileProgram(f),g=g&&this.compileProgram(g);var h=this.classifySexpr(e);"helper"===h?this.helperSexpr(e,f,g):"simple"===h?(this.simpleSexpr(e),this.opcode("pushProgram",f),this.opcode("pushProgram",g),this.opcode("emptyHash"),this.opcode("blockValue",e.path.original)):(this.ambiguousSexpr(e,f,g),this.opcode("pushProgram",f),this.opcode("pushProgram",g),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},PartialStatement:function(f){this.usePartial=!0;var g=f.params;if(g.length>1){throw new N("Unsupported number of partial arguments: "+g.length,f)}g.length||g.push({type:"PathExpression",parts:[],depth:0});var h=f.name.original,i="SubExpression"===f.name.type;i&&this.accept(f.name),this.setupFullMustacheParams(f,void 0,void 0,!0);var j=f.indent||"";this.options.preventIndent&&j&&(this.opcode("appendContent",j),j=""),this.opcode("invokePartial",i,h,j),this.opcode("append")},MustacheStatement:function(b){this.SubExpression(b),this.opcode(b.escaped&&!this.options.noEscape?"appendEscaped":"append")},ContentStatement:function(b){b.value&&this.opcode("appendContent",b.value)},CommentStatement:function(){},SubExpression:function(c){L(c);var d=this.classifySexpr(c);"simple"===d?this.simpleSexpr(c):"helper"===d?this.helperSexpr(c):this.ambiguousSexpr(c)},ambiguousSexpr:function(g,h,i){var j=g.path,k=j.parts[0],l=null!=h||null!=i;this.opcode("getContext",j.depth),this.opcode("pushProgram",h),this.opcode("pushProgram",i),this.accept(j),this.opcode("invokeAmbiguous",k,l)},simpleSexpr:function(b){this.accept(b.path),this.opcode("resolvePossibleLambda")},helperSexpr:function(g,h,i){var j=this.setupFullMustacheParams(g,h,i),k=g.path,l=k.parts[0];if(this.options.knownHelpers[l]){this.opcode("invokeKnownHelper",j.length,l)}else{if(this.options.knownHelpersOnly){throw new N("You specified knownHelpersOnly, but used the unknown helper "+l,g)}k.falsy=!0,this.accept(k),this.opcode("invokeHelper",j.length,k.original,Q.helpers.simpleId(k))}},PathExpression:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var f=e.parts[0],g=Q.helpers.scopedId(e),h=!e.depth&&!g&&this.blockParamIndex(f);h?this.opcode("lookupBlockParam",h,e.parts):f?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts)):this.opcode("lookupOnContext",e.parts,e.falsy,g):this.opcode("pushContext")},StringLiteral:function(b){this.opcode("pushString",b.value)},NumberLiteral:function(b){this.opcode("pushLiteral",b.value)},BooleanLiteral:function(b){this.opcode("pushLiteral",b.value)},Hash:function(e){var f,g,h=e.pairs;for(this.opcode("pushHash"),f=0,g=h.length;g>f;f++){this.pushParam(h[f].value)}for(;f--;){this.opcode("assignToHash",h[f].key)}this.opcode("popHash")},opcode:function(b){this.opcodes.push({opcode:b,args:R.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(b){b&&(this.useDepths=!0)},classifySexpr:function(h){var i=Q.helpers.simpleId(h.path),j=i&&!!this.blockParamIndex(h.path.parts[0]),k=!j&&Q.helpers.helperExpression(h),l=!j&&(k||i),m=this.options;if(l&&!k){var n=h.path.parts[0];m.knownHelpers[n]?k=!0:m.knownHelpersOnly&&(l=!1)}return k?"helper":l?"ambiguous":"simple"},pushParams:function(d){for(var e=0,f=d.length;f>e;e++){this.pushParam(d[e])}},pushParam:function(e){var f=null!=e.value?e.value:e.original||"";if(this.stringParams){f.replace&&(f=f.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),e.depth&&this.addDepth(e.depth),this.opcode("getContext",e.depth||0),this.opcode("pushStringParam",f,e.type),"SubExpression"===e.type&&this.accept(e)}else{if(this.trackIds){var g;if(!e.parts||Q.helpers.scopedId(e)||e.depth||(g=this.blockParamIndex(e.parts[0])),g){var h=e.parts.slice(1).join(".");this.opcode("pushId","BlockParam",g,h)}else{f=e.original||f,f.replace&&(f=f.replace(/^\.\//g,"").replace(/^\.$/g,"")),this.opcode("pushId",e.type,f)}}this.accept(e)}},setupFullMustacheParams:function(f,g,h,i){var j=f.params;return this.pushParams(j),this.opcode("pushProgram",g),this.opcode("pushProgram",h),f.hash?this.accept(f.hash):this.opcode("emptyHash",i),j},blockParamIndex:function(f){for(var g=0,h=this.options.blockParams.length;h>g;g++){var i=this.options.blockParams[g],j=i&&P(i,f);if(i&&j>=0){return[g,j]}}}},M.precompile=I,M.compile=J,M}(r,q,w),D=function(i){function j(e,h,G){if(m(e)){for(var H=[],I=0,J=e.length;J>I;I++){H.push(h.wrap(e[I],G))}return H}return"boolean"==typeof e||"number"==typeof e?e+"":e}function k(b){this.srcFile=b,this.source=[]}var l,m=i.isArray;try{var n=require("source-map"),o=n.SourceNode}catch(p){o=function(e,f,g,h){this.src="",h&&this.add(h)},o.prototype={add:function(b){m(b)&&(b=b.join("")),this.src+=b},prepend:function(b){m(b)&&(b=b.join("")),this.src=b+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}}return k.prototype={prepend:function(c,d){this.source.unshift(this.wrap(c,d))},push:function(c,d){this.source.push(this.wrap(c,d))},merge:function(){var b=this.empty();return this.each(function(a){b.add(["  ",a,"\n"])}),b},each:function(d){for(var e=0,f=this.source.length;f>e;e++){d(this.source[e])}},empty:function(b){return b=b||this.currentLocation||{start:{}},new o(b.start.line,b.start.column,this.srcFile)},wrap:function(b,d){return b instanceof o?b:(d=d||this.currentLocation||{start:{}},b=j(b,this,d),new o(d.start.line,d.start.column,this.srcFile,b))},functionCall:function(d,e,f){return f=this.generateList(f),this.wrap([d,e?"."+e+"(":"(",f,")"])},quotedString:function(b){return'"'+(b+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(b){var g=[];for(var h in b){if(b.hasOwnProperty(h)){var G=j(b[h],this);"undefined"!==G&&g.push([this.quotedString(h),":",G])}}var H=this.generateList(g);return H.prepend("{"),H.add("}"),H},generateList:function(b,g){for(var h=this.empty(g),G=0,H=b.length;H>G;G++){G&&h.add(","),h.add(j(b[G],this,g))}return h},generateArray:function(d,e){var f=this.generateList(d,e);return f.prepend("["),f.add("]"),f}},l=k}(q),E=function(G,H,I,J){function K(b){this.value=b}function L(){}function M(h,i,j,k){var l=i.popStack(),m=0,n=j.length;for(h&&n--;n>m;m++){l=i.nameLookup(l,j[m],k)}return h?[i.aliasable("this.strict"),"(",l,", ",i.quotedString(j[m]),")"]:l}var N,O=G.COMPILER_REVISION,P=G.REVISION_CHANGES,Q=H,R=I.isArray,S=J;L.prototype={nameLookup:function(c,d){return L.isValidJavaScriptVariableName(d)?[c,".",d]:[c,"['",d,"']"]},depthedLookup:function(b){return[this.aliasable("this.lookup"),'(depths, "',b,'")']},compilerInfo:function(){var c=O,d=P[c];return[c,d]},appendToBuffer:function(d,e,f){return R(d)||(d=[d]),d=this.source.wrap(d,e),this.environment.isSimple?["return ",d,";"]:f?["buffer += ",d,";"]:(d.appendToBuffer=!0,d)},initializeBuffer:function(){return this.quotedString("")},compile:function(k,n,o,p){this.environment=k,this.options=n,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!p,this.name=this.environment.name,this.isChild=!!o,this.context=o||{programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(k,n),this.useDepths=this.useDepths||k.useDepths||this.options.compat,this.useBlockParams=this.useBlockParams||k.useBlockParams;var X,Y,Z,aa,ab=k.opcodes;for(Z=0,aa=ab.length;aa>Z;Z++){X=ab[Z],this.source.currentLocation=X.loc,Y=Y||X.loc,this[X.opcode].apply(this,X.args)}if(this.source.currentLocation=Y,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length){throw new Q("Compile completed with content left on stack")}var ac=this.createFunctionContext(p);if(this.isChild){return ac}var ad={compiler:this.compilerInfo(),main:ac},ae=this.context.programs;for(Z=0,aa=ae.length;aa>Z;Z++){ae[Z]&&(ad[Z]=ae[Z])}return this.environment.usePartial&&(ad.usePartial=!0),this.options.data&&(ad.useData=!0),this.useDepths&&(ad.useDepths=!0),this.useBlockParams&&(ad.useBlockParams=!0),this.options.compat&&(ad.compat=!0),p?ad.compilerOptions=this.options:(ad.compiler=JSON.stringify(ad.compiler),this.source.currentLocation={start:{line:1,column:0}},ad=this.objectLiteral(ad),n.srcName?(ad=ad.toStringWithSourceMap({file:n.destName}),ad.map=ad.map&&ad.map.toString()):ad=ad.toString()),ad},preamble:function(){this.lastContext=0,this.source=new S(this.options.srcName)},createFunctionContext:function(i){var j="",k=this.stackVars.concat(this.registers.list);k.length>0&&(j+=", "+k.join(", "));var l=0;for(var m in this.aliases){var n=this.aliases[m];this.aliases.hasOwnProperty(m)&&n.children&&n.referenceCount>1&&(j+=", alias"+ ++l+"="+m,n.children[0]="alias"+l)}var o=["depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&o.push("blockParams"),this.useDepths&&o.push("depths");var p=this.mergeSource(j);return i?(o.push(p),Function.apply(this,o)):this.source.wrap(["function(",o.join(","),") {\n  ",p,"}"])},mergeSource:function(h){var i,j,k,l,m=this.environment.isSimple,n=!this.forceBuffer;return this.source.each(function(b){b.appendToBuffer?(k?b.prepend("  + "):k=b,l=b):(k&&(j?k.prepend("buffer += "):i=!0,l.add(";"),k=l=void 0),j=!0,m||(n=!1))}),n?k?(k.prepend("return "),l.add(";")):j||this.source.push('return "";'):(h+=", buffer = "+(i?"":this.initializeBuffer()),k?(k.prepend("return buffer + "),l.add(";")):this.source.push("return buffer;")),h&&this.source.prepend("var "+h.substring(2)+(i?"":";\n")),this.source.merge()},blockValue:function(e){var f=this.aliasable("helpers.blockHelperMissing"),g=[this.contextName(0)];this.setupHelperArgs(e,0,g);var h=this.popStack();g.splice(1,0,h),this.push(this.source.functionCall(f,"call",g))},ambiguousBlockValue:function(){var d=this.aliasable("helpers.blockHelperMissing"),e=[this.contextName(0)];this.setupHelperArgs("",0,e,!0),this.flushInline();var f=this.topStack();e.splice(1,0,f),this.pushSource(["if (!",this.lastHelper,") { ",f," = ",this.source.functionCall(d,"call",e),"}"])},appendContent:function(b){this.pendingContent?b=this.pendingContent+b:this.pendingLocation=this.source.currentLocation,this.pendingContent=b},append:function(){if(this.isInline()){this.replaceStack(function(c){return[" != null ? ",c,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()))}else{var b=this.popStack();this.pushSource(["if (",b," != null) { ",this.appendToBuffer(b,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("this.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(b){this.lastContext=b},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,f,g){var h=0;g||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(e[h++])),this.resolvePath("context",e,h,f)},lookupBlockParam:function(c,d){this.useBlockParams=!0,this.push(["blockParams[",c[0],"][",c[1],"]"]),this.resolvePath("context",d,1)},lookupData:function(c,d){this.pushStackLiteral(c?"this.data(data, "+c+")":"data"),this.resolvePath("data",d,0,!0)},resolvePath:function(f,g,h,i){if(this.options.strict||this.options.assumeObjects){return void this.push(M(this.options.strict,this,g,f))}for(var j=g.length;j>h;h++){this.replaceStack(function(a){var b=this.nameLookup(a,g[h],f);return i?[" && ",b]:[" != null ? ",b," : ",a]})}},resolvePossibleLambda:function(){this.push([this.aliasable("this.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(c,d){this.pushContext(),this.pushString(d),"SubExpression"!==d&&("string"==typeof c?this.pushString(c):this.pushStackLiteral(c))},emptyHash:function(b){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(b?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:[],types:[],contexts:[],ids:[]}},popHash:function(){var b=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(b.ids)),this.stringParams&&(this.push(this.objectLiteral(b.contexts)),this.push(this.objectLiteral(b.types))),this.push(this.objectLiteral(b.values))},pushString:function(b){this.pushStackLiteral(this.quotedString(b))},pushLiteral:function(b){this.pushStackLiteral(b)},pushProgram:function(b){this.pushStackLiteral(null!=b?this.programExpression(b):null)},invokeHelper:function(h,i,j){var k=this.popStack(),l=this.setupHelper(h,i),m=j?[l.name," || "]:"",n=["("].concat(m,k);this.options.strict||n.push(" || ",this.aliasable("helpers.helperMissing")),n.push(")"),this.push(this.source.functionCall(n,"call",l.callParams))},invokeKnownHelper:function(d,e){var f=this.setupHelper(d,e);this.push(this.source.functionCall(f.name,"call",f.callParams))},invokeAmbiguous:function(g,h){this.useRegister("helper");var i=this.popStack();this.emptyHash();var j=this.setupHelper(0,g,h),k=this.lastHelper=this.nameLookup("helpers",g,"helper"),l=["(","(helper = ",k," || ",i,")"];this.options.strict||(l[0]="(helper = ",l.push(" != null ? helper : ",this.aliasable("helpers.helperMissing"))),this.push(["(",l,j.paramsInit?["),(",j.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",j.callParams)," : helper))"])},invokePartial:function(f,g,h){var i=[],j=this.setupParams(g,1,i,!1);f&&(g=this.popStack(),delete j.name),h&&(j.indent=JSON.stringify(h)),j.helpers="helpers",j.partials="partials",i.unshift(f?g:this.nameLookup("partials",g,"partial")),this.options.compat&&(j.depths="depths"),j=this.objectLiteral(j),i.push(j),this.push(this.source.functionCall("this.invokePartial","",i))},assignToHash:function(g){var h,i,j,k=this.popStack();this.trackIds&&(j=this.popStack()),this.stringParams&&(i=this.popStack(),h=this.popStack());var l=this.hash;h&&(l.contexts[g]=h),i&&(l.types[g]=i),j&&(l.ids[g]=j),l.values[g]=k},pushId:function(d,e,f){"BlockParam"===d?this.pushStackLiteral("blockParams["+e[0]+"].path["+e[1]+"]"+(f?" + "+JSON.stringify("."+f):"")):"PathExpression"===d?this.pushString(e):this.pushStackLiteral("SubExpression"===d?"true":"null")},compiler:L,compileChildren:function(i,j){for(var k,l,m=i.children,n=0,o=m.length;o>n;n++){k=m[n],l=new this.compiler;var p=this.matchExistingProgram(k);null==p?(this.context.programs.push(""),p=this.context.programs.length,k.index=p,k.name="program"+p,this.context.programs[p]=l.compile(k,j,this.context,!this.precompile),this.context.environments[p]=k,this.useDepths=this.useDepths||l.useDepths,this.useBlockParams=this.useBlockParams||l.useBlockParams):(k.index=p,k.name="program"+p,this.useDepths=this.useDepths||k.useDepths,this.useBlockParams=this.useBlockParams||k.useBlockParams)}},matchExistingProgram:function(e){for(var f=0,g=this.context.environments.length;g>f;f++){var h=this.context.environments[f];if(h&&h.equals(e)){return f}}},programExpression:function(d){var e=this.environment.children[d],f=[e.index,"data",e.blockParams];return(this.useBlockParams||this.useDepths)&&f.push("blockParams"),this.useDepths&&f.push("depths"),"this.program("+f.join(", ")+")"},useRegister:function(b){this.registers[b]||(this.registers[b]=!0,this.registers.list.push(b))},push:function(b){return b instanceof K||(b=this.source.wrap(b)),this.inlineStack.push(b),b},pushStackLiteral:function(b){this.push(new K(b))},pushSource:function(b){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),b&&this.source.push(b)},replaceStack:function(e){var j,k,l,m=["("];if(!this.isInline()){throw new Q("replaceStack on non-inline")}var n=this.popStack(!0);if(n instanceof K){j=[n.value],m=["(",j],l=!0}else{k=!0;var o=this.incrStack();m=["((",this.push(o)," = ",n,")"],j=this.topStack()}var p=e.call(this,j);l||this.popStack(),k&&this.stackSlot--,this.push(m.concat(p,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var e=this.inlineStack;this.inlineStack=[];for(var g=0,h=e.length;h>g;g++){var i=e[g];if(i instanceof K){this.compileStack.push(i)}else{var j=this.incrStack();this.pushSource([j," = ",i,";"]),this.compileStack.push(j)}}},isInline:function(){return this.inlineStack.length},popStack:function(d){var e=this.isInline(),f=(e?this.inlineStack:this.compileStack).pop();if(!d&&f instanceof K){return f.value}if(!e){if(!this.stackSlot){throw new Q("Invalid stack pop")}this.stackSlot--}return f},topStack:function(){var c=this.isInline()?this.inlineStack:this.compileStack,d=c[c.length-1];return d instanceof K?d.value:d},contextName:function(b){return this.useDepths&&b?"depths["+b+"]":"depth"+b},quotedString:function(b){return this.source.quotedString(b)},objectLiteral:function(b){return this.source.objectLiteral(b)},aliasable:function(c){var d=this.aliases[c];return d?(d.referenceCount++,d):(d=this.aliases[c]=this.source.wrap(c),d.aliasable=!0,d.referenceCount=1,d)},setupHelper:function(g,h,i){var j=[],k=this.setupHelperArgs(h,g,j,i),l=this.nameLookup("helpers",h,"helper");return{params:j,paramsInit:k,name:l,callParams:[this.contextName(0)].concat(j)}},setupParams:function(l,m,n){var o,p={},X=[],Y=[],Z=[];p.name=this.quotedString(l),p.hash=this.popStack(),this.trackIds&&(p.hashIds=this.popStack()),this.stringParams&&(p.hashTypes=this.popStack(),p.hashContexts=this.popStack());var aa=this.popStack(),ab=this.popStack();(ab||aa)&&(p.fn=ab||"this.noop",p.inverse=aa||"this.noop");for(var ac=m;ac--;){o=this.popStack(),n[ac]=o,this.trackIds&&(Z[ac]=this.popStack()),this.stringParams&&(Y[ac]=this.popStack(),X[ac]=this.popStack())}return this.trackIds&&(p.ids=this.source.generateArray(Z)),this.stringParams&&(p.types=this.source.generateArray(Y),p.contexts=this.source.generateArray(X)),this.options.data&&(p.data="data"),this.useBlockParams&&(p.blockParams="blockParams"),p},setupHelperArgs:function(f,g,h,i){var j=this.setupParams(f,g,h,!0);return j=this.objectLiteral(j),i?(this.useRegister("options"),h.push("options"),["options=",j]):(h.push(j),"")}};for(var T="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),U=L.RESERVED_WORDS={},V=0,W=T.length;W>V;V++){U[T[V]]=!0}return L.isValidJavaScriptVariableName=function(b){return !L.RESERVED_WORDS[b]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(b)},N=L}(s,r,q,D),F=function(G,H,I,J,K){var L,M=G,N=H,O=I.parser,P=I.parse,Q=J.Compiler,R=J.compile,S=J.precompile,T=K,U=M.create,V=function(){var b=U();return b.compile=function(a,d){return R(a,d,b)},b.precompile=function(a,d){return S(a,d,b)},b.AST=N,b.Compiler=Q,b.JavaScriptCompiler=T,b.Parser=O,b.parse=P,b};M=V(),M.create=V;var W="undefined"!=typeof global?global:window,X=W.Handlebars;return M.noConflict=function(){W.Handlebars===M&&(W.Handlebars=X)},M["default"]=M,L=M}(v,w,B,C,E);return F});var HandlebarsHelpers=function(){Handlebars.registerHelper("breaklines",function(a){a=Handlebars.Utils.escapeExpression(a);a=a.replace(/(\r\n|\n|\r)/gm,"<br />");return new Handlebars.SafeString(a)});Handlebars.registerHelper("compare",function(a,e,c){if(arguments.length<3){throw new Error("Handlerbars Helper 'compare' needs 2 parameters")}operator=c.hash.operator||"==";var b={"==":function(f,g){return f==g},"===":function(f,g){return f===g},"!=":function(f,g){return f!=g},"<":function(f,g){return f<g},">":function(f,g){return f>g},"<=":function(f,g){return f<=g},">=":function(f,g){return f>=g},"typeof":function(f,g){return typeof f==g}};if(!b[operator]){throw new Error("Handlerbars Helper 'compare' doesn't know the operator "+operator)}var d=b[operator](a,e);if(d){return c.fn(this)}else{return c.inverse(this)}});Handlebars.registerHelper("pagination",function(c,l){var a={context:c,options:l,obLen:c.length,hash:l.hash,maxPageItems:l.hash.maxPageItems,maxNavItems:l.hash.maxNavItems};var b={navItemBlocks:[[]],pageItemBlocks:[[]],pageBlockId:0,navBlockId:0,totalPages:0,};var d=a.obLen%a.maxPageItems===0?0:1;b.totalPages=Math.floor((a.obLen/a.maxPageItems))+d;for(var e=1,f=0;e<=b.totalPages;e++,f++){b.navItemBlocks[b.navBlockId].push({id:(e-1),page:e});if(f>=(a.maxNavItems-1)){f=-1;b.navBlockId=b.navBlockId+1;b.navItemBlocks[b.navBlockId]=[]}}for(var g=0,h=0;g<=(a.obLen-1);g++,h++){b.pageItemBlocks[b.pageBlockId].push(a.context[g]);if(h>=(a.maxPageItems-1)){h=-1;b.pageBlockId=b.pageBlockId+1;b.pageItemBlocks[b.pageBlockId]=[]}}return l.fn(b)})};
/*
 * imagesLoaded PACKAGED v3.1.8
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
(function(){function a(){}function g(h,j){for(var i=h.length;i--;){if(h[i].listener===j){return i}}return -1}function c(h){return function(){return this[h].apply(this,arguments)}}var b=a.prototype,f=this,d=f.EventEmitter;b.getListeners=function(h){var l,k,j=this._getEvents();if("object"==typeof h){l={};for(k in j){j.hasOwnProperty(k)&&h.test(k)&&(l[k]=j[k])}}else{l=j[h]||(j[h]=[])}return l},b.flattenListeners=function(h){var j,i=[];for(j=0;h.length>j;j+=1){i.push(h[j].listener)}return i},b.getListenersAsObject=function(h){var j,i=this.getListeners(h);return i instanceof Array&&(j={},j[h]=i),j||i},b.addListener=function(h,k){var j,m=this.getListenersAsObject(h),l="object"==typeof k;for(j in m){m.hasOwnProperty(j)&&-1===g(m[j],k)&&m[j].push(l?k:{listener:k,once:!1})}return this},b.on=c("addListener"),b.addOnceListener=function(h,i){return this.addListener(h,{listener:i,once:!0})},b.once=c("addOnceListener"),b.defineEvent=function(h){return this.getListeners(h),this},b.defineEvents=function(h){for(var i=0;h.length>i;i+=1){this.defineEvent(h[i])}return this},b.removeListener=function(h,k){var j,m,l=this.getListenersAsObject(h);for(m in l){l.hasOwnProperty(m)&&(j=g(l[m],k),-1!==j&&l[m].splice(j,1))}return this},b.off=c("removeListener"),b.addListeners=function(h,i){return this.manipulateListeners(!1,h,i)},b.removeListeners=function(h,i){return this.manipulateListeners(!0,h,i)},b.manipulateListeners=function(h,q,k){var j,m,l=h?this.removeListener:this.addListener,p=h?this.removeListeners:this.addListeners;if("object"!=typeof q||q instanceof RegExp){for(j=k.length;j--;){l.call(this,q,k[j])}}else{for(j in q){q.hasOwnProperty(j)&&(m=q[j])&&("function"==typeof m?l.call(this,j,m):p.call(this,j,m))}}return this},b.removeEvent=function(h){var l,k=typeof h,j=this._getEvents();if("string"===k){delete j[h]}else{if("object"===k){for(l in j){j.hasOwnProperty(l)&&h.test(l)&&delete j[l]}}else{delete this._events}}return this},b.removeAllListeners=c("removeEvent"),b.emitEvent=function(h,q){var k,j,m,l,p=this.getListenersAsObject(h);for(m in p){if(p.hasOwnProperty(m)){for(j=p[m].length;j--;){k=p[m][j],k.once===!0&&this.removeListener(h,k.listener),l=k.listener.apply(this,q||[]),l===this._getOnceReturnValue()&&this.removeListener(h,k.listener)}}}return this},b.trigger=c("emitEvent"),b.emit=function(h){var i=Array.prototype.slice.call(arguments,1);return this.emitEvent(h,i)},b.setOnceReturnValue=function(h){return this._onceReturnValue=h,this},b._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},b._getEvents=function(){return this._events||(this._events={})},a.noConflict=function(){return f.EventEmitter=d,a},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return a}):"object"==typeof module&&module.exports?module.exports=a:this.EventEmitter=a}).call(this),function(a){function g(h){var e=a.event;return e.target=e.target||e.srcElement||h,e}var c=document.documentElement,b=function(){};c.addEventListener?b=function(h,j,i){h.addEventListener(j,i,!1)}:c.attachEvent&&(b=function(h,k,j){h[k+j]=j.handleEvent?function(){var e=g(h);j.handleEvent.call(j,e)}:function(){var e=g(h);j.call(h,e)},h.attachEvent("on"+k,h[k+j])});var f=function(){};c.removeEventListener?f=function(h,j,i){h.removeEventListener(j,i,!1)}:c.detachEvent&&(f=function(h,l,k){h.detachEvent("on"+l,h[l+k]);try{delete h[l+k]}catch(j){h[l+k]=void 0}});var d={bind:b,unbind:f};"function"==typeof define&&define.amd?define("eventie/eventie",d):a.eventie=d}(this),function(a,b){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(d,c){return b(a,d,c)}):"object"==typeof exports?module.exports=b(a,require("wolfy87-eventemitter"),require("eventie")):a.imagesLoaded=b(a,a.EventEmitter,a.eventie)}(window,function(k,z,q){function p(a,d){for(var c in d){a[c]=d[c]}return a}function x(a){return"[object Array]"===j.call(a)}function w(a){var f=[];if(x(a)){f=a}else{if("number"==typeof a.length){for(var d=0,c=a.length;c>d;d++){f.push(a[d])}}else{f.push(a)}}return f}function y(a,f,c){if(!(this instanceof y)){return new y(a,f)}"string"==typeof a&&(a=document.querySelectorAll(a)),this.elements=w(a),this.options=p({},this.options),"function"==typeof f?c=f:p(this.options,f),c&&this.on("always",c),this.getImages(),b&&(this.jqDeferred=new b.Deferred);var d=this;setTimeout(function(){d.check()})}function l(a){this.img=a}function g(a){this.src=a,B[a]=this}var b=k.jQuery,A=k.console,m=A!==void 0,j=Object.prototype.toString;y.prototype=new z,y.prototype.options={},y.prototype.getImages=function(){this.images=[];for(var a=0,D=this.elements.length;D>a;a++){var h=this.elements[a];"IMG"===h.nodeName&&this.addImage(h);var d=h.nodeType;if(d&&(1===d||9===d||11===d)){for(var v=h.querySelectorAll("img"),u=0,C=v.length;C>u;u++){var c=v[u];this.addImage(c)}}}},y.prototype.addImage=function(a){var c=new l(a);this.images.push(c)},y.prototype.check=function(){function a(i,n){return s.options.debug&&m&&A.log("confirm",i,n),s.progress(i),d++,d===c&&s.complete(),!0}var s=this,d=0,c=this.images.length;if(this.hasAnyBroken=!1,!c){return this.complete(),void 0}for(var h=0;c>h;h++){var f=this.images[h];f.on("confirm",a),f.check()}},y.prototype.progress=function(a){this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded;var c=this;setTimeout(function(){c.emit("progress",c,a),c.jqDeferred&&c.jqDeferred.notify&&c.jqDeferred.notify(c,a)})},y.prototype.complete=function(){var a=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var c=this;setTimeout(function(){if(c.emit(a,c),c.emit("always",c),c.jqDeferred){var d=c.hasAnyBroken?"reject":"resolve";c.jqDeferred[d](c)}})},b&&(b.fn.imagesLoaded=function(a,d){var c=new y(this,a,d);return c.jqDeferred.promise(b(this))}),l.prototype=new z,l.prototype.check=function(){var a=B[this.img.src]||new g(this.img.src);if(a.isConfirmed){return this.confirm(a.isLoaded,"cached was confirmed"),void 0}if(this.img.complete&&void 0!==this.img.naturalWidth){return this.confirm(0!==this.img.naturalWidth,"naturalWidth"),void 0}var c=this;a.on("confirm",function(d,f){return c.confirm(d.isLoaded,f),!0}),a.check()},l.prototype.confirm=function(a,c){this.isLoaded=a,this.emit("confirm",this,c)};var B={};return g.prototype=new z,g.prototype.check=function(){if(!this.isChecked){var a=new Image;q.bind(a,"load",this),q.bind(a,"error",this),a.src=this.src,this.isChecked=!0}},g.prototype.handleEvent=function(a){var c="on"+a.type;this[c]&&this[c](a)},g.prototype.onload=function(a){this.confirm(!0,"onload"),this.unbindProxyEvents(a)},g.prototype.onerror=function(a){this.confirm(!1,"onerror"),this.unbindProxyEvents(a)},g.prototype.confirm=function(a,c){this.isConfirmed=!0,this.isLoaded=a,this.emit("confirm",this,c)},g.prototype.unbindProxyEvents=function(a){q.unbind(a.target,"load",this),q.unbind(a.target,"error",this)},y});
/*
 * Masonry PACKAGED v3.2.2
 * Cascading grid layout library
 * http://masonry.desandro.com
 * MIT License
 * by David DeSandro
 */
!function(e){function f(){}function g(b){function d(a){a.prototype.option||(a.prototype.option=function(c){b.isPlainObject(c)&&(this.options=b.extend(!0,this.options,c))})}function i(a,k){b.fn[a]=function(c){if("string"==typeof c){for(var m=h.call(arguments,1),n=0,o=this.length;o>n;n++){var p=this[n],q=b.data(p,a);if(q){if(b.isFunction(q[c])&&"_"!==c.charAt(0)){var r=q[c].apply(q,m);if(void 0!==r){return r}}else{j("no such method '"+c+"' for "+a+" instance")}}else{j("cannot call methods on "+a+" prior to initialization; attempted to call '"+c+"'")}}return this}return this.each(function(){var l=b.data(this,a);l?(l.option(c),l._init()):(l=new k(this,c),b.data(this,a,l))})}}if(b){var j="undefined"==typeof console?f:function(c){console.error(c)};return b.bridget=function(c,k){d(k),i(c,k)},b.bridget}}var h=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],g):g("object"==typeof exports?require("jquery"):e.jQuery)}(window),function(g){function h(a){var d=g.event;return d.target=d.target||d.srcElement||a,d}var i=document.documentElement,j=function(){};i.addEventListener?j=function(d,e,f){d.addEventListener(e,f,!1)}:i.attachEvent&&(j=function(b,e,f){b[e+f]=f.handleEvent?function(){var a=h(b);f.handleEvent.call(f,a)}:function(){var a=h(b);f.call(b,a)},b.attachEvent("on"+e,b[e+f])});var k=function(){};i.removeEventListener?k=function(d,e,f){d.removeEventListener(e,f,!1)}:i.detachEvent&&(k=function(e,f,m){e.detachEvent("on"+f,e[f+m]);try{delete e[f+m]}catch(n){e[f+m]=void 0}});var l={bind:j,unbind:k};"function"==typeof define&&define.amd?define("eventie/eventie",l):"object"==typeof exports?module.exports=l:g.eventie=l}(this),function(h){function i(b){"function"==typeof b&&(i.isReady?b():n.push(b))}function j(b){var d="readystatechange"===b.type&&"complete"!==m.readyState;i.isReady||d||k()}function k(){i.isReady=!0;for(var b=0,e=n.length;e>b;b++){var f=n[b];f()}}function l(a){return"complete"===m.readyState?k():(a.bind(m,"DOMContentLoaded",j),a.bind(m,"readystatechange",j),a.bind(h,"load",j)),i}var m=h.document,n=[];i.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],l):"object"==typeof exports?module.exports=l(require("eventie")):h.docReady=l(h.eventie)}(window),function(){function g(){}function h(d,e){for(var f=d.length;f--;){if(d[f].listener===e){return f}}return -1}function i(b){return function(){return this[b].apply(this,arguments)}}var j=g.prototype,k=this,l=k.EventEmitter;j.getListeners=function(e){var f,m,n=this._getEvents();if(e instanceof RegExp){f={};for(m in n){n.hasOwnProperty(m)&&e.test(m)&&(f[m]=n[m])}}else{f=n[e]||(n[e]=[])}return f},j.flattenListeners=function(d){var e,f=[];for(e=0;e<d.length;e+=1){f.push(d[e].listener)}return f},j.getListenersAsObject=function(d){var e,f=this.getListeners(d);return f instanceof Array&&(e={},e[d]=f),e||f},j.addListener=function(b,m){var n,o=this.getListenersAsObject(b),p="object"==typeof m;for(n in o){o.hasOwnProperty(n)&&-1===h(o[n],m)&&o[n].push(p?m:{listener:m,once:!1})}return this},j.on=i("addListener"),j.addOnceListener=function(c,d){return this.addListener(c,{listener:d,once:!0})},j.once=i("addOnceListener"),j.defineEvent=function(b){return this.getListeners(b),this},j.defineEvents=function(c){for(var d=0;d<c.length;d+=1){this.defineEvent(c[d])}return this},j.removeListener=function(b,m){var n,o,p=this.getListenersAsObject(b);for(o in p){p.hasOwnProperty(o)&&(n=h(p[o],m),-1!==n&&p[o].splice(n,1))}return this},j.off=i("removeListener"),j.addListeners=function(c,d){return this.manipulateListeners(!1,c,d)},j.removeListeners=function(c,d){return this.manipulateListeners(!0,c,d)},j.manipulateListeners=function(m,n,o){var p,q,r=m?this.removeListener:this.addListener,s=m?this.removeListeners:this.addListeners;if("object"!=typeof n||n instanceof RegExp){for(p=o.length;p--;){r.call(this,n,o[p])}}else{for(p in n){n.hasOwnProperty(p)&&(q=n[p])&&("function"==typeof q?r.call(this,p,q):s.call(this,p,q))}}return this},j.removeEvent=function(e){var f,m=typeof e,n=this._getEvents();if("string"===m){delete n[e]}else{if(e instanceof RegExp){for(f in n){n.hasOwnProperty(f)&&e.test(f)&&delete n[f]}}else{delete this._events}}return this},j.removeAllListeners=i("removeEvent"),j.emitEvent=function(m,n){var o,p,q,r,s=this.getListenersAsObject(m);for(q in s){if(s.hasOwnProperty(q)){for(p=s[q].length;p--;){o=s[q][p],o.once===!0&&this.removeListener(m,o.listener),r=o.listener.apply(this,n||[]),r===this._getOnceReturnValue()&&this.removeListener(m,o.listener)}}}return this},j.trigger=i("emitEvent"),j.emit=function(c){var d=Array.prototype.slice.call(arguments,1);return this.emitEvent(c,d)},j.setOnceReturnValue=function(b){return this._onceReturnValue=b,this},j._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},j._getEvents=function(){return this._events||(this._events={})},g.noConflict=function(){return k.EventEmitter=l,g},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return g}):"object"==typeof module&&module.exports?module.exports=g:k.EventEmitter=g}.call(this),function(e){function f(c){if(c){if("string"==typeof h[c]){return c}c=c.charAt(0).toUpperCase()+c.slice(1);for(var d,i=0,j=g.length;j>i;i++){if(d=g[i]+c,"string"==typeof h[d]){return d}}}}var g="Webkit Moz ms Ms O".split(" "),h=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return f}):"object"==typeof exports?module.exports=f:e.getStyleProperty=f}(window),function(h){function i(d){var e=parseFloat(d),f=-1===d.indexOf("%")&&!isNaN(e);return f&&e}function j(){}function k(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},f=0,g=n.length;g>f;f++){var o=n[f];e[o]=0}return e}function l(a){function b(){if(!q){q=!0;var c=h.getComputedStyle;if(g=function(){var e=c?function(u){return c(u,null)}:function(u){return u.currentStyle};return function(u){var v=e(u);return v||m("Style returned "+v+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),v}}(),o=a("boxSizing")){var r=document.createElement("div");r.style.width="200px",r.style.padding="1px 2px 3px 4px",r.style.borderStyle="solid",r.style.borderWidth="1px 2px 3px 4px",r.style[o]="border-box";var s=document.body||document.documentElement;s.appendChild(r);var t=g(r);p=200===i(t.width),s.removeChild(r)}}}function d(e){if(b(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var A=g(e);if("none"===A.display){return k()}var B={};B.width=e.offsetWidth,B.height=e.offsetHeight;for(var C=B.isBorderBox=!(!o||!A[o]||"border-box"!==A[o]),D=0,E=n.length;E>D;D++){var F=n[D],G=A[F];G=f(e,G);var H=parseFloat(G);B[F]=isNaN(H)?0:H}var I=B.paddingLeft+B.paddingRight,J=B.paddingTop+B.paddingBottom,K=B.marginLeft+B.marginRight,L=B.marginTop+B.marginBottom,M=B.borderLeftWidth+B.borderRightWidth,N=B.borderTopWidth+B.borderBottomWidth,O=C&&p,P=i(A.width);P!==!1&&(B.width=P+(O?0:I+M));var Q=i(A.height);return Q!==!1&&(B.height=Q+(O?0:J+N)),B.innerWidth=B.width-(I+M),B.innerHeight=B.height-(J+N),B.outerWidth=B.width+K,B.outerHeight=B.height+L,B}}function f(r,s){if(h.getComputedStyle||-1===s.indexOf("%")){return s}var t=r.style,u=t.left,v=r.runtimeStyle,w=v&&v.left;return w&&(v.left=r.currentStyle.left),t.left=s,s=t.pixelLeft,t.left=u,w&&(v.left=w),s}var g,o,p,q=!1;return d}var m="undefined"==typeof console?j:function(b){console.error(b)},n=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],l):"object"==typeof exports?module.exports=l(require("desandro-get-style-property")):h.getSize=l(h.getStyleProperty)}(window),function(j){function k(c,d){return c[p](d)}function l(c){if(!c.parentNode){var d=document.createDocumentFragment();d.appendChild(c)}}function m(c,g){l(c);for(var h=c.parentNode.querySelectorAll(g),i=0,s=h.length;s>i;i++){if(h[i]===c){return !0}}return !1}function n(b,c){return l(b),k(b,c)}var o,p=function(){if(j.matchesSelector){return"matchesSelector"}for(var a=["webkit","moz","ms","o"],g=0,h=a.length;h>g;g++){var i=a[g],s=i+"MatchesSelector";if(j[s]){return s}}}();if(p){var q=document.createElement("div"),r=k(q,"div");o=r?k:n}else{o=m}"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return o}):"object"==typeof exports?module.exports=o:window.matchesSelector=o}(Element.prototype),function(h){function i(d,e){for(var f in e){d[f]=e[f]}return d}function j(c){for(var d in c){return !1}return d=null,!0}function k(b){return b.replace(/([A-Z])/g,function(c){return"-"+c.toLowerCase()})}function l(b,c,d){function g(e,f){e&&(this.element=e,this.layout=f,this.position={x:0,y:0},this._create())}var t=d("transition"),u=d("transform"),v=t&&u,w=!!d("perspective"),x={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[t],y=["transform","transition","transitionDuration","transitionProperty"],z=function(){for(var f={},o=0,p=y.length;p>o;o++){var q=y[o],r=d(q);r&&r!==q&&(f[q]=r)}return f}();i(g.prototype,b.prototype),g.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},g.prototype.handleEvent=function(e){var f="on"+e.type;this[f]&&this[f](e)},g.prototype.getSize=function(){this.size=c(this.element)},g.prototype.css=function(e){var f=this.element.style;for(var o in e){var p=z[o]||o;f[p]=e[o]}},g.prototype.getPosition=function(){var o=n(this.element),p=this.layout.options,q=p.isOriginLeft,r=p.isOriginTop,s=parseInt(o[q?"left":"right"],10),E=parseInt(o[r?"top":"bottom"],10);s=isNaN(s)?0:s,E=isNaN(E)?0:E;var F=this.layout.size;s-=q?F.paddingLeft:F.paddingRight,E-=r?F.paddingTop:F.paddingBottom,this.position.x=s,this.position.y=E},g.prototype.layoutPosition=function(){var e=this.layout.size,f=this.layout.options,o={};f.isOriginLeft?(o.left=this.position.x+e.paddingLeft+"px",o.right=""):(o.right=this.position.x+e.paddingRight+"px",o.left=""),f.isOriginTop?(o.top=this.position.y+e.paddingTop+"px",o.bottom=""):(o.bottom=this.position.y+e.paddingBottom+"px",o.top=""),this.css(o),this.emitEvent("layout",[this])};var A=w?function(e,f){return"translate3d("+e+"px, "+f+"px, 0)"}:function(e,f){return"translate("+e+"px, "+f+"px)"};g.prototype._transitionTo=function(o,p){this.getPosition();var q=this.position.x,r=this.position.y,s=parseInt(o,10),E=parseInt(p,10),F=s===this.position.x&&E===this.position.y;if(this.setPosition(o,p),F&&!this.isTransitioning){return void this.layoutPosition()}var G=o-q,H=p-r,I={},J=this.layout.options;G=J.isOriginLeft?G:-G,H=J.isOriginTop?H:-H,I.transform=A(G,H),this.transition({to:I,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},g.prototype.goTo=function(e,f){this.setPosition(e,f),this.layoutPosition()},g.prototype.moveTo=v?g.prototype._transitionTo:g.prototype.goTo,g.prototype.setPosition=function(e,f){this.position.x=parseInt(e,10),this.position.y=parseInt(f,10)},g.prototype._nonTransition=function(e){this.css(e.to),e.isCleaning&&this._removeStyles(e.to);for(var f in e.onTransitionEnd){e.onTransitionEnd[f].call(this)}},g.prototype._transition=function(e){if(!parseFloat(this.layout.options.transitionDuration)){return void this._nonTransition(e)}var f=this._transn;for(var o in e.onTransitionEnd){f.onEnd[o]=e.onTransitionEnd[o]}for(o in e.to){f.ingProperties[o]=!0,e.isCleaning&&(f.clean[o]=!0)}if(e.from){this.css(e.from);var p=this.element.offsetHeight;p=null}this.enableTransition(e.to),this.css(e.to),this.isTransitioning=!0};var B=u&&k(u)+",opacity";g.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:B,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(x,this,!1))},g.prototype.transition=g.prototype[t?"_transition":"_nonTransition"],g.prototype.onwebkitTransitionEnd=function(e){this.ontransitionend(e)},g.prototype.onotransitionend=function(e){this.ontransitionend(e)};var C={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};g.prototype.ontransitionend=function(f){if(f.target===this.element){var o=this._transn,p=C[f.propertyName]||f.propertyName;if(delete o.ingProperties[p],j(o.ingProperties)&&this.disableTransition(),p in o.clean&&(this.element.style[f.propertyName]="",delete o.clean[p]),p in o.onEnd){var q=o.onEnd[p];q.call(this),delete o.onEnd[p]}this.emitEvent("transitionEnd",[this])}},g.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(x,this,!1),this.isTransitioning=!1},g.prototype._removeStyles=function(e){var f={};for(var o in e){f[o]=""}this.css(f)};var D={transitionProperty:"",transitionDuration:""};return g.prototype.removeTransitionStyles=function(){this.css(D)},g.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.emitEvent("remove",[this])},g.prototype.remove=function(){if(!t||!parseFloat(this.layout.options.transitionDuration)){return void this.removeElem()}var e=this;this.on("transitionEnd",function(){return e.removeElem(),!0}),this.hide()},g.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var e=this.layout.options;this.transition({from:e.hiddenStyle,to:e.visibleStyle,isCleaning:!0})},g.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var e=this.layout.options;this.transition({from:e.visibleStyle,to:e.hiddenStyle,isCleaning:!0,onTransitionEnd:{opacity:function(){this.isHidden&&this.css({display:"none"})}}})},g.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},g}var m=h.getComputedStyle,n=m?function(b){return m(b,null)}:function(b){return b.currentStyle};"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property"],l):"object"==typeof exports?module.exports=l(require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property")):(h.Outlayer={},h.Outlayer.Item=l(h.EventEmitter,h.getSize,h.getStyleProperty))}(window),function(o){function p(d,e){for(var f in e){d[f]=e[f]}return d}function q(b){return"[object Array]"===z.call(b)}function r(c){var f=[];if(q(c)){f=c}else{if(c&&"number"==typeof c.length){for(var g=0,h=c.length;h>g;g++){f.push(c[g])}}else{f.push(c)}}return f}function s(d,e){var f=B(e,d);-1!==f&&e.splice(f,1)}function t(b){return b.replace(/(.)([A-Z])/g,function(d,e,f){return e+"-"+f}).toLowerCase()}function u(a,b,d,e,f,h){function i(g,l){if("string"==typeof g&&(g=v.querySelector(g)),!g||!A(g)){return void (w&&w.error("Bad "+this.constructor.namespace+" element: "+g))}this.element=g,this.options=p({},this.constructor.defaults),this.option(l);var m=++j;this.element.outlayerGUID=m,k[m]=this,this._create(),this.options.isInitLayout&&this.layout()}var j=0,k={};return i.namespace="outlayer",i.Item=h,i.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},p(i.prototype,d.prototype),i.prototype.option=function(c){p(this.options,c)},i.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),p(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},i.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},i.prototype._itemize=function(l){for(var m=this._filterFindItemElements(l),n=this.constructor.Item,C=[],D=0,E=m.length;E>D;D++){var F=m[D],G=new n(F,this);C.push(G)}return C},i.prototype._filterFindItemElements=function(l){l=r(l);for(var m=this.options.itemSelector,n=[],C=0,D=l.length;D>C;C++){var E=l[C];if(A(E)){if(m){f(E,m)&&n.push(E);for(var F=E.querySelectorAll(m),G=0,H=F.length;H>G;G++){n.push(F[G])}}else{n.push(E)}}}return n},i.prototype.getItemElements=function(){for(var g=[],l=0,m=this.items.length;m>l;l++){g.push(this.items[l].element)}return g},i.prototype.layout=function(){this._resetLayout(),this._manageStamps();var c=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,c),this._isLayoutInited=!0},i.prototype._init=i.prototype.layout,i.prototype._resetLayout=function(){this.getSize()},i.prototype.getSize=function(){this.size=e(this.element)},i.prototype._getMeasurement=function(g,l){var m,n=this.options[g];n?("string"==typeof n?m=this.element.querySelector(n):A(n)&&(m=n),this[g]=m?e(m)[l]:n):this[g]=0},i.prototype.layoutItems=function(c,g){c=this._getItemsForLayout(c),this._layoutItems(c,g),this._postLayout()},i.prototype._getItemsForLayout=function(g){for(var l=[],m=0,n=g.length;n>m;m++){var C=g[m];C.isIgnored||l.push(C)}return l},i.prototype._layoutItems=function(l,m){function n(){C.emitEvent("layoutComplete",[C,l])}var C=this;if(!l||!l.length){return void n()}this._itemsOn(l,"layout",n);for(var D=[],E=0,F=l.length;F>E;E++){var G=l[E],H=this._getItemLayoutPosition(G);H.item=G,H.isInstant=m||G.isLayoutInstant,D.push(H)}this._processLayoutQueue(D)},i.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},i.prototype._processLayoutQueue=function(g){for(var l=0,m=g.length;m>l;l++){var n=g[l];this._positionItem(n.item,n.x,n.y,n.isInstant)}},i.prototype._positionItem=function(g,l,m,n){n?g.goTo(l,m):g.moveTo(l,m)},i.prototype._postLayout=function(){this.resizeContainer()},i.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var c=this._getContainerSize();c&&(this._setContainerMeasure(c.width,!0),this._setContainerMeasure(c.height,!1))}},i.prototype._getContainerSize=y,i.prototype._setContainerMeasure=function(g,l){if(void 0!==g){var m=this.size;m.isBorderBox&&(g+=l?m.paddingLeft+m.paddingRight+m.borderLeftWidth+m.borderRightWidth:m.paddingBottom+m.paddingTop+m.borderTopWidth+m.borderBottomWidth),g=Math.max(g,0),this.element.style[l?"width":"height"]=g+"px"}},i.prototype._itemsOn=function(l,m,n){function C(){return D++,D===E&&n.call(F),!0}for(var D=0,E=l.length,F=this,G=0,H=l.length;H>G;G++){var I=l[G];I.on(m,C)}},i.prototype.ignore=function(c){var g=this.getItem(c);g&&(g.isIgnored=!0)},i.prototype.unignore=function(c){var g=this.getItem(c);g&&delete g.isIgnored},i.prototype.stamp=function(g){if(g=this._find(g)){this.stamps=this.stamps.concat(g);for(var l=0,m=g.length;m>l;l++){var n=g[l];this.ignore(n)}}},i.prototype.unstamp=function(g){if(g=this._find(g)){for(var l=0,m=g.length;m>l;l++){var n=g[l];s(n,this.stamps),this.unignore(n)}}},i.prototype._find=function(c){return c?("string"==typeof c&&(c=this.element.querySelectorAll(c)),c=r(c)):void 0},i.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var g=0,l=this.stamps.length;l>g;g++){var m=this.stamps[g];this._manageStamp(m)}}},i.prototype._getBoundingRect=function(){var c=this.element.getBoundingClientRect(),g=this.size;this._boundingRect={left:c.left+g.paddingLeft+g.borderLeftWidth,top:c.top+g.paddingTop+g.borderTopWidth,right:c.right-(g.paddingRight+g.borderRightWidth),bottom:c.bottom-(g.paddingBottom+g.borderBottomWidth)}},i.prototype._manageStamp=y,i.prototype._getElementOffset=function(g){var l=g.getBoundingClientRect(),m=this._boundingRect,n=e(g),C={left:l.left-m.left-n.marginLeft,top:l.top-m.top-n.marginTop,right:m.right-l.right-n.marginRight,bottom:m.bottom-l.bottom-n.marginBottom};return C},i.prototype.handleEvent=function(c){var g="on"+c.type;this[g]&&this[g](c)},i.prototype.bindResize=function(){this.isResizeBound||(a.bind(o,"resize",this),this.isResizeBound=!0)},i.prototype.unbindResize=function(){this.isResizeBound&&a.unbind(o,"resize",this),this.isResizeBound=!1},i.prototype.onresize=function(){function c(){g.resize(),delete g.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var g=this;this.resizeTimeout=setTimeout(c,100)},i.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},i.prototype.needsResizeLayout=function(){var c=e(this.element),g=this.size&&c;return g&&c.innerWidth!==this.size.innerWidth},i.prototype.addItems=function(c){var g=this._itemize(c);return g.length&&(this.items=this.items.concat(g)),g},i.prototype.appended=function(c){var g=this.addItems(c);g.length&&(this.layoutItems(g,!0),this.reveal(g))},i.prototype.prepended=function(g){var l=this._itemize(g);if(l.length){var m=this.items.slice(0);this.items=l.concat(m),this._resetLayout(),this._manageStamps(),this.layoutItems(l,!0),this.reveal(l),this.layoutItems(m)}},i.prototype.reveal=function(g){var l=g&&g.length;if(l){for(var m=0;l>m;m++){var n=g[m];n.reveal()}}},i.prototype.hide=function(g){var l=g&&g.length;if(l){for(var m=0;l>m;m++){var n=g[m];n.hide()}}},i.prototype.getItem=function(g){for(var l=0,m=this.items.length;m>l;l++){var n=this.items[l];if(n.element===g){return n}}},i.prototype.getItems=function(g){if(g&&g.length){for(var l=[],m=0,n=g.length;n>m;m++){var C=g[m],D=this.getItem(C);D&&l.push(D)}return l}},i.prototype.remove=function(l){l=r(l);var m=this.getItems(l);if(m&&m.length){this._itemsOn(m,"remove",function(){this.emitEvent("removeComplete",[this,m])});for(var n=0,C=m.length;C>n;n++){var D=m[n];D.remove(),s(D,this.items)}}},i.prototype.destroy=function(){var g=this.element.style;g.height="",g.position="",g.width="";for(var l=0,m=this.items.length;m>l;l++){var n=this.items[l];n.destroy()}this.unbindResize();var C=this.element.outlayerGUID;delete k[C],delete this.element.outlayerGUID,x&&x.removeData(this.element,this.constructor.namespace)},i.data=function(c){var g=c&&c.outlayerGUID;return g&&k[g]},i.create=function(g,l){function m(){i.apply(this,arguments)}return Object.create?m.prototype=Object.create(i.prototype):p(m.prototype,i.prototype),m.prototype.constructor=m,m.defaults=p({},i.defaults),p(m.defaults,l),m.prototype.settings={},m.namespace=g,m.data=i.data,m.Item=function(){h.apply(this,arguments)},m.Item.prototype=new h,b(function(){for(var C=t(g),D=v.querySelectorAll(".js-"+C),E="data-"+C+"-options",F=0,G=D.length;G>F;F++){var H,I=D[F],J=I.getAttribute(E);try{H=J&&JSON.parse(J)}catch(K){w&&w.error("Error parsing "+E+" on "+I.nodeName.toLowerCase()+(I.id?"#"+I.id:"")+": "+K);continue}var L=new m(I,H);x&&x.data(I,g,L)}}),x&&x.bridget&&x.bridget(g,m),m},i.Item=h,i}var v=o.document,w=o.console,x=o.jQuery,y=function(){},z=Object.prototype.toString,A="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(b){return b instanceof HTMLElement}:function(b){return b&&"object"==typeof b&&1===b.nodeType&&"string"==typeof b.nodeName},B=Array.prototype.indexOf?function(c,d){return c.indexOf(d)}:function(e,f){for(var g=0,h=e.length;h>g;g++){if(e[g]===f){return g}}return -1};"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","doc-ready/doc-ready","eventEmitter/EventEmitter","get-size/get-size","matches-selector/matches-selector","./item"],u):"object"==typeof exports?module.exports=u(require("eventie"),require("doc-ready"),require("wolfy87-eventemitter"),require("get-size"),require("desandro-matches-selector"),require("./item")):o.Outlayer=u(o.eventie,o.docReady,o.EventEmitter,o.getSize,o.matchesSelector,o.Outlayer.Item)}(window),function(d){function e(c,g){var h=c.create("masonry");return h.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var b=this.cols;for(this.colYs=[];b--;){this.colYs.push(0)}this.maxY=0},h.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var b=this.items[0],i=b&&b.element;this.columnWidth=i&&g(i).outerWidth||this.containerWidth}this.columnWidth+=this.gutter,this.cols=Math.floor((this.containerWidth+this.gutter)/this.columnWidth),this.cols=Math.max(this.cols,1)},h.prototype.getContainerWidth=function(){var b=this.options.isFitWidth?this.element.parentNode:this.element,i=g(b);this.containerWidth=i&&i.innerWidth},h.prototype._getItemLayoutPosition=function(m){m.getSize();var n=m.size.outerWidth%this.columnWidth,o=n&&1>n?"round":"ceil",p=Math[o](m.size.outerWidth/this.columnWidth);p=Math.min(p,this.cols);for(var q=this._getColGroup(p),r=Math.min.apply(Math,q),s=f(q,r),t={x:this.columnWidth*s,y:r},u=r+m.size.outerHeight,v=this.cols+1-q.length,w=0;v>w;w++){this.colYs[s+w]=u}return t},h.prototype._getColGroup=function(i){if(2>i){return this.colYs}for(var j=[],k=this.cols+1-i,l=0;k>l;l++){var m=this.colYs.slice(l,l+i);j[l]=Math.max.apply(Math,m)}return j},h.prototype._manageStamp=function(b){var k=g(b),l=this._getElementOffset(b),m=this.options.isOriginLeft?l.left:l.right,n=m+k.outerWidth,o=Math.floor(m/this.columnWidth);o=Math.max(0,o);var p=Math.floor(n/this.columnWidth);p-=n%this.columnWidth?0:1,p=Math.min(this.cols-1,p);for(var q=(this.options.isOriginTop?l.top:l.bottom)+k.outerHeight,r=o;p>=r;r++){this.colYs[r]=Math.max(q,this.colYs[r])}},h.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var b={height:this.maxY};return this.options.isFitWidth&&(b.width=this._getContainerFitWidth()),b},h.prototype._getContainerFitWidth=function(){for(var i=0,j=this.cols;--j&&0===this.colYs[j];){i++}return(this.cols-i)*this.columnWidth-this.gutter},h.prototype.needsResizeLayout=function(){var b=this.containerWidth;return this.getContainerWidth(),b!==this.containerWidth},h}var f=Array.prototype.indexOf?function(c,g){return c.indexOf(g)}:function(g,h){for(var i=0,j=g.length;j>i;i++){var k=g[i];if(k===h){return i}}return -1};"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):"object"==typeof exports?module.exports=e(require("outlayer"),require("get-size")):d.Masonry=e(d.Outlayer,d.getSize)}(window);(function(G){var Q="left",P="right",F="up",X="down",E="in",Y="out",N="none",T="auto",M="swipe",U="pinch",Z="tap",K="doubletap",D="longtap",C="horizontal",V="vertical",J="all",S=10,H="start",L="move",I="end",R="cancel",B="ontouchstart" in window,aa="TouchSwipe";var O={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,triggerOnTouchEnd:true,triggerOnTouchLeave:false,allowPageScroll:"auto",fallbackToMouseEvents:true,excludedElements:"button, input, select, textarea, a, .noSwipe"};G.fn.swipe=function(c){var b=G(this),a=b.data(aa);if(a&&typeof c==="string"){if(a[c]){return a[c].apply(this,Array.prototype.slice.call(arguments,1))}else{G.error("Method "+c+" does not exist on jQuery.swipe")}}else{if(!a&&(typeof c==="object"||!c)){return W.apply(this,arguments)}}return b};G.fn.swipe.defaults=O;G.fn.swipe.phases={PHASE_START:H,PHASE_MOVE:L,PHASE_END:I,PHASE_CANCEL:R};G.fn.swipe.directions={LEFT:Q,RIGHT:P,UP:F,DOWN:X,IN:E,OUT:Y};G.fn.swipe.pageScroll={NONE:N,HORIZONTAL:C,VERTICAL:V,AUTO:T};G.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:J};function W(a){if(a&&(a.allowPageScroll===undefined&&(a.swipe!==undefined||a.swipeStatus!==undefined))){a.allowPageScroll=N}if(a.click!==undefined&&a.tap===undefined){a.tap=a.click}if(!a){a={}}a=G.extend({},G.fn.swipe.defaults,a);return this.each(function(){var c=G(this);var b=c.data(aa);if(!b){b=new ab(this,a);c.data(aa,b)}})}function ab(a,aE){var a3=(B||!aE.fallbackToMouseEvents),bi=a3?"touchstart":"mousedown",a1=a3?"touchmove":"mousemove",bt=a3?"touchend":"mouseup",br=a3?null:"mouseleave",bb="touchcancel";var l=0,af=null,bA=0,a8=0,a4=0,bf=1,ag=0,s=0,bl=null;var aj=G(a);var by="start";var bv=0;var ah=null;var bs=0,ba=0,b=0,h=0,bm=0;var aI=null;try{aj.bind(bi,A);aj.bind(bb,f)}catch(t){G.error("events not supported "+bi+","+bb+" on jQuery.swipe")}this.enable=function(){aj.bind(bi,A);aj.bind(bb,f);return aj};this.disable=function(){u();return aj};this.destroy=function(){u();aj.data(aa,null);return aj};this.option=function(al,ak){if(aE[al]!==undefined){if(ak===undefined){return aE[al]}else{aE[al]=ak}}else{G.error("Option "+al+" does not exist on jQuery.swipe.options")}};function A(am){if(a7()){return}if(G(am.target).closest(aE.excludedElements,aj).length>0){return}var an=am.originalEvent?am.originalEvent:am;var al,ak=B?an.touches[0]:an;by=H;if(B){bv=an.touches.length}else{am.preventDefault()}l=0;af=null;s=null;bA=0;a8=0;a4=0;bf=1;ag=0;ah=r();bl=bz();bq();if(!B||(bv===aE.fingers||aE.fingers===J)||a0()){p(0,ak);bs=aA();if(bv==2){p(1,an.touches[1]);a8=a4=aC(ah[0].start,ah[1].start)}if(aE.swipeStatus||aE.pinchStatus){al=bn(an,by)}}else{al=false}if(al===false){by=R;bn(an,by);return al}else{ac(true)}}function bc(an){var aq=an.originalEvent?an.originalEvent:an;if(by===I||by===R||x()){return}var am,al=B?aq.touches[0]:aq;var ao=o(al);ba=aA();if(B){bv=aq.touches.length}by=L;if(bv==2){if(a8==0){p(1,aq.touches[1]);a8=a4=aC(ah[0].start,ah[1].start)}else{o(aq.touches[1]);a4=aC(ah[0].end,ah[1].end);s=ai(ah[0].end,ah[1].end)}bf=d(a8,a4);ag=Math.abs(a8-a4)}if((bv===aE.fingers||aE.fingers===J)||!B||a0()){af=w(ao.start,ao.end);v(an,af);l=aB(ao.start,ao.end);bA=y();q(af,l);if(aE.swipeStatus||aE.pinchStatus){am=bn(aq,by)}if(!aE.triggerOnTouchEnd||aE.triggerOnTouchLeave){var ak=true;if(aE.triggerOnTouchLeave){var ap=a2(this);ak=bd(ao.end,ap)}if(!aE.triggerOnTouchEnd&&ak){by=a9(L)}else{if(aE.triggerOnTouchLeave&&!ak){by=a9(I)}}if(by==R||by==I){bn(aq,by)}}}else{by=R;bn(aq,by)}if(am===false){by=R;bn(aq,by)}}function bk(ak){var al=ak.originalEvent;if(B){if(al.touches.length>0){be();return true}}if(x()){bv=h}ak.preventDefault();ba=aA();bA=y();if(g()){by=R;bn(al,by)}else{if(aE.triggerOnTouchEnd||(aE.triggerOnTouchEnd==false&&by===L)){by=I;bn(al,by)}else{if(!aE.triggerOnTouchEnd&&c()){by=I;k(al,by,Z)}else{if(by===L){by=R;bn(al,by)}}}}ac(false)}function f(){bv=0;ba=0;bs=0;a8=0;a4=0;bf=1;bq();ac(false)}function bj(ak){var al=ak.originalEvent;if(aE.triggerOnTouchLeave){by=a9(I);bn(al,by)}}function u(){aj.unbind(bi,A);aj.unbind(bb,f);aj.unbind(a1,bc);aj.unbind(bt,bk);if(br){aj.unbind(br,bj)}ac(false)}function a9(ao){var an=ao;var am=a5();var al=z();var ak=g();if(!am||ak){an=R}else{if(al&&ao==L&&(!aE.triggerOnTouchEnd||aE.triggerOnTouchLeave)){an=I}else{if(!al&&ao==I&&aE.triggerOnTouchLeave){an=R}}}return an}function bn(am,ak){var al=undefined;if(bh()||bu()){al=k(am,ak,M)}else{if((bo()||a0())&&al!==false){al=k(am,ak,U)}}if(m()&&al!==false){al=k(am,ak,K)}else{if(ae()&&al!==false){al=k(am,ak,D)}else{if(n()&&al!==false){al=k(am,ak,Z)}}}if(ak===R){f(am)}if(ak===I){if(B){if(am.touches.length==0){f(am)}}else{f(am)}}return al}function k(an,ak,am){var al=undefined;if(am==M){aj.trigger("swipeStatus",[ak,af||null,l||0,bA||0,bv]);if(aE.swipeStatus){al=aE.swipeStatus.call(aj,an,ak,af||null,l||0,bA||0,bv);if(al===false){return false}}if(ak==I&&aH()){aj.trigger("swipe",[af,l,bA,bv]);if(aE.swipe){al=aE.swipe.call(aj,an,af,l,bA,bv);if(al===false){return false}}switch(af){case Q:aj.trigger("swipeLeft",[af,l,bA,bv]);if(aE.swipeLeft){al=aE.swipeLeft.call(aj,an,af,l,bA,bv)}break;case P:aj.trigger("swipeRight",[af,l,bA,bv]);if(aE.swipeRight){al=aE.swipeRight.call(aj,an,af,l,bA,bv)}break;case F:aj.trigger("swipeUp",[af,l,bA,bv]);if(aE.swipeUp){al=aE.swipeUp.call(aj,an,af,l,bA,bv)}break;case X:aj.trigger("swipeDown",[af,l,bA,bv]);if(aE.swipeDown){al=aE.swipeDown.call(aj,an,af,l,bA,bv)}break}}}if(am==U){aj.trigger("pinchStatus",[ak,s||null,ag||0,bA||0,bv,bf]);if(aE.pinchStatus){al=aE.pinchStatus.call(aj,an,ak,s||null,ag||0,bA||0,bv,bf);if(al===false){return false}}if(ak==I&&e()){switch(s){case E:aj.trigger("pinchIn",[s||null,ag||0,bA||0,bv,bf]);if(aE.pinchIn){al=aE.pinchIn.call(aj,an,s||null,ag||0,bA||0,bv,bf)}break;case Y:aj.trigger("pinchOut",[s||null,ag||0,bA||0,bv,bf]);if(aE.pinchOut){al=aE.pinchOut.call(aj,an,s||null,ag||0,bA||0,bv,bf)}break}}}if(am==Z){if(ak===R||ak===I){clearTimeout(aI);if(bx()&&!bg()){bm=aA();aI=setTimeout(G.proxy(function(){bm=null;aj.trigger("tap",[an.target]);if(aE.tap){al=aE.tap.call(aj,an,an.target)}},this),aE.doubleTapThreshold)}else{bm=null;aj.trigger("tap",[an.target]);if(aE.tap){al=aE.tap.call(aj,an,an.target)}}}}else{if(am==K){if(ak===R||ak===I){clearTimeout(aI);bm=null;aj.trigger("doubletap",[an.target]);if(aE.doubleTap){al=aE.doubleTap.call(aj,an,an.target)}}}else{if(am==D){if(ak===R||ak===I){clearTimeout(aI);bm=null;aj.trigger("longtap",[an.target]);if(aE.longTap){al=aE.longTap.call(aj,an,an.target)}}}}}return al}function z(){var ak=true;if(aE.threshold!==null){ak=l>=aE.threshold}return ak}function g(){var ak=false;if(aE.cancelThreshold!==null&&af!==null){ak=(aD(af)-l)>=aE.cancelThreshold}return ak}function j(){if(aE.pinchThreshold!==null){return ag>=aE.pinchThreshold}return true}function a5(){var ak;if(aE.maxTimeThreshold){if(bA>=aE.maxTimeThreshold){ak=false}else{ak=true}}else{ak=true}return ak}function v(ak,al){if(aE.allowPageScroll===N||a0()){ak.preventDefault()}else{var am=aE.allowPageScroll===T;switch(al){case Q:if((aE.swipeLeft&&am)||(!am&&aE.allowPageScroll!=C)){ak.preventDefault()}break;case P:if((aE.swipeRight&&am)||(!am&&aE.allowPageScroll!=C)){ak.preventDefault()}break;case F:if((aE.swipeUp&&am)||(!am&&aE.allowPageScroll!=V)){ak.preventDefault()}break;case X:if((aE.swipeDown&&am)||(!am&&aE.allowPageScroll!=V)){ak.preventDefault()}break}}}function e(){var al=ad();var ak=bw();var am=j();return al&&ak&&am}function a0(){return !!(aE.pinchStatus||aE.pinchIn||aE.pinchOut)}function bo(){return !!(e()&&a0())}function aH(){var an=a5();var ap=z();var am=ad();var ak=bw();var al=g();var ao=!al&&ak&&am&&ap&&an;return ao}function bu(){return !!(aE.swipe||aE.swipeStatus||aE.swipeLeft||aE.swipeRight||aE.swipeUp||aE.swipeDown)}function bh(){return !!(aH()&&bu())}function ad(){return((bv===aE.fingers||aE.fingers===J)||!B)}function bw(){return ah[0].end.x!==0}function c(){return !!(aE.tap)}function bx(){return !!(aE.doubleTap)}function aF(){return !!(aE.longTap)}function bp(){if(bm==null){return false}var ak=aA();return(bx()&&((ak-bm)<=aE.doubleTapThreshold))}function bg(){return bp()}function aJ(){return((bv===1||!B)&&(isNaN(l)||l===0))}function a6(){return((bA>aE.longTapThreshold)&&(l<S))}function n(){return !!(aJ()&&c())}function m(){return !!(bp()&&bx())}function ae(){return !!(a6()&&aF())}function be(){b=aA();h=event.touches.length+1}function bq(){b=0;h=0}function x(){var ak=false;if(b){var al=aA()-b;if(al<=aE.fingerReleaseThreshold){ak=true}}return ak}function a7(){return !!(aj.data(aa+"_intouch")===true)}function ac(ak){if(ak===true){aj.bind(a1,bc);aj.bind(bt,bk);if(br){aj.bind(br,bj)}}else{aj.unbind(a1,bc,false);aj.unbind(bt,bk,false);if(br){aj.unbind(br,bj,false)}}aj.data(aa+"_intouch",ak===true)}function p(al,ak){var am=ak.identifier!==undefined?ak.identifier:0;ah[al].identifier=am;ah[al].start.x=ah[al].end.x=ak.pageX||ak.clientX;ah[al].start.y=ah[al].end.y=ak.pageY||ak.clientY;return ah[al]}function o(ak){var am=ak.identifier!==undefined?ak.identifier:0;var al=bB(am);al.end.x=ak.pageX||ak.clientX;al.end.y=ak.pageY||ak.clientY;return al}function bB(al){for(var ak=0;ak<ah.length;ak++){if(ah[ak].identifier==al){return ah[ak]}}}function r(){var ak=[];for(var al=0;al<=5;al++){ak.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0})}return ak}function q(ak,al){al=Math.max(al,aD(ak));bl[ak].distance=al}function aD(ak){return bl[ak].distance}function bz(){var ak={};ak[Q]=aG(Q);ak[P]=aG(P);ak[F]=aG(F);ak[X]=aG(X);return ak}function aG(ak){return{direction:ak,distance:0}}function y(){return ba-bs}function aC(an,am){var al=Math.abs(an.x-am.x);var ak=Math.abs(an.y-am.y);return Math.round(Math.sqrt(al*al+ak*ak))}function d(ak,al){var am=(al/ak)*1;return am.toFixed(2)}function ai(){if(bf<1){return Y}else{return E}}function aB(al,ak){return Math.round(Math.sqrt(Math.pow(ak.x-al.x,2)+Math.pow(ak.y-al.y,2)))}function i(an,al){var ak=an.x-al.x;var ap=al.y-an.y;var am=Math.atan2(ap,ak);var ao=Math.round(am*180/Math.PI);if(ao<0){ao=360-Math.abs(ao)}return ao}function w(al,ak){var am=i(al,ak);if((am<=45)&&(am>=0)){return Q}else{if((am<=360)&&(am>=315)){return Q}else{if((am>=135)&&(am<=225)){return P}else{if((am>45)&&(am<135)){return X}else{return F}}}}}function aA(){var ak=new Date();return ak.getTime()}function a2(ak){ak=G(ak);var am=ak.offset();var al={left:am.left,right:am.left+ak.outerWidth(),top:am.top,bottom:am.top+ak.outerHeight()};return al}function bd(ak,al){return(ak.x>al.left&&ak.x<al.right&&ak.y>al.top&&ak.y<al.bottom)}}})(jQuery);
/* jQuery Validation Plugin - v1.13.1 - 10/14/2014
 * http://jqueryvalidation.org/
 * Copyright (c) 2014 JÃ¶rn Zaefferer; Licensed MIT */
!function(b){"function"==typeof define&&define.amd?define(["jquery"],b):b(jQuery)}(function(d){d.extend(d.fn,{validate:function(a){if(!this.length){return void (a&&a.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."))}var g=d.data(this[0],"validator");return g?g:(this.attr("novalidate","novalidate"),g=new d.validator(a,this[0]),d.data(this[0],"validator",g),g.settings.onsubmit&&(this.validateDelegate(":submit","click",function(c){g.settings.submitHandler&&(g.submitButton=c.target),d(c.target).hasClass("cancel")&&(g.cancelSubmit=!0),void 0!==d(c.target).attr("formnovalidate")&&(g.cancelSubmit=!0)}),this.submit(function(c){function h(){var b,i;return g.settings.submitHandler?(g.submitButton&&(b=d("<input type='hidden'/>").attr("name",g.submitButton.name).val(d(g.submitButton).val()).appendTo(g.currentForm)),i=g.settings.submitHandler.call(g,g.currentForm,c),g.submitButton&&b.remove(),void 0!==i?i:!1):!0}return g.settings.debug&&c.preventDefault(),g.cancelSubmit?(g.cancelSubmit=!1,h()):g.form()?g.pendingRequest?(g.formSubmitted=!0,!1):h():(g.focusInvalid(),!1)})),g)},valid:function(){var a,g;return d(this[0]).is("form")?a=this.validate().form():(a=!0,g=d(this[0].form).validate(),this.each(function(){a=g.element(this)&&a})),a},removeAttrs:function(a){var g={},h=this;return d.each(a.split(/\s/),function(c,i){g[i]=h.attr(i),h.removeAttr(i)}),g},rules:function(a,k){var l,m,n,o,p,q,r=this[0];if(a){switch(l=d.data(r.form,"validator").settings,m=l.rules,n=d.validator.staticRules(r),a){case"add":d.extend(n,d.validator.normalizeRule(k)),delete n.messages,m[r.name]=n,k.messages&&(l.messages[r.name]=d.extend(l.messages[r.name],k.messages));break;case"remove":return k?(q={},d.each(k.split(/\s/),function(g,h){q[h]=n[h],delete n[h],"required"===h&&d(r).removeAttr("aria-required")}),q):(delete m[r.name],n)}}return o=d.validator.normalizeRules(d.extend({},d.validator.classRules(r),d.validator.attributeRules(r),d.validator.dataRules(r),d.validator.staticRules(r)),r),o.required&&(p=o.required,delete o.required,o=d.extend({required:p},o),d(r).attr("aria-required","true")),o.remote&&(p=o.remote,delete o.remote,o=d.extend(o,{remote:p})),o}}),d.extend(d.expr[":"],{blank:function(a){return !d.trim(""+d(a).val())},filled:function(a){return !!d.trim(""+d(a).val())},unchecked:function(a){return !d(a).prop("checked")}}),d.validator=function(a,g){this.settings=d.extend(!0,{},d.validator.defaults,a),this.currentForm=g,this.init()},d.validator.format=function(a,g){return 1===arguments.length?function(){var b=d.makeArray(arguments);return b.unshift(a),d.validator.format.apply(this,b)}:(arguments.length>2&&g.constructor!==Array&&(g=d.makeArray(arguments).slice(1)),g.constructor!==Array&&(g=[g]),d.each(g,function(b,h){a=a.replace(new RegExp("\\{"+b+"\\}","g"),function(){return h})}),a)},d.extend(d.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:d([]),errorLabelContainer:d([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(b){this.lastActive=b,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,b,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(b)))},onfocusout:function(b){this.checkable(b)||!(b.name in this.submitted)&&this.optional(b)||this.element(b)},onkeyup:function(c,g){(9!==g.which||""!==this.elementValue(c))&&(c.name in this.submitted||c===this.lastElement)&&this.element(c)},onclick:function(b){b.name in this.submitted?this.element(b):b.parentNode.name in this.submitted&&this.element(b.parentNode)},highlight:function(a,g,h){"radio"===a.type?this.findByName(a.name).addClass(g).removeClass(h):d(a).addClass(g).removeClass(h)},unhighlight:function(a,g,h){"radio"===a.type?this.findByName(a.name).removeClass(g).addClass(h):d(a).removeClass(g).addClass(h)}},setDefaults:function(a){d.extend(d.validator.defaults,a)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date ( ISO ).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:d.validator.format("Please enter no more than {0} characters."),minlength:d.validator.format("Please enter at least {0} characters."),rangelength:d.validator.format("Please enter a value between {0} and {1} characters long."),range:d.validator.format("Please enter a value between {0} and {1}."),max:d.validator.format("Please enter a value less than or equal to {0}."),min:d.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function a(i){var j=d.data(this[0].form,"validator"),k="on"+i.type.replace(/^validate/,""),l=j.settings;l[k]&&!this.is(l.ignore)&&l[k].call(j,this[0],i)}this.labelContainer=d(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||d(this.currentForm),this.containers=d(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var g,h=this.groups={};d.each(this.settings.groups,function(i,j){"string"==typeof j&&(j=j.split(/\s/)),d.each(j,function(b,k){h[k]=i})}),g=this.settings.rules,d.each(g,function(c,i){g[c]=d.validator.normalizeRule(i)}),d(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox']","focusin focusout keyup",a).validateDelegate("select, option, [type='radio'], [type='checkbox']","click",a),this.settings.invalidHandler&&d(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler),d(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),d.extend(this.submitted,this.errorMap),this.invalid=d.extend({},this.errorMap),this.valid()||d(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var c=0,g=this.currentElements=this.elements();g[c];c++){this.check(g[c])}return this.valid()},element:function(a){var g=this.clean(a),h=this.validationTargetFor(g),i=!0;return this.lastElement=h,void 0===h?delete this.invalid[g.name]:(this.prepareElement(h),this.currentElements=d(h),i=this.check(h)!==!1,i?delete this.invalid[h.name]:this.invalid[h.name]=!0),d(a).attr("aria-invalid",!i),this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),i},showErrors:function(a){if(a){d.extend(this.errorMap,a),this.errorList=[];for(var g in a){this.errorList.push({message:a[g],element:this.findByName(g)[0]})}this.successList=d.grep(this.successList,function(b){return !(b.name in a)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){d.fn.resetForm&&d(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass).removeData("previousValue").removeAttr("aria-invalid")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(g){var h,i=0;for(h in g){i++}return i},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(b){b.not(this.containers).text(""),this.addWrapper(b).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid){try{d(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(a){}}},findLastActive:function(){var a=this.lastActive;return a&&1===d.grep(this.errorList,function(b){return b.element.name===a.name}).length&&a},elements:function(){var a=this,g={};return d(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled], [readonly]").not(this.settings.ignore).filter(function(){return !this.name&&a.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.name in g||!a.objectLength(d(this).rules())?!1:(g[this.name]=!0,!0)})},clean:function(a){return d(a)[0]},errors:function(){var a=this.settings.errorClass.split(" ").join(".");return d(this.settings.errorElement+"."+a,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=d([]),this.toHide=d([]),this.currentElements=d([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(b){this.reset(),this.toHide=this.errorsFor(b)},elementValue:function(a){var g,h=d(a),i=a.type;return"radio"===i||"checkbox"===i?d("input[name='"+a.name+"']:checked").val():"number"===i&&"undefined"!=typeof a.validity?a.validity.badInput?!1:h.val():(g=h.val(),"string"==typeof g?g.replace(/\r/g,""):g)},check:function(a){a=this.validationTargetFor(this.clean(a));var k,l,m,n=d(a).rules(),o=d.map(n,function(c,g){return g}).length,p=!1,q=this.elementValue(a);for(l in n){m={method:l,parameters:n[l]};try{if(k=d.validator.methods[l].call(this,q,a,m.parameters),"dependency-mismatch"===k&&1===o){p=!0;continue}if(p=!1,"pending"===k){return void (this.toHide=this.toHide.not(this.errorsFor(a)))}if(!k){return this.formatAndAdd(a,m),!1}}catch(r){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+a.id+", check the '"+m.method+"' method.",r),r}}if(!p){return this.objectLength(n)&&this.successList.push(a),!0}},customDataMessage:function(a,g){return d(a).data("msg"+g.charAt(0).toUpperCase()+g.substring(1).toLowerCase())||d(a).data("msg")},customMessage:function(g,h){var i=this.settings.messages[g];return i&&(i.constructor===String?i:i[h])},findDefined:function(){for(var b=0;b<arguments.length;b++){if(void 0!==arguments[b]){return arguments[b]}}return void 0},defaultMessage:function(a,g){return this.findDefined(this.customMessage(a.name,g),this.customDataMessage(a,g),!this.settings.ignoreTitle&&a.title||void 0,d.validator.messages[g],"<strong>Warning: No message defined for "+a.name+"</strong>")},formatAndAdd:function(a,g){var h=this.defaultMessage(a,g.method),i=/\$?\{(\d+)\}/g;"function"==typeof h?h=h.call(this,g.parameters,a):i.test(h)&&(h=d.validator.format(h.replace(i,"{$1}"),g.parameters)),this.errorList.push({message:h,element:a,method:g.method}),this.errorMap[a.name]=h,this.submitted[a.name]=h},addWrapper:function(b){return this.settings.wrapper&&(b=b.add(b.parent(this.settings.wrapper))),b},defaultShowErrors:function(){var g,h,i;for(g=0;this.errorList[g];g++){i=this.errorList[g],this.settings.highlight&&this.settings.highlight.call(this,i.element,this.settings.errorClass,this.settings.validClass),this.showLabel(i.element,i.message)}if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success){for(g=0;this.successList[g];g++){this.showLabel(this.successList[g])}}if(this.settings.unhighlight){for(g=0,h=this.validElements();h[g];g++){this.settings.unhighlight.call(this,h[g],this.settings.errorClass,this.settings.validClass)}}this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return d(this.errorList).map(function(){return this.element})},showLabel:function(a,j){var k,l,m,n=this.errorsFor(a),o=this.idOrName(a),p=d(a).attr("aria-describedby");n.length?(n.removeClass(this.settings.validClass).addClass(this.settings.errorClass),n.html(j)):(n=d("<"+this.settings.errorElement+">").attr("id",o+"-error").addClass(this.settings.errorClass).html(j||""),k=n,this.settings.wrapper&&(k=n.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(k):this.settings.errorPlacement?this.settings.errorPlacement(k,d(a)):k.insertAfter(a),n.is("label")?n.attr("for",o):0===n.parents("label[for='"+o+"']").length&&(m=n.attr("id").replace(/(:|\.|\[|\])/g,"\\$1"),p?p.match(new RegExp("\\b"+m+"\\b"))||(p+=" "+m):p=m,d(a).attr("aria-describedby",p),l=this.groups[a.name],l&&d.each(this.groups,function(g,h){h===l&&d("[name='"+g+"']",this.currentForm).attr("aria-describedby",n.attr("id"))}))),!j&&this.settings.success&&(n.text(""),"string"==typeof this.settings.success?n.addClass(this.settings.success):this.settings.success(n,a)),this.toShow=this.toShow.add(n)},errorsFor:function(a){var g=this.idOrName(a),h=d(a).attr("aria-describedby"),i="label[for='"+g+"'], label[for='"+g+"'] *";return h&&(i=i+", #"+h.replace(/\s+/g,", #")),this.errors().filter(i)},idOrName:function(b){return this.groups[b.name]||(this.checkable(b)?b.name:b.id||b.name)},validationTargetFor:function(a){return this.checkable(a)&&(a=this.findByName(a.name)),d(a).not(this.settings.ignore)[0]},checkable:function(b){return/radio|checkbox/i.test(b.type)},findByName:function(a){return d(this.currentForm).find("[name='"+a+"']")},getLength:function(a,g){switch(g.nodeName.toLowerCase()){case"select":return d("option:selected",g).length;case"input":if(this.checkable(g)){return this.findByName(g.name).filter(":checked").length}}return a.length},depend:function(c,g){return this.dependTypes[typeof c]?this.dependTypes[typeof c](c,g):!0},dependTypes:{"boolean":function(b){return b},string:function(a,g){return !!d(a,g.form).length},"function":function(c,g){return c(g)}},optional:function(a){var g=this.elementValue(a);return !d.validator.methods.required.call(this,g,a)&&"dependency-mismatch"},startRequest:function(b){this.pending[b.name]||(this.pendingRequest++,this.pending[b.name]=!0)},stopRequest:function(a,g){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[a.name],g&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(d(this.currentForm).submit(),this.formSubmitted=!1):!g&&0===this.pendingRequest&&this.formSubmitted&&(d(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(a){return d.data(a,"previousValue")||d.data(a,"previousValue",{old:null,valid:!0,message:this.defaultMessage(a,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(a,g){a.constructor===String?this.classRuleSettings[a]=g:d.extend(this.classRuleSettings,a)},classRules:function(a){var g={},h=d(a).attr("class");return h&&d.each(h.split(" "),function(){this in d.validator.classRuleSettings&&d.extend(g,d.validator.classRuleSettings[this])}),g},attributeRules:function(a){var h,i,j={},k=d(a),l=a.getAttribute("type");for(h in d.validator.methods){"required"===h?(i=a.getAttribute(h),""===i&&(i=!0),i=!!i):i=k.attr(h),/min|max/.test(h)&&(null===l||/number|range|text/.test(l))&&(i=Number(i)),i||0===i?j[h]=i:l===h&&"range"!==l&&(j[h]=!0)}return j.maxlength&&/-1|2147483647|524288/.test(j.maxlength)&&delete j.maxlength,j},dataRules:function(a){var g,h,i={},j=d(a);for(g in d.validator.methods){h=j.data("rule"+g.charAt(0).toUpperCase()+g.substring(1).toLowerCase()),void 0!==h&&(i[g]=h)}return i},staticRules:function(a){var g={},h=d.data(a.form,"validator");return h.settings.rules&&(g=d.validator.normalizeRule(h.settings.rules[a.name])||{}),g},normalizeRules:function(a,g){return d.each(a,function(b,c){if(c===!1){return void delete a[b]}if(c.param||c.depends){var h=!0;switch(typeof c.depends){case"string":h=!!d(c.depends,g.form).length;break;case"function":h=c.depends.call(g,g)}h?a[b]=void 0!==c.param?c.param:!0:delete a[b]}}),d.each(a,function(b,c){a[b]=d.isFunction(c)?c(g):c}),d.each(["minlength","maxlength"],function(){a[this]&&(a[this]=Number(a[this]))}),d.each(["rangelength","range"],function(){var b;a[this]&&(d.isArray(a[this])?a[this]=[Number(a[this][0]),Number(a[this][1])]:"string"==typeof a[this]&&(b=a[this].replace(/[\[\]]/g,"").split(/[\s,]+/),a[this]=[Number(b[0]),Number(b[1])]))}),d.validator.autoCreateRanges&&(null!=a.min&&null!=a.max&&(a.range=[a.min,a.max],delete a.min,delete a.max),null!=a.minlength&&null!=a.maxlength&&(a.rangelength=[a.minlength,a.maxlength],delete a.minlength,delete a.maxlength)),a},normalizeRule:function(a){if("string"==typeof a){var g={};d.each(a.split(/\s/),function(){g[this]=!0}),a=g}return a},addMethod:function(a,g,h){d.validator.methods[a]=g,d.validator.messages[a]=void 0!==h?h:d.validator.messages[a],g.length<3&&d.validator.addClassRules(a,d.validator.normalizeRule(a))},methods:{required:function(a,g,h){if(!this.depend(h,g)){return"dependency-mismatch"}if("select"===g.nodeName.toLowerCase()){var i=d(g).val();return i&&i.length>0}return this.checkable(g)?this.getLength(a,g)>0:d.trim(a).length>0},email:function(c,g){return this.optional(g)||/^[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])?)*$/.test(c)},url:function(c,g){return this.optional(g)||/^(https?|s?ftp):\/\/(((([a-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-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(c)},date:function(c,g){return this.optional(g)||!/Invalid|NaN/.test(new Date(c).toString())},dateISO:function(c,g){return this.optional(g)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(c)},number:function(c,g){return this.optional(g)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(c)},digits:function(c,g){return this.optional(g)||/^\d+$/.test(c)},creditcard:function(h,i){if(this.optional(i)){return"dependency-mismatch"}if(/[^0-9 \-]+/.test(h)){return !1}var j,k,l=0,m=0,n=!1;if(h=h.replace(/\D/g,""),h.length<13||h.length>19){return !1}for(j=h.length-1;j>=0;j--){k=h.charAt(j),m=parseInt(k,10),n&&(m*=2)>9&&(m-=9),l+=m,n=!n}return l%10===0},minlength:function(a,g,h){var i=d.isArray(a)?a.length:this.getLength(a,g);return this.optional(g)||i>=h},maxlength:function(a,g,h){var i=d.isArray(a)?a.length:this.getLength(a,g);return this.optional(g)||h>=i},rangelength:function(a,g,h){var i=d.isArray(a)?a.length:this.getLength(a,g);return this.optional(g)||i>=h[0]&&i<=h[1]},min:function(g,h,i){return this.optional(h)||g>=i},max:function(g,h,i){return this.optional(h)||i>=g},range:function(g,h,i){return this.optional(h)||g>=i[0]&&g<=i[1]},equalTo:function(a,g,h){var i=d(h);return this.settings.onfocusout&&i.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){d(g).valid()}),a===i.val()},remote:function(a,h,i){if(this.optional(h)){return"dependency-mismatch"}var j,k,l=this.previousValue(h);return this.settings.messages[h.name]||(this.settings.messages[h.name]={}),l.originalMessage=this.settings.messages[h.name].remote,this.settings.messages[h.name].remote=l.message,i="string"==typeof i&&{url:i}||i,l.old===a?l.valid:(l.old=a,j=this,this.startRequest(h),k={},k[h.name]=a,d.ajax(d.extend(!0,{url:i,mode:"abort",port:"validate"+h.name,dataType:"json",data:k,context:j.currentForm,success:function(b){var c,g,m,n=b===!0||"true"===b;j.settings.messages[h.name].remote=l.originalMessage,n?(m=j.formSubmitted,j.prepareElement(h),j.formSubmitted=m,j.successList.push(h),delete j.invalid[h.name],j.showErrors()):(c={},g=b||j.defaultMessage(h,"remote"),c[h.name]=l.message=d.isFunction(g)?g(a):g,j.invalid[h.name]=!0,j.showErrors(c)),l.valid=n,j.stopRequest(h,n)}},i)),"pending")}}}),d.format=function(){throw"$.format has been deprecated. Please use $.validator.format instead."};var e,f={};d.ajaxPrefilter?d.ajaxPrefilter(function(c,g,h){var i=c.port;"abort"===c.mode&&(f[i]&&f[i].abort(),f[i]=h)}):(e=d.ajax,d.ajax=function(a){var b=("mode" in a?a:d.ajaxSettings).mode,c=("port" in a?a:d.ajaxSettings).port;return"abort"===b?(f[c]&&f[c].abort(),f[c]=e.apply(this,arguments),f[c]):e.apply(this,arguments)}),d.extend(d.fn,{validateDelegate:function(a,g,h){return this.bind(g,function(b){var i=d(b.target);return i.is(a)?h.apply(i,arguments):void 0})}})});
/* jQuery UI - v1.12.1 - 2017-02-08
* http://jqueryui.com
* Includes: keycode.js, widgets/datepicker.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
(function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)})(function(j){function c(l){for(var a,k;l.length&&l[0]!==document;){if(a=l.css("position"),("absolute"===a||"relative"===a||"fixed"===a)&&(k=parseInt(l.css("zIndex"),10),!isNaN(k)&&0!==k)){return k}l=l.parent()}return 0}function d(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},j.extend(this._defaults,this.regional[""]),this.regional.en=j.extend(!0,{},this.regional[""]),this.regional["en-US"]=j.extend(!0,{},this.regional.en),this.dpDiv=h(j("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function h(a){var k="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return a.on("mouseout",k,function(){j(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&j(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&j(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",k,f)}function f(){j.datepicker._isDisabledDatepicker(b.inline?b.dpDiv.parent()[0]:b.input[0])||(j(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),j(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&j(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&j(this).addClass("ui-datepicker-next-hover"))}function g(a,k){j.extend(a,k);for(var l in k){null==k[l]&&(a[l]=k[l])}return a}j.ui=j.ui||{},j.ui.version="1.12.1",j.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},j.extend(j.ui,{datepicker:{version:"1.12.1"}});var b;j.extend(d.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){return g(this._defaults,a||{}),this},_attachDatepicker:function(a,k){var p,l,m;p=a.nodeName.toLowerCase(),l="div"===p||"span"===p,a.id||(this.uuid+=1,a.id="dp"+this.uuid),m=this._newInst(j(a),l),m.settings=j.extend({},k||{}),"input"===p?this._connectDatepicker(a,m):l&&this._inlineDatepicker(a,m)},_newInst:function(a,k){var l=a[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:l,input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:k,dpDiv:k?h(j("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(a,k){var l=j(a);k.append=j([]),k.trigger=j([]),l.hasClass(this.markerClassName)||(this._attachments(l,k),l.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(k),j.data(a,"datepicker",k),k.settings.disabled&&this._disableDatepicker(a))},_attachments:function(l,m){var u,p,q,k=this._get(m,"appendText"),t=this._get(m,"isRTL");m.append&&m.append.remove(),k&&(m.append=j("<span class='"+this._appendClass+"'>"+k+"</span>"),l[t?"before":"after"](m.append)),l.off("focus",this._showDatepicker),m.trigger&&m.trigger.remove(),u=this._get(m,"showOn"),("focus"===u||"both"===u)&&l.on("focus",this._showDatepicker),("button"===u||"both"===u)&&(p=this._get(m,"buttonText"),q=this._get(m,"buttonImage"),m.trigger=j(this._get(m,"buttonImageOnly")?j("<img/>").addClass(this._triggerClass).attr({src:q,alt:p,title:p}):j("<button type='button'></button>").addClass(this._triggerClass).html(q?j("<img/>").attr({src:q,alt:p,title:p}):p)),l[t?"before":"after"](m.trigger),m.trigger.on("click",function(){return j.datepicker._datepickerShowing&&j.datepicker._lastInput===l[0]?j.datepicker._hideDatepicker():j.datepicker._datepickerShowing&&j.datepicker._lastInput!==l[0]?(j.datepicker._hideDatepicker(),j.datepicker._showDatepicker(l[0])):j.datepicker._showDatepicker(l[0]),!1}))},_autoSize:function(u){if(this._get(u,"autoSize")&&!u.inline){var l,m,r,p,q=new Date(2009,11,20),k=this._get(u,"dateFormat");k.match(/[DM]/)&&(l=function(a){for(m=0,r=0,p=0;a.length>p;p++){a[p].length>m&&(m=a[p].length,r=p)}return r},q.setMonth(l(this._get(u,k.match(/MM/)?"monthNames":"monthNamesShort"))),q.setDate(l(this._get(u,k.match(/DD/)?"dayNames":"dayNamesShort"))+20-q.getDay())),u.input.attr("size",this._formatDate(u,q).length)}},_inlineDatepicker:function(a,k){var l=j(a);l.hasClass(this.markerClassName)||(l.addClass(this.markerClassName).append(k.dpDiv),j.data(a,"datepicker",k),this._setDate(k,this._getDefaultDate(k),!0),this._updateDatepicker(k),this._updateAlternate(k),k.settings.disabled&&this._disableDatepicker(a),k.dpDiv.css("display","block"))},_dialogDatepicker:function(p,t,y,w,k){var x,v,q,m,z,o=this._dialogInst;return o||(this.uuid+=1,x="dp"+this.uuid,this._dialogInput=j("<input type='text' id='"+x+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),j("body").append(this._dialogInput),o=this._dialogInst=this._newInst(this._dialogInput,!1),o.settings={},j.data(this._dialogInput[0],"datepicker",o)),g(o.settings,w||{}),t=t&&t.constructor===Date?this._formatDate(o,t):t,this._dialogInput.val(t),this._pos=k?k.length?k:[k.pageX,k.pageY]:null,this._pos||(v=document.documentElement.clientWidth,q=document.documentElement.clientHeight,m=document.documentElement.scrollLeft||document.body.scrollLeft,z=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[v/2-100+m,q/2-150+z]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),o.settings.onSelect=y,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),j.blockUI&&j.blockUI(this.dpDiv),j.data(this._dialogInput[0],"datepicker",o),this},_destroyDatepicker:function(a){var k,m=j(a),l=j.data(a,"datepicker");m.hasClass(this.markerClassName)&&(k=a.nodeName.toLowerCase(),j.removeData(a,"datepicker"),"input"===k?(l.append.remove(),l.trigger.remove(),m.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):("div"===k||"span"===k)&&m.removeClass(this.markerClassName).empty(),b===l&&(b=null))},_enableDatepicker:function(a){var k,p,l=j(a),m=j.data(a,"datepicker");l.hasClass(this.markerClassName)&&(k=a.nodeName.toLowerCase(),"input"===k?(a.disabled=!1,m.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===k||"span"===k)&&(p=l.children("."+this._inlineClass),p.children().removeClass("ui-state-disabled"),p.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=j.map(this._disabledInputs,function(e){return e===a?null:e}))},_disableDatepicker:function(a){var k,p,l=j(a),m=j.data(a,"datepicker");l.hasClass(this.markerClassName)&&(k=a.nodeName.toLowerCase(),"input"===k?(a.disabled=!0,m.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===k||"span"===k)&&(p=l.children("."+this._inlineClass),p.children().addClass("ui-state-disabled"),p.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=j.map(this._disabledInputs,function(e){return e===a?null:e}),this._disabledInputs[this._disabledInputs.length]=a)},_isDisabledDatepicker:function(i){if(!i){return !1}for(var a=0;this._disabledInputs.length>a;a++){if(this._disabledInputs[a]===i){return !0}}return !1},_getInst:function(a){try{return j.data(a,"datepicker")}catch(k){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(m,p,v){var t,k,u,q,o=this._getInst(m);return 2===arguments.length&&"string"==typeof p?"defaults"===p?j.extend({},j.datepicker._defaults):o?"all"===p?j.extend({},o.settings):this._get(o,p):null:(t=p||{},"string"==typeof p&&(t={},t[p]=v),o&&(this._curInst===o&&this._hideDatepicker(),k=this._getDateDatepicker(m,!0),u=this._getMinMaxDate(o,"min"),q=this._getMinMaxDate(o,"max"),g(o.settings,t),null!==u&&void 0!==t.dateFormat&&void 0===t.minDate&&(o.settings.minDate=this._formatDate(o,u)),null!==q&&void 0!==t.dateFormat&&void 0===t.maxDate&&(o.settings.maxDate=this._formatDate(o,q)),"disabled" in t&&(t.disabled?this._disableDatepicker(m):this._enableDatepicker(m)),this._attachments(j(m),o),this._autoSize(o),this._setDate(o,k),this._updateAlternate(o),this._updateDatepicker(o)),void 0)},_changeDatepicker:function(l,a,k){this._optionDatepicker(l,a,k)},_refreshDatepicker:function(i){var a=this._getInst(i);a&&this._updateDatepicker(a)},_setDateDatepicker:function(l,a){var k=this._getInst(l);k&&(this._setDate(k,a),this._updateDatepicker(k),this._updateAlternate(k))},_getDateDatepicker:function(l,a){var k=this._getInst(l);return k&&!k.inline&&this._setDateFromField(k,a),k?this._getDate(k):null},_doKeyDown:function(l){var m,u,p,q=j.datepicker._getInst(l.target),k=!0,t=q.dpDiv.is(".ui-datepicker-rtl");if(q._keyEvent=!0,j.datepicker._datepickerShowing){switch(l.keyCode){case 9:j.datepicker._hideDatepicker(),k=!1;break;case 13:return p=j("td."+j.datepicker._dayOverClass+":not(."+j.datepicker._currentClass+")",q.dpDiv),p[0]&&j.datepicker._selectDay(l.target,q.selectedMonth,q.selectedYear,p[0]),m=j.datepicker._get(q,"onSelect"),m?(u=j.datepicker._formatDate(q),m.apply(q.input?q.input[0]:null,[u,q])):j.datepicker._hideDatepicker(),!1;case 27:j.datepicker._hideDatepicker();break;case 33:j.datepicker._adjustDate(l.target,l.ctrlKey?-j.datepicker._get(q,"stepBigMonths"):-j.datepicker._get(q,"stepMonths"),"M");break;case 34:j.datepicker._adjustDate(l.target,l.ctrlKey?+j.datepicker._get(q,"stepBigMonths"):+j.datepicker._get(q,"stepMonths"),"M");break;case 35:(l.ctrlKey||l.metaKey)&&j.datepicker._clearDate(l.target),k=l.ctrlKey||l.metaKey;break;case 36:(l.ctrlKey||l.metaKey)&&j.datepicker._gotoToday(l.target),k=l.ctrlKey||l.metaKey;break;case 37:(l.ctrlKey||l.metaKey)&&j.datepicker._adjustDate(l.target,t?1:-1,"D"),k=l.ctrlKey||l.metaKey,l.originalEvent.altKey&&j.datepicker._adjustDate(l.target,l.ctrlKey?-j.datepicker._get(q,"stepBigMonths"):-j.datepicker._get(q,"stepMonths"),"M");break;case 38:(l.ctrlKey||l.metaKey)&&j.datepicker._adjustDate(l.target,-7,"D"),k=l.ctrlKey||l.metaKey;break;case 39:(l.ctrlKey||l.metaKey)&&j.datepicker._adjustDate(l.target,t?-1:1,"D"),k=l.ctrlKey||l.metaKey,l.originalEvent.altKey&&j.datepicker._adjustDate(l.target,l.ctrlKey?+j.datepicker._get(q,"stepBigMonths"):+j.datepicker._get(q,"stepMonths"),"M");break;case 40:(l.ctrlKey||l.metaKey)&&j.datepicker._adjustDate(l.target,7,"D"),k=l.ctrlKey||l.metaKey;break;default:k=!1}}else{36===l.keyCode&&l.ctrlKey?j.datepicker._showDatepicker(this):k=!1}k&&(l.preventDefault(),l.stopPropagation())},_doKeyPress:function(a){var k,m,l=j.datepicker._getInst(a.target);return j.datepicker._get(l,"constrainInput")?(k=j.datepicker._possibleChars(j.datepicker._get(l,"dateFormat")),m=String.fromCharCode(null==a.charCode?a.keyCode:a.charCode),a.ctrlKey||a.metaKey||" ">m||!k||k.indexOf(m)>-1):void 0},_doKeyUp:function(a){var k,m=j.datepicker._getInst(a.target);if(m.input.val()!==m.lastVal){try{k=j.datepicker.parseDate(j.datepicker._get(m,"dateFormat"),m.input?m.input.val():null,j.datepicker._getFormatConfig(m)),k&&(j.datepicker._setDateFromField(m),j.datepicker._updateAlternate(m),j.datepicker._updateDatepicker(m))}catch(l){}}return !0},_showDatepicker:function(o){if(o=o.target||o,"input"!==o.nodeName.toLowerCase()&&(o=j("input",o.parentNode)[0]),!j.datepicker._isDisabledDatepicker(o)&&j.datepicker._lastInput!==o){var u,q,e,t,p,m,k;u=j.datepicker._getInst(o),j.datepicker._curInst&&j.datepicker._curInst!==u&&(j.datepicker._curInst.dpDiv.stop(!0,!0),u&&j.datepicker._datepickerShowing&&j.datepicker._hideDatepicker(j.datepicker._curInst.input[0])),q=j.datepicker._get(u,"beforeShow"),e=q?q.apply(o,[o,u]):{},e!==!1&&(g(u.settings,e),u.lastVal=null,j.datepicker._lastInput=o,j.datepicker._setDateFromField(u),j.datepicker._inDialog&&(o.value=""),j.datepicker._pos||(j.datepicker._pos=j.datepicker._findPos(o),j.datepicker._pos[1]+=o.offsetHeight),t=!1,j(o).parents().each(function(){return t|="fixed"===j(this).css("position"),!t}),p={left:j.datepicker._pos[0],top:j.datepicker._pos[1]},j.datepicker._pos=null,u.dpDiv.empty(),u.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),j.datepicker._updateDatepicker(u),p=j.datepicker._checkOffset(u,p,t),u.dpDiv.css({position:j.datepicker._inDialog&&j.blockUI?"static":t?"fixed":"absolute",display:"none",left:p.left+"px",top:p.top+"px"}),u.inline||(m=j.datepicker._get(u,"showAnim"),k=j.datepicker._get(u,"duration"),u.dpDiv.css("z-index",c(j(o))+1),j.datepicker._datepickerShowing=!0,j.effects&&j.effects.effect[m]?u.dpDiv.show(m,j.datepicker._get(u,"showOptions"),k):u.dpDiv[m||"show"](m?k:null),j.datepicker._shouldFocusInput(u)&&u.input.trigger("focus"),j.datepicker._curInst=u))}},_updateDatepicker:function(a){this.maxRows=4,b=a,a.dpDiv.empty().append(this._generateHTML(a)),this._attachHandlers(a);var k,q=this._getNumberOfMonths(a),n=q[1],p=17,m=a.dpDiv.find("."+this._dayOverClass+" a");m.length>0&&f.apply(m.get(0)),a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),n>1&&a.dpDiv.addClass("ui-datepicker-multi-"+n).css("width",p*n+"em"),a.dpDiv[(1!==q[0]||1!==q[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),a===j.datepicker._curInst&&j.datepicker._datepickerShowing&&j.datepicker._shouldFocusInput(a)&&a.input.trigger("focus"),a.yearshtml&&(k=a.yearshtml,setTimeout(function(){k===a.yearshtml&&a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml),k=a.yearshtml=null},0))},_shouldFocusInput:function(a){return a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&!a.input.is(":focus")},_checkOffset:function(m,q,x){var u=m.dpDiv.outerWidth(),v=m.dpDiv.outerHeight(),k=m.input?m.input.outerWidth():0,w=m.input?m.input.outerHeight():0,t=document.documentElement.clientWidth+(x?0:j(document).scrollLeft()),p=document.documentElement.clientHeight+(x?0:j(document).scrollTop());return q.left-=this._get(m,"isRTL")?u-k:0,q.left-=x&&q.left===m.input.offset().left?j(document).scrollLeft():0,q.top-=x&&q.top===m.input.offset().top+w?j(document).scrollTop():0,q.left-=Math.min(q.left,q.left+u>t&&t>u?Math.abs(q.left+u-t):0),q.top-=Math.min(q.top,q.top+v>p&&p>v?Math.abs(v+w):0),q},_findPos:function(a){for(var k,m=this._getInst(a),l=this._get(m,"isRTL");a&&("hidden"===a.type||1!==a.nodeType||j.expr.filters.hidden(a));){a=a[l?"previousSibling":"nextSibling"]}return k=j(a).offset(),[k.left,k.top]},_hideDatepicker:function(l){var m,r,p,q,k=this._curInst;!k||l&&k!==j.data(l,"datepicker")||this._datepickerShowing&&(m=this._get(k,"showAnim"),r=this._get(k,"duration"),p=function(){j.datepicker._tidyDialog(k)},j.effects&&(j.effects.effect[m]||j.effects[m])?k.dpDiv.hide(m,j.datepicker._get(k,"showOptions"),r,p):k.dpDiv["slideDown"===m?"slideUp":"fadeIn"===m?"fadeOut":"hide"](m?r:null,p),m||p(),this._datepickerShowing=!1,q=this._get(k,"onClose"),q&&q.apply(k.input?k.input[0]:null,[k.input?k.input.val():"",k]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),j.blockUI&&(j.unblockUI(),j("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(j.datepicker._curInst){var k=j(a.target),l=j.datepicker._getInst(k[0]);(k[0].id!==j.datepicker._mainDivId&&0===k.parents("#"+j.datepicker._mainDivId).length&&!k.hasClass(j.datepicker.markerClassName)&&!k.closest("."+j.datepicker._triggerClass).length&&j.datepicker._datepickerShowing&&(!j.datepicker._inDialog||!j.blockUI)||k.hasClass(j.datepicker.markerClassName)&&j.datepicker._curInst!==l)&&j.datepicker._hideDatepicker()}},_adjustDate:function(a,k,p){var l=j(a),m=this._getInst(l[0]);this._isDisabledDatepicker(l[0])||(this._adjustInstDate(m,k+("M"===p?this._get(m,"showCurrentAtPos"):0),p),this._updateDatepicker(m))},_gotoToday:function(a){var k,m=j(a),l=this._getInst(m[0]);this._get(l,"gotoCurrent")&&l.currentDay?(l.selectedDay=l.currentDay,l.drawMonth=l.selectedMonth=l.currentMonth,l.drawYear=l.selectedYear=l.currentYear):(k=new Date,l.selectedDay=k.getDate(),l.drawMonth=l.selectedMonth=k.getMonth(),l.drawYear=l.selectedYear=k.getFullYear()),this._notifyChange(l),this._adjustDate(m)},_selectMonthYear:function(a,k,p){var l=j(a),m=this._getInst(l[0]);m["selected"+("M"===p?"Month":"Year")]=m["draw"+("M"===p?"Month":"Year")]=parseInt(k.options[k.selectedIndex].value,10),this._notifyChange(m),this._adjustDate(l)},_selectDay:function(l,m,r,p){var q,k=j(l);j(p).hasClass(this._unselectableClass)||this._isDisabledDatepicker(k[0])||(q=this._getInst(k[0]),q.selectedDay=q.currentDay=j("a",p).html(),q.selectedMonth=q.currentMonth=m,q.selectedYear=q.currentYear=r,this._selectDate(l,this._formatDate(q,q.currentDay,q.currentMonth,q.currentYear)))},_clearDate:function(a){var k=j(a);this._selectDate(k,"")},_selectDate:function(a,k){var p,l=j(a),m=this._getInst(l[0]);k=null!=k?k:this._formatDate(m),m.input&&m.input.val(k),this._updateAlternate(m),p=this._get(m,"onSelect"),p?p.apply(m.input?m.input[0]:null,[k,m]):m.input&&m.input.trigger("change"),m.inline?this._updateDatepicker(m):(this._hideDatepicker(),this._lastInput=m.input[0],"object"!=typeof m.input[0]&&m.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(a){var k,p,l,m=this._get(a,"altField");m&&(k=this._get(a,"altFormat")||this._get(a,"dateFormat"),p=this._getDate(a),l=this.formatDate(k,p,this._getFormatConfig(a)),j(m).val(l))},noWeekends:function(i){var a=i.getDay();return[a>0&&6>a,""]},iso8601Week:function(l){var a,k=new Date(l.getTime());return k.setDate(k.getDate()+4-(k.getDay()||7)),a=k.getTime(),k.setMonth(0),k.setDate(1),Math.floor(Math.round((a-k)/86400000)/7)+1},parseDate:function(C,G,O){if(null==C||null==G){throw"Invalid arguments"}if(G="object"==typeof G?""+G:G+"",""===G){return null}var K,L,t,N,I=0,F=(O?O.shortYearCutoff:null)||this._defaults.shortYearCutoff,A="string"!=typeof F?F:(new Date).getFullYear()%100+parseInt(F,10),P=(O?O.dayNamesShort:null)||this._defaults.dayNamesShort,B=(O?O.dayNames:null)||this._defaults.dayNames,M=(O?O.monthNamesShort:null)||this._defaults.monthNamesShort,D=(O?O.monthNames:null)||this._defaults.monthNames,E=-1,J=-1,q=-1,Q=-1,z=!1,T=function(e){var a=C.length>K+1&&C.charAt(K+1)===e;return a&&K++,a},R=function(r){var k=T(r),p="@"===r?14:"!"===r?20:"y"===r&&k?4:"o"===r?3:2,l="y"===r?p:1,m=RegExp("^\\d{"+l+","+p+"}"),i=G.substring(I).match(m);if(!i){throw"Missing number at position "+I}return I+=i[0].length,parseInt(i[0],10)},H=function(k,p,l){var m=-1,i=j.map(T(k)?l:p,function(n,a){return[[a,n]]}).sort(function(n,a){return -(n[1].length-a[1].length)});if(j.each(i,function(o,a){var n=a[1];return G.substr(I,n.length).toLowerCase()===n.toLowerCase()?(m=a[0],I+=n.length,!1):void 0}),-1!==m){return m+1}throw"Unknown name at position "+I},S=function(){if(G.charAt(I)!==C.charAt(K)){throw"Unexpected literal at position "+I}I++};for(K=0;C.length>K;K++){if(z){"'"!==C.charAt(K)||T("'")?S():z=!1}else{switch(C.charAt(K)){case"d":q=R("d");break;case"D":H("D",P,B);break;case"o":Q=R("o");break;case"m":J=R("m");break;case"M":J=H("M",M,D);break;case"y":E=R("y");break;case"@":N=new Date(R("@")),E=N.getFullYear(),J=N.getMonth()+1,q=N.getDate();break;case"!":N=new Date((R("!")-this._ticksTo1970)/10000),E=N.getFullYear(),J=N.getMonth()+1,q=N.getDate();break;case"'":T("'")?S():z=!0;break;default:S()}}}if(G.length>I&&(t=G.substr(I),!/^\s+/.test(t))){throw"Extra/unparsed characters found in date: "+t}if(-1===E?E=(new Date).getFullYear():100>E&&(E+=(new Date).getFullYear()-(new Date).getFullYear()%100+(A>=E?0:-100)),Q>-1){for(J=1,q=Q;;){if(L=this._getDaysInMonth(E,J-1),L>=q){break}J++,q-=L}}if(N=this._daylightSavingAdjust(new Date(E,J-1,q)),N.getFullYear()!==E||N.getMonth()+1!==J||N.getDate()!==q){throw"Invalid date"}return N},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:10000000*60*60*24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(C,q,w){if(!q){return""}var B,y=(w?w.dayNamesShort:null)||this._defaults.dayNamesShort,z=(w?w.dayNames:null)||this._defaults.dayNames,k=(w?w.monthNamesShort:null)||this._defaults.monthNamesShort,A=(w?w.monthNames:null)||this._defaults.monthNames,x=function(a){var l=C.length>B+1&&C.charAt(B+1)===a;return l&&B++,l},v=function(o,a,l){var n=""+a;if(x(o)){for(;l>n.length;){n="0"+n}}return n},m=function(o,a,l,n){return x(o)?n[a]:l[a]},D="",p=!1;if(q){for(B=0;C.length>B;B++){if(p){"'"!==C.charAt(B)||x("'")?D+=C.charAt(B):p=!1}else{switch(C.charAt(B)){case"d":D+=v("d",q.getDate(),2);break;case"D":D+=m("D",q.getDay(),y,z);break;case"o":D+=v("o",Math.round((new Date(q.getFullYear(),q.getMonth(),q.getDate()).getTime()-new Date(q.getFullYear(),0,0).getTime())/86400000),3);break;case"m":D+=v("m",q.getMonth()+1,2);break;case"M":D+=m("M",q.getMonth(),k,A);break;case"y":D+=x("y")?q.getFullYear():(10>q.getFullYear()%100?"0":"")+q.getFullYear()%100;break;case"@":D+=q.getTime();break;case"!":D+=10000*q.getTime()+this._ticksTo1970;break;case"'":x("'")?D+="'":p=!0;break;default:D+=C.charAt(B)}}}}return D},_possibleChars:function(o){var a,k="",m=!1,l=function(e){var n=o.length>a+1&&o.charAt(a+1)===e;return n&&a++,n};for(a=0;o.length>a;a++){if(m){"'"!==o.charAt(a)||l("'")?k+=o.charAt(a):m=!1}else{switch(o.charAt(a)){case"d":case"m":case"y":case"@":k+="0123456789";break;case"D":case"M":return null;case"'":l("'")?k+="'":m=!0;break;default:k+=o.charAt(a)}}}return k},_get:function(i,a){return void 0!==i.settings[a]?i.settings[a]:this._defaults[a]},_setDateFromField:function(w,l){if(w.input.val()!==w.lastVal){var m=this._get(w,"dateFormat"),v=w.lastVal=w.input?w.input.val():null,p=this._getDefaultDate(w),q=p,k=this._getFormatConfig(w);try{q=this.parseDate(m,v,k)||p}catch(u){v=l?"":v}w.selectedDay=q.getDate(),w.drawMonth=w.selectedMonth=q.getMonth(),w.drawYear=w.selectedYear=q.getFullYear(),w.currentDay=v?q.getDate():0,w.currentMonth=v?q.getMonth():0,w.currentYear=v?q.getFullYear():0,this._adjustInstDate(w)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(l,m,r){var p=function(i){var a=new Date;return a.setDate(a.getDate()+i),a},q=function(u){try{return j.datepicker.parseDate(j.datepicker._get(l,"dateFormat"),u,j.datepicker._getFormatConfig(l))}catch(z){}for(var w=(u.toLowerCase().match(/^c/)?j.datepicker._getDate(l):null)||new Date,x=w.getFullYear(),e=w.getMonth(),y=w.getDate(),v=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,t=v.exec(u);t;){switch(t[2]||"d"){case"d":case"D":y+=parseInt(t[1],10);break;case"w":case"W":y+=7*parseInt(t[1],10);break;case"m":case"M":e+=parseInt(t[1],10),y=Math.min(y,j.datepicker._getDaysInMonth(x,e));break;case"y":case"Y":x+=parseInt(t[1],10),y=Math.min(y,j.datepicker._getDaysInMonth(x,e))}t=v.exec(u)}return new Date(x,e,y)},k=null==m||""===m?r:"string"==typeof m?q(m):"number"==typeof m?isNaN(m)?r:p(m):new Date(m.getTime());return k=k&&"Invalid Date"==""+k?r:k,k&&(k.setHours(0),k.setMinutes(0),k.setSeconds(0),k.setMilliseconds(0)),this._daylightSavingAdjust(k)},_daylightSavingAdjust:function(a){return a?(a.setHours(a.getHours()>12?a.getHours()+2:0),a):null},_setDate:function(u,l,m){var r=!l,p=u.selectedMonth,q=u.selectedYear,k=this._restrictMinMax(u,this._determineDate(u,l,new Date));u.selectedDay=u.currentDay=k.getDate(),u.drawMonth=u.selectedMonth=u.currentMonth=k.getMonth(),u.drawYear=u.selectedYear=u.currentYear=k.getFullYear(),p===u.selectedMonth&&q===u.selectedYear||m||this._notifyChange(u),this._adjustInstDate(u),u.input&&u.input.val(r?"":this._formatDate(u))},_getDate:function(i){var a=!i.currentYear||i.input&&""===i.input.val()?null:this._daylightSavingAdjust(new Date(i.currentYear,i.currentMonth,i.currentDay));return a},_attachHandlers:function(a){var k=this._get(a,"stepMonths"),l="#"+a.id.replace(/\\\\/g,"\\");a.dpDiv.find("[data-handler]").map(function(){var i={prev:function(){j.datepicker._adjustDate(l,-k,"M")},next:function(){j.datepicker._adjustDate(l,+k,"M")},hide:function(){j.datepicker._hideDatepicker()},today:function(){j.datepicker._gotoToday(l)},selectDay:function(){return j.datepicker._selectDay(l,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return j.datepicker._selectMonthYear(l,this,"M"),!1},selectYear:function(){return j.datepicker._selectMonthYear(l,this,"Y"),!1}};j(this).on(this.getAttribute("data-event"),i[this.getAttribute("data-handler")])})},_generateHTML:function(aP){var ak,at,aN,aD,aF,ac,aL,az,aq,ag,aS,ai,aH,am,ao,aB,ab,aU,ae,a0,aW,ax,aY,ah,aj,aQ,au,aC,aI,aO,aE,ar,ad,a2,aG,al,aX,an,aA,aM=new Date,a1=this._daylightSavingAdjust(new Date(aM.getFullYear(),aM.getMonth(),aM.getDate())),af=this._get(aP,"isRTL"),av=this._get(aP,"showButtonPanel"),aJ=this._get(aP,"hideIfNoPrevNext"),ay=this._get(aP,"navigationAsDateFormat"),aT=this._getNumberOfMonths(aP),aV=this._get(aP,"showCurrentAtPos"),aZ=this._get(aP,"stepMonths"),aa=1!==aT[0]||1!==aT[1],ap=this._daylightSavingAdjust(aP.currentDay?new Date(aP.currentYear,aP.currentMonth,aP.currentDay):new Date(9999,9,9)),aw=this._getMinMaxDate(aP,"min"),aK=this._getMinMaxDate(aP,"max"),a3=aP.drawMonth-aV,aR=aP.drawYear;if(0>a3&&(a3+=12,aR--),aK){for(ak=this._daylightSavingAdjust(new Date(aK.getFullYear(),aK.getMonth()-aT[0]*aT[1]+1,aK.getDate())),ak=aw&&aw>ak?aw:ak;this._daylightSavingAdjust(new Date(aR,a3,1))>ak;){a3--,0>a3&&(a3=11,aR--)}}for(aP.drawMonth=a3,aP.drawYear=aR,at=this._get(aP,"prevText"),at=ay?this.formatDate(at,this._daylightSavingAdjust(new Date(aR,a3-aZ,1)),this._getFormatConfig(aP)):at,aN=this._canAdjustMonth(aP,-1,aR,a3)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+at+"'><span class='ui-icon ui-icon-circle-triangle-"+(af?"e":"w")+"'>"+at+"</span></a>":aJ?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+at+"'><span class='ui-icon ui-icon-circle-triangle-"+(af?"e":"w")+"'>"+at+"</span></a>",aD=this._get(aP,"nextText"),aD=ay?this.formatDate(aD,this._daylightSavingAdjust(new Date(aR,a3+aZ,1)),this._getFormatConfig(aP)):aD,aF=this._canAdjustMonth(aP,1,aR,a3)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+aD+"'><span class='ui-icon ui-icon-circle-triangle-"+(af?"w":"e")+"'>"+aD+"</span></a>":aJ?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+aD+"'><span class='ui-icon ui-icon-circle-triangle-"+(af?"w":"e")+"'>"+aD+"</span></a>",ac=this._get(aP,"currentText"),aL=this._get(aP,"gotoCurrent")&&aP.currentDay?ap:a1,ac=ay?this.formatDate(ac,aL,this._getFormatConfig(aP)):ac,az=aP.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(aP,"closeText")+"</button>",aq=av?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(af?az:"")+(this._isInRange(aP,aL)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+ac+"</button>":"")+(af?"":az)+"</div>":"",ag=parseInt(this._get(aP,"firstDay"),10),ag=isNaN(ag)?0:ag,aS=this._get(aP,"showWeek"),ai=this._get(aP,"dayNames"),aH=this._get(aP,"dayNamesMin"),am=this._get(aP,"monthNames"),ao=this._get(aP,"monthNamesShort"),aB=this._get(aP,"beforeShowDay"),ab=this._get(aP,"showOtherMonths"),aU=this._get(aP,"selectOtherMonths"),ae=this._getDefaultDate(aP),a0="",ax=0;aT[0]>ax;ax++){for(aY="",this.maxRows=4,ah=0;aT[1]>ah;ah++){if(aj=this._daylightSavingAdjust(new Date(aR,a3,aP.selectedDay)),aQ=" ui-corner-all",au="",aa){if(au+="<div class='ui-datepicker-group",aT[1]>1){switch(ah){case 0:au+=" ui-datepicker-group-first",aQ=" ui-corner-"+(af?"right":"left");break;case aT[1]-1:au+=" ui-datepicker-group-last",aQ=" ui-corner-"+(af?"left":"right");break;default:au+=" ui-datepicker-group-middle",aQ=""}}au+="'>"}for(au+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+aQ+"'>"+(/all|left/.test(aQ)&&0===ax?af?aF:aN:"")+(/all|right/.test(aQ)&&0===ax?af?aN:aF:"")+this._generateMonthYearHeader(aP,a3,aR,aw,aK,ax>0||ah>0,am,ao)+"</div><table class='ui-datepicker-calendar'><thead><tr>",aC=aS?"<th class='ui-datepicker-week-col'>"+this._get(aP,"weekHeader")+"</th>":"",aW=0;7>aW;aW++){aI=(aW+ag)%7,aC+="<th scope='col'"+((aW+ag+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+ai[aI]+"'>"+aH[aI]+"</span></th>"}for(au+=aC+"</tr></thead><tbody>",aO=this._getDaysInMonth(aR,a3),aR===aP.selectedYear&&a3===aP.selectedMonth&&(aP.selectedDay=Math.min(aP.selectedDay,aO)),aE=(this._getFirstDayOfMonth(aR,a3)-ag+7)%7,ar=Math.ceil((aE+aO)/7),ad=aa?this.maxRows>ar?this.maxRows:ar:ar,this.maxRows=ad,a2=this._daylightSavingAdjust(new Date(aR,a3,1-aE)),aG=0;ad>aG;aG++){for(au+="<tr>",al=aS?"<td class='ui-datepicker-week-col'>"+this._get(aP,"calculateWeek")(a2)+"</td>":"",aW=0;7>aW;aW++){aX=aB?aB.apply(aP.input?aP.input[0]:null,[a2]):[!0,""],an=a2.getMonth()!==a3,aA=an&&!aU||!aX[0]||aw&&aw>a2||aK&&a2>aK,al+="<td class='"+((aW+ag+6)%7>=5?" ui-datepicker-week-end":"")+(an?" ui-datepicker-other-month":"")+(a2.getTime()===aj.getTime()&&a3===aP.selectedMonth&&aP._keyEvent||ae.getTime()===a2.getTime()&&ae.getTime()===aj.getTime()?" "+this._dayOverClass:"")+(aA?" "+this._unselectableClass+" ui-state-disabled":"")+(an&&!ab?"":" "+aX[1]+(a2.getTime()===ap.getTime()?" "+this._currentClass:"")+(a2.getTime()===a1.getTime()?" ui-datepicker-today":""))+"'"+(an&&!ab||!aX[2]?"":" title='"+aX[2].replace(/'/g,"&#39;")+"'")+(aA?"":" data-handler='selectDay' data-event='click' data-month='"+a2.getMonth()+"' data-year='"+a2.getFullYear()+"'")+">"+(an&&!ab?"&#xa0;":aA?"<span class='ui-state-default'>"+a2.getDate()+"</span>":"<a class='ui-state-default"+(a2.getTime()===a1.getTime()?" ui-state-highlight":"")+(a2.getTime()===ap.getTime()?" ui-state-active":"")+(an?" ui-priority-secondary":"")+"' href='#'>"+a2.getDate()+"</a>")+"</td>",a2.setDate(a2.getDate()+1),a2=this._daylightSavingAdjust(a2)}au+=al+"</tr>"}a3++,a3>11&&(a3=0,aR++),au+="</tbody></table>"+(aa?"</div>"+(aT[0]>0&&ah===aT[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),aY+=au}a0+=aY}return a0+=aq,aP._keyEvent=!1,a0},_generateMonthYearHeader:function(M,A,E,L,H,I,q,K){var F,D,x,N,z,J,B,C,G=this._get(M,"changeMonth"),k=this._get(M,"changeYear"),O=this._get(M,"showMonthAfterYear"),w="<div class='ui-datepicker-title'>",P="";if(I||!G){P+="<span class='ui-datepicker-month'>"+q[A]+"</span>"}else{for(F=L&&L.getFullYear()===E,D=H&&H.getFullYear()===E,P+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",x=0;12>x;x++){(!F||x>=L.getMonth())&&(!D||H.getMonth()>=x)&&(P+="<option value='"+x+"'"+(x===A?" selected='selected'":"")+">"+K[x]+"</option>")}P+="</select>"}if(O||(w+=P+(!I&&G&&k?"":"&#xa0;")),!M.yearshtml){if(M.yearshtml="",I||!k){w+="<span class='ui-datepicker-year'>"+E+"</span>"}else{for(N=this._get(M,"yearRange").split(":"),z=(new Date).getFullYear(),J=function(i){var a=i.match(/c[+\-].*/)?E+parseInt(i.substring(1),10):i.match(/[+\-].*/)?z+parseInt(i,10):parseInt(i,10);return isNaN(a)?z:a},B=J(N[0]),C=Math.max(B,J(N[1]||"")),B=L?Math.max(B,L.getFullYear()):B,C=H?Math.min(C,H.getFullYear()):C,M.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";C>=B;B++){M.yearshtml+="<option value='"+B+"'"+(B===E?" selected='selected'":"")+">"+B+"</option>"}M.yearshtml+="</select>",w+=M.yearshtml,M.yearshtml=null}}return w+=this._get(M,"yearSuffix"),O&&(w+=(!I&&G&&k?"":"&#xa0;")+P),w+="</div>"},_adjustInstDate:function(u,l,m){var r=u.selectedYear+("Y"===m?l:0),p=u.selectedMonth+("M"===m?l:0),q=Math.min(u.selectedDay,this._getDaysInMonth(r,p))+("D"===m?l:0),k=this._restrictMinMax(u,this._daylightSavingAdjust(new Date(r,p,q)));u.selectedDay=k.getDate(),u.drawMonth=u.selectedMonth=k.getMonth(),u.drawYear=u.selectedYear=k.getFullYear(),("M"===m||"Y"===m)&&this._notifyChange(u)},_restrictMinMax:function(o,a){var k=this._getMinMaxDate(o,"min"),m=this._getMinMaxDate(o,"max"),l=k&&k>a?k:a;return m&&l>m?m:l},_notifyChange:function(i){var a=this._get(i,"onChangeMonthYear");a&&a.apply(i.input?i.input[0]:null,[i.selectedYear,i.selectedMonth+1,i])},_getNumberOfMonths:function(i){var a=this._get(i,"numberOfMonths");return null==a?[1,1]:"number"==typeof a?[1,a]:a},_getMinMaxDate:function(i,a){return this._determineDate(i,this._get(i,a+"Date"),null)},_getDaysInMonth:function(i,a){return 32-this._daylightSavingAdjust(new Date(i,a,32)).getDate()},_getFirstDayOfMonth:function(i,a){return new Date(i,a,1).getDay()},_canAdjustMonth:function(q,a,k,p){var l=this._getNumberOfMonths(q),m=this._daylightSavingAdjust(new Date(k,p+(0>a?a:l[0]*l[1]),1));return 0>a&&m.setDate(this._getDaysInMonth(m.getFullYear(),m.getMonth())),this._isInRange(q,m)},_isInRange:function(y,m){var p,x,u=this._getMinMaxDate(y,"min"),v=this._getMinMaxDate(y,"max"),k=null,w=null,q=this._get(y,"yearRange");return q&&(p=q.split(":"),x=(new Date).getFullYear(),k=parseInt(p[0],10),w=parseInt(p[1],10),p[0].match(/[+\-].*/)&&(k+=x),p[1].match(/[+\-].*/)&&(w+=x)),(!u||m.getTime()>=u.getTime())&&(!v||m.getTime()<=v.getTime())&&(!k||m.getFullYear()>=k)&&(!w||w>=m.getFullYear())},_getFormatConfig:function(i){var a=this._get(i,"shortYearCutoff");return a="string"!=typeof a?a:(new Date).getFullYear()%100+parseInt(a,10),{shortYearCutoff:a,dayNamesShort:this._get(i,"dayNamesShort"),dayNames:this._get(i,"dayNames"),monthNamesShort:this._get(i,"monthNamesShort"),monthNames:this._get(i,"monthNames")}},_formatDate:function(o,a,k,m){a||(o.currentDay=o.selectedDay,o.currentMonth=o.selectedMonth,o.currentYear=o.selectedYear);var l=a?"object"==typeof a?a:this._daylightSavingAdjust(new Date(m,k,a)):this._daylightSavingAdjust(new Date(o.currentYear,o.currentMonth,o.currentDay));return this.formatDate(this._get(o,"dateFormat"),l,this._getFormatConfig(o))}}),j.fn.datepicker=function(a){if(!this.length){return this}j.datepicker.initialized||(j(document).on("mousedown",j.datepicker._checkExternalClick),j.datepicker.initialized=!0),0===j("#"+j.datepicker._mainDivId).length&&j("body").append(j.datepicker.dpDiv);var k=Array.prototype.slice.call(arguments,1);return"string"!=typeof a||"isDisabled"!==a&&"getDate"!==a&&"widget"!==a?"option"===a&&2===arguments.length&&"string"==typeof arguments[1]?j.datepicker["_"+a+"Datepicker"].apply(j.datepicker,[this[0]].concat(k)):this.each(function(){"string"==typeof a?j.datepicker["_"+a+"Datepicker"].apply(j.datepicker,[this].concat(k)):j.datepicker._attachDatepicker(this,a)}):j.datepicker["_"+a+"Datepicker"].apply(j.datepicker,[this[0]].concat(k))},j.datepicker=new d,j.datepicker.initialized=!1,j.datepicker.uuid=(new Date).getTime(),j.datepicker.version="1.12.1",j.datepicker});var ABV=ABV||{};ABV.PxVideoPlayer=function InitPxVideo(t){function b(){var I=navigator.appVersion,G=navigator.userAgent,i=navigator.appName,j=""+parseFloat(navigator.appVersion),F=parseInt(navigator.appVersion,10),H,J,E;if((navigator.appVersion.indexOf("Windows NT")!==-1)&&(navigator.appVersion.indexOf("rv:11")!==-1)){i="IE";j="11"}else{if(navigator.appVersion.indexOf("Windows NT 10")!==-1){i="IE";j="12"}else{if((J=G.indexOf("MSIE"))!==-1){i="IE";j=G.substring(J+5)}else{if((J=G.indexOf("Chrome"))!==-1){i="Chrome";j=G.substring(J+7)}else{if((J=G.indexOf("Safari"))!==-1){i="Safari";j=G.substring(J+7);if((J=G.indexOf("Version"))!==-1){j=G.substring(J+8)}}else{if((J=G.indexOf("Firefox"))!==-1){i="Firefox";j=G.substring(J+8)}else{if((H=G.lastIndexOf(" ")+1)<(J=G.lastIndexOf("/"))){i=G.substring(H,J);j=G.substring(J+1);if(i.toLowerCase()===i.toUpperCase()){i=navigator.appName}}}}}}}}if((E=j.indexOf(";"))!==-1){j=j.substring(0,E)}if((E=j.indexOf(" "))!==-1){j=j.substring(0,E)}F=parseInt(""+j,10);if(isNaN(F)){j=""+parseFloat(navigator.appVersion);F=parseInt(navigator.appVersion,10)}return[i,F]}function g(i,j){for(var E in j){if(j.hasOwnProperty(E)){i[E]=j[E]}}return i}function e(i,E){E=E||{bubbles:false,cancelable:false,detail:undefined};var j=document.createEvent("CustomEvent");j.initCustomEvent(i,E.bubbles,E.cancelable,E.detail);return j}if(typeof window.CustomEvent!=="function"){e.prototype=window.Event.prototype;window.CustomEvent=e}var s={};var l={PLAY:"Play",PAUSE:"Pause",TOGGLE_FULL_SCREEN:"Toggle full screen",MUTE:"Mute",RESTART:"Restart",CAPTIONS:"Closed captions",REWIND:"Rewind",FORWARD:"Forward"};var k={VIDEO_LOADED:new e("onPxVideoLoaded",{detail:s}),VIDEO_PLAY:new e("onPxVideoPlay",{detail:s}),VIDEO_PAUSE:new e("onPxVideoPause",{detail:s}),VIDEO_END:new e("onPxVideoEnd",{detail:s}),VIDEO_ENTER_FULLSCREEN:new e("onPxVideoEnterFullscreen",{detail:s}),VIDEO_EXIT_FULLSCREEN:new e("onPxVideoExitFullscreen",{detail:s})};var t=g({captionsOnDefault:false,debug:false,seekInterval:10,videoId:""},t);s.videoId=t.videoId;s.arBrowserInfo=b();s.browserName=s.arBrowserInfo[0];s.browserMajorVersion=s.arBrowserInfo[1];s.debug=t.debug;s.isCaptionDefault=t.captionsOnDefault;s.seekInterval=t.seekInterval;if(s.browserName==="IE"&&(s.browserMajorVersion===8||s.browserMajorVersion===9)){return false}s.isSmartphoneOrTablet=/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent);if(s.isSmartphoneOrTablet){return false}if(t.debug){console.log(s);console.log(s.browserName+" "+s.browserMajorVersion)}s.container=document.getElementById(t.videoId);s.posterPlayContainer=s.container.getElementsByClassName("px-poster-play-container")[0];s.movie=s.container.getElementsByTagName("video")[0];s.controls=s.container.getElementsByClassName("px-video-controls")[0];s.movie.removeAttribute("controls");if(t.debug){console.log("Inserting custom video controls")}s.randomNum=Math.floor(Math.random()*(10000));s.posterPlayContainer.innerHTML='<button type="button" class="px-poster-play"><svg version="1.1" id="icon-poster-play'+s.randomNum+'" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%" height="100%" viewBox="0 0 22.9 23.6" enable-background="new 0 0 22.9 23.6" xml:space="preserve" focusable="false"><path class="controls-play" d="M19.6,10.9c1,0.6,1,1.5,0,2L5.8,21c-1,0.6-1.7,0.1-1.7-1V3.9c0-1.1,0.8-1.5,1.7-1L19.6,10.9z"/></svg><span class="h-sr-only">'+l.PLAY+"</span></button>";s.posterPlayContainer.className="px-poster-play-container";s.posterPlayContainer.removeAttribute("aria-hidden");s.controls.innerHTML='<div class="px-video-controls-top"><div class="px-video-controls-left"><button type="button" class="px-video-rewind"><svg version="1.1" id="icon-video-rewind'+s.randomNum+'" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="22.9px" height="23.6px" viewBox="0 0 22.9 23.6" enable-background="new 0 0 22.9 23.6" xml:space="preserve" focusable="false"><path class="controls-reverse" d="M18.3,7l-5.6,3.3V7.5c0-0.5-0.4-0.8-0.9-0.5L3.4,12c-0.5,0.3-0.5,0.7,0,1l8.5,4.9c0.5,0.3,0.9,0.1,0.9-0.5v-2.8l5.6,3.3c0.5,0.3,0.9,0.1,0.9-0.5V7.5C19.2,7,18.8,6.8,18.3,7z"/></svg><span class="h-sr-only">rewind <span class="px-seconds">10</span> seconds</span></button><button type="button" class="px-video-play"><svg version="1.1" id="icon-video-play'+s.randomNum+'" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="22.9px" height="23.6px" viewBox="0 0 22.9 23.6" enable-background="new 0 0 22.9 23.6" xml:space="preserve" focusable="false"><path class="controls-play" d="M19.6,10.9c1,0.6,1,1.5,0,2L5.8,21c-1,0.6-1.7,0.1-1.7-1V3.9c0-1.1,0.8-1.5,1.7-1L19.6,10.9z"/></svg><span class="h-sr-only">'+l.PLAY+'</span></button><button type="button" class="px-video-pause hide"><svg version="1.1" id="icon-video-pause'+s.randomNum+'" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="22.9px" height="23.6px" viewBox="0 0 22.9 23.6" enable-background="new 0 0 22.9 23.6" xml:space="preserve" focusable="false"><g><g><g><path class="controls-pause" d="M10.2,18.2c0,0.5-0.4,1-1,1h-3c-0.5,0-1-0.5-1-1V5.4c0-0.5,0.5-1,1-1h3c0.6,0,1,0.5,1,1V18.2z"/></g><g><path class="controls-pause" d="M18.5,18.2c0,0.5-0.4,1-1,1h-3c-0.6,0-1-0.5-1-1V5.4c0-0.5,0.4-1,1-1h3c0.6,0,1,0.5,1,1V18.2z"/></g></g></g></svg><span class="h-sr-only">'+l.PAUSE+'</span></button><button type="button" class="px-video-forward"><svg version="1.1" id="icon-video-forward'+s.randomNum+'" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="22.9px" height="23.6px" viewBox="0 0 22.9 23.6" enable-background="new 0 0 22.9 23.6" xml:space="preserve" focusable="false"><path class="controls-forward" d="M4.1,7.5v9.9c0,0.6,0.4,0.8,0.9,0.5l5.6-3.3v2.8c0,0.6,0.4,0.8,0.9,0.5L20,13c0.5-0.3,0.5-0.7,0-1l-8.4-5c-0.5-0.3-0.9,0-0.9,0.5v2.8L5.1,7C4.6,6.8,4.2,7,4.1,7.5z"/></svg><span class="h-sr-only">forward <span class="px-seconds">10</span> seconds</span></button><div class="px-video-volume-btn-container"><input class="px-video-mute h-sr-only" id="btnMute'+s.randomNum+'" type="checkbox" /><label id="labelMute'+s.randomNum+'" for="btnMute'+s.randomNum+'" title="'+l.MUTE+'"><div class="px-video-volume-mute hide"><svg class="controls-volume" version="1.1" id="icon-controls-volume-mute'+s.randomNum+'" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="25px" height="23.6px" viewBox="0 0 25 23.6" enable-background="new 0 0 25 23.6" xml:space="preserve" focusable="false"><g><polygon points="23.7,9.9 21.8,8.1 19.4,10.4 17,8.1 15.1,9.9 17.5,12.3 15.1,14.7 17,16.6 19.4,14.2 21.8,16.6 23.7,14.7 21.3,12.3 	"/><path d="M11.7,5.2L6.5,9H3.2c-0.8,0-1.5,0.7-1.5,1.5v3.2c0,0.8,0.7,1.5,1.5,1.5h2.9l5.6,4.2c0.7,0.5,1.3,0.3,1.3-0.6V5.9C13,5,12.4,4.7,11.7,5.2z"/></g></svg><span class="h-sr-only">'+l.MUTE+'</span></div><div class="px-video-volume-nonMute show"><svg class="controls-volume" version="1.1" id="icon-controls-volume-nonmute'+s.randomNum+'" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="24.1px" height="23.6px" viewBox="0 0 24.1 23.6" enable-background="new 0 0 24.1 23.6" xml:space="preserve" focusable="false"><g><g><path d="M16.3,11.9c0,0.6-0.3,1-0.7,1.3l1.2,1.1c0.7-0.6,1.2-1.5,1.2-2.5s-0.5-1.9-1.2-2.5l-1.2,1.1C16,10.8,16.3,11.3,16.3,11.9z"/></g><g><path d="M11.7,5.2L6.5,9H3.2c-0.8,0-1.5,0.7-1.5,1.5v3.2c0,0.8,0.7,1.5,1.5,1.5h2.9l5.6,4.2c0.7,0.5,1.3,0.3,1.3-0.6V5.9C13,5,12.4,4.7,11.7,5.2z"/></g></g><g><g><path d="M20.9,11.8c0,1.9-0.8,3.5-2.1,4.7l1.2,1.1c1.6-1.5,2.5-3.5,2.5-5.8c0-2.3-1-4.4-2.5-5.8l-1.2,1.1 C20.1,8.3,20.9,10,20.9,11.8z"/></g></g></svg><span class="h-sr-only">'+l.MUTE+'</span></div></label></div><div class="px-video-volume-container show"><label for="volume'+s.randomNum+'" class="h-sr-only">Volume:</label><input id="volume'+s.randomNum+'" class="px-video-volume" type="range" min="0" max="10" value="5" /></div><div class="px-video-time"><span class="h-sr-only">time</span> <span class="px-video-duration">00:00</span><span class="px-video-totalTime">&#8725; 00:00</span></div></div><div class="px-video-controls-right"><div class="px-video-captions-btn-container"><input class="px-video-btnCaptions h-sr-only" id="btnCaptions'+s.randomNum+'" type="checkbox" /><label for="btnCaptions'+s.randomNum+'"><div class="px-video-captions-button"><svg version="1.1" id="icon-video-captions'+s.randomNum+'" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="28.1px" height="23.6px" viewBox="0 0 28.1 23.6" enable-background="new 0 0 28.1 23.6" xml:space="preserve" focusable="false"><path class="controls-captions" d="M26.9,20.2c0,0.6-0.5,1.1-1.1,1.1H2.4c-0.6,0-1.1-0.5-1.1-1.1v-17c0-0.6,0.5-1.1,1.1-1.1h23.4c0.6,0,1.1,0.5,1.1,1.1V20.2z"/><g><path class="controls-captions-text" fill="#FFFFFF" d="M12.9,10.7h-1.1c-0.2-0.8-0.7-1.3-1.6-1.3c-1.3,0-2,0.9-2,2.5c0,1.4,0.7,2.3,1.9,2.3c1,0,1.6-0.6,1.8-1.6H13c-0.2,1.6-1.2,2.5-2.8,2.5c-1.9,0-3-1.3-3-3.3c0-2.1,1.1-3.4,3-3.4C11.7,8.5,12.8,9.3,12.9,10.7z"/><path class="controls-captions-text" fill="#FFFFFF" d="M21,10.7h-1c-0.2-0.8-0.7-1.3-1.6-1.3c-1.3,0-2,0.9-2,2.5c0,1.4,0.7,2.3,1.9,2.3c1,0,1.6-0.6,1.8-1.6h1.1c-0.2,1.6-1.2,2.5-2.8,2.5c-1.9,0-3-1.3-3-3.3c0-2.1,1.1-3.4,3-3.4C19.8,8.5,20.9,9.3,21,10.7z"/></g></svg><span class="h-sr-only">'+l.CAPTIONS+'</span></div></label></div><div class="px-video-fullscreen-btn-container"><input class="px-video-btnFullScreen h-sr-only" id="btnFullscreen'+s.randomNum+'" type="checkbox" /><label for="btnFullscreen'+s.randomNum+'"><div class="px-video-init-fullscreen"><svg class="controls-fullscreen" version="1.1" id="icon-video-init-fullscreen'+s.randomNum+'" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"width="22.9px" height="23.6px" viewBox="0 0 22.9 23.6" enable-background="new 0 0 22.9 23.6" xml:space="preserve" focusable="false"><g><path d="M8.2,13.4c-0.1-0.1-0.2-0.1-0.4-0.1c-0.1,0-0.3,0.1-0.4,0.1l-3.1,3.1l-1.7-1.7c-0.1-0.1-0.4-0.2-0.5-0.1C2,14.8,1.9,15,1.9,15.2v5.7c0,0.3,0.2,0.5,0.5,0.5h5.7c0.2,0,0.4-0.1,0.5-0.3c0.1-0.2,0-0.4-0.1-0.5l-1.7-1.7l3.1-3.1c0.1-0.1,0.1-0.2,0.1-0.4c0-0.1-0.1-0.3-0.1-0.4L8.2,13.4z"/><path d="M20.5,2.3h-5.7c-0.2,0-0.4,0.1-0.5,0.3c-0.1,0.2,0,0.4,0.1,0.5l1.7,1.7l-3.1,3.1c-0.2,0.2-0.2,0.5,0,0.7l1.6,1.6c0.1,0.1,0.2,0.1,0.4,0.1s0.3-0.1,0.4-0.1l3.1-3.1l1.7,1.7c0.1,0.1,0.4,0.2,0.5,0.1C20.9,8.8,21,8.6,21,8.4V2.8C21,2.5,20.8,2.3,20.5,2.3z"/><path d="M2.2,8.9c0.2,0.1,0.4,0,0.5-0.1l1.7-1.7l3.1,3.1c0.1,0.1,0.2,0.1,0.4,0.1c0.1,0,0.3-0.1,0.4-0.1l1.6-1.6c0.2-0.2,0.2-0.5,0-0.7L6.7,4.8l1.7-1.7C8.6,3,8.6,2.7,8.5,2.6C8.4,2.4,8.3,2.3,8.1,2.3H2.4c-0.3,0-0.5,0.2-0.5,0.5v5.7C1.9,8.6,2,8.8,2.2,8.9z"/><path d="M20.7,14.7c-0.2-0.1-0.4,0-0.5,0.1l-1.7,1.7l-3.1-3.1c-0.2-0.2-0.5-0.2-0.7,0L13.1,15c-0.2,0.2-0.2,0.5,0,0.7l3.1,3.1l-1.7,1.7c-0.1,0.1-0.2,0.4-0.1,0.5s0.3,0.3,0.5,0.3h5.7c0.3,0,0.5-0.2,0.5-0.5v-5.7C21,15,20.9,14.8,20.7,14.7z"/></g></svg><span class="h-sr-only">'+l.TOGGLE_FULL_SCREEN+'</span></div><div class="px-video-exit-fullscreen hide"><svg class="controls-fullscreen" version="1.1" id="icon-video-exit-fullscreen'+s.randomNum+'" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"y="0px" width="22.9px" height="23.6px" viewBox="0 0 22.9 23.6" enable-background="new 0 0 22.9 23.6" xml:space="preserve" focusable="false"><g><path d="M9.4,3.7C9.2,3.6,9,3.7,8.8,3.8L7.3,5.3L4.4,2.4c-0.2-0.2-0.5-0.2-0.7,0L2,4C1.9,4.2,1.9,4.5,2,4.7L5,7.6L3.5,9.2C3.3,9.3,3.3,9.5,3.3,9.7C3.4,9.9,3.6,10,3.8,10h5.4c0.3,0,0.5-0.2,0.5-0.5V4.2C9.7,4,9.6,3.8,9.4,3.7z"/><path d="M13.7,10h5.4c0.2,0,0.4-0.1,0.5-0.3c0.1-0.2,0-0.4-0.1-0.5l-1.5-1.5l2.9-2.9C21,4.5,21,4.2,20.9,4l-1.6-1.6c-0.1-0.1-0.2-0.1-0.4-0.1c-0.1,0-0.3,0.1-0.4,0.1l-2.9,2.9l-1.5-1.5c-0.1-0.1-0.4-0.2-0.5-0.1c-0.2,0.1-0.3,0.3-0.3,0.5v5.4C13.2,9.8,13.4,10,13.7,10z"/><path d="M9.2,13.6H3.8c-0.2,0-0.4,0.1-0.5,0.3c-0.1,0.2,0,0.4,0.1,0.5L5,16L2,18.9c-0.2,0.2-0.2,0.5,0,0.7l1.6,1.6c0.1,0.1,0.2,0.1,0.4,0.1s0.3,0,0.4-0.1l2.9-2.9l1.5,1.5C9,19.9,9.2,20,9.4,19.9c0.2-0.1,0.3-0.3,0.3-0.5v-5.4C9.7,13.8,9.5,13.6,9.2,13.6z"/><path d="M17.9,16l1.5-1.5c0.1-0.1,0.2-0.4,0.1-0.5c-0.1-0.2-0.3-0.3-0.5-0.3h-5.4c-0.3,0-0.5,0.2-0.5,0.5v5.4c0,0.2,0.1,0.4,0.3,0.5c0.2,0.1,0.4,0,0.5-0.1l1.5-1.5l2.9,2.9c0.1,0.1,0.2,0.1,0.4,0.1s0.3,0,0.4-0.1l1.6-1.6c0.2-0.2,0.2-0.5,0-0.7L17.9,16z"/></g></svg><span class="h-sr-only">'+l.TOGGLE_FULL_SCREEN+'</span></div></label></div></div></div><div class="px-video-controls-full"><progress class="px-video-progress" max="100" value="0"><span>0</span>% played</progress></div>';s.btnPosterPlay=s.container.getElementsByClassName("px-poster-play")[0];s.btnPlay=s.container.getElementsByClassName("px-video-play")[0];s.btnPause=s.container.getElementsByClassName("px-video-pause")[0];s.btnRewind=s.container.getElementsByClassName("px-video-rewind")[0];s.btnForward=s.container.getElementsByClassName("px-video-forward")[0];s.btnVolume=s.container.getElementsByClassName("px-video-volume")[0];s.btnMute=s.container.getElementsByClassName("px-video-mute")[0];s.iconVolume=s.container.getElementsByClassName("px-video-volume-nonMute")[0];s.progressBar=s.container.getElementsByClassName("px-video-progress")[0];s.progressBarSpan=s.progressBar.getElementsByTagName("span")[0];s.captionsContainer=s.container.getElementsByClassName("px-video-captions")[0];s.captionsBtn=s.container.getElementsByClassName("px-video-btnCaptions")[0];s.captionsBtnContainer=s.container.getElementsByClassName("px-video-captions-btn-container")[0];s.duration=s.container.getElementsByClassName("px-video-duration")[0];s.totalTime=s.container.getElementsByClassName("px-video-totalTime")[0];s.txtSeconds=s.container.getElementsByClassName("px-seconds");s.fullScreenBtnContainer=s.container.getElementsByClassName("px-video-fullscreen-btn-container")[0];s.fullScreenBtn=s.container.getElementsByClassName("px-video-btnFullScreen")[0];s.initFullScreen=s.container.getElementsByClassName("px-video-init-fullscreen")[0];s.exitFullScreen=s.container.getElementsByClassName("px-video-exit-fullscreen")[0];s.volumeContainer=s.container.getElementsByClassName("px-video-volume-container")[0];s.volumeMute=s.container.getElementsByClassName("px-video-volume-mute")[0];s.volumeNonMute=s.container.getElementsByClassName("px-video-volume-nonMute")[0];s.txtSeconds[0].innerHTML=s.seekInterval;s.txtSeconds[1].innerHTML=s.seekInterval;s.isTextTracks=false;if(s.movie.textTracks){s.isTextTracks=true}function u(){document.dispatchEvent(k.VIDEO_PLAY);s.movie.play();s.btnPosterPlay.className="px-poster-play hide";s.posterPlayContainer.setAttribute("aria-hidden","true");s.btnPlay.className="px-video-play hide";s.btnPause.className="px-video-pause";s.btnPause.focus()}s.btnPosterPlay.addEventListener("click",function(i){i.preventDefault();u()},false);s.btnPlay.addEventListener("click",function(i){i.preventDefault();u()},false);s.btnPause.addEventListener("click",function(i){i.preventDefault();document.dispatchEvent(k.VIDEO_PAUSE);s.movie.pause();s.btnPlay.className="px-video-play";s.btnPause.className="px-video-pause hide";s.btnPlay.focus()},false);s.btnRewind.addEventListener("click",function(i){i.preventDefault();var j=s.movie.currentTime-s.seekInterval;if(j<0){s.movie.currentTime=0}else{s.movie.currentTime=j}if(!s.isTextTracks){a(s)}},false);s.btnForward.addEventListener("click",function(i){i.preventDefault();var j=s.movie.currentTime+s.seekInterval;if(j>s.movie.duration){s.movie.currentTime=s.movie.duration}else{s.movie.currentTime=j}if(!s.isTextTracks){a(s)}},false);s.btnVolume.addEventListener("change",function(){s.movie.volume=parseFloat(this.value/10);if(this.value>=4&&this.value<=7){s.iconVolume.innerHTML='<svg class="controls-volume" version="1.1" id="icon-volume-medium'+s.randomNum+'" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="24.1px" height="23.6px" viewBox="0 0 24.1 23.6" enable-background="new 0 0 24.1 23.6" xml:space="preserve" focusable="false"><g><g><path d="M16.3,11.9c0,0.6-0.3,1-0.7,1.3l1.2,1.1c0.7-0.6,1.2-1.5,1.2-2.5s-0.5-1.9-1.2-2.5l-1.2,1.1C16,10.8,16.3,11.3,16.3,11.9z"/></g><g><path d="M11.7,5.2L6.5,9H3.2c-0.8,0-1.5,0.7-1.5,1.5v3.2c0,0.8,0.7,1.5,1.5,1.5h2.9l5.6,4.2c0.7,0.5,1.3,0.3,1.3-0.6V5.9C13,5,12.4,4.7,11.7,5.2z"/></g></g><g><g><path d="M20.9,11.8c0,1.9-0.8,3.5-2.1,4.7l1.2,1.1c1.6-1.5,2.5-3.5,2.5-5.8c0-2.3-1-4.4-2.5-5.8l-1.2,1.1 C20.1,8.3,20.9,10,20.9,11.8z"/></g></g></svg><span class="h-sr-only">'+l.MUTE+"</span>"}else{if(this.value>=8&&this.value<=10){s.iconVolume.innerHTML='<svg class="controls-volume" version="1.1" id="icon-volume-high'+s.randomNum+'" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="29.1px" height="23.6px" viewBox="0 0 29.1 23.6" enable-background="new 0 0 29.1 23.6" xml:space="preserve" focusable="false"><g><g><path d="M16.3,11.9c0,0.6-0.3,1-0.7,1.3l1.2,1.1c0.7-0.6,1.2-1.5,1.2-2.5s-0.5-1.9-1.2-2.5l-1.2,1.1C16,10.8,16.3,11.3,16.3,11.9z"/></g><g><path d="M11.7,5.2L6.5,9H3.2c-0.8,0-1.5,0.7-1.5,1.5v3.2c0,0.8,0.7,1.5,1.5,1.5h2.9l5.6,4.2c0.7,0.5,1.3,0.3,1.3-0.6V5.9C13,5,12.4,4.7,11.7,5.2z"/></g></g><g><g><path d="M20.9,11.8c0,1.9-0.8,3.5-2.1,4.7l1.2,1.1c1.6-1.5,2.5-3.5,2.5-5.8S21.5,7.4,20,6l-1.2,1.1C20.1,8.3,20.9,10,20.9,11.8z"/></g></g><g><g><path d="M25.9,11.8c0,3.2-1.3,6-3.4,8.1l1.2,1.1c2.4-2.3,3.9-5.6,3.9-9.2c0-3.6-1.5-6.9-3.9-9.2l-1.2,1.1C24.6,5.8,25.9,8.6,25.9,11.8z"/></g></g></svg><span class="h-sr-only">'+l.MUTE+"</span>"}else{if(this.value>=1&&this.value<=3){s.iconVolume.innerHTML='<svg class="controls-volume" version="1.1" id="icon-volume-low'+s.randomNum+'" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="19.4px" height="23.6px" viewBox="0 0 19.4 23.6" enable-background="new 0 0 19.4 23.6" xml:space="preserve" focusable="false"><g><g><path d="M16.3,11.9c0,0.6-0.3,1-0.7,1.3l1.2,1.1c0.7-0.6,1.2-1.5,1.2-2.5c0-1-0.5-1.9-1.2-2.5l-1.2,1.1C16,10.8,16.3,11.3,16.3,11.9z"/></g><g><path d="M11.7,5.2L6.5,9H3.2c-0.8,0-1.5,0.7-1.5,1.5v3.2c0,0.8,0.7,1.5,1.5,1.5h2.9l5.6,4.2c0.7,0.5,1.3,0.3,1.3-0.6V5.9C13,5,12.4,4.7,11.7,5.2z"/></g></g></svg><span class="h-sr-only">'+l.MUTE+"</span>"}else{s.iconVolume.innerHTML='<svg class="controls-volume" version="1.1" id="icon-volume-zero'+s.randomNum+'" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="19.4px" height="23.6px" viewBox="0 0 19.4 23.6" enable-background="new 0 0 19.4 23.6" xml:space="preserve" focusable="false"><g><g><path d="M11.7,5.2L6.5,9H3.2c-0.8,0-1.5,0.7-1.5,1.5v3.2c0,0.8,0.7,1.5,1.5,1.5h2.9l5.6,4.2c0.7,0.5,1.3,0.3,1.3-0.6V5.9C13,5,12.4,4.7,11.7,5.2z"/></g></g></svg><span class="h-sr-only">'+l.MUTE+"</span>"}}}},false);function x(){if(s.movie.muted===true){s.movie.muted=false;s.btnMute.checked=false;s.volumeContainer.className="px-video-volume-container show";s.volumeMute.className="px-video-volume-mute hide";s.volumeNonMute.className="px-video-volume-nonMute show"}else{s.movie.muted=true;s.btnMute.checked=true;s.volumeContainer.className="px-video-volume-container hide";s.volumeMute.className="px-video-volume-mute show";s.volumeNonMute.className="px-video-volume-nonMute hide"}}s.btnMute.addEventListener("click",function(){x()},false);s.btnMute.onkeyup=function(i){if(i.keyCode===13){i.preventDefault();x()}};s.movie.addEventListener("timeupdate",function(){s.secs=parseInt(s.movie.currentTime%60);s.mins=parseInt((s.movie.currentTime/60)%60);s.secs=("0"+s.secs).slice(-2);s.mins=("0"+s.mins).slice(-2);s.duration.innerHTML=s.mins+":"+s.secs},false);s.movie.addEventListener("timeupdate",function(){s.percent=Math.round((100/s.movie.duration)*s.movie.currentTime);if(s.percent>0){s.progressBar.value=s.percent;s.progressBarSpan.innerHTML=s.percent}},false);s.progressBar.addEventListener("click",function(i){s.pos=(i.pageX-this.getBoundingClientRect().left)/this.offsetWidth;s.movie.currentTime=s.pos*s.movie.duration;if(!s.isTextTracks){a(s)}});var r=window.setInterval(function(){if(s.movie.readyState===4){s.totalSecs=parseInt(s.movie.duration%60);s.totalMins=parseInt((s.movie.duration/60)%60);s.totalSecs=("0"+s.totalSecs).slice(-2);s.totalMins=("0"+s.totalMins).slice(-2);s.totalTime.innerHTML="&nbsp;&#8725;&nbsp;"+s.totalMins+":"+s.totalSecs;clearInterval(r);document.dispatchEvent(k.VIDEO_LOADED)}},250);function q(i){if(!i.fullscreenElement&&!i.mozFullScreenElement&&!i.webkitFullscreenElement&&!i.msFullscreenElement){var j=i.requestFullscreen||i.msRequestFullscreen||i.mozRequestFullScreen||i.webkitRequestFullscreen;document.dispatchEvent(k.VIDEO_ENTER_FULLSCREEN);j.call(i)}}function h(){if(document.fullscreen||document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement){s.fullScreenBtn.checked=true;s.container.className="px-video-container is-fullscreen";s.initFullScreen.className="px-video-init-fullscreen hide";s.exitFullScreen.className="px-video-exit-fullscreen show"}else{s.fullScreenBtn.checked=false;s.container.className="px-video-container";s.initFullScreen.className="px-video-init-fullscreen show";s.exitFullScreen.className="px-video-exit-fullscreen hide"}}function f(){var i=document.exitFullscreen||document.msExitFullscreen||document.mozCancelFullScreen||document.webkitExitFullscreen;document.dispatchEvent(k.VIDEO_EXIT_FULLSCREEN);i.call(document)}if(s.browserName==="IE"&&s.browserMajorVersion===10){s.fullScreenBtnContainer.className="px-video-fullscreen-btn-container hide"}else{s.fullScreenBtn.addEventListener("click",function(){if(this.checked){q(s.container)}else{f()}},false);s.fullScreenBtn.onkeyup=function(i){if(i.keyCode===13){i.preventDefault();if(this.checked){this.checked=false;f()}else{this.checked=true;q(s.container)}}}}document.addEventListener("fullscreenchange",function(){h()},false);document.addEventListener("mozfullscreenchange",function(){h()},false);document.addEventListener("webkitfullscreenchange",function(){h()},false);document.addEventListener("MSFullscreenChange",function(){h()},false);var c="",p,d=s.movie.childNodes;for(var n=0;n<d.length;n++){if(d[n].nodeName.toLowerCase()==="track"){p=d[n].getAttribute("kind");if(p==="captions"){c=d[n].getAttribute("src")}}}s.captionExists=true;if(c===""){s.captionExists=false;if(t.debug){console.log("No caption track found.")}}else{if(t.debug){console.log("Caption track found; URI: "+c)}}function B(i){var j=[];j=i.split(" --> ");return C(j[0])}function A(i){var j=[];j=i.split(" --> ");return C(j[1])}function C(j){if(j===null||j===undefined){return 0}else{var E=[],F=[],i;E=j.split(",");F=E[0].split(":");if(F.length===2){F.unshift("00")}else{if(F.length===1){F.unshift("00","00")}}i=Math.floor(F[0]*60*60)+Math.floor(F[1]*60)+Math.floor(F[2]);return i}}function a(i){if(i.captions.length){i.subcount=0;while(A(i.captions[i.subcount][0])<i.movie.currentTime.toFixed(1)){i.subcount++;if(i.subcount>i.captions.length-1){i.subcount=i.captions.length-1;break}}}}function v(i){if(i.isCaptionDefault){i.captionsContainer.className="px-video-captions show";i.captionsBtnContainer.classList.add("active");i.captionsBtn.checked=true}}function w(){s.captionsContainer.className="px-video-captions show";s.captionsBtnContainer.classList.add("active")}function m(){s.captionsContainer.className="px-video-captions hide";s.captionsBtnContainer.classList.remove("active")}s.captionsBtn.addEventListener("click",function(){if(this.checked){w()}else{m()}},false);s.captionsBtn.onkeyup=function(i){if(i.keyCode===13){i.preventDefault();if(this.checked){this.checked=false;m()}else{this.checked=true;w()}}};if(!s.captionExists){s.captionsContainer.className="px-video-captions hide"}else{if((s.browserName==="IE"&&s.browserMajorVersion<11)||(s.browserName==="Firefox"&&s.browserMajorVersion<31)||(s.browserName==="Chrome"&&s.browserMajorVersion<18)||(s.browserName==="Safari")){if(t.debug){console.log("Detected browser unable to play HTML5 captions; using custom captions")}s.isTextTracks=false;var y={};var z=s.movie.textTracks;for(var o=0;o<z.length;o++){y=s.movie.textTracks[o];y.mode="hidden"}if(s.browserName==="Safari"){console.log("Safari detected; removing track from DOM");var z=s.movie.getElementsByTagName("track");s.movie.removeChild(z[0])}}if(s.isTextTracks){if(t.debug){console.log("textTracks supported")}v(s);var y={};var z=s.movie.textTracks;for(var o=0;o<z.length;o++){y=s.movie.textTracks[o];y.mode="hidden";if(y.kind==="captions"){y.addEventListener("cuechange",function(){if(this.activeCues[0]){if(this.activeCues[0].hasOwnProperty("text")||this.activeCues[0].text!==""){s.captionsContainer.innerHTML=this.activeCues[0].text}}},false)}}}else{if(t.debug){console.log("textTracks not supported so rendering captions 'manually'")}v(s);s.currentCaption="";s.subcount=0;s.captions=[];s.movie.addEventListener("timeupdate",function(){if(s.captions.length){if(s.movie.currentTime.toFixed(1)>B(s.captions[s.subcount][0])&&s.movie.currentTime.toFixed(1)<A(s.captions[s.subcount][0])){s.currentCaption=s.captions[s.subcount][1]}if(s.movie.currentTime.toFixed(1)>A(s.captions[s.subcount][0])&&s.subcount<(s.captions.length-1)){s.subcount++}s.captionsContainer.innerHTML=s.currentCaption}},false);if(c!==""){var D;if(window.XMLHttpRequest){D=new XMLHttpRequest()}else{if(window.ActiveXObject){D=new ActiveXObject("Microsoft.XMLHTTP")}}D.onreadystatechange=function(){if(D.readyState===4){if(D.status===200){if(t.debug){console.log("xhr = 200")}s.captions=[];var E=[],j,F=D.responseText;F=F.replace(/\r\n/g,"\n");E=F.split("\n\n");for(var i=0;i<E.length;i++){j=E[i];s.captions[i]=[];s.captions[i]=j.split("\n")}s.captions.shift();if(t.debug){console.log("Successfully loaded the caption file via ajax.")}}else{if(t.debug){console.log("There was a problem loading the caption file via ajax.")}}}};D.open("get",c,true);D.send()}}}s.movie.addEventListener("ended",function(){document.dispatchEvent(k.VIDEO_END);s.captionsContainer.innerHTML="";s.movie.load();s.btnPosterPlay.className="px-poster-play";s.posterPlayContainer.removeAttribute("aria-hidden");s.btnPlay.className="px-video-play";s.btnPause.className="px-video-pause hide"})};var ABV=ABV||{};ABV.Utils={getAjaxContent:function(c,a,b){return $.ajax({type:"GET",url:c,dataType:a||"json",crossDomain:b||false,})},resizeEndEvent:function(){var a=false;$(window).on("resize",function(b){clearTimeout(a);a=setTimeout(function(){$.event.trigger("resizeEnd")},500)})},scrollEndEvent:function(){var a=false;$(window).on("scroll",function(b){clearTimeout(a);a=setTimeout(function(){$.event.trigger("scrollEnd")},200)})},scrollToElement:function(a,d,b){var a=a,c=d?d:60,e=b?b:false;if(a){$("html,body").animate({scrollTop:a.offset().top-c},500,function(){if(e){a.attr("tabindex",-1).focus()}})}},jumpLink:function(a,c){var a=a,b=c?c:60;if(a){var d=function(g){g.preventDefault();var e=$(g.currentTarget),f=$(e.attr("href"));ABV.Utils.scrollToElement(f,b)};a.on("click",d)}}};ABV.Utils.Loader=function(a,b){this.elTarget=a;this.options=$.extend({overlay:'<div class="loader-overlay"></div>',spinner:'<div class="loader-spinner"></div>'},b||{});this.elOverlay=$(this.options.overlay);this.elSpinner=$(this.options.spinner)};ABV.Utils.Loader.prototype={addLoader:function(){var a=this;this.elTarget.append(this.elOverlay,this.elSpinner)},removeLoader:function(){this.elOverlay.remove();this.elSpinner.remove()}};var ABV=ABV||{};var dataLayer=dataLayer||[];ABV.Analytics={init:function(){this.state={numLoadMoreClicks:0};this.constant={noTitle:"no title available",noImage:"no image available",noNetwork:"no network available",noAction:"no action available"};this._addEventListeners()},onVideoEvent:function(a,b){dataLayer.push({event:a,videoTitle:b})},onLoadMoreButton:function(a){this.state.numLoadMoreClicks++;dataLayer.push({event:"showMore",showMoreCount:this.state.numLoadMoreClicks})},onCarouselArrows:function(a){var b;if(a==="next"){b="right"}else{b="left"}dataLayer.push({event:"carouselClick",carouselItem:b})},onReportBuilderDownload:function(a){dataLayer.push({event:"pdfDownload",pdfTitle:a})},onTabSwitcher:function(a){var b=a;if(!b){b=this.constant.noTitle}dataLayer.push({event:"carouselClick",carouselItem:b})},onAccordion:function(a){var b=a;if(!b){b=this.constant.noTitle}dataLayer.push({event:"accordionClick",accordionItem:b})},setEnlighten:function(){var a={};var b;a.convertString=function(g,c,d){var f=new RegExp(c,"g");var e=g.replace(f,d);return e};a.pathStr=window.location.pathname;a.pathArray=a.pathStr.split("/");a.pathName="a bullseye view";a.i=0;a.pathLength=a.pathArray.length;if(a.pathStr.length>1){for(a.i=0;a.i<a.pathLength;a.i++){b=a.pathArray[a.i];if(isNaN(b)){a.pathName+=": ";if(b==="article"){a.pathName+="news and features"}else{a.pathName+=a.pathArray[a.i]}}}}else{a.pathName+=": home"}if(window.Bootstrapper){window.Bootstrapper._trackAnalytics("pageView",{dynamicDataLayer:{analytics:{guest:{},appState:{pageName:a.pathName,pageTemplateType:"a bullseye view"},experience:{channel:"a bullseye view"}}}})}},onGalleryWallModal:function(a){dataLayer.push({event:"galleryImageClick",galleryItem:a})},_backToTop:function(a){var b=a.currentTarget;var c=$("h1").text();if(!c){c=this.constant.noTitle}dataLayer.push({event:"backToTopClick",pageItem:c})},_goToQuestion:function(a){var b=a.currentTarget;var c=$("h1").text();if(!c){c=this.constant.noTitle}dataLayer.push({event:"anchorLinkClick",category:"faqQuestion",title:c});console.log(dataLayer)},_addEventListeners:function(){$("[data-tracking~=faq-question]").on("click",$.proxy(this._goToQuestion,this));$("[data-tracking~=faq-backtop]").on("click",$.proxy(this._backToTop,this));$('.gtm-job-search input[type="submit"]').on("click",$.proxy(this._onJobSearchForm,this));$(".gtm-sponsorship-form").on("click",$.proxy(this._onSponsorshipForm,this));$("#category-filter a").on("click",$.proxy(this._onCategoryFilter,this));$("body").on("click",'[class*="gtm-social-"]',$.proxy(this._onSocialActions,this));$("#main-content > form").on("click","> .hero a, > .primary a, > .secondary a, > .tertiary a",$.proxy(this._onRegion,this));$(".header-quick-reads a").on("click",$.proxy(this._onRegion,this))},_onBackToTop:function(a){},_onJobSearchForm:function(b){var a=$(b.currentTarget),c=a.parents(".gtm-job-search").find('input[type="search"]').val();if(!c){c="no search term entered"}dataLayer.push({event:"jobsearch-submit",jobSearchTerm:c})},_onSponsorshipForm:function(a){dataLayer.push({event:"sponsorship-submit"})},_onCategoryFilter:function(a){var b=$(a.currentTarget).text();if(!b){b=this.constant.noTitle}dataLayer.push({event:"carouselClick",carouselItem:b})},_onTabSwitcher:function(a){var b=$(a.currentTarget).text();if(!b){b=this.constant.noTitle}dataLayer.push({event:"carouselClick",carouselItem:b})},_onRegion:function(b){var a=$(b.currentTarget),c=window.location.href;if(a.parents(".hero").length){region="Hero"}else{if(a.parents(".primary").length){region="Primary"}else{if(a.parents(".secondary").length){region="Secondary"}else{if(a.parents(".tertiary").length){region="Tertiary"}else{if(a.parents(".header-quick-reads").length){region="header promo boxes"}else{region="no region available"}}}}}dataLayer.push({event:"regionClick",region:region,breakpoint:ABV.Constants.breakpoint,elementHref:c})},_onSocialActions:function(b){var a=$(b.currentTarget),e=a.parents(".gtm-parent").find(".gtm-title").text(),d,c;if(!e){e=this.constant.noTitle}if(a.hasClass("gtm-social-facebook-comment")){d="Facebook";c="comment"}else{if(a.hasClass("gtm-social-facebook-share")){d="Facebook";c="share"}else{if(a.hasClass("gtm-social-twitter-reply")){d="Twitter";c="reply"}else{if(a.hasClass("gtm-social-twitter-tweet")){d="Twitter";c="tweet"}else{if(a.hasClass("gtm-social-twitter-retweet")){d="Twitter";c="retweet"}else{if(a.hasClass("gtm-social-twitter-favorite")){d="Twitter";c="favorite"}else{if(a.hasClass("gtm-social-instagram-like")){d="Instagram";c="like"}else{if(a.hasClass("gtm-social-pinterest-pin")){d="Pinterest";c="pin"}else{if(a.hasClass("gtm-social-linkedin-share")){d="LinkedIn";c="share"}else{d=this.constant.noNetwork;c=this.constant.noAction}}}}}}}}}dataLayer.push({event:"socialInt",socialNetwork:d,socialAction:c,socialTarget:e})}};var ABV=ABV||{};ABV.PinElement=function(a,b){this.options=$.extend({selectorImgContainer:".hero",classPin:"pin-title",pinTopPos:50,animDistance:-50,animSpeed:0.5,animEase:"Expo.easeInOut"},b||{});this.constant={triggerPos:0,topPos:0};this.ui={window:$(window),body:$("body"),pinElement:a,imgContainer:null};this.init()};ABV.PinElement.prototype={init:function(){var a=this;this.ui.imgContainer=$(this.options.selectorImgContainer);if(this.ui.pinElement.length){if(this.ui.imgContainer.length){this.ui.imgContainer.imagesLoaded(function(){a._addEventListeners();a._getPinTrigger()})}else{this._addEventListeners();this._getPinTrigger()}}},_getPinTrigger:function(){this.constant.topPos=this.ui.pinElement.offset().top;this.constant.triggerPos=this.constant.topPos-this.options.pinTopPos;this._pinElement()},_pinElement:function(){var a=this.ui.window.scrollTop();if(a>=this.constant.triggerPos&&ABV.Constants.breakpoint==="desktop"){if(!this.ui.body.hasClass(this.options.classPin)){this.ui.body.addClass(this.options.classPin);this._animatePin()}}else{this.ui.body.removeClass(this.options.classPin);this.ui.pinElement.removeAttr("style")}},_animatePin:function(){TweenMax.fromTo(this.ui.pinElement,this.options.animSpeed,{top:this.options.animDistance},{top:this.options.pinTopPos,position:"fixed"})},_addEventListeners:function(){this.ui.window.on("scrollEnd",$.proxy(this._pinElement,this));this.ui.body.on("breakpoint",$.proxy(this._getPinTrigger,this))}};var ABV=ABV||{};ABV.Carousel=function(a,c,b){this.options=$.extend({numVisiblePanels:1,numVisiblePanelsTablet:1,numVisiblePanelsMobile:1,wrapperClass:"carousel-wrapper",strPanel:"> li",showSocialButtons:false,isSlider:true,isInfinite:false,strTitleSelector:null,strButtonElement:"button",strDisabledClass:"disabled",strActiveClass:"active",startIndex:0,maxWidth:"100%",maxHeight:null,maxHeightMobile:null,cycleSpeed:5000,transitionSpeed:0.5,transitionEase:"Sine.easeInOut",autoCycle:false,autoCycleStartText:"start auto cycle",autoCycleStopText:"stop auto cycle",showPagination:true,maxPagination:20,showArrows:true,showNext:false,showNextText:"Next: ",showItemCount:false,numItemCountSeparator:" of ",onPanelLoad:null,onPaginationClick:null,onInitialize:null,htmlTemplateSelector:null,htmlTargetSelector:null},c||{});this.constant={numTotalPanels:null,numPanelGroups:null,isPanelGroups:false,numPanelWidth:null,arrFocusables:["a","button","input","select","textarea","area","iframe","[tabindex]"]};this.state={overMaxPagination:false,numVisiblePanels:this.options.numVisiblePanels,cycling:false,animating:false,curIndex:this.options.startIndex,maxHeight:this.options.maxHeight,isOnInit:true};this.ui={body:$("body"),wrapper:null,carousel:a,panels:null,currentPanels:null,targetPanels:null,controlsWrapper:null,paginationWrapper:null,paginationMaxLabel:null,arrowsWrapper:null,arrowBack:null,arrowNext:null,countWrapper:null,showNextWrapper:null,cycleButton:null};this.ui.panels=this.ui.carousel.find(this.options.strPanel);this.namespace=null;this.data=b;this.progressInterval=null;this._initialize()};ABV.Carousel.prototype={_initialize:function(){var a=this;this.namespace=Date.now();this.ui.carousel.wrap($('<div class="'+this.options.wrapperClass+'" />'));this.ui.wrapper=this.ui.carousel.parent();this.constant.numTotalPanels=this.ui.panels.length;if(this.options.autoCycle&&this.constant.numPanelGroups>1){this.state.cycling=true}this._setVisiblePanels()},_onBreakpoint:function(){this._unBindEvents();this._setVisiblePanels()},_setCurPanels:function(a){var c=a;if(this.constant.isPanelGroups){c*=this.state.numVisiblePanels;this.ui.currentPanels=[];for(var b=0,d=this.state.numVisiblePanels-1;b<=d;b++){if($(this.ui.panels).eq(b+c).length){this.ui.currentPanels.push($(this.ui.panels).eq(b+c))}}}else{this.ui.currentPanels=$(this.ui.panels).eq(c)}},_setTargetPanels:function(a){var c=a;if(this.constant.isPanelGroups){c*=this.state.numVisiblePanels;this.ui.targetPanels=[];for(var b=0,d=this.state.numVisiblePanels-1;b<=d;b++){if($(this.ui.panels).eq(b+c).length){this.ui.targetPanels.push($(this.ui.panels).eq(b+c))}}}else{this.ui.targetPanels=$(this.ui.panels).eq(c)}},_setVisiblePanels:function(){if(ABV.Constants.breakpoint==="desktop"){this.state.numVisiblePanels=this.options.numVisiblePanels;this.state.maxHeight=this.options.maxHeight}if(ABV.Constants.breakpoint==="tablet"){this.state.numVisiblePanels=this.options.numVisiblePanelsTablet;this.state.maxHeight=this.options.maxHeight}if(ABV.Constants.breakpoint==="mobile"){this.state.numVisiblePanels=this.options.numVisiblePanelsMobile;this.state.maxHeight=this.options.maxHeightMobile}if(this.state.numVisiblePanels>1){this.constant.isPanelGroups=true}this.constant.numPanelGroups=Math.ceil(this.constant.numTotalPanels/this.state.numVisiblePanels);this._setHeight()},_setHeight:function(){var f=this,b=0,c;this.ui.wrapper.removeAttr("style");this.ui.carousel.removeAttr("style");this.ui.panels.removeAttr("style");$.each(this.ui.panels,function(){$(this).children().removeAttr("style")});if(this.state.maxHeight===null){var a=this.ui.panels.eq(this.options.startIndex);c=imagesLoaded(a,function(){var g=a.outerHeight(true);this._applyStyles(g)}.bind(this))}else{if(this.state.maxHeight==="landscape"||this.state.maxHeight==="tallest"||this.state.maxHeight==="shortest"){var e=true,d=false;if(this.state.maxHeight==="landscape"){d=true}if(this.state.maxHeight==="shortest"){e=false;b=99999}c=imagesLoaded(this.ui.panels,function(){var g=[],i=[];$.each(this.ui.panels,function(){var k=$(this).outerHeight(true),l=$(this).outerWidth(true);if(d){if(l>k){g.push(k)}else{i.push(k)}}else{if(e){if(k>b){b=k}}else{if(k<b){b=k}}}});if(d){var h=Math.max.apply(Math,g),j=Math.max.apply(Math,i);if(h>0){b=h}else{b=j}}this._applyStyles(b)}.bind(this))}else{if(typeof this.state.maxHeight==="string"){b=this.state.maxHeight;this._applyStyles(b)}else{b=this.ui.wrapper.outerWidth()*this.state.maxHeight;this._applyStyles(b)}}}},_applyStyles:function(d){var c=d,f="hidden",e,i,k,a,h,b,g,j={overflow:f,position:"relative",width:this.options.maxWidth};this.ui.wrapper.css(j);k=Math.floor(this.ui.wrapper.outerWidth(true));this.ui.wrapper.css("width",k);if(this.options.isSlider){a=k*this.constant.numPanelGroups;e="";i="relative"}else{a=k;e=0;i="absolute"}h=k/this.state.numVisiblePanels;b={overflow:f,position:"relative",width:a,height:c};g={"float":"left",opacity:e,position:i,width:h};this.ui.carousel.css(b);this.ui.panels.css(g);if(typeof this.options.onInitialize==="function"){this.options.onInitialize(this)}this._applyStylesComplete()},_applyStylesComplete:function(){var a=this;if(this.state.isOnInit){this._setCurPanels(this.options.startIndex);if(typeof this.options.onPanelLoad==="function"){this.options.onPanelLoad(this)}this._buildUI();this._setPanel(this.options.startIndex,null,false);if(this.options.autoCycle&&this.constant.numPanelGroups>1){setTimeout(function(){if(a.state.cycling){a._cycleStart()}},this.options.cycleSpeed)}if(this.options.showSocialButtons){if(window.addthis){setTimeout(function(){addthis.toolbox("."+a.options.wrapperClass)},500)}}}else{this._buildUI();this._setPanel(this.options.startIndex,null,false)}this.state.isOnInit=false},_buildUI:function(){var c,b,a;if(this.ui.controlsWrapper){this.ui.controlsWrapper.empty()}else{this.ui.controlsWrapper=$('<div class="panel-controls"></div>')}if(this.ui.cycleButton){this.ui.cycleButton.remove()}if(this.options.autoCycle){if(this.state.cycling){b=this.options.autoCycleStopText}else{b=this.options.autoCycleStartText}this.ui.cycleButton=$("<"+this.options.strButtonElement+' class="nav-cycle" />').text(b);this.ui.wrapper.prepend(this.ui.cycleButton)}if(this.constant.numPanelGroups>1){if(this.options.showArrows){this._addArrows()}if(this.options.showPagination){this._addPagination()}}if(this.options.showNext){this.ui.showNextWrapper=$('<p class="panel-next"></p>');a=this.ui.currentPanels[this.ui.currentPanels.length-1].get(0)!==this.ui.panels.last().get(0)?this.ui.panels.eq(this.ui.currentPanels[0].index()+1):this.ui.panels.eq(0);c=this.options.showNextText+a.find(this.options.strTitleSelector).text();this.ui.showNextWrapper.text(c);this.ui.controlsWrapper.append(this.ui.showNextWrapper)}if(this.options.showItemCount){this.ui.countWrapper=$('<p class="panel-count"></p>');this.ui.countWrapper.text((this.ui.currentPanels[0].index()+1)+this.options.numItemCountSeparator+this.constant.numTotalPanels);this.ui.controlsWrapper.append(this.ui.countWrapper)}this.ui.wrapper.append(this.ui.controlsWrapper);this._bindEvents()},_updateUI:function(a){var e=a,f=this.constant.numTotalPanels-(this.ui.wrapper.width()/this.ui.panels.outerWidth()),c,d,b,g,h;if(this.constant.numPanelGroups>1){if(this.options.showPagination){if(this.state.overMaxPagination){this.ui.paginationMaxLabel.text(a+1)}else{d=this.ui.paginationWrapper.children("li");b=d.eq(a);d.removeClass(this.options.strActiveClass);b.addClass(this.options.strActiveClass);d.children(this.options.strButtonElement).find("span").remove();b.children(this.options.strButtonElement).append($("<span />").text(", currently active"))}}if(this.options.showArrows&&!this.options.isInfinite){this.ui.arrowsWrapper.find("span").remove();this.ui.arrowsWrapper.find("li").removeClass(this.options.strDisabledClass);if(e===0){this.ui.arrowsWrapper.find(".btn-back").addClass(this.options.strDisabledClass).find(this.options.strButtonElement).append($("<span />").text(", currently disabled"))}else{if(e===this.constant.numPanelGroups-1||e===f){this.ui.arrowsWrapper.find(".btn-next").addClass(this.options.strDisabledClass).find(this.options.strButtonElement).append($("<span />").text(", currently disabled"))}}}}if(this.options.showItemCount){this.ui.countWrapper.text((e+1)+this.options.numItemCountSeparator+(this.constant.numTotalPanels))}if(this.options.showNext){c=this.ui.currentPanels.get(0)!==this.ui.panels.last().get(0)?this.ui.panels.eq(e+1):this.ui.panels.eq(0);h=this.options.showNextText+c.find(this.options.strTitleSelector).text();this.ui.showNextWrapper.text(h)}},_addArrows:function(){var c=this.options.strButtonElement,a,b;this.ui.arrowsWrapper=$('<ul class="nav-panels-arrows" />');a=$('<li class="btn-back" title="Previous Panel"><'+c+">Previous Panel</"+c+"></li>");b=$('<li class="btn-next" title="Next Panel"><'+c+">Next Panel</"+c+"></li>");this.ui.arrowsWrapper.append(b,a);this.ui.controlsWrapper.append(this.ui.arrowsWrapper);if(!this.options.isInfinite){if(this.options.startIndex===0){this.ui.arrowsWrapper.find(".btn-back").addClass(this.options.strDisabledClass).find(c).append($("<span />").text(", currently disabled"))}else{if(this.options.startIndex===this.constant.numPanelGroups-1){this.ui.arrowsWrapper.find(".btn-next").addClass(this.options.strDisabledClass).find(c).append($("<span />").text(", currently disabled"))}}}this.ui.arrowBack=this.ui.arrowsWrapper.find(".btn-back");this.ui.arrowNext=this.ui.arrowsWrapper.find(".btn-next")},_addPagination:function(){var d=this.options.strButtonElement,e,c,a,b;this.ui.paginationWrapper=$('<ul class="nav-panels-pagination" />');if(this.constant.numPanelGroups>this.options.maxPagination){this.state.overMaxPagination=true;a=$("<li><span>"+(this.options.startIndex+1)+"</span>"+this.options.numItemCountSeparator+this.constant.numPanelGroups+"</li>");this.ui.paginationWrapper.append(a);this.ui.paginationMaxLabel=this.ui.paginationWrapper.find("span")}else{for(b=0;b<this.constant.numPanelGroups;b+=1){e=this.options.strTitleSelector?this.ui.panels.eq(b).find(this.options.strTitleSelector).text()+", ":"";e+="Panel "+(b+1)+this.options.numItemCountSeparator+this.constant.numPanelGroups;a=$("<li><"+d+">"+e+"</"+d+"></li>");if(b===this.options.startIndex){a.addClass(this.options.strActiveClass);a.children(d).append($("<span />").text(", currently active"))}this.ui.paginationWrapper.append(a)}}this.ui.controlsWrapper.append(this.ui.paginationWrapper)},_bindEvents:function(){var c=this,b=this.ui.paginationWrapper?this.ui.paginationWrapper.children("li"):null,a=this.ui.arrowsWrapper?this.ui.arrowsWrapper.children("li"):null;if(this.options.autoCycle){this.ui.wrapper.find(".nav-cycle").on("click",this._onCycle.bind(this))}if(b){b.on("click",this._onPagination.bind(this))}if(a){a.on("click",this._onArrows.bind(this));a.on("mouseover",this._onArrowsOver.bind(this));a.on("mouseout",this._onArrowsOut.bind(this))}this.ui.panels.on("focus","*",this._onPanelItemFocus.bind(this));this.ui.panels.on("hover",this.constant.arrFocusables.join(","),this._onPanelItemFocus.bind(this));this.ui.body.on("breakpoint."+this.namespace,$.proxy(this._onBreakpoint,this));if(ABV.Constants.isTouchDevice){this.ui.carousel.children().swipe({swipeLeft:function(f,d,e,g){if(!c.state.animating){c._onArrows(null,c.ui.arrowNext)}},swipeRight:function(f,d,e,g){if(!c.state.animating){c._onArrows(null,c.ui.arrowBack)}},click:function(d,e){$(e).click()},fingers:$.fn.swipe.fingers.ALL,excludedElements:"a"})}},_unBindEvents:function(){var c=this,b=this.ui.paginationWrapper?this.ui.paginationWrapper.children("li"):null,a=this.ui.arrowsWrapper?this.ui.arrowsWrapper.children("li"):null;if(this.options.autoCycle){this.ui.wrapper.find(".nav-cycle").off()}if(b){b.off()}if(a){a.off()}this.ui.panels.off();this.ui.body.off("."+this.namespace)},_onCycle:function(a){a.preventDefault();if(this.state.cycling){this._cycleStop()}else{this._cycleStart()}},_onPagination:function(a){a.preventDefault();var b=$(a.currentTarget);if(!this.state.animating&&!b.hasClass(this.options.strActiveClass)){this._setPanel(b.index(),null);if(typeof this.options.onPaginationClick==="function"){this.options.onPaginationClick(this)}this._cycleStop()}},_onArrows:function(a,b){var d;if(a){a.preventDefault();d=$(a.currentTarget)}else{d=b}var e=d.find(".tip"),c,f;if(!this.state.animating&&!d.hasClass(this.options.strDisabledClass)){f=this.state.curIndex;c=d.hasClass("btn-back")?"back":"next";ABV.Analytics.onCarouselArrows(c);if(c==="back"){if(f>0){f-=1}else{if(this.options.isInfinite){f=this.constant.numPanelGroups-1}}}else{if(c==="next"){if(f<this.constant.numPanelGroups-1){f+=1}else{if(this.options.isInfinite){f=0}}}}if(this.constant.numPanelGroups>f){if(e.length){e.remove()}this._setPanel(f,c);if(typeof this.options.onPaginationClick==="function"){this.options.onPaginationClick(this)}this._cycleStop()}}},_onArrowsOver:function(a){var c=$(a.currentTarget),b,d;if(!this.state.animating&&!c.hasClass(this.options.strActiveClass)&&this.options.strTitleSelector){d=this.ui.currentPanels.prevAll("li").length;b=c.hasClass("btn-back")?"back":"next";if(b==="back"&&d>0){d=d-1}else{if(b==="next"&&d<this.ui.panels.length-1){d=d+1}}this._addTip(c,b,this.ui.panels.eq(d).find(this.options.strTitleSelector).text())}},_onArrowsOut:function(a){var b=$(a.currentTarget);this._removeTip(b)},_onPanelItemFocus:function(a){this._cycleStop()},_autoCycle:function(){var b=this;(function a(){var d=b.state.curIndex,c=null;if(d<b.constant.numPanelGroups-1){d+=1}else{d=0;c="next"}b._setPanel(d,c,false);b.progressInterval=setTimeout(a,b.options.cycleSpeed);b.state.cycling=true})()},_cycleStart:function(){if(this.ui.cycleButton){this.ui.cycleButton.text(this.options.autoCycleStopText)}this._autoCycle()},_cycleStop:function(){var a=this;if(this.ui.cycleButton){this.ui.cycleButton.text(this.options.autoCycleStartText)}clearTimeout(a.progressInterval);this.state.cycling=false},_addTip:function(a,c,b){var g=c==="back"?"Previous:":"Next:",d=$("<h6 />").text(g),e=$('<div class="tip" />').text(b),f=this.options.strButtonElement?this.options.strButtonElement:"button";e.prepend(d);a.find(f).append(e);e.css("top",-1*e.outerHeight());e.fadeIn()},_removeTip:function(a){var b=a.find(".tip");b.remove()},_slideToPanel:function(b,c,d){var h=this,e=b,f=0;$.each(this.ui.panels,function(){$(this).removeAttr("tabIndex").attr("aria-hidden","true").removeClass(h.options.strActiveClass).children().show()});if(this.state.maxHeight===null){this.ui.carousel.css("height","auto");var a=this.ui.targetPanels;var g=imagesLoaded(a,function(){$.each(a,function(){var i=$(this).outerHeight(true);if(i>f){f=i}});h.ui.carousel.css("height",f)})}TweenMax.to(this.ui.carousel,this.options.transitionSpeed,{left:(100*(c*-1))+"%",ease:this.options.transitionEase,onComplete:function(){$.each(h.ui.panels,function(){$(this).children().hide()});$.each(h.ui.targetPanels,function(){$(this).attr("tabIndex","-1").attr("aria-hidden","false").addClass(h.options.strActiveClass).children().show()});h._onAnimationComplete(c,d)}})},_fadeToPanel:function(a,b,c){var d=this;$.each(this.ui.panels,function(){$(this).removeAttr("tabIndex").removeClass(d.options.strActiveClass).show()});TweenMax.to(this.ui.panels,this.options.transitionSpeed,{opacity:0,position:"absolute",ease:this.options.transitionEase});TweenMax.to(this.ui.targetPanels,this.options.transitionSpeed,{opacity:1,position:"relative",ease:this.options.transitionEase,onComplete:function(){$.each(d.ui.panels,function(){$(this).hide()});$.each(d.ui.targetPanels,function(){$(this).attr("tabIndex","-1").addClass(d.options.strActiveClass).show()});d._onAnimationComplete(b,c)}})},_onAnimationComplete:function(a,b){var c=this;c._setCurPanels(a);c.state.curIndex=a;if(b){c._setActiveFocus();c._setActiveFocusable()}if(typeof c.options.onPanelLoad==="function"){c.options.onPanelLoad(c)}c.state.animating=false;c._setArrowsPosition()},_setArrowsPosition:function(){if(this.ui.arrowsWrapper){var b=parseInt(this.ui.carousel[0].style.height),c=b/2,a=this.ui.arrowNext.outerHeight(true)||this.ui.arrowBack.outerHeight(true);c-=a/2;this.ui.arrowsWrapper.css("top",c)}},_setPanel:function(b,a,c){var f=this,e=this.ui.currentPanels,d=typeof c==="boolean"?c:true;this._setTargetPanels(b);if(!this.state.animating){this.state.animating=true;if(this.options.isSlider){this._slideToPanel(this.ui.targetPanels,b,d)}else{this._fadeToPanel(this.ui.targetPanels,b,d)}this._updateUI(b)}},_setActiveFocus:function(){var a=this;$(this.ui.currentPanels[0]).focus()},_setActiveFocusable:function(){var b,a;for(a=0;a<this.constant.arrFocusables.length;a+=1){b=this.constant.arrFocusables[a];this.ui.panels.find(b).attr("tabindex",-1);$.each(this.ui.currentPanels,function(){$(this).find(b).attr("tabindex",0)})}},_checkAnimating:function(){return this.state.animating},kill:function(){this._unBindEvents()}};var ABV=ABV||{};ABV.Accordion=function(a,b){this.options=$.extend({selectorItems:"> li",selectorTrigger:".accordion-trigger",selectorContent:".accordion-content",selectorSidebar:".accordion-secondary",selectorLabel:".offscreen",classClosed:"closed",classHideSidebar:"hide-sidebar",labelOpen:": expand panel",labelClose:": minimize panel",detectSidebar:false,multipleOpen:false,scrollToTrigger:false,animSpeed:400,animEase:"swing",},b||{});this.ui={htmlBody:$("html,body"),container:a,trigger:a.find(this.options.selectorTrigger),items:a.find(this.options.selectorItems)};this.state={isAnimating:false};this._initialize()};ABV.Accordion.prototype={_initialize:function(){if(this.options.detectSidebar){this._detectSidebarContent()}this._closeAll();this._addEventListeners()},_detectSidebarContent:function(){var a=this;this.ui.items.each(function(){var c=$(this),b=c.find(a.options.selectorSidebar).children();if(!b.length){c.addClass(a.options.classHideSidebar)}})},_toggle:function(c){var b=c.parent(),d=c.text(),a=b.find(this.options.selectorContent);if(!this.state.isAnimating){this.state.isAnimating=true;ABV.Analytics.onAccordion(d);if(!b.hasClass(this.options.classClosed)){this._slideClose(b)}else{if(this.options.multipleOpen){if(b.hasClass(this.options.classClosed)){this._slideOpen(b)}else{this._slideClose(b)}}else{this._closeAll();if(b.hasClass(this.options.classClosed)){this._slideOpen(b)}else{this._slideClose(b)}}}}},_closeAll:function(){var a=this;this.ui.items.each(function(){var b=$(this);a._slideClose(b)})},_slideClose:function(a){var b=this;a.addClass(this.options.classClosed).find(this.options.selectorContent).slideUp(this.options.animSpeed,this.options.animEase,function(){b._slideCallback(a)})},_slideOpen:function(a){var b=this;a.removeClass(this.options.classClosed).find(this.options.selectorContent).slideDown(this.options.animSpeed,this.options.animEase,function(){b._slideCallback(a)})},_slideCallback:function(a){this.state.isAnimating=false;this._toggleLabel(a);if(this.options.scrollToTrigger){this._scrollToTrigger(a)}},_toggleLabel:function(a){var b=a.find(this.options.selectorTrigger).find(this.options.selectorLabel);if(a.hasClass(this.options.classClosed)){b.text(this.options.labelOpen)}else{b.text(this.options.labelClose)}},_scrollToTrigger:function(a){var b=a.offset().top;this.ui.htmlBody.animate({scrollTop:b},this.options.animSpeed,this.options.animEase)},_addEventListeners:function(){var a=this;this.ui.container.on("click",this.options.selectorTrigger,function(b){b.preventDefault();a._toggle($(this))})}};var ABV=ABV||{};ABV.TabSwitcher=function(a,b){this.options=$.extend({classNav:"tab-nav",classPrev:"tab-prev",classNext:"tab-next",classContent:"tab-content",classActive:"active",selectorItem:".tab-content-item",deepLink:true,deepLinkOffset:110,setActiveItemOnInit:true,animSpeed:0.5,animEase:"Expo.easeInOut",onStartCallback:null,onCompleteCallback:null},b||{});this.ui={window:$(window),tabSwitcher:a,nav:null,prev:null,next:null,content:null},this.instance={numNav:0,numContent:0,allContentItems:[],maxIndex:null},this.state={hash:window.location.hash,index:0,prevIndex:null,isAnimating:false,allowScroll:false},this._initialize()};ABV.TabSwitcher.prototype={_initialize:function(){this.ui.nav=this.ui.tabSwitcher.find("."+this.options.classNav);this.ui.prev=this.ui.tabSwitcher.find("."+this.options.classPrev);this.ui.next=this.ui.tabSwitcher.find("."+this.options.classNext);this.ui.content=this.ui.tabSwitcher.find("."+this.options.classContent);this.instance.numNav=this.ui.nav.length;this.instance.numContent=this.ui.content.length;for(var a=0;a<this.instance.numContent;a++){this.instance.maxIndex=this.ui.content.eq(a).find(this.options.selectorItem).length-1;this.instance.allContentItems.push(this.ui.content.eq(a).find(this.options.selectorItem))}this._addEventListeners();if(this.options.setActiveItemOnInit){if(this.state.hash&&this.options.deepLink){this.setActiveHash(this.state.hash)}else{this.setActiveItem(this.state.index)}}},setActiveHash:function(b){var a=$(b).index();window.location.hash=b;this.state.allowScroll=true;this.setActiveItem(a)},setActiveItem:function(a){if(!this.state.isAnimating){this._setItem(a)}},_setItem:function(h){var c=[];for(var e=0;e<this.instance.numContent;e++){var a=$(this.ui.content[e]).find(this.options.selectorItem),b=a.eq(h);a.removeClass(this.options.classActive);b.addClass(this.options.classActive);c.push(b)}for(var f=0;f<this.instance.numNav;f++){var g=$(this.ui.nav[f]).children(),d=g.eq(h);g.removeClass(this.options.classActive);g.prop("selected",false);d.addClass(this.options.classActive);d.prop("selected",true)}this.state.index=h;this._animateItems(c,this.instance.allContentItems,this.state.prevIndex,this.state.index);this.state.prevIndex=this.state.index},_animateItems:function(b,a,d,c){var e=this;$(a).each(function(){$(this).css({display:"none"})});TweenMax.to(a,this.options.animSpeed,{opacity:0,ease:e.options.animEase});$(b).each(function(){$(this).css({display:"block"})});TweenMax.to(b,this.options.animSpeed,{opacity:1,ease:e.options.animEase,onStart:function(){e.state.isAnimating=true;if(e.options.onStartCallback){e.options.onStartCallback(d,c)}},onComplete:function(){e.state.isAnimating=false;if(e.options.deepLink&&e.state.allowScroll){var f=$(e.state.hash).length?$(e.state.hash):$(b[0]);ABV.Utils.scrollToElement(f,e.options.deepLinkOffset)}if(e.options.onCompleteCallback){e.options.onCompleteCallback(d,c)}}})},_setDirection:function(a){this.state.index+=a;if(this.state.index>this.instance.maxIndex){this.state.index=0}else{if(this.state.index<0){this.state.index=this.instance.maxIndex}}this.setActiveItem(this.state.index)},_onHashChange:function(a){a.preventDefault();this.state.hash=window.location.hash;if(this.state.hash){this.setActiveHash(this.state.hash)}},_onNavAction:function(a){var d=$(a.currentTarget),e=d.text(),b,c;a.preventDefault();if(a.type==="click"){this.state.allowScroll=false;c=d.parent().index();ABV.Analytics.onTabSwitcher(e)}if(a.type==="change"){c=d.find(":selected").index();b=d.val();window.location.hash=b;ABV.Analytics.onTabSwitcher(e)}if(c>=0){this.setActiveItem(c)}},_prev:function(a){if(!this.options.deepLink){a.preventDefault()}this._setDirection(-1)},_next:function(a){if(!this.options.deepLink){a.preventDefault()}this._setDirection(1)},_addEventListeners:function(){this.ui.prev.on("click",$.proxy(this._prev,this));this.ui.next.on("click",$.proxy(this._next,this));if(this.options.deepLink){this.ui.window.on("hashchange",$.proxy(this._onHashChange,this))}this.ui.nav.on("click","li a",$.proxy(this._onNavAction,this));this.ui.nav.on("change",$.proxy(this._onNavAction,this))}};var ABV=ABV||{};ABV.SocialWall=function(a,b){this.options=$.extend({dataAttrUrl:"url",dataAttrLimit:"limit",selectorList:".wall-listing",selectorItem:".grid-cell",selectorItemFocus:"> h3:first-child",selectorLoadContainer:".btn-container",selectorLoadButton:".btn-load-more",selectorLoadLabel:".label",classItemsLoading:"loading",animSpeed:400,masonryWidth:300,masonryGutter:20,ajaxErrorMsg:ABV.Constants.labels.ajaxError,ajaxEndMsg:ABV.Constants.labels.ajaxEnd,strButtonLabel:ABV.Constants.labels.loadMore,strButtonLoading:ABV.Constants.labels.loading,htmlWallTemplate:"/assets/abv/templates/social-wall.html"},b||{});this.constant={dataUrl:null,dataLimit:null,getAjaxContent:ABV.Utils.getAjaxContent,template:null,namespace:null};this.state={userInteraction:false,startId:null,postCount:0};this.ui={window:$(window),wall:a,list:null,loadContainer:null,loadButton:null,loadLabel:null};this._initialize()};ABV.SocialWall.prototype={_initialize:function(){this.ui.list=this.ui.wall.find(this.options.selectorList).addClass(this.options.classItemsLoading);this.ui.loadContainer=this.ui.wall.find(this.options.selectorLoadContainer);this.ui.loadButton=this.ui.wall.find(this.options.selectorLoadButton);this.ui.loadLabel=this.ui.loadButton.find(this.options.selectorLoadLabel);this.constant.dataUrl=this.ui.wall.data(this.options.dataAttrUrl);this.constant.dataLimit=this.ui.wall.data(this.options.dataAttrLimit);this.constant.dataUrl+="?limit="+this.constant.dataLimit;this.constant.namespace=Date.now();this._bindEvents()},_bindEvents:function(){this.ui.loadButton.on("click."+this.constant.namespace,$.proxy(this.__onLoadBtnClick,this));this.ui.window.on("scroll."+this.constant.namespace,$.proxy(this.__onWindowScroll,this))},_unbindLoadButton:function(){this.ui.loadButton.off("."+this.constant.namespace)},_unbindScroll:function(){this.ui.window.off("."+this.constant.namespace)},__onLoadBtnClick:function(a){a.preventDefault();ABV.Analytics.onLoadMoreButton();this.state.userInteraction=true;this._hideBtn();this._getContent(this.constant.dataUrl)},__onWindowScroll:function(){var a=this.ui.window.scrollTop(),c=this.ui.window.height(),b=this.ui.wall.offset().top;if(b<=a+c){this._unbindScroll();this._initMasonry();this._getTemplate()}},_showBtn:function(){this.ui.loadButton.fadeIn().removeAttr("disabled").css("display","block");this.ui.loadLabel.text(this.options.strButtonLabel)},_hideBtn:function(){this.ui.loadButton.attr("disabled","disabled");this.ui.loadLabel.text(this.options.strButtonLoading);this.ui.loadContainer.find($(this.options.ajaxErrorMsg)).remove()},_removeBtn:function(){var a=$(this.options.ajaxEndMsg).hide();this._unbindLoadButton();this.ui.loadButton.remove();this.ui.loadContainer.append(a);a.delay(this.options.animSpeed).fadeIn()},_showError:function(){var a=$(this.options.ajaxErrorMsg).hide();this.ui.loadContainer.append(a);a.delay(this.options.animSpeed).fadeIn();this.ui.list.removeClass(this.options.classItemsLoading);this._showBtn()},_getTemplate:function(){var a=this;$.when(this.constant.getAjaxContent(a.options.htmlWallTemplate,"text")).done(function(b){a.constant.template=Handlebars.compile(b);a._getContent()}).fail(function(){console.log("error with ajax call")})},_initMasonry:function(){var a=(this.options.animSpeed/1000).toString();a+="s";if(ABV.Constants.isIDevice){a=0}this.ui.list.masonry({columnWidth:this.options.masonryWidth,gutter:this.options.masonryGutter,itemSelector:this.options.selectorItem,transitionDuration:a})},_getContent:function(){var a=this;dataUrl=this.constant.dataUrl;if(this.constant.dataUrl){if(this.state.startId){dataUrl+="&start_id="+this.state.startId}$.when(this.constant.getAjaxContent(dataUrl,"jsonp",true)).done(function(b){a._processData(b)}).fail(function(){a._showError()})}else{this._showError()}},_processData:function(a){for(var b=0,g=a.length;b<g;b++){if(a[b].network==="facebook"){this.state.postCount++;a[b].postNum=this.state.postCount;a[b].fullName=a[b].from.name||null;a[b].screenName=a[b].from.broadcast_name||null;a[b].avatarSrc=null;a[b].postHref="https://www.facebook.com/"+a[b].facebook_id.split("_")[0]+"/posts/"+a[b].facebook_id.split("_")[1];a[b].contentText=a[b].message||null;a[b].isVideo=(a[b].type==="video");a[b].date=a[b].created_time||null;a[b].date=this.getTime(a[b].date);if(a[b].images){for(var c=0,d=a[b].images.length;c<d;c++){if(a[b].images[c].width===320){a[b].imgSrc=this.replaceImgSrc(a[b].images[c].source)}}}else{if(a[b].format){for(var e=0,f=a[b].format.length;e<f;e++){if(a[b].format[e].width===480){a[b].imgSrc=this.replaceImgSrc(a[b].format[e].picture)}}}else{a[b].imgSrc=a[b].picture||null;a[b].imgSrc=this.replaceFacebookImg(a[b].imgSrc);a[b].imgSrc=this.replaceImgSrc(a[b].imgSrc)}}if(a[b].contentText){a[b].contentText=this.replaceURL(a[b].contentText);a[b].contentText=this.replaceHash(a[b].contentText,"https://www.facebook.com/hashtag/");a[b].contentText=this.replaceAt(a[b].contentText,"https://www.facebook.com/")}}if(a[b].network==="twitter"){this.state.postCount++;a[b].postNum=this.state.postCount;a[b].fullName=a[b].user.name||null;a[b].screenName=a[b].user.screen_name||null;a[b].avatarSrc=this.replaceImgSrc(a[b].user.profile_image_url||null);a[b].postHref="https://twitter.com/"+a[b].user.screen_name+"/status/"+a[b].id_str;a[b].contentText=a[b].text||null;a[b].imgSrc=this.replaceImgSrc(!!(a[b].entities.media&&a[b].entities.media[0].media_url)?a[b].entities.media[0].media_url:null);a[b].isVideo=(a[b].kind==="video");a[b].date=a[b].created_at||null;a[b].date=this.getTime(a[b].date);if(a[b].contentText){a[b].contentText=this.replaceURL(a[b].contentText);a[b].contentText=this.replaceHash(a[b].contentText,"https://twitter.com/search?q=%23");a[b].contentText=this.replaceAt(a[b].contentText,"https://twitter.com/")}}if(a[b].network==="instagram"){this.state.postCount++;a[b].postNum=this.state.postCount;a[b].fullName=a[b].user.full_name||null;a[b].screenName=a[b].user.username||null;a[b].avatarSrc=this.replaceImgSrc(a[b].user.profile_picture||null);a[b].postHref=a[b].link;a[b].contentText=(a[b].caption)?a[b].caption.text:null;a[b].imgSrc=this.replaceImgSrc(a[b].images.low_resolution.url||null);a[b].isVideo=(a[b].type==="video");a[b].date=(a[b].caption)?a[b].caption.created_time:null;a[b].date=this.getTime(a[b].date,true);if(a[b].contentText){a[b].contentText=this.replaceURL(a[b].contentText);a[b].contentText=this.replaceAt(a[b].contentText,"http://instagram.com/")}}if(a[b].network==="pinterest"){this.state.postCount++;a[b].postNum=this.state.postCount;a[b].fullName=a[b].actor.displayName||null;a[b].screenName=a[b].actor.id||null;a[b].postHref=a[b].object.url;a[b].contentText=a[b].object.content||null;a[b].imgSrc=this.replaceImgSrc(a[b].object.image.url||null);a[b].isVideo=a[b].isVideo;a[b].date=a[b].published||null;a[b].date=this.getTime(a[b].date);if(a[b].contentText){a[b].contentText=this.replaceURL(a[b].contentText);a[b].contentText=this.replaceHash(a[b].contentText,"https://www.pinterest.com/search/?q=")}}}this._render(a)},getTime:function(e,b){var f=new Date(),g;if(b){g=new Date(parseInt(e)*1000)}else{g=new Date(e)}var d=(f.getTime()-g.getTime())/1000;if(d<60){return parseInt(d)+"s"}if(d<3600){return parseInt(d/60)+"m"}if(d<=86400){return parseInt(d/3600)+"h"}if(d>86400){var a=g.getDate(),c=g.toDateString().match(/ [a-zA-Z]*/)[0].replace(" ","");return c+" "+a}},replaceURL:function(f){var g=/(https?:\/\/[^\s]+|tgt\.biz[^\s]+)/gi,d=' <a href="$1" target="_blank" title="opens in a new window">$1</a>',a=f.replace(g,d);var b=/(href="tgt+)/gi,c='href="http://tgt';var e=a.replace(b,c);return e},replaceHash:function(e,a){var b=/(^|\s)(#)([a-z\d_-][\w-]*)/gi,c=' <a href="'+a+'$3" target="_blank" title="opens in a new window">$2$3</a>',d=e.replace(b,c);return d},replaceAt:function(e,a){var b=/(^|\s)(\@)([a-z\d_-][\w-]*)/gi,c=' <a href="'+a+'$3" target="_blank" title="opens in a new window">$2$3</a>',d=e.replace(b,c);return d},replaceFacebookImg:function(c){var a=/\/safe_image\.php?.*url=([^&]+)(?:&|$)/g.exec(c);if(a){var b=decodeURIComponent(a[1]);return b}else{return c}},replaceImgSrc:function(a){if(a){return a.replace("http:","https:")}return a},_render:function(e){var c=e,d=this.constant.template({items:c}),b=$(d).filter(this.options.selectorItem).addClass(this.options.classItemsLoading),a=b.first();if(c.length!==this.constant.dataLimit){this._removeBtn()}else{this.state.startId=c[c.length-1].entity_id}this.ui.list.append(b).imagesLoaded(function(){b.removeClass(this.options.classItemsLoading);this.ui.list.masonry("appended",b);if(this.state.userInteraction){a.find(this.options.selectorItemFocus).focus()}this._showBtn();this.ui.list.removeClass(this.options.classItemsLoading)}.bind(this))}};var ABV=ABV||{};ABV.GalleryWallTemplate='{{#each items}}	<div class="gallery-wall-item">       <a class="gallery-wall-item-trigger" href="{{shareURL}}">			<img src="{{imgSrc}}" alt="{{imgAlt}}" />		</a>	</div>{{/each}}';ABV.GalleryCarouselTemplate='<ul class="carousel">	{{#each items}}	<li class="gtm-parent">		<div class="modal-primary"><img src="{{imgSrc}}" alt="{{imgAlt}}" /></div>       <div class="modal-secondary">			<a href="#" class="mobile-drawer-trigger">expand panel</a>			<div class="mobile-drawer">				<h3 class="gtm-title">{{heading}}</h3>				<p>           	    {{{content}}}		        	{{#if url}} <a href="{{url}}" class="read-more">{{urlText}}</a>{{/if}}          		</p>       		<ul class="social-group">					<li><a href="{{shareURL}}" class="icon icon-facebook addthis_button_facebook gtm-social-facebook-share" target="_blank" title="Share on Facebook" 						addthis:url="{{shareURL}}" 						addthis:title="{{shareTitle}}">Share on Facebook</a></li>					<li><a href="{{shareURL}}" class="icon icon-twitter addthis_button_twitter gtm-social-twitter-tweet" target="_blank" title="Share on Twitter" 						addthis:url="{{shareURL}}" 						addthis:title="{{shareTitle}}">Share on Twitter</a></li>					<li><a href="{{shareURL}}" class="icon icon-pinterest addthis_button_pinterest_share gtm-social-pinterest-pin" target="_blank" title="Share on Pinterest" 						addthis:url="{{shareURL}}" 						addthis:title="{{shareTitle}}">Share on Pinterest</a></li>					<li><a href="{{shareURL}}" class="icon icon-link gtm-social-link" target="_blank" title="Link to this image">Link to this image</a></li>					{{#if cartLink}}<li><a href="{{cartLink}}" class="icon icon-cart gtm-social-cart" target="_blank" title="Shop this item">Shop this item</a></li>{{/if}}				</ul>			</div>		</div>	</li>	{{/each}}</ul>';ABV.GalleryWall=function(a,b){this.options=$.extend({getAllContent:true,dataAttrUrl:"url",dataAttrLimit:"limit",selectorList:".wall-listing",selectorItem:".gallery-wall-item",selectorItemFocus:"> a:first-child",selectorModalTrigger:".gallery-wall-item-trigger",selectorLoadContainer:".btn-container",selectorLoadButton:".btn-load-more",selectorLoadLabel:".label",classItemsLoading:"loading",animSpeed:400,masonryWidth:300,masonryGutter:20,ajaxErrorMsg:ABV.Constants.labels.ajaxError,ajaxEndMsg:ABV.Constants.labels.ajaxEnd,strButtonLabel:ABV.Constants.labels.loadMore,strButtonLoading:ABV.Constants.labels.loading,htmlWallTemplate:ABV.GalleryWallTemplate,htmlCarouselTemplate:ABV.GalleryCarouselTemplate},b||{});this.constant={dataUrl:null,dataLimit:null,getAjaxContent:ABV.Utils.getAjaxContent};this.state={userInteraction:false,startIndex:0,modalGallery:null,arrData:[]};this.ui={wall:a,list:null,loadContainer:null,loadButton:null,loadLabel:null};this._initialize()};ABV.GalleryWall.prototype={_initialize:function(){this.ui.list=this.ui.wall.find(this.options.selectorList).addClass(this.options.classItemsLoading);this.ui.loadContainer=this.ui.wall.find(this.options.selectorLoadContainer);this.ui.loadButton=this.ui.wall.find(this.options.selectorLoadButton);this.ui.loadLabel=this.ui.loadButton.find(this.options.selectorLoadLabel);this.constant.dataUrl=this.ui.wall.data(this.options.dataAttrUrl);this.constant.dataLimit=this.ui.wall.data(this.options.dataAttrLimit);if(this.options.getAllContent){this.constant.dataUrl+="?limit=1000"}else{this.constant.dataUrl+="?limit="+this.constant.dataLimit}this._bindLoadButton();this._bindModalTriggers();this._initMasonry();this._getContent(this.constant.dataUrl,this.options.htmlWallTemplate)},_bindModalTriggers:function(){this.ui.list.on("click",this.options.selectorModalTrigger,$.proxy(this.__onModalTriggerClick,this))},_unbindModalTriggers:function(){this.ui.list.off("click")},_bindLoadButton:function(){this.ui.loadButton.on("click",$.proxy(this.__onLoadBtnClick,this))},_unbindLoadButton:function(){this.ui.loadButton.off("click")},__onLoadBtnClick:function(a){a.preventDefault();ABV.Analytics.onLoadMoreButton();this.state.userInteraction=true;this._hideBtn();if(this.state.modalGallery){this.state.modalGallery.removeTriggerEvents();this.state.modalGallery=null;this._bindModalTriggers()}if(this.options.getAllContent){this._render(this.state.arrData,this.options.htmlWallTemplate)}else{this._getContent(this.constant.dataUrl,this.options.htmlWallTemplate)}},__onModalTriggerClick:function(a){a.preventDefault();var d=$(a.currentTarget),c=d.parent().index(),b=d.attr("href");ABV.Analytics.onGalleryWallModal(b);this._createModal(c)},_createModal:function(a){var b=this;this.state.modalGallery=new ABV.ModalGallery(this.ui.list.find(this.options.selectorModalTrigger),{showSocialButtons:true,isGallery:true,modalID:"modal-gallery"},this.state.arrData);this.state.modalGallery.openToGalleryIndex(a);this._unbindModalTriggers()},_showBtn:function(){this.ui.loadButton.fadeIn().removeAttr("disabled").css("display","block");this.ui.loadLabel.text(this.options.strButtonLabel)},_hideBtn:function(){this.ui.loadButton.attr("disabled","disabled");this.ui.loadLabel.text(this.options.strButtonLoading);this.ui.loadContainer.find($(this.options.ajaxErrorMsg)).remove()},_removeBtn:function(){var a=$(this.options.ajaxEndMsg).hide();this._unbindLoadButton();this.ui.loadButton.remove();this.ui.loadContainer.append(a);a.delay(this.options.animSpeed).fadeIn()},_showError:function(){var a=$(this.options.ajaxErrorMsg).hide();this.ui.loadContainer.append(a);a.delay(this.options.animSpeed).fadeIn();this.ui.list.removeClass(this.options.classItemsLoading);this._showBtn()},_initMasonry:function(){var a=(this.options.animSpeed/1000).toString();a+="s";if(ABV.Constants.isIDevice){a=0}this.ui.list.masonry({columnWidth:this.options.masonryWidth,gutter:this.options.masonryGutter,itemSelector:this.options.selectorItem,transitionDuration:a})},_getContent:function(c,d){var b=this,a=c;if(a){if(this.state.startIndex){a+="&index="+this.state.startIndex}$.when(this.constant.getAjaxContent(a,"json")).done(function(e){b._updateData(e);b._render(e,d)}).fail(function(){b._showError()})}else{this._showError()}},_updateData:function(c){if(c){for(var a=0,b=c.length;a<b;a++){this.state.arrData.push(c[a])}}},_render:function(g,h){var d=g,j,e,b,a;if(this.options.getAllContent){var c=[];for(var f=0;f<this.constant.dataLimit;f++){if(f+this.state.startIndex<this.state.arrData.length){c.push(d[f+this.state.startIndex])}}d=c}j=Handlebars.compile(h);e=j({items:d});b=$(e).filter(this.options.selectorItem).addClass(this.options.classItemsLoading);a=b.first();if(d.length<this.constant.dataLimit){this._removeBtn()}else{if(this.options.getAllContent&&this.state.startIndex+this.constant.dataLimit>=this.state.arrData.length){this._removeBtn()}else{this.state.startIndex+=this.constant.dataLimit}}this.ui.list.append(b).imagesLoaded(function(){b.removeClass(this.options.classItemsLoading);this.ui.list.masonry("appended",b);if(this.state.userInteraction){a.find(this.options.selectorItemFocus).focus()}this._showBtn();this.ui.list.removeClass(this.options.classItemsLoading)}.bind(this))}};var ABV=ABV||{};ABV.ModalWindow=function(a,b){this.options=$.extend({ariaHideElements:"#wrapper, body > iframe",modalID:"modal",modalClass:"modal-window",contentClass:"modal-content",modalOverlayID:"modal-overlay",closeBtnClass:"icon-close",closeBtnText:"close modal window",selectorDrawerTrigger:".mobile-drawer-trigger",selectorDrawerContent:".mobile-drawer",labelOpen:"expand panel",labelClose:"minimize panel",activeClass:"active",closedClass:"closed",animSpeed:300,animEase:"swing",customEventPrfx:"ABV:ModalWindow"},b||{});this.ui={document:$(document),window:$(window),body:$("body"),triggers:a,curTrigger:null,modal:null,content:null,closeButton:null,overlay:null,ariaHideElements:null,drawerTrigger:null};this.instance=$.extend({namespace:null,contentLoader:null},this.instance||{});this.state={isAnimating:false,isOpen:false,curIndex:null,yPos:null,winWidth:null,modalScale:null,modalOffset:null};ABV.Utils.resizeEndEvent();this._initialize()};ABV.ModalWindow.prototype={_initialize:function(){var a=this;this.ui.overlay=$("#"+this.options.modalOverlayID);if(!this.ui.overlay.length){this.ui.overlay=$("<div></div>",{id:this.options.modalOverlayID}).appendTo(this.ui.body).hide().attr("tabindex",0)}this.ui.modal=$("#"+this.options.modalID);if(!this.ui.modal.length){this.ui.modal=$("<div/>",{id:this.options.modalID,"class":this.options.modalClass,tabindex:"-1"}).insertBefore(this.ui.overlay)}this._setScaleOffset();this.ui.ariaHideElements=$(this.options.ariaHideElements);this.instance.namespace=Date.now();this.instance.contentLoader=new ABV.Utils.Loader(this.ui.overlay);if(this.ui.triggers){this.addTriggerEvents()}},addTriggerEvents:function(){this.ui.triggers.on("click",$.proxy(this._onTriggerClick,this))},removeTriggerEvents:function(){this.ui.triggers.off("click")},_onTriggerClick:function(b){b.preventDefault();this.ui.curTrigger=$(b.currentTarget);this.state.curIndex=this.ui.triggers.index(this.ui.curTrigger);var a=this.ui.curTrigger.attr("href");ABV.Analytics.onGalleryWallModal(a);this._openModal()},_openModal:function(){this.state.winWidth=this.ui.window.width();this.ui.modal.attr("aria-hidden","false");this.ui.ariaHideElements.attr("aria-hidden","true");this._addEventHandlers();this.ui.overlay.show();this.instance.contentLoader.addLoader();this._getContent()},_closeModal:function(){this.ui.modal.attr("aria-hidden","true");this.ui.ariaHideElements.attr("aria-hidden","false");this._removeEventHandlers();this._animateClose()},_addEventHandlers:function(){var a=this;this.ui.closeButton=$("<a />");this.ui.closeButton.addClass(this.options.closeBtnClass);this.ui.closeButton.attr("href","#close");this.ui.closeButton.attr("title",this.options.closeBtnText);this.ui.closeButton.text(this.options.closeBtnText);this.ui.modal.prepend(this.ui.closeButton);this.ui.modal.on("click."+this.instance.namespace,"."+this.options.closeBtnClass,$.proxy(this._onCloseBtnClick,this));this.ui.overlay.on("click."+this.instance.namespace,function(){if(a.state.isOpen){a._closeModal()}});this.ui.window.on("keydown."+this.instance.namespace,$.proxy(this._onWindowKeydown,this));this.ui.window.on("resizeEnd."+this.instance.namespace,$.proxy(this._onWindowResize,this));this.ui.document.on("focusin."+this.instance.namespace,function(b){if(a.state.isOpen&&!a.ui.modal.find($(b.target)).length){a.ui.closeButton.focus()}})},_addDrawerEvents:function(){if(ABV.Constants.breakpoint!=="desktop"){this.ui.drawerTrigger=this.ui.modal.find(this.options.selectorDrawerTrigger);this.ui.drawerTrigger.on("click."+this.instance.namespace,$.proxy(this._onDrawerBtnClick,this));this._closeAllDrawers()}},_removeEventHandlers:function(){this.ui.document.off("."+this.instance.namespace);this.ui.window.off("."+this.instance.namespace);this.ui.modal.off("."+this.instance.namespace);if(ABV.Constants.breakpoint!=="desktop"){this.ui.drawerTrigger.off("."+this.instance.namespace)}this.ui.overlay.off("."+this.instance.namespace)},_onDrawerBtnClick:function(c){c.preventDefault();var b=$(c.currentTarget).parent(),a=b.find(this.options.selectorDrawerContent);if(!this.state.isAnimating){this.state.isAnimating=true;if(!b.hasClass(this.options.closedClass)){this._slideDrawerClose(b)}else{this._slideDrawerOpen(b)}}},_closeAllDrawers:function(){var a=this;this.ui.drawerTrigger.each(function(){var b=$(this).parent();a._slideDrawerClose(b)})},_slideDrawerClose:function(a){var b=this;a.addClass(this.options.closedClass).find(this.options.selectorDrawerContent).slideUp(this.options.animSpeed,this.options.animEase,function(){b._slideDrawerCallback(a)})},_slideDrawerOpen:function(a){var b=this;a.removeClass(this.options.closedClass).find(this.options.selectorDrawerContent).slideDown(this.options.animSpeed,this.options.animEase,function(){b._slideDrawerCallback(a)})},_slideDrawerCallback:function(a){this.state.isAnimating=false;if(a.hasClass(this.options.closedClass)){this.ui.drawerTrigger.text(this.options.labelOpen)}else{this.ui.drawerTrigger.text(this.options.labelClose)}},_onCloseBtnClick:function(a){a.preventDefault();this._closeModal()},_onWindowKeydown:function(a){if(a.keyCode===27&&this.state.isOpen){this._closeModal()}},_onWindowResize:function(a){var b=this.ui.window.width();if(this.state.winWidth!==b){this.state.winWidth=b;if(this.state.isOpen){this._closeModal()}this._setScaleOffset()}},_setScaleOffset:function(){if(ABV.Constants.breakpoint==="mobile"){this.state.modalScale=0.8;this.state.modalOffset=0.1}else{this.state.modalScale=0.9;this.state.modalOffset=0.05}},_setPosition:function(){var b=this.ui.window.width(),a=this.ui.window.height();this.state.yPos=a*this.state.modalOffset;this.ui.modal.css({width:b*this.state.modalScale,height:a*this.state.modalScale,left:b*this.state.modalOffset,position:"fixed",top:this.state.yPos});if(!this.state.isOpen){this._animateOpen()}},_getContent:function(){var a=this,b=$(this.ui.curTrigger.attr("href"));this._setContent(b)},_setContent:function(a){this.ui.content=a.clone().appendTo(this.ui.modal).css({opacity:0});this._addDrawerEvents();this._setPosition()},_animateOpen:function(){var a=this;$.event.trigger(this.options.customEventPrfx+":preOpenModal",[this.options.modalID]);this.state.isOpen=true;this.ui.modal.css({display:"block"});this.ui.modal.css({top:this.state.yPos+100}).animate({top:this.state.yPos,opacity:1},this.options.animSpeed,this.options.animEase,function(){a.instance.contentLoader.removeLoader();a.ui.modal.addClass(a.options.activeClass);a.ui.closeButton.focus();a.ui.content.delay(a.options.animSpeed).animate({opacity:1},a.options.animSpeed,a.options.animEase);$.event.trigger(a.options.customEventPrfx+":modalOpened",[a.options.modalID])})},_animateClose:function(){var a=this;this.ui.overlay.hide();this.ui.modal.animate({top:this.state.yPos+100,opacity:0},this.options.animSpeed,this.options.animEase,function(){a.ui.modal.removeAttr("style");a.ui.modal.removeClass(a.options.activeClass);a.ui.curTrigger.focus();a.state.isOpen=false;a.ui.modal.empty();$.event.trigger(a.options.customEventPrfx+":preCloseModal",[a.options.modalID])})}};var ABV=ABV||{};ABV.MediaDownloadTemplate='	<div class="media-download-container">		<div class="media"><img src="{{imgSrc}}" alt="{{title}}" /></div>       <div class="desc">			<h3>{{title}}</h3>			<p>		        {{#if url}}<a href="{{url}}" download>Download</a>{{/if}}           </p>		</div>	</div>';ABV.ModalAjax=function(a,c,b){this.options=$.extend({ajaxDataAttr:"url",ajaxDataType:"html",ajaxErrorMsg:'<div class="error"><p>Sorry. Ajax request failed.</p></div>',cacheAjaxResponse:true,template:null},c||{});this.instance=$.extend({data:b,getAjaxContent:ABV.Utils.getAjaxContent,cacheAjaxContent:[]},this.instance||{});ABV.ModalWindow.call(this,a,this.options)};ABV.ModalAjax.prototype=Object.create(ABV.ModalWindow.prototype);ABV.ModalAjax.prototype._getContent=function(){var a=this,b;if(this.instance.data){this._setContent(this.instance.data)}else{b=this.ui.curTrigger.data(this.options.ajaxDataAttr);if(!this.instance.cacheAjaxContent[this.state.curIndex]){$.when(this.instance.getAjaxContent(b,this.options.ajaxDataType)).done(function(c){if(a.options.cacheAjaxResponse){a.instance.cacheAjaxContent[a.state.curIndex]=c}a._setContent(c)}).fail(function(){a._setContent(a.options.ajaxErrorMsg)})}else{this._setContent(this.instance.cacheAjaxContent[this.state.curIndex])}}};ABV.ModalAjax.prototype._setContent=function(a){var c,b;this.ui.content=$("<div/>",{"class":this.options.contentClass}).appendTo(this.ui.modal);if(this.options.template){c=Handlebars.compile(this.options.template);b=c(a)}else{b=a}this.ui.content.append(b).css({opacity:0});this._setPosition()};var ABV=ABV||{};ABV.ModalGallery=function(a,c,b){this.options=$.extend({showSocialButtons:true,modalID:"modal-gallery",ajaxDataAttr:"url",ajaxDataType:"json",template:ABV.GalleryCarouselTemplate},c||{});this.instance={imageGallery:null};ABV.ModalAjax.call(this,a,this.options,b)};ABV.ModalGallery.prototype=Object.create(ABV.ModalAjax.prototype);ABV.ModalGallery.prototype._setContent=function(a){this.ui.content=$("<div/>",{"class":this.options.contentClass}).appendTo(this.ui.modal);var e=Handlebars.compile(this.options.template),b=e({items:a});this.ui.content.append(b).css({opacity:0});ABV.ModalWindow.prototype._addDrawerEvents.call(this);var d=this.ui.window.width()*this.state.modalScale+"px",c=this.ui.window.height()*this.state.modalScale+"px";this.instance.imageGallery=new ABV.Carousel(this.ui.content.find(".carousel"),{showSocialButtons:this.options.showSocialButtons,startIndex:this.state.curIndex,maxPagination:0,maxHeight:c,maxHeightMobile:c,maxWidth:d,isSlider:false,onInitialize:$.proxy(this._setPosition,this)})};ABV.ModalGallery.prototype._removeEventHandlers=function(){ABV.ModalWindow.prototype._removeEventHandlers.call(this);this._removeGallery()};ABV.ModalGallery.prototype.openToGalleryIndex=function(a){this.ui.curTrigger=$(this.ui.triggers[a]);this.state.curIndex=a;this._openModal()};ABV.ModalGallery.prototype._removeGallery=function(){this.instance.imageGallery.kill();this.instance.imageGallery=null};var ABV=ABV||{};ABV.ModalVideo=function(a,c,b){this.options=$.extend({ajaxDataAttr:"url",ajaxDataType:"json",ajaxErrorMsg:"Sorry. Video request failed.",template:ABV.ModalVideoTemplate},c||{});ABV.ModalAjax.call(this,a,this.options,b)};ABV.ModalVideo.prototype=Object.create(ABV.ModalAjax.prototype);ABV.ModalVideo.prototype._setContent=function(a){var c;this.ui.content=$("<div/>",{"class":this.options.contentClass}).appendTo(this.ui.modal);var d=Handlebars.compile(this.options.template);if(typeof a==="string"){var b={Title:a,Caption:a};c=d(b)}else{a.randomID=Math.floor(Math.random()*1000);c=d(a)}this.ui.content.append(c).css({opacity:0});ABV.ModalWindow.prototype._addDrawerEvents.call(this);this.instance.videoItem=new ABV.VideoItem(this.ui.content.find(".px-video-container"),{});this._setPosition()};ABV.ModalVideo.prototype._onWindowResize=function(a){var b=this.ui.window.width();if(this.state.winWidth!==b){this.state.winWidth=b;if(this.state.onFullscreenChange){}else{if(this.state.isOpen){this._closeModal()}}this._setScaleOffset();this.state.onFullscreenChange=false}};ABV.ModalVideo.prototype._onEnterFullscreen=function(a){this.state.onFullscreenChange=true};ABV.ModalVideo.prototype._onExitFullscreen=function(a){this.state.onFullscreenChange=true};ABV.ModalVideo.prototype._addEventHandlers=function(){ABV.ModalWindow.prototype._addEventHandlers.call(this);this.instance.enterFullscreenHandler=this._onEnterFullscreen.bind(this);this.instance.exitFullscreenHandler=this._onExitFullscreen.bind(this);document.addEventListener(ABV.Events.video.enterFullscreen,this.instance.enterFullscreenHandler);document.addEventListener(ABV.Events.video.exitFullscreen,this.instance.exitFullscreenHandler)};ABV.ModalVideo.prototype._removeEventHandlers=function(){ABV.ModalWindow.prototype._removeEventHandlers.call(this);document.removeEventListener(ABV.Events.video.enterFullscreen,this.instance.enterFullscreenHandler,false);document.removeEventListener(ABV.Events.video.exitFullscreen,this.instance.exitFullscreenHandler,false)};var ABV=ABV||{};ABV.ModalVideoTemplate='	<div class="video-container">		<div class="modal-primary">			<div class="px-video-container" id="video-component-{{randomID}}">				<div class="px-video-img-captions-container">					<div class="px-poster-play-container hide" aria-hidden="true"></div>					<div class="px-video-captions hide" aria-hidden="true"></div>					<video id="video-player-{{randomID}}" poster="{{PosterImage}}" controls crossorigin="anonymous">						<source src="{{URL}}" type="video/mp4" />						<track kind="captions" label="English captions" src="{{ClosedCaptionUrl}}" srclang="en" />					</video>					<label for="video-player-{{randomID}}" class="h-sr-only gtm-video-title">{{Title}}</label>				</div>				<div class="px-video-controls"></div>			</div>		</div>		<div class="modal-secondary">			<a href="#" class="mobile-drawer-trigger">expand panel</a>			<div class="mobile-drawer">				<h3>{{Caption}}</h3>				<p>{{SubCaption}}</p>				{{#if TranscriptUrl}}<p><a href="{{TranscriptUrl}}">read full transcript</a></p>{{/if}}				{{#if MP4DownloadPath}}<p><a href="{{MP4DownloadPath}}" class="button media-download" download>download</a></p>{{/if}}			</div>		</div>	</div>';ABV.VideoItem=function(a,b){this.ui={container:a,title:null};this.instance={videoId:this.ui.container.attr("id"),videoTitle:null};this.init()};ABV.VideoItem.prototype={init:function(){new ABV.PxVideoPlayer({videoId:this.instance.videoId});this._addEventHandlers();this._setTitle()},_setTitle:function(){this.ui.title=this.ui.container.find(".gtm-video-title");if(this.ui.title.length){this.instance.videoTitle=this.ui.title.text()}if(!this.instance.videoTitle){this.instance.videoTitle="no video title available"}},_onVideoPlay:function(a){if(this.instance.videoId===a.detail.videoId){ABV.Analytics.onVideoEvent(ABV.Events.analytics.videoPlay,this.instance.videoTitle)}},_onVideoEnd:function(a){if(this.instance.videoId===a.detail.videoId){ABV.Analytics.onVideoEvent(ABV.Events.analytics.videoEnd,this.instance.videoTitle)}},_addEventHandlers:function(){document.addEventListener(ABV.Events.video.play,this._onVideoPlay.bind(this));document.addEventListener(ABV.Events.video.end,this._onVideoEnd.bind(this))}};var ABV=ABV||{};ABV.LoadMore=function(a,b){this.options=$.extend({dataCuratedItems:null,getContentOnInit:false,setFocusOnInit:false,isAjaxContent:false,dataBaseUrl:null,dataAttrUrl:"url",dataAttrIndex:"page-index",dataAttrTimes:"load-times",maxRequests:null,classColumn:"column",selectorItem:".article-item",selectorItemFocus:"a",selectorLoadContainer:".btn-container",selectorLoadButton:".btn-load-more",selectorLoadLabel:".label",classItemsLoading:"loading",animSpeed:400,masonryWidth:[360,227,320],masonryGutter:[20,15,0],ajaxErrorMsg:ABV.Constants.labels.ajaxError,ajaxEndMsg:ABV.Constants.labels.ajaxEnd,strButtonLabel:ABV.Constants.labels.loadMore,strButtonLoading:ABV.Constants.labels.loading},b||{});this.constant={dataUrl:null,getAjaxContent:ABV.Utils.getAjaxContent,numTimesToLoad:2,arrayStaticContent:null,namespace:null};this.state={mergeInitContent:false,userInteraction:false,pageIndex:0,masonryWidth:null,masonryGutter:null};this.ui={body:$("body"),container:a,loadContainer:null,loadButton:null,loadLabel:null};this._initialize()};ABV.LoadMore.prototype={_initialize:function(){this.constant.namespace=Date.now();this.ui.columns=this.ui.container.find("."+this.options.classColumn);this.ui.loadContainer=this.ui.container.find(this.options.selectorLoadContainer);if(this.ui.loadContainer.length){this.ui.loadButton=this.ui.loadContainer.find(this.options.selectorLoadButton);this.ui.loadLabel=this.ui.loadButton.find(this.options.selectorLoadLabel)}else{this._createLoadButton()}if(this.options.isAjaxContent){if(this.options.dataBaseUrl){this.constant.dataUrl=this.options.dataBaseUrl}else{this.constant.dataUrl=this.ui.loadButton.data(this.options.dataAttrUrl);this.state.pageIndex=this.ui.loadButton.data(this.options.dataAttrIndex)}}if(this.ui.container.data(this.options.dataAttrTimes)){this.constant.numTimesToLoad=this.ui.container.data(this.options.dataAttrTimes)}this._addEventHandlers();if(this.options.setFocusOnInit){this.state.userInteraction=true}if(this.options.isAjaxContent){this._setMasonryOptions();this._initMasonry()}else{this._initStaticLayout()}},_createLoadButton:function(){var a='<div class="btn-container">	<button class="btn-load-more">		<span class="label">show me more</span><span class="icon"></span>	</button></div>';this.ui.container.append(a);this.ui.loadContainer=this.ui.container.find(this.options.selectorLoadContainer);this.ui.loadButton=this.ui.loadContainer.find(this.options.selectorLoadButton);this.ui.loadLabel=this.ui.loadButton.find(this.options.selectorLoadLabel);this.ui.loadButton.hide()},_addEventHandlers:function(){this._bindLoadButton();this.ui.body.on("breakpoint."+this.constant.namespace,$.proxy(this._onBreakpoint,this))},_onBreakpoint:function(){if(this.options.isAjaxContent){this._setMasonryOptions();this.ui.columns.masonry("option",{columnWidth:this.state.masonryWidth,gutter:this.state.masonryGutter})}},_unbindBreakpoint:function(){this.ui.body.off("."+this.constant.namespace)},_bindLoadButton:function(){this.ui.loadButton.on("click",$.proxy(this.__onLoadBtnClick,this))},_unbindLoadButton:function(){this.ui.loadButton.off("click")},__onLoadBtnClick:function(a){a.preventDefault();ABV.Analytics.onLoadMoreButton();this.state.userInteraction=true;this._hideBtn();if(this.options.isAjaxContent){this._getContent()}else{this._showStaticItems()}},_showBtn:function(){this.ui.loadButton.fadeIn().removeAttr("disabled").css("display","block");this.ui.loadLabel.text(this.options.strButtonLabel)},_hideBtn:function(){this.ui.loadButton.attr("disabled","disabled");this.ui.loadLabel.text(this.options.strButtonLoading);this.ui.loadContainer.find($(this.options.ajaxErrorMsg)).remove()},_removeBtn:function(){var a=$(this.options.ajaxEndMsg).hide();this._unbindLoadButton();this.ui.loadButton.remove();this.ui.loadContainer.append(a);a.delay(this.options.animSpeed).fadeIn();this.ui.container.removeClass(this.options.classItemsLoading)},_showError:function(){var a=$(this.options.ajaxErrorMsg).hide();this.ui.loadContainer.append(a);a.delay(this.options.animSpeed).fadeIn();this.ui.container.removeClass(this.options.classItemsLoading);this._showBtn()},_setMasonryOptions:function(){if(ABV.Constants.breakpoint==="desktop"){this.state.masonryWidth=this.options.masonryWidth[0];this.state.masonryGutter=this.options.masonryGutter[0]}if(ABV.Constants.breakpoint==="tablet"){this.state.masonryWidth=this.options.masonryWidth[1];this.state.masonryGutter=this.options.masonryGutter[1]}if(ABV.Constants.breakpoint==="mobile"){this.state.masonryWidth=this.options.masonryWidth[2];this.state.masonryGutter=this.options.masonryGutter[2]}},_initMasonry:function(){var a=(this.options.animSpeed/1000).toString();a+="s";if(ABV.Constants.isIDevice){a=0}var b=imagesLoaded(this.ui.columns);b.on("progress",function(d,c){var e=c.isLoaded?"loaded":"broken";if(e==="broken"){$(c.img).hide()}});b.on("always",function(c){this.ui.columns.masonry({columnWidth:this.state.masonryWidth,gutter:this.state.masonryGutter,itemSelector:this.options.selectorItem,transitionDuration:a});if(this.options.getContentOnInit){this.state.mergeInitContent=true;this._getContent()}}.bind(this))},_getContent:function(){var b=this,a=this.constant.dataUrl;this.ui.container.addClass(this.options.classItemsLoading);if(a){a+=this.state.pageIndex;this.state.pageIndex++;$.when(this.constant.getAjaxContent(a,"json")).done(function(c){b._processData(c)}).fail(function(){b._showError()})}else{this._showError()}},_processData:function(h){var d=h,c=[];if(this.options.dataCuratedItems&&this.state.mergeInitContent){c=c.concat(this.options.dataCuratedItems);this.state.mergeInitContent=false}if(d[0].length===0){this._removeBtn()}else{for(var e=0,g=d.length;e<g;e++){var a=$(d[e]),b=a.filter(this.options.selectorItem).addClass(this.options.classItemsLoading),f=b.toArray();c=c.concat(f)}this._render(c)}},_render:function(c){var d=c;var b=$(d).filter(this.options.selectorItem).addClass(this.options.classItemsLoading),a=b.first();this.ui.columns.append(b);var e=imagesLoaded(b);e.on("progress",function(g,f){var h=f.isLoaded?"loaded":"broken";if(h==="broken"){$(f.img).hide()}});e.on("always",function(f){b.removeClass(this.options.classItemsLoading);this.ui.columns.masonry("appended",b);if(this.state.userInteraction){a.find(this.options.selectorItemFocus).first().focus()}this._showBtn();this.ui.container.removeClass(this.options.classItemsLoading)}.bind(this))},_initStaticLayout:function(){var m=this.ui.columns.length,a=this.ui.columns.eq(0).find(this.options.selectorItem),p=a.length,n=this.constant.numTimesToLoad+1,o=Math.ceil(p/n);this.constant.arrayStaticContent=[];for(var d=0,l=m;d<l;d++){this.constant.arrayStaticContent.push([]);var b=this.ui.columns.eq(d).find(this.options.selectorItem);for(var e=0,f=n;e<f;e++){this.constant.arrayStaticContent[d].push([]);for(var g=0,h=p;g<h;g++){var c=this.ui.columns.eq(d).find(this.options.selectorItem).eq(g);if(g>=o*e&&g<=(o*e)+o-1){this.constant.arrayStaticContent[d][e].push(c);if(g>=o){c.hide()}}}}}},_showStaticItems:function(){var g=this.state.pageIndex+1,f=this.constant.numTimesToLoad+1;if(g<f){for(var a=0,e=this.constant.arrayStaticContent.length;a<e;a++){for(var b=0;b<f;b++){if(b===g){for(var c=0,d=this.constant.arrayStaticContent[a][b].length;c<d;c++){this.constant.arrayStaticContent[a][b][c].fadeIn();if(a===0&&b===g&&c===0){this.constant.arrayStaticContent[a][b][c].find(this.options.selectorItemFocus).first().focus()}}}}}if(g===f-1){this._removeBtn()}else{this._showBtn()}}this.state.pageIndex++},kill:function(){this._unbindLoadButton();this._unbindBreakpoint();this.ui.loadContainer.remove();this.ui.columns.remove()}};var ABV=ABV||{};ABV.LoadMoreFilter=function(a,b){this.options=$.extend({selectorTriggers:"a",selectorTarget:".primary",classTarget:"load-more-filter",classColumn:"column",selectorItem:".article-item",classActive:"active",createSkipLink:true,elSkipLink:'<a href="#category-filter" class="skip-link filter-jump">Skip to category filters</a>'},b||{});this.constant={dataUrl:"?ajax=true&page=",content:null,curatedContent:[]};this.state={curTrigger:null,baseUrl:null,showCuratedContent:true};this.ui={container:a,triggers:null,target:null,columns:null,skipLink:null};this._initialize()};ABV.LoadMoreFilter.prototype={_initialize:function(){this.ui.triggers=this.ui.container.find(this.options.selectorTriggers);this.ui.target=$(this.options.selectorTarget).addClass(this.options.classTarget);this.ui.columns=this.ui.target.find("."+this.options.classColumn);if(this.options.createSkipLink){var a=$(this.options.elSkipLink);this.ui.target.prepend(a);this.ui.skipLink=a}this._addEventListeners();this.state.curTrigger=this.ui.triggers.first();this.state.baseUrl=this.state.curTrigger.attr("href");this._getCuratedTiles()},_getCuratedTiles:function(){for(var b=0,d=this.ui.columns.length;b<d;b++){var a=this.ui.columns.eq(b).find(this.options.selectorItem),c=a.toArray();this.constant.curatedContent=this.constant.curatedContent.concat(c)}this._updateLayout(false)},_updateLayout:function(a){this.ui.triggers.removeClass(this.options.classActive);this.state.curTrigger.addClass(this.options.classActive);this._removeContent();this._getContent(a)},_onTriggerClick:function(a){a.preventDefault();if(!$(a.currentTarget).hasClass(this.options.classActive)){this.state.curTrigger=$(a.currentTarget);this.state.baseUrl=this.state.curTrigger.attr("href");if(this.state.curTrigger.is(this.ui.triggers.first())){this.state.showCuratedContent=true}else{this.state.showCuratedContent=false}this._updateLayout(true)}},_removeContent:function(){this.ui.columns.remove();var a=$('<div class="'+this.options.classColumn+'" />');if(this.options.createSkipLink){this.ui.skipLink.after(a)}else{this.ui.target.prepend(a)}if(this.constant.content){this.constant.content.kill()}},_getContent:function(c){if(c){var b=true}else{var b=false}if(this.state.showCuratedContent){var a=this.constant.curatedContent}else{var a=null}this.constant.content=new ABV.LoadMore(this.ui.target,{dataCuratedItems:a,getContentOnInit:true,setFocusOnInit:b,isAjaxContent:true,dataBaseUrl:this.state.baseUrl+this.constant.dataUrl})},_addEventListeners:function(){this.ui.triggers.on("click",$.proxy(this._onTriggerClick,this))}};var ABV=ABV||{};ABV.ReportBuilder=function(a,b){this.options=$.extend({analyticsTitle:"crr:",classDisabled:"disabled",selectorLabels:"label",selectorCheckboxes:"input[type=checkbox]",selectorBtnCustom:".btn-report-custom",selectorBtnFull:".btn-report-full",selectorBtnLabel:".offscreen",btnTitle:"link opens in a new window",btnTitleDisabled:"link is currently disabled"},b||{});this.ui={reportBuilder:a,btnCustom:null,btnFull:null,checkboxes:null,labels:null},this.instance={url:null,numCheckboxes:0,},this.state={values:[],labels:[]},this._initialize()};ABV.ReportBuilder.prototype={_initialize:function(){this.ui.labels=this.ui.reportBuilder.find(this.options.selectorLabels);this.ui.checkboxes=this.ui.reportBuilder.find(this.options.selectorCheckboxes);this.ui.btnCustom=this.ui.reportBuilder.find(this.options.selectorBtnCustom);this.ui.btnFull=this.ui.reportBuilder.find(this.options.selectorBtnFull);this.instance.url=this.ui.btnCustom.attr("href");this.instance.numCheckboxes=this.ui.checkboxes.length;this._addEventListeners();this._updateBuilder()},_updateBuilder:function(){var a,b;this.state.values=[];this.state.labels=[];for(var c=0;c<this.instance.numCheckboxes;c++){a=this.ui.checkboxes.eq(c);b=this.ui.labels.eq(c);if(a.is(":checked")){this.state.values.push(a.val());this.state.labels.push(b.text())}}if(this.state.values.length){this.ui.btnCustom.removeClass(this.options.classDisabled);this.ui.btnCustom.find(this.options.selectorBtnLabel).text(this.options.btnTitle);this.ui.btnCustom.attr({href:this.instance.url+this.state.values.join("-")})}else{this.ui.btnCustom.addClass(this.options.classDisabled);this.ui.btnCustom.find(this.options.selectorBtnLabel).text(this.options.btnTitleDisabled);this.ui.btnCustom.attr({href:"#"})}},_downloadCustom:function(a){var c=this.options.analyticsTitle;if(this.ui.btnCustom.hasClass(this.options.classDisabled)){a.preventDefault()}else{for(var b=0;b<this.state.labels.length;b++){c+=" | "+this.state.labels[b]}ABV.Analytics.onReportBuilderDownload(c)}},_downloadFull:function(){ABV.Analytics.onReportBuilderDownload(this.options.analyticsTitle+" full report")},_addEventListeners:function(){this.ui.checkboxes.on("click",$.proxy(this._updateBuilder,this));this.ui.btnCustom.on("click",$.proxy(this._downloadCustom,this));this.ui.btnFull.on("click",$.proxy(this._downloadFull,this))}};var ABV=ABV||{};ABV.GrantsRecipients=function(a,b){this.options=$.extend({selectorStates:".state-select",selectorCities:".city-select",selectorResults:".grants-results",selectorError:".error",classHidden:"hidden",animSpeed:0.5,animEase:"Expo.easeInOut",animDelay:0.1,animDistance:20},b||{});this.ui={container:a,states:a.find(this.options.selectorStates),cities:a.find(this.options.selectorCities),citiesContainer:a.find(this.options.selectorCities).parent(),results:a.find(this.options.selectorResults),errorMsg:a.find(this.options.selectorError)};this.constant={getAjaxContent:ABV.Utils.getAjaxContent,contentLoader:null};this.state={citiesData:null};this._initialize()};ABV.GrantsRecipients.prototype={_initialize:function(){this.constant.contentLoader=new ABV.Utils.Loader(this.ui.container);this._addEventListeners()},_onStateSelectChange:function(b){b.preventDefault();this.ui.results.empty();this.ui.errorMsg.addClass(this.options.classHidden);var a=$(b.currentTarget).val();if(a.length){this._getCitiesData(a)}},_getCitiesData:function(a){var b=this;this.constant.contentLoader.addLoader();$.when(this.constant.getAjaxContent(a)).done(function(c){b.state.citiesData=c;b._populateCitySelect()}).fail(function(){b._showError()})},_populateCitySelect:function(){var d=this,b=this.state.citiesData,c=this.ui.cities.find("option:first-child"),a;this.constant.contentLoader.removeLoader();this.ui.cities.empty();this.ui.cities.append(c);$.each(b,function(e,f){a='<option value="'+e+'">'+e+"</option>";d.ui.cities.append(a)});TweenMax.fromTo(this.ui.citiesContainer,this.options.animSpeed,{opacity:0},{opacity:1,ease:d.options.animEase,onStart:function(){d.ui.citiesContainer.removeClass(d.options.classHidden)}})},_onCitySelectChange:function(c){c.preventDefault();var d=this,a=$(c.currentTarget).val(),b=d.state.citiesData[a];if(b.length){this._displayResults(b)}},_displayResults:function(a){var d=this,b=a,c;this.ui.results.empty().css("opacity",0);$.each(b,function(e,f){c="<li>"+f+"</li>";d.ui.results.append(c)});TweenMax.to(d.ui.results,d.options.animSpeed,{opacity:1,ease:d.options.animEase,onComplete:function(){d.ui.results.removeAttr("style")}})},_showError:function(){this.constant.contentLoader.removeLoader();this.ui.errorMsg.removeClass(this.options.classHidden)},_addEventListeners:function(){this.ui.states.on("change",$.proxy(this._onStateSelectChange,this));this.ui.cities.on("change",$.proxy(this._onCitySelectChange,this))}};var ABV=ABV||{};ABV.EventsListing=function(a,b){this.options=$.extend({dataAttr:"url",dataCategoryProp:"city",dataEventsProp:"events",selectorCategory:".category-select",selectorTitle:".featured-title",selectorResults:".events-results",selectorItem:"li",selectorError:".error",selectorNoResults:".no-results",classHidden:"hidden",animSpeed:0.5,animEase:"Expo.easeInOut",animDelay:0.1,animDistance:30,htmlEventTemplate:"/assets/abv/templates/events-listing.html"},b||{});this.ui={container:a,select:a.find(this.options.selectorCategory),featuredTitle:a.find(this.options.selectorTitle),results:a.find(this.options.selectorResults),errorMsg:a.find(this.options.selectorError),noResultsMsg:a.find(this.options.selectorNoResults)};this.constant={getAjaxContent:ABV.Utils.getAjaxContent,contentLoader:null,template:null};this.instance={featuredEvents:[],data:null};this._initialize()};ABV.EventsListing.prototype={_initialize:function(){this.constant.contentLoader=new ABV.Utils.Loader(this.ui.container);this._getTemplate()},_getTemplate:function(){var a=this;$.when(this.constant.getAjaxContent(a.options.htmlEventTemplate,"text")).done(function(b){a.constant.template=Handlebars.compile(b);this._getData();this._addEventListeners()}.bind(this)).fail(function(){console.log("error with ajax call")})},_getData:function(){var b=this,a=this.ui.container.data(this.options.dataAttr);if(a.length){this.constant.contentLoader.addLoader();$.when(this.constant.getAjaxContent(a)).done(function(c){b.instance.data=c;b._populateSelect();b._getFeaturedEvents()}).fail(function(){b._showError()})}},_populateSelect:function(){var b=this.instance.data,c=this.ui.select.find("option:first-child"),a;this.constant.contentLoader.removeLoader();this.ui.select.empty();this.ui.select.append(c);$.each(b,function(d){a='<option value="'+b[d][this.options.dataCategoryProp]+'">'+b[d][this.options.dataCategoryProp]+"</option>";this.ui.select.append(a)}.bind(this))},_onSelectChange:function(d){d.preventDefault();var a=$(d.currentTarget).val(),b=this.instance.data,c;$.each(b,function(e,f){if(f[this.options.dataCategoryProp]===a){c=f[this.options.dataEventsProp];this.ui.featuredTitle.addClass(this.options.classHidden);if(c.length){this._displayResults(c)}else{this._displayNoResults()}}}.bind(this))},_getFeaturedEvents:function(){var a=this.instance.data;for(var b=0;b<a.length;b++){if(a[b][this.options.dataEventsProp].length){for(var c=0;c<a[b][this.options.dataEventsProp].length;c++){if(a[b][this.options.dataEventsProp][c].IsFeatured){this.instance.featuredEvents.push(a[b][this.options.dataEventsProp][c])}}}}this._displayResults(this.instance.featuredEvents)},_displayResults:function(b){var e=this,c=b,d=this.constant.template({items:c}),a=$(d).filter(this.options.selectorItem).addClass(this.options.classHidden);this._resetView();this.ui.results.append(a).imagesLoaded(function(){$.each(a,function(g){var f=$(this);TweenMax.fromTo(f,e.options.animSpeed,{opacity:0,x:e.options.animDistance},{opacity:1,x:0,delay:e.options.animDelay*g,ease:e.options.animEase,onStart:function(){f.removeClass(e.options.classHidden)},onComplete:function(){f.removeAttr("style")}})})}.bind(this))},_resetView:function(){this.ui.errorMsg.addClass(this.options.classHidden);this.ui.noResultsMsg.addClass(this.options.classHidden);this.ui.results.empty()},_displayNoResults:function(){var b=this,a=this.ui.noResultsMsg;this._resetView();TweenMax.fromTo(a,b.options.animSpeed,{opacity:0},{opacity:1,ease:b.options.animEase,onStart:function(){a.removeClass(b.options.classHidden)},onComplete:function(){a.removeAttr("style")}})},_showError:function(){this._resetView();this.constant.contentLoader.removeLoader();this.ui.errorMsg.removeClass(this.options.classHidden)},_addEventListeners:function(){this.ui.select.on("change",$.proxy(this._onSelectChange,this))}};var ABV=ABV||{};ABV.TertiaryNavTemplate='<div class="abv-form tertiary-nav">	{{#if title}}<h3>{{{title}}}</h3>{{/if}}	<div class="custom-select">		<label for="tertiary-nav-mobile">select a page</label>		<select id="tertiary-nav-mobile">       <option value="">select a page</option>		{{#each items}}			<option value="{{url}}" {{#if isSelected}}selected{{/if}}>{{{pageName}}}</option>		{{/each}}		</select>	</div></div>';ABV.TertiaryNav=function(a,b){this.options=$.extend({selectorTarget:"#main-content section.primary",selectorFeaturedImg:".featured-image-container",selectorTitle:"h3",classActive:"active"},b||{});this.ui={container:a,targetContainer:null,featuredImage:null,title:null,desktopNavItems:null,mobileNav:null};this.constant={data:{title:null,items:[]}};this._initialize()};ABV.TertiaryNav.prototype={_initialize:function(){this.ui.targetContainer=$(this.options.selectorTarget);this.ui.featuredImage=this.ui.targetContainer.find(this.options.selectorFeaturedImg);this.ui.title=this.ui.container.find(this.options.selectorTitle);this.ui.desktopNavItems=this.ui.container.find("li");this._getData()},_getData:function(){var b=this,a=this.ui.desktopNavItems;if(this.ui.title){this.constant.data.title=this.ui.title.text()}if(a.length){$.each(a,function(){var d=$(this),g=d.hasClass(b.options.classActive),c=d.find("a"),e=c.attr("href"),f=c.text();b.constant.data.items.push({isSelected:g,pageName:f,url:e})})}this._createNav()},_createNav:function(){var b=Handlebars.compile(ABV.TertiaryNavTemplate),a=$(b(this.constant.data));if(this.ui.featuredImage.length){this.ui.featuredImage.after(a)}else{this.ui.targetContainer.prepend(a)}this.ui.mobileNav=a.find("select");this._addEventListeners()},_onSelectChange:function(a){a.preventDefault();var b=$(a.currentTarget).val();if(b){window.location=b}},_addEventListeners:function(){this.ui.mobileNav.on("change",$.proxy(this._onSelectChange,this))}};var ABV=ABV||{};ABV.Forms={init:function(){this._initFormValidation();this._initFormSubmit();this._initPressContactForm();this._addEventListeners()},_initFormSubmit:function(){if(ABV.Constants.isIE8){var a=$(".abv-form");if(a.length){a.on("keydown",function(b){if(b.type==="keydown"&&b.keyCode===13){b.preventDefault();a.find('input[type="submit"]').click()}})}}},_onPressSearchForm:function(c){c.preventDefault();var b=$("#press-search-submit"),a=$("#press-search-term"),f=b.data("search-url"),d=a.attr("name"),e=a.val();window.location=f+"?"+d+"="+e},_initPressContactForm:function(){if($("#press-contact-form").length){this._onPressContactForm()}},_onPressContactForm:function(e){var d=$("#press-contact-form #uxSubject"),b=$("#press-guest-form"),c=$("#press-media-form"),a=$("#press-contact-form p.error"),f=d.val();if(e){e.preventDefault();c.find("input").removeClass("error");a.hide()}if(f.indexOf("media")>-1){c.slideDown();b.slideUp()}if(f.indexOf("guest")>-1){b.slideDown();c.slideUp()}},_initFormValidation:function(){$.validator.addMethod("customemail",function(h,a){var b=true,d=h.split(".")[0],e=h.indexOf(".@"),f=h.indexOf("@."),g=h.indexOf("..");var c=/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/.test(h);if(d.length===0||e!==-1||f!==-1||g!==-1||!c){b=false}return b},"Please enter a valid email address.");if($("#form-email-signup").length){$("#form-email-signup").validate({rules:{EMAIL:{customemail:true},wf_e:{customemail:true}},errorPlacement:function(b,a){if(a.parent().hasClass("checkbox-area")){b.insertAfter(a.next("label"))}else{b.insertBefore(a)}}})}if($("#aspnetForm").length){if($("#press-contact-form").length){$("#aspnetForm").validate({errorPlacement:function(b,a){b.insertBefore(a)},highlight:function(a,b,c){$(a).addClass("error")},unhighlight:function(a,b,c){$(a).removeClass("error")}});$("#uxEmail").rules("add",{customemail:true})}}if($("#aspnetForm").length){if($(".sponsorship-form").length){$("#aspnetForm").validate({errorPlacement:function(b,a){b.insertBefore(a)},highlight:function(a,b,c){$(a).addClass("error")},unhighlight:function(a,b,c){$(a).removeClass("error")}});$("#EmailAddress").rules("add",{customemail:true})}}},_addEventListeners:function(){$("#press-search-submit").on("click",$.proxy(this._onPressSearchForm,this));$("#press-contact-form #uxSubject").on("change",$.proxy(this._onPressContactForm,this))}};var ABV=ABV||{};ABV.Pagination=function(a,c){var b=[{}];this.options=$.extend({JSONobject:b,sourceTemplate:"#source-template",sourceTemplateWrapper:"#source-template-wrapper",maxPagesItems:10,maxPaginationNavItems:10,pages:".pages",pagination:".pagination",prevBTN:".prev",nextBTN:".next"},c||{});this._const={panelActive:"panel-active",navActivePanel:"nav-active-block",navSelectedItem:"nav-item-selected",arrowNavDisable:"inactive",prevButtonSelect:"prev",nextButtonSelect:"next"};this._data={currentPanel:0};this.ui={window:$(window),body:$("body"),pagesRoot:null,pagesList:null,paginationRoot:null,pagination_blocks:null,paginationItems:null,paginationItems_li:null,paginationItems_a:null};this.init()};ABV.Pagination.prototype={init:function(){this._initTemplate();this._updateUI();this._addEventListeners();this._showPanel(0);this._checkArrowNavStatus()},_initTemplate:function(){var b=$(this.options.sourceTemplate).html();var a=Handlebars.compile(b);$(this.options.sourceTemplateWrapper).html(a(this.options.JSONobject))},_updateUI:function(){this.ui.pagesRoot=$(this.options.pages);this.ui.pagesList=$(this.options.pages).find(".item-list");this.ui.paginationRoot=$(this.options.pagination);this.ui.pagination_blocks=$(this.options.pagination).find("ul");this.ui.paginationItems_li=$(this.options.pagination).find("ul li");this.ui.paginationItems_a=$(this.options.pagination).find("ul li a")},_hidePanel:function(){this.ui.pagesRoot.find("."+this._const.panelActive).removeClass(this._const.panelActive);this.ui.paginationRoot.find("ul").removeClass(this._const.navActivePanel);this.ui.paginationItems_li.removeClass(this._const.navSelectedItem)},_showPanel:function(a){if(a.length===0){alert("panel id : undefined");return}this._data.currentPanel=a;this._hidePanel();this._activatePanel();this._activatePaginationPanel();this._activatePaginationItem()},_checkArrowNavStatus:function(){var a=this.ui.paginationItems_li.length;if(a<2){this._removeEventListeners();this._disablePagination()}},_disablePagination:function(){$(this.options.prevBTN).addClass(this._const.arrowNavDisable);$(this.options.nextBTN).addClass(this._const.arrowNavDisable);$(this.options.prevBTN).removeClass("button");$(this.options.nextBTN).removeClass("button");$(this.ui.paginationRoot).hide()},_activatePanel:function(){var b=this._data.currentPanel,a=this.ui.pagesList[b];$(a).addClass(this._const.panelActive)},_activatePaginationPanel:function(){var b=this._data.currentPanel,a=$(this.ui.paginationItems_li[b]).parent();if(!a.hasClass(this._const.navActivePanel)){a.addClass(this._const.navActivePanel)}},_activatePaginationItem:function(){var b=this._data.currentPanel,a=$(this.ui.paginationItems_li[b]);$(a).addClass(this._const.navSelectedItem)},_nextPanel:function(){var a=this.ui.paginationItems_li.length;if(this._data.currentPanel++>=(a-1)){this._data.currentPanel=0}this._showPanel(this._data.currentPanel)},_prevPanel:function(){var a=this.ui.paginationItems_li.length;if(this._data.currentPanel--<=0){this._data.currentPanel=(a-1)}this._showPanel(this._data.currentPanel)},_navClickHandler:function(a){a.preventDefault();var b=$(a.currentTarget).attr("href").split(":")[1];this._showPanel(b);this._data.currentPanel=b},_navArrowClickHandler:function(b){b.preventDefault();var a=this._getButtonDataAction(b.currentTarget);if(a===this._const.nextButtonSelect){this._nextPanel()}else{if(a===this._const.prevButtonSelect){this._prevPanel()}else{alert("button action not defined :: ",a)}}},_getButtonDataAction:function(a){return $(a).data().action},_addEventListeners:function(){this.ui.paginationItems_a.on("click",$.proxy(this._navClickHandler,this));$(this.options.prevBTN).on("click",$.proxy(this._navArrowClickHandler,this));$(this.options.nextBTN).on("click",$.proxy(this._navArrowClickHandler,this))},_removeEventListeners:function(){this.ui.paginationItems_a.off("click",$.proxy(this._navClickHandler,this));$(this.options.prevBTN).off("click",$.proxy(this._navArrowClickHandler,this));$(this.options.nextBTN).off("click",$.proxy(this._navArrowClickHandler,this))}};var ABV=ABV||{};ABV.Application={state:{winWidth:null},init:function(){new HandlebarsHelpers();this.state.winWidth=$(window).width();this._initTertiaryNav();this._initCarousels();this._initAccordions();this._initTabSwitchers();this._initPagination();this._initModals();this._initLoadMore();this._initInlineVideos();this._initPinElement();ABV.Forms.init();this._initFBCommentsTrigger();this._initReportBuilder();this._initGrantsRecipients();this._initEventsListings();this._initDatepicker();this._addEventListeners();ABV.Analytics.init()},_initTertiaryNav:function(){if($(".tertiary-nav").length){$(".tertiary-nav").each(function(){new ABV.TertiaryNav($(this),{})})}},_initCarousels:function(){if($(".carousel").length){$(".carousel").each(function(){var a;if($(this).parents().hasClass("carousel-multi-col")){a=new ABV.Carousel($(this),{numVisiblePanels:3,numVisiblePanelsTablet:2,numVisiblePanelsMobile:1,maxHeight:"tallest",maxHeightMobile:null})}else{if($(this).parents().hasClass("carousel-with-desc")){a=new ABV.Carousel($(this),{maxHeight:"tallest",maxHeightMobile:null})}else{a=new ABV.Carousel($(this),{maxHeight:"landscape",maxHeightMobile:1})}}})}},_initAccordions:function(){if($(".accordion").length){$(".accordion").each(function(){var a;if($(this).hasClass("detect-sidebar")){a=new ABV.Accordion($(this),{detectSidebar:true})}else{a=new ABV.Accordion($(this),{})}})}},_initTabSwitchers:function(){if($(".tab-switcher").length){$(".tab-switcher").each(function(){var a=new ABV.TabSwitcher($(this),{})})}},_initModals:function(){if($(".gallery-collage .modal-gallery-trigger").length){$(".gallery-collage").each(function(){var a=$(this).find(".modal-gallery-trigger");var b=new ABV.ModalGallery(a,{})})}if($(".modal-ajax-trigger").length){$(".modal-ajax-trigger").each(function(){var a=new ABV.ModalAjax($(this),{})})}if($(".modal-video-trigger").length){$(".modal-video-trigger").each(function(){var a=new ABV.ModalVideo($(this),{})})}if($(".modal-trigger").length){$(".modal-trigger").each(function(){var a=new ABV.ModalWindow($(this),{})})}},_initInlineVideos:function(){if($("#main-content .px-video-container").length){$("#main-content .px-video-container").each(function(){var a=new ABV.VideoItem($(this),{})})}},_initPinElement:function(){if($("#sticky-title").length){var a=new ABV.PinElement($("#sticky-title"),{})}},_initLoadMore:function(){if($(".social-wall").length){$(".social-wall").each(function(){var b=new ABV.SocialWall($(this),{})})}if($(".gallery-wall").length){$(".gallery-wall").each(function(){var b=new ABV.GalleryWall($(this),{})})}if($(".load-more-static").length){$(".load-more-static").each(function(){var b=new ABV.LoadMore($(".load-more-static"),{})})}if($(".load-more-ajax").length){$(".load-more-ajax").each(function(){var b=new ABV.LoadMore($(".load-more-ajax"),{isAjaxContent:true})})}if($("#category-filter").length){if($("#category-filter").parents(".EditorWidgets").length){$(".primary .column:last-child").hide()}else{var a=new ABV.LoadMoreFilter($("#category-filter"),{})}}},_initPagination:function(){if($(".pagination-node").length){initPagination()}},_initFBCommentsTrigger:function(){var a=$(".fb-comments-jump"),b=$(".fb-comments-title");if(ABV.Constants.isIDevice){a.addClass("visible");b.addClass("hidden")}else{a.addClass("hidden");b.addClass("visible")}},_initReportBuilder:function(){if($(".report-builder").length){$(".report-builder").each(function(){var a=new ABV.ReportBuilder($(this),{})})}},_initGrantsRecipients:function(){if($(".grants-recipients").length){$(".grants-recipients").each(function(){var a=new ABV.GrantsRecipients($(this),{})})}},_initEventsListings:function(){if($(".events-listing").length){$(".events-listing").each(function(){var a=new ABV.EventsListing($(this),{})})}},_initDatepicker:function(){if($("input.date").length){$("input.date").datepicker({})}},_onSkipLink:function(b){var a=$(b.currentTarget);if(b.type==="focus"){a.css({left:0,top:0})}if(b.type==="blur"){a.removeAttr("style")}if(b.type==="click"){b.preventDefault();if(a.hasClass("filter-jump")){$(a.attr("href")).find("a").first().focus()}else{if(a.hasClass("fb-comments-jump")&&ABV.Constants.isIDevice){var c=$(".facebook-comments iframe");c.focus()}else{$(a.attr("href")).focus()}}}},_onScrollToTarget:function(b){var e=false,a=$(b.currentTarget),c=$(a.attr("href")),d=0;if(b.type==="click"||(b.type==="keydown"&&b.keyCode===13)){b.preventDefault();e=true;if(!c.length){c=$("#top")}ABV.Utils.scrollToElement(c,null,e)}},_addEventListeners:function(){$("a.skip-link").on("focus blur click",$.proxy(this._onSkipLink,this));$("a.btn-back-top").on("keydown click",$.proxy(this._onScrollToTarget,this))}};var ABV=ABV||{};$(document).ready(function(){ABV.Application.init()});