define("ae-feedback-ui/node_modules/@alife/beta-position/position.js",["beta-jquery/jquery"],function(require,e,t){"use strict";var i=e,s={_id:"VIEWPORT",nodeType:1},r=require("beta-jquery/jquery"),n=false,a=false,o=(window.navigator.userAgent||"").toLowerCase(),l=o.indexOf("msie 6")!==-1;i.pin=function(e,t){e=h(e);t=h(t);if(e.element===s||e.element._id==="VIEWPORT"){return}var i=r(e.element);if(i.css("position")!=="fixed"||l){i.css("position","absolute");n=false}else{n=true}var o=r(t.element);if(t.element===s||t.element._id==="VIEWPORT"||o.css("position")!=="fixed"||l){a=false}else{a=true}u(e);u(t);var c=p(i);var f=n&&a?g(o):t.offset();var d=f.top+t.y-e.y-c.top;var m=f.left+t.x-e.x-c.left;i.css({left:m,top:d})};i.center=function(e,t){i.pin({element:e,x:"50%",y:"50%"},{element:t,x:"50%",y:"50%"})};i.VIEWPORT=s;function h(e){e=d(e)||{};if(e.nodeType){e={element:e}}var t=d(e.element)||s;if(t.nodeType!==1){throw new Error("posObject.element is invalid.")}var i={element:t,x:e.x||0,y:e.y||0};var a=t===s||t._id==="VIEWPORT";i.offset=function(){if(n){return{left:0,top:0}}else if(a){return{left:r(document).scrollLeft(),top:r(document).scrollTop()}}else{return m(r(t)[0])}};i.size=function(){var e=a?r(window):r(t);return{width:e.outerWidth(),height:e.outerHeight()}};return i}function u(e){e.x=c(e.x,e,"width");e.y=c(e.y,e,"height")}function c(e,t,i){e=e+"";e=e.replace(/px/gi,"");if(/\D/.test(e)){e=e.replace(/(?:top|left)/gi,"0%").replace(/center/gi,"50%").replace(/(?:bottom|right)/gi,"100%")}if(e.indexOf("%")!==-1){e=e.replace(/(\d+(?:\.\d+)?)%/gi,function(e,s){return t.size()[i]*(s/100)})}if(/[+\-*\/]/.test(e)){try{e=new Function("return "+e)()}catch(s){throw new Error("Invalid position value: "+e)}}return f(e)}function p(e){var t=e.offsetParent();if(t[0]===document.documentElement){t=r(document.body)}if(l){t.css("zoom",1)}var i;if(t[0]===document.body&&t.css("position")==="static"){i={top:0,left:0}}else{i=m(t[0])}i.top+=f(t.css("border-top-width"));i.left+=f(t.css("border-left-width"));return i}function f(e){return parseFloat(e,10)||0}function d(e){return r(e)[0]}function m(e){var t=e.getBoundingClientRect(),i=document.documentElement;return{left:t.left+(window.pageXOffset||i.scrollLeft)-(i.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||i.scrollTop)-(i.clientTop||document.body.clientTop||0)}}function g(e){return{left:f(e.css("left")),top:f(e.css("top"))}}});define("ae-feedback-ui/node_modules/@alife/beta-ifrshim/iframe-shim.js",["beta-jquery/jquery","ae-feedback-ui/node_modules/@alife/beta-position/position.js"],function(require,e,t){var i=require("beta-jquery/jquery");var s=require("ae-feedback-ui/node_modules/@alife/beta-position/position.js");var r=(window.navigator.userAgent||"").toLowerCase().indexOf("msie 6")!==-1;function n(e){this.target=i(e).eq(0)}n.prototype.sync=function(){var e=this.target;var t=this.iframe;if(!e.length)return this;var i=e.outerHeight();var r=e.outerWidth();if(!i||!r||e.is(":hidden")){t&&t.hide()}else{t||(t=this.iframe=o(e));t.css({height:i,width:r});s.pin(t[0],e[0]);t.show()}return this};n.prototype.destroy=function(){if(this.iframe){this.iframe.remove();delete this.iframe}delete this.target};if(r){t.exports=n}else{function a(){}a.prototype.sync=function(){return this};a.prototype.destroy=a;t.exports=a}function o(e){var t={display:"none",border:"none",opacity:0,position:"absolute"};var s=e.css("zIndex");if(s&&s>0){t.zIndex=s-1}return i("<iframe>",{src:"javascript:''",frameborder:0,css:t}).insertBefore(e)}});define("ae-feedback-ui/node_modules/@alife/beta-overlay/overlay.js",["beta-jquery/jquery","ae-feedback-ui/node_modules/@alife/beta-position/position.js","ae-feedback-ui/node_modules/@alife/beta-ifrshim/iframe-shim.js","beta-widget/widget"],function(require,e,t){"use strict";var i=require("beta-jquery/jquery"),s=require("ae-feedback-ui/node_modules/@alife/beta-position/position.js"),r=require("ae-feedback-ui/node_modules/@alife/beta-ifrshim/iframe-shim.js"),n=require("beta-widget/widget");var a=navigator.userAgent.match(/iPad/i);var o;var l=n.extend({attrs:{width:null,height:null,zIndex:99,visible:false,align:{selfXY:[0,0],baseElement:s.VIEWPORT,baseXY:[0,0]},parentNode:document.body},show:function(){if(!this.rendered){this.render()}this.set("visible",true);return this},hide:function(){this.set("visible",false);return this},setup:function(){var e=this;this._setupShim();this._setupResize();this._setupIPad();this.after("render",function(){var e=this.element.css("position");if(this.get("align")&&(e==="static"||e==="relative")){this.element.css({position:"absolute",left:"-9999px",top:"-9999px"})}});this.after("show",function(){e._setPosition()})},destroy:function(){m(this,l.allOverlays);m(this,l.blurOverlays);return l.superclass.destroy.call(this)},_setPosition:function(e){if(!f(this.element[0]))return;e||(e=this.get("align"));if(!e)return;var t=this.element.css("display")==="none";if(t){this.element.css({visibility:"hidden",display:"block"})}s.pin({element:this.element,x:e.selfXY[0],y:e.selfXY[1]},{element:e.baseElement,x:e.baseXY[0],y:e.baseXY[1]});if(t){this.element.css({visibility:"",display:"none"})}return this},_setupShim:function(){var e=new r(this.element);this.after("hide _setPosition",e.sync,e);var t=["width","height"];for(var i in t){if(t.hasOwnProperty(i)){this.on("change:"+i,e.sync,e)}}this.before("destroy",e.destroy,e)},_setupResize:function(){l.allOverlays.push(this)},_setupIPad:function(){if(a){if(!o){o=i('<a href="javascript:void(0);" style="outline:none;display:block;position:absolute;left:0;top:0;zoom:1.01;opacity:1;background-color:transparent;"></a>');o.hide().insertBefore(i("body")[0].firstChild);var e;o.on("click",function(t){o.hide();e=document.elementFromPoint(t.clientX,t.clientY);o.show()});i(document).on("click",function(t){if(t.target!=o[0]){return}var s=i(e);switch(e.tagName.toLowerCase()){case"select":p(e,t,"mousedown");break;case"textarea":s.focus();break;case"input":var r=e.type;switch(r){case"checkbox":case"radio":p(e,t,"click");break;default:s.focus();break}break;default:p(e,t,"click");break}})}this.before("destroy",function(){o.hide()});this.on("change:visible",function(e){if(e){var t=this.element;o.css("zIndex",t.parent()[0]==document.body?t.css("zIndex"):0).css("width",Math.max(document.documentElement.clientWidth,document.getElementsByTagName("body")[0].offsetWidth)).css("height",Math.max(document.documentElement.clientHeight,document.getElementsByTagName("body")[0].offsetHeight)).show()}else{o.hide()}})}},_blurHide:function(e){e=i.makeArray(e);e.push(this.element);this._relativeElements=e;l.blurOverlays.push(this)},_onRenderWidth:function(e){this.element.css("width",e)},_onRenderHeight:function(e){this.element.css("height",e)},_onRenderZIndex:function(e){this.element.css("zIndex",e)},_onRenderAlign:function(e){this._setPosition(e)},_onRenderVisible:function(e){this.element[e?"show":"hide"]()}});l.blurOverlays=[];i(document).on("click",function(e){d(e)});var h;var u=i(window).width();var c=i(window).height();l.allOverlays=[];i(window).resize(function(){h&&clearTimeout(h);h=setTimeout(function(){var e=i(window).width();var t=i(window).height();if(u!==e||c!==t){i(l.allOverlays).each(function(e,t){if(!t||!t.get("visible")){return}t._setPosition()})}u=e;c=t},80)});t.exports=l;function p(e,t,i){var s=document.createEvent("MouseEvents");s.initMouseEvent(i,true,true,window,1,t.screenX,t.screenY,t.clientX,t.clientY,false,false,false,false,0,null);s.forwardedTouchEvent=true;e.dispatchEvent(s)}function f(e){return i.contains(document.documentElement,e)}function d(e){i(l.blurOverlays).each(function(t,s){if(!s||!s.get("visible")){return}for(var r=0;r<s._relativeElements.length;r++){var n=i(s._relativeElements[r])[0];if(n===e.target||i.contains(n,e.target)||!i.contains(document,e.target)){return}}s.hide()})}function m(e,t){for(var i=0;i<t.length;i++){if(e===t[i]){t.splice(i,1);return t}}}});define("ae-feedback-ui/node_modules/@alife/beta-popup/popup.js",["beta-jquery/jquery","ae-feedback-ui/node_modules/@alife/beta-overlay/overlay.js"],function(require,e,t){var i=require("beta-jquery/jquery");var s=require("ae-feedback-ui/node_modules/@alife/beta-overlay/overlay.js");var r=s.extend({attrs:{trigger:{value:null,getter:function(e){return i(e)}},triggerType:"hover",delegateNode:{value:null,getter:function(e){return i(e)}},align:{value:{baseXY:[0,"100%"],selfXY:[0,0]},setter:function(e){if(!e){return}if(e.baseElement){this._specifiedBaseElement=true}else if(this.activeTrigger){e.baseElement=this.activeTrigger}return e},getter:function(e){if(!e){return e}return i.extend({},e,this._specifiedBaseElement?{}:{baseElement:this.activeTrigger})}},delay:70,disabled:false,effect:"",duration:250},setup:function(){r.superclass.setup.call(this);this._bindTrigger();this._blurHide(this.get("trigger"));this.activeTrigger=this.get("trigger").eq(0);var e=this;if(this.get("delegateNode")){this.before("show",function(){e._relativeElements=e.get("trigger");e._relativeElements.push(e.element)})}},show:function(){if(this.get("disabled")){return}return r.superclass.show.call(this)},_bindTrigger:function(){var e=this.get("triggerType");if(e==="click"){this._bindClick()}else if(e==="focus"){this._bindFocus()}else{this._bindHover()}},_bindClick:function(){var e=this;n("click",this.get("trigger"),function(i){if(this.tagName.toLowerCase()==="a"){i.preventDefault()}if(this._active===true){e.hide()}else{t(this);e.show()}},this.get("delegateNode"),this);this.before("hide",function(){t()});function t(t){if(e.get("disabled")){return}e.get("trigger").each(function(s,r){if(t==r){r._active=true;e.activeTrigger=i(r)}else{r._active=false}})}},_bindFocus:function(){var e=this;var t;n("focus",this.get("trigger"),function(){if(t){clearTimeout(t);t=null}e.activeTrigger=i(this);e.show()},this.get("delegateNode"),this);n("blur",this.get("trigger"),function(){if(t){clearTimeout(t);t=null}t=setTimeout(function(){!e._downOnElement&&e.hide();e._downOnElement=false},e.get("delay"))},this.get("delegateNode"),this);this.delegateEvents("mousedown",function(e){this._downOnElement=true})},_bindHover:function(){var e=this.get("trigger");var t=this.get("delegateNode");var s=this.get("delay");var r,a;var o=this;if(s<0){this._bindTooltip();return}n("mouseenter",e,function(){clearTimeout(a);a=null;o.activeTrigger=i(this);r=setTimeout(function(){o.show()},s)},t,this);n("mouseleave",e,l,t,this);this.delegateEvents("mouseenter",function(){clearTimeout(a)});this.delegateEvents("mouseleave",l);function l(e){clearTimeout(r);r=null;if(o.get("visible")){a=setTimeout(function(){o.hide()},s)}}},_bindTooltip:function(){var e=this.get("trigger");var t=this.get("delegateNode");var s=this;n("mouseenter",e,function(){s.activeTrigger=i(this);s.show()},t,this);n("mouseleave",e,function(){s.hide()},t,this)},_onRenderVisible:function(e){var t=this.get("effect").indexOf("fade")!==-1;var i=this.get("effect").indexOf("slide")!==-1;var s={};i&&(s.height=e?"show":"hide");t&&(s.opacity=e?"show":"hide");if(t||i){this.element.stop(true,true).animate(s,this.get("duration")).css({visibility:"visible"})}else{this.element[e?"show":"hide"]()}}});t.exports=r;function n(e,t,i,s,r){var n=s&&s[0];r.delegateEvents(n?s:t,n?e+" "+t.selector:e,function(e){i.call(e.currentTarget,e)})}});define("ae-feedback-ui/node_modules/@alife/beta-handlebars/handlebars.js",[],function(require,e,t){(function(i,s){if(typeof e==="object"){t.exports=s()}else{i.Handlebars=i.Handlebars||s()}})(this,function(){var e=function(){"use strict";var e;function t(e){this.string=e}t.prototype.toString=function(){return""+this.string};e=t;return e}();var t=function(e){"use strict";var t={};var i=e;var s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"};var r=/[&<>"'`]/g;var n=/[&<>"'`]/;function a(e){return s[e]}function o(e){for(var t=1;t<arguments.length;t++){for(var i in arguments[t]){if(Object.prototype.hasOwnProperty.call(arguments[t],i)){e[i]=arguments[t][i]}}}return e}t.extend=o;var l=Object.prototype.toString;t.toString=l;var h=function(e){return typeof e==="function"};if(h(/x/)){h=function(e){return typeof e==="function"&&l.call(e)==="[object Function]"}}var h;t.isFunction=h;var u=Array.isArray||function(e){return e&&typeof e==="object"?l.call(e)==="[object Array]":false};t.isArray=u;function c(e){if(e instanceof i){return e.toString()}else if(e==null){return""}else if(!e){return e+""}e=""+e;if(!n.test(e)){return e}return e.replace(r,a)}t.escapeExpression=c;function p(e){if(!e&&e!==0){return true}else if(u(e)&&e.length===0){return true}else{return false}}t.isEmpty=p;function f(e,t){return(e?e+".":"")+t}t.appendContextPath=f;return t}(e);var i=function(){"use strict";var e;var t=["description","fileName","lineNumber","message","name","number","stack"];function i(e,i){var s;if(i&&i.firstLine){s=i.firstLine;e+=" - "+s+":"+i.firstColumn}var r=Error.prototype.constructor.call(this,e);for(var n=0;n<t.length;n++){this[t[n]]=r[t[n]]}if(s){this.lineNumber=s;this.column=i.firstColumn}}i.prototype=new Error;e=i;return e}();var s=function(e,t){"use strict";var i={};var s=e;var r=t;var n="2.0.0";i.VERSION=n;var a=6;i.COMPILER_REVISION=a;var o={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"};i.REVISION_CHANGES=o;var l=s.isArray,h=s.isFunction,u=s.toString,c="[object Object]";function p(e,t){this.helpers=e||{};this.partials=t||{};f(this)}i.HandlebarsEnvironment=p;p.prototype={constructor:p,logger:d,log:m,registerHelper:function(e,t){if(u.call(e)===c){if(t){throw new r("Arg not supported with multiple helpers")}s.extend(this.helpers,e)}else{this.helpers[e]=t}},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(u.call(e)===c){s.extend(this.partials,e)}else{this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]}};function f(e){e.registerHelper("helperMissing",function(){if(arguments.length===1){return undefined}else{throw new r("Missing helper: '"+arguments[arguments.length-1].name+"'")}});e.registerHelper("blockHelperMissing",function(t,i){var r=i.inverse,n=i.fn;if(t===true){return n(this)}else if(t===false||t==null){return r(this)}else if(l(t)){if(t.length>0){if(i.ids){i.ids=[i.name]}return e.helpers.each(t,i)}else{return r(this)}}else{if(i.data&&i.ids){var a=g(i.data);a.contextPath=s.appendContextPath(i.data.contextPath,i.name);i={data:a}}return n(t,i)}});e.registerHelper("each",function(e,t){if(!t){throw new r("Must pass iterator to #each")}var i=t.fn,n=t.inverse;var a=0,o="",u;var c;if(t.data&&t.ids){c=s.appendContextPath(t.data.contextPath,t.ids[0])+"."}if(h(e)){e=e.call(this)}if(t.data){u=g(t.data)}if(e&&typeof e==="object"){if(l(e)){for(var p=e.length;a<p;a++){if(u){u.index=a;u.first=a===0;u.last=a===e.length-1;if(c){u.contextPath=c+a}}o=o+i(e[a],{data:u})}}else{for(var f in e){if(e.hasOwnProperty(f)){if(u){u.key=f;u.index=a;u.first=a===0;if(c){u.contextPath=c+f}}o=o+i(e[f],{data:u});a++}}}}if(a===0){o=n(this)}return o});e.registerHelper("if",function(e,t){if(h(e)){e=e.call(this)}if(!t.hash.includeZero&&!e||s.isEmpty(e)){return t.inverse(this)}else{return t.fn(this)}});e.registerHelper("unless",function(t,i){return e.helpers["if"].call(this,t,{fn:i.inverse,inverse:i.fn,hash:i.hash})});e.registerHelper("with",function(e,t){if(h(e)){e=e.call(this)}var i=t.fn;if(!s.isEmpty(e)){if(t.data&&t.ids){var r=g(t.data);r.contextPath=s.appendContextPath(t.data.contextPath,t.ids[0]);t={data:r}}return i(e,t)}else{return t.inverse(this)}});e.registerHelper("log",function(t,i){var s=i.data&&i.data.level!=null?parseInt(i.data.level,10):1;e.log(s,t)});e.registerHelper("lookup",function(e,t){return e&&e[t]})}var d={methodMap:{0:"debug",1:"info",2:"warn",3:"error"},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(e,t){if(d.level<=e){var i=d.methodMap[e];if(typeof console!=="undefined"&&console[i]){console[i].call(console,t)}}}};i.logger=d;var m=d.log;i.log=m;var g=function(e){var t=s.extend({},e);t._parent=e;return t};i.createFrame=g;return i}(t,i);var r=function(e,t,i){"use strict";var s={};var r=e;var n=t;var a=i.COMPILER_REVISION;var o=i.REVISION_CHANGES;var l=i.createFrame;function h(e){var t=e&&e[0]||1,i=a;if(t!==i){if(t<i){var s=o[i],r=o[t];throw new n("Template was precompiled with an older version of Handlebars than the current runtime. "+"Please update your precompiler to a newer version ("+s+") or downgrade your runtime to an older version ("+r+").")}else{throw new n("Template was precompiled with a newer version of Handlebars than the current runtime. "+"Please update your runtime to a newer version ("+e[1]+").")}}}s.checkRevision=h;function u(e,t){if(!t){throw new n("No environment passed to template")}if(!e||!e.main){throw new n("Unknown template object: "+typeof e)}t.VM.checkRevision(e.compiler);var i=function(i,s,a,o,l,h,u,c,p){if(l){o=r.extend({},o,l)}var f=t.VM.invokePartial.call(this,i,a,o,h,u,c,p);if(f==null&&t.compile){var d={helpers:h,partials:u,data:c,depths:p};u[a]=t.compile(i,{data:c!==undefined,compat:e.compat},t);f=u[a](o,d)}if(f!=null){if(s){var m=f.split("\n");for(var g=0,v=m.length;g<v;g++){if(!m[g]&&g+1===v){break}m[g]=s+m[g]}f=m.join("\n")}return f}else{throw new n("The partial "+a+" could not be compiled when running in runtime-only mode")}};var s={lookup:function(e,t){var i=e.length;for(var s=0;s<i;s++){if(e[s]&&e[s][t]!=null){return e[s][t]}}},lambda:function(e,t){return typeof e==="function"?e.call(t):e},escapeExpression:r.escapeExpression,invokePartial:i,fn:function(t){return e[t]},programs:[],program:function(e,t,i){var s=this.programs[e],r=this.fn(e);if(t||i){s=c(this,e,r,t,i)}else if(!s){s=this.programs[e]=c(this,e,r)}return s},data:function(e,t){while(e&&t--){e=e._parent}return e},merge:function(e,t){var i=e||t;if(e&&t&&e!==t){i=r.extend({},t,e)}return i},noop:t.VM.noop,compilerInfo:e.compiler};var a=function(t,i){i=i||{};var r=i.data;a._setup(i);if(!i.partial&&e.useData){r=d(t,r)}var n;if(e.useDepths){n=i.depths?[t].concat(i.depths):[t]}return e.main.call(s,t,s.helpers,s.partials,r,n)};a.isTop=true;a._setup=function(i){if(!i.partial){s.helpers=s.merge(i.helpers,t.helpers);if(e.usePartial){s.partials=s.merge(i.partials,t.partials)}}else{s.helpers=i.helpers;s.partials=i.partials}};a._child=function(t,i,r){if(e.useDepths&&!r){throw new n("must pass parent depths")}return c(s,t,e[t],i,r)};return a}s.template=u;function c(e,t,i,s,r){var n=function(t,n){n=n||{};return i.call(e,t,e.helpers,e.partials,n.data||s,r&&[t].concat(r))};n.program=t;n.depth=r?r.length:0;return n}s.program=c;function p(e,t,i,s,r,a,o){var l={partial:true,helpers:s,partials:r,data:a,depths:o};if(e===undefined){throw new n("The partial "+t+" could not be found")}else if(e instanceof Function){return e(i,l)}}s.invokePartial=p;function f(){return""}s.noop=f;function d(e,t){if(!t||!("root"in t)){t=t?l(t):{};t.root=e}return t}return s}(t,i,s);var n=function(e,t,i,s,r){"use strict";var n;var a=e;var o=t;var l=i;var h=s;var u=r;var c=function(){var e=new a.HandlebarsEnvironment;h.extend(e,a);e.SafeString=o;e.Exception=l;e.Utils=h;e.escapeExpression=h.escapeExpression;e.VM=u;e.template=function(t){return u.template(t,e)};return e};var p=c();p.create=c;p["default"]=p;n=p;return n}(s,e,i,t,r);var a=function(e){"use strict";var t;var i=e;function s(e){e=e||{};this.firstLine=e.first_line;this.firstColumn=e.first_column;this.lastColumn=e.last_column;this.lastLine=e.last_line}var r={ProgramNode:function(e,t,i){s.call(this,i);this.type="program";this.statements=e;this.strip=t},MustacheNode:function(e,t,i,n,a){s.call(this,a);this.type="mustache";this.strip=n;if(i!=null&&i.charAt){var o=i.charAt(3)||i.charAt(2);this.escaped=o!=="{"&&o!=="&"}else{this.escaped=!!i}if(e instanceof r.SexprNode){this.sexpr=e}else{this.sexpr=new r.SexprNode(e,t)}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(e,t,i){s.call(this,i);this.type="sexpr";this.hash=t;var r=this.id=e[0];var n=this.params=e.slice(1);this.isHelper=!!(n.length||t);this.eligibleHelper=this.isHelper||r.isSimple},PartialNode:function(e,t,i,r,n){s.call(this,n);this.type="partial";this.partialName=e;this.context=t;this.hash=i;this.strip=r;this.strip.inlineStandalone=true},BlockNode:function(e,t,i,r,n){s.call(this,n);this.type="block";this.mustache=e;this.program=t;this.inverse=i;this.strip=r;if(i&&!t){this.isInverse=true}},RawBlockNode:function(e,t,n,a){s.call(this,a);if(e.sexpr.id.original!==n){throw new i(e.sexpr.id.original+" doesn't match "+n,this)}t=new r.ContentNode(t,a);this.type="block";this.mustache=e;this.program=new r.ProgramNode([t],{},a)},ContentNode:function(e,t){s.call(this,t);this.type="content";this.original=this.string=e},HashNode:function(e,t){s.call(this,t);this.type="hash";this.pairs=e},IdNode:function(e,t){s.call(this,t);this.type="ID";var r="",n=[],a=0,o="";for(var l=0,h=e.length;l<h;l++){var u=e[l].part;r+=(e[l].separator||"")+u;if(u===".."||u==="."||u==="this"){if(n.length>0){throw new i("Invalid path: "+r,this)}else if(u===".."){a++;o+="../"}else{this.isScoped=true}}else{n.push(u)}}this.original=r;this.parts=n;this.string=n.join(".");this.depth=a;this.idName=o+this.string;this.isSimple=e.length===1&&!this.isScoped&&a===0;this.stringModeValue=this.string},PartialNameNode:function(e,t){s.call(this,t);this.type="PARTIAL_NAME";this.name=e.original},DataNode:function(e,t){s.call(this,t);this.type="DATA";this.id=e;this.stringModeValue=e.stringModeValue;this.idName="@"+e.stringModeValue},StringNode:function(e,t){s.call(this,t);this.type="STRING";this.original=this.string=this.stringModeValue=e},NumberNode:function(e,t){s.call(this,t);this.type="NUMBER";this.original=this.number=e;this.stringModeValue=Number(e)},BooleanNode:function(e,t){s.call(this,t);this.type="BOOLEAN";this.bool=e;this.stringModeValue=e==="true"},CommentNode:function(e,t){s.call(this,t);this.type="comment";this.comment=e;this.strip={inlineStandalone:true}}};t=r;return t}(i);var o=function(){"use strict";var e;var t=function(){var e={trace:function s(){},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 r(e,t,i,s,n,a,o){var l=a.length-1;switch(n){case 1:s.prepareProgram(a[l-1].statements,true);return a[l-1];break;case 2:this.$=new s.ProgramNode(s.prepareProgram(a[l]),{},this._$);break;case 3:this.$=a[l];break;case 4:this.$=a[l];break;case 5:this.$=a[l];break;case 6:this.$=a[l];break;case 7:this.$=new s.ContentNode(a[l],this._$);break;case 8:this.$=new s.CommentNode(a[l],this._$);break;case 9:this.$=new s.RawBlockNode(a[l-2],a[l-1],a[l],this._$);break;case 10:this.$=new s.MustacheNode(a[l-1],null,"","",this._$);break;case 11:this.$=s.prepareBlock(a[l-3],a[l-2],a[l-1],a[l],false,this._$);break;case 12:this.$=s.prepareBlock(a[l-3],a[l-2],a[l-1],a[l],true,this._$);break;case 13:this.$=new s.MustacheNode(a[l-1],null,a[l-2],s.stripFlags(a[l-2],a[l]),this._$);break;case 14:this.$=new s.MustacheNode(a[l-1],null,a[l-2],s.stripFlags(a[l-2],a[l]),this._$);break;case 15:this.$={strip:s.stripFlags(a[l-1],a[l-1]),program:a[l]};break;case 16:this.$={path:a[l-1],strip:s.stripFlags(a[l-2],a[l])};break;case 17:this.$=new s.MustacheNode(a[l-1],null,a[l-2],s.stripFlags(a[l-2],a[l]),this._$);break;case 18:this.$=new s.MustacheNode(a[l-1],null,a[l-2],s.stripFlags(a[l-2],a[l]),this._$);break;case 19:this.$=new s.PartialNode(a[l-3],a[l-2],a[l-1],s.stripFlags(a[l-4],a[l]),this._$);break;case 20:this.$=new s.PartialNode(a[l-2],undefined,a[l-1],s.stripFlags(a[l-3],a[l]),this._$);break;case 21:this.$=new s.SexprNode([a[l-2]].concat(a[l-1]),a[l],this._$);break;case 22:this.$=new s.SexprNode([a[l]],null,this._$);break;case 23:this.$=a[l];break;case 24:this.$=new s.StringNode(a[l],this._$);break;case 25:this.$=new s.NumberNode(a[l],this._$);break;case 26:this.$=new s.BooleanNode(a[l],this._$);break;case 27:this.$=a[l];break;case 28:a[l-1].isHelper=true;this.$=a[l-1];break;case 29:this.$=new s.HashNode(a[l],this._$);break;case 30:this.$=[a[l-2],a[l]];break;case 31:this.$=new s.PartialNameNode(a[l],this._$);break;case 32:this.$=new s.PartialNameNode(new s.StringNode(a[l],this._$),this._$);break;case 33:this.$=new s.PartialNameNode(new s.NumberNode(a[l],this._$));break;case 34:this.$=new s.DataNode(a[l],this._$);break;case 35:this.$=new s.IdNode(a[l],this._$);break;case 36:a[l-2].push({part:a[l],separator:a[l-1]});this.$=a[l-2];break;case 37:this.$=[{part:a[l]}];break;case 38:this.$=[];break;case 39:a[l-1].push(a[l]);break;case 48:this.$=[];break;case 49:a[l-1].push(a[l]);break;case 52:this.$=[a[l]];break;case 53:a[l-1].push(a[l]);break}},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 n(e,t){throw new Error(e)},parse:function a(e){var t=this,i=[0],s=[null],r=[],n=this.table,a="",o=0,l=0,h=0,u=2,c=1;this.lexer.setInput(e);this.lexer.yy=this.yy;this.yy.lexer=this.lexer;this.yy.parser=this;if(typeof this.lexer.yylloc=="undefined")this.lexer.yylloc={};var p=this.lexer.yylloc;r.push(p);var f=this.lexer.options&&this.lexer.options.ranges;if(typeof this.yy.parseError==="function")this.parseError=this.yy.parseError;
function d(e){i.length=i.length-2*e;s.length=s.length-e;r.length=r.length-e}function m(){var e;e=t.lexer.lex()||1;if(typeof e!=="number"){e=t.symbols_[e]||e}return e}var g,v,b,y,k,w,_={},x,S,E,P;while(true){b=i[i.length-1];if(this.defaultActions[b]){y=this.defaultActions[b]}else{if(g===null||typeof g=="undefined"){g=m()}y=n[b]&&n[b][g]}if(typeof y==="undefined"||!y.length||!y[0]){var N="";if(!h){P=[];for(x in n[b])if(this.terminals_[x]&&x>2){P.push("'"+this.terminals_[x]+"'")}if(this.lexer.showPosition){N="Parse error on line "+(o+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+P.join(", ")+", got '"+(this.terminals_[g]||g)+"'"}else{N="Parse error on line "+(o+1)+": Unexpected "+(g==1?"end of input":"'"+(this.terminals_[g]||g)+"'")}this.parseError(N,{text:this.lexer.match,token:this.terminals_[g]||g,line:this.lexer.yylineno,loc:p,expected:P})}}if(y[0]instanceof Array&&y.length>1){throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+g)}switch(y[0]){case 1:i.push(g);s.push(this.lexer.yytext);r.push(this.lexer.yylloc);i.push(y[1]);g=null;if(!v){l=this.lexer.yyleng;a=this.lexer.yytext;o=this.lexer.yylineno;p=this.lexer.yylloc;if(h>0)h--}else{g=v;v=null}break;case 2:S=this.productions_[y[1]][1];_.$=s[s.length-S];_._$={first_line:r[r.length-(S||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(S||1)].first_column,last_column:r[r.length-1].last_column};if(f){_._$.range=[r[r.length-(S||1)].range[0],r[r.length-1].range[1]]}w=this.performAction.call(_,a,l,o,this.yy,y[1],s,r);if(typeof w!=="undefined"){return w}if(S){i=i.slice(0,-1*S*2);s=s.slice(0,-1*S);r=r.slice(0,-1*S)}i.push(this.productions_[y[1]][0]);s.push(_.$);r.push(_._$);E=n[i[i.length-2]][i[i.length-1]];i.push(E);break;case 3:return true}}return true}};var t=function(){var e={EOF:1,parseError:function t(e,i){if(this.yy.parser){this.yy.parser.parseError(e,i)}else{throw new Error(e)}},setInput:function(e){this._input=e;this._more=this._less=this.done=false;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};if(this.options.ranges)this.yylloc.range=[0,0];this.offset=0;return this},input:function(){var e=this._input[0];this.yytext+=e;this.yyleng++;this.offset++;this.match+=e;this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);if(t){this.yylineno++;this.yylloc.last_line++}else{this.yylloc.last_column++}if(this.options.ranges)this.yylloc.range[1]++;this._input=this._input.slice(1);return e},unput:function(e){var t=e.length;var i=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input;this.yytext=this.yytext.substr(0,this.yytext.length-t-1);this.offset-=t;var s=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);if(i.length-1)this.yylineno-=i.length-1;var r=this.yylloc.range;this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===s.length?this.yylloc.first_column:0)+s[s.length-i.length].length-i[0].length:this.yylloc.first_column-t};if(this.options.ranges){this.yylloc.range=[r[0],r[0]+this.yyleng-t]}return this},more:function(){this._more=true;return this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;if(e.length<20){e+=this._input.substr(0,20-e.length)}return(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput();var t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done){return this.EOF}if(!this._input)this.done=true;var e,t,i,s,r,n;if(!this._more){this.yytext="";this.match=""}var a=this._currentRules();for(var o=0;o<a.length;o++){i=this._input.match(this.rules[a[o]]);if(i&&(!t||i[0].length>t[0].length)){t=i;s=o;if(!this.options.flex)break}}if(t){n=t[0].match(/(?:\r\n?|\n).*/g);if(n)this.yylineno+=n.length;this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length};this.yytext+=t[0];this.match+=t[0];this.matches=t;this.yyleng=this.yytext.length;if(this.options.ranges){this.yylloc.range=[this.offset,this.offset+=this.yyleng]}this._more=false;this._input=this._input.slice(t[0].length);this.matched+=t[0];e=this.performAction.call(this,this.yy,this,a[s],this.conditionStack[this.conditionStack.length-1]);if(this.done&&this._input)this.done=false;if(e)return e;else return}if(this._input===""){return this.EOF}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}},lex:function i(){var e=this.next();if(typeof e!=="undefined"){return e}else{return this.lex()}},begin:function s(e){this.conditionStack.push(e)},popState:function r(){return this.conditionStack.pop()},_currentRules:function n(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function a(e){this.begin(e)}};e.options={};e.performAction=function o(e,t,i,s){function r(e,i){return t.yytext=t.yytext.substr(e,t.yyleng-i)}var n=s;switch(i){case 0:if(t.yytext.slice(-2)==="\\\\"){r(0,1);this.begin("mu")}else if(t.yytext.slice(-1)==="\\"){r(0,1);this.begin("emu")}else{this.begin("mu")}if(t.yytext)return 12;break;case 1:return 12;break;case 2:this.popState();return 12;break;case 3:t.yytext=t.yytext.substr(5,t.yyleng-9);this.popState();return 15;break;case 4:return 12;break;case 5:r(0,4);this.popState();return 13;break;case 6:return 45;break;case 7:return 46;break;case 8:return 16;break;case 9:this.popState();this.begin("raw");return 18;break;case 10:return 34;break;case 11:return 24;break;case 12:return 29;break;case 13:this.popState();return 28;break;case 14:this.popState();return 28;break;case 15:return 26;break;case 16:return 26;break;case 17:return 32;break;case 18:return 31;break;case 19:this.popState();this.begin("com");break;case 20:r(3,5);this.popState();return 13;break;case 21:return 31;break;case 22:return 51;break;case 23:return 50;break;case 24:return 50;break;case 25:return 54;break;case 26:break;case 27:this.popState();return 33;break;case 28:this.popState();return 25;break;case 29:t.yytext=r(1,2).replace(/\\"/g,'"');return 42;break;case 30:t.yytext=r(1,2).replace(/\\'/g,"'");return 42;break;case 31:return 52;break;case 32:return 44;break;case 33:return 44;break;case 34:return 43;break;case 35:return 50;break;case 36:t.yytext=r(1,2);return 50;break;case 37:return"INVALID";break;case 38:return 5;break}};e.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\/.)]))))/,/^(?:\[[^\]]*\])/,/^(?:.)/,/^(?:$)/];e.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:false},emu:{rules:[2],inclusive:false},com:{rules:[5],inclusive:false},raw:{rules:[3,4],inclusive:false},INITIAL:{rules:[0,1,38],inclusive:true}};return e}();e.lexer=t;function i(){this.yy={}}i.prototype=e;e.Parser=i;return new i}();e=t;return e}();var l=function(e){"use strict";var t={};var i=e;function s(e,t){return{left:e.charAt(2)==="~",right:t.charAt(t.length-3)==="~"}}t.stripFlags=s;function r(e,t,s,r,n,u){if(e.sexpr.id.original!==r.path.original){throw new i(e.sexpr.id.original+" doesn't match "+r.path.original,e)}var c=s&&s.program;var p={left:e.strip.left,right:r.strip.right,openStandalone:o(t.statements),closeStandalone:a((c||t).statements)};if(e.strip.right){l(t.statements,null,true)}if(c){var f=s.strip;if(f.left){h(t.statements,null,true)}if(f.right){l(c.statements,null,true)}if(r.strip.left){h(c.statements,null,true)}if(a(t.statements)&&o(c.statements)){h(t.statements);l(c.statements)}}else{if(r.strip.left){h(t.statements,null,true)}}if(n){return new this.BlockNode(e,c,t,p,u)}else{return new this.BlockNode(e,t,c,p,u)}}t.prepareBlock=r;function n(e,t){for(var i=0,s=e.length;i<s;i++){var r=e[i],n=r.strip;if(!n){continue}var u=a(e,i,t,r.type==="partial"),c=o(e,i,t),p=n.openStandalone&&u,f=n.closeStandalone&&c,d=n.inlineStandalone&&u&&c;if(n.right){l(e,i,true)}if(n.left){h(e,i,true)}if(d){l(e,i);if(h(e,i)){if(r.type==="partial"){r.indent=/([ \t]+$)/.exec(e[i-1].original)?RegExp.$1:""}}}if(p){l((r.program||r.inverse).statements);h(e,i)}if(f){l(e,i);h((r.inverse||r.program).statements)}}return e}t.prepareProgram=n;function a(e,t,i){if(t===undefined){t=e.length}var s=e[t-1],r=e[t-2];if(!s){return i}if(s.type==="content"){return(r||!i?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(s.original)}}function o(e,t,i){if(t===undefined){t=-1}var s=e[t+1],r=e[t+2];if(!s){return i}if(s.type==="content"){return(r||!i?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(s.original)}}function l(e,t,i){var s=e[t==null?0:t+1];if(!s||s.type!=="content"||!i&&s.rightStripped){return}var r=s.string;s.string=s.string.replace(i?/^\s+/:/^[ \t]*\r?\n?/,"");s.rightStripped=s.string!==r}function h(e,t,i){var s=e[t==null?e.length-1:t-1];if(!s||s.type!=="content"||!i&&s.leftStripped){return}var r=s.string;s.string=s.string.replace(i?/\s+$/:/[ \t]+$/,"");s.leftStripped=s.string!==r;return s.leftStripped}return t}(i);var h=function(e,t,i,s){"use strict";var r={};var n=e;var a=t;var o=i;var l=s.extend;r.parser=n;var h={};l(h,o,a);function u(e){if(e.constructor===a.ProgramNode){return e}n.yy=h;return n.parse(e)}r.parse=u;return r}(o,a,l,t);var u=function(e,t){"use strict";var i={};var s=e;var r=t.isArray;var n=[].slice;function a(){}i.Compiler=a;a.prototype={compiler:a,equals:function(e){var t=this.opcodes.length;if(e.opcodes.length!==t){return false}for(var i=0;i<t;i++){var s=this.opcodes[i],r=e.opcodes[i];if(s.opcode!==r.opcode||!h(s.args,r.args)){return false}}t=this.children.length;for(i=0;i<t;i++){if(!this.children[i].equals(e.children[i])){return false}}return true},guid:0,compile:function(e,t){this.opcodes=[];this.children=[];this.depths={list:[]};this.options=t;this.stringParams=t.stringParams;this.trackIds=t.trackIds;var i=this.options.knownHelpers;this.options.knownHelpers={helperMissing:true,blockHelperMissing:true,each:true,"if":true,unless:true,"with":true,log:true,lookup:true};if(i){for(var s in i){this.options.knownHelpers[s]=i[s]}}return this.accept(e)},accept:function(e){return this[e.type](e)},program:function(e){var t=e.statements;for(var i=0,s=t.length;i<s;i++){this.accept(t[i])}this.isSimple=s===1;this.depths.list=this.depths.list.sort(function(e,t){return e-t});return this},compileProgram:function(e){var t=(new this.compiler).compile(e,this.options);var i=this.guid++,s;this.usePartial=this.usePartial||t.usePartial;this.children[i]=t;for(var r=0,n=t.depths.list.length;r<n;r++){s=t.depths.list[r];if(s<2){continue}else{this.addDepth(s-1)}}return i},block:function(e){var t=e.mustache,i=e.program,s=e.inverse;if(i){i=this.compileProgram(i)}if(s){s=this.compileProgram(s)}var r=t.sexpr;var n=this.classifySexpr(r);if(n==="helper"){this.helperSexpr(r,i,s)}else if(n==="simple"){this.simpleSexpr(r);this.opcode("pushProgram",i);this.opcode("pushProgram",s);this.opcode("emptyHash");this.opcode("blockValue",r.id.original)}else{this.ambiguousSexpr(r,i,s);this.opcode("pushProgram",i);this.opcode("pushProgram",s);this.opcode("emptyHash");this.opcode("ambiguousBlockValue")}this.opcode("append")},hash:function(e){var t=e.pairs,i,s;this.opcode("pushHash");for(i=0,s=t.length;i<s;i++){this.pushParam(t[i][1])}while(i--){this.opcode("assignToHash",t[i][0])}this.opcode("popHash")},partial:function(e){var t=e.partialName;this.usePartial=true;if(e.hash){this.accept(e.hash)}else{this.opcode("push","undefined")}if(e.context){this.accept(e.context)}else{this.opcode("getContext",0);this.opcode("pushContext")}this.opcode("invokePartial",t.name,e.indent||"");this.opcode("append")},content:function(e){if(e.string){this.opcode("appendContent",e.string)}},mustache:function(e){this.sexpr(e.sexpr);if(e.escaped&&!this.options.noEscape){this.opcode("appendEscaped")}else{this.opcode("append")}},ambiguousSexpr:function(e,t,i){var s=e.id,r=s.parts[0],n=t!=null||i!=null;this.opcode("getContext",s.depth);this.opcode("pushProgram",t);this.opcode("pushProgram",i);this.ID(s);this.opcode("invokeAmbiguous",r,n)},simpleSexpr:function(e){var t=e.id;if(t.type==="DATA"){this.DATA(t)}else if(t.parts.length){this.ID(t)}else{this.addDepth(t.depth);this.opcode("getContext",t.depth);this.opcode("pushContext")}this.opcode("resolvePossibleLambda")},helperSexpr:function(e,t,i){var r=this.setupFullMustacheParams(e,t,i),n=e.id,a=n.parts[0];if(this.options.knownHelpers[a]){this.opcode("invokeKnownHelper",r.length,a)}else if(this.options.knownHelpersOnly){throw new s("You specified knownHelpersOnly, but used the unknown helper "+a,e)}else{n.falsy=true;this.ID(n);this.opcode("invokeHelper",r.length,n.original,n.isSimple)}},sexpr:function(e){var t=this.classifySexpr(e);if(t==="simple"){this.simpleSexpr(e)}else if(t==="helper"){this.helperSexpr(e)}else{this.ambiguousSexpr(e)}},ID:function(e){this.addDepth(e.depth);this.opcode("getContext",e.depth);var t=e.parts[0];if(!t){this.opcode("pushContext")}else{this.opcode("lookupOnContext",e.parts,e.falsy,e.isScoped)}},DATA:function(e){this.options.data=true;this.opcode("lookupData",e.id.depth,e.id.parts)},STRING:function(e){this.opcode("pushString",e.string)},NUMBER:function(e){this.opcode("pushLiteral",e.number)},BOOLEAN:function(e){this.opcode("pushLiteral",e.bool)},comment:function(){},opcode:function(e){this.opcodes.push({opcode:e,args:n.call(arguments,1)})},addDepth:function(e){if(e===0){return}if(!this.depths[e]){this.depths[e]=true;this.depths.list.push(e)}},classifySexpr:function(e){var t=e.isHelper;var i=e.eligibleHelper;var s=this.options;if(i&&!t){var r=e.id.parts[0];if(s.knownHelpers[r]){t=true}else if(s.knownHelpersOnly){i=false}}if(t){return"helper"}else if(i){return"ambiguous"}else{return"simple"}},pushParams:function(e){for(var t=0,i=e.length;t<i;t++){this.pushParam(e[t])}},pushParam:function(e){if(this.stringParams){if(e.depth){this.addDepth(e.depth)}this.opcode("getContext",e.depth||0);this.opcode("pushStringParam",e.stringModeValue,e.type);if(e.type==="sexpr"){this.sexpr(e)}}else{if(this.trackIds){this.opcode("pushId",e.type,e.idName||e.stringModeValue)}this.accept(e)}},setupFullMustacheParams:function(e,t,i){var s=e.params;this.pushParams(s);this.opcode("pushProgram",t);this.opcode("pushProgram",i);if(e.hash){this.hash(e.hash)}else{this.opcode("emptyHash")}return s}};function o(e,t,i){if(e==null||typeof e!=="string"&&e.constructor!==i.AST.ProgramNode){throw new s("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e)}t=t||{};if(!("data"in t)){t.data=true}if(t.compat){t.useDepths=true}var r=i.parse(e);var n=(new i.Compiler).compile(r,t);return(new i.JavaScriptCompiler).compile(n,t)}i.precompile=o;function l(e,t,i){if(e==null||typeof e!=="string"&&e.constructor!==i.AST.ProgramNode){throw new s("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e)}t=t||{};if(!("data"in t)){t.data=true}if(t.compat){t.useDepths=true}var r;function n(){var s=i.parse(e);var r=(new i.Compiler).compile(s,t);var n=(new i.JavaScriptCompiler).compile(r,t,undefined,true);return i.template(n)}var a=function(e,t){if(!r){r=n()}return r.call(this,e,t)};a._setup=function(e){if(!r){r=n()}return r._setup(e)};a._child=function(e,t,i){if(!r){r=n()}return r._child(e,t,i)};return a}i.compile=l;function h(e,t){if(e===t){return true}if(r(e)&&r(t)&&e.length===t.length){for(var i=0;i<e.length;i++){if(!h(e[i],t[i])){return false}}return true}}return i}(i,t);var c=function(e,t){"use strict";var i;var s=e.COMPILER_REVISION;var r=e.REVISION_CHANGES;var n=t;function a(e){this.value=e}function o(){}o.prototype={nameLookup:function(e,t){if(o.isValidJavaScriptVariableName(t)){return e+"."+t}else{return e+"['"+t+"']"}},depthedLookup:function(e){this.aliases.lookup="this.lookup";return'lookup(depths, "'+e+'")'},compilerInfo:function(){var e=s,t=r[e];return[e,t]},appendToBuffer:function(e){if(this.environment.isSimple){return"return "+e+";"}else{return{appendToBuffer:true,content:e,toString:function(){return"buffer += "+e+";"}}}},initializeBuffer:function(){return this.quotedString("")},namespace:"Handlebars",compile:function(e,t,i,s){this.environment=e;this.options=t;this.stringParams=this.options.stringParams;this.trackIds=this.options.trackIds;this.precompile=!s;this.name=this.environment.name;this.isChild=!!i;this.context=i||{programs:[],environments:[]};this.preamble();this.stackSlot=0;this.stackVars=[];this.aliases={};this.registers={list:[]};this.hashes=[];this.compileStack=[];this.inlineStack=[];this.compileChildren(e,t);this.useDepths=this.useDepths||e.depths.list.length||this.options.compat;var r=e.opcodes,a,o,l;for(o=0,l=r.length;o<l;o++){a=r[o];this[a.opcode].apply(this,a.args)}this.pushSource("");if(this.stackSlot||this.inlineStack.length||this.compileStack.length){throw new n("Compile completed with content left on stack")}var h=this.createFunctionContext(s);if(!this.isChild){var u={compiler:this.compilerInfo(),main:h};var c=this.context.programs;for(o=0,l=c.length;o<l;o++){if(c[o]){u[o]=c[o]}}if(this.environment.usePartial){u.usePartial=true}if(this.options.data){u.useData=true}if(this.useDepths){u.useDepths=true}if(this.options.compat){u.compat=true}if(!s){u.compiler=JSON.stringify(u.compiler);u=this.objectLiteral(u)}return u}else{return h}},preamble:function(){this.lastContext=0;this.source=[]},createFunctionContext:function(e){var t="";var i=this.stackVars.concat(this.registers.list);if(i.length>0){t+=", "+i.join(", ")}for(var s in this.aliases){if(this.aliases.hasOwnProperty(s)){t+=", "+s+"="+this.aliases[s]}}var r=["depth0","helpers","partials","data"];if(this.useDepths){r.push("depths")}var n=this.mergeSource(t);if(e){r.push(n);return Function.apply(this,r)}else{return"function("+r.join(",")+") {\n  "+n+"}"}},mergeSource:function(e){var t="",i,s=!this.forceBuffer,r;for(var n=0,a=this.source.length;n<a;n++){var o=this.source[n];if(o.appendToBuffer){if(i){i=i+"\n    + "+o.content}else{i=o.content}}else{if(i){if(!t){r=true;t=i+";\n  "}else{t+="buffer += "+i+";\n  "}i=undefined}t+=o+"\n  ";if(!this.environment.isSimple){s=false}}}if(s){if(i||!t){t+="return "+(i||'""')+";\n"}}else{e+=", buffer = "+(r?"":this.initializeBuffer());if(i){t+="return buffer + "+i+";\n"}else{t+="return buffer;\n"}}if(e){t="var "+e.substring(2)+(r?"":";\n  ")+t}return t},blockValue:function(e){this.aliases.blockHelperMissing="helpers.blockHelperMissing";var t=[this.contextName(0)];this.setupParams(e,0,t);var i=this.popStack();t.splice(1,0,i);this.push("blockHelperMissing.call("+t.join(", ")+")")},ambiguousBlockValue:function(){this.aliases.blockHelperMissing="helpers.blockHelperMissing";var e=[this.contextName(0)];this.setupParams("",0,e,true);this.flushInline();var t=this.topStack();e.splice(1,0,t);this.pushSource("if (!"+this.lastHelper+") { "+t+" = blockHelperMissing.call("+e.join(", ")+"); }")},appendContent:function(e){if(this.pendingContent){e=this.pendingContent+e}this.pendingContent=e},append:function(){this.flushInline();var e=this.popStack();this.pushSource("if ("+e+" != null) { "+this.appendToBuffer(e)+" }");if(this.environment.isSimple){this.pushSource("else { "+this.appendToBuffer("''")+" }")}},appendEscaped:function(){this.aliases.escapeExpression="this.escapeExpression";this.pushSource(this.appendToBuffer("escapeExpression("+this.popStack()+")"))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,t,i){var s=0,r=e.length;if(!i&&this.options.compat&&!this.lastContext){this.push(this.depthedLookup(e[s++]))}else{this.pushContext()}for(;s<r;s++){this.replaceStack(function(i){var r=this.nameLookup(i,e[s],"context");if(!t){return" != null ? "+r+" : "+i}else{return" && "+r}})}},lookupData:function(e,t){if(!e){this.pushStackLiteral("data")}else{this.pushStackLiteral("this.data(data, "+e+")")}var i=t.length;for(var s=0;s<i;s++){this.replaceStack(function(e){return" && "+this.nameLookup(e,t[s],"data")})}},resolvePossibleLambda:function(){this.aliases.lambda="this.lambda";this.push("lambda("+this.popStack()+", "+this.contextName(0)+")")},pushStringParam:function(e,t){this.pushContext();this.pushString(t);if(t!=="sexpr"){if(typeof e==="string"){this.pushString(e)}else{this.pushStackLiteral(e)}}},emptyHash:function(){this.pushStackLiteral("{}");if(this.trackIds){this.push("{}")}if(this.stringParams){this.push("{}");this.push("{}")}},pushHash:function(){if(this.hash){this.hashes.push(this.hash)}this.hash={values:[],types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop();if(this.trackIds){this.push("{"+e.ids.join(",")+"}")}if(this.stringParams){this.push("{"+e.contexts.join(",")+"}");this.push("{"+e.types.join(",")+"}")}this.push("{\n    "+e.values.join(",\n    ")+"\n  }")},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},push:function(e){this.inlineStack.push(e);return e},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){if(e!=null){this.pushStackLiteral(this.programExpression(e))}else{this.pushStackLiteral(null)}},invokeHelper:function(e,t,i){this.aliases.helperMissing="helpers.helperMissing";var s=this.popStack();var r=this.setupHelper(e,t);var n=(i?r.name+" || ":"")+s+" || helperMissing";this.push("(("+n+").call("+r.callParams+"))")},invokeKnownHelper:function(e,t){var i=this.setupHelper(e,t);this.push(i.name+".call("+i.callParams+")")},invokeAmbiguous:function(e,t){this.aliases.functionType='"function"';this.aliases.helperMissing="helpers.helperMissing";this.useRegister("helper");var i=this.popStack();this.emptyHash();var s=this.setupHelper(0,e,t);var r=this.lastHelper=this.nameLookup("helpers",e,"helper");this.push("((helper = (helper = "+r+" || "+i+") != null ? helper : helperMissing"+(s.paramsInit?"),("+s.paramsInit:"")+"),"+"(typeof helper === functionType ? helper.call("+s.callParams+") : helper))")},invokePartial:function(e,t){var i=[this.nameLookup("partials",e,"partial"),"'"+t+"'","'"+e+"'",this.popStack(),this.popStack(),"helpers","partials"];if(this.options.data){i.push("data")}else if(this.options.compat){i.push("undefined")}if(this.options.compat){i.push("depths")}this.push("this.invokePartial("+i.join(", ")+")")},assignToHash:function(e){var t=this.popStack(),i,s,r;if(this.trackIds){r=this.popStack()}if(this.stringParams){s=this.popStack();i=this.popStack()}var n=this.hash;if(i){n.contexts.push("'"+e+"': "+i)}if(s){n.types.push("'"+e+"': "+s)}if(r){n.ids.push("'"+e+"': "+r)}n.values.push("'"+e+"': ("+t+")")},pushId:function(e,t){if(e==="ID"||e==="DATA"){this.pushString(t)}else if(e==="sexpr"){this.pushStackLiteral("true")}else{this.pushStackLiteral("null")}},compiler:o,compileChildren:function(e,t){var i=e.children,s,r;for(var n=0,a=i.length;n<a;n++){s=i[n];r=new this.compiler;var o=this.matchExistingProgram(s);if(o==null){this.context.programs.push("");o=this.context.programs.length;s.index=o;s.name="program"+o;this.context.programs[o]=r.compile(s,t,this.context,!this.precompile);this.context.environments[o]=s;this.useDepths=this.useDepths||r.useDepths}else{s.index=o;s.name="program"+o}}},matchExistingProgram:function(e){for(var t=0,i=this.context.environments.length;t<i;t++){var s=this.context.environments[t];if(s&&s.equals(e)){return t}}},programExpression:function(e){var t=this.environment.children[e],i=t.depths.list,s=this.useDepths,r;var n=[t.index,"data"];if(s){n.push("depths")}return"this.program("+n.join(", ")+")"},useRegister:function(e){if(!this.registers[e]){this.registers[e]=true;this.registers.list.push(e)}},pushStackLiteral:function(e){return this.push(new a(e))},pushSource:function(e){if(this.pendingContent){this.source.push(this.appendToBuffer(this.quotedString(this.pendingContent)));this.pendingContent=undefined}if(e){this.source.push(e)}},pushStack:function(e){this.flushInline();var t=this.incrStack();this.pushSource(t+" = "+e+";");this.compileStack.push(t);return t},replaceStack:function(e){var t="",i=this.isInline(),s,r,o;if(!this.isInline()){throw new n("replaceStack on non-inline")}var l=this.popStack(true);if(l instanceof a){t=s=l.value;o=true}else{r=!this.stackSlot;var h=!r?this.topStackName():this.incrStack();t="("+this.push(h)+" = "+l+")";s=this.topStack()}var u=e.call(this,s);if(!o){this.popStack()}if(r){this.stackSlot--}this.push("("+t+u+")")},incrStack:function(){this.stackSlot++;if(this.stackSlot>this.stackVars.length){this.stackVars.push("stack"+this.stackSlot)}return this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var e=this.inlineStack;if(e.length){this.inlineStack=[];for(var t=0,i=e.length;t<i;t++){var s=e[t];if(s instanceof a){this.compileStack.push(s)}else{this.pushStack(s)}}}},isInline:function(){return this.inlineStack.length},popStack:function(e){var t=this.isInline(),i=(t?this.inlineStack:this.compileStack).pop();if(!e&&i instanceof a){return i.value}else{if(!t){if(!this.stackSlot){throw new n("Invalid stack pop")}this.stackSlot--}return i}},topStack:function(){var e=this.isInline()?this.inlineStack:this.compileStack,t=e[e.length-1];if(t instanceof a){return t.value}else{return t}},contextName:function(e){if(this.useDepths&&e){return"depths["+e+"]"}else{return"depth"+e}},quotedString:function(e){return'"'+e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var t=[];for(var i in e){if(e.hasOwnProperty(i)){t.push(this.quotedString(i)+":"+e[i])}}return"{"+t.join(",")+"}"},setupHelper:function(e,t,i){var s=[],r=this.setupParams(t,e,s,i);var n=this.nameLookup("helpers",t,"helper");return{params:s,paramsInit:r,name:n,callParams:[this.contextName(0)].concat(s).join(", ")}},setupOptions:function(e,t,i){var s={},r=[],n=[],a=[],o,l,h;s.name=this.quotedString(e);s.hash=this.popStack();if(this.trackIds){s.hashIds=this.popStack()}if(this.stringParams){s.hashTypes=this.popStack();s.hashContexts=this.popStack()}l=this.popStack();h=this.popStack();if(h||l){if(!h){h="this.noop"}if(!l){l="this.noop"}s.fn=h;s.inverse=l}var u=t;while(u--){o=this.popStack();i[u]=o;if(this.trackIds){a[u]=this.popStack()}if(this.stringParams){n[u]=this.popStack();r[u]=this.popStack()}}if(this.trackIds){s.ids="["+a.join(",")+"]"}if(this.stringParams){s.types="["+n.join(",")+"]";s.contexts="["+r.join(",")+"]"}if(this.options.data){s.data="data"}return s},setupParams:function(e,t,i,s){var r=this.objectLiteral(this.setupOptions(e,t,i));if(s){this.useRegister("options");i.push("options");return"options="+r}else{i.push(r);return""}}};var l=("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(" ");var h=o.RESERVED_WORDS={};for(var u=0,c=l.length;u<c;u++){h[l[u]]=true}o.isValidJavaScriptVariableName=function(e){return!o.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)};i=o;return i}(s,i);var p=function(e,t,i,s,r){"use strict";var n;var a=e;var o=t;var l=i.parser;var h=i.parse;var u=s.Compiler;var c=s.compile;var p=s.precompile;var f=r;var d=a.create;var m=function(){var e=d();e.compile=function(t,i){return c(t,i,e)};e.precompile=function(t,i){return p(t,i,e)};e.AST=o;e.Compiler=u;e.JavaScriptCompiler=f;e.Parser=l;e.parse=h;return e};a=m();a.create=m;a["default"]=a;n=a;return n}(n,a,h,u,c);return p})});define("ae-feedback-ui/node_modules/@alife/beta-template/template.js",["beta-jquery/jquery","ae-feedback-ui/node_modules/@alife/beta-handlebars/handlebars.js"],function(require,e,t){var i=require("beta-jquery/jquery");var s=require("ae-feedback-ui/node_modules/@alife/beta-handlebars/handlebars.js");var r={};t.exports={templateHelpers:null,templatePartials:null,templateObject:null,parseElementFromTemplate:function(){var e,t=this.get("template");if(/^#/.test(t)&&(e=document.getElementById(t.substring(1)))){t=e.innerHTML;this.set("template",t)}this.templateObject=a(t);this.element=i(this.compile())},compile:function(e,t){e||(e=this.get("template"));t||(t=this.get("model"))||(t={});if(t.toJSON){t=t.toJSON()}if(u(e)){return e(t,{helpers:this.templateHelpers,partials:c(this.templatePartials)})}else{var i=this.templateHelpers;var n=this.templatePartials;var a,o;if(i){for(a in i){if(i.hasOwnProperty(a)){s.registerHelper(a,i[a])}}}if(n){for(o in n){if(n.hasOwnProperty(o)){s.registerPartial(o,n[o])}}}var l=r[e];if(!l){l=r[e]=s.compile(e)}var h=l(t);if(i){for(a in i){if(i.hasOwnProperty(a)){delete s.helpers[a]}}}if(n){for(o in n){if(n.hasOwnProperty(o)){delete s.partials[o]}}}return h}},renderPartial:function(e){if(this.templateObject){var t=o(this.templateObject,e);if(t){if(e){this.$(e).html(this.compile(t))}else{this.element.html(this.compile(t))}}else{this.element.html(this.compile())}}else{var s=i(this.compile());var r=s.find(e);if(r.length){this.$(e).html(r.html())}else{this.element.html(s.html())}}return this}};var n=s.compile;s.compile=function(e){return u(e)?e:n.call(s,e)};function a(e){return u(e)?null:i(l(e))}function o(e,t){if(!e)return;var i;if(t){i=e.find(t);if(i.length===0){throw new Error("Invalid template selector: "+t)}}else{i=e}return h(i.html())}function l(e){return e.replace(/({[^}]+}})/g,"<!--$1-->").replace(/\s(src|href)\s*=\s*(['"])(.*?\{.+?)\2/g," data-templatable-$1=$2$3$2")}function h(e){return e.replace(/(?:<|&lt;)!--({{[^}]+}})--(?:>|&gt;)/g,"$1").replace(/data-templatable-/gi,"")}function u(e){return typeof e==="function"}function c(e){if(!e)return{};var t={};for(var i in e){var r=e[i];t[i]=u(r)?r:s.compile(r)}return t}});define("ae-feedback-ui/node_modules/@alife/beta-balloon/src/js/balloon.tpl",[],function(require,e,t){t.exports='<div class="ui-balloon">\n	{{#if complex}}\n		<div class="ui-notice ui-notice-normal dependency">\n			<div class="ui-notice-content">\n				{{#if hasCloseX}}\n				<a href="javascript:;" class="ui-close" data-role="close">close</a>\n				{{/if}}\n				<h4 class="ui-notice-header" data-role="title"></h4>\n				<div class="ui-notice-body" data-role="content"></div>\n			</div>\n		</div>\n	{{else}}\n		<div data-role="content"></div>\n	{{/if}}\n	\n	<a class="ui-balloon-arrow" data-role="arrow"></a>\n</div>\n'});define("ae-feedback-ui/node_modules/@alife/beta-balloon/balloon.js",["beta-jquery/jquery","ae-feedback-ui/node_modules/@alife/beta-popup/popup.js","ae-feedback-ui/node_modules/@alife/beta-template/template.js","ae-feedback-ui/node_modules/@alife/beta-balloon/src/js/balloon.tpl"],function(require,e,t){var i=require("beta-jquery/jquery"),s=require("ae-feedback-ui/node_modules/@alife/beta-popup/popup.js"),r=require("ae-feedback-ui/node_modules/@alife/beta-template/template.js"),n="distance",a="arrowPosition",o="alignType",l="offset",h="inViewport",u={
tl:"tl",tr:"tr",rt:"rt",rb:"rb",br:"br",bl:"bl",lb:"lb",lt:"lt"},c=17,p="ui-balloon-",f={},d;f[n]=10;f[a]={value:"lt",setter:function(e){var t=u[e]||"lt";if(!this._oriSet){this._originArrowPosition=t}return t}};f[o]={value:"arrow",setter:function(e){if(e!="arrow"&&e!="line"){e="arrow"}return e}};f[l]={value:null,getter:function(e){return e||[0,0]}};f[h]=false;f.direction="up";f.template=require("ae-feedback-ui/node_modules/@alife/beta-balloon/src/js/balloon.tpl");f.content="";f.title="";f.hasCloseX=false;d=s.extend({Implements:[r],attrs:f,events:{'click [data-role="close"]':"hide"},setup:function(){this._originArrowPosition=this.get(a);this._oriSet=false;if(this.get("triggerType")=="none"){this._bindTrigger=this._blurHide=function(){}}d.superclass.setup.call(this)},parseElement:function(){this._initModel();d.superclass.parseElement.call(this)},_initModel:function(){var e={complex:false},t=this.get("hasCloseX"),i=this.get("title")!="";if(t||i){e.complex=true;e.hasCloseX=t}this.set("model",e)},show:function(){d.superclass.show.call(this);this._makesureInViewport();return this},_makesureInViewport:function(){if(this.get(h)){var e=this._originArrowPosition,t=i(window),s=t.scrollTop(),r=t.scrollLeft(),n=this.element,o=this.get("distance"),l=i(this.activeTrigger),u=l.offset(),c=n.offset();if(e.indexOf("t")>-1){if(u.top+l.outerHeight()>s+t.outerHeight()-(n.outerHeight()+o)){e=e.replace("t","B")}}if(e.indexOf("l")>-1){if(u.left+l.outerWidth()>r+t.outerWidth()-(n.outerWidth()+o)){e=e.replace("l","R")}}this._oriSet=true;this.set(a,e.toLowerCase());this._oriSet=false}},_setAlign:function(){var e,t,i=this.get(l),s=false;e=this._setAlignBase();if(this.get(o)=="line"){t=this.get(a);switch(t.charAt(1)){case"l":e.baseXY[0]=0;e.selfXY[0]=0;break;case"r":e.baseXY[0]="100%";e.selfXY[0]="100%";break;case"t":e.baseXY[1]=0;e.selfXY[1]=0;break;case"b":e.baseXY[1]="100%";e.selfXY[1]="100%";break;default:break}}var r=-i[0];var n=-i[1];if(r!=0){e.selfXY[0]+=(r>0?"+":"")+String(r)}if(n!=0){e.selfXY[1]+=(n>0?"+":"")+String(n)}this.set("align",e)},_setAlignBase:function(){var e={},t=this.get("arrowShift"),i=this.get("distance"),s="50%",r=this.get("direction");if(t<0){t="100%"+t}if(r==="up"){e.baseXY=[s,0];e.selfXY=[t,"100%+"+i]}else if(r==="down"){e.baseXY=[s,"100%+"+i];e.selfXY=[t,0]}else if(r==="left"){e.baseXY=[0,s];e.selfXY=["100%+"+i,t]}else if(r==="right"){e.baseXY=["100%+"+i,s];e.selfXY=[0,t]}return e},_onRenderArrowPosition:function(e,t){var i,s;switch(e.charAt(0)){case"l":i="right";break;case"r":i="left";break;case"t":i="down";break;case"b":i="up";break;default:break}if(e=="tr"||e=="rb"||e=="br"||e=="lb"){s=-c}else{s=c}this.set("direction",i);this.set("arrowShift",s);this._setAlign();this.element.removeClass(p+t).addClass(p+e)},_onRenderAlignType:function(e){if(this.rendered){this._setAlign()}},_onRenderContent:function(e){var t=this.$('[data-role="content"]');if(typeof e!=="string"){e=e.call(this)}if(t){t.html(e)}if(this.get("visible")){this._setPosition();this._makesureInViewport()}},_onRenderTitle:function(e){var t=this.$('[data-role="title"]');if(typeof e!=="string"){e=e.call(this)}if(t){t.html(e)}if(this.get("visible")){this._setPosition();this._makesureInViewport()}}});t.exports=d});define("ae-feedback-ui/display/evaluationDetail/index.js",["beta-jquery/jquery","ae-feedback-ui/node_modules/@alife/beta-balloon/balloon.js"],function(require,e,t){var i=require("beta-jquery/jquery"),s=require("ae-feedback-ui/node_modules/@alife/beta-balloon/balloon.js");var r=function(){try{document.domain=document.domain.split(".").slice(-2).join(".")}catch(e){}new s({trigger:i("#positionMsgHelpId"),arrowPosition:"tl",width:300,height:"auto",content:i("#positionMsgHelpContentId").html(),inViewport:true});new s({trigger:i("#scoreMsgHelpId"),arrowPosition:"tl",width:300,height:"auto",content:i("#scoreMsgHelpContentId").html(),inViewport:true});new s({trigger:i("#ratings-help-handler"),arrowPosition:"tl",width:300,height:"auto",content:i("#ratings-help-content").html(),inViewport:true});new s({trigger:i("#dsr-help-handler"),arrowPosition:"tl",width:300,height:"auto",content:i("#dsr-help-content").html(),inViewport:true});i(".fb-feedback-history-list").attr("href","javascript:void(0);");if(window!=parent){i("#d-dispatcher-form").attr("target","rating-displayer")}i(".fb-feedback-history-list").on("click",function(){var e=i("#d-dispatcher-form");var t=i(this).attr("value").split("-");try{document.domain=document.domain.split(".").slice(-2).join(".")}catch(s){}e.find("[name=evalType]").attr("value",t[0]);e.find("[name=month]").attr("value",t[1]);setTimeout(function(){e.submit()},0);window.parent.location.hash="#rating-displayer"});if("true"==pageConfig.isIframe){i(document).ready(function(){setTimeout(function(){var e=navigator.userAgent.toLowerCase();var t=e.match(/chrome/)!=null;var s;if(t){s=document.documentElement.scrollHeight}else{s=document.body.scrollHeight}var r=i("#getHeightProxy");var n=r.attr("thesrc");r.attr("src",n+"#detail-displayer|"+s);if(!this.parent.document.getElementById("detail-displayer")){globalFrame=this.parent.document.getElementById("detail-displayer")}else{globalFrame=this.parent.document.getElementById("detail-displayer").getElementsByTagName("iframe")[0]}if(globalFrame!=null){if(!-[1]){globalFrame.height=s}else{globalFrame.height=s}}},1e3)})}};t.exports={init:r}});