;(function(e){"use strict";var t="@",n=!0,r=function(e,t){if(arguments.length==1)return i(e);var n;return typeof e=="function"?n=e:n=i(e),n.call(null,r.htmlhelper,t)},i=function(e,t){var n={segments:[],segmentindex:0,conditionopeningbracecount:0},r=u.parse(n,e),i=a.tofunctioncontent(r);return new function("html","m",i)};r.htmlhelper={escape:function(e){return(""+e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}};var s={string:0,variable:1,scriptblock:2},o={variablefirstchar:/^[\(_a-za-z]/,variable:/^(?:(?:\()(?:new\s+)?[_a-za-z0-9]+(?:\.|[-\+*\/^=<>?:]|[\[\(][^\]\)]*[\]\)]|[_a-za-z0-9]+)*(?:\))|(?:new\s+)?[_a-za-z0-9]+(?:\.|[\[\(][^\]\)]*[\]\)]|[_a-za-z0-9]+)*)/,conditionandloop:/^(?:if|for|while)\s*\(/,elsecondition:/^[\s\r\n\t]*else(?:\s*{|[\s\t]+if\()?/},u={parse:function(e,n){var r=n.length;for(var i=0;i0&&(this._handleclosebrace(e,n,i),o.elsecondition.test(n.substr(e.segmentindex))&&this._handlecondition(e,n,i+1),i=e.segmentindex-1)}return e.segmentindex