text: /*! Swig v<%= pkg.version %> | https://paularmstrong.github.com/swig | @license https://github.com/paularmstrong/swig/blob/master/LICENSE */
  /*! DateZ (c) 2011 Tomo Universalis | @license https://github.com/TomoUniversalis/DateZ/blob/master/LISENCE */
  !function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);throw new Error("Cannot find module '"+a+"'")}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return o(n?n:e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e){var t=e("../lib/swig");"function"==typeof define&&"object"==typeof define.amd?define([],function(){return t}):window.swig=t},{"../lib/swig":9}],2:[function(e,t,n){function r(e){var t=new Date(e.getFullYear(),0,1),n=new Date(e.getFullYear(),6,1);return Math.max(t.getTimezoneOffset(),n.getTimezoneOffset())}var o=e("./utils"),i={full:["January","February","March","April","May","June","July","August","September","October","November","December"],abbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ap:["Jan.","Feb.","March","April","May","June","July","Aug.","Sep.","Oct.","Nov.","Dec."]},a={full:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],alt:{"-1":"Yesterday",0:"Today",1:"Tomorrow"}};n.tzOffset=0,n.DateZ=function(e){var t={"default":["getUTCDate","getUTCDay","getUTCFullYear","getUTCHours","getUTCMilliseconds","getUTCMinutes","getUTCMonth","getUTCSeconds","toISOString","toGMTString","toUTCString","valueOf","getTime"],z:["getDate","getDay","getFullYear","getHours","getMilliseconds","getMinutes","getMonth","getSeconds","getYear","toDateString","toLocaleDateString","toLocaleTimeString"]},r=this,i=e instanceof Date?Number(e)/1e3:Number(e);r.date=r.dateZ=arguments.length>1?new Date(Date.UTC.apply(Date,arguments)+6e4*(new Date).getTimezoneOffset()):1===arguments.length?new Date(isNaN(i)?e:1e3*i):new Date,r.timezoneOffset=r.dateZ.getTimezoneOffset(),o.each(t.z,function(e){r[e]=function(){return r.dateZ[e]()}}),o.each(t["default"],function(e){r[e]=function(){return r.date[e]()}}),this.setTimezoneOffset(n.tzOffset)},n.DateZ.prototype={getTimezoneOffset:function(){return this.timezoneOffset},setTimezoneOffset:function(e){return this.timezoneOffset=e,this.dateZ=new Date(this.date.getTime()+6e4*this.date.getTimezoneOffset()-6e4*this.timezoneOffset),this}},n.a=function(e){return e.getHours()<12?"a.m.":"p.m."},n.A=function(e){return e.getHours()<12?"AM":"PM"},n.b=function(e){return n.M(e).toLowerCase()},n.B=function(e){var t,n=e.getUTCHours();return n=23===n?0:n+1,t=Math.abs((60*(60*n+e.getUTCMinutes())+e.getUTCSeconds())/86.4).toFixed(0),"000".concat(t).slice(t.length)},n.c=function(e){return e.toISOString()},n.d=function(e){return(e.getDate()<10?"0":"")+e.getDate()},n.D=function(e){return a.abbr[e.getDay()]},n.E=n.F,n.f=function(e){var t=n.i(e),r=n.g(e);return"00"===t?r:r+":"+t},n.F=function(e){return i.full[e.getMonth()]},n.g=function(e){var t=e.getHours();return 0===t?12:t>12?t-12:t},n.G=function(e){return e.getHours()},n.h=function(e){var t=e.getHours();return(10>t||t>12&&22>t?"0":"")+(12>t?t:t-12)},n.H=function(e){var t=e.getHours();return(10>t?"0":"")+t},n.i=function(e){var t=e.getMinutes();return(10>t?"0":"")+t},n.I=function(e){return(e.date.getTimezoneOffset()<r(e)).toString()},n.j=function(e){return e.getDate()},n.l=function(e){return a.full[e.getDay()]},n.L=function(e){return 29===new Date(e.getFullYear(),1,29).getDate()},n.m=function(e){return(e.getMonth()<9?"0":"")+(e.getMonth()+1)},n.M=function(e){return i.abbr[e.getMonth()]},n.n=function(e){return e.getMonth()+1},n.N=function(e){return i.ap[e.getMonth()]},n.o=function(e){var t=new Date(e.valueOf());return t.setDate(t.getDate()-(e.getDay()+6)%7+3),t.getFullYear()},n.O=function(e){var t=e.date.getTimezoneOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(0>t?"+":"-")+(10>r?"0":"")+r+":"+(10>o?"0":"")+o};var s={1200:"noon","0000":"midnight"};n.P=function(e){return s[n.H(e)+n.i(e)]||n.f(e)+" "+n.a(e)},n.r=function(e){return e.toUTCString()},n.s=function(e){var t=e.getSeconds();return(10>t?"0":"")+t},n.S=function(e){var t=e.getDate();return t%10===1&&11!==t?"st":t%10===2&&12!==t?"nd":t%10===3&&13!==t?"rd":"th"},n.t=function(e){return 32-new Date(e.getFullYear(),e.getMonth(),32).getDate()},n.U=function(e){return Math.floor(e.getTime()/1e3)},n.w=function(e){return e.getDay()},n.W=function(e){var t,n=new Date(e.valueOf()),r=(e.getDay()+6)%7;return n.setDate(n.getDate()-r+3),t=n.valueOf(),n.setMonth(0,1),4!==n.getDay()&&n.setMonth(0,1+(4-n.getDay()+7)%7),1+Math.ceil((t-n)/6048e5)},n.y=function(e){return e.getFullYear().toString().substr(2)},n.Y=function(e){return e.getFullYear()},n.z=function(e,t,r){var o=e.getFullYear(),i=new n.DateZ(o,e.getMonth(),e.getDate(),12,0,0),a=new n.DateZ(o,0,1,12,0,0);return i.setTimezoneOffset(t,r),a.setTimezoneOffset(t,r),Math.round((i-a)/864e5)},n.Z=function(e){return 60*e.getTimezoneOffset()}},{"./utils":26}],3:[function(e,t,n){function r(e){var t=this,n={};return o.isArray(e)?o.map(e,function(){return t.apply(null,arguments)}):null!==e&&void 0!==e&&"object"==typeof e?(o.each(e,function(e,r){n[r]=t.apply(null,arguments)}),n):void 0}var o=e("./utils"),i=e("./dateformatter");n.addslashes=function(e){var t=r.apply(n.addslashes,arguments);return void 0!==t?t:e.replace(/\\/g,"\\\\").replace(/\'/g,"\\'").replace(/\"/g,'\\"')},n.capitalize=function(e){var t=r.apply(n.capitalize,arguments);return void 0!==t?t:e.toString().charAt(0).toUpperCase()+e.toString().substr(1).toLowerCase()},n.date=function(e,t,n,r){var o,a=t.length,s=new i.DateZ(e),u=0,c="";for(n&&s.setTimezoneOffset(n,r),u;a>u;u+=1)o=t.charAt(u),"\\"===o?(u+=1,c+=a>u?t.charAt(u):o):c+=i.hasOwnProperty(o)?i[o](s,n,r):o;return c},n["default"]=function(e,t){return"undefined"==typeof e||!e&&"number"!=typeof e?t:e},n.escape=function(e,t){var o,i=r.apply(n.escape,arguments),a=e,s=0;if(void 0!==i)return i;if(null===e||void 0===e)return"";if("string"!=typeof e)return e;switch(i="",t){case"js":for(a=a.replace(/\\/g,"\\u005C"),s;s<a.length;s+=1)o=a.charCodeAt(s),32>o?(o=o.toString(16).toUpperCase(),o=o.length<2?"0"+o:o,i+="\\u00"+o):i+=a[s];return i.replace(/&/g,"\\u0026").replace(/</g,"\\u003C").replace(/>/g,"\\u003E").replace(/\'/g,"\\u0027").replace(/"/g,"\\u0022").replace(/\=/g,"\\u003D").replace(/-/g,"\\u002D").replace(/;/g,"\\u003B");default:return a.replace(/&(?!amp;|lt;|gt;|quot;|#39;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}},n.e=n.escape,n.first=function(e){if("object"==typeof e&&!o.isArray(e)){var t=o.keys(e);return e[t[0]]}return"string"==typeof e?e.substr(0,1):e[0]},n.groupBy=function(e,t){if(!o.isArray(e))return e;var n={};return o.each(e,function(e){if(e.hasOwnProperty(t)){var r=e[t],i=o.extend({},e);delete i[t],n[r]||(n[r]=[]),n[r].push(i)}}),n},n.join=function(e,t){if(o.isArray(e))return e.join(t);if("object"==typeof e){var n=[];return o.each(e,function(e){n.push(e)}),n.join(t)}return e},n.json=function(e,t){return JSON.stringify(e,null,t||0)},n.json_encode=n.json,n.last=function(e){if("object"==typeof e&&!o.isArray(e)){var t=o.keys(e);return e[t[t.length-1]]}return"string"==typeof e?e.charAt(e.length-1):e[e.length-1]},n.lower=function(e){var t=r.apply(n.lower,arguments);return void 0!==t?t:e.toString().toLowerCase()},n.raw=function(e){return n.safe(e)},n.raw.safe=!0,n.replace=function(e,t,n,r){var o=new RegExp(t,r);return e.replace(o,n)},n.reverse=function(e){return n.sort(e,!0)},n.safe=function(e){return e},n.safe.safe=!0,n.sort=function(e,t){var n;if(o.isArray(e))n=e.sort();else switch(typeof e){case"object":n=o.keys(e).sort();break;case"string":return n=e.split(""),t?n.reverse().join(""):n.sort().join("")}return n&&t?n.reverse():n||e},n.striptags=function(e){var t=r.apply(n.striptags,arguments);return void 0!==t?t:e.toString().replace(/(<([^>]+)>)/gi,"")},n.title=function(e){var t=r.apply(n.title,arguments);return void 0!==t?t:e.toString().replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})},n.uniq=function(e){var t;return e&&o.isArray(e)?(t=[],o.each(e,function(e){-1===t.indexOf(e)&&t.push(e)}),t):""},n.upper=function(e){var t=r.apply(n.upper,arguments);return void 0!==t?t:e.toString().toUpperCase()},n.url_encode=function(e){var t=r.apply(n.url_encode,arguments);return void 0!==t?t:encodeURIComponent(e)},n.url_decode=function(e){var t=r.apply(n.url_decode,arguments);return void 0!==t?t:decodeURIComponent(e)}},{"./dateformatter":2,"./utils":26}],4:[function(e,t,n){function r(e){var t;return o.some(a,function(n){return o.some(n.regex,function(r){var o,i=e.match(r);if(i)return o=i[n.idx||0].replace(/\s*$/,""),o=n.hasOwnProperty("replace")&&n.replace.hasOwnProperty(o)?n.replace[o]:o,t={match:o,type:n.type,length:i[0].length},!0})}),t||(t={match:e,type:i.UNKNOWN,length:e.length}),t}var o=e("./utils"),i={WHITESPACE:0,STRING:1,FILTER:2,FILTEREMPTY:3,FUNCTION:4,FUNCTIONEMPTY:5,PARENOPEN:6,PARENCLOSE:7,COMMA:8,VAR:9,NUMBER:10,OPERATOR:11,BRACKETOPEN:12,BRACKETCLOSE:13,DOTKEY:14,ARRAYOPEN:15,CURLYOPEN:17,CURLYCLOSE:18,COLON:19,COMPARATOR:20,LOGIC:21,NOT:22,BOOL:23,ASSIGNMENT:24,METHODOPEN:25,UNKNOWN:100},a=[{type:i.WHITESPACE,regex:[/^\s+/]},{type:i.STRING,regex:[/^""/,/^".*?[^\\]"/,/^''/,/^'.*?[^\\]'/]},{type:i.FILTER,regex:[/^\|\s*(\w+)\(/],idx:1},{type:i.FILTEREMPTY,regex:[/^\|\s*(\w+)/],idx:1},{type:i.FUNCTIONEMPTY,regex:[/^\s*(\w+)\(\)/],idx:1},{type:i.FUNCTION,regex:[/^\s*(\w+)\(/],idx:1},{type:i.PARENOPEN,regex:[/^\(/]},{type:i.PARENCLOSE,regex:[/^\)/]},{type:i.COMMA,regex:[/^,/]},{type:i.LOGIC,regex:[/^(&&|\|\|)\s*/,/^(and|or)\s+/],idx:1,replace:{and:"&&",or:"||"}},{type:i.COMPARATOR,regex:[/^(===|==|\!==|\!=|<=|<|>=|>|in\s|gte\s|gt\s|lte\s|lt\s)\s*/],idx:1,replace:{gte:">=",gt:">",lte:"<=",lt:"<"}},{type:i.ASSIGNMENT,regex:[/^(=|\+=|-=|\*=|\/=)/]},{type:i.NOT,regex:[/^\!\s*/,/^not\s+/],replace:{not:"!"}},{type:i.BOOL,regex:[/^(true|false)\s+/,/^(true|false)(?=\))/,/^(true|false)$/],idx:1},{type:i.VAR,regex:[/^[a-zA-Z_$]\w*((\.\$?\w*)+)?/,/^[a-zA-Z_$]\w*/]},{type:i.BRACKETOPEN,regex:[/^\[/]},{type:i.BRACKETCLOSE,regex:[/^\]/]},{type:i.CURLYOPEN,regex:[/^\{/]},{type:i.COLON,regex:[/^\:/]},{type:i.CURLYCLOSE,regex:[/^\}/]},{type:i.DOTKEY,regex:[/^\.(\w+)/],idx:1},{type:i.NUMBER,regex:[/^[+\-]?\d+(\.\d+)?/]},{type:i.OPERATOR,regex:[/^(\+|\-|\/|\*|%)/]}];n.types=i,n.read=function(e){for(var t,n,o=0,i=[];o<e.length;)t=e.substring(o),n=r(t),o+=n.length,i.push(n);return i}},{"./utils":26}],5:[function(e,t){var n=e("__browserify_process"),r=e("fs"),o=e("path");t.exports=function(e,t){var i={};return t=t||"utf8",e=e?o.normalize(e):null,i.resolve=function(t,r){return r=e?e:r?o.dirname(r):n.cwd(),o.resolve(r,t)},i.load=function(e,n){if(!r||n&&!r.readFile||!r.readFileSync)throw new Error("Unable to find file "+e+" because there is no filesystem to read from.");return e=i.resolve(e),n?(r.readFile(e,t,n),void 0):r.readFileSync(e,t)},i}},{__browserify_process:31,fs:28,path:29}],6:[function(e,t,n){n.fs=e("./filesystem"),n.memory=e("./memory")},{"./filesystem":5,"./memory":7}],7:[function(e,t){var n=e("path"),r=e("../utils");t.exports=function(e,t){var o={};return t=t?n.normalize(t):null,o.resolve=function(e,r){return r=t?t:r?n.dirname(r):"/",n.resolve(r,e)},o.load=function(t,n){var o,i;return i=[t,t.replace(/^(\/|\\)/,"")],o=e[i[0]]||e[i[1]],o||r.throwError('Unable to find template "'+t+'".'),n?(n(null,o),void 0):o},o}},{"../utils":26,path:29}],8:[function(e,t,n){function r(e){return e.replace(/[\-\/\\\^$*+?.()|\[\]{}]/g,"\\$&")}function o(e,t,n,r,o){this.out=[],this.state=[],this.filterApplyIdx=[],this._parsers={},this.line=r,this.filename=o,this.filters=t,this.escape=n,this.parse=function(){var t=this;return t._parsers.start&&t._parsers.start.call(t),i.each(e,function(n,r){var o=e[r-1];if(t.isLast=r===e.length-1,o)for(;o.type===s.WHITESPACE;)r-=1,o=e[r-1];t.prevToken=o,t.parseToken(n)}),t._parsers.end&&t._parsers.end.call(t),t.escape&&(t.filterApplyIdx=[0],"string"==typeof t.escape?(t.parseToken({type:s.FILTER,match:"e"}),t.parseToken({type:s.COMMA,match:","}),t.parseToken({type:s.STRING,match:String(n)}),t.parseToken({type:s.PARENCLOSE,match:")"})):t.parseToken({type:s.FILTEREMPTY,match:"e"})),t.out}}var i=e("./utils"),a=e("./lexer"),s=a.types,u=["break","case","catch","continue","debugger","default","delete","do","else","finally","for","function","if","in","instanceof","new","return","switch","this","throw","try","typeof","var","void","while"];o.prototype={on:function(e,t){this._parsers[e]=t},parseToken:function(e){var t,n=this,r=n._parsers[e.type]||n._parsers["*"],o=e.match,a=n.prevToken,u=a?a.type:null,c=n.state.length?n.state[n.state.length-1]:null;if(!r||"function"!=typeof r||r.call(this,e))switch(c&&a&&c===s.FILTER&&u===s.FILTER&&e.type!==s.PARENCLOSE&&e.type!==s.COMMA&&e.type!==s.OPERATOR&&e.type!==s.FILTER&&e.type!==s.FILTEREMPTY&&n.out.push(", "),c&&c===s.METHODOPEN&&(n.state.pop(),e.type!==s.PARENCLOSE&&n.out.push(", ")),e.type){case s.WHITESPACE:break;case s.STRING:n.filterApplyIdx.push(n.out.length),n.out.push(o.replace(/\\/g,"\\\\"));break;case s.NUMBER:case s.BOOL:n.filterApplyIdx.push(n.out.length),n.out.push(o);break;case s.FILTER:n.filters.hasOwnProperty(o)&&"function"==typeof n.filters[o]||i.throwError('Invalid filter "'+o+'"',n.line,n.filename),n.escape=n.filters[o].safe?!1:n.escape,t=n.filterApplyIdx.pop(),n.out.splice(t,0,'_filters["'+o+'"]('),n.state.push(e.type),n.filterApplyIdx.push(t);break;case s.FILTEREMPTY:n.filters.hasOwnProperty(o)&&"function"==typeof n.filters[o]||i.throwError('Invalid filter "'+o+'"',n.line,n.filename),n.escape=n.filters[o].safe?!1:n.escape,n.out.splice(n.filterApplyIdx[n.filterApplyIdx.length-1],0,'_filters["'+o+'"]('),n.out.push(")");break;case s.FUNCTION:case s.FUNCTIONEMPTY:n.out.push("((typeof _ctx."+o+' !== "undefined") ? _ctx.'+o+" : ((typeof "+o+' !== "undefined") ? '+o+" : _fn))("),n.escape=!1,e.type===s.FUNCTIONEMPTY?n.out[n.out.length-1]=n.out[n.out.length-1]+")":n.state.push(e.type),n.filterApplyIdx.push(n.out.length-1);break;case s.PARENOPEN:n.state.push(e.type),n.filterApplyIdx.length?(n.out.splice(n.filterApplyIdx[n.filterApplyIdx.length-1],0,"("),a&&u===s.VAR?(t=a.match.split(".").slice(0,-1),n.out.push(" || _fn).call("+n.checkMatch(t)),n.state.push(s.METHODOPEN),n.escape=!1):n.out.push(" || _fn)("),n.filterApplyIdx.push(n.out.length-3)):(n.out.push("("),n.filterApplyIdx.push(n.out.length-1));break;case s.PARENCLOSE:t=n.state.pop(),t!==s.PARENOPEN&&t!==s.FUNCTION&&t!==s.FILTER&&i.throwError("Mismatched nesting state",n.line,n.filename),n.out.push(")"),n.filterApplyIdx.pop(),n.filterApplyIdx.pop();break;case s.COMMA:c!==s.FUNCTION&&c!==s.FILTER&&c!==s.ARRAYOPEN&&c!==s.CURLYOPEN&&c!==s.PARENOPEN&&c!==s.COLON&&i.throwError("Unexpected comma",n.line,n.filename),c===s.COLON&&n.state.pop(),n.out.push(", "),n.filterApplyIdx.pop();break;case s.LOGIC:case s.COMPARATOR:a&&u!==s.COMMA&&u!==e.type&&u!==s.BRACKETOPEN&&u!==s.CURLYOPEN&&u!==s.PARENOPEN&&u!==s.FUNCTION||i.throwError("Unexpected logic",n.line,n.filename),n.out.push(e.match);break;case s.NOT:n.out.push(e.match);break;case s.VAR:n.parseVar(e,o,c);break;case s.BRACKETOPEN:!a||u!==s.VAR&&u!==s.BRACKETCLOSE&&u!==s.PARENCLOSE?(n.state.push(s.ARRAYOPEN),n.filterApplyIdx.push(n.out.length)):n.state.push(e.type),n.out.push("[");break;case s.BRACKETCLOSE:t=n.state.pop(),t!==s.BRACKETOPEN&&t!==s.ARRAYOPEN&&i.throwError("Unexpected closing square bracket",n.line,n.filename),n.out.push("]"),n.filterApplyIdx.pop();break;case s.CURLYOPEN:n.state.push(e.type),n.out.push("{"),n.filterApplyIdx.push(n.out.length-1);break;case s.COLON:c!==s.CURLYOPEN&&i.throwError("Unexpected colon",n.line,n.filename),n.state.push(e.type),n.out.push(":"),n.filterApplyIdx.pop();break;case s.CURLYCLOSE:c===s.COLON&&n.state.pop(),n.state.pop()!==s.CURLYOPEN&&i.throwError("Unexpected closing curly brace",n.line,n.filename),n.out.push("}"),n.filterApplyIdx.pop();break;case s.DOTKEY:(!a||u!==s.VAR&&u!==s.BRACKETCLOSE&&u!==s.DOTKEY&&u!==s.PARENCLOSE&&u!==s.FUNCTIONEMPTY&&u!==s.FILTEREMPTY&&u!==s.CURLYCLOSE)&&i.throwError('Unexpected key "'+o+'"',n.line,n.filename),n.out.push("."+o);break;case s.OPERATOR:n.out.push(" "+o+" "),n.filterApplyIdx.pop()}},parseVar:function(e,t,n){var r=this;return t=t.split("."),-1!==u.indexOf(t[0])&&i.throwError('Reserved keyword "'+t[0]+'" attempted to be used as a variable',r.line,r.filename),r.filterApplyIdx.push(r.out.length),n===s.CURLYOPEN?(t.length>1&&i.throwError("Unexpected dot",r.line,r.filename),r.out.push(t[0]),void 0):(r.out.push(r.checkMatch(t)),void 0)},checkMatch:function(e){function t(t){var n=t+o,r=e,a="";return a="(typeof "+n+' !== "undefined"',i.each(r,function(e,t){0!==t&&(a+=" && "+n+"."+e+" !== undefined",n+="."+e)}),a+=")"}function n(n){return"("+t(n)+" ? "+n+e.join(".")+' : "")'}var r,o=e[0];return r="("+t("_ctx.")+" ? "+n("_ctx.")+" : "+n("")+")","("+r+" !== null ? "+r+' : "" )'}},n.parse=function(e,t,u,c){function l(e,n){var r,s,u=a.read(i.strip(e));return r=new o(u,c,g,n,t.filename),s=r.parse().join(""),r.state.length&&i.throwError('Unable to parse "'+e+'"',n,t.filename),{compile:function(){return"_output += "+s+";\n"}}}function f(e,n){var r,l,f,p,h,d,m;if(i.startsWith(e,"end")){if(m=I[I.length-1],m&&m.name===e.split(/\s+/)[0].replace(/^end/,"")&&m.ends){switch(m.name){case"autoescape":g=t.autoescape;break;case"raw":L=!1}return I.pop(),void 0}L||i.throwError('Unexpected end of tag "'+e.replace(/^end/,"")+'"',n,t.filename)}if(!L){switch(f=e.split(/\s+(.+)?/),p=f.shift(),u.hasOwnProperty(p)||i.throwError('Unexpected tag "'+e+'"',n,t.filename),r=a.read(i.strip(f.join(" "))),l=new o(r,c,!1,n,t.filename),h=u[p],h.parse(f[1],n,l,s,I,t)||i.throwError('Unexpected tag "'+p+'"',n,t.filename),l.parse(),d=l.out,p){case"autoescape":g="false"!==d[0]?d[0]:!1;break;case"raw":L=!0}return{block:!!u[p].block,compile:h.compile,args:d,content:[],ends:h.ends,name:p}}}function p(e){return"string"==typeof e&&(e=e.replace(/\s*$/,"")),e}e=e.replace(/\r\n/g,"\n");var h,g=t.autoescape,d=t.tagControls[0],m=t.tagControls[1],y=t.varControls[0],v=t.varControls[1],w=r(d),O=r(m),E=r(y),x=r(v),b=new RegExp("^"+w+"-?\\s*-?|-?\\s*-?"+O+"$","g"),T=new RegExp("^"+w+"-"),A=new RegExp("-"+O+"$"),N=new RegExp("^"+E+"-?\\s*-?|-?\\s*-?"+x+"$","g"),C=new RegExp("^"+E+"-"),R=new RegExp("-"+x+"$"),S=t.cmtControls[0],_=t.cmtControls[1],P="[\\s\\S]*?",k=new RegExp("("+E+P+x+"|"+r(S)+P+r(_)+"|"+w+P+O+")"),M=1,I=[],U=null,j=[],F={},L=!1;return n.parseVariable=l,i.each(e.split(k),function(e){var t,n,r,o,a;if(e&&(L||!i.startsWith(e,S)||!i.endsWith(e,_))){if(!L&&i.startsWith(e,y)&&i.endsWith(e,v))r=C.test(e),h=R.test(e),t=l(e.replace(N,""),M);else if(i.startsWith(e,d)&&i.endsWith(e,m))r=T.test(e),h=A.test(e),t=f(e.replace(b,""),M),t&&("extends"===t.name&&(U=t.args.join("").replace(/^\'|\'$/g,"").replace(/^\"|\"$/g,"")),!t.block||I.length&&"block"!==t.name||(F[t.args.join("")]=t)),L&&!t&&(t=e);else if(L||!i.startsWith(e,S)&&!i.endsWith(e,_))t=h?e.replace(/^\s*/,""):e,h=!1;else if(i.startsWith(e,S)&&i.endsWith(e,_))return;r&&j.length&&(o=j.pop(),"string"==typeof o?o=p(o):o.content&&o.content.length&&(a=p(o.content.pop()),o.content.push(a)),j.push(o)),t&&(I.length?I[I.length-1].content.push(t):j.push(t),t.name&&t.ends&&I.push(t),n=e.match(/\n/g),M+=n?n.length:0)}}),{name:t.filename,parent:U,tokens:j,blocks:F}},n.compile=function(e,t,r,o){var a="",s=i.isArray(e)?e:e.tokens;return i.each(s,function(e){var i;return"string"==typeof e?(a+='_output += "'+e.replace(/\\/g,"\\\\").replace(/\n|\r/g,"\\n").replace(/"/g,'\\"')+'";\n',void 0):(i=e.compile(n.compile,e.args?e.args.slice(0):[],e.content?e.content.slice(0):[],t,r,o),a+=i||"",void 0)}),a}},{"./lexer":4,"./utils":26}],9:[function(e,t,n){function r(){return""}function o(e){if(e){if(i.each(["varControls","tagControls","cmtControls"],function(t){if(e.hasOwnProperty(t)){if(!i.isArray(e[t])||2!==e[t].length)throw new Error('Option "'+t+'" must be an array containing 2 different control strings.');if(e[t][0]===e[t][1])throw new Error('Option "'+t+'" open and close controls must not be the same.');i.each(e[t],function(e,n){if(e.length<2)throw new Error('Option "'+t+'" '+(n?"open ":"close ")+'control must be at least 2 characters. Saw "'+e+'" instead.')})}}),e.hasOwnProperty("cache")&&e.cache&&"memory"!==e.cache&&(!e.cache.get||!e.cache.set))throw new Error("Invalid cache option "+JSON.stringify(e.cache)+' found. Expected "memory" or { get: function (key) { ... }, set: function (key, value) { ... } }.');if(e.hasOwnProperty("loader")&&e.loader&&(!e.loader.load||!e.loader.resolve))throw new Error("Invalid loader option "+JSON.stringify(e.loader)+" found. Expected { load: function (pathname, cb) { ... }, resolve: function (to, from) { ... } }.")}}var i=e("./utils"),a=e("./tags"),s=e("./filters"),u=e("./parser"),c=e("./dateformatter"),l=e("./loaders");n.version="1.3.2";var f,p={autoescape:!0,varControls:["{{","}}"],tagControls:["{%","%}"],cmtControls:["{#","#}"],locals:{},cache:"memory",loader:l.fs()};n.setDefaults=function(e){o(e);var t=i.extend({},p.locals,e.locals||{});i.extend(p,e),p.locals=t,f.options=i.extend(f.options,e)},n.setDefaultTZOffset=function(e){c.tzOffset=e},n.Swig=function(e){function t(e){return e&&e.locals?i.extend({},g.options.locals,e.locals):g.options.locals}function n(e){return g.options.cache?"memory"===g.options.cache?g.cache[e]:g.options.cache.get(e):void 0}function c(e,t){return g.options.cache?"memory"===g.options.cache?(g.cache[e]=t,void 0):(g.options.cache.set(e,t),void 0):void 0}function l(e,t){return i.map(t,function(t){var n=t.args?t.args.join(""):"";return"block"===t.name&&e[n]&&(t=e[n]),t.content&&t.content.length&&(t.content=l(e,t.content)),t})}function f(e,t){i.each(e,function(e){"block"!==e.name&&t.unshift(e)})}function h(e,t){for(var r,o,a,s=e.parent,u=[],c=[];s;){if(!t||!t.filename)throw new Error('Cannot extend "'+s+'" because current template has no filename.');if(r=r||t.filename,r=g.options.loader.resolve(s,r),o=n(r)||g.parseFile(r,i.extend({},t,{filename:r})),s=o.parent,-1!==u.indexOf(r))throw new Error('Illegal circular extends of "'+r+'".');u.push(r),c.push(o)}for(a=c.length,a=c.length-2;a>=0;a-=1)c[a].tokens=l(c[a].blocks,c[a+1].tokens),f(c[a].blocks,c[a].tokens);return c}o(e),this.options=i.extend({},p,e||{}),this.cache={},this.extensions={};var g=this,d=a,m=s;this.invalidateCache=function(){"memory"===g.options.cache&&(g.cache={})},this.setFilter=function(e,t){if("function"!=typeof t)throw new Error('Filter "'+e+'" is not a valid function.');m[e]=t},this.setTag=function(e,t,n,r,o){if("function"!=typeof t)throw new Error('Tag "'+e+'" parse method is not a valid function.');if("function"!=typeof n)throw new Error('Tag "'+e+'" compile method is not a valid function.');d[e]={parse:t,compile:n,ends:r||!1,block:!!o}},this.setExtension=function(e,t){g.extensions[e]=t},this.parse=function(e,n){o(n);var r,a=t(n),s={};for(r in n)n.hasOwnProperty(r)&&"locals"!==r&&(s[r]=n[r]);return n=i.extend({},g.options,s),n.locals=a,u.parse(e,n,d,m)},this.parseFile=function(e,t){var n;return t||(t={}),e=g.options.loader.resolve(e,t.resolveFrom),n=g.options.loader.load(e),t.filename||(t=i.extend({filename:e},t)),g.parse(n,t)},this.precompile=function(e,t){var n,r=g.parse(e,t),o=h(r,t);return o.length&&(r.tokens=l(r.blocks,o[0].tokens),f(r.blocks,r.tokens)),n=new Function("_swig","_ctx","_filters","_utils","_fn",'  var _ext = _swig.extensions,\n    _output = "";\n'+u.compile(r,o,t)+"\n  return _output;\n"),{tpl:n,tokens:r}},this.render=function(e,t){return g.compile(e,t)()},this.renderFile=function(e,t,n){return n?(g.compileFile(e,{},function(e,r){var o;if(e)return n(e),void 0;try{o=r(t)}catch(i){return n(i),void 0}n(null,o)}),void 0):g.compileFile(e)(t)},this.compile=function(e,o){function a(e){var t;return t=e&&u?i.extend({},s,e):e&&!u?e:!e&&u?s:{},l.tpl(g,t,m,i,r)}var s,u,l,f=o?o.filename:null,p=f?n(f):null;return p?p:(s=t(o),u=i.keys(s).length,l=this.precompile(e,o),i.extend(a,l.tokens),f&&c(f,a),a)},this.compileFile=function(e,t,r){var o,a;return t||(t={}),e=g.options.loader.resolve(e,t.resolveFrom),t.filename||(t=i.extend({filename:e},t)),(a=n(e))?r?(r(null,a),void 0):a:r?(g.options.loader.load(e,function(e,n){if(e)return r(e),void 0;var o;try{o=g.compile(n,t)}catch(i){return r(i),void 0}r(e,o)}),void 0):(o=g.options.loader.load(e),g.compile(o,t))},this.run=function(e,n,o){var a=t({locals:n});return o&&c(o,e),e(g,a,m,i,r)}},f=new n.Swig,n.setFilter=f.setFilter,n.setTag=f.setTag,n.setExtension=f.setExtension,n.parseFile=f.parseFile,n.precompile=f.precompile,n.compile=f.compile,n.compileFile=f.compileFile,n.render=f.render,n.renderFile=f.renderFile,n.run=f.run,n.invalidateCache=f.invalidateCache,n.loaders=l},{"./dateformatter":2,"./filters":3,"./loaders":6,"./parser":8,"./tags":20,"./utils":26}],10:[function(e,t,n){var r=e("../utils"),o=["html","js"];n.compile=function(e,t,n,r,o,i){return e(n,r,o,i)},n.parse=function(e,t,n,i,a,s){var u;return n.on("*",function(e){return u||e.type!==i.BOOL&&(e.type!==i.STRING||-1!==o.indexOf(e.match))?(r.throwError('Unexpected token "'+e.match+'" in autoescape tag',t,s.filename),void 0):(this.out.push(e.match),u=!0,void 0)}),!0},n.ends=!0},{"../utils":26}],11:[function(e,t,n){n.compile=function(e,t,n,r,o){return e(n,r,o,t.join(""))},n.parse=function(e,t,n){return n.on("*",function(e){this.out.push(e.match)}),!0},n.ends=!0,n.block=!0},{}],12:[function(e,t,n){n.compile=function(){return"} else {\n"},n.parse=function(e,t,n,r,o){return n.on("*",function(e){throw new Error('"else" tag does not accept any tokens. Found "'+e.match+'" on line '+t+".")}),o.length&&"if"===o[o.length-1].name}},{}],13:[function(e,t,n){var r=e("./if").parse;n.compile=function(e,t){return"} else if ("+t.join(" ")+") {\n"},n.parse=function(e,t,n,o,i){var a=r(e,t,n,o,i);return a&&i.length&&"if"===i[i.length-1].name}},{"./if":17}],14:[function(e,t,n){n.compile=function(){},n.parse=function(){return!0},n.ends=!1},{}],15:[function(e,t,n){var r=e("../filters");n.compile=function(e,t,n,r,o,i){var a=t.shift().replace(/\($/,""),s='(function () {\n  var _output = "";\n'+e(n,r,o,i)+"  return _output;\n})()";return")"===t[t.length-1]&&t.pop(),t=t.length?", "+t.join(""):"",'_output += _filters["'+a+'"]('+s+t+");\n"},n.parse=function(e,t,n,o){function i(e){if(!r.hasOwnProperty(e))throw new Error('Filter "'+e+'" does not exist on line '+t+".")}var a;return n.on(o.FUNCTION,function(e){return a?!0:(a=e.match.replace(/\($/,""),i(a),this.out.push(e.match),this.state.push(e.type),void 0)}),n.on(o.VAR,function(e){return a?!0:(a=e.match,i(a),this.out.push(a),void 0)}),!0},n.ends=!0},{"../filters":3}],16:[function(e,t,n){var r="_ctx.",o=r+"forloop";n.compile=function(e,t,n,i,a,s){var u,c=t.shift(),l="__k",f=(r+"__loopcache"+Math.random()).replace(/\./g,"");return t[0]&&","===t[0]&&(t.shift(),l=c,c=t.shift()),u=t.join(""),["(function () {\n","  var __l = "+u+", __len = (_utils.isArray(__l)) ? __l.length : _utils.keys(__l).length;\n","  if (!__l) { return; }\n","  "+f+" = { forloop: "+o+", "+c+": "+r+c+", "+l+": "+r+l+" };\n","  "+o+" = { first: false, index: 1, index0: 0, revindex: __len, revindex0: __len - 1, length: __len, last: false };\n","  _utils.each(__l, function ("+c+", "+l+") {\n","    "+r+c+" = "+c+";\n","    "+r+l+" = "+l+";\n","    "+o+".key = "+l+";\n","    "+o+".first = ("+o+".index0 === 0);\n","    "+o+".last = ("+o+".revindex0 === 0);\n","    "+e(n,i,a,s),"    "+o+".index += 1; "+o+".index0 += 1; "+o+".revindex -= 1; "+o+".revindex0 -= 1;\n","  });\n","  "+o+" = "+f+".forloop;\n","  "+r+c+" = "+f+"."+c+";\n","  "+r+l+" = "+f+"."+l+";\n","  "+f+" = undefined;\n","})();\n"].join("")},n.parse=function(e,t,n,r){var o,i;return n.on(r.NUMBER,function(e){var n=this.state.length?this.state[this.state.length-1]:null;if(!i||n!==r.ARRAYOPEN&&n!==r.CURLYOPEN&&n!==r.CURLYCLOSE&&n!==r.FUNCTION&&n!==r.FILTER)throw new Error('Unexpected number "'+e.match+'" on line '+t+".");return!0}),n.on(r.VAR,function(e){return i&&o?!0:(this.out.length||(o=!0),this.out.push(e.match),void 0)}),n.on(r.COMMA,function(e){return o&&this.prevToken.type===r.VAR?(this.out.push(e.match),void 0):!0}),n.on(r.COMPARATOR,function(e){if("in"!==e.match||!o)throw new Error('Unexpected token "'+e.match+'" on line '+t+".");i=!0}),!0},n.ends=!0},{}],17:[function(e,t,n){n.compile=function(e,t,n,r,o,i){return"if ("+t.join(" ")+") { \n"+e(n,r,o,i)+"\n}"},n.parse=function(e,t,n,r){if("undefined"==typeof e)throw new Error("No conditional statement provided on line "+t+".");return n.on(r.COMPARATOR,function(e){if(this.isLast)throw new Error('Unexpected logic "'+e.match+'" on line '+t+".");if(this.prevToken.type===r.NOT)throw new Error('Attempted logic "not '+e.match+'" on line '+t+". Use !(foo "+e.match+") instead.");this.out.push(e.match)}),n.on(r.NOT,function(e){if(this.isLast)throw new Error('Unexpected logic "'+e.match+'" on line '+t+".");this.out.push(e.match)}),n.on(r.BOOL,function(e){this.out.push(e.match)}),n.on(r.LOGIC,function(e){if(!this.out.length||this.isLast)throw new Error('Unexpected logic "'+e.match+'" on line '+t+".");this.out.push(e.match),this.filterApplyIdx.pop()}),!0},n.ends=!0},{}],18:[function(e,t,n){var r=e("../utils");n.compile=function(e,t){var n=t.pop(),o="_ctx."+n+' = {};\n  var _output = "";\n',i=r.map(t,function(e){return{ex:new RegExp("_ctx."+e.name,"g"),re:"_ctx."+n+"."+e.name}});return r.each(t,function(e){var t=e.compiled;r.each(i,function(e){t=t.replace(e.ex,e.re)}),o+=t}),o},n.parse=function(t,n,o,i,a,s){var u,c,l=e("../swig").parseFile,f=e("../parser").compile,p={resolveFrom:s.filename},h=r.extend({},s,p);return o.on(i.STRING,function(e){var t=this;if(!u)return u=l(e.match.replace(/^("|')|("|')$/g,""),p).tokens,r.each(u,function(e){var n,r="";e&&"macro"===e.name&&e.compile&&(n=e.args[0],r+=e.compile(f,e.args,e.content,[],h)+"\n",t.out.push({compiled:r,name:n}))}),void 0;throw new Error("Unexpected string "+e.match+" on line "+n+".")}),o.on(i.VAR,function(e){var t=this;if(!u||c)throw new Error('Unexpected variable "'+e.match+'" on line '+n+".");if("as"!==e.match)return c=e.match,t.out.push(c),!1}),!0},n.block=!0},{"../parser":8,"../swig":9,"../utils":26}],19:[function(e,t,n){var r="ignore",o="missing",i="only",a=/^(['"]).*\1$/;n.compile=function(e,t){for(var n,r,a=t.shift(),s=t.indexOf(i),u=-1!==s?t.splice(s,1):!1,c=(t.pop()||"").replace(/\\/g,"\\\\"),l=t[t.length-1]===o?t.pop():!1,f="",p="{";t.length;)if(r=t.shift(),"string"==typeof r)f+=r;else for(n in r)r.hasOwnProperty(n)&&(p=p+' "'+n+'": '+r[n]+",");return p=p.substring(0,p.length-1),p&&(p=p+="}",f=f?"_utils.extend({}, "+f+","+p+")":p),(l?"  try {\n":"")+"_output += _swig.compileFile("+a+', {resolveFrom: "'+c+'"})('+(u&&f?f:f?"_utils.extend({}, _ctx, "+f+")":"_ctx")+");\n"+(l?"} catch (e) {}\n":"")},n.parse=function(e,t,n,s,u,c){var l,f,p,h=!1,g={};return n.on(s.STRING,function(e){return l?this.prevToken.type===s.ASSIGNMENT?(g[p]=e.match.match(a)?e.match.replace(/'/g,"\\'"):'"'+e.match.replace(/'/g,"\\'")+'"',!1):!0:(l=e.match,this.out.push(l),void 0)}),n.on(s.VAR,function(e){if(!l)return l=e.match,!0;if(!f&&"with"===e.match)return f=!0,void 0;if(f&&e.match===i&&"with"!==this.prevToken.match)return this.out.push(e.match),void 0;if(e.match===r)return!1;if(e.match===o){if(this.prevToken.match!==r)throw new Error('Unexpected token "'+o+'" on line '+t+".");return this.out.push(e.match),!1}if(this.prevToken.match===r)throw new Error('Expected "'+o+'" on line '+t+' but found "'+e.match+'".');return this.prevToken.type===s.ASSIGNMENT?(g[p]=n.checkMatch(e.match.split(".")),!1):f?(p=e.match,!1):!0}),n.on(s.ASSIGNMENT,function(){return h=!0,!1}),n.on("end",function(){h&&this.out.push(g),p&&!h&&this.out.push(n.checkMatch(p.split("."))),this.out.push(c.filename||null)}),!0}},{}],20:[function(e,t,n){n.autoescape=e("./autoescape"),n.block=e("./block"),n["else"]=e("./else"),n.elseif=e("./elseif"),n.elif=n.elseif,n["extends"]=e("./extends"),n.filter=e("./filter"),n["for"]=e("./for"),n["if"]=e("./if"),n["import"]=e("./import"),n.include=e("./include"),n.macro=e("./macro"),n.parent=e("./parent"),n.raw=e("./raw"),n.set=e("./set"),n.spaceless=e("./spaceless")
  },{"./autoescape":10,"./block":11,"./else":12,"./elseif":13,"./extends":14,"./filter":15,"./for":16,"./if":17,"./import":18,"./include":19,"./macro":21,"./parent":22,"./raw":23,"./set":24,"./spaceless":25}],21:[function(e,t,n){n.compile=function(e,t,n,r,o,i){var a=t.shift();return"_ctx."+a+" = function ("+t.join("")+') {\n  var _output = "";\n'+e(n,r,o,i)+"\n  return _output;\n};\n_ctx."+a+".safe = true;\n"},n.parse=function(e,t,n,r){var o;return n.on(r.VAR,function(e){if(-1!==e.match.indexOf("."))throw new Error('Unexpected dot in macro argument "'+e.match+'" on line '+t+".");this.out.push(e.match)}),n.on(r.FUNCTION,function(e){o||(o=e.match,this.out.push(o),this.state.push(r.FUNCTION))}),n.on(r.FUNCTIONEMPTY,function(e){o||(o=e.match,this.out.push(o))}),n.on(r.PARENCLOSE,function(){if(!this.isLast)throw new Error("Unexpected parenthesis close on line "+t+".")}),n.on(r.COMMA,function(){return!0}),n.on("*",function(){}),!0},n.ends=!0,n.block=!0},{}],22:[function(e,t,n){n.compile=function(e,t,n,r,o,i){if(!r||!r.length)return"";var a,s,u=t[0],c=!0,l=r.length,f=0;for(f;l>f;f+=1)if(a=r[f],a.blocks&&a.blocks.hasOwnProperty(i)&&c&&u!==a.name)return s=a.blocks[i],s.compile(e,[i],s.content,r.slice(f+1),o)+"\n"},n.parse=function(e,t,n,r,o,i){return n.on("*",function(e){throw new Error('Unexpected argument "'+e.match+'" on line '+t+".")}),n.on("end",function(){this.out.push(i.filename)}),!0}},{}],23:[function(e,t,n){n.compile=function(e,t,n,r,o,i){return e(n,r,o,i)},n.parse=function(e,t,n){return n.on("*",function(e){throw new Error('Unexpected token "'+e.match+'" in raw tag on line '+t+".")}),!0},n.ends=!0},{}],24:[function(e,t,n){n.compile=function(e,t){return t.join(" ")+";\n"},n.parse=function(e,t,n,r){var o,i="";return n.on(r.VAR,function(e){return o?(o+="_ctx."+e.match,void 0):n.out.length?!0:(i+=e.match,void 0)}),n.on(r.BRACKETOPEN,function(e){return o||this.out.length?!0:(o=e.match,void 0)}),n.on(r.STRING,function(e){return o&&!this.out.length?(o+=e.match,void 0):!0}),n.on(r.BRACKETCLOSE,function(e){return o&&!this.out.length?(i+=o+e.match,o=void 0,void 0):!0}),n.on(r.DOTKEY,function(e){return o||i?(i+="."+e.match,void 0):!0}),n.on(r.ASSIGNMENT,function(e){if(this.out.length||!i)throw new Error('Unexpected assignment "'+e.match+'" on line '+t+".");this.out.push("_ctx."+i),this.out.push(e.match)}),!0},n.block=!0},{}],25:[function(e,t,n){var r=e("../utils");n.compile=function(e,t,n,o,i,a){function s(e){return r.map(e,function(e){return e.content||"string"!=typeof e?(e.content=s(e.content),e):e.replace(/^\s+/,"").replace(/>\s+</g,"><").replace(/\s+$/,"")})}return e(s(n),o,i,a)},n.parse=function(e,t,n){return n.on("*",function(e){throw new Error('Unexpected token "'+e.match+'" on line '+t+".")}),!0},n.ends=!0},{"../utils":26}],26:[function(e,t,n){var r;n.strip=function(e){return e.replace(/^\s+|\s+$/g,"")},n.startsWith=function(e,t){return 0===e.indexOf(t)},n.endsWith=function(e,t){return-1!==e.indexOf(t,e.length-t.length)},n.each=function(e,t){var n,o;if(r(e))for(n=0,o=e.length,n;o>n&&t(e[n],n,e)!==!1;n+=1);else for(n in e)if(e.hasOwnProperty(n)&&t(e[n],n,e)===!1)break;return e},n.isArray=r=Array.hasOwnProperty("isArray")?Array.isArray:function(e){return e?"object"==typeof e&&-1!==Object.prototype.toString.call(e).indexOf("[object Array]"):!1},n.some=function(e,t){var o,i,a=0;if(r(e))for(i=e.length,a;i>a&&!(o=t(e[a],a,e));a+=1);else n.each(e,function(n,r){return o=t(n,r,e),!o});return!!o},n.map=function(e,t){var n,o=0,i=[];if(r(e))for(n=e.length,o;n>o;o+=1)i[o]=t(e[o],o);else for(o in e)e.hasOwnProperty(o)&&(i[o]=t(e[o],o));return i},n.extend=function(){var e,t,n=arguments,r=n[0],o=n.length>1?Array.prototype.slice.call(n,1):[],i=0,a=o.length;for(i;a>i;i+=1){t=o[i]||{};for(e in t)t.hasOwnProperty(e)&&(r[e]=t[e])}return r},n.keys=function(e){return e?Object.keys?Object.keys(e):n.map(e,function(e,t){return t}):[]},n.throwError=function(e,t,n){throw t&&(e+=" on line "+t),n&&(e+=" in file "+n),new Error(e+".")}},{}],27:[function(e,t,n){function r(e){return"[object Array]"===c.call(e)}function o(e,t){var n;if(null===e)n={__proto__:null};else{if("object"!=typeof e)throw new TypeError("typeof prototype["+typeof e+"] != 'object'");var r=function(){};r.prototype=e,n=new r,n.__proto__=e}return"undefined"!=typeof t&&Object.defineProperties&&Object.defineProperties(n,t),n}function i(e){return"object"!=typeof e&&"function"!=typeof e||null===e}function a(e){if(i(e))throw new TypeError("Object.keys called on a non-object");var t=[];for(var n in e)l.call(e,n)&&t.push(n);return t}function s(e){if(i(e))throw new TypeError("Object.getOwnPropertyNames called on a non-object");var t=a(e);return n.isArray(e)&&-1===n.indexOf(e,"length")&&t.push("length"),t}function u(e,t){return{value:e[t]}}var c=Object.prototype.toString,l=Object.prototype.hasOwnProperty;n.isArray="function"==typeof Array.isArray?Array.isArray:r,n.indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;n++)if(t===e[n])return n;return-1},n.filter=function(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n},n.forEach=function(e,t,n){if(e.forEach)return e.forEach(t,n);for(var r=0;r<e.length;r++)t.call(n,e[r],r,e)},n.map=function(e,t){if(e.map)return e.map(t);for(var n=new Array(e.length),r=0;r<e.length;r++)n[r]=t(e[r],r,e);return n},n.reduce=function(e,t,n){if(e.reduce)return e.reduce(t,n);var r,o=!1;2<arguments.length&&(r=n,o=!0);for(var i=0,a=e.length;a>i;++i)e.hasOwnProperty(i)&&(o?r=t(r,e[i],i,e):(r=e[i],o=!0));return r},n.substr="b"!=="ab".substr(-1)?function(e,t,n){return 0>t&&(t=e.length+t),e.substr(t,n)}:function(e,t,n){return e.substr(t,n)},n.trim=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},n.bind=function(){var e=Array.prototype.slice.call(arguments),t=e.shift();if(t.bind)return t.bind.apply(t,e);var n=e.shift();return function(){t.apply(n,e.concat([Array.prototype.slice.call(arguments)]))}},n.create="function"==typeof Object.create?Object.create:o;var f="function"==typeof Object.keys?Object.keys:a,p="function"==typeof Object.getOwnPropertyNames?Object.getOwnPropertyNames:s;if((new Error).hasOwnProperty("description")){var h=function(e,t){return"[object Error]"===c.call(e)&&(t=n.filter(t,function(e){return"description"!==e&&"number"!==e&&"message"!==e})),t};n.keys=function(e){return h(e,f(e))},n.getOwnPropertyNames=function(e){return h(e,p(e))}}else n.keys=f,n.getOwnPropertyNames=p;if("function"==typeof Object.getOwnPropertyDescriptor)try{Object.getOwnPropertyDescriptor({a:1},"a"),n.getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor}catch(g){n.getOwnPropertyDescriptor=function(e,t){try{return Object.getOwnPropertyDescriptor(e,t)}catch(n){return u(e,t)}}}else n.getOwnPropertyDescriptor=u},{}],28:[function(){},{}],29:[function(e,t,n){function r(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var o=e("__browserify_process"),i=e("util"),a=e("_shims"),s=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,u=function(e){return s.exec(e).slice(1)};n.resolve=function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var s=n>=0?arguments[n]:o.cwd();if(!i.isString(s))throw new TypeError("Arguments to path.resolve must be strings");s&&(e=s+"/"+e,t="/"===s.charAt(0))}return e=r(a.filter(e.split("/"),function(e){return!!e}),!t).join("/"),(t?"/":"")+e||"."},n.normalize=function(e){var t=n.isAbsolute(e),o="/"===a.substr(e,-1);return e=r(a.filter(e.split("/"),function(e){return!!e}),!t).join("/"),e||t||(e="."),e&&o&&(e+="/"),(t?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(a.filter(e,function(e){if(!i.isString(e))throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var o=r(e.split("/")),i=r(t.split("/")),a=Math.min(o.length,i.length),s=a,u=0;a>u;u++)if(o[u]!==i[u]){s=u;break}for(var c=[],u=s;u<o.length;u++)c.push("..");return c=c.concat(i.slice(s)),c.join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){var t=u(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},n.basename=function(e,t){var n=u(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){return u(e)[3]}},{__browserify_process:31,_shims:27,util:30}],30:[function(e,t,n){function r(e,t){var r={seen:[],stylize:i};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),g(t)?r.showHidden=t:t&&n._extend(r,t),O(r.showHidden)&&(r.showHidden=!1),O(r.depth)&&(r.depth=2),O(r.colors)&&(r.colors=!1),O(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=o),s(r,e,r.depth)}function o(e,t){var n=r.styles[t];return n?"["+r.colors[n][0]+"m"+e+"["+r.colors[n][1]+"m":e}function i(e){return e}function a(e){var t={};return k.forEach(e,function(e){t[e]=!0}),t}function s(e,t,r){if(e.customInspect&&t&&A(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var o=t.inspect(r);return v(o)||(o=s(e,o,r)),o}var i=u(e,t);if(i)return i;var g=k.keys(t),d=a(g);if(e.showHidden&&(g=k.getOwnPropertyNames(t)),0===g.length){if(A(t)){var m=t.name?": "+t.name:"";return e.stylize("[Function"+m+"]","special")}if(E(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(b(t))return e.stylize(Date.prototype.toString.call(t),"date");if(T(t))return c(t)}var y="",w=!1,O=["{","}"];if(h(t)&&(w=!0,O=["[","]"]),A(t)){var x=t.name?": "+t.name:"";y=" [Function"+x+"]"}if(E(t)&&(y=" "+RegExp.prototype.toString.call(t)),b(t)&&(y=" "+Date.prototype.toUTCString.call(t)),T(t)&&(y=" "+c(t)),0===g.length&&(!w||0==t.length))return O[0]+y+O[1];if(0>r)return E(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var N;return N=w?l(e,t,r,d,g):g.map(function(n){return f(e,t,r,d,n,w)}),e.seen.pop(),p(N,y,O)}function u(e,t){if(O(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return y(t)?e.stylize(""+t,"number"):g(t)?e.stylize(""+t,"boolean"):d(t)?e.stylize("null","null"):void 0}function c(e){return"["+Error.prototype.toString.call(e)+"]"}function l(e,t,n,r,o){for(var i=[],a=0,s=t.length;s>a;++a)P(t,String(a))?i.push(f(e,t,n,r,String(a),!0)):i.push("");return k.forEach(o,function(o){o.match(/^\d+$/)||i.push(f(e,t,n,r,o,!0))}),i}function f(e,t,n,r,o,i){var a,u,c;if(c=k.getOwnPropertyDescriptor(t,o)||{value:t[o]},c.get?u=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(u=e.stylize("[Setter]","special")),P(r,o)||(a="["+o+"]"),u||(k.indexOf(e.seen,c.value)<0?(u=d(n)?s(e,c.value,null):s(e,c.value,n-1),u.indexOf("\n")>-1&&(u=i?u.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+u.split("\n").map(function(e){return"   "+e}).join("\n"))):u=e.stylize("[Circular]","special")),O(a)){if(i&&o.match(/^\d+$/))return u;a=JSON.stringify(""+o),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+u}function p(e,t,n){var r=0,o=k.reduce(e,function(e,t){return r++,t.indexOf("\n")>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return o>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function h(e){return k.isArray(e)}function g(e){return"boolean"==typeof e}function d(e){return null===e}function m(e){return null==e}function y(e){return"number"==typeof e}function v(e){return"string"==typeof e}function w(e){return"symbol"==typeof e}function O(e){return void 0===e}function E(e){return x(e)&&"[object RegExp]"===R(e)}function x(e){return"object"==typeof e&&e}function b(e){return x(e)&&"[object Date]"===R(e)}function T(e){return x(e)&&"[object Error]"===R(e)}function A(e){return"function"==typeof e}function N(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||"undefined"==typeof e}function C(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.binarySlice}function R(e){return Object.prototype.toString.call(e)}function S(e){return 10>e?"0"+e.toString(10):e.toString(10)}function _(){var e=new Date,t=[S(e.getHours()),S(e.getMinutes()),S(e.getSeconds())].join(":");return[e.getDate(),I[e.getMonth()],t].join(" ")}function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var k=e("_shims"),M=/%[sdj%]/g;n.format=function(e){if(!v(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(r(arguments[n]));return t.join(" ")}for(var n=1,o=arguments,i=o.length,a=String(e).replace(M,function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(o[n++]);case"%d":return Number(o[n++]);case"%j":try{return JSON.stringify(o[n++])}catch(t){return"[Circular]"}default:return e}}),s=o[n];i>n;s=o[++n])a+=d(s)||!x(s)?" "+s:" "+r(s);return a},n.inspect=r,r.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},r.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=h,n.isBoolean=g,n.isNull=d,n.isNullOrUndefined=m,n.isNumber=y,n.isString=v,n.isSymbol=w,n.isUndefined=O,n.isRegExp=E,n.isObject=x,n.isDate=b,n.isError=T,n.isFunction=A,n.isPrimitive=N,n.isBuffer=C;var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];n.log=function(){console.log("%s - %s",_(),n.format.apply(n,arguments))},n.inherits=function(e,t){e.super_=t,e.prototype=k.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},n._extend=function(e,t){if(!t||!x(t))return e;for(var n=k.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}},{_shims:27}],31:[function(e,t){var n=t.exports={};n.nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var n=[];return window.addEventListener("message",function(e){if(e.source===window&&"process-tick"===e.data&&(e.stopPropagation(),n.length>0)){var t=n.shift();t()}},!0),function(e){n.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.binding=function(){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(){throw new Error("process.chdir is not supported")}},{}]},{},[1]);
  //# sourceMappingURL=dist/swig.js.map