/*!
handlebars v1.3.0
Copyright (C) 2011 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 */ var Handlebars=function(){var a=function(){“use strict”;function a(a){this.string=a}var b;return a.prototype.toString=function(){return“”+this.string},b=a}(),b=function(a){“use strict”;function b(a){return h||“&”}function c(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a=b)}function d(a){return a instanceof g?a.toString():a||0===a?(a=“”+a,j.test(a)?a.replace(i,b):a):“”}function e(a){return a||0===a?m(a)&&0===a.length?!0:!1:!0}var f={},g=a,h={“&”:“&”,“<”:“<”,“>”:“>”,'“':”"“,”'“:”'“,”`“:”`“},”’`“>g,j=//;f.extend=c;var k=Object.prototype.toString;f.toString=k;var l=function(a){return”function“==typeof a};l(/x/)&&(l=function(a){return”function“==typeof a&&”[object Function]“===k.call(a)});var l;f.isFunction=l;var m=Array.isArray||function(a){return a&&”object“==typeof a?”[object Array]“===k.call(a):!1};return f.isArray=m,f.escapeExpression=d,f.isEmpty=e,f}(a),c=function(){”use strict“;function a(a,b){var d;b&&b.firstLine&&(d=b.firstLine,a+=” - “d
”:“+b.firstColumn);for(var e=Error.prototype.constructor.call(this,a),f=0;fa
”'“)}),a.registerHelper(”blockHelperMissing“,function(b,c){var d=c.inverse||function(){},e=c.fn;return m(b)&&(b=b.call(this)),b===!0?e(this):b===!1||null==b?d(this):l(b)?b.length>0?a.helpers.each(b,c):d(this):e(b)}),a.registerHelper(”each“,function(a,b){var c,d=b.fn,e=b.inverse,f=0,g=”“;if(m(a)&&(a=a.call(this)),b.data&&(c=q(b.data)),a&&”object“==typeof a)if(l(a))for(var h=a.length;h>f;f++)c&&(c.index=f,c.first=0===f,c.last=f===a.length-1),g+=d(a,{data:c});else for(var i in a)a.hasOwnProperty(i)&&(c&&(c.key=i,c.index=f,c.first=0===f),g+=d(a,{data:c}),f++);return 0===f&&(g=e(this)),g}),a.registerHelper(”if“,function(a,b){return m(a)&&(a=a.call(this)),!b.hash.includeZero&&!a||g.isEmpty(a)?b.inverse(this):b.fn(this)}),a.registerHelper(”unless“,function(b,c){return a.helpers.call(this,b,{fn:c.inverse,inverse:c.fn,hash:c.hash})}),a.registerHelper(”with“,function(a,b){return m(a)&&(a=a.call(this)),g.isEmpty(a)?void 0:b.fn(a)}),a.registerHelper(”log“,function(b,c){var d=c.data&&null!=c.data.level?parseInt(c.data.level,10):1;a.log(d,b)})}function e(a,b){p.log(a,b)}var f={},g=a,h=b,i=”1.3.0“;f.VERSION=i;var j=4;f.COMPILER_REVISION=j;var k={1:”<= 1.0.rc.2“,2:”== 1.0.0-rc.3“,3:”== 1.0.0-rc.4“,4:”>= 1.0.0“};f.REVISION_CHANGES=k;var l=g.isArray,m=g.isFunction,n=g.toString,o=”[object Object]“;f.HandlebarsEnvironment=c,c.prototype={constructor:c,logger:p,log:e,registerHelper:function(a,b,c){if(n.call(a)===o){if(c||b)throw new h(”Arg not supported with multiple helpers“);g.extend(this.helpers,a)}else c&&(b.not=c),this.helpers=b},registerPartial:function(a,b){n.call(a)===o?g.extend(this.partials,a):this.partials=b}};var p={methodMap:{0:”debug“,1:”info“,2:”warn“,3:”error“},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(a,b){if(p.level<=a){var c=p.methodMap;”undefined“!=typeof console&&console&&console.call(console,b)}}};f.logger=p,f.log=e;var q=function(a){var b={};return g.extend(b,a),b};return f.createFrame=q,f}(b,c),e=function(a,b,c){”use strict“;function d(a){var b=a&&a||1,c=m;if(b!==c){if(c>b){var d=n,e=n;throw new l(”Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (“d
”) or downgrade your runtime to an older version (“e
”).“)}throw new l(”Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version (“a[1]
”).“)}}function e(a,b){if(!b)throw new l(”No environment passed to template“);var c=function(a,c,d,e,f,g){var h=b.VM.invokePartial.apply(this,arguments);if(null!=h)return h;if(b.compile){var i={helpers:e,partials:f,data:g};return f=b.compile(a,{data:void 0!==g},b),f(d,i)}throw new l(”The partial “c
” could not be compiled when running in runtime-only mode“)},d={escapeExpression:k.escapeExpression,invokePartial:c,programs:[],program:function(a,b,c){var d=this.programs;return c?d=g(a,b,c):d||(d=this.programs=g(a,b)),d},merge:function(a,b){var c=a||b;return a&&b&&a!==b&&(c={},k.extend(c,b),k.extend(c,a)),c},programWithDepth:b.VM.programWithDepth,noop:b.VM.noop,compilerInfo:null};return function(c,e){e=e||{};var f,g,h=e.partial?e:b;e.partial||(f=e.helpers,g=e.partials);var i=a.call(d,h,c,f,g,e.data);return e.partial||b.VM.checkRevision(d.compilerInfo),i}}function f(a,b,c){var d=Array.prototype.slice.call(arguments,3),e=function(a,e){return e=e||{},b.apply(this,.concat(d))};return e.program=a,e.depth=d.length,e}function g(a,b,c){var d=function(a,d){return d=d||{},b(a,d.data||c)};return d.program=a,d.depth=0,d}function h(a,b,c,d,e,f){var g={partial:!0,helpers:d,partials:e,data:f};if(void 0===a)throw new l(”The partial “b
” could not be found“);return a instanceof Function?a(c,g):void 0}function i(){return”“}var j={},k=a,l=b,m=c.COMPILER_REVISION,n=c.REVISION_CHANGES;return j.checkRevision=d,j.template=e,j.programWithDepth=f,j.program=g,j.invokePartial=h,j.noop=i,j}(b,c,d),f=function(a,b,c,d,e){”use strict“;var f,g=a,h=b,i=c,j=d,k=e,l=function(){var a=new g.HandlebarsEnvironment;return j.extend(a,g),a.SafeString=h,a.Exception=i,a.Utils=j,a.VM=k,a.template=function(b){return k.template(b,a)},a},m=l();return m.create=l,f=m}(d,a,c,b,e),g=function(a){”use strict“;function b(a){a=a||{},this.firstLine=a.first_line,this.firstColumn=a.first_column,this.lastColumn=a.last_column,this.lastLine=a.last_line}var c,d=a,e={ProgramNode:function(a,c,d,f){var g,h;3===arguments.length?(f=d,d=null):2===arguments.length&&(f=c,c=null),b.call(this,f),this.type=”program“,this.statements=a,this.strip={},d?(h=d,h?(g={first_line:h.firstLine,last_line:h.lastLine,last_column:h.lastColumn,first_column:h.firstColumn},this.inverse=new e.ProgramNode(d,c,g)):this.inverse=new e.ProgramNode(d,c),this.strip.right=c.left):c&&(this.strip.left=c.right)},MustacheNode:function(a,c,d,f,g){if(b.call(this,g),this.type=”mustache“,this.strip=f,null!=d&&d.charAt){var h=d.charAt(3)||d.charAt(2);this.escaped=”{“!==h&&”&“!==h}else this.escaped=!!d;this.sexpr=a instanceof e.SexprNode?a:new e.SexprNode(a,c),this.sexpr.isRoot=!0,this.id=this.sexpr.id,this.params=this.sexpr.params,this.hash=this.sexpr.hash,this.eligibleHelper=this.sexpr.eligibleHelper,this.isHelper=this.sexpr.isHelper},SexprNode:function(a,c,d){b.call(this,d),this.type=”sexpr“,this.hash=c;var e=this.id=a,f=this.params=a.slice(1),g=this.eligibleHelper=e.isSimple;this.isHelper=g&&(f.length||c)},PartialNode:function(a,c,d,e){b.call(this,e),this.type=”partial“,this.partialName=a,this.context=c,this.strip=d},BlockNode:function(a,c,e,f,g){if(b.call(this,g),a.sexpr.id.original!==f.path.original)throw new d(a.sexpr.id.original+” doesn't match “+f.path.original,this);this.type=”block“,this.mustache=a,this.program=c,this.inverse=e,this.strip={left:a.strip.left,right:f.strip.right},(c||e).strip.left=a.strip.right,(e||c).strip.right=f.strip.left,e&&!c&&(this.isInverse=!0)},ContentNode:function(a,c){b.call(this,c),this.type=”content“,this.string=a},HashNode:function(a,c){b.call(this,c),this.type=”hash“,this.pairs=a},IdNode:function(a,c){b.call(this,c),this.type=”ID“;for(var e=”“,f=[],g=0,h=0,i=a.length;i>h;h++){var j=a.part;if(e+=(a.separator||”“)+j,”..“===j||”.“===j||”this“===j){if(f.length>0)throw new d(”Invalid path: “+e,this);”..“===j?g++:this.isScoped=!0}else f.push(j)}this.original=e,this.parts=f,this.string=f.join(”.“),this.depth=g,this.isSimple=1===a.length&&!this.isScoped&&0===g,this.stringModeValue=this.string},PartialNameNode:function(a,c){b.call(this,c),this.type=”PARTIAL_NAME“,this.name=a.original},DataNode:function(a,c){b.call(this,c),this.type=”DATA“,this.id=a},StringNode:function(a,c){b.call(this,c),this.type=”STRING“,this.original=this.string=this.stringModeValue=a},IntegerNode:function(a,c){b.call(this,c),this.type=”INTEGER“,this.original=this.integer=a,this.stringModeValue=Number(a)},BooleanNode:function(a,c){b.call(this,c),this.type=”BOOLEAN“,this.bool=a,this.stringModeValue=”true“===a},CommentNode:function(a,c){b.call(this,c),this.type=”comment“,this.comment=a}};return c=e}©,h=function(){”use strict“;var a,b=function(){function a(a,b){return{left:”~“===a.charAt(2),right:”~“===b.charAt(0)||”~“===b.charAt(1)}}function b(){this.yy={}}var c={trace:function(){},yy:{},symbols_:{error:2,root:3,statements:4,EOF:5,program:6,simpleInverse:7,statement:8,openInverse:9,closeBlock:10,openBlock:11,mustache:12,partial:13,CONTENT:14,COMMENT:15,OPEN_BLOCK:16,sexpr:17,CLOSE:18,OPEN_INVERSE:19,OPEN_ENDBLOCK:20,path:21,OPEN:22,OPEN_UNESCAPED:23,CLOSE_UNESCAPED:24,OPEN_PARTIAL:25,partialName:26,partial_option0:27,sexpr_repetition0:28,sexpr_option0:29,dataName:30,param:31,STRING:32,INTEGER:33,BOOLEAN:34,OPEN_SEXPR:35,CLOSE_SEXPR:36,hash:37,hash_repetition_plus0:38,hashSegment:39,ID:40,EQUALS:41,DATA:42,pathSegments:43,SEP:44,$accept:0,$end:1},terminals_:{2:”error“,5:”EOF“,14:”CONTENT“,15:”COMMENT“,16:”OPEN_BLOCK“,18:”CLOSE“,19:”OPEN_INVERSE“,20:”OPEN_ENDBLOCK“,22:”OPEN“,23:”OPEN_UNESCAPED“,24:”CLOSE_UNESCAPED“,25:”OPEN_PARTIAL“,32:”STRING“,33:”INTEGER“,34:”BOOLEAN“,35:”OPEN_SEXPR“,36:”CLOSE_SEXPR“,40:”ID“,41:”EQUALS“,42:”DATA“,44:”SEP“},productions_:[0,,[3,1],,[6,3],,[6,1],,[6,0],,[4,2],,[8,3],,[8,1],,[8,1],,[9,3],,[12,3],,[13,4],,[17,3],,[31,1],,[31,1],,[31,1],,[37,1],,[26,1],,[26,1],,[21,1],,[43,1],,[27,1],,[28,2],,[29,1],,[38,2]],performAction:function(b,c,d,e,f,g){var h=g.length-1;switch(f){case 1:return new e.ProgramNode(g,this._$);case 2:return new e.ProgramNode([],this._$);case 3:this.$=new e.ProgramNode([],g,g,this._$);break;case 4:this.$=new e.ProgramNode(g,g,g,this._$);break;case 5:this.$=new e.ProgramNode(g,g,[],this._$);break;case 6:this.$=new e.ProgramNode(g,this._$);break;case 7:this.$=new e.ProgramNode([],this._$);break;case 8:this.$=new e.ProgramNode([],this._$);break;case 9:this.$=[g];break;case 10:g.push(g),this.$=g;break;case 11:this.$=new e.BlockNode(g,g.inverse,g,g,this._$);break;case 12:this.$=new e.BlockNode(g,g,g.inverse,g,this._$);break;case 13:this.$=g;break;case 14:this.$=g;break;case 15:this.$=new e.ContentNode(g,this._$);break;case 16:this.$=new e.CommentNode(g,this._$);break;case 17:this.$=new e.MustacheNode(g,null,g,a(g,g),this._$);break;case 18:this.$=new e.MustacheNode(g,null,g,a(g,g),this._$);break;case 19:this.$={path:g,strip:a(g,g)};break;case 20:this.$=new e.MustacheNode(g,null,g,a(g,g),this._$);break;case 21:this.$=new e.MustacheNode(g,null,g,a(g,g),this._$);break;case 22:this.$=new e.PartialNode(g,g,a(g,g),this._$);break;case 23:this.$=a(g,g);break;case 24:this.$=new e.SexprNode([g].concat(g),g,this._$);break;case 25:this.$=new e.SexprNode([g],null,this._$);break;case 26:this.$=g;break;case 27:this.$=new e.StringNode(g,this._$);break;case 28:this.$=new e.IntegerNode(g,this._$);break;case 29:this.$=new e.BooleanNode(g,this._$);break;case 30:this.$=g;break;case 31:g.isHelper=!0,this.$=g;break;case 32:this.$=new e.HashNode(g,this._$);break;case 33:this.$=[g,g];break;case 34:this.$=new e.PartialNameNode(g,this._$);break;case 35:this.$=new e.PartialNameNode(new e.StringNode(g,this._$),this._$);break;case 36:this.$=new e.PartialNameNode(new e.IntegerNode(g,this._$));break;case 37:this.$=new e.DataNode(g,this._$);break;case 38:this.$=new e.IdNode(g,this._$);break;case 39:g.push({part:g,separator:g}),this.$=g;break;case 40:this.$=[{part:g}];break;case 43:this.$=[];break;case 44:g.push(g);break;case 47:this.$=[g];break;case 48:g.push(g)}},table:[{3:1,4:2,5:,8:4,9:5,11:6,12:7,13:8,14:,15:,16:,19:,22:,23:,25:},{1:},{5:,8:17,9:5,11:6,12:7,13:8,14:,15:,16:,19:,22:,23:,25:},{1:},{5:,14:,15:,16:,19:,20:,22:,23:,25:},{4:20,6:18,7:19,8:4,9:5,11:6,12:7,13:8,14:,15:,16:,19:,20:,22:,23:,25:},{4:20,6:22,7:19,8:4,9:5,11:6,12:7,13:8,14:,15:,16:,19:,20:,22:,23:,25:},{5:,14:,15:,16:,19:,20:,22:,23:,25:},{5:,14:,15:,16:,19:,20:,22:,23:,25:},{5:,14:,15:,16:,19:,20:,22:,23:,25:},{5:,14:,15:,16:,19:,20:,22:,23:,25:},{17:23,21:24,30:25,40:,42:,43:26},{17:29,21:24,30:25,40:,42:,43:26},{17:30,21:24,30:25,40:,42:,43:26},{17:31,21:24,30:25,40:,42:,43:26},{21:33,26:32,32:,33:,40:,43:26},{1:},{5:,14:,15:,16:,19:,20:,22:,23:,25:},{10:36,20:},{4:38,8:4,9:5,11:6,12:7,13:8,14:,15:,16:,19:,20:,22:,23:,25:},{7:39,8:17,9:5,11:6,12:7,13:8,14:,15:,16:,19:,20:,22:,23:,25:},{17:23,18:,21:24,30:25,40:,42:,43:26},{10:41,20:},{18:},{18:,24:,28:43,32:,33:,34:,35:,36:,40:,42:},{18:,24:,36:},{18:,24:,32:,33:,34:,35:,36:,40:,42:,44:},{21:45,40:,43:26},{18:,24:,32:,33:,34:,35:,36:,40:,42:,44:},{18:},{18:},{24:},{18:,21:50,27:49,40:,43:26},{18:,40:},{18:,40:},{18:,40:},{5:,14:,15:,16:,19:,20:,22:,23:,25:},{21:51,40:,43:26},{8:17,9:5,11:6,12:7,13:8,14:,15:,16:,19:,20:,22:,23:,25:},{4:52,8:4,9:5,11:6,12:7,13:8,14:,15:,16:,19:,20:,22:,23:,25:},{14:,15:,16:,19:,20:,22:,23:,25:},{5:,14:,15:,16:,19:,20:,22:,23:,25:},{14:,15:,16:,19:,20:,22:,23:,25:},{18:,21:56,24:,29:53,30:60,31:54,32:,33:,34:,35:,36:,37:55,38:62,39:63,40:,42:,43:26},{40:},{18:,24:,32:,33:,34:,35:,36:,40:,42:},{14:,15:,16:,19:,20:,22:,23:,25:},{5:,14:,15:,16:,19:,20:,22:,23:,25:},{5:,14:,15:,16:,19:,20:,22:,23:,25:},{18:},{18:},{18:},{8:17,9:5,11:6,12:7,13:8,14:,15:,16:,19:,20:,22:,23:,25:},{18:,24:,36:},{18:,24:,32:,33:,34:,35:,36:,40:,42:},{18:,24:,36:},{18:,24:,32:,33:,34:,35:,36:,40:,42:},{18:,24:,32:,33:,34:,35:,36:,40:,42:},{18:,24:,32:,33:,34:,35:,36:,40:,42:},{18:,24:,32:,33:,34:,35:,36:,40:,42:},{18:,24:,32:,33:,34:,35:,36:,40:,42:},{17:68,21:24,30:25,40:,42:,43:26},{18:,24:,36:,39:69,40:},{18:,24:,36:,40:},{18:,24:,32:,33:,34:,35:,36:,40:,41:,42:,44:},{18:,24:,32:,33:,34:,35:,36:,40:,42:,44:},{5:,14:,15:,16:,19:,20:,22:,23:,25:},{5:,14:,15:,16:,19:,20:,22:,23:,25:},{36:},{18:,24:,36:,40:},{41:},{21:56,30:60,31:73,32:,33:,34:,35:,40:,42:,43:26},{18:,24:,32:,33:,34:,35:,36:,40:,42:},{18:,24:,36:,40:}],defaultActions:{3:,16:,50:},parseError:function(a){throw new Error(a)},parse:function(a){function b(){var a;return a=c.lexer.lex()||1,”number“!=typeof a&&(a=c.symbols_||a),a}var c=this,d=,e=,f=[],g=this.table,h=”“,i=0,j=0,k=0;this.lexer.setInput(a),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,”undefined“==typeof this.lexer.yylloc&&(this.lexer.yylloc={});var l=this.lexer.yylloc;f.push(l);var m=this.lexer.options&&this.lexer.options.ranges;”function“==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var n,o,p,q,r,s,t,u,v,w={};;){if(p=d,this.defaultActions?q=this.defaultActions:((null===n||”undefined“==typeof n)&&(n=b()),q=g&&g[n]),”undefined“==typeof q||!q.length||!q){var x=”“;if(!k){v=[];for(s in g)this.terminals_&&s>2&&v.push(”‘“this.terminals_[s]
”'“);x=this.lexer.showPosition?”Parse error on line “+(i+1)+”:n“+this.lexer.showPosition()+”nExpecting “+v.join(”, “)+”, got '“+(this.terminals_||n)+”'“:”Parse error on line “+(i+1)+”: Unexpected “+(1==n?”end of input“:”’“+(this.terminals_||n)+”'“),this.parseError(x,{text:this.lexer.match,token:this.terminals_||n,line:this.lexer.yylineno,loc:l,expected:v})}}if(qinstanceof Array&&q.length>1)throw new Error(”Parse Error: multiple actions possible at state: “p
”, token: “+n);switch(q){case 1:d.push(n),e.push(this.lexer.yytext),f.push(this.lexer.yylloc),d.push(q),n=null,o?(n=o,o=null):(j=this.lexer.yyleng,h=this.lexer.yytext,i=this.lexer.yylineno,l=this.lexer.yylloc,k>0&&k–);break;case 2:if(t=this.productions_[q][1],w.$=e,w._$={first_line:f.first_line,last_line:f.last_line,first_column:f.first_column,last_column:f.last_column},m&&(w._$.range=[f.range,f.range]),r=this.performAction.call(w,h,j,i,this.yy,q,e,f),”undefined“!=typeof r)return r;t&&(d=d.slice(0,-1*t*2),e=e.slice(0,-1*t),f=f.slice(0,-1*t)),d.push(this.productions_[q][0]),e.push(w.$),f.push(w._$),u=g[d][d],d.push(u);break;case 3:return!0}}return!0}},d=function(){var a={EOF:1,parseError:function(a,b){if(!this.yy.parser)throw new Error(a);this.yy.parser.parseError(a,b)},setInput:function(a){return this._input=a,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=”“,this.conditionStack=,this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=),this.offset=0,this},input:function(){var a=this._input;this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var b=a.match(/(?:rn?|n).*/g);return b?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range++,this._input=this._input.slice(1),a},unput:function(a){var b=a.length,c=a.split(/(?:rn?|n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b-1),this.offset-=b;var d=this.match.split(/(?:rn?|n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var e=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:c?(c.length===d.length?this.yylloc.first_column:0)+d.length-c.length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e,e+this.yyleng-b]),this},more:function(){return this._more=!0,this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?”…“:”“)+a.substr(-20).replace(/n/g,”“)},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?”…“:”“)).replace(/n/g,”“)},showPosition:function(){var a=this.pastInput(),b=new Array(a.length+1).join(”-“);return a+this.upcomingInput()+”n“b
”^“},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,b,c,d,e;this._more||(this.yytext=”“,this.match=”“);for(var f=this._currentRules(),g=0;ga.name
”=“+a.value);else{b=[];for(var h=0;hb
”]“:d.isValidJavaScriptVariableName(b)?a+”.“b:a
”[‘“b
”’]“,c?”(“a
” && “e
”)“:e},compilerInfo:function(){var a=f,b=g;return”this.compilerInfo = [“a
”,'“b
”'];n“},appendToBuffer:function(a){return this.environment.isSimple?”return “a
”;“:{appendToBuffer:!0,content:a,toString:function(){return”buffer += “a
”;“}}},initializeBuffer:function(){return this.quotedString(”“)},namespace:”Handlebars“,compile:function(a,b,c,d){this.environment=a,this.options=b||{},h(”debug“,this.environment.disassemble()+”nn“),this.name=this.environment.name,this.isChild=!!c,this.context=c||{programs:[],environments:,aliases:{}},this.preamble(),this.stackSlot=0,this.stackVars=[],this.registers={list:},this.hashes=[],this.compileStack=,this.inlineStack=[],this.compileChildren(a,b); var e,f=a.opcodes;this.i=0;for(var g=f.length;this.ib
”.helpers);“;this.environment.usePartial&&(c=c+” partials = this.merge(partials, “b
”.partials);“),this.options.data&&(c+=” data = data || {};“),a.push©}this.environment.isSimple?a.push(”“):a.push(”, buffer = “+this.initializeBuffer()),this.lastContext=0,this.source=a},createFunctionContext:function(a){var b=this.stackVars.concat(this.registers.list);if(b.length>0&&(this.source=this.source+”, “+b.join(”, “)),!this.isChild)for(var c in this.context.aliases)this.context.aliases.hasOwnProperty©&&(this.source=this.source+”, “c
”=“+this.context.aliases);this.source&&(this.source=”var “+this.source.substring(2)+”;“),this.isChild||(this.source+=”n“+this.context.programs.join(”n“)+”n“),this.environment.isSimple||this.pushSource(”return buffer;“);for(var d=this.isChild?:[”Handlebars“,”depth0“,”helpers“,”partials“,”data“],e=0,f=this.environment.depths.list.length;f>e;e++)d.push(”depth“+this.environment.depths.list);var g=this.mergeSource();if(this.isChild||(g=this.compilerInfo()+g),a)return d.push(g),Function.apply(this,d);var i=”function “+(this.name||”“)+”(“+d.join(”,“)+”) {n “g
”}“;return h(”debug“,i+”nn“),i},mergeSource:function(){for(var a,b=”“,c=0,d=this.source.length;d>c;c++){var e=this.source;e.appendToBuffer?a=a?a+”n + “+e.content:e.content:(a&&(b+=”buffer += “a
”;n “,a=void 0),b+=e+”n “)}return b},blockValue:function(){this.context.aliases.blockHelperMissing=”helpers.blockHelperMissing“;var a=;this.setupParams(0,a),this.replaceStack(function(b){return a.splice(1,0,b),”blockHelperMissing.call(“+a.join(”, “)+”)“})},ambiguousBlockValue:function(){this.context.aliases.blockHelperMissing=”helpers.blockHelperMissing“;var a=;this.setupParams(0,a);var b=this.topStack();a.splice(1,0,b),this.pushSource(”if (!“this.lastHelper
”) { “b
” = blockHelperMissing.call(“+a.join(”, “)+”); }“)},appendContent:function(a){this.pendingContent&&(a=this.pendingContent+a),this.stripNext&&(a=a.replace(/^s+/,”“)),this.pendingContent=a},strip:function(){this.pendingContent&&(this.pendingContent=this.pendingContent.replace(/s+$/,”“)),this.stripNext=”strip“},append:function(){this.flushInline();var a=this.popStack();this.pushSource(”if(“a
” || “a
” === 0) { “+this.appendToBuffer(a)+” }“),this.environment.isSimple&&this.pushSource(”else { “+this.appendToBuffer(”''“)+” }“)},appendEscaped:function(){this.context.aliases.escapeExpression=”this.escapeExpression“,this.pushSource(this.appendToBuffer(”escapeExpression(“+this.popStack()+”)“))},getContext:function(a){this.lastContext!==a&&(this.lastContext=a)},lookupOnContext:function(a){this.push(this.nameLookup(”depth“+this.lastContext,a,”context“))},pushContext:function(){this.pushStackLiteral(”depth“+this.lastContext)},resolvePossibleLambda:function(){this.context.aliases.functionType='”function“',this.replaceStack(function(a){return”typeof “a
” === functionType ? “a
”.apply(depth0) : “+a})},lookup:function(a){this.replaceStack(function(b){return b+” == null || “b
” === false ? “b
” : “+this.nameLookup(b,a,”context“)})},lookupData:function(){this.pushStackLiteral(”data“)},pushStringParam:function(a,b){this.pushStackLiteral(”depth“+this.lastContext),this.pushString(b),”sexpr“!==b&&(”string“==typeof a?this.pushString(a):this.pushStackLiteral(a))},emptyHash:function(){this.pushStackLiteral(”{}“),this.options.stringParams&&(this.push(”{}“),this.push(”{}“))},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:[],types:,contexts:[]}},popHash:function(){var a=this.hash;this.hash=this.hashes.pop(),this.options.stringParams&&(this.push(”{“+a.contexts.join(”,“)+”}“),this.push(”{“+a.types.join(”,“)+”}“)),this.push(”{n “+a.values.join(”,n “)+”n }“)},pushString:function(a){this.pushStackLiteral(this.quotedString(a))},push:function(a){return this.inlineStack.push(a),a},pushLiteral:function(a){this.pushStackLiteral(a)},pushProgram:function(a){null!=a?this.pushStackLiteral(this.programExpression(a)):this.pushStackLiteral(null)},invokeHelper:function(a,b,c){this.context.aliases.helperMissing=”helpers.helperMissing“,this.useRegister(”helper“);var d=this.lastHelper=this.setupHelper(a,b,!0),e=this.nameLookup(”depth“+this.lastContext,b,”context“),f=”helper = “d.name
” || “+e;d.paramsInit&&(f+=”,“+d.paramsInit),this.push(”(“f
”,helper ? helper.call(“d.callParams
”) : helperMissing.call(“d.helperMissingParams
”))“),c||this.flushInline()},invokeKnownHelper:function(a,b){var c=this.setupHelper(a,b);this.push(c.name+”.call(“c.callParams
”)“)},invokeAmbiguous:function(a,b){this.context.aliases.functionType='”function“',this.useRegister(”helper“),this.emptyHash();var c=this.setupHelper(0,a,b),d=this.lastHelper=this.nameLookup(”helpers“,a,”helper“),e=this.nameLookup(”depth“+this.lastContext,a,”context“),f=this.nextStack();c.paramsInit&&this.pushSource(c.paramsInit),this.pushSource(”if (helper = “d
”) { “f
” = helper.call(“c.callParams
”); }“),this.pushSource(”else { helper = “e
”; “f
” = typeof helper === functionType ? helper.call(“c.callParams
”) : helper; }“)},invokePartial:function(a){var b=[this.nameLookup(”partials“,a,”partial“),”‘“a
”’“,this.popStack(),”helpers“,”partials“];this.options.data&&b.push(”data“),this.context.aliases.self=”this“,this.push(”self.invokePartial(“+b.join(”, “)+”)“)},assignToHash:function(a){var b,c,d=this.popStack();this.options.stringParams&&(c=this.popStack(),b=this.popStack());var e=this.hash;b&&e.contexts.push(”'“a
”': “+b),c&&e.types.push(”'“a
”': “+c),e.values.push(”'“a
”': (“d
”)“)},compiler:d,compileChildren:function(a,b){for(var c,d,e=a.children,f=0,g=e.length;g>f;f++){c=e,d=new this.compiler;var h=this.matchExistingProgram©;null==h?(this.context.programs.push(”“),h=this.context.programs.length,c.index=h,c.name=”program“+h,this.context.programs=d.compile(c,b,this.context),this.context.environments=c):(c.index=h,c.name=”program“+h)}},matchExistingProgram:function(a){for(var b=0,c=this.context.environments.length;c>b;b++){var d=this.context.environments;if(d&&d.equals(a))return b}},programExpression:function(a){if(this.context.aliases.self=”this“,null==a)return”self.noop“;for(var b,c=this.environment.children,d=c.depths.list,e=,f=0,g=d.length;g>f;f++)b=d,1===b?e.push(”depth0“):e.push(”depth“+(b-1));return(0===d.length?”self.program(“:”self.programWithDepth(“)+e.join(”, “)+”)“},register:function(a,b){this.useRegister(a),this.pushSource(a+” = “b
”;“)},useRegister:function(a){this.registers||(this.registers=!0,this.registers.list.push(a))},pushStackLiteral:function(a){return this.push(new c(a))},pushSource:function(a){this.pendingContent&&(this.source.push(this.appendToBuffer(this.quotedString(this.pendingContent))),this.pendingContent=void 0),a&&this.source.push(a)},pushStack:function(a){this.flushInline();var b=this.incrStack();return a&&this.pushSource(b+” = “a
”;“),this.compileStack.push(b),b},replaceStack:function(a){var b,d,e,f=”“,g=this.isInline();if(g){var h=this.popStack(!0);if(h instanceof c)b=h.value,e=!0;else{d=!this.stackSlot;var i=d?this.incrStack():this.topStackName();f=”(“+this.push(i)+” = “h
”),“,b=this.topStack()}}else b=this.topStack();var j=a.call(this,b);return g?(e||this.popStack(),d&&this.stackSlot–,this.push(”(“+f+j+”)“)):(/^stack/.test(b)||(b=this.nextStack()),this.pushSource(b+” = (“+f+j+”);“)),b},nextStack:function(){return this.pushStack()},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 a=this.inlineStack;if(a.length){this.inlineStack=[];for(var b=0,d=a.length;d>b;b++){var e=a;e instanceof c?this.compileStack.push(e):this.pushStack(e)}}},isInline:function(){return this.inlineStack.length},popStack:function(a){var b=this.isInline(),d=(b?this.inlineStack:this.compileStack).pop();if(!a&&d instanceof c)return d.value;if(!b){if(!this.stackSlot)throw new i(”Invalid stack pop“);this.stackSlot–}return d},topStack:function(a){var b=this.isInline()?this.inlineStack:this.compileStack,d=b;return!a&&d instanceof c?d.value:d},quotedString:function(a){return'”'+a.replace(/\/g,“\\”).replace(/“/g,'\”').replace(/n/g,“\n”).replace(/r/g,“\r”).replace(/u2028/g,“\u2028”).replace(/u2029/g,“\u2029”)+'“'},setupHelper:function(a,b,c){var d=[],e=this.setupParams(a,d,c),f=this.nameLookup(”helpers“,b,”helper“);return{params:d,paramsInit:e,name:f,callParams:.concat(d).join(”, “),helperMissingParams:c&&.concat(d).join(”, “)}},setupOptions:function(a,b){var c,d,e,f=[],g=,h=[];f.push(”hash:“+this.popStack()),this.options.stringParams&&(f.push(”hashTypes:“+this.popStack()),f.push(”hashContexts:“+this.popStack())),d=this.popStack(),e=this.popStack(),(e||d)&&(e||(this.context.aliases.self=”this“,e=”self.noop“),d||(this.context.aliases.self=”this“,d=”self.noop“),f.push(”inverse:“+d),f.push(”fn:“+e));for(var i=0;a>i;i++)c=this.popStack(),b.push©,this.options.stringParams&&(h.push(this.popStack()),g.push(this.popStack()));return this.options.stringParams&&(f.push(”contexts:“),f.push(”types:“)),this.options.data&&f.push(”data:data“),f},setupParams:function(a,b,c){var d=”{“+this.setupOptions(a,b).join(”,“)+”}“;return c?(this.useRegister(”options“),b.push(”options“),”options=“+d):(b.push(d),”“)}};for(var j=”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“.split(” “),k=d.RESERVED_WORDS={},l=0,m=j.length;m>l;l++)k[j]=!0;return d.isValidJavaScriptVariableName=function(a){return!d.RESERVED_WORDS&&/^[a-zA-Z_$]*$/.test(a)?!0:!1},e=d}(d,c),l=function(a,b,c,d,e){”use strict“;var f,g=a,h=b,i=c.parser,j=c.parse,k=d.Compiler,l=d.compile,m=d.precompile,n=e,o=g.create,p=function(){var a=o();return a.compile=function(b,c){return l(b,c,a)},a.precompile=function(b,c){return m(b,c,a)},a.AST=h,a.Compiler=k,a.JavaScriptCompiler=n,a.Parser=i,a.parse=j,a};return g=p(),g.create=p,f=g}(f,g,i,j,k);return l}();