n.exports=function(n,e,t){varl=n.__flags||(n.__flags=Object.create(null));if(3!==arguments.length)returnl[e];l[e]=t}},function(n,e,t){"use strict";varl=t(99),r=t(0).compiler.Session;n.exports=function(n,e){n.use(l);vart=n.Assertion;functionu(n,e,t){varl=e.parse(n);returnt.allowedStartRules||(t.allowedStartRules=l.rules.length>0?[l.rules[0].name]:[]),l}t.addMethod("changeAST",function(n,l,i,o){i=void0!==i?i:{},o=void0!==o?o:{reportFailures:!0};vara=newr({grammar:n}),s=u(n,a,i);s.rules=s.rules.map(function(n){returnObject.assign(n,o)}),e.flag(this,"object")(s,a,i),newt(s).like(l)}),t.addMethod("reportError",function(n,l,i){i=void0!==i?i:{};varo,a,s=newr({grammar:n}),c=u(n,s,i);try{e.flag(this,"object")(c,s,i),o=!0}catch(n){a=n,o=!1}this.assert(!o,"expected #{this} to report an error but it didn't","expected #{this} to not report an error but #{act} was reported",null,a),o||void0===l||("string"==typeofl&&(l={message:l}),Object.keys(l).forEach(function(n){newt(a).to.have.property(n).that.is.deep.equal(l[n])}))}),t.addMethod("reportWarning",function(n,t,l){vari=this;t=Array.isArray(t)?t:null==t?[]:[t],l=void0!==l?l:{};varo=[];vara=newr({grammar:n,warn:function(n){o.push(n)}}),s=u(n,a,l);e.flag(this,"object")(s,a,l);varc=o.length,f=t.length;t.length&&this.assert(c===f,"expected #{this} to report ".concat(f," warnings, but it reported ").concat(c," warnings"),"expected #{this} to not report ".concat(f," warnings"),t,o),t.forEach(function(n){i.assert(-1!==o.indexOf(n),"expected #{this} to report the warning #{exp}, but it didn't","expected #{this} to not report the warning #{exp}",n)})})}},function(n,e,t){"use strict";e.visitor=t(12),e.Node=t(14),e.Grammar=t(24)},function(n,e,t){
n.exports=function(n,e,t){varl=n.__flags||(n.__flags=Object.create(null));for(varrine.__flags||(e.__flags=Object.create(null)),t=3!==arguments.length||t,l)(t||"object"!==r&&"ssfi"!==r&&"lockSsfi"!==r&&"message"!=r)&&(e.__flags[r]=l[r])}},function(n,e){n.exports={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"]}},function(n,e,t){"use strict";n.exports=functionn(e,t){!function(n,e){if(!(ninstanceofe))thrownewTypeError("Cannot call a class as a function")}(this,n),this.name="GrammarError",this.message=e,this.location=t,"function"==typeofError.captureStackTrace&&Error.captureStackTrace(this,n)}},function(n,e,t){"use strict";functionl(n,e){for(vart=0;t<e.length;t++){varl=e[t];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"inl&&(l.writable=!0),Object.defineProperty(n,l.key,l)}}varr=t(1),u=function(){functionn(){!function(n,e){if(!(ninstanceofe))thrownewTypeError("Cannot call a class as a function")}(this,n)}vare,t,r;returne=n,(t=[{key:"visit",value:function(n){if(!n)thrownewError("Visitor function called with no arguments or a `falsy` node");vare=this[n.type];if(!e)thrownewError('Visitor function for node type "'.concat(n.type,'" not defined'));returne.apply(this,arguments)}}])&&l(e.prototype,t),r&&l(e,r),n}();n.exports={ASTVisitor:u,build:function(n){vare=newu;returnr.extend(e,n),(e=r.enforceFastProperties(e)).visit.bind(e)}};vari=u.on={property:function(n){returnfunction(e){for(vart=e[n],l=arguments.length,r=newArray(l>1?l-1:0),u=1;u<l;u++)r[u-1]=arguments[u];r.length?this.visit.apply(this,[t].concat(r)):this.visit(t)}},children:function(n){returnfunction(e){for(vart=arguments.length,l=newArray(t>1?t-1:0),r=1;r<t;r++)l[r-1]=arguments[r];varu=e[n],i=this,o=l.length<1?function(n){i.visit(n)}:function(n){i.visit.apply(i,[n].concat(l))};u.forEach(o)}}},o=r.noop,a=i.property("expression"),s={grammar:function(n){for(vare=this,t=arguments.length,l=newArray(t>1?t-1:0),r=1;r<t;r++)l[r-1]=arguments[r];n.initializer&&this.visit.apply(this,[n.initializer].concat(l)),n.rules.forEach(function(n){e.visit.apply(e,[n].concat(l))})},initializer:o,rule:a,named:a,choice:i.children("alternatives"),action:a,sequence:i.children("elements"),labeled:a,text:a,simple_and:a,simple_not:a,optional:a,zero_or_more:a,one_or_more:a,group:a,semantic_and:o,semantic_not:o,rule_ref:o,literal:o,class:o,any:o};r.each(s,function(n,e){u.prototype[e]=n})},function(n,e,t){"use strict";functionl(n){returnfunction(n){if(Array.isArray(n)){for(vare=0,t=newArray(n.length);e<n.length;e++)t[e]=n[e];returnt}}(n)||function(n){if(Symbol.iteratorinObject(n)||"[object Arguments]"===Object.prototype.toString.call(n))returnArray.from(n)}(n)||function(){thrownewTypeError("Invalid attempt to spread non-iterable instance")}()}n.exports={evalModule:function(n,e){vart=Object.keys(e),r=t.map(function(n){returne[n]}),u={exports:{}};returnt.push("module","exports",n),r.push(u,u.exports),Function.apply(void0,l(t)).apply(void0,l(r)),u.exports}}},function(n,e,t){"use strict";n.exports=functionn(e,t){!function(n,e){if(!(ninstanceofe))thrownewTypeError("Cannot call a class as a function")}(this,n),this.type=e,this.location=t}},function(n){n.exports={name:"pegjs",version:"0.11.0-dev",description:"Parser generator for JavaScript",keywords:["PEG.js","pegjs","grammar","parser","generator","language","PEG"],homepage:"https://pegjs.org/",repository:"pegjs/pegjs",license:"MIT",contributors:["David Majda <david@majda.cz> (https://majda.cz/)","Futago-za Ryuu <futagoza.ryuu@gmail.com>"],types:"typings/pegjs.d.ts",main:"lib/peg.js",bin:"bin/peg.js",engines:{node:">= 6"}}},function(n,e,t){"use strict";varl=t(7),r=t(1);functionu(n,e,t,l){this.message=n,this.expected=e,this.found=t,this.location=l,this.name="SyntaxError","function"==typeofError.captureStackTrace&&Error.captureStackTrace(this,u)}!function(n,e){functiont(){this.constructor=n}t.prototype=e.prototype,n.prototype=newt}(u,Error),u.buildMessage=function(n,e){vart={literal:function(n){return'"'+r(n.text)+'"'},
*/n.exports=function(n,e,l){return t.configurable?(Object.defineProperty(n,"length",{get:function(){if(l)throw Error("Invalid Chai property: "+e+'.length. Due to a compatibility issue, "length" cannot directly follow "'+e+'". Use "'+e+'.lengthOf" instead.');throw Error("Invalid Chai property: "+e+'.length. See docs for proper usage of "'+e+'".')}}),n):n}},function(n,e,t){var l=t(10),r=t(5),u=t(47),i=t(18),o=["__flags","__methods","_obj","assert"];n.exports=function(n,e){return i()?new Proxy(n,{get:function n(t,i){if("string"==typeof i&&-1===l.proxyExcludedKeys.indexOf(i)&&!Reflect.has(t,i)){if(e)throw Error("Invalid Chai property: "+e+"."+i+'. See docs for proper usage of "'+e+'".');var a=null,s=4;throw u(t).forEach(function(n){if(!Object.prototype.hasOwnProperty(n)&&-1===o.indexOf(n)){var e=function(n,e,t){if(Math.abs(n.length-e.length)>=t)return t;for(var l=[],r=0;r<=n.length;r++)l[r]=Array(e.length+1).fill(0),l[r][0]=r;for(var u=0;u<e.length;u++)l[0][u]=u;for(var r=1;r<=n.length;r++)for(var i=n.charCodeAt(r-1),u=1;u<=e.length;u++)Math.abs(r-u)>=t?l[r][u]=t:l[r][u]=Math.min(l[r-1][u]+1,l[r][u-1]+1,l[r-1][u-1]+(i===e.charCodeAt(u-1)?0:1));return l[n.length][e.length]}(i,n,s);e<s&&(a=n,s=e)}}),null!==a?Error("Invalid Chai property: "+i+'. Did you mean "'+a+'"?'):Error("Invalid Chai property: "+i)}return-1!==o.indexOf(i)||r(t,"lockSsfi")||r(t,"ssfi",n),Reflect.get(t,i)}}):n}},function(n,e,t){"use strict";function l(n,e){for(var t=0;t<n.length;++t)if(e(n[t],t))return t;return-1}n.exports={findIndex:l,find:function(n,e){var t=l(n,e);return t<0?void 0:n[t]}}},function(n,e,t){"use strict";function l(n){return n.charCodeAt(0).toString(16).toUpperCase()}function r(n){return n.replace(/\0/g,"\\0").replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\v/g,"\\v").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(n){return"\\x0"+l(n)}).replace(/[\x10-\x1F\x7F-\xFF]/g,function(n){return"\\x"+l(n)}).replace(/[\u0100-\u0FFF]/g,function(n){return"\\u0"+l(n)}).replace(/[\u1000-\uFFFF]/g,function(n){return"\\u"+l(n)})}varu={stringEscape:function(n){returnr(n.replace(/\\/g,"\\\\").replace(/"/g,'\\"'))},regexpEscape:function(n){returnr(n.replace(/\\/g,"\\\\").replace(/\//g,"\\/").replace(/]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-"))},reservedWords:["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","with","class","const","enum","export","extends","implements","import","interface","let","package","private","protected","public","static","super","yield","false","null","true"]};n.exports=u},function(n,e,t){"use strict";functionl(n){return(l="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(n){returntypeofn}:function(n){returnn&&"function"==typeofSymbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeofn})(n)}varr=Object.prototype.hasOwnProperty,u={clone:function(n){vare={};for(vartinn)r.call(n,t)&&(e[t]=n[t]);returne},each:function(n,e){for(vartinn)r.call(n,t)&&e(n[t],t)},extend:function(n,e){for(vartine)r.call(e,t)&&(r.call(n,t)||(n[t]=e[t]));returnn},map:function(n,e){vart={};for(varlinn)r.call(n,l)&&(t[l]=e(n[l],l));returnt},values:function(n,e){vart,l,u=[],i=-1;for(tinn)r.call(n,t)&&(l=n[t],u[++i]=e?e(l,t):l);returnu},enforceFastProperties:functionn(e){functiont(){}t.prototype=e;varr=newt;functionu(){returnl(r.foo)}returnu(),u(),e}};n.exports=u},function(n,e,t){"use strict";functionl(n){return(l="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(n){returntypeofn}:function(n){returnn&&"function"==typeofSymbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeofn})(n)}functionr(n,e){if(!(ninstanceofe))thrownewTypeError("Cannot call a class as a function")}functionu(n,e){for(vart=0;t<e.length;t++){varl=e[t];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"inl&&(l.writable=!0),Object.defineProperty(n,l.key,l)}}functioni(n,e,t){
n.exports=function(n){return"function"!=typeofObject.getOwnPropertySymbols?[]:Object.getOwnPropertySymbols(n).filter(function(e){returnObject.getOwnPropertyDescriptor(n,e).enumerable})}},function(n,e,t){(function(n){varl=void0!==n&&n||"undefined"!=typeofself&&self||window,r=Function.prototype.apply;functionu(n,e){this._id=n,this._clearFn=e}e.setTimeout=function(){returnnewu(r.call(setTimeout,l,arguments),clearTimeout)},e.setInterval=function(){returnnewu(r.call(setInterval,l,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(n){n&&n.close()},u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(l,this._id)},e.enroll=function(n,e){clearTimeout(n._idleTimeoutId),n._idleTimeout=e},e.unenroll=function(n){clearTimeout(n._idleTimeoutId),n._idleTimeout=-1},e._unrefActive=e.active=function(n){clearTimeout(n._idleTimeoutId);vare=n._idleTimeout;e>=0&&(n._idleTimeoutId=setTimeout(function(){n._onTimeout&&n._onTimeout()},e))},t(88),e.setImmediate="undefined"!=typeofself&&self.setImmediate||void0!==n&&n.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeofself&&self.clearImmediate||void0!==n&&n.clearImmediate||this&&this.clearImmediate}).call(this,t(17))},function(n,e){vart,l,r=n.exports={};functionu(){thrownewError("setTimeout has not been defined")}functioni(){thrownewError("clearTimeout has not been defined")}functiono(n){if(t===setTimeout)returnsetTimeout(n,0);if((t===u||!t)&&setTimeout)returnt=setTimeout,setTimeout(n,0);try{returnt(n,0)}catch(e){try{returnt.call(null,n,0)}catch(e){returnt.call(this,n,0)}}}!function(){try{t="function"==typeofsetTimeout?setTimeout:u}catch(n){t=u}try{l="function"==typeofclearTimeout?clearTimeout:i}catch(n){l=i}}();vara,s=[],c=!1,f=-1;functionp(){c&&a&&(c=!1,a.length?s=a.concat(s):f=-1,s.length&&d())}functiond(){if(!c){varn=o(p);c=!0;for(vare=s.length;e;){for(a=s,s=[];++f<e;)a&&a[f].run();f=-1,e=s.length}a=null,c=!1,function(n){if(l===clearTimeout)returnclearTimeout(n);if((l===i||!l)&&clearTimeout)returnl=clearTimeout,clearTimeout(n);try{l(n)}catch(e){try{returnl.call(null,n)}catch(e){returnl.call(this,n)}}}(n)}}functionh(n,e){this.fun=n,this.array=e}functionm(){}r.nextTick=function(n){vare=newArray(arguments.length-1);if(arguments.length>1)for(vart=1;t<arguments.length;t++)e[t-1]=arguments[t];s.push(newh(n,e)),1!==s.length||c||o(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(n){return[]},r.binding=function(n){thrownewError("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(n){thrownewError("process.chdir is not supported")},r.umask=function(){return0}},,,,function(n,e,t){"use strict";varl=t(55);l.keys().forEach(l),n.exports=l},function(n,e,t){varl={"./api/generated-parser-api.spec.js":56,"./api/pegjs-api.spec.js":89,"./api/pegjs-util.spec.js":91,"./api/plugin-api.spec.js":93,"./behavior/generated-parser-behavior.spec.js":95,"./unit/compiler/passes/generate-bytecode.spec.js":97,"./unit/compiler/passes/inference-match-result.spec.js":101,"./unit/compiler/passes/remove-proxy-rules.spec.js":103,"./unit/compiler/passes/report-duplicate-labels.spec.js":105,"./unit/compiler/passes/report-duplicate-rules.spec.js":107,"./unit/compiler/passes/report-incorrect-plucking.spec.js":109,"./unit/compiler/passes/report-infinite-recursion.spec.js":111,"./unit/compiler/passes/report-infinite-repetition.spec.js":113,"./unit/compiler/passes/report-undefined-rules.spec.js":115,"./unit/compiler/passes/report-unused-rules.spec.js":117,"./unit/parser.spec.js":119};functionr(n){vare=u(n);returnt(e)}functionu(n){if(!t.o(l,n)){vare=newError("Cannot find module '"+n+"'");throwe.code="MODULE_NOT_FOUND",e}returnl[n]}r.keys=function(){returnObject.keys(l)},r.resolve=u,n.exports=r,r.id=55},function(n,e,t){t(2),"undefin
varl=t(43),r=t(5),u=t(40);n.exports=function(n,e){vart=r(n,"message"),i=r(n,"ssfi");t=t?t+": ":"",n=r(n,"object"),(e=e.map(function(n){returnn.toLowerCase()})).sort();varo=e.map(function(n,t){varl=~["a","e","i","o","u"].indexOf(n.charAt(0))?"an":"a";return(e.length>1&&t===e.length-1?"or ":"")+l+" "+n}).join(", "),a=u(n).toLowerCase();if(!e.some(function(n){returna===n}))thrownewl(t+"object tested must be "+o+", but "+a+" given",void0,i)}},function(n,e,t){
varl=t(19),r=t(8),u=t(5),i=t(20),o=t(9);n.exports=function(n,e,t){vara=n[e],s=function(){thrownewError(e+" is not a function")};a&&"function"==typeofa&&(s=a);varc=function(){u(this,"lockSsfi")||u(this,"ssfi",c);varn=u(this,"lockSsfi");u(this,"lockSsfi",!0);vare=t(s).apply(this,arguments);if(u(this,"lockSsfi",n),void0!==e)returne;varl=newr.Assertion;returno(this,l),l};l(c,e,!1),n[e]=i(c,e)}},function(n,e,t){
functionu(n,t,l,i){returnr(this,"ssfi",l||u),r(this,"lockSsfi",i),r(this,"object",n),r(this,"message",t),e.proxify(this)}n.Assertion=u,Object.defineProperty(u,"includeStack",{get:function(){returnconsole.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),l.includeStack},set:function(n){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),l.includeStack=n}}),Object.defineProperty(u,"showDiff",{get:function(){returnconsole.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),l.showDiff},set:function(n){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),l.showDiff=n}}),u.addProperty=function(n,t){e.addProperty(this.prototype,n,t)},u.addMethod=function(n,t){e.addMethod(this.prototype,n,t)},u.addChainableMethod=function(n,t,l){e.addChainableMethod(this.prototype,n,t,l)},u.overwriteProperty=function(n,t){e.overwriteProperty(this.prototype,n,t)},u.overwriteMethod=function(n,t){e.overwriteMethod(this.prototype,n,t)},u.overwriteChainableMethod=function(n,t,l){e.overwriteChainableMethod(this.prototype,n,t,l)},u.prototype.assert=function(n,u,i,o,a,s){varc=e.test(this,arguments);if(!1!==s&&(s=!0),void0===o&&void0===a&&(s=!1),!0!==l.showDiff&&(s=!1),!c){u=e.getMessage(this,arguments);varf=e.getActual(this,arguments);thrownewt(u,{actual:f,expected:o,showDiff:s},l.includeStack?this.assert:r(this,"ssfi"))}},
n.exports=function(n,e){vart=n.Assertion,l=n.AssertionError,r=e.flag;functionu(n,t){t&&r(this,"message",t),n=n.toLowerCase();varl=r(this,"object"),u=~["a","e","i","o","u"].indexOf(n.charAt(0))?"an ":"a ";this.assert(n===e.type(l).toLowerCase(),"expected #{this} to be "+u+n,"expected #{this} not to be "+u+n)}functioni(n,t){returne.isNaN(n)&&e.isNaN(t)||n===t}functiono(){r(this,"contains",!0)}functiona(n,u){u&&r(this,"message",u);varo=r(this,"object"),a=e.type(o).toLowerCase(),s=r(this,"message"),c=r(this,"negate"),f=r(this,"ssfi"),p=r(this,"deep"),d=p?"deep ":"";s=s?s+": ":"";varh=!1;switch(a){case"string":h=-1!==o.indexOf(n);break;case"weakset":if(p)thrownewl(s+"unable to use .deep.include with WeakSet",void0,f);h=o.has(n);break;case"map":varm=p?e.eql:i;o.forEach(function(e){h=h||m(e,n)});break;case"set":p?o.forEach(function(t){h=h||e.eql(t,n)}):h=o.has(n);break;case"array":h=p?o.some(function(t){returne.eql(t,n)}):-1!==o.indexOf(n);break;default:if(n!==Object(n))thrownewl(s+"object tested must be an array, a map, an object, a set, a string, or a weakset, but "+a+" given",void0,f);varg=Object.keys(n),b=null,y=0;if(g.forEach(function(u){vari=newt(o);if(e.transferFlags(this,i,!0),r(i,"lockSsfi",!0),c&&1!==g.length)try{i.property(u,n[u])}catch(n){if(!e.checkError.compatibleConstructor(n,l))thrown;null===b&&(b=n),y++}elsei.property(u,n[u])},this),c&&g.length>1&&y===g.length)throwb;return}this.assert(h,"expected #{this} to "+d+"include "+e.inspect(n),"expected #{this} to not "+d+"include "+e.inspect(n))}functions(){varn=r(this,"object"),t=e.type(n);this.assert("Arguments"===t,"expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments")}functionc(n,e){e&&r(this,"message",e);vart=r(this,"object");if(r(this,"deep")){varl=r(this,"lockSsfi");r(this,"lockSsfi",!0),this.eql(n),r(this,"lockSsfi",l)}elsethis.assert(n===t,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",n,this._obj,!0)}functionf(n,t){t&&r(this,"message",t),this.assert(e.eql(n,r(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",n,this._obj,!0)}functionp(n,u){u&&r(this,"message",u);vari,o=r(this,"object"),a=r(this,"doLength"),s=r(this,"message"),c=s?s+": ":"",f=r(this,"ssfi"),p=e.type(o).toLowerCase(),d=e.type(n).toLowerCase(),h=!0;if(a&&"map"!==p&&"set"!==p&&newt(o,s,f,!0).to.have.property("length"),a||"date"!==p||"date"===d)if("number"===d||!a&&"number"!==p)if(a||"date"===p||"number"===p)h=!1;else{i=c+"expected "+("string"===p?"'"+o+"'":o)+" to be a number or a date"}elsei=c+"the argument to above must be a number";elsei=c+"the argument to above must be a date";if(h)thrownewl(i,void0,f);if(a){varm,g="length";"map"===p||"set"===p?(g="size",m=o.size):m=o.length,this.assert(m>n,"expected #{this} to have a "+g+" above #{exp} but got #{act}","expected #{this} to not have a "+g+" above #{exp}",n,m)}elsethis.assert(o>n,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",n)}functiond(n,u){u&&r(this,"message",u);vari,o=r(this,"object"),a=r(this,"doLength"),s=r(this,"message"),c=s?s+": ":"",f=r(this,"ssfi"),p=e.type(o).toLowerCase(),d=e.type(n).toLowerCase(),h=!0;if(a&&"map"!==p&&"set"!==p&&newt(o,s,f,!0).to.have.property("length"),a||"date"!==p||"date"===d)if("number"===d||!a&&"number"!==p)if(a||"date"===p||"number"===p)h=!1;else{i=c+"expected "+("string"===p?"'"+o+"'":o)+" to be a number or a date"}elsei=c+"the argument to least must be a number";elsei=c+"the argument to least must be a date";if(h)thrownewl(i,void0,f);if(a){varm,g="length";"map"===p||"set"===p?(g="size",m=o.size):m=o.length,this.assert(m>=n,"expected #{this} to have a "+g+" at least #{exp} but got #{act}","expected #{this} to have a "+g+" below #{exp}",n,m)}elsethis.assert(o>=n,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",n)}functionh(n,u){u&&r(this,"message",u);vari,o=r(this,"object"),a=r(this,"doLength"),s=r(this,"message"),c=s?s+": ":"",f=r(this,"ssfi"),p=e.type(o).toLowerCase(),d=e.type(n).toL
functionn(e,t){returnr[t]=r[e],n}("isOk","ok")("isNotOk","notOk")("throws","throw")("throws","Throw")("isExtensible","extensible")("isNotExtensible","notExtensible")("isSealed","sealed")("isNotSealed","notSealed")("isFrozen","frozen")("isNotFrozen","notFrozen")("isEmpty","empty")("isNotEmpty","notEmpty")}},function(n,e,t){(function(n,e){!function(n,t){"use strict";if(!n.setImmediate){varl,r,u,i,o,a=1,s={},c=!1,f=n.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(n);p=p&&p.setTimeout?p:n,"[object process]"==={}.toString.call(n.process)?l=function(n){e.nextTick(function(){h(n)})}:!function(){if(n.postMessage&&!n.importScripts){vare=!0,t=n.onmessage;returnn.onmessage=function(){e=!1},n.postMessage("","*"),n.onmessage=t,e}}()?n.MessageChannel?((u=newMessageChannel).port1.onmessage=function(n){h(n.data)},l=function(n){u.port2.postMessage(n)}):f&&"onreadystatechange"inf.createElement("script")?(r=f.documentElement,l=function(n){vare=f.createElement("script");e.onreadystatechange=function(){h(n),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):l=function(n){setTimeout(h,0,n)}:(i="setImmediate$"+Math.random()+"$",o=function(e){e.source===n&&"string"==typeofe.data&&0===e.data.indexOf(i)&&h(+e.data.slice(i.length))},n.addEventListener?n.addEventListener("message",o,!1):n.attachEvent("onmessage",o),l=function(e){n.postMessage(i+e,"*")}),p.setImmediate=function(n){"function"!=typeofn&&(n=newFunction(""+n));for(vare=newArray(arguments.length-1),t=0;t<e.length;t++)e[t]=arguments[t+1];varr={callback:n,args:e};returns[a]=r,l(a),a++},p.clearImmediate=d}functiond(n){deletes[n]}functionh(n){if(c)setTimeout(h,0,n);else{vare=s[n];if(e){c=!0;try{!function(n){vare=n.callback,l=n.args;switch(l.length){case0:e();break;case1:e(l[0]);break;case2:e(l[0],l[1]);break;case3:e(l[0],l[1],l[2]);break;default:e.apply(t,l)}}(e)}finally{d(n),c=!1}}}}}("undefined"==typeofself?void0===n?this:n:self)}).call(this,t(17),t(50))},function(n,e,t){t(2),"undefined"!=typeofwindow&&window.initMochaPhantomJS&&window.initMochaPhantomJS(),mocha.setup({ui:"bdd"}),t(90),t(4)},function(module,exports,__webpack_require__){"use strict";varchai=__webpack_require__(3),peg=__webpack_require__(0),sinon=__webpack_require__(42),expect=chai.expect;describe("PEG.js API",function(){describe("generate",function(){it("generates a parser",function(){varn=peg.generate("start = 'a'");expect(n).to.be.an("object"),expect(n.parse("a")).to.equal("a")}),it("throws an exception on syntax error",function(){expect(function(){peg.generate("start = @")}).to.throw()}),it("throws an exception on semantic error",function(){expect(function(){peg.generate("start = undefined")}).to.throw()}),describe("allowed start rules",function(){varn="\n\n a = 'x'\n b = 'x'\n c = 'x'\n\n ";it("throws an error on missing rule",function(){expect(function(){peg.generate(n,{allowedStartRules:["missing"]})}).to.throw()}),describe("when optimizing for parsing speed",function(){describe("when |allowedStartRules| is not set",function(){it("generated parser can start only from the first rule",function(){vare=peg.generate(n,{optimize:"speed"});expect(e.parse("x",{startRule:"a"})).to.equal("x"),expect(function(){e.parse("x",{startRule:"b"})}).to.throw(),expect(function(){e.parse("x",{startRule:"c"})}).to.throw()})}),describe("when |allowedStartRules| is set",function(){it("generated parser can start only from specified rules",function(){vare=peg.generate(n,{optimize:"speed",allowedStartRules:["b","c"]});expect(function(){e.parse("x",{startRule:"a"})}).to.throw(),expect(e.parse("x",{startRule:"b"})).to.equal("x"),expect(e.parse("x",{startRule:"c"})).to.equal("x")})})}),describe("when optimizing for code size",function(){describe("when |allowedStartRules| is not set",function(){it("generated parser can start only from the first rule",function(){vare=peg.generate(n,{optimize:"size"});expect(e.parse("x",{startRule:"a"})).to.equal("x"),expect(function(){e.parse("x",{startRule:"b"})}).to.throw(),expect(function(){e.pars