!function(a,b){"function"==typeof define&&define.amd?define([],b):"object"==typeof exports?module.exports=b():a.handlebars=a.handlebars||b()}(this,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 i[a]}function c(a){for(var b=1;b":">",'"':""","'":"'","`":"`"},j=/[&<>"'`]/g,k=/[&<>"'`]/;g.extend=c;var l=object.prototype.tostring;g.tostring=l;var m=function(a){return"function"==typeof a};m(/x/)&&(m=function(a){return"function"==typeof a&&"[object function]"===l.call(a)});var m;g.isfunction=m;var n=array.isarray||function(a){return a&&"object"==typeof a?"[object array]"===l.call(a):!1};return g.isarray=n,g.escapeexpression=d,g.isempty=e,g.appendcontextpath=f,g}(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;f0?(c.ids&&(c.ids=[c.name]),a.helpers.each(b,c)):d(this);if(c.data&&c.ids){var g=q(c.data);g.contextpath=f.appendcontextpath(c.data.contextpath,c.name),c={data:g}}return e(b,c)}),a.registerhelper("each",function(a,b){if(!b)throw new g("must pass iterator to #each");var c,d,e=b.fn,h=b.inverse,i=0,j="";if(b.data&&b.ids&&(d=f.appendcontextpath(b.data.contextpath,b.ids[0])+"."),l(a)&&(a=a.call(this)),b.data&&(c=q(b.data)),a&&"object"==typeof a)if(k(a))for(var m=a.length;m>i;i++)c&&(c.index=i,c.first=0===i,c.last=i===a.length-1,d&&(c.contextpath=d+i)),j+=e(a[i],{data:c});else for(var n in a)a.hasownproperty(n)&&(c&&(c.key=n,c.index=i,c.first=0===i,d&&(c.contextpath=d+n)),j+=e(a[n],{data:c}),i++);return 0===i&&(j=h(this)),j}),a.registerhelper("if",function(a,b){return l(a)&&(a=a.call(this)),!b.hash.includezero&&!a||f.isempty(a)?b.inverse(this):b.fn(this)}),a.registerhelper("unless",function(b,c){return a.helpers["if"].call(this,b,{fn:c.inverse,inverse:c.fn,hash:c.hash})}),a.registerhelper("with",function(a,b){l(a)&&(a=a.call(this));var c=b.fn;if(f.isempty(a))return b.inverse(this);if(b.data&&b.ids){var d=q(b.data);d.contextpath=f.appendcontextpath(b.data.contextpath,b.ids[0]),b={data:d}}return c(a,b)}),a.registerhelper("log",function(b,c){var d=c.data&&null!=c.data.level?parseint(c.data.level,10):1;a.log(d,b)}),a.registerhelper("lookup",function(a,b){return a&&a[b]})}var e={},f=a,g=b,h="2.0.0";e.version=h;var i=6;e.compiler_revision=i;var j={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"};e.revision_changes=j;var k=f.isarray,l=f.isfunction,m=f.tostring,n="[object object]";e.handlebarsenvironment=c,c.prototype={constructor:c,logger:o,log:p,registerhelper:function(a,b){if(m.call(a)===n){if(b)throw new g("arg not supported with multiple helpers");f.extend(this.helpers,a)}else this.helpers[a]=b},unregisterhelper:function(a){delete this.helpers[a]},registerpartial:function(a,b){m.call(a)===n?f.extend(this.partials,a):this.partials[a]=b},unregisterpartial:function(a){delete this.partials[a]}};var o={methodmap:{0:"debug",1:"info",2:"warn",3:"error"},debug:0,info:1,warn:2,error:3,level:3,log:function(a,b){if(o.level<=a){var c=o.methodmap[a];"undefined"!=typeof console&&console[c]&&console[c].call(console,b)}}};e.logger=o;var p=o.log;e.log=p;var q=function(a){var b=f.extend({},a);return b._parent=a,b};return e.createframe=q,e}(b,c),e=function(a,b,c){"use strict";function d(a){var b=a&&a[0]||1,c=m;if(b!==c){if(c>b){var d=n[c],e=n[b];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");if(!a||!a.main)throw new l("unknown template object: "+typeof a);b.vm.checkrevision(a.compiler);var c=function(c,d,e,f,g,h,i,j,m){g&&(f=k.extend({},f,g));var n=b.vm.invokepartial.call(this,c,e,f,h,i,j,m);if(null==n&&b.compile){var o={helpers:h,partials:i,data:j,depths:m};i[e]=b.compile(c,{data:void 0!==j,compat:a.compat},b),n=i[e](f,o)}if(null!=n){if(d){for(var p=n.split("\n"),q=0,r=p.length;r>q&&(p[q]||q+1!==r);q++)p[q]=d+p[q];n=p.join("\n")}return n}throw new l("the partial "+e+" could not be compiled when running in runtime-only mode")},d={lookup:function(a,b){for(var c=a.length,d=0;c>d;d++)if(a[d]&&null!=a[d][b])return a[d][b]},lambda:function(a,b){return"function"==typeof a?a.call(b):a},escapeexpression:k.escapeexpression,invokepartial:c,fn:function(b){return a[b]},programs:[],program:function(a,b,c){var d=this.programs[a],e=this.fn(a);return b||c?d=f(this,a,e,b,c):d||(d=this.programs[a]=f(this,a,e)),d},data:function(a,b){for(;a&&b--;)a=a._parent;return a},merge:function(a,b){var c=a||b;return a&&b&&a!==b&&(c=k.extend({},b,a)),c},noop:b.vm.noop,compilerinfo:a.compiler},e=function(b,c){c=c||{};var f=c.data;e._setup(c),!c.partial&&a.usedata&&(f=i(b,f));var g;return a.usedepths&&(g=c.depths?[b].concat(c.depths):[b]),a.main.call(d,b,d.helpers,d.partials,f,g)};return e.istop=!0,e._setup=function(c){c.partial?(d.helpers=c.helpers,d.partials=c.partials):(d.helpers=d.merge(c.helpers,b.helpers),a.usepartial&&(d.partials=d.merge(c.partials,b.partials)))},e._child=function(b,c,e){if(a.usedepths&&!e)throw new l("must pass parent depths");return f(d,b,a[b],c,e)},e}function f(a,b,c,d,e){var f=function(b,f){return f=f||{},c.call(a,b,a.helpers,a.partials,f.data||d,e&&[b].concat(e))};return f.program=b,f.depth=e?e.length:0,f}function g(a,b,c,d,e,f,g){var h={partial:!0,helpers:d,partials:e,data:f,depths:g};if(void 0===a)throw new l("the partial "+b+" could not be found");return a instanceof function?a(c,h):void 0}function h(){return""}function i(a,b){return b&&"root"in b||(b=b?o(b):{},b.root=a),b}var j={},k=a,l=b,m=c.compiler_revision,n=c.revision_changes,o=c.createframe;return j.checkrevision=d,j.template=e,j.program=f,j.invokepartial=g,j.noop=h,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.escapeexpression=j.escapeexpression,a.vm=k,a.template=function(b){return k.template(b,a)},a},m=l();return m.create=l,m["default"]=m,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){b.call(this,d),this.type="program",this.statements=a,this.strip=c},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.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[0],f=this.params=a.slice(1);this.ishelper=!(!f.length&&!c),this.eligiblehelper=this.ishelper||e.issimple},partialnode:function(a,c,d,e,f){b.call(this,f),this.type="partial",this.partialname=a,this.context=c,this.hash=d,this.strip=e,this.strip.inlinestandalone=!0},blocknode:function(a,c,d,e,f){b.call(this,f),this.type="block",this.mustache=a,this.program=c,this.inverse=d,this.strip=e,d&&!c&&(this.isinverse=!0)},rawblocknode:function(a,c,f,g){if(b.call(this,g),a.sexpr.id.original!==f)throw new d(a.sexpr.id.original+" doesn't match "+f,this);c=new e.contentnode(c,g),this.type="block",this.mustache=a,this.program=new e.programnode([c],{},g)},contentnode:function(a,c){b.call(this,c),this.type="content",this.original=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="",i=0,j=a.length;j>i;i++){var k=a[i].part;if(e+=(a[i].separator||"")+k,".."===k||"."===k||"this"===k){if(f.length>0)throw new d("invalid path: "+e,this);".."===k?(g++,h+="../"):this.isscoped=!0}else f.push(k)}this.original=e,this.parts=f,this.string=f.join("."),this.depth=g,this.idname=h+this.string,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,this.stringmodevalue=a.stringmodevalue,this.idname="@"+a.stringmodevalue},stringnode:function(a,c){b.call(this,c),this.type="string",this.original=this.string=this.stringmodevalue=a},numbernode:function(a,c){b.call(this,c),this.type="number",this.original=this.number=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,this.strip={inlinestandalone:!0}}};return c=e}(c),h=function(){"use strict";var a,b=function(){function a(){this.yy={}}var b={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,openrawblock:14,end_raw_block:15,open_raw_block:16,sexpr:17,close_raw_block:18,openblock:19,block_option0:20,closeblock:21,openinverse:22,block_option1:23,open_block:24,close:25,open_inverse:26,inverseandprogram:27,inverse:28,open_endblock:29,path:30,open:31,open_unescaped:32,close_unescaped:33,open_partial:34,partialname:35,param:36,partial_option0:37,partial_option1:38,sexpr_repetition0:39,sexpr_option0:40,dataname:41,string:42,number:43,boolean:44,open_sexpr:45,close_sexpr:46,hash:47,hash_repetition_plus0:48,hashsegment:49,id:50,equals:51,data:52,pathsegments:53,sep:54,$accept:0,$end:1},terminals_:{2:"error",5:"eof",12:"content",13:"comment",15:"end_raw_block",16:"open_raw_block",18:"close_raw_block",24:"open_block",25:"close",26:"open_inverse",28:"inverse",29:"open_endblock",31:"open",32:"open_unescaped",33:"close_unescaped",34:"open_partial",42:"string",43:"number",44:"boolean",45:"open_sexpr",46:"close_sexpr",50:"id",51:"equals",52:"data",54:"sep"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[10,3],[14,3],[9,4],[9,4],[19,3],[22,3],[27,2],[21,3],[8,3],[8,3],[11,5],[11,4],[17,3],[17,1],[36,1],[36,1],[36,1],[36,1],[36,1],[36,3],[47,1],[49,3],[35,1],[35,1],[35,1],[41,2],[30,1],[53,3],[53,1],[6,0],[6,2],[20,0],[20,1],[23,0],[23,1],[37,0],[37,1],[38,0],[38,1],[39,0],[39,2],[40,0],[40,1],[48,1],[48,2]],performaction:function(a,b,c,d,e,f){var g=f.length-1;switch(e){case 1:return d.prepareprogram(f[g-1].statements,!0),f[g-1];case 2:this.$=new d.programnode(d.prepareprogram(f[g]),{},this._$);break;case 3:this.$=f[g];break;case 4:this.$=f[g];break;case 5:this.$=f[g];break;case 6:this.$=f[g];break;case 7:this.$=new d.contentnode(f[g],this._$);break;case 8:this.$=new d.commentnode(f[g],this._$);break;case 9:this.$=new d.rawblocknode(f[g-2],f[g-1],f[g],this._$);break;case 10:this.$=new d.mustachenode(f[g-1],null,"","",this._$);break;case 11:this.$=d.prepareblock(f[g-3],f[g-2],f[g-1],f[g],!1,this._$);break;case 12:this.$=d.prepareblock(f[g-3],f[g-2],f[g-1],f[g],!0,this._$);break;case 13:this.$=new d.mustachenode(f[g-1],null,f[g-2],d.stripflags(f[g-2],f[g]),this._$);break;case 14:this.$=new d.mustachenode(f[g-1],null,f[g-2],d.stripflags(f[g-2],f[g]),this._$);break;case 15:this.$={strip:d.stripflags(f[g-1],f[g-1]),program:f[g]};break;case 16:this.$={path:f[g-1],strip:d.stripflags(f[g-2],f[g])};break;case 17:this.$=new d.mustachenode(f[g-1],null,f[g-2],d.stripflags(f[g-2],f[g]),this._$);break;case 18:this.$=new d.mustachenode(f[g-1],null,f[g-2],d.stripflags(f[g-2],f[g]),this._$);break;case 19:this.$=new d.partialnode(f[g-3],f[g-2],f[g-1],d.stripflags(f[g-4],f[g]),this._$);break;case 20:this.$=new d.partialnode(f[g-2],void 0,f[g-1],d.stripflags(f[g-3],f[g]),this._$);break;case 21:this.$=new d.sexprnode([f[g-2]].concat(f[g-1]),f[g],this._$);break;case 22:this.$=new d.sexprnode([f[g]],null,this._$);break;case 23:this.$=f[g];break;case 24:this.$=new d.stringnode(f[g],this._$);break;case 25:this.$=new d.numbernode(f[g],this._$);break;case 26:this.$=new d.booleannode(f[g],this._$);break;case 27:this.$=f[g];break;case 28:f[g-1].ishelper=!0,this.$=f[g-1];break;case 29:this.$=new d.hashnode(f[g],this._$);break;case 30:this.$=[f[g-2],f[g]];break;case 31:this.$=new d.partialnamenode(f[g],this._$);break;case 32:this.$=new d.partialnamenode(new d.stringnode(f[g],this._$),this._$);break;case 33:this.$=new d.partialnamenode(new d.numbernode(f[g],this._$));break;case 34:this.$=new d.datanode(f[g],this._$);break;case 35:this.$=new d.idnode(f[g],this._$);break;case 36:f[g-2].push({part:f[g],separator:f[g-1]}),this.$=f[g-2];break;case 37:this.$=[{part:f[g]}];break;case 38:this.$=[];break;case 39:f[g-1].push(f[g]);break;case 48:this.$=[];break;case 49:f[g-1].push(f[g]);break;case 52:this.$=[f[g]];break;case 53:f[g-1].push(f[g])}},table:[{3:1,4:2,5:[2,38],6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],31:[2,38],32:[2,38],34:[2,38]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:[1,10],13:[1,11],14:16,16:[1,20],19:14,22:15,24:[1,18],26:[1,19],28:[2,2],29:[2,2],31:[1,12],32:[1,13],34:[1,17]},{1:[2,1]},{5:[2,39],12:[2,39],13:[2,39],16:[2,39],24:[2,39],26:[2,39],28:[2,39],29:[2,39],31:[2,39],32:[2,39],34:[2,39]},{5:[2,3],12:[2,3],13:[2,3],16:[2,3],24:[2,3],26:[2,3],28:[2,3],29:[2,3],31:[2,3],32:[2,3],34:[2,3]},{5:[2,4],12:[2,4],13:[2,4],16:[2,4],24:[2,4],26:[2,4],28:[2,4],29:[2,4],31:[2,4],32:[2,4],34:[2,4]},{5:[2,5],12:[2,5],13:[2,5],16:[2,5],24:[2,5],26:[2,5],28:[2,5],29:[2,5],31:[2,5],32:[2,5],34:[2,5]},{5:[2,6],12:[2,6],13:[2,6],16:[2,6],24:[2,6],26:[2,6],28:[2,6],29:[2,6],31:[2,6],32:[2,6],34:[2,6]},{5:[2,7],12:[2,7],13:[2,7],16:[2,7],24:[2,7],26:[2,7],28:[2,7],29:[2,7],31:[2,7],32:[2,7],34:[2,7]},{5:[2,8],12:[2,8],13:[2,8],16:[2,8],24:[2,8],26:[2,8],28:[2,8],29:[2,8],31:[2,8],32:[2,8],34:[2,8]},{17:21,30:22,41:23,50:[1,26],52:[1,25],53:24},{17:27,30:22,41:23,50:[1,26],52:[1,25],53:24},{4:28,6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],28:[2,38],29:[2,38],31:[2,38],32:[2,38],34:[2,38]},{4:29,6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],28:[2,38],29:[2,38],31:[2,38],32:[2,38],34:[2,38]},{12:[1,30]},{30:32,35:31,42:[1,33],43:[1,34],50:[1,26],53:24},{17:35,30:22,41:23,50:[1,26],52:[1,25],53:24},{17:36,30:22,41:23,50:[1,26],52:[1,25],53:24},{17:37,30:22,41:23,50:[1,26],52:[1,25],53:24},{25:[1,38]},{18:[2,48],25:[2,48],33:[2,48],39:39,42:[2,48],43:[2,48],44:[2,48],45:[2,48],46:[2,48],50:[2,48],52:[2,48]},{18:[2,22],25:[2,22],33:[2,22],46:[2,22]},{18:[2,35],25:[2,35],33:[2,35],42:[2,35],43:[2,35],44:[2,35],45:[2,35],46:[2,35],50:[2,35],52:[2,35],54:[1,40]},{30:41,50:[1,26],53:24},{18:[2,37],25:[2,37],33:[2,37],42:[2,37],43:[2,37],44:[2,37],45:[2,37],46:[2,37],50:[2,37],52:[2,37],54:[2,37]},{33:[1,42]},{20:43,27:44,28:[1,45],29:[2,40]},{23:46,27:47,28:[1,45],29:[2,42]},{15:[1,48]},{25:[2,46],30:51,36:49,38:50,41:55,42:[1,52],43:[1,53],44:[1,54],45:[1,56],47:57,48:58,49:60,50:[1,59],52:[1,25],53:24},{25:[2,31],42:[2,31],43:[2,31],44:[2,31],45:[2,31],50:[2,31],52:[2,31]},{25:[2,32],42:[2,32],43:[2,32],44:[2,32],45:[2,32],50:[2,32],52:[2,32]},{25:[2,33],42:[2,33],43:[2,33],44:[2,33],45:[2,33],50:[2,33],52:[2,33]},{25:[1,61]},{25:[1,62]},{18:[1,63]},{5:[2,17],12:[2,17],13:[2,17],16:[2,17],24:[2,17],26:[2,17],28:[2,17],29:[2,17],31:[2,17],32:[2,17],34:[2,17]},{18:[2,50],25:[2,50],30:51,33:[2,50],36:65,40:64,41:55,42:[1,52],43:[1,53],44:[1,54],45:[1,56],46:[2,50],47:66,48:58,49:60,50:[1,59],52:[1,25],53:24},{50:[1,67]},{18:[2,34],25:[2,34],33:[2,34],42:[2,34],43:[2,34],44:[2,34],45:[2,34],46:[2,34],50:[2,34],52:[2,34]},{5:[2,18],12:[2,18],13:[2,18],16:[2,18],24:[2,18],26:[2,18],28:[2,18],29:[2,18],31:[2,18],32:[2,18],34:[2,18]},{21:68,29:[1,69]},{29:[2,41]},{4:70,6:3,12:[2,38],13:[2,38],16:[2,38],24:[2,38],26:[2,38],29:[2,38],31:[2,38],32:[2,38],34:[2,38]},{21:71,29:[1,69]},{29:[2,43]},{5:[2,9],12:[2,9],13:[2,9],16:[2,9],24:[2,9],26:[2,9],28:[2,9],29:[2,9],31:[2,9],32:[2,9],34:[2,9]},{25:[2,44],37:72,47:73,48:58,49:60,50:[1,74]},{25:[1,75]},{18:[2,23],25:[2,23],33:[2,23],42:[2,23],43:[2,23],44:[2,23],45:[2,23],46:[2,23],50:[2,23],52:[2,23]},{18:[2,24],25:[2,24],33:[2,24],42:[2,24],43:[2,24],44:[2,24],45:[2,24],46:[2,24],50:[2,24],52:[2,24]},{18:[2,25],25:[2,25],33:[2,25],42:[2,25],43:[2,25],44:[2,25],45:[2,25],46:[2,25],50:[2,25],52:[2,25]},{18:[2,26],25:[2,26],33:[2,26],42:[2,26],43:[2,26],44:[2,26],45:[2,26],46:[2,26],50:[2,26],52:[2,26]},{18:[2,27],25:[2,27],33:[2,27],42:[2,27],43:[2,27],44:[2,27],45:[2,27],46:[2,27],50:[2,27],52:[2,27]},{17:76,30:22,41:23,50:[1,26],52:[1,25],53:24},{25:[2,47]},{18:[2,29],25:[2,29],33:[2,29],46:[2,29],49:77,50:[1,74]},{18:[2,37],25:[2,37],33:[2,37],42:[2,37],43:[2,37],44:[2,37],45:[2,37],46:[2,37],50:[2,37],51:[1,78],52:[2,37],54:[2,37]},{18:[2,52],25:[2,52],33:[2,52],46:[2,52],50:[2,52]},{12:[2,13],13:[2,13],16:[2,13],24:[2,13],26:[2,13],28:[2,13],29:[2,13],31:[2,13],32:[2,13],34:[2,13]},{12:[2,14],13:[2,14],16:[2,14],24:[2,14],26:[2,14],28:[2,14],29:[2,14],31:[2,14],32:[2,14],34:[2,14]},{12:[2,10]},{18:[2,21],25:[2,21],33:[2,21],46:[2,21]},{18:[2,49],25:[2,49],33:[2,49],42:[2,49],43:[2,49],44:[2,49],45:[2,49],46:[2,49],50:[2,49],52:[2,49]},{18:[2,51],25:[2,51],33:[2,51],46:[2,51]},{18:[2,36],25:[2,36],33:[2,36],42:[2,36],43:[2,36],44:[2,36],45:[2,36],46:[2,36],50:[2,36],52:[2,36],54:[2,36]},{5:[2,11],12:[2,11],13:[2,11],16:[2,11],24:[2,11],26:[2,11],28:[2,11],29:[2,11],31:[2,11],32:[2,11],34:[2,11]},{30:79,50:[1,26],53:24},{29:[2,15]},{5:[2,12],12:[2,12],13:[2,12],16:[2,12],24:[2,12],26:[2,12],28:[2,12],29:[2,12],31:[2,12],32:[2,12],34:[2,12]},{25:[1,80]},{25:[2,45]},{51:[1,78]},{5:[2,20],12:[2,20],13:[2,20],16:[2,20],24:[2,20],26:[2,20],28:[2,20],29:[2,20],31:[2,20],32:[2,20],34:[2,20]},{46:[1,81]},{18:[2,53],25:[2,53],33:[2,53],46:[2,53],50:[2,53]},{30:51,36:82,41:55,42:[1,52],43:[1,53],44:[1,54],45:[1,56],50:[1,26],52:[1,25],53:24},{25:[1,83]},{5:[2,19],12:[2,19],13:[2,19],16:[2,19],24:[2,19],26:[2,19],28:[2,19],29:[2,19],31:[2,19],32:[2,19],34:[2,19]},{18:[2,28],25:[2,28],33:[2,28],42:[2,28],43:[2,28],44:[2,28],45:[2,28],46:[2,28],50:[2,28],52:[2,28]},{18:[2,30],25:[2,30],33:[2,30],46:[2,30],50:[2,30]},{5:[2,16],12:[2,16],13:[2,16],16:[2,16],24:[2,16],26:[2,16],28:[2,16],29:[2,16],31:[2,16],32:[2,16],34:[2,16]}],defaultactions:{4:[2,1],44:[2,41],47:[2,43],57:[2,47],63:[2,10],70:[2,15],73:[2,45]},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),a}var c=this,d=[0],e=[null],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[d.length-1],this.defaultactions[p]?q=this.defaultactions[p]:((null===n||"undefined"==typeof n)&&(n=b()),q=g[p]&&g[p][n]),"undefined"==typeof q||!q.length||!q[0]){var x="";if(!k){v=[];for(s in g[p])this.terminals_[s]&&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]||n)+"'":"parse error on line "+(i+1)+": unexpected "+(1==n?"end of input":"'"+(this.terminals_[n]||n)+"'"),this.parseerror(x,{text:this.lexer.match,token:this.terminals_[n]||n,line:this.lexer.yylineno,loc:l,expected:v})}}if(q[0]instanceof array&&q.length>1)throw new error("parse error: multiple actions possible at state: "+p+", token: "+n);switch(q[0]){case 1:d.push(n),e.push(this.lexer.yytext),f.push(this.lexer.yylloc),d.push(q[1]),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]][1],w.$=e[e.length-t],w._$={first_line:f[f.length-(t||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(t||1)].first_column,last_column:f[f.length-1].last_column},m&&(w._$.range=[f[f.length-(t||1)].range[0],f[f.length-1].range[1]]),r=this.performaction.call(w,h,j,i,this.yy,q[1],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[1]][0]),e.push(w.$),f.push(w._$),u=g[d[d.length-2]][d[d.length-1]],d.push(u);break;case 3:return!0}}return!0}},c=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=["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 a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var b=a.match(/(?:\r\n?|\n).*/g);return b?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var b=a.length,c=a.split(/(?:\r\n?|\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(/(?:\r\n?|\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[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+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;gb[0].length)||(b=c,d=g,this.options.flex));g++);return b?(e=b[0].match(/(?:\r\n?|\n).*/g),e&&(this.yylineno+=e.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:e?e[e.length-1].length-e[e.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,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(b[0].length),this.matched+=b[0],a=this.performaction.call(this,this.yy,this,f[d],this.conditionstack[this.conditionstack.length-1]),this.done&&this._input&&(this.done=!1),a?a: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 a=this.next();return"undefined"!=typeof a?a:this.lex()},begin:function(a){this.conditionstack.push(a)},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(a){this.begin(a)}};return a.options={},a.performaction=function(a,b,c,d){function e(a,c){return b.yytext=b.yytext.substr(a,b.yyleng-c)}switch(c){case 0:if("\\\\"===b.yytext.slice(-2)?(e(0,1),this.begin("mu")):"\\"===b.yytext.slice(-1)?(e(0,1),this.begin("emu")):this.begin("mu"),b.yytext)return 12;break;case 1:return 12;case 2:return this.popstate(),12;case 3:return b.yytext=b.yytext.substr(5,b.yyleng-9),this.popstate(),15;case 4:return 12;case 5:return e(0,4),this.popstate(),13;case 6:return 45;case 7:return 46;case 8:return 16;case 9:return this.popstate(),this.begin("raw"),18;case 10:return 34;case 11:return 24;case 12:return 29;case 13:return this.popstate(),28;case 14:return this.popstate(),28;case 15:return 26;case 16:return 26;case 17:return 32;case 18:return 31;case 19:this.popstate(),this.begin("com");break;case 20:return e(3,5),this.popstate(),13;case 21:return 31;case 22:return 51;case 23:return 50;case 24:return 50;case 25:return 54;case 26:break;case 27:return this.popstate(),33;case 28:return this.popstate(),25;case 29:return b.yytext=e(1,2).replace(/\\"/g,'"'),42;case 30:return b.yytext=e(1,2).replace(/\\'/g,"'"),42;case 31:return 52;case 32:return 44;case 33:return 44;case 34:return 43;case 35:return 50;case 36:return b.yytext=e(1,2),50;case 37:return"invalid";case 38:return 5}},a.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)])))/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)]))))/,/^(?:\[[^\]]*\])/,/^(?:.)/,/^(?:$)/],a.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],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[5],inclusive:!1},raw:{rules:[3,4],inclusive:!1},initial:{rules:[0,1,38],inclusive:!0}},a}();return b.lexer=c,a.prototype=b,b.parser=a,new a}();return a=b}(),i=function(a){"use strict";function b(a,b){return{left:"~"===a.charat(2),right:"~"===b.charat(b.length-3)}}function c(a,b,c,d,i,k){if(a.sexpr.id.original!==d.path.original)throw new j(a.sexpr.id.original+" doesn't match "+d.path.original,a);var l=c&&c.program,m={left:a.strip.left,right:d.strip.right,openstandalone:f(b.statements),closestandalone:e((l||b).statements)};if(a.strip.right&&g(b.statements,null,!0),l){var n=c.strip;n.left&&h(b.statements,null,!0),n.right&&g(l.statements,null,!0),d.strip.left&&h(l.statements,null,!0),e(b.statements)&&f(l.statements)&&(h(b.statements),g(l.statements))}else d.strip.left&&h(b.statements,null,!0);return i?new this.blocknode(a,l,b,m,k):new this.blocknode(a,b,l,m,k)}function d(a,b){for(var c=0,d=a.length;d>c;c++){var i=a[c],j=i.strip;if(j){var k=e(a,c,b,"partial"===i.type),l=f(a,c,b),m=j.openstandalone&&k,n=j.closestandalone&&l,o=j.inlinestandalone&&k&&l;j.right&&g(a,c,!0),j.left&&h(a,c,!0),o&&(g(a,c),h(a,c)&&"partial"===i.type&&(i.indent=/([ \t]+$)/.exec(a[c-1].original)?regexp.$1:"")),m&&(g((i.program||i.inverse).statements),h(a,c)),n&&(g(a,c),h((i.inverse||i.program).statements))}}return a}function e(a,b,c){void 0===b&&(b=a.length);var d=a[b-1],e=a[b-2];return d?"content"===d.type?(e||!c?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(d.original):void 0:c}function f(a,b,c){void 0===b&&(b=-1);var d=a[b+1],e=a[b+2];return d?"content"===d.type?(e||!c?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(d.original):void 0:c}function g(a,b,c){var d=a[null==b?0:b+1];if(d&&"content"===d.type&&(c||!d.rightstripped)){var e=d.string;d.string=d.string.replace(c?/^\s+/:/^[ \t]*\r?\n?/,""),d.rightstripped=d.string!==e}}function h(a,b,c){var d=a[null==b?a.length-1:b-1];if(d&&"content"===d.type&&(c||!d.leftstripped)){var e=d.string;return d.string=d.string.replace(c?/\s+$/:/[ \t]+$/,""),d.leftstripped=d.string!==e,d.leftstripped}}var i={},j=a;return i.stripflags=b,i.prepareblock=c,i.prepareprogram=d,i}(c),j=function(a,b,c,d){"use strict";function e(a){return a.constructor===h.programnode?a:(g.yy=k,g.parse(a))}var f={},g=a,h=b,i=c,j=d.extend;f.parser=g;var k={};return j(k,i,h),f.parse=e,f}(h,g,i,b),k=function(a,b){"use strict";function c(){}function d(a,b,c){if(null==a||"string"!=typeof a&&a.constructor!==c.ast.programnode)throw new h("you must pass a string or handlebars ast to handlebars.precompile. you passed "+a);b=b||{},"data"in b||(b.data=!0),b.compat&&(b.usedepths=!0);var d=c.parse(a),e=(new c.compiler).compile(d,b);return(new c.javascriptcompiler).compile(e,b)}function e(a,b,c){function d(){var d=c.parse(a),e=(new c.compiler).compile(d,b),f=(new c.javascriptcompiler).compile(e,b,void 0,!0);return c.template(f)}if(null==a||"string"!=typeof a&&a.constructor!==c.ast.programnode)throw new h("you must pass a string or handlebars ast to handlebars.compile. you passed "+a);b=b||{},"data"in b||(b.data=!0),b.compat&&(b.usedepths=!0);var e,f=function(a,b){return e||(e=d()),e.call(this,a,b)};return f._setup=function(a){return e||(e=d()),e._setup(a)},f._child=function(a,b,c){return e||(e=d()),e._child(a,b,c)},f}function f(a,b){if(a===b)return!0;if(i(a)&&i(b)&&a.length===b.length){for(var c=0;cc;c++){var d=this.opcodes[c],e=a.opcodes[c];if(d.opcode!==e.opcode||!f(d.args,e.args))return!1}for(b=this.children.length,c=0;b>c;c++)if(!this.children[c].equals(a.children[c]))return!1;return!0},guid:0,compile:function(a,b){this.opcodes=[],this.children=[],this.depths={list:[]},this.options=b,this.stringparams=b.stringparams,this.trackids=b.trackids;var c=this.options.knownhelpers;if(this.options.knownhelpers={helpermissing:!0,blockhelpermissing:!0,each:!0,"if":!0,unless:!0,"with":!0,log:!0,lookup:!0},c)for(var d in c)this.options.knownhelpers[d]=c[d];return this.accept(a)},accept:function(a){return this[a.type](a)},program:function(a){for(var b=a.statements,c=0,d=b.length;d>c;c++)this.accept(b[c]);return this.issimple=1===d,this.depths.list=this.depths.list.sort(function(a,b){return a-b}),this},compileprogram:function(a){var b,c=(new this.compiler).compile(a,this.options),d=this.guid++; this.usepartial=this.usepartial||c.usepartial,this.children[d]=c;for(var e=0,f=c.depths.list.length;f>e;e++)b=c.depths.list[e],2>b||this.adddepth(b-1);return d},block:function(a){var b=a.mustache,c=a.program,d=a.inverse;c&&(c=this.compileprogram(c)),d&&(d=this.compileprogram(d));var e=b.sexpr,f=this.classifysexpr(e);"helper"===f?this.helpersexpr(e,c,d):"simple"===f?(this.simplesexpr(e),this.opcode("pushprogram",c),this.opcode("pushprogram",d),this.opcode("emptyhash"),this.opcode("blockvalue",e.id.original)):(this.ambiguoussexpr(e,c,d),this.opcode("pushprogram",c),this.opcode("pushprogram",d),this.opcode("emptyhash"),this.opcode("ambiguousblockvalue")),this.opcode("append")},hash:function(a){var b,c,d=a.pairs;for(this.opcode("pushhash"),b=0,c=d.length;c>b;b++)this.pushparam(d[b][1]);for(;b--;)this.opcode("assigntohash",d[b][0]);this.opcode("pophash")},partial:function(a){var b=a.partialname;this.usepartial=!0,a.hash?this.accept(a.hash):this.opcode("push","undefined"),a.context?this.accept(a.context):(this.opcode("getcontext",0),this.opcode("pushcontext")),this.opcode("invokepartial",b.name,a.indent||""),this.opcode("append")},content:function(a){a.string&&this.opcode("appendcontent",a.string)},mustache:function(a){this.sexpr(a.sexpr),this.opcode(a.escaped&&!this.options.noescape?"appendescaped":"append")},ambiguoussexpr:function(a,b,c){var d=a.id,e=d.parts[0],f=null!=b||null!=c;this.opcode("getcontext",d.depth),this.opcode("pushprogram",b),this.opcode("pushprogram",c),this.id(d),this.opcode("invokeambiguous",e,f)},simplesexpr:function(a){var b=a.id;"data"===b.type?this.data(b):b.parts.length?this.id(b):(this.adddepth(b.depth),this.opcode("getcontext",b.depth),this.opcode("pushcontext")),this.opcode("resolvepossiblelambda")},helpersexpr:function(a,b,c){var d=this.setupfullmustacheparams(a,b,c),e=a.id,f=e.parts[0];if(this.options.knownhelpers[f])this.opcode("invokeknownhelper",d.length,f);else{if(this.options.knownhelpersonly)throw new h("you specified knownhelpersonly, but used the unknown helper "+f,a);e.falsy=!0,this.id(e),this.opcode("invokehelper",d.length,e.original,e.issimple)}},sexpr:function(a){var b=this.classifysexpr(a);"simple"===b?this.simplesexpr(a):"helper"===b?this.helpersexpr(a):this.ambiguoussexpr(a)},id:function(a){this.adddepth(a.depth),this.opcode("getcontext",a.depth);var b=a.parts[0];b?this.opcode("lookuponcontext",a.parts,a.falsy,a.isscoped):this.opcode("pushcontext")},data:function(a){this.options.data=!0,this.opcode("lookupdata",a.id.depth,a.id.parts)},string:function(a){this.opcode("pushstring",a.string)},number:function(a){this.opcode("pushliteral",a.number)},boolean:function(a){this.opcode("pushliteral",a.bool)},comment:function(){},opcode:function(a){this.opcodes.push({opcode:a,args:j.call(arguments,1)})},adddepth:function(a){0!==a&&(this.depths[a]||(this.depths[a]=!0,this.depths.list.push(a)))},classifysexpr:function(a){var b=a.ishelper,c=a.eligiblehelper,d=this.options;if(c&&!b){var e=a.id.parts[0];d.knownhelpers[e]?b=!0:d.knownhelpersonly&&(c=!1)}return b?"helper":c?"ambiguous":"simple"},pushparams:function(a){for(var b=0,c=a.length;c>b;b++)this.pushparam(a[b])},pushparam:function(a){this.stringparams?(a.depth&&this.adddepth(a.depth),this.opcode("getcontext",a.depth||0),this.opcode("pushstringparam",a.stringmodevalue,a.type),"sexpr"===a.type&&this.sexpr(a)):(this.trackids&&this.opcode("pushid",a.type,a.idname||a.stringmodevalue),this.accept(a))},setupfullmustacheparams:function(a,b,c){var d=a.params;return this.pushparams(d),this.opcode("pushprogram",b),this.opcode("pushprogram",c),a.hash?this.hash(a.hash):this.opcode("emptyhash"),d}},g.precompile=d,g.compile=e,g}(c,b),l=function(a,b){"use strict";function c(a){this.value=a}function d(){}var e,f=a.compiler_revision,g=a.revision_changes,h=b;d.prototype={namelookup:function(a,b){return d.isvalidjavascriptvariablename(b)?a+"."+b:a+"['"+b+"']"},depthedlookup:function(a){return this.aliases.lookup="this.lookup",'lookup(depths, "'+a+'")'},compilerinfo:function(){var a=f,b=g[a];return[a,b]},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,this.stringparams=this.options.stringparams,this.trackids=this.options.trackids,this.precompile=!d,this.name=this.environment.name,this.ischild=!!c,this.context=c||{programs:[],environments:[]},this.preamble(),this.stackslot=0,this.stackvars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compilestack=[],this.inlinestack=[],this.compilechildren(a,b),this.usedepths=this.usedepths||a.depths.list.length||this.options.compat;var e,f,g,i=a.opcodes;for(f=0,g=i.length;g>f;f++)e=i[f],this[e.opcode].apply(this,e.args);if(this.pushsource(""),this.stackslot||this.inlinestack.length||this.compilestack.length)throw new h("compile completed with content left on stack");var j=this.createfunctioncontext(d);if(this.ischild)return j;var k={compiler:this.compilerinfo(),main:j},l=this.context.programs;for(f=0,g=l.length;g>f;f++)l[f]&&(k[f]=l[f]);return this.environment.usepartial&&(k.usepartial=!0),this.options.data&&(k.usedata=!0),this.usedepths&&(k.usedepths=!0),this.options.compat&&(k.compat=!0),d||(k.compiler=json.stringify(k.compiler),k=this.objectliteral(k)),k},preamble:function(){this.lastcontext=0,this.source=[]},createfunctioncontext:function(a){var b="",c=this.stackvars.concat(this.registers.list);c.length>0&&(b+=", "+c.join(", "));for(var d in this.aliases)this.aliases.hasownproperty(d)&&(b+=", "+d+"="+this.aliases[d]);var e=["depth0","helpers","partials","data"];this.usedepths&&e.push("depths");var f=this.mergesource(b);return a?(e.push(f),function.apply(this,e)):"function("+e.join(",")+") {\n "+f+"}"},mergesource:function(a){for(var b,c,d="",e=!this.forcebuffer,f=0,g=this.source.length;g>f;f++){var h=this.source[f];h.appendtobuffer?b=b?b+"\n + "+h.content:h.content:(b&&(d?d+="buffer += "+b+";\n ":(c=!0,d=b+";\n "),b=void 0),d+=h+"\n ",this.environment.issimple||(e=!1))}return e?(b||!d)&&(d+="return "+(b||'""')+";\n"):(a+=", buffer = "+(c?"":this.initializebuffer()),d+=b?"return buffer + "+b+";\n":"return buffer;\n"),a&&(d="var "+a.substring(2)+(c?"":";\n ")+d),d},blockvalue:function(a){this.aliases.blockhelpermissing="helpers.blockhelpermissing";var b=[this.contextname(0)];this.setupparams(a,0,b);var c=this.popstack();b.splice(1,0,c),this.push("blockhelpermissing.call("+b.join(", ")+")")},ambiguousblockvalue:function(){this.aliases.blockhelpermissing="helpers.blockhelpermissing";var a=[this.contextname(0)];this.setupparams("",0,a,!0),this.flushinline();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.pendingcontent=a},append:function(){this.flushinline();var a=this.popstack();this.pushsource("if ("+a+" != null) { "+this.appendtobuffer(a)+" }"),this.environment.issimple&&this.pushsource("else { "+this.appendtobuffer("''")+" }")},appendescaped:function(){this.aliases.escapeexpression="this.escapeexpression",this.pushsource(this.appendtobuffer("escapeexpression("+this.popstack()+")"))},getcontext:function(a){this.lastcontext=a},pushcontext:function(){this.pushstackliteral(this.contextname(this.lastcontext))},lookuponcontext:function(a,b,c){var d=0,e=a.length;for(c||!this.options.compat||this.lastcontext?this.pushcontext():this.push(this.depthedlookup(a[d++]));e>d;d++)this.replacestack(function(c){var e=this.namelookup(c,a[d],"context");return b?" && "+e:" != null ? "+e+" : "+c})},lookupdata:function(a,b){this.pushstackliteral(a?"this.data(data, "+a+")":"data");for(var c=b.length,d=0;c>d;d++)this.replacestack(function(a){return" && "+this.namelookup(a,b[d],"data")})},resolvepossiblelambda:function(){this.aliases.lambda="this.lambda",this.push("lambda("+this.popstack()+", "+this.contextname(0)+")")},pushstringparam:function(a,b){this.pushcontext(),this.pushstring(b),"sexpr"!==b&&("string"==typeof a?this.pushstring(a):this.pushstackliteral(a))},emptyhash:function(){this.pushstackliteral("{}"),this.trackids&&this.push("{}"),this.stringparams&&(this.push("{}"),this.push("{}"))},pushhash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:[],types:[],contexts:[],ids:[]}},pophash:function(){var a=this.hash;this.hash=this.hashes.pop(),this.trackids&&this.push("{"+a.ids.join(",")+"}"),this.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){this.pushstackliteral(null!=a?this.programexpression(a):null)},invokehelper:function(a,b,c){this.aliases.helpermissing="helpers.helpermissing";var d=this.popstack(),e=this.setuphelper(a,b),f=(c?e.name+" || ":"")+d+" || helpermissing";this.push("(("+f+").call("+e.callparams+"))")},invokeknownhelper:function(a,b){var c=this.setuphelper(a,b);this.push(c.name+".call("+c.callparams+")")},invokeambiguous:function(a,b){this.aliases.functiontype='"function"',this.aliases.helpermissing="helpers.helpermissing",this.useregister("helper");var c=this.popstack();this.emptyhash();var d=this.setuphelper(0,a,b),e=this.lasthelper=this.namelookup("helpers",a,"helper");this.push("((helper = (helper = "+e+" || "+c+") != null ? helper : helpermissing"+(d.paramsinit?"),("+d.paramsinit:"")+"),(typeof helper === functiontype ? helper.call("+d.callparams+") : helper))")},invokepartial:function(a,b){var c=[this.namelookup("partials",a,"partial"),"'"+b+"'","'"+a+"'",this.popstack(),this.popstack(),"helpers","partials"];this.options.data?c.push("data"):this.options.compat&&c.push("undefined"),this.options.compat&&c.push("depths"),this.push("this.invokepartial("+c.join(", ")+")")},assigntohash:function(a){var b,c,d,e=this.popstack();this.trackids&&(d=this.popstack()),this.stringparams&&(c=this.popstack(),b=this.popstack());var f=this.hash;b&&f.contexts.push("'"+a+"': "+b),c&&f.types.push("'"+a+"': "+c),d&&f.ids.push("'"+a+"': "+d),f.values.push("'"+a+"': ("+e+")")},pushid:function(a,b){"id"===a||"data"===a?this.pushstring(b):this.pushstackliteral("sexpr"===a?"true":"null")},compiler:d,compilechildren:function(a,b){for(var c,d,e=a.children,f=0,g=e.length;g>f;f++){c=e[f],d=new this.compiler;var h=this.matchexistingprogram(c);null==h?(this.context.programs.push(""),h=this.context.programs.length,c.index=h,c.name="program"+h,this.context.programs[h]=d.compile(c,b,this.context,!this.precompile),this.context.environments[h]=c,this.usedepths=this.usedepths||d.usedepths):(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[b];if(d&&d.equals(a))return b}},programexpression:function(a){var b=this.environment.children[a],c=(b.depths.list,this.usedepths),d=[b.index,"data"];return c&&d.push("depths"),"this.program("+d.join(", ")+")"},useregister:function(a){this.registers[a]||(this.registers[a]=!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 this.pushsource(b+" = "+a+";"),this.compilestack.push(b),b},replacestack:function(a){{var b,d,e,f="";this.isinline()}if(!this.isinline())throw new h("replacestack on non-inline");var g=this.popstack(!0);if(g instanceof c)f=b=g.value,e=!0;else{d=!this.stackslot;var i=d?this.incrstack():this.topstackname();f="("+this.push(i)+" = "+g+")",b=this.topstack()}var j=a.call(this,b);e||this.popstack(),d&&this.stackslot--,this.push("("+f+j+")")},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[b];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 h("invalid stack pop");this.stackslot--}return d},topstack:function(){var a=this.isinline()?this.inlinestack:this.compilestack,b=a[a.length-1];return b instanceof c?b.value:b},contextname:function(a){return this.usedepths&&a?"depths["+a+"]":"depth"+a},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")+'"'},objectliteral:function(a){var b=[];for(var c in a)a.hasownproperty(c)&&b.push(this.quotedstring(c)+":"+a[c]);return"{"+b.join(",")+"}"},setuphelper:function(a,b,c){var d=[],e=this.setupparams(b,a,d,c),f=this.namelookup("helpers",b,"helper");return{params:d,paramsinit:e,name:f,callparams:[this.contextname(0)].concat(d).join(", ")}},setupoptions:function(a,b,c){var d,e,f,g={},h=[],i=[],j=[];g.name=this.quotedstring(a),g.hash=this.popstack(),this.trackids&&(g.hashids=this.popstack()),this.stringparams&&(g.hashtypes=this.popstack(),g.hashcontexts=this.popstack()),e=this.popstack(),f=this.popstack(),(f||e)&&(f||(f="this.noop"),e||(e="this.noop"),g.fn=f,g.inverse=e);for(var k=b;k--;)d=this.popstack(),c[k]=d,this.trackids&&(j[k]=this.popstack()),this.stringparams&&(i[k]=this.popstack(),h[k]=this.popstack());return this.trackids&&(g.ids="["+j.join(",")+"]"),this.stringparams&&(g.types="["+i.join(",")+"]",g.contexts="["+h.join(",")+"]"),this.options.data&&(g.data="data"),g},setupparams:function(a,b,c,d){var e=this.objectliteral(this.setupoptions(a,b,c));return d?(this.useregister("options"),c.push("options"),"options="+e):(c.push(e),"")}};for(var i="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(" "),j=d.reserved_words={},k=0,l=i.length;l>k;k++)j[i[k]]=!0;return d.isvalidjavascriptvariablename=function(a){return!d.reserved_words[a]&&/^[a-za-z_$][0-9a-za-z_$]*$/.test(a)},e=d}(d,c),m=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,g["default"]=g,f=g}(f,g,j,k,l);return m});