(functione(t,n,r){functions(o,u){if(!n[o]){if(!t[o]){vara=typeofrequire=="function"&&require;if(!u&&a)returna(o,!0);if(i)returni(o,!0);varf=newError("Cannot find module '"+o+"'");throwf.code="MODULE_NOT_FOUND",f}varl=n[o]={exports:{}};t[o][0].call(l.exports,function(e){varn=t[o][1][e];returns(n?n:e)},l,l.exports,e,t,n,r)}returnn[o].exports}vari=typeofrequire=="function"&&require;for(varo=0;o<r.length;o++)s(r[o]);returns})({1:[function(require,module,exports){"use strict";varfs=require("fs"),utils=require("./utils"),scopeOptionWarned=false,_VERSION_STRING=require("../package.json").version,_DEFAULT_DELIMITER="%",_DEFAULT_LOCALS_NAME="locals",_REGEX_STRING="(<%%|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",_OPTS=["cache","filename","delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","localsName"],_TRAILING_SEMCOL=/;\s*$/,_BOM=/^\uFEFF/;exports.cache=utils.cache;exports.localsName=_DEFAULT_LOCALS_NAME;exports.resolveInclude=function(name,filename){varpath=require("path"),dirname=path.dirname,extname=path.extname,resolve=path.resolve,includePath=resolve(dirname(filename),name),ext=extname(name);if(!ext){includePath+=".ejs"}returnincludePath};functionhandleCache(options,template){varfn,path=options.filename,hasTemplate=arguments.length>1;if(options.cache){if(!path){thrownewError("cache option requires a filename")}fn=exports.cache.get(path);if(fn){returnfn}if(!hasTemplate){template=fs.readFileSync(path).toString().replace(_BOM,"")}}elseif(!hasTemplate){if(!path){thrownewError("Internal EJS error: no file name or template "+"provided")}template=fs.readFileSync(path).toString().replace(_BOM,"")}fn=exports.compile(template,options);if(options.cache){exports.cache.set(path,fn)}returnfn}functionincludeFile(path,options){varopts=utils.shallowCopy({},options);if(!opts.filename){thrownewError("`include` requires the 'filename' option.")}opts.filename=exports.resolveInclude(path,opts.filename);returnhandleCache(opts)}functionincludeSource(path,options){varopts=utils.shallowCopy({},options),includePath,template;if(!opts.filename){thrownewError("`include` requires the 'filename' option.")}includePath=exports.resolveInclude(path,opts.filename);template=fs.readFileSync(includePath).toString().replace(_BOM,"");opts.filename=includePath;vartempl=newTemplate(template,opts);templ.generateSource();returntempl.source}functionrethrow(err,str,filename,lineno){varlines=str.split("\n"),start=Math.max(lineno-3,0),end=Math.min(lines.length,lineno+3);varcontext=lines.slice(start,end).map(function(line,i){varcurr=i+start+1;return(curr==lineno?" >> ":" ")+curr+"| "+line}).join("\n");err.path=filename;err.message=(filename||"ejs")+":"+lineno+"\n"+context+"\n\n"+err.message;throwerr}functioncpOptsInData(data,opts){_OPTS.forEach(function(p){if(typeofdata[p]!="undefined"){opts[p]=data[p]}})}exports.compile=functioncompile(template,opts){vartempl;if(opts&&opts.scope){if(!scopeOptionWarned){console.warn("`scope` option is deprecated and will be removed in EJS 3");scopeOptionWarned=true}if(!opts.context){opts.context=opts.scope}deleteopts.scope}templ=newTemplate(template,opts);returntempl.compile()};exports.render=function(template,data,opts){data=data||{};opts=opts||{};varfn;if(arguments.length==2){cpOptsInData(data,opts)}returnhandleCache(opts,template)(data)};exports.renderFile=function(){varargs=Array.prototype.slice.call(arguments),path=args.shift(),cb=args.pop(),data=args.shift()||{},opts=args.pop()||{},result;opts=utils.shallowCopy({},opts);if(arguments.length==3){if(data.settings&&data.settings["view options"]){cpOptsInData(data.settings["view options"],opts)}else{cpOptsInData(data,opts)}}opts.filename=path;try{result=handleCache(opts)(data)}catch(err){returncb(err)}returncb(null,result)};exports.clearCache=function(){exports.cache.reset()};functionTemplate(text,opts){opts=opts||{};varoptions={};this.templateText=text;this.mode=null;this.truncate=false;this.currentLine=1;this.source="";this.dependencies=[];options.client=opts.client||false;options.escapeFunctio