jssm 5.162.31 → 5.162.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/cdn/instance.js +1 -1
- package/dist/cdn/viz.js +1 -1
- package/dist/cli/fsl-export-system-prompt.cjs +1 -1
- package/dist/cli/fsl-render.cjs +1 -1
- package/dist/cli/fsl.cjs +1 -1
- package/dist/cli/lib.cjs +1 -1
- package/dist/cli/lib.mjs +1 -1
- package/dist/deno/README.md +6 -6
- package/dist/deno/jssm.d.ts +8 -0
- package/dist/deno/jssm.js +1 -1
- package/dist/fence/fence.js +66 -80
- package/dist/jssm.es5.cjs +1 -1
- package/dist/jssm.es5.iife.js +1 -1
- package/dist/jssm.es6.mjs +1 -1
- package/dist/jssm_viz.cjs +1 -1
- package/dist/jssm_viz.iife.cjs +1 -1
- package/dist/jssm_viz.mjs +1 -1
- package/jssm.es5.d.cts +8 -0
- package/jssm.es6.d.ts +8 -0
- package/jssm.fence.d.ts +8 -0
- package/jssm_viz.es5.d.cts +8 -0
- package/jssm_viz.es6.d.ts +8 -0
- package/package.json +1 -1
package/dist/cdn/instance.js
CHANGED
|
@@ -18,7 +18,7 @@ const t$1=globalThis,e$2=t$1.ShadowRoot&&(void 0===t$1.ShadyCSS||t$1.ShadyCSS.na
|
|
|
18
18
|
* @license
|
|
19
19
|
* Copyright 2017 Google LLC
|
|
20
20
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
-
*/};const s=globalThis;class i extends y$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=D(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return E}}i._$litElement$=true,i["finalized"]=true,s.litElementHydrateSupport?.({LitElement:i});const o=s.litElementPolyfillSupport;o?.({LitElement:i});(s.litElementVersions??=[]).push("4.2.2");class circular_buffer{constructor(uCapacity){if(!Number.isInteger(uCapacity)){throw new RangeError(`Capacity must be an integer, received ${uCapacity}`)}if(uCapacity<0){throw new RangeError(`Capacity must be a non-negative integer, received ${uCapacity}`)}this._values=new Array(uCapacity);this._capacity=uCapacity;this._cursor=0;this._offset=0;this._length=0}get capacity(){return this._capacity}set capacity(newSize){this.resize(newSize)}get length(){return this._length}set length(newLength){if(newLength>this._capacity){throw new RangeError(`Requested new length [${newLength}] exceeds container capacity [${this._capacity}]`)}if(newLength<0){throw new RangeError(`Requested new length [${newLength}] cannot be negative`)}if(!Number.isInteger(newLength)){throw new RangeError(`Requested new length [${newLength}] must be an integer`)}if(this._length<=newLength){return}this._length=newLength}get available(){return this._capacity-this._length}get isEmpty(){return this._length===0}get isFull(){return this._length===this._capacity}get first(){if(this.isEmpty){throw new RangeError("Cannot return first element of an empty container")}return this.at(0)}get last(){if(this.isEmpty){throw new RangeError("Cannot return last element of an empty container")}return this.at(this.length-1)}static from(i,map_fn,t){const new_array=map_fn?Array.from(i,map_fn,t):Array.from(i);const target_length=new_array.length;const ncb=new circular_buffer(target_length);ncb._values=new_array;ncb._length=target_length;return ncb}push(v){if(this.isFull){throw new RangeError(`Cannot push, structure is full to capacity`)}this._values[(this._cursor+this._length++)%this._capacity]=v;return v}shove(v){let shoved;if(this._capacity===0){throw new RangeError(`Cannot shove, structure is zero-capacity`)}if(this.isFull){shoved=this.pop()}this.push(v);return shoved}fill(x){for(let i=0;i<this._capacity;i++){this._values[i]=x}this._length=this._capacity;return this._values}indexOf(searchElement,fromIndex){const normalized=this.toArray();return normalized.indexOf(searchElement,fromIndex)}find(predicate,thisArg){return this.toArray().find(predicate,thisArg)}every(functor,thisArg){const normalized=this.toArray(),res=normalized.every(functor,thisArg);this._values=normalized;this._values.length=this._capacity;this._cursor=0;return res}some(functor,thisArg){const normalized=this.toArray(),res=normalized.some(functor,thisArg);this._values=normalized;this._values.length=this._capacity;this._cursor=0;return res}reverse(){const normalized=this.toArray();this._values=normalized.reverse();this._values.length=this._capacity;this._cursor=0;return this}clear(){const old=this.toArray();this._length=0;return old}pop(){if(this._length<=0){throw new RangeError(`Cannot pop, structure is empty`)}const cache=this.at(0);--this._length;++this._offset;++this._cursor;if(this._cursor>=this._capacity){this._cursor-=this._capacity}return cache}at(i){if(i<0){throw new RangeError(`circular_buffer does not support negative traversals; called at(${i})`)}if(!Number.isInteger(i)){throw new RangeError(`Accessors must be non-negative integers; called at(${i})`)}if(i>=this._capacity){throw new RangeError(`Requested cell ${i} exceeds container permanent capacity`)}if(i>=this._length){throw new RangeError(`Requested cell ${i} exceeds container current length`)}return this._values[(this._cursor+i)%this._capacity]}pos(i){return this.at(i-this.offset())}offset(){return this._offset}resize(newSize,preferEnd=false){this._values=this.toArray();this._cursor=0;const oldSize=this._length;this._length=Math.min(this._length,newSize);this._capacity=newSize;if(newSize>=oldSize){this._values.length=newSize}else{if(preferEnd){const tmp=this._values.slice(oldSize-newSize);this._values=tmp}else{this._values.length=newSize}}}toArray(){const startPoint=this._cursor%this._capacity;if(this._capacity>startPoint+this._length){return this._values.slice(startPoint,startPoint+this._length)}else{const base=this._values.slice(startPoint,this._capacity);base.push(...this._values.slice(0,this.length-(this._capacity-startPoint)));return base}}}class JssmError extends Error{constructor(machine,message,JEEI){const{requested_state:requested_state,source_location:source_location}=JEEI===undefined?{requested_state:undefined,source_location:undefined}:JEEI;const follow_ups=[];if(machine&&machine.state()!==undefined){follow_ups.push(`at "${machine.state()}"`)}if(requested_state!==undefined){follow_ups.push(`requested "${requested_state}"`)}const complex_msg=`${(machine===null||machine===void 0?void 0:machine.instance_name())===undefined?"":`[[${machine.instance_name()}]]: `}${message}${follow_ups.length>0?` (${follow_ups.join(", ")})`:""}`;super(complex_msg);this.name="JssmError";this.message=complex_msg;this.base_message=message;this.requested_state=requested_state;this.source_location=source_location}}function peg$subclass(child,parent){function ctor(){this.constructor=child}ctor.prototype=parent.prototype;child.prototype=new ctor}function peg$SyntaxError(message,expected,found,location){this.message=message;this.expected=expected;this.found=found;this.location=location;this.name="SyntaxError";if(typeof Error.captureStackTrace==="function"){Error.captureStackTrace(this,peg$SyntaxError)}}peg$subclass(peg$SyntaxError,Error);peg$SyntaxError.buildMessage=function(expected,found){var DESCRIBE_EXPECTATION_FNS={literal:function(expectation){return'"'+literalEscape(expectation.text)+'"'},class:function(expectation){var escapedParts="",i;for(i=0;i<expectation.parts.length;i++){escapedParts+=expectation.parts[i]instanceof Array?classEscape(expectation.parts[i][0])+"-"+classEscape(expectation.parts[i][1]):classEscape(expectation.parts[i])}return"["+(expectation.inverted?"^":"")+escapedParts+"]"},any:function(expectation){return"any character"},end:function(expectation){return"end of input"},other:function(expectation){return expectation.description}};function hex(ch){return ch.charCodeAt(0).toString(16).toUpperCase()}function literalEscape(s){return s.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(ch){return"\\x0"+hex(ch)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(ch){return"\\x"+hex(ch)})}function classEscape(s){return s.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(ch){return"\\x0"+hex(ch)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(ch){return"\\x"+hex(ch)})}function describeExpectation(expectation){return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation)}function describeExpected(expected){var descriptions=new Array(expected.length),i,j;for(i=0;i<expected.length;i++){descriptions[i]=describeExpectation(expected[i])}descriptions.sort();if(descriptions.length>0){for(i=1,j=1;i<descriptions.length;i++){if(descriptions[i-1]!==descriptions[i]){descriptions[j]=descriptions[i];j++}}descriptions.length=j}switch(descriptions.length){case 1:return descriptions[0];case 2:return descriptions[0]+" or "+descriptions[1];default:return descriptions.slice(0,-1).join(", ")+", or "+descriptions[descriptions.length-1]}}function describeFound(found){return found?'"'+literalEscape(found)+'"':"end of input"}return"Expected "+describeExpected(expected)+" but "+describeFound(found)+" found."};function peg$parse(input,options){options=options!==void 0?options:{};var peg$FAILED={},peg$startRuleFunctions={Document:peg$parseDocument},peg$startRuleFunction=peg$parseDocument,peg$c0=function(e){return e},peg$c1="default",peg$c2=peg$literalExpectation("default",false),peg$c3="ocean",peg$c4=peg$literalExpectation("ocean",false),peg$c5="modern",peg$c6=peg$literalExpectation("modern",false),peg$c7="plain",peg$c8=peg$literalExpectation("plain",false),peg$c9="bold",peg$c10=peg$literalExpectation("bold",false),peg$c11="[",peg$c12=peg$literalExpectation("[",false),peg$c13="]",peg$c14=peg$literalExpectation("]",false),peg$c15=function(ths,th){const themes=ths.map(t=>t[0]);if(th)themes.push(th);return themes},peg$c16=function(th){return[th]},peg$c17="box3d",peg$c18=peg$literalExpectation("box3d",false),peg$c19="polygon",peg$c20=peg$literalExpectation("polygon",false),peg$c21="ellipse",peg$c22=peg$literalExpectation("ellipse",false),peg$c23="oval",peg$c24=peg$literalExpectation("oval",false),peg$c25="circle",peg$c26=peg$literalExpectation("circle",false),peg$c27="point",peg$c28=peg$literalExpectation("point",false),peg$c29="egg",peg$c30=peg$literalExpectation("egg",false),peg$c31="triangle",peg$c32=peg$literalExpectation("triangle",false),peg$c33="plaintext",peg$c34=peg$literalExpectation("plaintext",false),peg$c35="diamond",peg$c36=peg$literalExpectation("diamond",false),peg$c37="trapezium",peg$c38=peg$literalExpectation("trapezium",false),peg$c39="parallelogram",peg$c40=peg$literalExpectation("parallelogram",false),peg$c41="house",peg$c42=peg$literalExpectation("house",false),peg$c43="pentagon",peg$c44=peg$literalExpectation("pentagon",false),peg$c45="hexagon",peg$c46=peg$literalExpectation("hexagon",false),peg$c47="septagon",peg$c48=peg$literalExpectation("septagon",false),peg$c49="octagon",peg$c50=peg$literalExpectation("octagon",false),peg$c51="doublecircle",peg$c52=peg$literalExpectation("doublecircle",false),peg$c53="doubleoctagon",peg$c54=peg$literalExpectation("doubleoctagon",false),peg$c55="tripleoctagon",peg$c56=peg$literalExpectation("tripleoctagon",false),peg$c57="invtriangle",peg$c58=peg$literalExpectation("invtriangle",false),peg$c59="invtrapezium",peg$c60=peg$literalExpectation("invtrapezium",false),peg$c61="invhouse",peg$c62=peg$literalExpectation("invhouse",false),peg$c63="Mdiamond",peg$c64=peg$literalExpectation("Mdiamond",false),peg$c65="Msquare",peg$c66=peg$literalExpectation("Msquare",false),peg$c67="Mcircle",peg$c68=peg$literalExpectation("Mcircle",false),peg$c69="rectangle",peg$c70=peg$literalExpectation("rectangle",false),peg$c71="rect",peg$c72=peg$literalExpectation("rect",false),peg$c73="square",peg$c74=peg$literalExpectation("square",false),peg$c75="star",peg$c76=peg$literalExpectation("star",false),peg$c77="none",peg$c78=peg$literalExpectation("none",false),peg$c79="underline",peg$c80=peg$literalExpectation("underline",false),peg$c81="cylinder",peg$c82=peg$literalExpectation("cylinder",false),peg$c83="note",peg$c84=peg$literalExpectation("note",false),peg$c85="tab",peg$c86=peg$literalExpectation("tab",false),peg$c87="folder",peg$c88=peg$literalExpectation("folder",false),peg$c89="box",peg$c90=peg$literalExpectation("box",false),peg$c91="component",peg$c92=peg$literalExpectation("component",false),peg$c93="promoter",peg$c94=peg$literalExpectation("promoter",false),peg$c95="cds",peg$c96=peg$literalExpectation("cds",false),peg$c97="terminator",peg$c98=peg$literalExpectation("terminator",false),peg$c99="utr",peg$c100=peg$literalExpectation("utr",false),peg$c101="primersite",peg$c102=peg$literalExpectation("primersite",false),peg$c103="restrictionsite",peg$c104=peg$literalExpectation("restrictionsite",false),peg$c105="fivepoverhang",peg$c106=peg$literalExpectation("fivepoverhang",false),peg$c107="threepoverhang",peg$c108=peg$literalExpectation("threepoverhang",false),peg$c109="noverhang",peg$c110=peg$literalExpectation("noverhang",false),peg$c111="assembly",peg$c112=peg$literalExpectation("assembly",false),peg$c113="signature",peg$c114=peg$literalExpectation("signature",false),peg$c115="insulator",peg$c116=peg$literalExpectation("insulator",false),peg$c117="ribosite",peg$c118=peg$literalExpectation("ribosite",false),peg$c119="rnastab",peg$c120=peg$literalExpectation("rnastab",false),peg$c121="proteasesite",peg$c122=peg$literalExpectation("proteasesite",false),peg$c123="proteinstab",peg$c124=peg$literalExpectation("proteinstab",false),peg$c125="rpromoter",peg$c126=peg$literalExpectation("rpromoter",false),peg$c127="rarrow",peg$c128=peg$literalExpectation("rarrow",false),peg$c129="larrow",peg$c130=peg$literalExpectation("larrow",false),peg$c131="lpromoter",peg$c132=peg$literalExpectation("lpromoter",false),peg$c133="record",peg$c134=peg$literalExpectation("record",false),peg$c135=peg$otherExpectation("forward light arrow ->"),peg$c136="->",peg$c137=peg$literalExpectation("->",false),peg$c138="→",peg$c139=peg$literalExpectation("→",false),peg$c140=function(){return"->"},peg$c141=peg$otherExpectation("two way light arrow <->"),peg$c142="<->",peg$c143=peg$literalExpectation("<->",false),peg$c144="↔",peg$c145=peg$literalExpectation("↔",false),peg$c146=function(){return"<->"},peg$c147=peg$otherExpectation("back light arrow <-"),peg$c148="<-",peg$c149=peg$literalExpectation("<-",false),peg$c150="←",peg$c151=peg$literalExpectation("←",false),peg$c152=function(){return"<-"},peg$c153=peg$otherExpectation("forward fat arrow =>"),peg$c154="=>",peg$c155=peg$literalExpectation("=>",false),peg$c156="⇒",peg$c157=peg$literalExpectation("⇒",false),peg$c158=function(){return"=>"},peg$c159=peg$otherExpectation("two way fat arrow <=>"),peg$c160="<=>",peg$c161=peg$literalExpectation("<=>",false),peg$c162="⇔",peg$c163=peg$literalExpectation("⇔",false),peg$c164=function(){return"<=>"},peg$c165=peg$otherExpectation("back fat arrow <="),peg$c166="<=",peg$c167=peg$literalExpectation("<=",false),peg$c168="⇐",peg$c169=peg$literalExpectation("⇐",false),peg$c170=function(){return"<="},peg$c171=peg$otherExpectation("forward tilde arrow ~>"),peg$c172="~>",peg$c173=peg$literalExpectation("~>",false),peg$c174="↛",peg$c175=peg$literalExpectation("↛",false),peg$c176=function(){return"~>"},peg$c177=peg$otherExpectation("two way tilde arrow <~>"),peg$c178="<~>",peg$c179=peg$literalExpectation("<~>",false),peg$c180="↮",peg$c181=peg$literalExpectation("↮",false),peg$c182=function(){return"<~>"},peg$c183=peg$otherExpectation("back tilde arrow <~"),peg$c184="<~",peg$c185=peg$literalExpectation("<~",false),peg$c186="↚",peg$c187=peg$literalExpectation("↚",false),peg$c188=function(){return"<~"},peg$c189=peg$otherExpectation("light fat arrow <-=>"),peg$c190="<-=>",peg$c191=peg$literalExpectation("<-=>",false),peg$c192="←⇒",peg$c193=peg$literalExpectation("←⇒",false),peg$c194=function(){return"<-=>"},peg$c195="←=>",peg$c196=peg$literalExpectation("←=>",false),peg$c197="<-⇒",peg$c198=peg$literalExpectation("<-⇒",false),peg$c199=peg$otherExpectation("light tilde arrow <-~>"),peg$c200="<-~>",peg$c201=peg$literalExpectation("<-~>",false),peg$c202="←↛",peg$c203=peg$literalExpectation("←↛",false),peg$c204=function(){return"<-~>"},peg$c205="←~>",peg$c206=peg$literalExpectation("←~>",false),peg$c207="<-↛",peg$c208=peg$literalExpectation("<-↛",false),peg$c209=peg$otherExpectation("fat light arrow <=->"),peg$c210="<=->",peg$c211=peg$literalExpectation("<=->",false),peg$c212="⇐→",peg$c213=peg$literalExpectation("⇐→",false),peg$c214=function(){return"<=->"},peg$c215="⇐->",peg$c216=peg$literalExpectation("⇐->",false),peg$c217="<=→",peg$c218=peg$literalExpectation("<=→",false),peg$c219=peg$otherExpectation("fat tilde arrow <=~>"),peg$c220="<=~>",peg$c221=peg$literalExpectation("<=~>",false),peg$c222="⇐↛",peg$c223=peg$literalExpectation("⇐↛",false),peg$c224=function(){return"<=~>"},peg$c225="⇐~>",peg$c226=peg$literalExpectation("⇐~>",false),peg$c227="<=↛",peg$c228=peg$literalExpectation("<=↛",false),peg$c229=peg$otherExpectation("tilde light arrow <~->"),peg$c230="<~->",peg$c231=peg$literalExpectation("<~->",false),peg$c232="↚→",peg$c233=peg$literalExpectation("↚→",false),peg$c234=function(){return"<~->"},peg$c235="↚->",peg$c236=peg$literalExpectation("↚->",false),peg$c237="<~→",peg$c238=peg$literalExpectation("<~→",false),peg$c239=peg$otherExpectation("tilde fat arrow <~=>"),peg$c240="<~=>",peg$c241=peg$literalExpectation("<~=>",false),peg$c242="↚⇒",peg$c243=peg$literalExpectation("↚⇒",false),peg$c244=function(){return"<~=>"},peg$c245="↚=>",peg$c246=peg$literalExpectation("↚=>",false),peg$c247="<~⇒",peg$c248=peg$literalExpectation("<~⇒",false),peg$c249=peg$otherExpectation("light arrow"),peg$c250=peg$otherExpectation("fat arrow"),peg$c251=peg$otherExpectation("tilde arrow"),peg$c252=peg$otherExpectation("mixed arrow"),peg$c253=peg$otherExpectation("arrow"),peg$c254="true",peg$c255=peg$literalExpectation("true",false),peg$c256=function(){return true},peg$c257="false",peg$c258=peg$literalExpectation("false",false),peg$c259=function(){return false},peg$c260="regular",peg$c261=peg$literalExpectation("regular",false),peg$c262="rounded",peg$c263=peg$literalExpectation("rounded",false),peg$c264="lined",peg$c265=peg$literalExpectation("lined",false),peg$c266="solid",peg$c267=peg$literalExpectation("solid",false),peg$c268="dotted",peg$c269=peg$literalExpectation("dotted",false),peg$c270="dashed",peg$c271=peg$literalExpectation("dashed",false),peg$c300="null",peg$c301=peg$literalExpectation("null",false),peg$c302=function(){return null},peg$c303="undefined",peg$c304=peg$literalExpectation("undefined",false),peg$c305=function(){return undefined},peg$c312=peg$otherExpectation("action label"),peg$c314=/^[\n\r\u2028\u2029]/,peg$c315=peg$classExpectation(["\n","\r","\u2028","\u2029"],false,false),peg$c316=peg$otherExpectation("block comment"),peg$c317="/*",peg$c318=peg$literalExpectation("/*",false),peg$c319="*/",peg$c320=peg$literalExpectation("*/",false),peg$c321=peg$anyExpectation(),peg$c322=peg$otherExpectation("line comment"),peg$c323="//",peg$c324=peg$literalExpectation("//",false),peg$c325=peg$otherExpectation("whitespace"),peg$c328=peg$otherExpectation("string"),peg$c331=/^[0-9a-zA-Z.+_\^()*&$#@!?,\x80-\uFFFF]/,peg$c332=peg$classExpectation([["0","9"],["a","z"],["A","Z"],".","+","_","^","(",")","*","&","$","#","@","!","?",",",["",""]],false,false),peg$c333=peg$otherExpectation("atom"),peg$c335=peg$otherExpectation("label"),peg$c336="0",peg$c337=peg$literalExpectation("0",false),peg$c338=/^[0-9]/,peg$c339=peg$classExpectation([["0","9"]],false,false),peg$c340=/^[1-9]/,peg$c341=peg$classExpectation([["1","9"]],false,false),peg$c342=/^[0-9a-f]/i,peg$c343=peg$classExpectation([["0","9"],["a","f"]],false,true),peg$c344=/^[0-1]/,peg$c345=peg$classExpectation([["0","1"]],false,false),peg$c346=/^[0-7]/,peg$c347=peg$classExpectation([["0","7"]],false,false),peg$c348=peg$otherExpectation("nonneg number"),peg$c349=".",peg$c350=peg$literalExpectation(".",false),peg$c351=function(){return parseFloat(text())},peg$c352=peg$otherExpectation("number"),peg$c353=function(literal){return literal},peg$c354="NaN",peg$c355=peg$literalExpectation("NaN",false),peg$c356=function(){return NaN},peg$c357="NegativeInfinity",peg$c358=peg$literalExpectation("NegativeInfinity",false),peg$c359=function(){return Number.NEGATIVE_INFINITY},peg$c360="NegativeInf",peg$c361=peg$literalExpectation("NegativeInf",false),peg$c362="NegInfinity",peg$c363=peg$literalExpectation("NegInfinity",false),peg$c364="NegInf",peg$c365=peg$literalExpectation("NegInf",false),peg$c366="NInfinity",peg$c367=peg$literalExpectation("NInfinity",false),peg$c368="NInf",peg$c369=peg$literalExpectation("NInf",false),peg$c370="-∞",peg$c371=peg$literalExpectation("-∞",false),peg$c372="PInfinity",peg$c373=peg$literalExpectation("PInfinity",false),peg$c374=function(){return Number.POSITIVE_INFINITY},peg$c375="Infinity",peg$c376=peg$literalExpectation("Infinity",false),peg$c377="PInf",peg$c378=peg$literalExpectation("PInf",false),peg$c379="Inf",peg$c380=peg$literalExpectation("Inf",false),peg$c381="∞",peg$c382=peg$literalExpectation("∞",false),peg$c383="Epsilon",peg$c384=peg$literalExpectation("Epsilon",false),peg$c385=function(){return Number.EPSILON},peg$c386="𝜀",peg$c387=peg$literalExpectation("𝜀",false),peg$c388="ε",peg$c389=peg$literalExpectation("ε",false),peg$c390="Pi",peg$c391=peg$literalExpectation("Pi",false),peg$c392=function(){return Math.PI},peg$c393="𝜋",peg$c394=peg$literalExpectation("𝜋",false),peg$c395="π",peg$c396=peg$literalExpectation("π",false),peg$c397="EulerNumber",peg$c398=peg$literalExpectation("EulerNumber",false),peg$c399=function(){return Math.E},peg$c400="E",peg$c401=peg$literalExpectation("E",false),peg$c402="e",peg$c403=peg$literalExpectation("e",false),peg$c404="Ɛ",peg$c405=peg$literalExpectation("Ɛ",false),peg$c406="ℇ",peg$c407=peg$literalExpectation("ℇ",false),peg$c408="Root2",peg$c409=peg$literalExpectation("Root2",false),peg$c410=function(){return Math.SQRT2},peg$c411="RootHalf",peg$c412=peg$literalExpectation("RootHalf",false),peg$c413=function(){return Math.SQRT1_2},peg$c414="Ln2",peg$c415=peg$literalExpectation("Ln2",false),peg$c416=function(){return Math.LN2},peg$c417="NatLog2",peg$c418=peg$literalExpectation("NatLog2",false),peg$c419="Ln10",peg$c420=peg$literalExpectation("Ln10",false),peg$c421=function(){return Math.LN10},peg$c422="NatLog10",peg$c423=peg$literalExpectation("NatLog10",false),peg$c424="Log2E",peg$c425=peg$literalExpectation("Log2E",false),peg$c426=function(){return Math.LOG2E},peg$c427="Log10E",peg$c428=peg$literalExpectation("Log10E",false),peg$c429=function(){return Math.LOG10E},peg$c430="MaxSafeInt",peg$c431=peg$literalExpectation("MaxSafeInt",false),peg$c432=function(){return Number.MAX_SAFE_INTEGER},peg$c433="MinSafeInt",peg$c434=peg$literalExpectation("MinSafeInt",false),peg$c435=function(){return Number.MIN_SAFE_INTEGER},peg$c436="MaxPosNum",peg$c437=peg$literalExpectation("MaxPosNum",false),peg$c438=function(){return Number.MAX_VALUE},peg$c439="MinPosNum",peg$c440=peg$literalExpectation("MinPosNum",false),peg$c441=function(){return Number.MIN_VALUE},peg$c442="Phi",peg$c443=peg$literalExpectation("Phi",false),peg$c444=function(){return 1.618033988749895},peg$c445="𝜑",peg$c446=peg$literalExpectation("𝜑",false),peg$c447="𝜙",peg$c448=peg$literalExpectation("𝜙",false),peg$c449="ϕ",peg$c450=peg$literalExpectation("ϕ",false),peg$c451="φ",peg$c452=peg$literalExpectation("φ",false),peg$c453="EulerConstant",peg$c454=peg$literalExpectation("EulerConstant",false),peg$c455=function(){return.5772156649015329},peg$c456="γ",peg$c457=peg$literalExpectation("γ",false),peg$c458="𝛾",peg$c459=peg$literalExpectation("𝛾",false),peg$c460=peg$literalExpectation("e",true),peg$c461=/^[+\-]/,peg$c462=peg$classExpectation(["+","-"],false,false),peg$c463="0x",peg$c464=peg$literalExpectation("0x",true),peg$c465=function(digits){return parseInt(digits,16)},peg$c466="0b",peg$c467=peg$literalExpectation("0b",true),peg$c468=function(digits){return parseInt(digits,2)},peg$c469="0o",peg$c470=peg$literalExpectation("0o",true),peg$c471=function(digits){return parseInt(digits,8)},peg$c472=function(major,minor,patch){const node={major:parseInt(major,10),minor:parseInt(minor,10),patch:parseInt(patch,10),full:text()};if(options.locations){node.loc=location()}return node},peg$c483="http://",peg$c484=peg$literalExpectation("http://",false),peg$c485="https://",peg$c486=peg$literalExpectation("https://",false),peg$c487=/^[a-zA-Z0-9!*'():;@&=+$,\/?#[\]_.~\-]/,peg$c488=peg$classExpectation([["a","z"],["A","Z"],["0","9"],"!","*","'","(",")",":",";","@","&","=","+","$",",","/","?","#","[","]","_",".","~","-"],false,false),peg$c489=function(protocol){return text()},peg$c490="aliceblue",peg$c491=peg$literalExpectation("aliceblue",false),peg$c492=function(){return"#f0f8ffff"},peg$c493="AliceBlue",peg$c494=peg$literalExpectation("AliceBlue",false),peg$c495="antiquewhite",peg$c496=peg$literalExpectation("antiquewhite",false),peg$c497=function(){return"#faebd7ff"},peg$c498="AntiqueWhite",peg$c499=peg$literalExpectation("AntiqueWhite",false),peg$c500="aquamarine",peg$c501=peg$literalExpectation("aquamarine",false),peg$c502=function(){return"#7fffd4ff"},peg$c503="Aquamarine",peg$c504=peg$literalExpectation("Aquamarine",false),peg$c505="aqua",peg$c506=peg$literalExpectation("aqua",false),peg$c507=function(){return"#00ffffff"},peg$c508="Aqua",peg$c509=peg$literalExpectation("Aqua",false),peg$c510="azure",peg$c511=peg$literalExpectation("azure",false),peg$c512=function(){return"#f0ffffff"},peg$c513="Azure",peg$c514=peg$literalExpectation("Azure",false),peg$c515="beige",peg$c516=peg$literalExpectation("beige",false),peg$c517=function(){return"#f5f5dcff"},peg$c518="Beige",peg$c519=peg$literalExpectation("Beige",false),peg$c520="bisque",peg$c521=peg$literalExpectation("bisque",false),peg$c522=function(){return"#ffe4c4ff"},peg$c523="Bisque",peg$c524=peg$literalExpectation("Bisque",false),peg$c525="black",peg$c526=peg$literalExpectation("black",false),peg$c527=function(){return"#000000ff"},peg$c528="Black",peg$c529=peg$literalExpectation("Black",false),peg$c530="blanchedalmond",peg$c531=peg$literalExpectation("blanchedalmond",false),peg$c532=function(){return"#ffebcdff"},peg$c533="BlanchedAlmond",peg$c534=peg$literalExpectation("BlanchedAlmond",false),peg$c535="blueviolet",peg$c536=peg$literalExpectation("blueviolet",false),peg$c537=function(){return"#8a2be2ff"},peg$c538="BlueViolet",peg$c539=peg$literalExpectation("BlueViolet",false),peg$c540="blue",peg$c541=peg$literalExpectation("blue",false),peg$c542=function(){return"#0000ffff"},peg$c543="Blue",peg$c544=peg$literalExpectation("Blue",false),peg$c545="brown",peg$c546=peg$literalExpectation("brown",false),peg$c547=function(){return"#a52a2aff"},peg$c548="Brown",peg$c549=peg$literalExpectation("Brown",false),peg$c550="burlywood",peg$c551=peg$literalExpectation("burlywood",false),peg$c552=function(){return"#deb887ff"},peg$c553="BurlyWood",peg$c554=peg$literalExpectation("BurlyWood",false),peg$c555="cadetblue",peg$c556=peg$literalExpectation("cadetblue",false),peg$c557=function(){return"#5f9ea0ff"},peg$c558="CadetBlue",peg$c559=peg$literalExpectation("CadetBlue",false),peg$c560="chartreuse",peg$c561=peg$literalExpectation("chartreuse",false),peg$c562=function(){return"#7fff00ff"},peg$c563="Chartreuse",peg$c564=peg$literalExpectation("Chartreuse",false),peg$c565="chocolate",peg$c566=peg$literalExpectation("chocolate",false),peg$c567=function(){return"#d2691eff"},peg$c568="Chocolate",peg$c569=peg$literalExpectation("Chocolate",false),peg$c570="coral",peg$c571=peg$literalExpectation("coral",false),peg$c572=function(){return"#ff7f50ff"},peg$c573="Coral",peg$c574=peg$literalExpectation("Coral",false),peg$c575="cornflowerblue",peg$c576=peg$literalExpectation("cornflowerblue",false),peg$c577=function(){return"#6495edff"},peg$c578="CornflowerBlue",peg$c579=peg$literalExpectation("CornflowerBlue",false),peg$c580="cornsilk",peg$c581=peg$literalExpectation("cornsilk",false),peg$c582=function(){return"#fff8dcff"},peg$c583="Cornsilk",peg$c584=peg$literalExpectation("Cornsilk",false),peg$c585="crimson",peg$c586=peg$literalExpectation("crimson",false),peg$c587=function(){return"#dc143cff"},peg$c588="Crimson",peg$c589=peg$literalExpectation("Crimson",false),peg$c590="cyan",peg$c591=peg$literalExpectation("cyan",false),peg$c592="Cyan",peg$c593=peg$literalExpectation("Cyan",false),peg$c594="darkblue",peg$c595=peg$literalExpectation("darkblue",false),peg$c596=function(){return"#00008bff"},peg$c597="DarkBlue",peg$c598=peg$literalExpectation("DarkBlue",false),peg$c599="darkcyan",peg$c600=peg$literalExpectation("darkcyan",false),peg$c601=function(){return"#008b8bff"},peg$c602="DarkCyan",peg$c603=peg$literalExpectation("DarkCyan",false),peg$c604="darkgoldenrod",peg$c605=peg$literalExpectation("darkgoldenrod",false),peg$c606=function(){return"#b8860bff"},peg$c607="DarkGoldenRod",peg$c608=peg$literalExpectation("DarkGoldenRod",false),peg$c609="darkgray",peg$c610=peg$literalExpectation("darkgray",false),peg$c611=function(){return"#a9a9a9ff"},peg$c612="DarkGray",peg$c613=peg$literalExpectation("DarkGray",false),peg$c614="darkgrey",peg$c615=peg$literalExpectation("darkgrey",false),peg$c616="DarkGrey",peg$c617=peg$literalExpectation("DarkGrey",false),peg$c618="darkgreen",peg$c619=peg$literalExpectation("darkgreen",false),peg$c620=function(){return"#006400ff"},peg$c621="DarkGreen",peg$c622=peg$literalExpectation("DarkGreen",false),peg$c623="darkkhaki",peg$c624=peg$literalExpectation("darkkhaki",false),peg$c625=function(){return"#bdb76bff"},peg$c626="DarkKhaki",peg$c627=peg$literalExpectation("DarkKhaki",false),peg$c628="darkmagenta",peg$c629=peg$literalExpectation("darkmagenta",false),peg$c630=function(){return"#8b008bff"},peg$c631="DarkMagenta",peg$c632=peg$literalExpectation("DarkMagenta",false),peg$c633="darkolivegreen",peg$c634=peg$literalExpectation("darkolivegreen",false),peg$c635=function(){return"#556b2fff"},peg$c636="DarkOliveGreen",peg$c637=peg$literalExpectation("DarkOliveGreen",false),peg$c638="darkorange",peg$c639=peg$literalExpectation("darkorange",false),peg$c640=function(){return"#ff8c00ff"},peg$c641="Darkorange",peg$c642=peg$literalExpectation("Darkorange",false),peg$c643="darkorchid",peg$c644=peg$literalExpectation("darkorchid",false),peg$c645=function(){return"#9932ccff"},peg$c646="DarkOrchid",peg$c647=peg$literalExpectation("DarkOrchid",false),peg$c648="darkred",peg$c649=peg$literalExpectation("darkred",false),peg$c650=function(){return"#8b0000ff"},peg$c651="DarkRed",peg$c652=peg$literalExpectation("DarkRed",false),peg$c653="darksalmon",peg$c654=peg$literalExpectation("darksalmon",false),peg$c655=function(){return"#e9967aff"},peg$c656="DarkSalmon",peg$c657=peg$literalExpectation("DarkSalmon",false),peg$c658="darkseagreen",peg$c659=peg$literalExpectation("darkseagreen",false),peg$c660=function(){return"#8fbc8fff"},peg$c661="DarkSeaGreen",peg$c662=peg$literalExpectation("DarkSeaGreen",false),peg$c663="darkslateblue",peg$c664=peg$literalExpectation("darkslateblue",false),peg$c665=function(){return"#483d8bff"},peg$c666="DarkSlateBlue",peg$c667=peg$literalExpectation("DarkSlateBlue",false),peg$c668="darkslategray",peg$c669=peg$literalExpectation("darkslategray",false),peg$c670=function(){return"#2f4f4fff"},peg$c671="DarkSlateGray",peg$c672=peg$literalExpectation("DarkSlateGray",false),peg$c673="darkslategrey",peg$c674=peg$literalExpectation("darkslategrey",false),peg$c675="DarkSlateGrey",peg$c676=peg$literalExpectation("DarkSlateGrey",false),peg$c677="darkturquoise",peg$c678=peg$literalExpectation("darkturquoise",false),peg$c679=function(){return"#00ced1ff"},peg$c680="DarkTurquoise",peg$c681=peg$literalExpectation("DarkTurquoise",false),peg$c682="darkviolet",peg$c683=peg$literalExpectation("darkviolet",false),peg$c684=function(){return"#9400d3ff"},peg$c685="DarkViolet",peg$c686=peg$literalExpectation("DarkViolet",false),peg$c687="deeppink",peg$c688=peg$literalExpectation("deeppink",false),peg$c689=function(){return"#ff1493ff"},peg$c690="DeepPink",peg$c691=peg$literalExpectation("DeepPink",false),peg$c692="deepskyblue",peg$c693=peg$literalExpectation("deepskyblue",false),peg$c694=function(){return"#00bfffff"},peg$c695="DeepSkyBlue",peg$c696=peg$literalExpectation("DeepSkyBlue",false),peg$c697="dimgray",peg$c698=peg$literalExpectation("dimgray",false),peg$c699=function(){return"#696969ff"},peg$c700="DimGray",peg$c701=peg$literalExpectation("DimGray",false),peg$c702="dimgrey",peg$c703=peg$literalExpectation("dimgrey",false),peg$c704="DimGrey",peg$c705=peg$literalExpectation("DimGrey",false),peg$c706="dodgerblue",peg$c707=peg$literalExpectation("dodgerblue",false),peg$c708=function(){return"#1e90ffff"},peg$c709="DodgerBlue",peg$c710=peg$literalExpectation("DodgerBlue",false),peg$c711="firebrick",peg$c712=peg$literalExpectation("firebrick",false),peg$c713=function(){return"#b22222ff"},peg$c714="FireBrick",peg$c715=peg$literalExpectation("FireBrick",false),peg$c716="floralwhite",peg$c717=peg$literalExpectation("floralwhite",false),peg$c718=function(){return"#fffaf0ff"},peg$c719="FloralWhite",peg$c720=peg$literalExpectation("FloralWhite",false),peg$c721="forestgreen",peg$c722=peg$literalExpectation("forestgreen",false),peg$c723=function(){return"#228b22ff"},peg$c724="ForestGreen",peg$c725=peg$literalExpectation("ForestGreen",false),peg$c726="fuchsia",peg$c727=peg$literalExpectation("fuchsia",false),peg$c728=function(){return"#ff00ffff"},peg$c729="Fuchsia",peg$c730=peg$literalExpectation("Fuchsia",false),peg$c731="gainsboro",peg$c732=peg$literalExpectation("gainsboro",false),peg$c733=function(){return"#dcdcdcff"},peg$c734="Gainsboro",peg$c735=peg$literalExpectation("Gainsboro",false),peg$c736="ghostwhite",peg$c737=peg$literalExpectation("ghostwhite",false),peg$c738=function(){return"#f8f8ffff"},peg$c739="GhostWhite",peg$c740=peg$literalExpectation("GhostWhite",false),peg$c741="goldenrod",peg$c742=peg$literalExpectation("goldenrod",false),peg$c743=function(){return"#daa520ff"},peg$c744="GoldenRod",peg$c745=peg$literalExpectation("GoldenRod",false),peg$c746="gold",peg$c747=peg$literalExpectation("gold",false),peg$c748=function(){return"#ffd700ff"},peg$c749="Gold",peg$c750=peg$literalExpectation("Gold",false),peg$c751="gray",peg$c752=peg$literalExpectation("gray",false),peg$c753=function(){return"#808080ff"},peg$c754="Gray",peg$c755=peg$literalExpectation("Gray",false),peg$c756="grey",peg$c757=peg$literalExpectation("grey",false),peg$c758="Grey",peg$c759=peg$literalExpectation("Grey",false),peg$c760="greenyellow",peg$c761=peg$literalExpectation("greenyellow",false),peg$c762=function(){return"#adff2fff"},peg$c763="GreenYellow",peg$c764=peg$literalExpectation("GreenYellow",false),peg$c765="green",peg$c766=peg$literalExpectation("green",false),peg$c767=function(){return"#008000ff"},peg$c768="Green",peg$c769=peg$literalExpectation("Green",false),peg$c770="honeydew",peg$c771=peg$literalExpectation("honeydew",false),peg$c772=function(){return"#f0fff0ff"},peg$c773="HoneyDew",peg$c774=peg$literalExpectation("HoneyDew",false),peg$c775="hotpink",peg$c776=peg$literalExpectation("hotpink",false),peg$c777=function(){return"#ff69b4ff"},peg$c778="HotPink",peg$c779=peg$literalExpectation("HotPink",false),peg$c780="indianred",peg$c781=peg$literalExpectation("indianred",false),peg$c782=function(){return"#cd5c5cff"},peg$c783="IndianRed",peg$c784=peg$literalExpectation("IndianRed",false),peg$c785="indigo",peg$c786=peg$literalExpectation("indigo",false),peg$c787=function(){return"#4b0082ff"},peg$c788="Indigo",peg$c789=peg$literalExpectation("Indigo",false),peg$c790="ivory",peg$c791=peg$literalExpectation("ivory",false),peg$c792=function(){return"#fffff0ff"},peg$c793="Ivory",peg$c794=peg$literalExpectation("Ivory",false),peg$c795="khaki",peg$c796=peg$literalExpectation("khaki",false),peg$c797=function(){return"#f0e68cff"},peg$c798="Khaki",peg$c799=peg$literalExpectation("Khaki",false),peg$c800="lavenderblush",peg$c801=peg$literalExpectation("lavenderblush",false),peg$c802=function(){return"#fff0f5ff"},peg$c803="LavenderBlush",peg$c804=peg$literalExpectation("LavenderBlush",false),peg$c805="lavender",peg$c806=peg$literalExpectation("lavender",false),peg$c807=function(){return"#e6e6faff"},peg$c808="Lavender",peg$c809=peg$literalExpectation("Lavender",false),peg$c810="lawngreen",peg$c811=peg$literalExpectation("lawngreen",false),peg$c812=function(){return"#7cfc00ff"},peg$c813="LawnGreen",peg$c814=peg$literalExpectation("LawnGreen",false),peg$c815="lemonchiffon",peg$c816=peg$literalExpectation("lemonchiffon",false),peg$c817=function(){return"#fffacdff"},peg$c818="LemonChiffon",peg$c819=peg$literalExpectation("LemonChiffon",false),peg$c820="lightblue",peg$c821=peg$literalExpectation("lightblue",false),peg$c822=function(){return"#add8e6ff"},peg$c823="LightBlue",peg$c824=peg$literalExpectation("LightBlue",false),peg$c825="lightcoral",peg$c826=peg$literalExpectation("lightcoral",false),peg$c827=function(){return"#f08080ff"},peg$c828="LightCoral",peg$c829=peg$literalExpectation("LightCoral",false),peg$c830="lightcyan",peg$c831=peg$literalExpectation("lightcyan",false),peg$c832=function(){return"#e0ffffff"},peg$c833="LightCyan",peg$c834=peg$literalExpectation("LightCyan",false),peg$c835="lightgoldenrodyellow",peg$c836=peg$literalExpectation("lightgoldenrodyellow",false),peg$c837=function(){return"#fafad2ff"},peg$c838="LightGoldenRodYellow",peg$c839=peg$literalExpectation("LightGoldenRodYellow",false),peg$c840="lightgray",peg$c841=peg$literalExpectation("lightgray",false),peg$c842=function(){return"#d3d3d3ff"},peg$c843="LightGray",peg$c844=peg$literalExpectation("LightGray",false),peg$c845="lightgrey",peg$c846=peg$literalExpectation("lightgrey",false),peg$c847="LightGrey",peg$c848=peg$literalExpectation("LightGrey",false),peg$c849="lightgreen",peg$c850=peg$literalExpectation("lightgreen",false),peg$c851=function(){return"#90ee90ff"},peg$c852="LightGreen",peg$c853=peg$literalExpectation("LightGreen",false),peg$c854="lightpink",peg$c855=peg$literalExpectation("lightpink",false),peg$c856=function(){return"#ffb6c1ff"},peg$c857="LightPink",peg$c858=peg$literalExpectation("LightPink",false),peg$c859="lightsalmon",peg$c860=peg$literalExpectation("lightsalmon",false),peg$c861=function(){return"#ffa07aff"},peg$c862="LightSalmon",peg$c863=peg$literalExpectation("LightSalmon",false),peg$c864="lightseagreen",peg$c865=peg$literalExpectation("lightseagreen",false),peg$c866=function(){return"#20b2aaff"},peg$c867="LightSeaGreen",peg$c868=peg$literalExpectation("LightSeaGreen",false),peg$c869="lightskyblue",peg$c870=peg$literalExpectation("lightskyblue",false),peg$c871=function(){return"#87cefaff"},peg$c872="LightSkyBlue",peg$c873=peg$literalExpectation("LightSkyBlue",false),peg$c874="lightslategray",peg$c875=peg$literalExpectation("lightslategray",false),peg$c876=function(){return"#778899ff"},peg$c877="LightSlateGray",peg$c878=peg$literalExpectation("LightSlateGray",false),peg$c879="lightslategrey",peg$c880=peg$literalExpectation("lightslategrey",false),peg$c881="LightSlateGrey",peg$c882=peg$literalExpectation("LightSlateGrey",false),peg$c883="lightsteelblue",peg$c884=peg$literalExpectation("lightsteelblue",false),peg$c885=function(){return"#b0c4deff"},peg$c886="LightSteelBlue",peg$c887=peg$literalExpectation("LightSteelBlue",false),peg$c888="lightyellow",peg$c889=peg$literalExpectation("lightyellow",false),peg$c890=function(){return"#ffffe0ff"},peg$c891="LightYellow",peg$c892=peg$literalExpectation("LightYellow",false),peg$c893="limegreen",peg$c894=peg$literalExpectation("limegreen",false),peg$c895=function(){return"#32cd32ff"},peg$c896="LimeGreen",peg$c897=peg$literalExpectation("LimeGreen",false),peg$c898="lime",peg$c899=peg$literalExpectation("lime",false),peg$c900=function(){return"#00ff00ff"},peg$c901="Lime",peg$c902=peg$literalExpectation("Lime",false),peg$c903="linen",peg$c904=peg$literalExpectation("linen",false),peg$c905=function(){return"#faf0e6ff"},peg$c906="Linen",peg$c907=peg$literalExpectation("Linen",false),peg$c908="magenta",peg$c909=peg$literalExpectation("magenta",false),peg$c910="Magenta",peg$c911=peg$literalExpectation("Magenta",false),peg$c912="maroon",peg$c913=peg$literalExpectation("maroon",false),peg$c914=function(){return"#800000ff"},peg$c915="Maroon",peg$c916=peg$literalExpectation("Maroon",false),peg$c917="mediumaquamarine",peg$c918=peg$literalExpectation("mediumaquamarine",false),peg$c919=function(){return"#66cdaaff"},peg$c920="MediumAquaMarine",peg$c921=peg$literalExpectation("MediumAquaMarine",false),peg$c922="mediumblue",peg$c923=peg$literalExpectation("mediumblue",false),peg$c924=function(){return"#0000cdff"},peg$c925="MediumBlue",peg$c926=peg$literalExpectation("MediumBlue",false),peg$c927="mediumorchid",peg$c928=peg$literalExpectation("mediumorchid",false),peg$c929=function(){return"#ba55d3ff"},peg$c930="MediumOrchid",peg$c931=peg$literalExpectation("MediumOrchid",false),peg$c932="mediumpurple",peg$c933=peg$literalExpectation("mediumpurple",false),peg$c934=function(){return"#9370d8ff"},peg$c935="MediumPurple",peg$c936=peg$literalExpectation("MediumPurple",false),peg$c937="mediumseagreen",peg$c938=peg$literalExpectation("mediumseagreen",false),peg$c939=function(){return"#3cb371ff"},peg$c940="MediumSeaGreen",peg$c941=peg$literalExpectation("MediumSeaGreen",false),peg$c942="mediumslateblue",peg$c943=peg$literalExpectation("mediumslateblue",false),peg$c944=function(){return"#7b68eeff"},peg$c945="MediumSlateBlue",peg$c946=peg$literalExpectation("MediumSlateBlue",false),peg$c947="mediumspringgreen",peg$c948=peg$literalExpectation("mediumspringgreen",false),peg$c949=function(){return"#00fa9aff"},peg$c950="MediumSpringGreen",peg$c951=peg$literalExpectation("MediumSpringGreen",false),peg$c952="mediumturquoise",peg$c953=peg$literalExpectation("mediumturquoise",false),peg$c954=function(){return"#48d1ccff"},peg$c955="MediumTurquoise",peg$c956=peg$literalExpectation("MediumTurquoise",false),peg$c957="mediumvioletred",peg$c958=peg$literalExpectation("mediumvioletred",false),peg$c959=function(){return"#c71585ff"},peg$c960="MediumVioletRed",peg$c961=peg$literalExpectation("MediumVioletRed",false),peg$c962="midnightblue",peg$c963=peg$literalExpectation("midnightblue",false),peg$c964=function(){return"#191970ff"},peg$c965="MidnightBlue",peg$c966=peg$literalExpectation("MidnightBlue",false),peg$c967="mintcream",peg$c968=peg$literalExpectation("mintcream",false),peg$c969=function(){return"#f5fffaff"},peg$c970="MintCream",peg$c971=peg$literalExpectation("MintCream",false),peg$c972="mistyrose",peg$c973=peg$literalExpectation("mistyrose",false),peg$c974=function(){return"#ffe4e1ff"},peg$c975="MistyRose",peg$c976=peg$literalExpectation("MistyRose",false),peg$c977="moccasin",peg$c978=peg$literalExpectation("moccasin",false),peg$c979=function(){return"#ffe4b5ff"},peg$c980="Moccasin",peg$c981=peg$literalExpectation("Moccasin",false),peg$c982="navajowhite",peg$c983=peg$literalExpectation("navajowhite",false),peg$c984=function(){return"#ffdeadff"},peg$c985="NavajoWhite",peg$c986=peg$literalExpectation("NavajoWhite",false),peg$c987="navy",peg$c988=peg$literalExpectation("navy",false),peg$c989=function(){return"#000080ff"},peg$c990="Navy",peg$c991=peg$literalExpectation("Navy",false),peg$c992="oldlace",peg$c993=peg$literalExpectation("oldlace",false),peg$c994=function(){return"#fdf5e6ff"},peg$c995="OldLace",peg$c996=peg$literalExpectation("OldLace",false),peg$c997="olivedrab",peg$c998=peg$literalExpectation("olivedrab",false),peg$c999=function(){return"#6b8e23ff"},peg$c1000="OliveDrab",peg$c1001=peg$literalExpectation("OliveDrab",false),peg$c1002="olive",peg$c1003=peg$literalExpectation("olive",false),peg$c1004=function(){return"#808000ff"},peg$c1005="Olive",peg$c1006=peg$literalExpectation("Olive",false),peg$c1007="orangered",peg$c1008=peg$literalExpectation("orangered",false),peg$c1009=function(){return"#ff4500ff"},peg$c1010="OrangeRed",peg$c1011=peg$literalExpectation("OrangeRed",false),peg$c1012="orange",peg$c1013=peg$literalExpectation("orange",false),peg$c1014=function(){return"#ffa500ff"},peg$c1015="Orange",peg$c1016=peg$literalExpectation("Orange",false),peg$c1017="orchid",peg$c1018=peg$literalExpectation("orchid",false),peg$c1019=function(){return"#da70d6ff"},peg$c1020="Orchid",peg$c1021=peg$literalExpectation("Orchid",false),peg$c1022="palegoldenrod",peg$c1023=peg$literalExpectation("palegoldenrod",false),peg$c1024=function(){return"#eee8aaff"},peg$c1025="PaleGoldenRod",peg$c1026=peg$literalExpectation("PaleGoldenRod",false),peg$c1027="palegreen",peg$c1028=peg$literalExpectation("palegreen",false),peg$c1029=function(){return"#98fb98ff"},peg$c1030="PaleGreen",peg$c1031=peg$literalExpectation("PaleGreen",false),peg$c1032="paleturquoise",peg$c1033=peg$literalExpectation("paleturquoise",false),peg$c1034=function(){return"#afeeeeff"},peg$c1035="PaleTurquoise",peg$c1036=peg$literalExpectation("PaleTurquoise",false),peg$c1037="palevioletred",peg$c1038=peg$literalExpectation("palevioletred",false),peg$c1039=function(){return"#d87093ff"},peg$c1040="PaleVioletRed",peg$c1041=peg$literalExpectation("PaleVioletRed",false),peg$c1042="papayawhip",peg$c1043=peg$literalExpectation("papayawhip",false),peg$c1044=function(){return"#ffefd5ff"},peg$c1045="PapayaWhip",peg$c1046=peg$literalExpectation("PapayaWhip",false),peg$c1047="peachpuff",peg$c1048=peg$literalExpectation("peachpuff",false),peg$c1049=function(){return"#ffdab9ff"},peg$c1050="PeachPuff",peg$c1051=peg$literalExpectation("PeachPuff",false),peg$c1052="peru",peg$c1053=peg$literalExpectation("peru",false),peg$c1054=function(){return"#cd853fff"},peg$c1055="Peru",peg$c1056=peg$literalExpectation("Peru",false),peg$c1057="pink",peg$c1058=peg$literalExpectation("pink",false),peg$c1059=function(){return"#ffc0cbff"},peg$c1060="Pink",peg$c1061=peg$literalExpectation("Pink",false),peg$c1062="plum",peg$c1063=peg$literalExpectation("plum",false),peg$c1064=function(){return"#dda0ddff"},peg$c1065="Plum",peg$c1066=peg$literalExpectation("Plum",false),peg$c1067="powderblue",peg$c1068=peg$literalExpectation("powderblue",false),peg$c1069=function(){return"#b0e0e6ff"},peg$c1070="PowderBlue",peg$c1071=peg$literalExpectation("PowderBlue",false),peg$c1072="purple",peg$c1073=peg$literalExpectation("purple",false),peg$c1074=function(){return"#800080ff"},peg$c1075="Purple",peg$c1076=peg$literalExpectation("Purple",false),peg$c1077="red",peg$c1078=peg$literalExpectation("red",false),peg$c1079=function(){return"#ff0000ff"},peg$c1080="Red",peg$c1081=peg$literalExpectation("Red",false),peg$c1082="rosybrown",peg$c1083=peg$literalExpectation("rosybrown",false),peg$c1084=function(){return"#bc8f8fff"},peg$c1085="RosyBrown",peg$c1086=peg$literalExpectation("RosyBrown",false),peg$c1087="royalblue",peg$c1088=peg$literalExpectation("royalblue",false),peg$c1089=function(){return"#4169e1ff"},peg$c1090="RoyalBlue",peg$c1091=peg$literalExpectation("RoyalBlue",false),peg$c1092="saddlebrown",peg$c1093=peg$literalExpectation("saddlebrown",false),peg$c1094=function(){return"#8b4513ff"},peg$c1095="SaddleBrown",peg$c1096=peg$literalExpectation("SaddleBrown",false),peg$c1097="salmon",peg$c1098=peg$literalExpectation("salmon",false),peg$c1099=function(){return"#fa8072ff"},peg$c1100="Salmon",peg$c1101=peg$literalExpectation("Salmon",false),peg$c1102="sandybrown",peg$c1103=peg$literalExpectation("sandybrown",false),peg$c1104=function(){return"#f4a460ff"},peg$c1105="SandyBrown",peg$c1106=peg$literalExpectation("SandyBrown",false),peg$c1107="seagreen",peg$c1108=peg$literalExpectation("seagreen",false),peg$c1109=function(){return"#2e8b57ff"},peg$c1110="SeaGreen",peg$c1111=peg$literalExpectation("SeaGreen",false),peg$c1112="seashell",peg$c1113=peg$literalExpectation("seashell",false),peg$c1114=function(){return"#fff5eeff"},peg$c1115="SeaShell",peg$c1116=peg$literalExpectation("SeaShell",false),peg$c1117="sienna",peg$c1118=peg$literalExpectation("sienna",false),peg$c1119=function(){return"#a0522dff"},peg$c1120="Sienna",peg$c1121=peg$literalExpectation("Sienna",false),peg$c1122="silver",peg$c1123=peg$literalExpectation("silver",false),peg$c1124=function(){return"#c0c0c0ff"},peg$c1125="Silver",peg$c1126=peg$literalExpectation("Silver",false),peg$c1127="skyblue",peg$c1128=peg$literalExpectation("skyblue",false),peg$c1129=function(){return"#87ceebff"},peg$c1130="SkyBlue",peg$c1131=peg$literalExpectation("SkyBlue",false),peg$c1132="slateblue",peg$c1133=peg$literalExpectation("slateblue",false),peg$c1134=function(){return"#6a5acdff"},peg$c1135="SlateBlue",peg$c1136=peg$literalExpectation("SlateBlue",false),peg$c1137="slategray",peg$c1138=peg$literalExpectation("slategray",false),peg$c1139=function(){return"#708090ff"},peg$c1140="SlateGray",peg$c1141=peg$literalExpectation("SlateGray",false),peg$c1142="slategrey",peg$c1143=peg$literalExpectation("slategrey",false),peg$c1144="SlateGrey",peg$c1145=peg$literalExpectation("SlateGrey",false),peg$c1146="snow",peg$c1147=peg$literalExpectation("snow",false),peg$c1148=function(){return"#fffafaff"},peg$c1149="Snow",peg$c1150=peg$literalExpectation("Snow",false),peg$c1151="springgreen",peg$c1152=peg$literalExpectation("springgreen",false),peg$c1153=function(){return"#00ff7fff"},peg$c1154="SpringGreen",peg$c1155=peg$literalExpectation("SpringGreen",false),peg$c1156="steelblue",peg$c1157=peg$literalExpectation("steelblue",false),peg$c1158=function(){return"#4682b4ff"},peg$c1159="SteelBlue",peg$c1160=peg$literalExpectation("SteelBlue",false),peg$c1161="tan",peg$c1162=peg$literalExpectation("tan",false),peg$c1163=function(){return"#d2b48cff"},peg$c1164="Tan",peg$c1165=peg$literalExpectation("Tan",false),peg$c1166="teal",peg$c1167=peg$literalExpectation("teal",false),peg$c1168=function(){return"#008080ff"},peg$c1169="Teal",peg$c1170=peg$literalExpectation("Teal",false),peg$c1171="thistle",peg$c1172=peg$literalExpectation("thistle",false),peg$c1173=function(){return"#d8bfd8ff"},peg$c1174="Thistle",peg$c1175=peg$literalExpectation("Thistle",false),peg$c1176="tomato",peg$c1177=peg$literalExpectation("tomato",false),peg$c1178=function(){return"#ff6347ff"},peg$c1179="Tomato",peg$c1180=peg$literalExpectation("Tomato",false),peg$c1181="transparent",peg$c1182=peg$literalExpectation("transparent",false),peg$c1183=function(){return"#00000000"},peg$c1184="Transparent",peg$c1185=peg$literalExpectation("Transparent",false),peg$c1186="turquoise",peg$c1187=peg$literalExpectation("turquoise",false),peg$c1188=function(){return"#40e0d0ff"},peg$c1189="Turquoise",peg$c1190=peg$literalExpectation("Turquoise",false),peg$c1191="violet",peg$c1192=peg$literalExpectation("violet",false),peg$c1193=function(){return"#ee82eeff"},peg$c1194="Violet",peg$c1195=peg$literalExpectation("Violet",false),peg$c1196="wheat",peg$c1197=peg$literalExpectation("wheat",false),peg$c1198=function(){return"#f5deb3ff"},peg$c1199="Wheat",peg$c1200=peg$literalExpectation("Wheat",false),peg$c1201="whitesmoke",peg$c1202=peg$literalExpectation("whitesmoke",false),peg$c1203=function(){return"#f5f5f5ff"},peg$c1204="WhiteSmoke",peg$c1205=peg$literalExpectation("WhiteSmoke",false),peg$c1206="white",peg$c1207=peg$literalExpectation("white",false),peg$c1208=function(){return"#ffffffff"},peg$c1209="White",peg$c1210=peg$literalExpectation("White",false),peg$c1211="yellowgreen",peg$c1212=peg$literalExpectation("yellowgreen",false),peg$c1213=function(){return"#9acd32ff"},peg$c1214="YellowGreen",peg$c1215=peg$literalExpectation("YellowGreen",false),peg$c1216="yellow",peg$c1217=peg$literalExpectation("yellow",false),peg$c1218=function(){return"#ffff00ff"},peg$c1219="Yellow",peg$c1220=peg$literalExpectation("Yellow",false),peg$c1221=function(lab){return lab},peg$c1222="#",peg$c1223=peg$literalExpectation("#",false),peg$c1224=function(r,g,b){return`#${r}${r}${g}${g}${b}${b}ff`},peg$c1225=function(r1,r2,g1,g2,b1,b2){return`#${r1}${r2}${g1}${g2}${b1}${b2}ff`},peg$c1226=function(r,g,b,a){return`#${r}${r}${g}${g}${b}${b}${a}${a}`},peg$c1227=function(r1,r2,g1,g2,b1,b2,a1,a2){return`#${r1}${r2}${g1}${g2}${b1}${b2}${a1}${a2}`},peg$c1228=peg$otherExpectation("color"),peg$c1229="arc_label",peg$c1230=peg$literalExpectation("arc_label",false),peg$c1231="head_label",peg$c1232=peg$literalExpectation("head_label",false),peg$c1233="tail_label",peg$c1234=peg$literalExpectation("tail_label",false),peg$c1235=":",peg$c1236=peg$literalExpectation(":",false),peg$c1237=";",peg$c1238=peg$literalExpectation(";",false),peg$c1239=function(key,value){const node={key:key,value:value};if(options.locations){node.loc=location()}return node},peg$c1240=peg$otherExpectation("single edge color"),peg$c1241="edge-color",peg$c1242=peg$literalExpectation("edge-color",false),peg$c1243=function(v){return options.locations?{__v:v,__loc:location()}:v},peg$c1244=function(value){const raw=options.locations?value.__v:value;const node={key:"single_edge_color",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1245="edge_color",peg$c1246=peg$literalExpectation("edge_color",false),peg$c1247=peg$otherExpectation("transition line style"),peg$c1248="line-style",peg$c1249=peg$literalExpectation("line-style",false),peg$c1250=function(value){const node={key:"transition_line_style",value:value};if(options.locations){node.loc=location()}return node},peg$c1251="{",peg$c1252=peg$literalExpectation("{",false),peg$c1253="}",peg$c1254=peg$literalExpectation("}",false),peg$c1255=function(items){return items},peg$c1256="%",peg$c1257=peg$literalExpectation("%",false),peg$c1258=function(value){const node={key:"arrow probability",value:value};if(options.locations){node.loc=location()}return node},peg$c1259="milliseconds",peg$c1260=peg$literalExpectation("milliseconds",false),peg$c1261=function(){return 1},peg$c1262="millisecond",peg$c1263=peg$literalExpectation("millisecond",false),peg$c1264="msecs",peg$c1265=peg$literalExpectation("msecs",false),peg$c1266="msec",peg$c1267=peg$literalExpectation("msec",false),peg$c1268="ms",peg$c1269=peg$literalExpectation("ms",false),peg$c1270="seconds",peg$c1271=peg$literalExpectation("seconds",false),peg$c1272=function(){return 1e3},peg$c1273="second",peg$c1274=peg$literalExpectation("second",false),peg$c1275="secs",peg$c1276=peg$literalExpectation("secs",false),peg$c1277="sec",peg$c1278=peg$literalExpectation("sec",false),peg$c1279="s",peg$c1280=peg$literalExpectation("s",false),peg$c1281="minutes",peg$c1282=peg$literalExpectation("minutes",false),peg$c1283=function(){return 1e3*60},peg$c1284="minute",peg$c1285=peg$literalExpectation("minute",false),peg$c1286="mins",peg$c1287=peg$literalExpectation("mins",false),peg$c1288="min",peg$c1289=peg$literalExpectation("min",false),peg$c1290="m",peg$c1291=peg$literalExpectation("m",false),peg$c1292="hours",peg$c1293=peg$literalExpectation("hours",false),peg$c1294=function(){return 1e3*60*60},peg$c1295="hour",peg$c1296=peg$literalExpectation("hour",false),peg$c1297="hrs",peg$c1298=peg$literalExpectation("hrs",false),peg$c1299="hr",peg$c1300=peg$literalExpectation("hr",false),peg$c1301="h",peg$c1302=peg$literalExpectation("h",false),peg$c1303="days",peg$c1304=peg$literalExpectation("days",false),peg$c1305=function(){return 1e3*60*60*24},peg$c1306="day",peg$c1307=peg$literalExpectation("day",false),peg$c1308="d",peg$c1309=peg$literalExpectation("d",false),peg$c1310="weeks",peg$c1311=peg$literalExpectation("weeks",false),peg$c1312=function(){return 1e3*60*60*24*7},peg$c1313="week",peg$c1314=peg$literalExpectation("week",false),peg$c1315="wks",peg$c1316=peg$literalExpectation("wks",false),peg$c1317="wk",peg$c1318=peg$literalExpectation("wk",false),peg$c1319="w",peg$c1320=peg$literalExpectation("w",false),peg$c1321="after",peg$c1322=peg$literalExpectation("after",false),peg$c1323=function(value,timescale){return value*(timescale||1e3)},peg$c1324=function(names){return names.map(i=>i[0])},peg$c1325=peg$otherExpectation("group reference"),peg$c1326="&",peg$c1327=peg$literalExpectation("&",false),peg$c1328=function(name){return{key:"group_ref",name:name}},peg$c1329="...",peg$c1330=peg$literalExpectation("...",false),peg$c1331=function(name){const m={kind:"group",name:name,mode:"spread"};if(options.locations){m.__loc=location()}return m},peg$c1332=function(name){const m={kind:"group",name:name,mode:"nest"};if(options.locations){m.__loc=location()}return m},peg$c1333=function(name){const m={kind:"state",name:name};if(options.locations){m.__loc=location()}return m},peg$c1334=function(members){const items=members.map(m=>m[0]);const has_group=items.some(m=>m.kind==="group");const collapsed=has_group?items:items.map(m=>m.name);if(options.locations){collapsed.__member_locs=items.map(m=>m.__loc)}return collapsed},peg$c1335="+|",peg$c1336=peg$literalExpectation("+|",false),peg$c1337=function(n){const node={key:"stripe",value:parseInt(n,10)};if(options.locations){node.loc=location()}return node},peg$c1338="-|",peg$c1339=peg$literalExpectation("-|",false),peg$c1340=function(n){const node={key:"stripe",value:-1*parseInt(n,10)};if(options.locations){node.loc=location()}return node},peg$c1341="+",peg$c1342=peg$literalExpectation("+",false),peg$c1343=function(n){const node={key:"cycle",value:parseInt(n,10)};if(options.locations){node.loc=location()}return node},peg$c1344="-",peg$c1345=peg$literalExpectation("-",false),peg$c1346=function(n){const node={key:"cycle",value:-1*parseInt(n,10)};if(options.locations){node.loc=location()}return node},peg$c1347="+0",peg$c1348=peg$literalExpectation("+0",false),peg$c1349=function(){const node={key:"cycle",value:0};if(options.locations){node.loc=location()}return node},peg$c1350=function(v){return{_kind:"after",v:v}},peg$c1351=function(v){return{_kind:"action",v:v,loc:location()}},peg$c1352=function(v){return{_kind:"prob",v:v}},peg$c1353=function(v){return{_kind:"desc",v:v}},peg$c1354=function(d){return d},peg$c1355=function(pre,arrow,post,l){return options.locations?{__v:l,__loc:location()}:l},peg$c1356=function(pre,arrow,post,label,tail){const toVal=options.locations?label.__v:label;const base={kind:arrow,to:toVal};const seen={};for(const d of pre){if(seen["pre:"+d._kind]){error("duplicate "+d._kind+" decoration before arrow",location())}seen["pre:"+d._kind]=true;if(d._kind==="after"&&d.v!=null){base.r_after=d.v}if(d._kind==="action"&&d.v!=null){base.r_action=d.v;if(options.locations){base.r_action_loc=d.loc}}if(d._kind==="prob"&&d.v!=null){base.r_probability=d.v.value}if(d._kind==="desc"&&d.v!=null){base.l_desc=d.v}}for(const d of post){if(seen["post:"+d._kind]){error("duplicate "+d._kind+" decoration after arrow",location())}seen["post:"+d._kind]=true;if(d._kind==="after"&&d.v!=null){base.l_after=d.v}if(d._kind==="action"&&d.v!=null){base.l_action=d.v;if(options.locations){base.l_action_loc=d.loc}}if(d._kind==="prob"&&d.v!=null){base.l_probability=d.v.value}if(d._kind==="desc"&&d.v!=null){base.r_desc=d.v}}if(tail){base.se=tail}if(options.locations){base.loc=location();base.to_loc=label.__loc}return base},peg$c1357=function(l){return options.locations?{__v:l,__loc:location()}:l},peg$c1358=function(label,se){const fromVal=options.locations?label.__v:label;const base={key:"transition",from:fromVal};if(se){base.se=se}if(options.locations){base.loc=location();base.from_loc=label.__loc}return base},peg$c1359="dot",peg$c1360=peg$literalExpectation("dot",false),peg$c1361="circo",peg$c1362=peg$literalExpectation("circo",false),peg$c1363="fdp",peg$c1364=peg$literalExpectation("fdp",false),peg$c1365="neato",peg$c1366=peg$literalExpectation("neato",false),peg$c1367="twopi",peg$c1368=peg$literalExpectation("twopi",false),peg$c1369="state",peg$c1370=peg$literalExpectation("state",false),peg$c1371="};",peg$c1372=peg$literalExpectation("};",false),peg$c1373=function(state_items){const node={key:"default_state_config",value:state_items||[]};if(options.locations){node.loc=location()}return node},peg$c1374="start_state",peg$c1375=peg$literalExpectation("start_state",false),peg$c1376=function(state_items){const node={key:"default_start_state_config",value:state_items||[]};if(options.locations){node.loc=location()}return node},peg$c1377="end_state",peg$c1378=peg$literalExpectation("end_state",false),peg$c1379=function(state_items){const node={key:"default_end_state_config",value:state_items||[]};if(options.locations){node.loc=location()}return node},peg$c1380="active_state",peg$c1381=peg$literalExpectation("active_state",false),peg$c1382=function(state_items){const node={key:"default_active_state_config",value:state_items||[]};if(options.locations){node.loc=location()}return node},peg$c1383="terminal_state",peg$c1384=peg$literalExpectation("terminal_state",false),peg$c1385=function(state_items){const node={key:"default_terminal_state_config",value:state_items||[]};if(options.locations){node.loc=location()}return node},peg$c1386="hooked_state",peg$c1387=peg$literalExpectation("hooked_state",false),peg$c1388=function(state_items){const node={key:"default_hooked_state_config",value:state_items||[]};if(options.locations){node.loc=location()}return node},peg$c1389=peg$otherExpectation("graph default edge color"),peg$c1390=function(value){const raw=options.locations?value.__v:value;const node={key:"graph_default_edge_color",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1391="transition",peg$c1392=peg$literalExpectation("transition",false),peg$c1393=function(items){const node={key:"default_transition_config",value:items||[]};if(options.locations){node.loc=location()}return node},peg$c1394="graph",peg$c1395=peg$literalExpectation("graph",false),peg$c1396=function(items){const node={key:"default_graph_config",value:items||[]};if(options.locations){node.loc=location()}return node},peg$c1397="editor",peg$c1398=peg$literalExpectation("editor",false),peg$c1399=function(items){const node={key:"editor_config",value:items};if(options.locations){node.loc=location()}return node},peg$c1400="stochastic_run_count",peg$c1401=peg$literalExpectation("stochastic_run_count",false),peg$c1402=function(value){const node={key:"stochastic_run_count",value:parseInt(value,10)};if(options.locations){node.loc=location()}return node},peg$c1403="panels",peg$c1404=peg$literalExpectation("panels",false),peg$c1405=function(value){const node={key:"panels",value:value};if(options.locations){node.loc=location()}return node},peg$c1406="graph_layout",peg$c1407=peg$literalExpectation("graph_layout",false),peg$c1408=function(value){const node={key:"graph_layout",value:value};if(options.locations){node.loc=location()}return node},peg$c1409="start_states",peg$c1410=peg$literalExpectation("start_states",false),peg$c1411=function(value){const node={key:"start_states",value:value};if(options.locations){node.loc=location()}return node},peg$c1412="end_states",peg$c1413=peg$literalExpectation("end_states",false),peg$c1414=function(value){const node={key:"end_states",value:value};if(options.locations){node.loc=location()}return node},peg$c1415="failed_outputs",peg$c1416=peg$literalExpectation("failed_outputs",false),peg$c1417=function(value){const raw=options.locations?value.__v:value;const node={key:"failed_outputs",value:typeof raw==="string"?[raw]:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1418="graph_bg_color",peg$c1419=peg$literalExpectation("graph_bg_color",false),peg$c1420=function(value){const raw=options.locations?value.__v:value;const node={key:"graph_bg_color",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1421="allows_override",peg$c1422=peg$literalExpectation("allows_override",false),peg$c1423=function(value){const node={key:"allows_override",value:value};if(options.locations){node.loc=location()}return node},peg$c1424="allow_islands",peg$c1425=peg$literalExpectation("allow_islands",false),peg$c1426=function(value){const raw=options.locations?value.__v:value;const node={key:"allow_islands",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1427=function(){return true},peg$c1428=function(){return false},peg$c1429="with_start",peg$c1430=peg$literalExpectation("with_start",false),peg$c1431=function(){return"with_start"},peg$c1432=function(){return true},peg$c1433=function(){return false},peg$c1434=peg$otherExpectation("configuration"),peg$c1435="MIT",peg$c1436=peg$literalExpectation("MIT",false),peg$c1437="BSD 2-clause",peg$c1438=peg$literalExpectation("BSD 2-clause",false),peg$c1439="BSD 3-clause",peg$c1440=peg$literalExpectation("BSD 3-clause",false),peg$c1441="Apache 2.0",peg$c1442=peg$literalExpectation("Apache 2.0",false),peg$c1443="Mozilla 2.0",peg$c1444=peg$literalExpectation("Mozilla 2.0",false),peg$c1445="Public domain",peg$c1446=peg$literalExpectation("Public domain",false),peg$c1447="GPL v2",peg$c1448=peg$literalExpectation("GPL v2",false),peg$c1449="GPL v3",peg$c1450=peg$literalExpectation("GPL v3",false),peg$c1451="LGPL v2.1",peg$c1452=peg$literalExpectation("LGPL v2.1",false),peg$c1453="LGPL v3.0",peg$c1454=peg$literalExpectation("LGPL v3.0",false),peg$c1455="Unknown",peg$c1456=peg$literalExpectation("Unknown",false),peg$c1457=peg$otherExpectation("direction"),peg$c1458="up",peg$c1459=peg$literalExpectation("up",false),peg$c1460="right",peg$c1461=peg$literalExpectation("right",false),peg$c1462="down",peg$c1463=peg$literalExpectation("down",false),peg$c1464="left",peg$c1465=peg$literalExpectation("left",false),peg$c1466=peg$otherExpectation("hook definition (open/closed)"),peg$c1467="open",peg$c1468=peg$literalExpectation("open",false),peg$c1469="closed",peg$c1470=peg$literalExpectation("closed",false),peg$c1471="machine_author",peg$c1472=peg$literalExpectation("machine_author",false),peg$c1473=function(value){const raw=options.locations?value.__v:value;const node={key:"machine_author",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1474="machine_contributor",peg$c1475=peg$literalExpectation("machine_contributor",false),peg$c1476=function(value){const raw=options.locations?value.__v:value;const node={key:"machine_contributor",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1477="machine_comment",peg$c1478=peg$literalExpectation("machine_comment",false),peg$c1479=function(value){const raw=options.locations?value.__v:value;const node={key:"machine_comment",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1480="machine_definition",peg$c1481=peg$literalExpectation("machine_definition",false),peg$c1482=function(value){const raw=options.locations?value.__v:value;const node={key:"machine_definition",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1483="machine_name",peg$c1484=peg$literalExpectation("machine_name",false),peg$c1485=function(value){const raw=options.locations?value.__v:value;const node={key:"machine_name",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1486="npm_name",peg$c1487=peg$literalExpectation("npm_name",false),peg$c1488=function(value){const raw=options.locations?value.__v:value;const node={key:"npm_name",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1489="machine_reference",peg$c1490=peg$literalExpectation("machine_reference",false),peg$c1491=function(value){const raw=options.locations?value.__v:value;const node={key:"machine_reference",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1492="machine_version",peg$c1493=peg$literalExpectation("machine_version",false),peg$c1494=function(value){const raw=options.locations?value.__v:value;const node={key:"machine_version",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1495="machine_license",peg$c1496=peg$literalExpectation("machine_license",false),peg$c1497=function(value){const raw=options.locations?value.__v:value;const node={key:"machine_license",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1498="machine_language",peg$c1499=peg$literalExpectation("machine_language",false),peg$c1500=function(value){const raw=options.locations?value.__v:value;const node={key:"machine_language",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1501="fsl_version",peg$c1502=peg$literalExpectation("fsl_version",false),peg$c1503=function(value){const raw=options.locations?value.__v:value;const node={key:"fsl_version",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1504="theme",peg$c1505=peg$literalExpectation("theme",false),peg$c1506=function(value){const raw=options.locations?value.__v:value;const node={key:"theme",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1507="flow",peg$c1508=peg$literalExpectation("flow",false),peg$c1509=function(value){const raw=options.locations?value.__v:value;const node={key:"flow",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1510="hooks",peg$c1511=peg$literalExpectation("hooks",false),peg$c1512=function(value){const raw=options.locations?value.__v:value;const node={key:"hook_definition",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1513="dot_preamble",peg$c1514=peg$literalExpectation("dot_preamble",false),peg$c1515=function(value){const raw=options.locations?value.__v:value;const node={key:"dot_preamble",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1516="height",peg$c1517=peg$literalExpectation("height",false),peg$c1518=function(n){return{height:n}},peg$c1519=function(w,h){return{width:w,height:h}},peg$c1520=function(w){return{width:w}},peg$c1521="default_size",peg$c1522=peg$literalExpectation("default_size",false),peg$c1523=function(value){const raw=options.locations?value.__v:value;const node={key:"default_size",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1524=peg$otherExpectation("machine attribute"),peg$c1525="label",peg$c1526=peg$literalExpectation("label",false),peg$c1527=function(value){const node={key:"state-label",value:value};if(options.locations){node.loc=location()}return node},peg$c1528="color",peg$c1529=peg$literalExpectation("color",false),peg$c1530=function(value){const raw=options.locations?value.__v:value;const node={key:"color",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1531=peg$otherExpectation("text color"),peg$c1532="text-color",peg$c1533=peg$literalExpectation("text-color",false),peg$c1534=function(value){const raw=options.locations?value.__v:value;const node={key:"text-color",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1535=peg$otherExpectation("background color"),peg$c1536="background-color",peg$c1537=peg$literalExpectation("background-color",false),peg$c1538=function(value){const raw=options.locations?value.__v:value;const node={key:"background-color",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1539=peg$otherExpectation("border color"),peg$c1540="border-color",peg$c1541=peg$literalExpectation("border-color",false),peg$c1542=function(value){const raw=options.locations?value.__v:value;const node={key:"border-color",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1543=peg$otherExpectation("shape"),peg$c1544="shape",peg$c1545=peg$literalExpectation("shape",false),peg$c1546=function(value){const node={key:"shape",value:value};if(options.locations){node.loc=location()}return node},peg$c1547=peg$otherExpectation("corners"),peg$c1548="corners",peg$c1549=peg$literalExpectation("corners",false),peg$c1550=function(value){const node={key:"corners",value:value};if(options.locations){node.loc=location()}return node},peg$c1551=peg$otherExpectation("linestyle"),peg$c1552=function(value){const node={key:"line-style",value:value};if(options.locations){node.loc=location()}return node},peg$c1553="linestyle",peg$c1554=peg$literalExpectation("linestyle",false),peg$c1555=peg$otherExpectation("image"),peg$c1556="image",peg$c1557=peg$literalExpectation("image",false),peg$c1558=function(value){const node={key:"image",value:value};if(options.locations){node.loc=location()}return node},peg$c1559=peg$otherExpectation("url"),peg$c1560="url",peg$c1561=peg$literalExpectation("url",false),peg$c1562=function(value){const node={key:"url",value:value};if(options.locations){node.loc=location()}return node},peg$c1563=peg$otherExpectation("state property"),peg$c1564="property",peg$c1565=peg$literalExpectation("property",false),peg$c1566=function(name,value){const node={key:"state_property",name:name,value:value};if(options.locations){node.loc=location()}return node},peg$c1567="required",peg$c1568=peg$literalExpectation("required",false),peg$c1569=function(name,value){const node={key:"state_property",name:name,value:value,required:true};if(options.locations){node.loc=location()}return node},peg$c1570=function(n){return options.locations?{__v:n,__loc:location()}:n},peg$c1571=function(name,value){const raw=options.locations?name.__v:name;const node={key:"state_declaration",name:raw,value:value};if(options.locations){node.loc=location();node.name_loc=name.__loc}return node},peg$c1572=function(name,value){const node={key:"named_list",name:name,value:value};if(options.locations){node.loc=location();node.value_locs=value.__member_locs;delete value.__member_locs}return node},peg$c1573=function(name,value){const node={key:"named_list",name:name,value:value.name};if(options.locations){node.loc=location();node.value_locs=[value.__loc]}return node},peg$c1574=function(name){const m={name:name};if(options.locations){m.__loc=location()}return m},peg$c1575=peg$otherExpectation("hook event (enter/exit)"),peg$c1576="enter",peg$c1577=peg$literalExpectation("enter",false),peg$c1578="exit",peg$c1579=peg$literalExpectation("exit",false),peg$c1580=peg$otherExpectation("hook declaration"),peg$c1581="on",peg$c1582=peg$literalExpectation("on",false),peg$c1583="do",peg$c1584=peg$literalExpectation("do",false),peg$c1585=function(event,subject,action){const node={key:"hook_decl",event:event,subject:subject,action:action};if(subject.key==="hook_state_subject"){node.subject=subject.name;if(options.locations){node.subject_loc=subject.__loc}}if(options.locations){node.loc=location()}return node},peg$c1586=function(name){const m={key:"hook_state_subject",name:name};if(options.locations){m.__loc=location()}return m},peg$c1587=function(name,default_value){const node={key:"property_definition",name:name,default_value:default_value,required:true};if(options.locations){node.loc=location()}return node},peg$c1588=function(name){const node={key:"property_definition",name:name,required:true};if(options.locations){node.loc=location()}return node},peg$c1589=function(name,default_value){const node={key:"property_definition",name:name,default_value:default_value};if(options.locations){node.loc=location()}return node},peg$c1590=function(name){const node={key:"property_definition",name:name};if(options.locations){node.loc=location()}return node},peg$c1591="arrange",peg$c1592=peg$literalExpectation("arrange",false),peg$c1593=function(value){const node={key:"arrange_declaration",value:value};if(options.locations){node.loc=location()}return node},peg$c1594="arrange-start",peg$c1595=peg$literalExpectation("arrange-start",false),peg$c1596=function(value){const node={key:"arrange_start_declaration",value:value};if(options.locations){node.loc=location()}return node},peg$c1597="arrange-end",peg$c1598=peg$literalExpectation("arrange-end",false),peg$c1599=function(value){const node={key:"arrange_end_declaration",value:value};if(options.locations){node.loc=location()}return node},peg$c1600=peg$otherExpectation("oarrange declaration"),peg$c1601="oarrange",peg$c1602=peg$literalExpectation("oarrange",false),peg$c1603=function(value){const node={key:"oarrange_declaration",value:value};if(options.locations){node.loc=location()}return node},peg$c1604=peg$otherExpectation("farrange declaration"),peg$c1605="farrange",peg$c1606=peg$literalExpectation("farrange",false),peg$c1607=function(value){const node={key:"farrange_declaration",value:value};if(options.locations){node.loc=location()}return node},peg$c1608=peg$otherExpectation("arrange declaration"),peg$currPos=0,peg$savedPos=0,peg$posDetailsCache=[{line:1,column:1}],peg$maxFailPos=0,peg$maxFailExpected=[],peg$silentFails=0,peg$result;if("startRule"in options){if(!(options.startRule in peg$startRuleFunctions)){throw new Error("Can't start parsing from rule \""+options.startRule+'".')}peg$startRuleFunction=peg$startRuleFunctions[options.startRule]}function text(){return input.substring(peg$savedPos,peg$currPos)}function location(){return peg$computeLocation(peg$savedPos,peg$currPos)}function error(message,location){location=location!==void 0?location:peg$computeLocation(peg$savedPos,peg$currPos);throw peg$buildSimpleError(message,location)}function peg$literalExpectation(text,ignoreCase){return{type:"literal",text:text,ignoreCase:ignoreCase}}function peg$classExpectation(parts,inverted,ignoreCase){return{type:"class",parts:parts,inverted:inverted,ignoreCase:ignoreCase}}function peg$anyExpectation(){return{type:"any"}}function peg$endExpectation(){return{type:"end"}}function peg$otherExpectation(description){return{type:"other",description:description}}function peg$computePosDetails(pos){var details=peg$posDetailsCache[pos],p;if(details){return details}else{p=pos-1;while(!peg$posDetailsCache[p]){p--}details=peg$posDetailsCache[p];details={line:details.line,column:details.column};while(p<pos){if(input.charCodeAt(p)===10){details.line++;details.column=1}else{details.column++}p++}peg$posDetailsCache[pos]=details;return details}}function peg$computeLocation(startPos,endPos){var startPosDetails=peg$computePosDetails(startPos),endPosDetails=peg$computePosDetails(endPos);return{start:{offset:startPos,line:startPosDetails.line,column:startPosDetails.column},end:{offset:endPos,line:endPosDetails.line,column:endPosDetails.column}}}function peg$fail(expected){if(peg$currPos<peg$maxFailPos){return}if(peg$currPos>peg$maxFailPos){peg$maxFailPos=peg$currPos;peg$maxFailExpected=[]}peg$maxFailExpected.push(expected)}function peg$buildSimpleError(message,location){return new peg$SyntaxError(message,null,null,location)}function peg$buildStructuredError(expected,found,location){return new peg$SyntaxError(peg$SyntaxError.buildMessage(expected,found),expected,found,location)}function peg$parseDocument(){var s0,s1,s2,s3;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){s2=peg$parseTermList();if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){peg$savedPos=s0;s1=peg$c0(s2);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseTheme(){var s0;if(input.substr(peg$currPos,7)===peg$c1){s0=peg$c1;peg$currPos+=7}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c2)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,5)===peg$c3){s0=peg$c3;peg$currPos+=5}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c4)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,6)===peg$c5){s0=peg$c5;peg$currPos+=6}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c6)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,5)===peg$c7){s0=peg$c7;peg$currPos+=5}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c8)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,4)===peg$c9){s0=peg$c9;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c10)}}}}}}return s0}function peg$parseThemeOrThemeList(){var s0,s1,s2,s3,s4,s5,s6;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===91){s1=peg$c11;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c12)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){s3=[];s4=peg$currPos;s5=peg$parseTheme();if(s5!==peg$FAILED){s6=peg$parseWS();if(s6!==peg$FAILED){s5=[s5,s6];s4=s5}else{peg$currPos=s4;s4=peg$FAILED}}else{peg$currPos=s4;s4=peg$FAILED}while(s4!==peg$FAILED){s3.push(s4);s4=peg$currPos;s5=peg$parseTheme();if(s5!==peg$FAILED){s6=peg$parseWS();if(s6!==peg$FAILED){s5=[s5,s6];s4=s5}else{peg$currPos=s4;s4=peg$FAILED}}else{peg$currPos=s4;s4=peg$FAILED}}if(s3!==peg$FAILED){s4=peg$parseTheme();if(s4===peg$FAILED){s4=null}if(s4!==peg$FAILED){if(input.charCodeAt(peg$currPos)===93){s5=peg$c13;peg$currPos++}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c14)}}if(s5!==peg$FAILED){peg$savedPos=s0;s1=peg$c15(s3,s4);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseTheme();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c16(s1)}s0=s1}return s0}function peg$parseGvizShape(){var s0;if(input.substr(peg$currPos,5)===peg$c17){s0=peg$c17;peg$currPos+=5}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c18)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,7)===peg$c19){s0=peg$c19;peg$currPos+=7}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c20)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,7)===peg$c21){s0=peg$c21;peg$currPos+=7}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c22)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,4)===peg$c23){s0=peg$c23;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c24)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,6)===peg$c25){s0=peg$c25;peg$currPos+=6}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c26)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,5)===peg$c27){s0=peg$c27;peg$currPos+=5}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c28)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,3)===peg$c29){s0=peg$c29;peg$currPos+=3}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c30)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,8)===peg$c31){s0=peg$c31;peg$currPos+=8}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c32)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,9)===peg$c33){s0=peg$c33;peg$currPos+=9}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c34)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,5)===peg$c7){s0=peg$c7;peg$currPos+=5}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c8)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,7)===peg$c35){s0=peg$c35;peg$currPos+=7}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c36)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,9)===peg$c37){s0=peg$c37;peg$currPos+=9}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c38)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,13)===peg$c39){s0=peg$c39;peg$currPos+=13}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c40)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,5)===peg$c41){s0=peg$c41;peg$currPos+=5}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c42)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,8)===peg$c43){s0=peg$c43;peg$currPos+=8}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c44)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,7)===peg$c45){s0=peg$c45;peg$currPos+=7}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c46)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,8)===peg$c47){s0=peg$c47;peg$currPos+=8}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c48)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,7)===peg$c49){s0=peg$c49;peg$currPos+=7}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c50)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,12)===peg$c51){s0=peg$c51;peg$currPos+=12}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c52)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,13)===peg$c53){s0=peg$c53;peg$currPos+=13}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c54)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,13)===peg$c55){s0=peg$c55;peg$currPos+=13}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c56)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,11)===peg$c57){s0=peg$c57;peg$currPos+=11}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c58)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,12)===peg$c59){s0=peg$c59;peg$currPos+=12}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c60)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,8)===peg$c61){s0=peg$c61;peg$currPos+=8}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c62)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,8)===peg$c63){s0=peg$c63;peg$currPos+=8}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c64)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,7)===peg$c65){s0=peg$c65;peg$currPos+=7}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c66)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,7)===peg$c67){s0=peg$c67;peg$currPos+=7}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c68)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,9)===peg$c69){s0=peg$c69;peg$currPos+=9}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c70)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,4)===peg$c71){s0=peg$c71;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c72)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,6)===peg$c73){s0=peg$c73;peg$currPos+=6}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c74)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,4)===peg$c75){s0=peg$c75;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c76)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,4)===peg$c77){s0=peg$c77;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c78)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,9)===peg$c79){s0=peg$c79;peg$currPos+=9}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c80)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,8)===peg$c81){s0=peg$c81;peg$currPos+=8}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c82)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,4)===peg$c83){s0=peg$c83;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c84)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,3)===peg$c85){s0=peg$c85;peg$currPos+=3}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c86)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,6)===peg$c87){s0=peg$c87;peg$currPos+=6}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c88)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,3)===peg$c89){s0=peg$c89;peg$currPos+=3}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c90)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,9)===peg$c91){s0=peg$c91;peg$currPos+=9}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c92)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,8)===peg$c93){s0=peg$c93;peg$currPos+=8}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c94)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,3)===peg$c95){s0=peg$c95;peg$currPos+=3}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c96)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,10)===peg$c97){s0=peg$c97;peg$currPos+=10}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c98)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,3)===peg$c99){s0=peg$c99;peg$currPos+=3}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c100)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,10)===peg$c101){s0=peg$c101;peg$currPos+=10}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c102)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,15)===peg$c103){s0=peg$c103;peg$currPos+=15}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c104)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,13)===peg$c105){s0=peg$c105;peg$currPos+=13}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c106)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,14)===peg$c107){s0=peg$c107;peg$currPos+=14}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c108)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,9)===peg$c109){s0=peg$c109;peg$currPos+=9}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c110)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,8)===peg$c111){s0=peg$c111;peg$currPos+=8}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c112)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,9)===peg$c113){s0=peg$c113;peg$currPos+=9}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c114)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,9)===peg$c115){s0=peg$c115;peg$currPos+=9}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c116)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,8)===peg$c117){s0=peg$c117;peg$currPos+=8}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c118)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,7)===peg$c119){s0=peg$c119;peg$currPos+=7}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c120)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,12)===peg$c121){s0=peg$c121;peg$currPos+=12}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c122)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,11)===peg$c123){s0=peg$c123;peg$currPos+=11}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c124)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,9)===peg$c125){s0=peg$c125;peg$currPos+=9}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c126)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,6)===peg$c127){s0=peg$c127;peg$currPos+=6}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c128)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,6)===peg$c129){s0=peg$c129;peg$currPos+=6}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c130)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,9)===peg$c131){s0=peg$c131;peg$currPos+=9}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c132)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,6)===peg$c133){s0=peg$c133;peg$currPos+=6}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c134)}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return s0}function peg$parseForwardLightArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,2)===peg$c136){s0=peg$c136;peg$currPos+=2}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c137)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===8594){s1=peg$c138;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c139)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c140()}s0=s1}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c135)}}return s0}function peg$parseTwoWayLightArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,3)===peg$c142){s0=peg$c142;peg$currPos+=3}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c143)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===8596){s1=peg$c144;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c145)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c146()}s0=s1}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c141)}}return s0}function peg$parseBackLightArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,2)===peg$c148){s0=peg$c148;peg$currPos+=2}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c149)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===8592){s1=peg$c150;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c151)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c152()}s0=s1}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c147)}}return s0}function peg$parseForwardFatArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,2)===peg$c154){s0=peg$c154;peg$currPos+=2}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c155)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===8658){s1=peg$c156;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c157)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c158()}s0=s1}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c153)}}return s0}function peg$parseTwoWayFatArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,3)===peg$c160){s0=peg$c160;peg$currPos+=3}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c161)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===8660){s1=peg$c162;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c163)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c164()}s0=s1}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c159)}}return s0}function peg$parseBackFatArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,2)===peg$c166){s0=peg$c166;peg$currPos+=2}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c167)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===8656){s1=peg$c168;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c169)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c170()}s0=s1}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c165)}}return s0}function peg$parseForwardTildeArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,2)===peg$c172){s0=peg$c172;peg$currPos+=2}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c173)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===8603){s1=peg$c174;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c175)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c176()}s0=s1}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c171)}}return s0}function peg$parseTwoWayTildeArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,3)===peg$c178){s0=peg$c178;peg$currPos+=3}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c179)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===8622){s1=peg$c180;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c181)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c182()}s0=s1}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c177)}}return s0}function peg$parseBackTildeArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,2)===peg$c184){s0=peg$c184;peg$currPos+=2}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c185)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===8602){s1=peg$c186;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c187)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c188()}s0=s1}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c183)}}return s0}function peg$parseLightFatArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,4)===peg$c190){s0=peg$c190;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c191)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c192){s1=peg$c192;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c193)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c194()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c195){s1=peg$c195;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c196)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c194()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c197){s1=peg$c197;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c198)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c194()}s0=s1}}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c189)}}return s0}function peg$parseLightTildeArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,4)===peg$c200){s0=peg$c200;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c201)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c202){s1=peg$c202;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c203)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c204()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c205){s1=peg$c205;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c206)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c204()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c207){s1=peg$c207;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c208)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c204()}s0=s1}}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c199)}}return s0}function peg$parseFatLightArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,4)===peg$c210){s0=peg$c210;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c211)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c212){s1=peg$c212;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c213)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c214()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c215){s1=peg$c215;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c216)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c214()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c217){s1=peg$c217;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c218)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c214()}s0=s1}}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c209)}}return s0}function peg$parseFatTildeArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,4)===peg$c220){s0=peg$c220;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c221)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c222){s1=peg$c222;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c223)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c224()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c225){s1=peg$c225;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c226)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c224()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c227){s1=peg$c227;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c228)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c224()}s0=s1}}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c219)}}return s0}function peg$parseTildeLightArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,4)===peg$c230){s0=peg$c230;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c231)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c232){s1=peg$c232;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c233)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c234()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c235){s1=peg$c235;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c236)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c234()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c237){s1=peg$c237;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c238)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c234()}s0=s1}}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c229)}}return s0}function peg$parseTildeFatArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,4)===peg$c240){s0=peg$c240;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c241)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c242){s1=peg$c242;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c243)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c244()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c245){s1=peg$c245;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c246)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c244()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c247){s1=peg$c247;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c248)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c244()}s0=s1}}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c239)}}return s0}function peg$parseLightArrow(){var s0;peg$silentFails++;s0=peg$parseForwardLightArrow();if(s0===peg$FAILED){s0=peg$parseTwoWayLightArrow();if(s0===peg$FAILED){s0=peg$parseBackLightArrow()}}peg$silentFails--;if(s0===peg$FAILED){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c249)}}return s0}function peg$parseFatArrow(){var s0;peg$silentFails++;s0=peg$parseForwardFatArrow();if(s0===peg$FAILED){s0=peg$parseTwoWayFatArrow();if(s0===peg$FAILED){s0=peg$parseBackFatArrow()}}peg$silentFails--;if(s0===peg$FAILED){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c250)}}return s0}function peg$parseTildeArrow(){var s0;peg$silentFails++;s0=peg$parseForwardTildeArrow();if(s0===peg$FAILED){s0=peg$parseTwoWayTildeArrow();if(s0===peg$FAILED){s0=peg$parseBackTildeArrow()}}peg$silentFails--;if(s0===peg$FAILED){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c251)}}return s0}function peg$parseMixedArrow(){var s0;peg$silentFails++;s0=peg$parseLightFatArrow();if(s0===peg$FAILED){s0=peg$parseLightTildeArrow();if(s0===peg$FAILED){s0=peg$parseFatLightArrow();if(s0===peg$FAILED){s0=peg$parseFatTildeArrow();if(s0===peg$FAILED){s0=peg$parseTildeLightArrow();if(s0===peg$FAILED){s0=peg$parseTildeFatArrow()}}}}}peg$silentFails--;if(s0===peg$FAILED){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c252)}}return s0}function peg$parseArrow(){var s0;peg$silentFails++;s0=peg$parseMixedArrow();if(s0===peg$FAILED){s0=peg$parseLightArrow();if(s0===peg$FAILED){s0=peg$parseFatArrow();if(s0===peg$FAILED){s0=peg$parseTildeArrow()}}}peg$silentFails--;if(s0===peg$FAILED){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c253)}}return s0}function peg$parseBoolean(){var s0,s1;s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c254){s1=peg$c254;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c255)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c256()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c257){s1=peg$c257;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c258)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c259()}s0=s1}return s0}function peg$parseCorners(){var s0;if(input.substr(peg$currPos,7)===peg$c260){s0=peg$c260;peg$currPos+=7}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c261)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,7)===peg$c262){s0=peg$c262;peg$currPos+=7}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c263)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,5)===peg$c264){s0=peg$c264;peg$currPos+=5}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c265)}}}}return s0}function peg$parseLineStyle(){var s0;if(input.substr(peg$currPos,5)===peg$c266){s0=peg$c266;peg$currPos+=5}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c267)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,6)===peg$c268){s0=peg$c268;peg$currPos+=6}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c269)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,6)===peg$c270){s0=peg$c270;peg$currPos+=6}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c271)}}}}return s0}function peg$parseNull(){var s0,s1;s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c300){s1=peg$c300;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c301)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c302()}s0=s1;return s0}function peg$parseUndefined(){var s0,s1;s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c303){s1=peg$c303;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c304)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c305()}s0=s1;return s0}function peg$parseActionLabel(){var c,start,chunk,out,h,hv;peg$silentFails++;if(input.charCodeAt(peg$currPos)===39){start=peg$currPos;peg$currPos++;chunk=peg$currPos;out="";for(;;){c=input.charCodeAt(peg$currPos);if(c>=32&&c!==39&&c!==92){peg$currPos++;continue}if(c===39){out=out+input.substring(chunk,peg$currPos);peg$currPos++;peg$silentFails--;return out}if(c===92){out+=input.substring(chunk,peg$currPos);peg$currPos++;c=input.charCodeAt(peg$currPos);if(c===39){out+="'";peg$currPos++}else if(c===92){out+="\\";peg$currPos++}else if(c===47){out+="/";peg$currPos++}else if(c===98){out+="\b";peg$currPos++}else if(c===102){out+="\f";peg$currPos++}else if(c===110){out+="\n";peg$currPos++}else if(c===114){out+="\r";peg$currPos++}else if(c===116){out+="\t";peg$currPos++}else if(c===118){out+="\v";peg$currPos++}else if(c===117){hv=0;for(h=1;h<=4;++h){c=input.charCodeAt(peg$currPos+h);if(c>=48&&c<=57){hv=hv*16+(c-48)}else if(c>=97&&c<=102){hv=hv*16+(c-87)}else if(c>=65&&c<=70){hv=hv*16+(c-55)}else{hv=-1;break}}if(hv<0){break}out+=String.fromCharCode(hv);peg$currPos+=5}else{break}chunk=peg$currPos;continue}break}peg$currPos=start}peg$silentFails--;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c312)}return peg$FAILED}function peg$parseLineTerminator(){var s0;if(peg$c314.test(input.charAt(peg$currPos))){s0=input.charAt(peg$currPos);peg$currPos++}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c315)}}return s0}function peg$parseBlockComment(){var s0,s1,s2,s3,s4,s5;peg$silentFails++;s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c317){s1=peg$c317;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c318)}}if(s1!==peg$FAILED){s2=[];s3=peg$currPos;s4=peg$currPos;peg$silentFails++;if(input.substr(peg$currPos,2)===peg$c319){s5=peg$c319;peg$currPos+=2}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c320)}}peg$silentFails--;if(s5===peg$FAILED){s4=void 0}else{peg$currPos=s4;s4=peg$FAILED}if(s4!==peg$FAILED){if(input.length>peg$currPos){s5=input.charAt(peg$currPos);peg$currPos++}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c321)}}if(s5!==peg$FAILED){s4=[s4,s5];s3=s4}else{peg$currPos=s3;s3=peg$FAILED}}else{peg$currPos=s3;s3=peg$FAILED}while(s3!==peg$FAILED){s2.push(s3);s3=peg$currPos;s4=peg$currPos;peg$silentFails++;if(input.substr(peg$currPos,2)===peg$c319){s5=peg$c319;peg$currPos+=2}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c320)}}peg$silentFails--;if(s5===peg$FAILED){s4=void 0}else{peg$currPos=s4;s4=peg$FAILED}if(s4!==peg$FAILED){if(input.length>peg$currPos){s5=input.charAt(peg$currPos);peg$currPos++}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c321)}}if(s5!==peg$FAILED){s4=[s4,s5];s3=s4}else{peg$currPos=s3;s3=peg$FAILED}}else{peg$currPos=s3;s3=peg$FAILED}}if(s2!==peg$FAILED){if(input.substr(peg$currPos,2)===peg$c319){s3=peg$c319;peg$currPos+=2}else{s3=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c320)}}if(s3!==peg$FAILED){s1=[s1,s2,s3];s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c316)}}return s0}function peg$parseEOF(){var s0,s1;s0=peg$currPos;peg$silentFails++;if(input.length>peg$currPos){s1=input.charAt(peg$currPos);peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c321)}}peg$silentFails--;if(s1===peg$FAILED){s0=void 0}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseLineComment(){var s0,s1,s2,s3,s4,s5;peg$silentFails++;s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c323){s1=peg$c323;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c324)}}if(s1!==peg$FAILED){s2=[];s3=peg$currPos;s4=peg$currPos;peg$silentFails++;s5=peg$parseLineTerminator();peg$silentFails--;if(s5===peg$FAILED){s4=void 0}else{peg$currPos=s4;s4=peg$FAILED}if(s4!==peg$FAILED){if(input.length>peg$currPos){s5=input.charAt(peg$currPos);peg$currPos++}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c321)}}if(s5!==peg$FAILED){s4=[s4,s5];s3=s4}else{peg$currPos=s3;s3=peg$FAILED}}else{peg$currPos=s3;s3=peg$FAILED}while(s3!==peg$FAILED){s2.push(s3);s3=peg$currPos;s4=peg$currPos;peg$silentFails++;s5=peg$parseLineTerminator();peg$silentFails--;if(s5===peg$FAILED){s4=void 0}else{peg$currPos=s4;s4=peg$FAILED}if(s4!==peg$FAILED){if(input.length>peg$currPos){s5=input.charAt(peg$currPos);peg$currPos++}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c321)}}if(s5!==peg$FAILED){s4=[s4,s5];s3=s4}else{peg$currPos=s3;s3=peg$FAILED}}else{peg$currPos=s3;s3=peg$FAILED}}if(s2!==peg$FAILED){s3=peg$parseLineTerminator();if(s3===peg$FAILED){s3=peg$parseEOF()}if(s3!==peg$FAILED){s1=[s1,s2,s3];s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c322)}}return s0}function peg$parseWS(){var c,r,matched;peg$silentFails++;matched=false;for(;;){c=input.charCodeAt(peg$currPos);if(c===32||c===9||c===13||c===10||c===11){peg$currPos++;matched=true;continue}if(c!==47){break}r=peg$parseBlockComment();if(r===peg$FAILED){r=peg$parseLineComment()}if(r===peg$FAILED){break}matched=true}peg$silentFails--;if(matched){return null}if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c325)}return peg$FAILED}function peg$parseString(){var c,start,chunk,out,h,hv;peg$silentFails++;if(input.charCodeAt(peg$currPos)===34){start=peg$currPos;peg$currPos++;chunk=peg$currPos;out="";for(;;){c=input.charCodeAt(peg$currPos);if(c>=0&&c!==34&&c!==92){peg$currPos++;continue}if(c===34){out=out+input.substring(chunk,peg$currPos);peg$currPos++;peg$silentFails--;return out}if(c===92){out+=input.substring(chunk,peg$currPos);peg$currPos++;c=input.charCodeAt(peg$currPos);if(c===34){out+='"';peg$currPos++}else if(c===92){out+="\\";peg$currPos++}else if(c===47){out+="/";peg$currPos++}else if(c===98){out+="\b";peg$currPos++}else if(c===102){out+="\f";peg$currPos++}else if(c===110){out+="\n";peg$currPos++}else if(c===114){out+="\r";peg$currPos++}else if(c===116){out+="\t";peg$currPos++}else if(c===118){out+="\v";peg$currPos++}else if(c===117){hv=0;for(h=1;h<=4;++h){c=input.charCodeAt(peg$currPos+h);if(c>=48&&c<=57){hv=hv*16+(c-48)}else if(c>=97&&c<=102){hv=hv*16+(c-87)}else if(c>=65&&c<=70){hv=hv*16+(c-55)}else{hv=-1;break}}if(hv<0){break}out+=String.fromCharCode(hv);peg$currPos+=5}else{break}chunk=peg$currPos;continue}break}peg$currPos=start}peg$silentFails--;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c328)}return peg$FAILED}function peg$parseAtomLetter(){var s0;if(peg$c331.test(input.charAt(peg$currPos))){s0=input.charAt(peg$currPos);peg$currPos++}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c332)}}return s0}function peg$parseAtom(){var c,start;peg$silentFails++;c=input.charCodeAt(peg$currPos);if(c>=48&&c<=57||c>=97&&c<=122||c>=65&&c<=90||c===46||c===95||c===33||c===36||c===94||c===42||c===63||c===44||c>=128){start=peg$currPos;peg$currPos++;c=input.charCodeAt(peg$currPos);while(c>=48&&c<=57||c>=97&&c<=122||c>=65&&c<=90||c===46||c===95||c===33||c===36||c===94||c===42||c===63||c===44||c===43||c===40||c===41||c===38||c===35||c===64||c>=128){peg$currPos++;c=input.charCodeAt(peg$currPos)}peg$silentFails--;return input.substring(start,peg$currPos)}peg$silentFails--;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c333)}return peg$FAILED}function peg$parseLabel(){var s0;peg$silentFails++;s0=peg$parseAtom();if(s0===peg$FAILED){s0=peg$parseString()}peg$silentFails--;if(s0===peg$FAILED){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c335)}}return s0}function peg$parseIntegerLiteral(){var c,start;c=input.charCodeAt(peg$currPos);if(c===48){peg$currPos++;return"0"}if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c337)}if(c>=49&&c<=57){start=peg$currPos;peg$currPos++;c=input.charCodeAt(peg$currPos);while(c>=48&&c<=57){peg$currPos++;c=input.charCodeAt(peg$currPos)}if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c339)}return input.substring(start,peg$currPos)}if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c341)}return peg$FAILED}function peg$parseDecimalDigit(){var s0;if(peg$c338.test(input.charAt(peg$currPos))){s0=input.charAt(peg$currPos);peg$currPos++}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c339)}}return s0}function peg$parseNonZeroDigit(){var s0;if(peg$c340.test(input.charAt(peg$currPos))){s0=input.charAt(peg$currPos);peg$currPos++}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c341)}}return s0}function peg$parseHexDigit(){var s0;if(peg$c342.test(input.charAt(peg$currPos))){s0=input.charAt(peg$currPos);peg$currPos++}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c343)}}return s0}function peg$parseBinaryDigit(){var s0;if(peg$c344.test(input.charAt(peg$currPos))){s0=input.charAt(peg$currPos);peg$currPos++}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c345)}}return s0}function peg$parseOctalDigit(){var s0;if(peg$c346.test(input.charAt(peg$currPos))){s0=input.charAt(peg$currPos);peg$currPos++}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c347)}}return s0}function peg$parseNonNegNumber(){var s0,s1,s2,s3,s4;peg$silentFails++;s0=peg$currPos;s1=peg$parseIntegerLiteral();if(s1!==peg$FAILED){if(input.charCodeAt(peg$currPos)===46){s2=peg$c349;peg$currPos++}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c350)}}if(s2!==peg$FAILED){s3=[];s4=peg$parseDecimalDigit();while(s4!==peg$FAILED){s3.push(s4);s4=peg$parseDecimalDigit()}if(s3!==peg$FAILED){s4=peg$parseWS();if(s4===peg$FAILED){s4=null}if(s4!==peg$FAILED){peg$savedPos=s0;s1=peg$c351();s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseIntegerLiteral();if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c351();s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c348)}}return s0}function peg$parseJsNumericLiteral(){var s0,s1;peg$silentFails++;s0=peg$currPos;s1=peg$parseJsHexIntegerLiteral();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c353(s1)}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseJsBinaryIntegerLiteral();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c353(s1)}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseNonJsOctalIntegerLiteral();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c353(s1)}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseJsDecimalLiteral();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c353(s1)}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c354){s1=peg$c354;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c355)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c356()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,16)===peg$c357){s1=peg$c357;peg$currPos+=16}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c358)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c359()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c360){s1=peg$c360;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c361)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c359()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c362){s1=peg$c362;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c363)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c359()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c364){s1=peg$c364;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c365)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c359()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c366){s1=peg$c366;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c367)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c359()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c368){s1=peg$c368;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c369)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c359()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c370){s1=peg$c370;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c371)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c359()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c372){s1=peg$c372;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c373)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c374()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c375){s1=peg$c375;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c376)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c374()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c377){s1=peg$c377;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c378)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c374()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c379){s1=peg$c379;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c380)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c374()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===8734){s1=peg$c381;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c382)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c374()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c383){s1=peg$c383;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c384)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c385()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c386){s1=peg$c386;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c387)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c385()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===949){s1=peg$c388;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c389)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c385()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c390){s1=peg$c390;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c391)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c392()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c393){s1=peg$c393;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c394)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c392()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===960){s1=peg$c395;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c396)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c392()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c397){s1=peg$c397;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c398)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c399()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===69){s1=peg$c400;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c401)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c399()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===101){s1=peg$c402;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c403)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c399()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===400){s1=peg$c404;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c405)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c399()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===8455){s1=peg$c406;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c407)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c399()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c408){s1=peg$c408;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c409)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c410()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c411){s1=peg$c411;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c412)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c413()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c414){s1=peg$c414;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c415)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c416()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c417){s1=peg$c417;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c418)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c416()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c419){s1=peg$c419;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c420)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c421()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c422){s1=peg$c422;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c423)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c421()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c424){s1=peg$c424;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c425)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c426()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c427){s1=peg$c427;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c428)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c429()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c430){s1=peg$c430;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c431)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c432()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c433){s1=peg$c433;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c434)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c435()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c436){s1=peg$c436;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c437)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c438()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c439){s1=peg$c439;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c440)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c441()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c442){s1=peg$c442;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c443)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c444()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c445){s1=peg$c445;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c446)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c444()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c447){s1=peg$c447;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c448)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c444()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===981){s1=peg$c449;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c450)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c444()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===966){s1=peg$c451;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c452)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c444()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c453){s1=peg$c453;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c454)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c455()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===947){s1=peg$c456;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c457)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c455()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c458){s1=peg$c458;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c459)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c455()}s0=s1}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c352)}}return s0}function peg$parseJsDecimalLiteral(){var s0,s1,s2,s3,s4;s0=peg$currPos;s1=peg$parseJsDecimalIntegerLiteral();if(s1!==peg$FAILED){if(input.charCodeAt(peg$currPos)===46){s2=peg$c349;peg$currPos++}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c350)}}if(s2!==peg$FAILED){s3=[];s4=peg$parseDecimalDigit();while(s4!==peg$FAILED){s3.push(s4);s4=peg$parseDecimalDigit()}if(s3!==peg$FAILED){s4=peg$parseJsNExponentPart();if(s4===peg$FAILED){s4=null}if(s4!==peg$FAILED){peg$savedPos=s0;s1=peg$c351();s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===46){s1=peg$c349;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c350)}}if(s1!==peg$FAILED){s2=[];s3=peg$parseDecimalDigit();if(s3!==peg$FAILED){while(s3!==peg$FAILED){s2.push(s3);s3=peg$parseDecimalDigit()}}else{s2=peg$FAILED}if(s2!==peg$FAILED){s3=peg$parseJsNExponentPart();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){peg$savedPos=s0;s1=peg$c351();s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseJsDecimalIntegerLiteral();if(s1!==peg$FAILED){s2=peg$parseJsNExponentPart();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c351();s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}}return s0}function peg$parseJsDecimalIntegerLiteral(){var s0,s1,s2,s3;if(input.charCodeAt(peg$currPos)===48){s0=peg$c336;peg$currPos++}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c337)}}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseNonZeroDigit();if(s1!==peg$FAILED){s2=[];s3=peg$parseDecimalDigit();while(s3!==peg$FAILED){s2.push(s3);s3=peg$parseDecimalDigit()}if(s2!==peg$FAILED){s1=[s1,s2];s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}return s0}function peg$parseJsNExponentPart(){var s0,s1,s2;s0=peg$currPos;s1=peg$parseJsNExponentIndicator();if(s1!==peg$FAILED){s2=peg$parseJsNSignedInteger();if(s2!==peg$FAILED){s1=[s1,s2];s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseJsNExponentIndicator(){var s0;if(input.substr(peg$currPos,1).toLowerCase()===peg$c402){s0=input.charAt(peg$currPos);peg$currPos++}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c460)}}return s0}function peg$parseJsNSignedInteger(){var s0,s1,s2,s3;s0=peg$currPos;if(peg$c461.test(input.charAt(peg$currPos))){s1=input.charAt(peg$currPos);peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c462)}}if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){s2=[];s3=peg$parseDecimalDigit();if(s3!==peg$FAILED){while(s3!==peg$FAILED){s2.push(s3);s3=peg$parseDecimalDigit()}}else{s2=peg$FAILED}if(s2!==peg$FAILED){s1=[s1,s2];s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseJsHexIntegerLiteral(){var s0,s1,s2,s3,s4;s0=peg$currPos;if(input.substr(peg$currPos,2).toLowerCase()===peg$c463){s1=input.substr(peg$currPos,2);peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c464)}}if(s1!==peg$FAILED){s2=peg$currPos;s3=[];s4=peg$parseHexDigit();if(s4!==peg$FAILED){while(s4!==peg$FAILED){s3.push(s4);s4=peg$parseHexDigit()}}else{s3=peg$FAILED}if(s3!==peg$FAILED){s2=input.substring(s2,peg$currPos)}else{s2=s3}if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c465(s2);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseJsBinaryIntegerLiteral(){var s0,s1,s2,s3,s4;s0=peg$currPos;if(input.substr(peg$currPos,2).toLowerCase()===peg$c466){s1=input.substr(peg$currPos,2);peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c467)}}if(s1!==peg$FAILED){s2=peg$currPos;s3=[];s4=peg$parseBinaryDigit();if(s4!==peg$FAILED){while(s4!==peg$FAILED){s3.push(s4);s4=peg$parseBinaryDigit()}}else{s3=peg$FAILED}if(s3!==peg$FAILED){s2=input.substring(s2,peg$currPos)}else{s2=s3}if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c468(s2);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseNonJsOctalIntegerLiteral(){var s0,s1,s2,s3,s4;s0=peg$currPos;if(input.substr(peg$currPos,2).toLowerCase()===peg$c469){s1=input.substr(peg$currPos,2);peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c470)}}if(s1!==peg$FAILED){s2=peg$currPos;s3=[];s4=peg$parseOctalDigit();if(s4!==peg$FAILED){while(s4!==peg$FAILED){s3.push(s4);s4=peg$parseOctalDigit()}}else{s3=peg$FAILED}if(s3!==peg$FAILED){s2=input.substring(s2,peg$currPos)}else{s2=s3}if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c471(s2);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseSemVer(){var s0,s1,s2,s3,s4,s5;s0=peg$currPos;s1=peg$parseIntegerLiteral();if(s1!==peg$FAILED){if(input.charCodeAt(peg$currPos)===46){s2=peg$c349;peg$currPos++}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c350)}}if(s2!==peg$FAILED){s3=peg$parseIntegerLiteral();if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===46){s4=peg$c349;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c350)}}if(s4!==peg$FAILED){s5=peg$parseIntegerLiteral();if(s5!==peg$FAILED){peg$savedPos=s0;s1=peg$c472(s1,s3,s5);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseUrlProtocol(){var s0;if(input.substr(peg$currPos,7)===peg$c483){s0=peg$c483;peg$currPos+=7}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c484)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,8)===peg$c485){s0=peg$c485;peg$currPos+=8}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c486)}}}return s0}function peg$parseURL(){var s0,s1,s2,s3;s0=peg$currPos;s1=peg$parseUrlProtocol();if(s1!==peg$FAILED){s2=[];if(peg$c487.test(input.charAt(peg$currPos))){s3=input.charAt(peg$currPos);peg$currPos++}else{s3=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c488)}}if(s3!==peg$FAILED){while(s3!==peg$FAILED){s2.push(s3);if(peg$c487.test(input.charAt(peg$currPos))){s3=input.charAt(peg$currPos);peg$currPos++}else{s3=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c488)}}}}else{s2=peg$FAILED}if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c489();s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseSvgColorLabel(){var s0,s1;s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c490){s1=peg$c490;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c491)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c492()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c493){s1=peg$c493;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c494)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c492()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c495){s1=peg$c495;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c496)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c497()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c498){s1=peg$c498;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c499)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c497()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c500){s1=peg$c500;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c501)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c502()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c503){s1=peg$c503;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c504)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c502()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c505){s1=peg$c505;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c506)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c507()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c508){s1=peg$c508;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c509)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c507()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c510){s1=peg$c510;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c511)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c512()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c513){s1=peg$c513;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c514)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c512()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c515){s1=peg$c515;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c516)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c517()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c518){s1=peg$c518;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c519)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c517()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c520){s1=peg$c520;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c521)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c522()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c523){s1=peg$c523;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c524)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c522()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c525){s1=peg$c525;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c526)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c527()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c528){s1=peg$c528;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c529)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c527()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c530){s1=peg$c530;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c531)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c532()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c533){s1=peg$c533;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c534)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c532()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c535){s1=peg$c535;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c536)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c537()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c538){s1=peg$c538;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c539)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c537()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c540){s1=peg$c540;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c541)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c542()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c543){s1=peg$c543;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c544)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c542()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c545){s1=peg$c545;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c546)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c547()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c548){s1=peg$c548;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c549)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c547()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c550){s1=peg$c550;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c551)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c552()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c553){s1=peg$c553;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c554)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c552()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c555){s1=peg$c555;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c556)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c557()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c558){s1=peg$c558;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c559)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c557()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c560){s1=peg$c560;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c561)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c562()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c563){s1=peg$c563;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c564)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c562()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c565){s1=peg$c565;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c566)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c567()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c568){s1=peg$c568;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c569)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c567()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c570){s1=peg$c570;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c571)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c572()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c573){s1=peg$c573;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c574)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c572()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c575){s1=peg$c575;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c576)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c577()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c578){s1=peg$c578;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c579)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c577()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c580){s1=peg$c580;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c581)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c582()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c583){s1=peg$c583;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c584)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c582()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c585){s1=peg$c585;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c586)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c587()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c588){s1=peg$c588;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c589)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c587()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c590){s1=peg$c590;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c591)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c507()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c592){s1=peg$c592;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c593)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c507()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c594){s1=peg$c594;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c595)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c596()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c597){s1=peg$c597;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c598)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c596()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c599){s1=peg$c599;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c600)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c601()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c602){s1=peg$c602;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c603)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c601()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c604){s1=peg$c604;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c605)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c606()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c607){s1=peg$c607;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c608)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c606()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c609){s1=peg$c609;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c610)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c611()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c612){s1=peg$c612;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c613)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c611()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c614){s1=peg$c614;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c615)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c611()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c616){s1=peg$c616;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c617)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c611()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c618){s1=peg$c618;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c619)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c620()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c621){s1=peg$c621;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c622)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c620()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c623){s1=peg$c623;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c624)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c625()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c626){s1=peg$c626;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c627)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c625()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c628){s1=peg$c628;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c629)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c630()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c631){s1=peg$c631;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c632)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c630()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c633){s1=peg$c633;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c634)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c635()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c636){s1=peg$c636;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c637)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c635()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c638){s1=peg$c638;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c639)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c640()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c641){s1=peg$c641;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c642)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c640()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c643){s1=peg$c643;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c644)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c645()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c646){s1=peg$c646;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c647)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c645()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c648){s1=peg$c648;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c649)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c650()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c651){s1=peg$c651;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c652)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c650()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c653){s1=peg$c653;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c654)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c655()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c656){s1=peg$c656;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c657)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c655()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c658){s1=peg$c658;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c659)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c660()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c661){s1=peg$c661;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c662)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c660()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c663){s1=peg$c663;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c664)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c665()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c666){s1=peg$c666;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c667)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c665()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c668){s1=peg$c668;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c669)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c670()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c671){s1=peg$c671;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c672)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c670()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c673){s1=peg$c673;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c674)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c670()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c675){s1=peg$c675;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c676)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c670()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c677){s1=peg$c677;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c678)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c679()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c680){s1=peg$c680;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c681)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c679()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c682){s1=peg$c682;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c683)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c684()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c685){s1=peg$c685;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c686)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c684()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c687){s1=peg$c687;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c688)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c689()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c690){s1=peg$c690;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c691)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c689()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c692){s1=peg$c692;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c693)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c694()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c695){s1=peg$c695;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c696)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c694()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c697){s1=peg$c697;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c698)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c699()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c700){s1=peg$c700;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c701)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c699()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c702){s1=peg$c702;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c703)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c699()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c704){s1=peg$c704;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c705)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c699()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c706){s1=peg$c706;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c707)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c708()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c709){s1=peg$c709;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c710)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c708()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c711){s1=peg$c711;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c712)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c713()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c714){s1=peg$c714;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c715)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c713()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c716){s1=peg$c716;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c717)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c718()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c719){s1=peg$c719;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c720)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c718()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c721){s1=peg$c721;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c722)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c723()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c724){s1=peg$c724;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c725)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c723()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c726){s1=peg$c726;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c727)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c728()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c729){s1=peg$c729;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c730)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c728()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c731){s1=peg$c731;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c732)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c733()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c734){s1=peg$c734;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c735)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c733()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c736){s1=peg$c736;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c737)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c738()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c739){s1=peg$c739;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c740)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c738()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c741){s1=peg$c741;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c742)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c743()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c744){s1=peg$c744;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c745)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c743()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c746){s1=peg$c746;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c747)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c748()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c749){s1=peg$c749;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c750)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c748()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c751){s1=peg$c751;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c752)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c753()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c754){s1=peg$c754;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c755)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c753()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c756){s1=peg$c756;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c757)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c753()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c758){s1=peg$c758;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c759)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c753()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c760){s1=peg$c760;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c761)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c762()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c763){s1=peg$c763;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c764)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c762()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c765){s1=peg$c765;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c766)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c767()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c768){s1=peg$c768;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c769)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c767()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c770){s1=peg$c770;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c771)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c772()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c773){s1=peg$c773;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c774)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c772()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c775){s1=peg$c775;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c776)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c777()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c778){s1=peg$c778;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c779)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c777()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c780){s1=peg$c780;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c781)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c782()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c783){s1=peg$c783;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c784)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c782()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c785){s1=peg$c785;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c786)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c787()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c788){s1=peg$c788;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c789)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c787()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c790){s1=peg$c790;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c791)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c792()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c793){s1=peg$c793;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c794)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c792()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c795){s1=peg$c795;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c796)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c797()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c798){s1=peg$c798;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c799)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c797()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c800){s1=peg$c800;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c801)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c802()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c803){s1=peg$c803;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c804)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c802()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c805){s1=peg$c805;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c806)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c807()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c808){s1=peg$c808;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c809)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c807()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c810){s1=peg$c810;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c811)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c812()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c813){s1=peg$c813;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c814)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c812()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c815){s1=peg$c815;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c816)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c817()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c818){s1=peg$c818;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c819)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c817()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c820){s1=peg$c820;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c821)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c822()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c823){s1=peg$c823;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c824)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c822()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c825){s1=peg$c825;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c826)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c827()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c828){s1=peg$c828;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c829)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c827()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c830){s1=peg$c830;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c831)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c832()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c833){s1=peg$c833;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c834)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c832()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,20)===peg$c835){s1=peg$c835;peg$currPos+=20}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c836)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c837()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,20)===peg$c838){s1=peg$c838;peg$currPos+=20}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c839)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c837()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c840){s1=peg$c840;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c841)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c842()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c843){s1=peg$c843;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c844)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c842()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c845){s1=peg$c845;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c846)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c842()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c847){s1=peg$c847;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c848)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c842()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c849){s1=peg$c849;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c850)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c851()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c852){s1=peg$c852;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c853)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c851()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c854){s1=peg$c854;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c855)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c856()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c857){s1=peg$c857;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c858)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c856()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c859){s1=peg$c859;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c860)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c861()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c862){s1=peg$c862;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c863)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c861()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c864){s1=peg$c864;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c865)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c866()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c867){s1=peg$c867;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c868)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c866()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c869){s1=peg$c869;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c870)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c871()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c872){s1=peg$c872;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c873)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c871()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c874){s1=peg$c874;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c875)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c876()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c877){s1=peg$c877;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c878)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c876()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c879){s1=peg$c879;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c880)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c876()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c881){s1=peg$c881;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c882)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c876()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c883){s1=peg$c883;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c884)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c885()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c886){s1=peg$c886;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c887)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c885()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c888){s1=peg$c888;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c889)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c890()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c891){s1=peg$c891;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c892)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c890()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c893){s1=peg$c893;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c894)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c895()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c896){s1=peg$c896;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c897)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c895()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c898){s1=peg$c898;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c899)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c900()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c901){s1=peg$c901;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c902)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c900()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c903){s1=peg$c903;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c904)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c905()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c906){s1=peg$c906;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c907)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c905()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c908){s1=peg$c908;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c909)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c728()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c910){s1=peg$c910;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c911)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c728()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c912){s1=peg$c912;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c913)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c914()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c915){s1=peg$c915;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c916)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c914()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,16)===peg$c917){s1=peg$c917;peg$currPos+=16}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c918)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c919()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,16)===peg$c920){s1=peg$c920;peg$currPos+=16}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c921)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c919()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c922){s1=peg$c922;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c923)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c924()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c925){s1=peg$c925;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c926)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c924()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c927){s1=peg$c927;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c928)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c929()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c930){s1=peg$c930;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c931)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c929()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c932){s1=peg$c932;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c933)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c934()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c935){s1=peg$c935;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c936)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c934()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c937){s1=peg$c937;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c938)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c939()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c940){s1=peg$c940;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c941)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c939()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,15)===peg$c942){s1=peg$c942;peg$currPos+=15}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c943)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c944()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,15)===peg$c945){s1=peg$c945;peg$currPos+=15}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c946)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c944()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,17)===peg$c947){s1=peg$c947;peg$currPos+=17}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c948)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c949()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,17)===peg$c950){s1=peg$c950;peg$currPos+=17}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c951)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c949()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,15)===peg$c952){s1=peg$c952;peg$currPos+=15}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c953)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c954()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,15)===peg$c955){s1=peg$c955;peg$currPos+=15}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c956)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c954()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,15)===peg$c957){s1=peg$c957;peg$currPos+=15}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c958)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c959()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,15)===peg$c960){s1=peg$c960;peg$currPos+=15}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c961)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c959()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c962){s1=peg$c962;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c963)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c964()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c965){s1=peg$c965;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c966)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c964()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c967){s1=peg$c967;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c968)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c969()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c970){s1=peg$c970;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c971)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c969()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c972){s1=peg$c972;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c973)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c974()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c975){s1=peg$c975;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c976)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c974()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c977){s1=peg$c977;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c978)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c979()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c980){s1=peg$c980;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c981)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c979()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c982){s1=peg$c982;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c983)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c984()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c985){s1=peg$c985;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c986)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c984()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c987){s1=peg$c987;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c988)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c989()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c990){s1=peg$c990;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c991)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c989()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c992){s1=peg$c992;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c993)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c994()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c995){s1=peg$c995;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c996)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c994()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c997){s1=peg$c997;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c998)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c999()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1000){s1=peg$c1000;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1001)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c999()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c1002){s1=peg$c1002;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1003)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1004()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c1005){s1=peg$c1005;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1006)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1004()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1007){s1=peg$c1007;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1008)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1009()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1010){s1=peg$c1010;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1011)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1009()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1012){s1=peg$c1012;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1013)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1014()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1015){s1=peg$c1015;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1016)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1014()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1017){s1=peg$c1017;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1018)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1019()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1020){s1=peg$c1020;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1021)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1019()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c1022){s1=peg$c1022;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1023)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1024()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c1025){s1=peg$c1025;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1026)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1024()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1027){s1=peg$c1027;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1028)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1029()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1030){s1=peg$c1030;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1031)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1029()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c1032){s1=peg$c1032;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1033)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1034()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c1035){s1=peg$c1035;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1036)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1034()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c1037){s1=peg$c1037;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1038)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1039()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c1040){s1=peg$c1040;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1041)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1039()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c1042){s1=peg$c1042;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1043)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1044()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c1045){s1=peg$c1045;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1046)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1044()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1047){s1=peg$c1047;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1048)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1049()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1050){s1=peg$c1050;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1051)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1049()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c1052){s1=peg$c1052;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1053)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1054()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c1055){s1=peg$c1055;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1056)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1054()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c1057){s1=peg$c1057;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1058)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1059()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c1060){s1=peg$c1060;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1061)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1059()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c1062){s1=peg$c1062;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1063)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1064()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c1065){s1=peg$c1065;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1066)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1064()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c1067){s1=peg$c1067;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1068)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1069()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c1070){s1=peg$c1070;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1071)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1069()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1072){s1=peg$c1072;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1073)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1074()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1075){s1=peg$c1075;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1076)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1074()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c1077){s1=peg$c1077;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1078)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1079()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c1080){s1=peg$c1080;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1081)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1079()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1082){s1=peg$c1082;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1083)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1084()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1085){s1=peg$c1085;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1086)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1084()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1087){s1=peg$c1087;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1088)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1089()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1090){s1=peg$c1090;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1091)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1089()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c1092){s1=peg$c1092;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1093)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1094()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c1095){s1=peg$c1095;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1096)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1094()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1097){s1=peg$c1097;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1098)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1099()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1100){s1=peg$c1100;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1101)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1099()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c1102){s1=peg$c1102;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1103)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1104()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c1105){s1=peg$c1105;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1106)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1104()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c1107){s1=peg$c1107;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1108)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1109()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c1110){s1=peg$c1110;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1111)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1109()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c1112){s1=peg$c1112;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1113)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1114()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c1115){s1=peg$c1115;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1116)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1114()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1117){s1=peg$c1117;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1118)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1119()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1120){s1=peg$c1120;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1121)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1119()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1122){s1=peg$c1122;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1123)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1124()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1125){s1=peg$c1125;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1126)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1124()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c1127){s1=peg$c1127;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1128)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1129()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c1130){s1=peg$c1130;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1131)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1129()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1132){s1=peg$c1132;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1133)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1134()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1135){s1=peg$c1135;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1136)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1134()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1137){s1=peg$c1137;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1138)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1139()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1140){s1=peg$c1140;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1141)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1139()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1142){s1=peg$c1142;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1143)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1139()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1144){s1=peg$c1144;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1145)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1139()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c1146){s1=peg$c1146;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1147)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1148()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c1149){s1=peg$c1149;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1150)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1148()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c1151){s1=peg$c1151;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1152)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1153()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c1154){s1=peg$c1154;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1155)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1153()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1156){s1=peg$c1156;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1157)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1158()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1159){s1=peg$c1159;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1160)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1158()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c1161){s1=peg$c1161;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1162)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1163()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c1164){s1=peg$c1164;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1165)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1163()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c1166){s1=peg$c1166;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1167)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1168()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c1169){s1=peg$c1169;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1170)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1168()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c1171){s1=peg$c1171;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1172)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1173()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c1174){s1=peg$c1174;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1175)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1173()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1176){s1=peg$c1176;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1177)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1178()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1179){s1=peg$c1179;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1180)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1178()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c1181){s1=peg$c1181;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1182)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1183()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c1184){s1=peg$c1184;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1185)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1183()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1186){s1=peg$c1186;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1187)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1188()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1189){s1=peg$c1189;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1190)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1188()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1191){s1=peg$c1191;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1192)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1193()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1194){s1=peg$c1194;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1195)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1193()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c1196){s1=peg$c1196;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1197)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1198()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c1199){s1=peg$c1199;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1200)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1198()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c1201){s1=peg$c1201;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1202)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1203()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c1204){s1=peg$c1204;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1205)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1203()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c1206){s1=peg$c1206;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1207)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1208()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c1209){s1=peg$c1209;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1210)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1208()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c1211){s1=peg$c1211;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1212)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1213()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c1214){s1=peg$c1214;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1215)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1213()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1216){s1=peg$c1216;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1217)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1218()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1219){s1=peg$c1219;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1220)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1218()}s0=s1}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return s0}function peg$parseSvgColor(){var s0,s1,s2;s0=peg$currPos;s1=peg$parseSvgColorLabel();if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c1221(s1);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseRgb3(){var s0,s1,s2,s3,s4,s5;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===35){s1=peg$c1222;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1223)}}if(s1!==peg$FAILED){s2=peg$parseHexDigit();if(s2!==peg$FAILED){s3=peg$parseHexDigit();if(s3!==peg$FAILED){s4=peg$parseHexDigit();if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){peg$savedPos=s0;s1=peg$c1224(s2,s3,s4);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseRgb6(){var s0,s1,s2,s3,s4,s5,s6,s7,s8;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===35){s1=peg$c1222;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1223)}}if(s1!==peg$FAILED){s2=peg$parseHexDigit();if(s2!==peg$FAILED){s3=peg$parseHexDigit();if(s3!==peg$FAILED){s4=peg$parseHexDigit();if(s4!==peg$FAILED){s5=peg$parseHexDigit();if(s5!==peg$FAILED){s6=peg$parseHexDigit();if(s6!==peg$FAILED){s7=peg$parseHexDigit();if(s7!==peg$FAILED){s8=peg$parseWS();if(s8===peg$FAILED){s8=null}if(s8!==peg$FAILED){peg$savedPos=s0;s1=peg$c1225(s2,s3,s4,s5,s6,s7);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseRgba4(){var s0,s1,s2,s3,s4,s5,s6;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===35){s1=peg$c1222;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1223)}}if(s1!==peg$FAILED){s2=peg$parseHexDigit();if(s2!==peg$FAILED){s3=peg$parseHexDigit();if(s3!==peg$FAILED){s4=peg$parseHexDigit();if(s4!==peg$FAILED){s5=peg$parseHexDigit();if(s5!==peg$FAILED){s6=peg$parseWS();if(s6===peg$FAILED){s6=null}if(s6!==peg$FAILED){peg$savedPos=s0;s1=peg$c1226(s2,s3,s4,s5);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseRgba8(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===35){s1=peg$c1222;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1223)}}if(s1!==peg$FAILED){s2=peg$parseHexDigit();if(s2!==peg$FAILED){s3=peg$parseHexDigit();if(s3!==peg$FAILED){s4=peg$parseHexDigit();if(s4!==peg$FAILED){s5=peg$parseHexDigit();if(s5!==peg$FAILED){s6=peg$parseHexDigit();if(s6!==peg$FAILED){s7=peg$parseHexDigit();if(s7!==peg$FAILED){s8=peg$parseHexDigit();if(s8!==peg$FAILED){s9=peg$parseHexDigit();if(s9!==peg$FAILED){s10=peg$parseWS();if(s10===peg$FAILED){s10=null}if(s10!==peg$FAILED){peg$savedPos=s0;s1=peg$c1227(s2,s3,s4,s5,s6,s7,s8,s9);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseColor(){var s0;peg$silentFails++;s0=peg$parseSvgColor();if(s0===peg$FAILED){s0=peg$parseRgba8();if(s0===peg$FAILED){s0=peg$parseRgb6();if(s0===peg$FAILED){s0=peg$parseRgba4();if(s0===peg$FAILED){s0=peg$parseRgb3()}}}}peg$silentFails--;if(s0===peg$FAILED){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1228)}}return s0}function peg$parseArrowItemKey(){var s0;if(input.substr(peg$currPos,9)===peg$c1229){s0=peg$c1229;peg$currPos+=9}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1230)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,10)===peg$c1231){s0=peg$c1231;peg$currPos+=10}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1232)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,10)===peg$c1233){s0=peg$c1233;peg$currPos+=10}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1234)}}}}return s0}function peg$parseArrowItem(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){s2=peg$parseArrowItemKey();if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseLabel();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1239(s2,s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseSingleEdgeColor(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,10)===peg$c1241){s2=peg$c1241;peg$currPos+=10}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1242)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseColor();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1244(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,10)===peg$c1245){s2=peg$c1245;peg$currPos+=10}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1246)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseColor();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1244(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1240)}}return s0}function peg$parseTransitionLineStyle(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,10)===peg$c1248){s2=peg$c1248;peg$currPos+=10}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1249)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseLineStyle();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1250(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1247)}}return s0}function peg$parseArrowItems(){var s0,s1;s0=peg$parseSingleEdgeColor();if(s0===peg$FAILED){s0=peg$parseTransitionLineStyle();if(s0===peg$FAILED){s0=[];s1=peg$parseArrowItem();if(s1!==peg$FAILED){while(s1!==peg$FAILED){s0.push(s1);s1=peg$parseArrowItem()}}else{s0=peg$FAILED}}}return s0}function peg$parseArrowDesc(){var s0,s1,s2,s3,s4,s5;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===123){s1=peg$c1251;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1252)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){s3=peg$parseArrowItems();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){s4=peg$parseWS();if(s4===peg$FAILED){s4=null}if(s4!==peg$FAILED){if(input.charCodeAt(peg$currPos)===125){s5=peg$c1253;peg$currPos++}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1254)}}if(s5!==peg$FAILED){peg$savedPos=s0;s1=peg$c1255(s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseArrowProbability(){var s0,s1,s2;s0=peg$currPos;s1=peg$parseNonNegNumber();if(s1!==peg$FAILED){if(input.charCodeAt(peg$currPos)===37){s2=peg$c1256;peg$currPos++}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1257)}}if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c1258(s1);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}var peg$timetype_alts=[[12,peg$c1259,peg$c1260,peg$c1261,109],[11,peg$c1262,peg$c1263,peg$c1261,109],[5,peg$c1264,peg$c1265,peg$c1261,109],[4,peg$c1266,peg$c1267,peg$c1261,109],[2,peg$c1268,peg$c1269,peg$c1261,109],[7,peg$c1270,peg$c1271,peg$c1272,115],[6,peg$c1273,peg$c1274,peg$c1272,115],[4,peg$c1275,peg$c1276,peg$c1272,115],[3,peg$c1277,peg$c1278,peg$c1272,115],[1,peg$c1279,peg$c1280,peg$c1272,115],[7,peg$c1281,peg$c1282,peg$c1283,109],[6,peg$c1284,peg$c1285,peg$c1283,109],[4,peg$c1286,peg$c1287,peg$c1283,109],[3,peg$c1288,peg$c1289,peg$c1283,109],[1,peg$c1290,peg$c1291,peg$c1283,109],[5,peg$c1292,peg$c1293,peg$c1294,104],[4,peg$c1295,peg$c1296,peg$c1294,104],[3,peg$c1297,peg$c1298,peg$c1294,104],[2,peg$c1299,peg$c1300,peg$c1294,104],[1,peg$c1301,peg$c1302,peg$c1294,104],[4,peg$c1303,peg$c1304,peg$c1305,100],[3,peg$c1306,peg$c1307,peg$c1305,100],[1,peg$c1308,peg$c1309,peg$c1305,100],[5,peg$c1310,peg$c1311,peg$c1312,119],[4,peg$c1313,peg$c1314,peg$c1312,119],[3,peg$c1315,peg$c1316,peg$c1312,119],[2,peg$c1317,peg$c1318,peg$c1312,119],[1,peg$c1319,peg$c1320,peg$c1312,119]];function peg$parseTimeType(){var i,j,alt,start;var c=input.charCodeAt(peg$currPos);for(i=0;i<28;i++){alt=peg$timetype_alts[i];if(alt[4]!==c){continue}if(alt[0]!==1&&input.substr(peg$currPos,alt[0])!==alt[1]){continue}if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){for(j=0;j<i;j++){peg$fail(peg$timetype_alts[j][2])}}start=peg$currPos;peg$currPos+=alt[0];peg$savedPos=start;return alt[3]()}if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){for(j=0;j<28;j++){peg$fail(peg$timetype_alts[j][2])}}return peg$FAILED}function peg$parseArrowAfter(){var s0,s1,s2,s3,s4,s5;s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c1321){s1=peg$c1321;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1322)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2!==peg$FAILED){s3=peg$parseNonNegNumber();if(s3!==peg$FAILED){s4=peg$parseWS();if(s4===peg$FAILED){s4=null}if(s4!==peg$FAILED){s5=peg$parseTimeType();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){peg$savedPos=s0;s1=peg$c1323(s3,s5);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseLabelList(){var s0,s1,s2,s3,s4,s5,s6;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===91){s1=peg$c11;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c12)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){s3=[];s4=peg$currPos;s5=peg$parseLabel();if(s5!==peg$FAILED){s6=peg$parseWS();if(s6===peg$FAILED){s6=null}if(s6!==peg$FAILED){s5=[s5,s6];s4=s5}else{peg$currPos=s4;s4=peg$FAILED}}else{peg$currPos=s4;s4=peg$FAILED}while(s4!==peg$FAILED){s3.push(s4);s4=peg$currPos;s5=peg$parseLabel();if(s5!==peg$FAILED){s6=peg$parseWS();if(s6===peg$FAILED){s6=null}if(s6!==peg$FAILED){s5=[s5,s6];s4=s5}else{peg$currPos=s4;s4=peg$FAILED}}else{peg$currPos=s4;s4=peg$FAILED}}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===93){s4=peg$c13;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c14)}}if(s4!==peg$FAILED){peg$savedPos=s0;s1=peg$c1324(s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseLabelOrLabelList(){var s0;s0=peg$parseLabelList();if(s0===peg$FAILED){s0=peg$parseLabel()}return s0}function peg$parseGroupRef(){var s0,s1,s2,s3;peg$silentFails++;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===38){s1=peg$c1326;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1327)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){s3=peg$parseLabel();if(s3!==peg$FAILED){peg$savedPos=s0;s1=peg$c1328(s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1325)}}return s0}function peg$parseGroupMember(){var s0,s1,s2,s3,s4,s5;s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c1329){s1=peg$c1329;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1330)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){if(input.charCodeAt(peg$currPos)===38){s3=peg$c1326;peg$currPos++}else{s3=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1327)}}if(s3!==peg$FAILED){s4=peg$parseWS();if(s4===peg$FAILED){s4=null}if(s4!==peg$FAILED){s5=peg$parseLabel();if(s5!==peg$FAILED){peg$savedPos=s0;s1=peg$c1331(s5);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===38){s1=peg$c1326;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1327)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){s3=peg$parseLabel();if(s3!==peg$FAILED){peg$savedPos=s0;s1=peg$c1332(s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseLabel();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1333(s1)}s0=s1}}return s0}function peg$parseGroupMemberList(){var s0,s1,s2,s3,s4,s5,s6;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===91){s1=peg$c11;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c12)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){s3=[];s4=peg$currPos;s5=peg$parseGroupMember();if(s5!==peg$FAILED){s6=peg$parseWS();if(s6===peg$FAILED){s6=null}if(s6!==peg$FAILED){s5=[s5,s6];s4=s5}else{peg$currPos=s4;s4=peg$FAILED}}else{peg$currPos=s4;s4=peg$FAILED}while(s4!==peg$FAILED){s3.push(s4);s4=peg$currPos;s5=peg$parseGroupMember();if(s5!==peg$FAILED){s6=peg$parseWS();if(s6===peg$FAILED){s6=null}if(s6!==peg$FAILED){s5=[s5,s6];s4=s5}else{peg$currPos=s4;s4=peg$FAILED}}else{peg$currPos=s4;s4=peg$FAILED}}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===93){s4=peg$c13;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c14)}}if(s4!==peg$FAILED){peg$savedPos=s0;s1=peg$c1334(s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseStripe(){var s0,s1,s2,s3,s4,s5,s6;var cg=input.charCodeAt(peg$currPos);if(cg!==43&&cg!==45){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1336);peg$fail(peg$c1339)}return peg$FAILED}s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c1335){s1=peg$c1335;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1336)}}if(s1!==peg$FAILED){s2=peg$currPos;s3=peg$currPos;s4=peg$parseNonZeroDigit();if(s4!==peg$FAILED){s5=[];s6=peg$parseDecimalDigit();while(s6!==peg$FAILED){s5.push(s6);s6=peg$parseDecimalDigit()}if(s5!==peg$FAILED){s4=[s4,s5];s3=s4}else{peg$currPos=s3;s3=peg$FAILED}}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=input.substring(s2,peg$currPos)}else{s2=s3}if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c1337(s2);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c1338){s1=peg$c1338;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1339)}}if(s1!==peg$FAILED){s2=peg$currPos;s3=peg$currPos;s4=peg$parseNonZeroDigit();if(s4!==peg$FAILED){s5=[];s6=peg$parseDecimalDigit();while(s6!==peg$FAILED){s5.push(s6);s6=peg$parseDecimalDigit()}if(s5!==peg$FAILED){s4=[s4,s5];s3=s4}else{peg$currPos=s3;s3=peg$FAILED}}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=input.substring(s2,peg$currPos)}else{s2=s3}if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c1340(s2);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}return s0}function peg$parseCycle(){var s0,s1,s2,s3,s4,s5,s6;var cg=input.charCodeAt(peg$currPos);if(cg!==43&&cg!==45){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1342);peg$fail(peg$c1345);peg$fail(peg$c1348)}return peg$FAILED}s0=peg$currPos;if(input.charCodeAt(peg$currPos)===43){s1=peg$c1341;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1342)}}if(s1!==peg$FAILED){s2=peg$currPos;s3=peg$currPos;s4=peg$parseNonZeroDigit();if(s4!==peg$FAILED){s5=[];s6=peg$parseDecimalDigit();while(s6!==peg$FAILED){s5.push(s6);s6=peg$parseDecimalDigit()}if(s5!==peg$FAILED){s4=[s4,s5];s3=s4}else{peg$currPos=s3;s3=peg$FAILED}}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=input.substring(s2,peg$currPos)}else{s2=s3}if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c1343(s2);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===45){s1=peg$c1344;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1345)}}if(s1!==peg$FAILED){s2=peg$currPos;s3=peg$currPos;s4=peg$parseNonZeroDigit();if(s4!==peg$FAILED){s5=[];s6=peg$parseDecimalDigit();while(s6!==peg$FAILED){s5.push(s6);s6=peg$parseDecimalDigit()}if(s5!==peg$FAILED){s4=[s4,s5];s3=s4}else{peg$currPos=s3;s3=peg$FAILED}}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=input.substring(s2,peg$currPos)}else{s2=s3}if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c1346(s2);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c1347){s1=peg$c1347;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1348)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1349()}s0=s1}}return s0}function peg$parseArrowTarget(){var s0;s0=peg$parseStripe();if(s0===peg$FAILED){s0=peg$parseCycle();if(s0===peg$FAILED){s0=peg$parseLabelList();if(s0===peg$FAILED){s0=peg$parseGroupRef();if(s0===peg$FAILED){s0=peg$parseLabel()}}}}return s0}function peg$parseArrowDecoration(){var s0,s1;s0=peg$currPos;s1=peg$parseArrowAfter();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1350(s1)}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseActionLabel();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1351(s1)}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseArrowProbability();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1352(s1)}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseArrowDesc();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1353(s1)}s0=s1}}}return s0}function peg$parseArrowDecorations(){var s0,s1,s2,s3;s0=[];s1=peg$currPos;s2=peg$parseArrowDecoration();if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){peg$savedPos=s1;s2=peg$c1354(s2);s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}while(s1!==peg$FAILED){s0.push(s1);s1=peg$currPos;s2=peg$parseArrowDecoration();if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){peg$savedPos=s1;s2=peg$c1354(s2);s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}}return s0}function peg$parseSubexp(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){s2=peg$parseArrowDecorations();if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){s4=peg$parseArrow();if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseArrowDecorations();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=peg$currPos;s9=peg$parseArrowTarget();if(s9!==peg$FAILED){peg$savedPos=s8;s9=peg$c1355(s2,s4,s6,s9)}s8=s9;if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){s10=peg$parseSubexp();if(s10===peg$FAILED){s10=null}if(s10!==peg$FAILED){peg$savedPos=s0;s1=peg$c1356(s2,s4,s6,s8,s10);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseExp(){var s0,s1,s2,s3,s4,s5;s0=peg$currPos;s1=peg$currPos;s2=peg$parseArrowTarget();if(s2!==peg$FAILED){peg$savedPos=s1;s2=peg$c1357(s2)}s1=s2;if(s1!==peg$FAILED){s2=peg$parseSubexp();if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s4=peg$c1237;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){peg$savedPos=s0;s1=peg$c1358(s1,s2);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseGvizLayout(){var s0;if(input.substr(peg$currPos,3)===peg$c1359){s0=peg$c1359;peg$currPos+=3}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1360)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1361){s0=peg$c1361;peg$currPos+=5}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1362)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,3)===peg$c1363){s0=peg$c1363;peg$currPos+=3}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1364)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1365){s0=peg$c1365;peg$currPos+=5}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1366)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1367){s0=peg$c1367;peg$currPos+=5}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1368)}}}}}}return s0}function peg$parseStateItems(){var s0,s1;s0=[];s1=peg$parseStateDeclarationItem();if(s1!==peg$FAILED){while(s1!==peg$FAILED){s0.push(s1);s1=peg$parseStateDeclarationItem()}}else{s0=peg$FAILED}return s0}function peg$parseConfigState(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1369){s2=peg$c1369;peg$currPos+=5}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1370)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===123){s6=peg$c1251;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1252)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=peg$parseStateItems();if(s8===peg$FAILED){s8=null}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.substr(peg$currPos,2)===peg$c1371){s10=peg$c1371;peg$currPos+=2}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1372)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1373(s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigStartState(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,11)===peg$c1374){s2=peg$c1374;peg$currPos+=11}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1375)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===123){s6=peg$c1251;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1252)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=peg$parseStateItems();if(s8===peg$FAILED){s8=null}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.substr(peg$currPos,2)===peg$c1371){s10=peg$c1371;peg$currPos+=2}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1372)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1376(s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigEndState(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,9)===peg$c1377){s2=peg$c1377;peg$currPos+=9}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1378)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===123){s6=peg$c1251;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1252)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=peg$parseStateItems();if(s8===peg$FAILED){s8=null}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.substr(peg$currPos,2)===peg$c1371){s10=peg$c1371;peg$currPos+=2}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1372)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1379(s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigActiveState(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,12)===peg$c1380){s2=peg$c1380;peg$currPos+=12}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1381)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===123){s6=peg$c1251;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1252)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=peg$parseStateItems();if(s8===peg$FAILED){s8=null}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.substr(peg$currPos,2)===peg$c1371){s10=peg$c1371;peg$currPos+=2}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1372)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1382(s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigTerminalState(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,14)===peg$c1383){s2=peg$c1383;peg$currPos+=14}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1384)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===123){s6=peg$c1251;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1252)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=peg$parseStateItems();if(s8===peg$FAILED){s8=null}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.substr(peg$currPos,2)===peg$c1371){s10=peg$c1371;peg$currPos+=2}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1372)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1385(s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigHookedState(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,12)===peg$c1386){s2=peg$c1386;peg$currPos+=12}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1387)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===123){s6=peg$c1251;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1252)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=peg$parseStateItems();if(s8===peg$FAILED){s8=null}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.substr(peg$currPos,2)===peg$c1371){s10=peg$c1371;peg$currPos+=2}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1372)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1388(s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigAnyState(){var s0;s0=peg$parseConfigState();if(s0===peg$FAILED){s0=peg$parseConfigStartState();if(s0===peg$FAILED){s0=peg$parseConfigEndState();if(s0===peg$FAILED){s0=peg$parseConfigActiveState();if(s0===peg$FAILED){s0=peg$parseConfigTerminalState();if(s0===peg$FAILED){s0=peg$parseConfigHookedState()}}}}}return s0}function peg$parseGraphDefaultEdgeColor(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,10)===peg$c1241){s2=peg$c1241;peg$currPos+=10}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1242)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseColor();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1390(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,10)===peg$c1245){s2=peg$c1245;peg$currPos+=10}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1246)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseColor();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1390(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1389)}}return s0}function peg$parseConfigStyleItems(){var s0,s1,s2;s0=peg$parseGraphDefaultEdgeColor();if(s0===peg$FAILED){s0=peg$currPos;s1=[];s2=peg$parseStateDeclarationItem();if(s2!==peg$FAILED){while(s2!==peg$FAILED){s1.push(s2);s2=peg$parseStateDeclarationItem()}}else{s1=peg$FAILED}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1255(s1)}s0=s1}return s0}function peg$parseConfigTransition(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,10)===peg$c1391){s2=peg$c1391;peg$currPos+=10}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1392)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===123){s6=peg$c1251;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1252)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=peg$parseConfigStyleItems();if(s8===peg$FAILED){s8=null}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.substr(peg$currPos,2)===peg$c1371){s10=peg$c1371;peg$currPos+=2}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1372)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1393(s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigGraph(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1394){s2=peg$c1394;peg$currPos+=5}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1395)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===123){s6=peg$c1251;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1252)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=peg$parseConfigStyleItems();if(s8===peg$FAILED){s8=null}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.substr(peg$currPos,2)===peg$c1371){s10=peg$c1371;peg$currPos+=2}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1372)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1396(s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigEditor(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,6)===peg$c1397){s2=peg$c1397;peg$currPos+=6}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1398)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===123){s6=peg$c1251;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1252)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=[];s9=peg$parseEditorConfigItem();while(s9!==peg$FAILED){s8.push(s9);s9=peg$parseEditorConfigItem()}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.substr(peg$currPos,2)===peg$c1371){s10=peg$c1371;peg$currPos+=2}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1372)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1399(s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseEditorConfigItem(){var s0;s0=peg$parseEditorStochasticRunCount();if(s0===peg$FAILED){s0=peg$parseEditorPanels()}return s0}function peg$parseEditorStochasticRunCount(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,20)===peg$c1400){s2=peg$c1400;peg$currPos+=20}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1401)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseIntegerLiteral();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1402(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseEditorPanels(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,6)===peg$c1403){s2=peg$c1403;peg$currPos+=6}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1404)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseLabelList();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1405(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigGraphLayout(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,12)===peg$c1406){s2=peg$c1406;peg$currPos+=12}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1407)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseGvizLayout();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1408(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigStartNodes(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,12)===peg$c1409){s2=peg$c1409;peg$currPos+=12}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1410)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseLabelList();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1411(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigEndNodes(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,10)===peg$c1412){s2=peg$c1412;peg$currPos+=10}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1413)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseLabelList();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1414(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigFailedOutputs(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,14)===peg$c1415){s2=peg$c1415;peg$currPos+=14}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1416)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseLabelOrLabelList();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1417(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigGraphBgColor(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,14)===peg$c1418){s2=peg$c1418;peg$currPos+=14}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1419)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseColor();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1420(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigAllowsOverride(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,15)===peg$c1421){s2=peg$c1421;peg$currPos+=15}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1422)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseOverrideT();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1423(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigAllowIslands(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,13)===peg$c1424){s2=peg$c1424;peg$currPos+=13}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1425)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseIslandsT();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1426(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseOverrideT(){var s0,s1;s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c254){s1=peg$c254;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c255)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1427()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c257){s1=peg$c257;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c258)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1428()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c303){s1=peg$c303;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c304)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c305()}s0=s1}}return s0}function peg$parseIslandsT(){var s0,s1;s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c1429){s1=peg$c1429;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1430)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1431()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c254){s1=peg$c254;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c255)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1432()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c257){s1=peg$c257;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c258)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1433()}s0=s1}}return s0}function peg$parseConfig(){var s0;peg$silentFails++;s0=peg$parseConfigGraphLayout();if(s0===peg$FAILED){s0=peg$parseConfigStartNodes();if(s0===peg$FAILED){s0=peg$parseConfigEndNodes();if(s0===peg$FAILED){s0=peg$parseConfigFailedOutputs();if(s0===peg$FAILED){s0=peg$parseConfigTransition();if(s0===peg$FAILED){s0=peg$parseConfigGraph();if(s0===peg$FAILED){s0=peg$parseConfigEditor();if(s0===peg$FAILED){s0=peg$parseConfigAnyState();if(s0===peg$FAILED){s0=peg$parseConfigGraphBgColor();if(s0===peg$FAILED){s0=peg$parseConfigAllowsOverride();if(s0===peg$FAILED){s0=peg$parseConfigAllowIslands()}}}}}}}}}}peg$silentFails--;if(s0===peg$FAILED){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1434)}}return s0}function peg$parseLicenseOrLabelOrList(){var s0,s1,s2,s3,s4;s0=peg$currPos;s1=peg$currPos;if(input.substr(peg$currPos,3)===peg$c1435){s2=peg$c1435;peg$currPos+=3}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1436)}}if(s2!==peg$FAILED){s3=peg$currPos;peg$silentFails++;s4=peg$parseAtomLetter();peg$silentFails--;if(s4===peg$FAILED){s3=void 0}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=[s2,s3];s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$currPos;if(input.substr(peg$currPos,12)===peg$c1437){s2=peg$c1437;peg$currPos+=12}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1438)}}if(s2!==peg$FAILED){s3=peg$currPos;peg$silentFails++;s4=peg$parseAtomLetter();peg$silentFails--;if(s4===peg$FAILED){s3=void 0}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=[s2,s3];s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$currPos;if(input.substr(peg$currPos,12)===peg$c1439){s2=peg$c1439;peg$currPos+=12}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1440)}}if(s2!==peg$FAILED){s3=peg$currPos;peg$silentFails++;s4=peg$parseAtomLetter();peg$silentFails--;if(s4===peg$FAILED){s3=void 0}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=[s2,s3];s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$currPos;if(input.substr(peg$currPos,10)===peg$c1441){s2=peg$c1441;peg$currPos+=10}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1442)}}if(s2!==peg$FAILED){s3=peg$currPos;peg$silentFails++;s4=peg$parseAtomLetter();peg$silentFails--;if(s4===peg$FAILED){s3=void 0}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=[s2,s3];s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$currPos;if(input.substr(peg$currPos,11)===peg$c1443){s2=peg$c1443;peg$currPos+=11}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1444)}}if(s2!==peg$FAILED){s3=peg$currPos;peg$silentFails++;s4=peg$parseAtomLetter();peg$silentFails--;if(s4===peg$FAILED){s3=void 0}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=[s2,s3];s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$currPos;if(input.substr(peg$currPos,13)===peg$c1445){s2=peg$c1445;peg$currPos+=13}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1446)}}if(s2!==peg$FAILED){s3=peg$currPos;peg$silentFails++;s4=peg$parseAtomLetter();peg$silentFails--;if(s4===peg$FAILED){s3=void 0}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=[s2,s3];s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1447){s2=peg$c1447;peg$currPos+=6}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1448)}}if(s2!==peg$FAILED){s3=peg$currPos;peg$silentFails++;s4=peg$parseAtomLetter();peg$silentFails--;if(s4===peg$FAILED){s3=void 0}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=[s2,s3];s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1449){s2=peg$c1449;peg$currPos+=6}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1450)}}if(s2!==peg$FAILED){s3=peg$currPos;peg$silentFails++;s4=peg$parseAtomLetter();peg$silentFails--;if(s4===peg$FAILED){s3=void 0}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=[s2,s3];s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1451){s2=peg$c1451;peg$currPos+=9}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1452)}}if(s2!==peg$FAILED){s3=peg$currPos;peg$silentFails++;s4=peg$parseAtomLetter();peg$silentFails--;if(s4===peg$FAILED){s3=void 0}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=[s2,s3];s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1453){s2=peg$c1453;peg$currPos+=9}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1454)}}if(s2!==peg$FAILED){s3=peg$currPos;peg$silentFails++;s4=peg$parseAtomLetter();peg$silentFails--;if(s4===peg$FAILED){s3=void 0}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=[s2,s3];s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$currPos;if(input.substr(peg$currPos,7)===peg$c1455){s2=peg$c1455;peg$currPos+=7}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1456)}}if(s2!==peg$FAILED){s3=peg$currPos;peg$silentFails++;s4=peg$parseAtomLetter();peg$silentFails--;if(s4===peg$FAILED){s3=void 0}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=[s2,s3];s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}if(s0===peg$FAILED){s0=peg$parseLabel();if(s0===peg$FAILED){s0=peg$parseLabelList()}}}}}}}}}}}}return s0}function peg$parseDirection(){var s0;peg$silentFails++;if(input.substr(peg$currPos,2)===peg$c1458){s0=peg$c1458;peg$currPos+=2}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1459)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1460){s0=peg$c1460;peg$currPos+=5}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1461)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,4)===peg$c1462){s0=peg$c1462;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1463)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,4)===peg$c1464){s0=peg$c1464;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1465)}}}}}peg$silentFails--;if(s0===peg$FAILED){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1457)}}return s0}function peg$parseHookDefinition(){var s0;peg$silentFails++;if(input.substr(peg$currPos,4)===peg$c1467){s0=peg$c1467;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1468)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,6)===peg$c1469){s0=peg$c1469;peg$currPos+=6}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1470)}}}peg$silentFails--;if(s0===peg$FAILED){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1466)}}return s0}function peg$parseMachineAuthor(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,14)===peg$c1471){s2=peg$c1471;peg$currPos+=14}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1472)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseLabelOrLabelList();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1473(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseMachineContributor(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,19)===peg$c1474){s2=peg$c1474;peg$currPos+=19}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1475)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseLabelOrLabelList();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1476(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseMachineComment(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,15)===peg$c1477){s2=peg$c1477;peg$currPos+=15}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1478)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseLabelOrLabelList();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1479(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseMachineDefinition(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,18)===peg$c1480){s2=peg$c1480;peg$currPos+=18}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1481)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseURL();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1482(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseMachineName(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,12)===peg$c1483){s2=peg$c1483;peg$currPos+=12}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1484)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseLabel();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1485(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseNpmName(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,8)===peg$c1486){s2=peg$c1486;peg$currPos+=8}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1487)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseLabel();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1488(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseMachineReference(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,17)===peg$c1489){s2=peg$c1489;peg$currPos+=17}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1490)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseLabelOrLabelList();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1491(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseMachineVersion(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,15)===peg$c1492){s2=peg$c1492;peg$currPos+=15}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1493)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseSemVer();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1494(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseMachineLicense(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,15)===peg$c1495){s2=peg$c1495;peg$currPos+=15}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1496)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseLicenseOrLabelOrList();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1497(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseMachineLanguage(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,16)===peg$c1498){s2=peg$c1498;peg$currPos+=16}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1499)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseLabel();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1500(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseFslVersion(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,11)===peg$c1501){s2=peg$c1501;peg$currPos+=11}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1502)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseSemVer();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1503(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseMachineTheme(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1504){s2=peg$c1504;peg$currPos+=5}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1505)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseThemeOrThemeList();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1506(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseMachineFlow(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,4)===peg$c1507){s2=peg$c1507;peg$currPos+=4}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1508)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseDirection();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1509(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseMachineHookDefinition(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1510){s2=peg$c1510;peg$currPos+=5}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1511)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseHookDefinition();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1512(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseDotPreamble(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,12)===peg$c1513){s2=peg$c1513;peg$currPos+=12}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1514)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseString();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1515(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseDefaultSizeVal(){var s0,s1,s2,s3;s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1516){s1=peg$c1516;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1517)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2!==peg$FAILED){s3=peg$parseNonNegNumber();if(s3!==peg$FAILED){peg$savedPos=s0;s1=peg$c1518(s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseNonNegNumber();if(s1!==peg$FAILED){s2=peg$parseNonNegNumber();if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c1519(s1,s2);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseNonNegNumber();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1520(s1)}s0=s1}}return s0}function peg$parseDefaultSize(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,12)===peg$c1521){s2=peg$c1521;peg$currPos+=12}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1522)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseDefaultSizeVal();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1523(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseMachineAttribute(){var s0;peg$silentFails++;s0=peg$parseFslVersion();if(s0===peg$FAILED){s0=peg$parseMachineName();if(s0===peg$FAILED){s0=peg$parseNpmName();if(s0===peg$FAILED){s0=peg$parseMachineAuthor();if(s0===peg$FAILED){s0=peg$parseMachineContributor();if(s0===peg$FAILED){s0=peg$parseMachineComment();if(s0===peg$FAILED){s0=peg$parseMachineDefinition();if(s0===peg$FAILED){s0=peg$parseMachineReference();if(s0===peg$FAILED){s0=peg$parseMachineVersion();if(s0===peg$FAILED){s0=peg$parseMachineLicense();if(s0===peg$FAILED){s0=peg$parseMachineLanguage();if(s0===peg$FAILED){s0=peg$parseMachineTheme();if(s0===peg$FAILED){s0=peg$parseDotPreamble();if(s0===peg$FAILED){s0=peg$parseMachineFlow();if(s0===peg$FAILED){s0=peg$parseMachineHookDefinition();if(s0===peg$FAILED){s0=peg$parseDefaultSize()}}}}}}}}}}}}}}}peg$silentFails--;if(s0===peg$FAILED){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1524)}}return s0}function peg$parsePropertyVal(){var s0;s0=peg$parseString();if(s0===peg$FAILED){s0=peg$parseBoolean();if(s0===peg$FAILED){s0=peg$parseJsNumericLiteral();if(s0===peg$FAILED){s0=peg$parseNull();if(s0===peg$FAILED){s0=peg$parseUndefined()}}}}return s0}function peg$parseSdStateLabel(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1525){s2=peg$c1525;peg$currPos+=5}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1526)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseLabel();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1527(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c335)}}return s0}function peg$parseSdStateColor(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1528){s2=peg$c1528;peg$currPos+=5}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1529)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseColor();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1530(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1228)}}return s0}function peg$parseSdStateTextColor(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,10)===peg$c1532){s2=peg$c1532;peg$currPos+=10}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1533)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseColor();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1534(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1531)}}return s0}function peg$parseSdStateBackgroundColor(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,16)===peg$c1536){s2=peg$c1536;peg$currPos+=16}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1537)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseColor();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1538(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1535)}}return s0}function peg$parseSdStateBorderColor(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,12)===peg$c1540){s2=peg$c1540;peg$currPos+=12}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1541)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseColor();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1542(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1539)}}return s0}function peg$parseSdStateShape(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1544){s2=peg$c1544;peg$currPos+=5}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1545)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseGvizShape();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1546(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1543)}}return s0}function peg$parseSdStateCorners(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,7)===peg$c1548){s2=peg$c1548;peg$currPos+=7}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1549)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseCorners();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1550(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1547)}}return s0}function peg$parseSdStateLineStyle(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,10)===peg$c1248){s2=peg$c1248;peg$currPos+=10}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1249)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseLineStyle();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1552(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,9)===peg$c1553){s2=peg$c1553;peg$currPos+=9}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1554)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseLineStyle();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1552(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1551)}}return s0}function peg$parseSdStateImage(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1556){s2=peg$c1556;peg$currPos+=5}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1557)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseString();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1558(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1555)}}return s0}function peg$parseSdStateUrl(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,3)===peg$c1560){s2=peg$c1560;peg$currPos+=3}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1561)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseString();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1562(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1559)}}return s0}function peg$parseSdStateProperty(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,8)===peg$c1564){s2=peg$c1564;peg$currPos+=8}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1565)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseAtom();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7!==peg$FAILED){s8=peg$parsePropertyVal();if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s10=peg$c1237;peg$currPos++}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1566(s6,s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,8)===peg$c1564){s2=peg$c1564;peg$currPos+=8}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1565)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseAtom();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7!==peg$FAILED){s8=peg$parsePropertyVal();if(s8!==peg$FAILED){s9=peg$parseWS();if(s9!==peg$FAILED){if(input.substr(peg$currPos,8)===peg$c1567){s10=peg$c1567;peg$currPos+=8}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1568)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s12=peg$c1237;peg$currPos++}else{s12=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s12!==peg$FAILED){s13=peg$parseWS();if(s13===peg$FAILED){s13=null}if(s13!==peg$FAILED){peg$savedPos=s0;s1=peg$c1569(s6,s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1563)}}return s0}function peg$parseStateDeclarationItem(){var s0;s0=peg$parseSdStateLabel();if(s0===peg$FAILED){s0=peg$parseSdStateColor();if(s0===peg$FAILED){s0=peg$parseSdStateTextColor();if(s0===peg$FAILED){s0=peg$parseSdStateBackgroundColor();if(s0===peg$FAILED){s0=peg$parseSdStateBorderColor();if(s0===peg$FAILED){s0=peg$parseSdStateShape();if(s0===peg$FAILED){s0=peg$parseSdStateCorners();if(s0===peg$FAILED){s0=peg$parseSdStateLineStyle();if(s0===peg$FAILED){s0=peg$parseSdStateImage();if(s0===peg$FAILED){s0=peg$parseSdStateUrl();if(s0===peg$FAILED){s0=peg$parseSdStateProperty()}}}}}}}}}}return s0}function peg$parseStateDeclarationDesc(){var s0,s1,s2,s3,s4,s5;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===123){s1=peg$c1251;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1252)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){s3=[];s4=peg$parseStateDeclarationItem();while(s4!==peg$FAILED){s3.push(s4);s4=peg$parseStateDeclarationItem()}if(s3!==peg$FAILED){s4=peg$parseWS();if(s4===peg$FAILED){s4=null}if(s4!==peg$FAILED){if(input.charCodeAt(peg$currPos)===125){s5=peg$c1253;peg$currPos++}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1254)}}if(s5!==peg$FAILED){peg$savedPos=s0;s1=peg$c1255(s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseStateDeclaration(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1369){s2=peg$c1369;peg$currPos+=5}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1370)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3!==peg$FAILED){s4=peg$currPos;s5=peg$parseGroupRef();if(s5!==peg$FAILED){peg$savedPos=s4;s5=peg$c1570(s5)}s4=s5;if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s6=peg$c1235;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=peg$parseStateDeclarationDesc();if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s10=peg$c1237;peg$currPos++}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1571(s4,s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1369){s2=peg$c1369;peg$currPos+=5}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1370)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3!==peg$FAILED){s4=peg$currPos;s5=peg$parseLabel();if(s5!==peg$FAILED){peg$savedPos=s4;s5=peg$c1570(s5)}s4=s5;if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s6=peg$c1235;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=peg$parseStateDeclarationDesc();if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s10=peg$c1237;peg$currPos++}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1571(s4,s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}return s0}function peg$parseNamedList(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.charCodeAt(peg$currPos)===38){s2=peg$c1326;peg$currPos++}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1327)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){s4=peg$parseLabel();if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s6=peg$c1235;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=peg$parseGroupMemberList();if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s10=peg$c1237;peg$currPos++}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1572(s4,s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.charCodeAt(peg$currPos)===38){s2=peg$c1326;peg$currPos++}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1327)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){s4=peg$parseLabel();if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s6=peg$c1235;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=peg$parseGroupAliasMember();if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s10=peg$c1237;peg$currPos++}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1573(s4,s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}return s0}function peg$parseGroupAliasMember(){var s0,s1;s0=peg$currPos;s1=peg$parseLabel();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1574(s1)}s0=s1;return s0}function peg$parseHookEvent(){var s0;peg$silentFails++;if(input.substr(peg$currPos,5)===peg$c1576){s0=peg$c1576;peg$currPos+=5}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1577)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,4)===peg$c1578){s0=peg$c1578;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1579)}}}peg$silentFails--;if(s0===peg$FAILED){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1575)}}return s0}function peg$parseHookDeclaration(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,2)===peg$c1581){s2=peg$c1581;peg$currPos+=2}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1582)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3!==peg$FAILED){s4=peg$parseHookEvent();if(s4!==peg$FAILED){s5=peg$parseWS();if(s5!==peg$FAILED){s6=peg$parseGroupRef();if(s6===peg$FAILED){s6=peg$parseHookStateSubject()}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7!==peg$FAILED){if(input.substr(peg$currPos,2)===peg$c1583){s8=peg$c1583;peg$currPos+=2}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1584)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9!==peg$FAILED){s10=peg$parseActionLabel();if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s12=peg$c1237;peg$currPos++}else{s12=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s12!==peg$FAILED){s13=peg$parseWS();if(s13===peg$FAILED){s13=null}if(s13!==peg$FAILED){peg$savedPos=s0;s1=peg$c1585(s4,s6,s10);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1580)}}return s0}function peg$parseHookStateSubject(){var s0,s1;s0=peg$currPos;s1=peg$parseLabel();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1586(s1)}s0=s1;return s0}function peg$parseMachineProperty(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,8)===peg$c1564){s2=peg$c1564;peg$currPos+=8}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1565)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3!==peg$FAILED){s4=peg$parseLabel();if(s4!==peg$FAILED){s5=peg$parseWS();if(s5!==peg$FAILED){if(input.substr(peg$currPos,7)===peg$c1){s6=peg$c1;peg$currPos+=7}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c2)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7!==peg$FAILED){s8=peg$parsePropertyVal();if(s8!==peg$FAILED){s9=peg$parseWS();if(s9!==peg$FAILED){if(input.substr(peg$currPos,8)===peg$c1567){s10=peg$c1567;peg$currPos+=8}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1568)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s12=peg$c1237;peg$currPos++}else{s12=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s12!==peg$FAILED){s13=peg$parseWS();if(s13===peg$FAILED){s13=null}if(s13!==peg$FAILED){peg$savedPos=s0;s1=peg$c1587(s4,s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,8)===peg$c1564){s2=peg$c1564;peg$currPos+=8}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1565)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3!==peg$FAILED){s4=peg$parseLabel();if(s4!==peg$FAILED){s5=peg$parseWS();if(s5!==peg$FAILED){if(input.substr(peg$currPos,8)===peg$c1567){s6=peg$c1567;peg$currPos+=8}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1568)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1588(s4);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,8)===peg$c1564){s2=peg$c1564;peg$currPos+=8}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1565)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3!==peg$FAILED){s4=peg$parseLabel();if(s4!==peg$FAILED){s5=peg$parseWS();if(s5!==peg$FAILED){if(input.substr(peg$currPos,7)===peg$c1){s6=peg$c1;peg$currPos+=7}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c2)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7!==peg$FAILED){s8=peg$parsePropertyVal();if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s10=peg$c1237;peg$currPos++}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1589(s4,s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,8)===peg$c1564){s2=peg$c1564;peg$currPos+=8}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1565)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3!==peg$FAILED){s4=peg$parseLabel();if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s6=peg$c1237;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){peg$savedPos=s0;s1=peg$c1590(s4);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}}}return s0}function peg$parseRegularArrangeDeclaration(){var s0,s1,s2,s3,s4,s5,s6;s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c1591){s1=peg$c1591;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1592)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){s3=peg$parseLabelOrLabelList();if(s3!==peg$FAILED){s4=peg$parseWS();if(s4===peg$FAILED){s4=null}if(s4!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s5=peg$c1237;peg$currPos++}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s5!==peg$FAILED){s6=peg$parseWS();if(s6===peg$FAILED){s6=null}if(s6!==peg$FAILED){peg$savedPos=s0;s1=peg$c1593(s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseArrangeStartDeclaration(){var s0,s1,s2,s3,s4,s5,s6;s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c1594){s1=peg$c1594;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1595)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){s3=peg$parseLabelOrLabelList();if(s3!==peg$FAILED){s4=peg$parseWS();if(s4===peg$FAILED){s4=null}if(s4!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s5=peg$c1237;peg$currPos++}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s5!==peg$FAILED){s6=peg$parseWS();if(s6===peg$FAILED){s6=null}if(s6!==peg$FAILED){peg$savedPos=s0;s1=peg$c1596(s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseArrangeEndDeclaration(){var s0,s1,s2,s3,s4,s5,s6;s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c1597){s1=peg$c1597;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1598)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){s3=peg$parseLabelOrLabelList();if(s3!==peg$FAILED){s4=peg$parseWS();if(s4===peg$FAILED){s4=null}if(s4!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s5=peg$c1237;peg$currPos++}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s5!==peg$FAILED){s6=peg$parseWS();if(s6===peg$FAILED){s6=null}if(s6!==peg$FAILED){peg$savedPos=s0;s1=peg$c1599(s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseOArrangeDeclaration(){var s0,s1,s2,s3,s4,s5,s6;peg$silentFails++;s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c1601){s1=peg$c1601;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1602)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){s3=peg$parseLabelOrLabelList();if(s3!==peg$FAILED){s4=peg$parseWS();if(s4===peg$FAILED){s4=null}if(s4!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s5=peg$c1237;peg$currPos++}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s5!==peg$FAILED){s6=peg$parseWS();if(s6===peg$FAILED){s6=null}if(s6!==peg$FAILED){peg$savedPos=s0;s1=peg$c1603(s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1600)}}return s0}function peg$parseFArrangeDeclaration(){var s0,s1,s2,s3,s4,s5,s6;peg$silentFails++;s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c1605){s1=peg$c1605;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1606)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){s3=peg$parseLabelOrLabelList();if(s3!==peg$FAILED){s4=peg$parseWS();if(s4===peg$FAILED){s4=null}if(s4!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s5=peg$c1237;peg$currPos++}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s5!==peg$FAILED){s6=peg$parseWS();if(s6===peg$FAILED){s6=null}if(s6!==peg$FAILED){peg$savedPos=s0;s1=peg$c1607(s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1604)}}return s0}function peg$parseArrangeDeclaration(){var s0;peg$silentFails++;s0=peg$parseArrangeStartDeclaration();if(s0===peg$FAILED){s0=peg$parseArrangeEndDeclaration();if(s0===peg$FAILED){s0=peg$parseOArrangeDeclaration();if(s0===peg$FAILED){s0=peg$parseFArrangeDeclaration();if(s0===peg$FAILED){s0=peg$parseRegularArrangeDeclaration()}}}}peg$silentFails--;if(s0===peg$FAILED){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1608)}}return s0}function peg$parseTerm(){var s0;s0=peg$parseHookDeclaration();if(s0===peg$FAILED){s0=peg$parseExp();if(s0===peg$FAILED){s0=peg$parseStateDeclaration();if(s0===peg$FAILED){s0=peg$parseArrangeDeclaration();if(s0===peg$FAILED){s0=peg$parseNamedList();if(s0===peg$FAILED){s0=peg$parseMachineAttribute();if(s0===peg$FAILED){s0=peg$parseMachineProperty();if(s0===peg$FAILED){s0=peg$parseConfig()}}}}}}}return s0}function peg$parseTermList(){var s0,s1;s0=[];s1=peg$parseTerm();while(s1!==peg$FAILED){s0.push(s1);s1=peg$parseTerm()}return s0}peg$result=peg$startRuleFunction();if(peg$result!==peg$FAILED&&peg$currPos===input.length){return peg$result}else{if(peg$result!==peg$FAILED&&peg$currPos<input.length){peg$fail(peg$endExpectation())}throw peg$buildStructuredError(peg$maxFailExpected,peg$maxFailPos<input.length?input.charAt(peg$maxFailPos):null,peg$maxFailPos<input.length?peg$computeLocation(peg$maxFailPos,peg$maxFailPos+1):peg$computeLocation(peg$maxFailPos,peg$maxFailPos))}}function arrow_left_kind(arrow){switch(arrow){case"->":case"→":case"=>":case"⇒":case"~>":case"↛":{return"none"}case"<-":case"←":case"<->":case"↔":case"<-=>":case"←⇒":case"←=>":case"<-⇒":case"<-~>":case"←↛":case"←~>":case"<-↛":{return"legal"}case"<=":case"⇐":case"<=>":case"⇔":case"<=->":case"⇐→":case"⇐->":case"<=→":case"<=~>":case"⇐↛":case"⇐~>":case"<=↛":{return"main"}case"<~":case"↚":case"<~>":case"↮":case"<~->":case"↚→":case"↚->":case"<~→":case"<~=>":case"↚⇒":case"↚=>":case"<~⇒":{return"forced"}default:{throw new JssmError(undefined,`arrow_direction: unknown arrow type ${arrow}`)}}}function arrow_right_kind(arrow){switch(arrow){case"<-":case"←":case"<=":case"⇐":case"<~":case"↚":{return"none"}case"->":case"→":case"<->":case"↔":case"<=->":case"⇐→":case"⇐->":case"<=→":case"<~->":case"↚→":case"↚->":case"<~→":{return"legal"}case"=>":case"⇒":case"<=>":case"⇔":case"<-=>":case"←⇒":case"←=>":case"<-⇒":case"<~=>":case"↚⇒":case"↚=>":case"<~⇒":{return"main"}case"~>":case"↛":case"<~>":case"↮":case"<-~>":case"←↛":case"←~>":case"<-↛":case"<=~>":case"⇐↛":case"⇐~>":case"<=↛":{return"forced"}default:{throw new JssmError(undefined,`arrow_direction: unknown arrow type ${arrow}`)}}}const array_box_if_string=n=>typeof n==="string"?[n]:n;const weighted_rand_select=(options,probability_property="probability",rng)=>{if(!Array.isArray(options)){throw new TypeError("options must be a non-empty array of objects")}if(options.length===0){throw new TypeError("options must be a non-empty array of objects")}if(typeof options[0]!=="object"){throw new TypeError("options must be a non-empty array of objects")}const named=probability_property==="probability";let prob_sum=0;for(const opt of options){const p=named?opt.probability:opt[probability_property];prob_sum+=p===undefined?1:p}const rnd=(rng?rng():Math.random())*prob_sum;let cursor=0,cursor_sum=0;while(cursor<options.length){const p=named?options[cursor].probability:options[cursor][probability_property];cursor_sum+=p===undefined?1:p;++cursor;if(cursor_sum>rnd){break}}return options[cursor-1]};function seq(n){if(!Number.isSafeInteger(n)){throw new TypeError("seq/1 takes a non-negative integer n as an argument")}if(n<0){throw new TypeError("seq/1 takes a non-negative integer n as an argument")}return Array.from({length:n},(_,i)=>i)}const default_lexicographic=(a,b)=>{const sa=String(a),sb=String(b);return sa<sb?-1:sa>sb?1:0};const histograph=ar=>{const counts=new Map;for(const v of ar){const c=counts.get(v);counts.set(v,c===undefined?1:c+1)}const out=new Map;const sorted_keys=[...counts.keys()].sort(default_lexicographic);for(const k of sorted_keys){out.set(k,counts.get(k))}return out};function name_bind_prop_and_state(prop,state){if(typeof prop!=="string"){throw new JssmError(undefined,`Name of property must be a string; got ${prop}`)}if(typeof state!=="string"){throw new JssmError(undefined,`Name of state must be a string; got ${state}`)}return JSON.stringify([prop,state])}function gen_splitmix32(a){if(a===undefined){a=Date.now()}return function(){a=Math.trunc(a);a=a+2654435769|0;let t=a^a>>>16;t=Math.imul(t,569420461);t^=t>>>15;t=Math.imul(t,1935289751);return((t^t>>>15)>>>0)/4294967296}}const unique=arr=>{const seen=new Set;return arr.filter(v=>{if(v!==v){return false}if(seen.has(v)){return false}seen.add(v);return true})};function find_repeated(arr){const uniqued=unique(arr);if(uniqued.length===arr.length){return[]}const residue_keys=new Map;for(const k of arr)residue_keys.set(k,residue_keys.has(k)?residue_keys.get(k)+1:1);for(const k of uniqued)residue_keys.set(k,residue_keys.get(k)-1);return[...residue_keys].filter(e=>e[1]>0&&!Number.isNaN(e[0])).map(e=>[e[0],e[1]+1])}var reductions={abkhazian:"ab","аҧсуа бызшәа, аҧсшәа":"ab",ab:"ab",abk:"ab","аҧсуа бызшәа":"ab","аҧсшәа":"ab",afar:"aa",afaraf:"aa",aa:"aa",aar:"aa",afrikaans:"af",af:"af",afr:"af",akan:"ak",ak:"ak",aka:"ak","aka + 2":"ak",albanian:"sq",shqip:"sq",sq:"sq",sqi:"sq",alb:"sq","sqi + 4":"sq",amharic:"am","አማርኛ":"am",am:"am",amh:"am",arabic:"ar","العربية":"ar",ar:"ar",ara:"ar","ara + 30":"ar",aragonese:"an","aragonés":"an",an:"an",arg:"an",armenian:"hy","հայերեն":"hy",hy:"hy",hye:"hy",arm:"hy",assamese:"as","অসমীয়া":"as",as:"as",asm:"as",avaric:"av","авар мацӏ, магӏарул мацӏ":"av",av:"av",ava:"av","авар мацӏ":"av","магӏарул мацӏ":"av",avestan:"ae",avesta:"ae",ae:"ae",ave:"ae",aymara:"ay","aymar aru":"ay",ay:"ay",aym:"ay","aym + 2":"ay",azerbaijani:"az","azərbaycan dili":"az",az:"az",aze:"az","aze + 2":"az",bambara:"bm",bamanankan:"bm",bm:"bm",bam:"bm",bashkir:"ba","башҡорт теле":"ba",ba:"ba",bak:"ba",basque:"eu","euskara, euskera":"eu",eu:"eu",eus:"eu",baq:"eu",euskara:"eu",euskera:"eu",belarusian:"be","беларуская мова":"be",be:"be",bel:"be",bengali:"bn","বাংলা":"bn",bn:"bn",ben:"bn","bihari languages":"bh","भोजपुरी":"bh",bh:"bh",bih:"bh",bislama:"bi",bi:"bi",bis:"bi",bosnian:"bs","bosanski jezik":"bs",bs:"bs",bos:"bs",breton:"br",brezhoneg:"br",br:"br",bre:"br",bulgarian:"bg","български език":"bg",bg:"bg",bul:"bg",burmese:"my","ဗမာစာ":"my",my:"my",mya:"my",bur:"my","catalan, valencian":"ca","català, valencià":"ca",ca:"ca",cat:"ca","català":"ca","valencià":"ca",chamorro:"ch",chamoru:"ch",ch:"ch",cha:"ch",chechen:"ce","нохчийн мотт":"ce",ce:"ce",che:"ce","chichewa, chewa, nyanja":"ny","chicheŵa, chinyanja":"ny",ny:"ny",nya:"ny","chicheŵa":"ny",chinyanja:"ny",chinese:"zh","中文 (zhōngwén), 汉语, 漢語":"zh",zh:"zh",zho:"zh",chi:"zh","zho + 13":"zh","中文 (zhōngwén)":"zh","汉语":"zh","漢語":"zh",chuvash:"cv","чӑваш чӗлхи":"cv",cv:"cv",chv:"cv",cornish:"kw",kernewek:"kw",kw:"kw",cor:"kw",corsican:"co","corsu, lingua corsa":"co",co:"co",cos:"co",corsu:"co","lingua corsa":"co",cree:"cr","ᓀᐦᐃᔭᐍᐏᐣ":"cr",cr:"cr",cre:"cr","cre + 6":"cr",croatian:"hr","hrvatski jezik":"hr",hr:"hr",hrv:"hr",czech:"cs","čeština, český jazyk":"cs",cs:"cs",ces:"cs",cze:"cs","čeština":"cs","český jazyk":"cs",danish:"da",dansk:"da",da:"da",dan:"da","divehi, dhivehi, maldivian":"dv","ދިވެހި":"dv",dv:"dv",div:"dv","dutch, flemish":"nl","nederlands, vlaams":"nl",nl:"nl",nld:"nl",dut:"nl",nederlands:"nl",vlaams:"nl",dzongkha:"dz","རྫོང་ཁ":"dz",dz:"dz",dzo:"dz",english:"en",en:"en",eng:"en",esperanto:"eo",eo:"eo",epo:"eo",estonian:"et","eesti, eesti keel":"et",et:"et",est:"et","est + 2":"et",eesti:"et","eesti keel":"et",ewe:"ee","eʋegbe":"ee",ee:"ee",faroese:"fo","føroyskt":"fo",fo:"fo",fao:"fo",fijian:"fj","vosa vakaviti":"fj",fj:"fj",fij:"fj",finnish:"fi","suomi, suomen kieli":"fi",fi:"fi",fin:"fi",suomi:"fi","suomen kieli":"fi",french:"fr","français, langue française":"fr",fr:"fr",fra:"fr",fre:"fr","français":"fr","langue française":"fr",fulah:"ff","fulfulde, pulaar, pular":"ff",ff:"ff",ful:"ff","ful + 9":"ff",fulfulde:"ff",pulaar:"ff",pular:"ff",galician:"gl",galego:"gl",gl:"gl",glg:"gl",georgian:"ka","ქართული":"ka",ka:"ka",kat:"ka",geo:"ka",german:"de",deutsch:"de",de:"de",deu:"de",ger:"de","greek (modern)":"el","ελληνικά":"el",el:"el",ell:"el",gre:"el","guaraní":"gn","avañe'ẽ":"gn",gn:"gn",grn:"gn","grn + 5":"gn",gujarati:"gu","ગુજરાતી":"gu",gu:"gu",guj:"gu","haitian, haitian creole":"ht","kreyòl ayisyen":"ht",ht:"ht",hat:"ht",hausa:"ha","(hausa) هَوُسَ":"ha",ha:"ha",hau:"ha","hebrew (modern)":"he","עברית":"he",he:"he",heb:"he",herero:"hz",otjiherero:"hz",hz:"hz",her:"hz",hindi:"hi","हिन्दी, हिंदी":"hi",hi:"hi",hin:"hi","हिन्दी":"hi","हिंदी":"hi","hiri motu":"ho",ho:"ho",hmo:"ho",hungarian:"hu",magyar:"hu",hu:"hu",hun:"hu",interlingua:"ia",ia:"ia",ina:"ia",indonesian:"id","bahasa indonesia":"id",id:"id",ind:"id",interlingue:"ie","originally called occidental; then interlingue after wwii":"ie",ie:"ie",ile:"ie",irish:"ga",gaeilge:"ga",ga:"ga",gle:"ga",igbo:"ig","asụsụ igbo":"ig",ig:"ig",ibo:"ig",inupiaq:"ik","iñupiaq, iñupiatun":"ik",ik:"ik",ipk:"ik","ipk + 2":"ik","iñupiaq":"ik","iñupiatun":"ik",ido:"io",io:"io",icelandic:"is","íslenska":"is",is:"is",isl:"is",ice:"is",italian:"it",italiano:"it",it:"it",ita:"it",inuktitut:"iu","ᐃᓄᒃᑎᑐᑦ":"iu",iu:"iu",iku:"iu","iku + 2":"iu",japanese:"ja","日本語 (にほんご)":"ja",ja:"ja",jpn:"ja",javanese:"jv","ꦧꦱꦗꦮ, basa jawa":"jv",jv:"jv",jav:"jv","ꦧꦱꦗꦮ":"jv","basa jawa":"jv","kalaallisut, greenlandic":"kl","kalaallisut, kalaallit oqaasii":"kl",kl:"kl",kal:"kl",kalaallisut:"kl","kalaallit oqaasii":"kl",kannada:"kn","ಕನ್ನಡ":"kn",kn:"kn",kan:"kn",kanuri:"kr",kr:"kr",kau:"kr","kau + 3":"kr",kashmiri:"ks","कश्मीरी, كشميري":"ks",ks:"ks",kas:"ks","कश्मीरी":"ks","كشميري":"ks",kazakh:"kk","қазақ тілі":"kk",kk:"kk",kaz:"kk","central khmer":"km","ខ្មែរ, ខេមរភាសា, ភាសាខ្មែរ":"km",km:"km",khm:"km","ខ្មែរ":"km","ខេមរភាសា":"km","ភាសាខ្មែរ":"km","kikuyu, gikuyu":"ki","gĩkũyũ":"ki",ki:"ki",kik:"ki",kinyarwanda:"rw",ikinyarwanda:"rw",rw:"rw",kin:"rw","kirghiz, kyrgyz":"ky","кыргызча, кыргыз тили":"ky",ky:"ky",kir:"ky","кыргызча":"ky","кыргыз тили":"ky",komi:"kv","коми кыв":"kv",kv:"kv",kom:"kv","kom + 2":"kv",kongo:"kg",kikongo:"kg",kg:"kg",kon:"kg","kon + 3":"kg",korean:"ko","한국어":"ko",ko:"ko",kor:"ko",kurdish:"ku","kurdî, كوردی":"ku",ku:"ku",kur:"ku","kur + 3":"ku","kurdî":"ku","كوردی":"ku","kuanyama, kwanyama":"kj",kuanyama:"kj",kj:"kj",kua:"kj",latin:"la","latine, lingua latina":"la",la:"la",lat:"la",latine:"la","lingua latina":"la","luxembourgish, letzeburgesch":"lb","lëtzebuergesch":"lb",lb:"lb",ltz:"lb",ganda:"lg",luganda:"lg",lg:"lg",lug:"lg","limburgan, limburger, limburgish":"li",limburgs:"li",li:"li",lim:"li",lingala:"ln","lingála":"ln",ln:"ln",lin:"ln",lao:"lo","ພາສາລາວ":"lo",lo:"lo",lithuanian:"lt","lietuvių kalba":"lt",lt:"lt",lit:"lt","luba-katanga":"lu",kiluba:"lu",lu:"lu",lub:"lu",latvian:"lv","latviešu valoda":"lv",lv:"lv",lav:"lv","lav + 2":"lv",manx:"gv","gaelg, gailck":"gv",gv:"gv",glv:"gv",gaelg:"gv",gailck:"gv",macedonian:"mk","македонски јазик":"mk",mk:"mk",mkd:"mk",mac:"mk",malagasy:"mg","fiteny malagasy":"mg",mg:"mg",mlg:"mg","mlg + 10":"mg",malay:"ms","bahasa melayu, بهاس ملايو":"ms",ms:"ms",msa:"ms",may:"ms","msa + 13":"ms","bahasa melayu":"ms","بهاس ملايو":"ms",malayalam:"ml","മലയാളം":"ml",ml:"ml",mal:"ml",maltese:"mt",malti:"mt",mt:"mt",mlt:"mt",maori:"mi","te reo māori":"mi",mi:"mi",mri:"mi",mao:"mi",marathi:"mr","मराठी":"mr",mr:"mr",mar:"mr",marshallese:"mh","kajin m̧ajeļ":"mh",mh:"mh",mah:"mh",mongolian:"mn","монгол хэл":"mn",mn:"mn",mon:"mn","mon + 2":"mn",nauru:"na","dorerin naoero":"na",na:"na",nau:"na","navajo, navaho":"nv","diné bizaad":"nv",nv:"nv",nav:"nv","north ndebele":"nd",isindebele:"nr",nd:"nd",nde:"nd",nepali:"ne","नेपाली":"ne",ne:"ne",nep:"ne",ndonga:"ng",owambo:"ng",ng:"ng",ndo:"ng","norwegian bokmål":"nb","norsk bokmål":"nb",nb:"nb",nob:"nb","norwegian nynorsk":"nn","norsk nynorsk":"nn",nn:"nn",nno:"nn",norwegian:"no",norsk:"no",no:"no",nor:"no","nor + 2":"no","sichuan yi, nuosu":"ii","ꆈꌠ꒿ nuosuhxop":"ii",ii:"ii",iii:"ii","south ndebele":"nr",nr:"nr",nbl:"nr",occitan:"oc","occitan, lenga d'òc":"oc",oc:"oc",oci:"oc","lenga d'òc":"oc",ojibwa:"oj","ᐊᓂᔑᓈᐯᒧᐎᓐ":"oj",oj:"oj",oji:"oj","oji + 7":"oj","church slavic, church slavonic, old church slavonic, old slavonic, old bulgarian":"cu","ѩзыкъ словѣньскъ":"cu",cu:"cu",chu:"cu",oromo:"om","afaan oromoo":"om",om:"om",orm:"om","orm + 4":"om",oriya:"or","ଓଡ଼ିଆ":"or",or:"or",ori:"or","ossetian, ossetic":"os","ирон æвзаг":"os",os:"os",oss:"os","panjabi, punjabi":"pa","ਪੰਜਾਬੀ":"pa",pa:"pa",pan:"pa",pali:"pi","पाऴि":"pi",pi:"pi",pli:"pi",persian:"fa","فارسی":"fa",fa:"fa",fas:"fa",per:"fa","fas + 2":"fa",polish:"pl","język polski, polszczyzna":"pl",pl:"pl",pol:"pl","język polski":"pl",polszczyzna:"pl","pashto, pushto":"ps","پښتو":"ps",ps:"ps",pus:"ps","pus + 3":"ps",portuguese:"pt","português":"pt",pt:"pt",por:"pt",quechua:"qu","runa simi, kichwa":"qu",qu:"qu",que:"qu","que + 44":"qu","runa simi":"qu",kichwa:"qu",romansh:"rm","rumantsch grischun":"rm",rm:"rm",roh:"rm",rundi:"rn",ikirundi:"rn",rn:"rn",run:"rn","romanian, moldavian, moldovan":"ro","română":"ro",ro:"ro",ron:"ro",rum:"ro",russian:"ru","русский":"ru",ru:"ru",rus:"ru",sanskrit:"sa","संस्कृतम्":"sa",sa:"sa",san:"sa",sardinian:"sc",sardu:"sc",sc:"sc",srd:"sc","srd + 4":"sc",sindhi:"sd","सिन्धी, سنڌي، سندھی":"sd",sd:"sd",snd:"sd","सिन्धी":"sd","سنڌي، سندھی":"sd","northern sami":"se","davvisámegiella":"se",se:"se",sme:"se",samoan:"sm","gagana fa'a samoa":"sm",sm:"sm",smo:"sm",sango:"sg","yângâ tî sängö":"sg",sg:"sg",sag:"sg",serbian:"sr","српски језик":"sr",sr:"sr",srp:"sr","gaelic, scottish gaelic":"gd","gàidhlig":"gd",gd:"gd",gla:"gd",shona:"sn",chishona:"sn",sn:"sn",sna:"sn","sinhala, sinhalese":"si","සිංහල":"si",si:"si",sin:"si",slovak:"sk","slovenčina, slovenský jazyk":"sk",sk:"sk",slk:"sk",slo:"sk","slovenčina":"sk","slovenský jazyk":"sk",slovenian:"sl","slovenski jezik, slovenščina":"sl",sl:"sl",slv:"sl","slovenski jezik":"sl","slovenščina":"sl",somali:"so","soomaaliga, af soomaali":"so",so:"so",som:"so",soomaaliga:"so","af soomaali":"so","southern sotho":"st",sesotho:"st",st:"st",sot:"st","spanish, castilian":"es","español":"es",es:"es",spa:"es",sundanese:"su","basa sunda":"su",su:"su",sun:"su",swahili:"sw",kiswahili:"sw",sw:"sw",swa:"sw","swa + 2":"sw",swati:"ss",siswati:"ss",ss:"ss",ssw:"ss",swedish:"sv",svenska:"sv",sv:"sv",swe:"sv",tamil:"ta","தமிழ்":"ta",ta:"ta",tam:"ta",telugu:"te","తెలుగు":"te",te:"te",tel:"te",tajik:"tg","тоҷикӣ, toçikī, تاجیکی":"tg",tg:"tg",tgk:"tg","тоҷикӣ":"tg","toçikī":"tg","تاجیکی":"tg",thai:"th","ไทย":"th",th:"th",tha:"th",tigrinya:"ti","ትግርኛ":"ti",ti:"ti",tir:"ti",tibetan:"bo","བོད་ཡིག":"bo",bo:"bo",bod:"bo",tib:"bo",turkmen:"tk","türkmen, түркмен":"tk",tk:"tk",tuk:"tk","türkmen":"tk","түркмен":"tk",tagalog:"tl","wikang tagalog":"tl",tl:"tl",tgl:"tl",tswana:"tn",setswana:"tn",tn:"tn",tsn:"tn","tonga (tonga islands)":"to","faka tonga":"to",to:"to",ton:"to",turkish:"tr","türkçe":"tr",tr:"tr",tur:"tr",tsonga:"ts",xitsonga:"ts",ts:"ts",tso:"ts",tatar:"tt","татар теле, tatar tele":"tt",tt:"tt",tat:"tt","татар теле":"tt","tatar tele":"tt",twi:"tw",tw:"tw",tahitian:"ty","reo tahiti":"ty",ty:"ty",tah:"ty","uighur, uyghur":"ug","ئۇيغۇرچە, uyghurche":"ug",ug:"ug",uig:"ug","ئۇيغۇرچە":"ug",uyghurche:"ug",ukrainian:"uk","українська":"uk",uk:"uk",ukr:"uk",urdu:"ur","اردو":"ur",ur:"ur",urd:"ur",uzbek:"uz","oʻzbek, ўзбек, أۇزبېك":"uz",uz:"uz",uzb:"uz","uzb + 2":"uz","oʻzbek":"uz","ўзбек":"uz","أۇزبېك":"uz",venda:"ve","tshivenḓa":"ve",ve:"ve",ven:"ve",vietnamese:"vi","tiếng việt":"vi",vi:"vi",vie:"vi","volapük":"vo",vo:"vo",vol:"vo",walloon:"wa",walon:"wa",wa:"wa",wln:"wa",welsh:"cy",cymraeg:"cy",cy:"cy",cym:"cy",wel:"cy",wolof:"wo",wollof:"wo",wo:"wo",wol:"wo","western frisian":"fy",frysk:"fy",fy:"fy",fry:"fy",xhosa:"xh",isixhosa:"xh",xh:"xh",xho:"xh",yiddish:"yi","ייִדיש":"yi",yi:"yi",yid:"yi","yid + 2":"yi",yoruba:"yo","yorùbá":"yo",yo:"yo",yor:"yo","zhuang, chuang":"za","saɯ cueŋƅ, saw cuengh":"za",za:"za",zha:"za","zha + 16":"za","saɯ cueŋƅ":"za","saw cuengh":"za",zulu:"zu",isizulu:"zu",zu:"zu",zul:"zu"};function reduce(from){return reductions[from.toLowerCase()]}function nth_matching_loc(tree,predicate,n){let count=0;for(const node of tree){if(!predicate(node)){continue}count++;if(count===n){return node.loc}}return undefined}function makeTransition(this_se,from,to,isRight,_wasList,_wasIndex){if(from===""){throw new JssmError(undefined,"A state name may not be the empty string (transition source)")}if(to===""){throw new JssmError(undefined,"A state name may not be the empty string (transition target)")}const arrow=this_se.kind,kind=isRight?arrow_right_kind(arrow):arrow_left_kind(arrow),edge={from:from,to:to,kind:kind,after_time:isRight?this_se.r_after:this_se.l_after,forced_only:kind==="forced",main_path:kind==="main",action:undefined,probability:undefined};const action=isRight?"r_action":"l_action",probability=isRight?"r_probability":"l_probability";if(this_se[action]!=null){edge.action=this_se[action]}if(this_se[probability]!=null){edge.probability=this_se[probability]}if(edge.action===""){throw new JssmError(undefined,"An action name may not be the empty string")}return edge}function wrap_parse(input,options){return peg$parse(input,{})}function normalize_group_members(value){return value.map(member=>typeof member==="string"?{kind:"state",name:member}:member)}function build_group_registry(tree){const registry=new Map;for(const node of tree){if(node.key!=="named_list"){continue}if(registry.has(node.name)){throw new JssmError(undefined,`Cannot redeclare group: &${node.name}`)}registry.set(node.name,normalize_group_members(node.value))}return registry}function group_registry_cycle_check(registry){const visiting=new Set;const visited=new Set;const walk=(group,path)=>{var _a;if(visiting.has(group)){const cycle=[...path,group].map(g=>`&${g}`).join(" -> ");throw new JssmError(undefined,`Group membership cycle detected: ${cycle}`)}if(visited.has(group)){return}visiting.add(group);const group_members=(_a=registry.get(group))!==null&&_a!==void 0?_a:[];for(const member of group_members){if(member.kind==="group"){walk(member.name,[...path,group])}}visiting.delete(group);visited.add(group)};for(const group of registry.keys()){walk(group,[])}}function transitive_members(registry,group,memo){var _a;const cached=memo.get(group);if(cached!==undefined){return cached}const out=[];const group_members=(_a=registry.get(group))!==null&&_a!==void 0?_a:[];for(const member of group_members){if(member.kind==="state"){out.push(member.name)}else{for(const s of transitive_members(registry,member.name,memo)){out.push(s)}}}memo.set(group,out);return out}function validate_group_members(registry){for(const members of registry.values()){for(const member of members){if(member.kind==="group"&&!registry.has(member.name)){throw new JssmError(undefined,`Unresolved group reference: &${member.name}`)}}}}function membership_distance(registry,state,group){var _a;const visited=new Set([group]);let frontier=[{group:group,hops:0}];while(frontier.length>0){const next=[];for(const{group:g,hops:hops}of frontier){const members=(_a=registry.get(g))!==null&&_a!==void 0?_a:[];for(const member of members){if(member.kind==="state"){if(member.name===state){return hops+1}}else if(!visited.has(member.name)){visited.add(member.name);next.push({group:member.name,hops:hops+1})}}}frontier=next}return Infinity}const edge_decl_meta=new WeakMap;function resolve_transition_conflicts(edges,has_group_sources=true){var _a;if(!has_group_sources){return edges}const buckets=new Map;for(const[index,edge]of edges.entries()){if(edge.action==null){continue}const key=JSON.stringify([String(edge.from),String(edge.action)]);let by_decl=buckets.get(key);if(by_decl===undefined){by_decl=new Map;buckets.set(key,by_decl)}const meta=edge_decl_meta.get(edge);const decl_id=meta===undefined?undefined:meta.decl_id;const entry=by_decl.get(decl_id);if(entry===undefined){by_decl.set(decl_id,{decl_id:decl_id,indices:[index],source_group:meta===undefined?undefined:meta.source_group,specificity:(_a=meta===undefined?undefined:meta.specificity)!==null&&_a!==void 0?_a:Infinity})}else{entry.indices.push(index)}}const dropped=new Set;const arbitrate_bucket=by_decl=>{const decls=[...by_decl.values()];if(decls.length<2){return}const state_decls=decls.filter(d=>d.source_group===undefined);const group_decls=decls.filter(d=>d.source_group!==undefined);if(state_decls.length>0){for(const d of group_decls){for(const i of d.indices){dropped.add(i)}}return}let winner=group_decls[0];for(const d of group_decls){const nearer=d.specificity<winner.specificity;const tie_later=d.specificity===winner.specificity&&d.decl_id>winner.decl_id;if(nearer||tie_later){winner=d}}for(const d of group_decls){if(d.decl_id===winner.decl_id){continue}for(const i of d.indices){dropped.add(i)}console.warn(`jssm: group &${d.source_group} transition for state '${String(edges[d.indices[0]].from)}' `+`on action '${String(edges[d.indices[0]].action)}' is overridden by nearer group `+`&${winner.source_group}`)}};for(const by_decl of buckets.values()){arbitrate_bucket(by_decl)}const out=[];for(const[index,edge]of edges.entries()){if(dropped.has(index)){continue}out.push(edge)}return out}function is_group_ref(endpoint){return typeof endpoint==="object"&&endpoint.key==="group_ref"}function resolve_group_refs(tree,registry){const memo=new Map;const require_resolvable=name=>{if(!registry.has(name)){throw new JssmError(undefined,`Unresolved group reference: &${name}`)}};const rewrite_group_targets=node=>{for(let link=node.se;link;link=link.se){if(!is_group_ref(link.to)){continue}require_resolvable(link.to.name);link.to=transitive_members(registry,link.to.name,memo)}};const resolved=[];let decl_id=0;for(const node of tree){if(node.key==="hook_decl"&&is_group_ref(node.subject)){require_resolvable(node.subject.name)}if(node.key!=="transition"){resolved.push(node);continue}const this_decl=decl_id++;rewrite_group_targets(node);if(is_group_ref(node.from)){const group_name=node.from.name;require_resolvable(group_name);for(const member of transitive_members(registry,group_name,memo)){resolved.push(Object.assign(Object.assign({},node),{from:member,__decl_id:this_decl,__source_group:group_name,__specificity:membership_distance(registry,member,group_name)}))}}else if(registry.size===0){resolved.push(node)}else{resolved.push(Object.assign(Object.assign({},node),{__decl_id:this_decl}))}}return resolved}function compile_rule_transition_step(acc,from,to,this_se,next_se){const uFrom=Array.isArray(from)?from:[from],uTo=Array.isArray(to)?to:[to];for(const f of uFrom){for(const t of uTo){const right=makeTransition(this_se,f,t,true);if(right.kind!=="none"){acc.push(right)}const left=makeTransition(this_se,t,f,false);if(left.kind==="none"){const rev=this_se;if(rev.l_probability!=null||rev.l_action!=null||rev.l_after!=null){throw new JssmError(undefined,`A one-way arrow has no reverse edge, so a decoration written after it ("${String(from)} ${this_se.kind} 40% ${String(to)}") is discarded; write it before the arrow instead ("${String(from)} 40% ${this_se.kind} ${String(to)}").`)}}else{acc.push(left)}}}return next_se?compile_rule_transition_step(acc,to,next_se.to,next_se,next_se.se):acc}function compile_rule_handle_transition(rule){return compile_rule_transition_step([],rule.from,rule.se.to,rule.se,rule.se.se)}function compile_rule_handler(rule){if(rule.key==="transition"){const edges=compile_rule_handle_transition(rule);const decl_id=rule.__decl_id;const source_group=rule.__source_group;const specificity=rule.__specificity;if(decl_id!==undefined){for(const edge of edges){if(edge.from===rule.from){edge_decl_meta.set(edge,{decl_id:decl_id,source_group:source_group,specificity:specificity})}}}return{agg_as:"transition",val:edges}}if(rule.key==="machine_language"){const language_value=rule.value;const primary_subtag=String(language_value).split(/[-_]/,1)[0];return{agg_as:"machine_language",val:reduce(primary_subtag)}}if(rule.key==="property_definition"){const ret={agg_as:"property_definition",val:{name:rule.name}};if(Object.prototype.hasOwnProperty.call(rule,"default_value")){ret.val.default_value=rule.default_value}if(Object.prototype.hasOwnProperty.call(rule,"required")){ret.val.required=rule.required}return ret}if(rule.key==="named_list"){return{agg_as:"named_list",val:[]}}if(rule.key==="hook_decl"){return{agg_as:"hook_decl",val:[rule]}}if(rule.key==="state_declaration"){if(!rule.name){throw new JssmError(undefined,"State declarations must have a name",{source_location:rule.loc})}if(is_group_ref(rule.name)){return{agg_as:"group_metadata",val:[{group:rule.name.name,declarations:rule.value}]}}return{agg_as:"state_declaration",val:{state:rule.name,declarations:rule.value}}}if(["arrange_declaration","arrange_start_declaration","arrange_end_declaration","oarrange_declaration","farrange_declaration"].includes(rule.key)){return{agg_as:rule.key,val:[rule.value]}}const tautologies=["graph_layout","graph_bg_color","start_states","end_states","failed_outputs","machine_name","machine_version","machine_comment","machine_author","machine_contributor","machine_definition","machine_reference","machine_license","fsl_version","state_config","theme","flow","dot_preamble","allows_override","allow_islands","default_state_config","default_transition_config","default_graph_config","default_start_state_config","default_end_state_config","default_hooked_state_config","default_active_state_config","default_terminal_state_config","npm_name","default_size","editor_config"];if(tautologies.includes(rule.key)){return{agg_as:rule.key,val:rule.value}}throw new JssmError(undefined,`compile_rule_handler: Unknown rule: ${JSON.stringify(rule)}`)}function canonical_graph_alias_key(alias_key){if(alias_key==="graph_bg_color"){return"background-color"}return alias_key}const WARN_DEPRECATED_GRAPH_ALIASES=new Set(["graph_bg_color"]);function fold_graph_config(aliases,explicit_block){const folded=[];for(const[alias_key,values]of Object.entries(aliases)){for(const value of values){if(WARN_DEPRECATED_GRAPH_ALIASES.has(alias_key)){console.warn(`jssm: top-level \`${alias_key}\` is deprecated; prefer a \`graph: {}\` config block`)}folded.push({key:canonical_graph_alias_key(alias_key),value:value})}}for(const item of explicit_block){folded.push(item)}const seen_at=new Map;const result=[];for(const item of folded){const existing_index=seen_at.get(item.key);if(existing_index===undefined){seen_at.set(item.key,result.length);result.push(item)}else{result[existing_index]=item}}return result}function compile(tree){const results={graph_layout:[],graph_bg_color:[],transition:[],start_states:[],end_states:[],failed_outputs:[],state_config:[],state_declaration:[],fsl_version:[],machine_author:[],machine_comment:[],machine_contributor:[],machine_definition:[],machine_language:[],machine_license:[],machine_name:[],machine_reference:[],npm_name:[],default_size:[],property_definition:[],state_property:{},theme:[],flow:[],dot_preamble:[],arrange_declaration:[],arrange_start_declaration:[],arrange_end_declaration:[],oarrange_declaration:[],farrange_declaration:[],machine_version:[],default_state_config:[],default_active_state_config:[],default_hooked_state_config:[],default_terminal_state_config:[],default_start_state_config:[],default_end_state_config:[],default_transition_config:[],default_graph_config:[],named_list:[],group_metadata:[],hook_decl:[],allows_override:[],allow_islands:[],editor_config:[]};const group_registry=build_group_registry(tree);group_registry_cycle_check(group_registry);validate_group_members(group_registry);const resolved_tree=resolve_group_refs(tree,group_registry);for(const tr of resolved_tree){const rule=compile_rule_handler(tr),val=rule.val,bucket=results[rule.agg_as];if(Array.isArray(val)){for(const v of val){bucket.push(v)}}else{bucket.push(val)}}const property_keys=results["property_definition"].map(pd=>pd.name),repeat_props=find_repeated(property_keys);if(repeat_props.length>0){const dup=repeat_props[0][0];throw new JssmError(undefined,`Cannot repeat property definitions. Saw ${JSON.stringify(repeat_props)}`,{source_location:nth_matching_loc(tree,n=>n.key==="property_definition"&&n.name===dup,2)})}const assembled_transitions=resolve_transition_conflicts(results["transition"],group_registry.size>0);if(assembled_transitions.length===0){throw new JssmError(undefined,"This machine has no transitions, only declarations; a machine requires at least one transition (like `a -> b;`)")}const result_cfg={start_states:results.start_states.length>0?results.start_states:[assembled_transitions[0].from],end_states:results.end_states,failed_outputs:results.failed_outputs,transitions:assembled_transitions,state_property:[]};if(group_registry.size>0){result_cfg.group_registry=group_registry}if(results.group_metadata.length>0){const group_metadata=new Map;for(const gm of results.group_metadata){group_metadata.set(gm.group,{declarations:gm.declarations})}result_cfg.group_metadata=group_metadata}if(results.hook_decl.length>0){const group_hooks=new Map;const state_hooks=new Map;const merge_hook=(table,subject,event,action)=>{var _a;const existing=(_a=table.get(subject))!==null&&_a!==void 0?_a:{};if(event==="enter"){existing.onEnter=action}else{existing.onExit=action}table.set(subject,existing)};for(const decl of results.hook_decl){if(is_group_ref(decl.subject)){merge_hook(group_hooks,decl.subject.name,decl.event,decl.action)}else{merge_hook(state_hooks,decl.subject,decl.event,decl.action)}}if(group_hooks.size>0){result_cfg.group_hooks=group_hooks}if(state_hooks.size>0){result_cfg.state_hooks=state_hooks}}const oneOnlyKeys=["graph_layout","graph_bg_color","machine_name","machine_version","machine_comment","fsl_version","machine_license","machine_definition","machine_language","flow","dot_preamble","allows_override","allow_islands","npm_name","default_size"];for(const oneOnlyKey of oneOnlyKeys){if(results[oneOnlyKey].length>1){throw new JssmError(undefined,`May only have one ${oneOnlyKey} statement maximum: ${JSON.stringify(results[oneOnlyKey])}`,{source_location:nth_matching_loc(tree,n=>n.key===oneOnlyKey,2)})}if(results[oneOnlyKey].length>0){result_cfg[oneOnlyKey]=results[oneOnlyKey][0]}}const multiKeys=["arrange_declaration","arrange_start_declaration","arrange_end_declaration","oarrange_declaration","farrange_declaration","machine_author","machine_contributor","machine_reference","theme","state_declaration","property_definition","default_state_config","default_start_state_config","default_end_state_config","default_hooked_state_config","default_terminal_state_config","default_active_state_config","default_transition_config"];for(const multiKey of multiKeys){if(results[multiKey].length>0){result_cfg[multiKey]=results[multiKey]}}result_cfg.default_graph_config=fold_graph_config({graph_layout:results.graph_layout,graph_bg_color:results.graph_bg_color,dot_preamble:results.dot_preamble,theme:results.theme,flow:results.flow},results.default_graph_config);if(result_cfg.default_graph_config.length===0){delete result_cfg.default_graph_config}if(results.editor_config.length>0){const ec={};for(const item of results.editor_config){if(item.key==="stochastic_run_count"){ec.stochastic_run_count=item.value}else{ec.panels=item.value}}result_cfg.editor_config=ec}const register_state_property=(sd,decl)=>{if(decl.key!=="state_property"){return}const label=name_bind_prop_and_state(decl.name,sd.state);if(result_cfg.state_property.some(c=>c.name===label)){throw new JssmError(undefined,`A state may only bind a property once (${sd.state} re-binds ${decl.name})`,{source_location:nth_matching_loc(tree,n=>n.key==="state_declaration"&&n.name===sd.state,1)})}result_cfg.state_property.push({name:label,default_value:decl.value,property:decl.name,state:sd.state})};for(const sd of results.state_declaration){for(const decl of sd.declarations){register_state_property(sd,decl)}}return result_cfg}function make(plan){return compile(wrap_parse(plan))}const base_state_style$5={shape:"rectangle",backgroundColor:"white",textColor:"black",borderColor:"black"};const base_active_state_style$5={textColor:"white",backgroundColor:"dodgerblue4"};const base_hooked_state_style$5={shape:"component"};const base_terminal_state_style$5={textColor:"white",backgroundColor:"crimson"};const base_active_terminal_state_style$4={textColor:"white",backgroundColor:"indigo"};const base_start_state_style$5={backgroundColor:"yellow"};const base_active_start_state_style$4={backgroundColor:"yellowgreen"};const base_active_hooked_state_style$4={backgroundColor:"yellowgreen"};const base_end_state_style$5={textColor:"white",backgroundColor:"darkolivegreen"};const base_active_end_state_style$4={textColor:"white",backgroundColor:"darkgreen"};const default_theme={name:"default",state:base_state_style$5,start:base_start_state_style$5,end:base_end_state_style$5,terminal:base_terminal_state_style$5,hooked:base_hooked_state_style$5,active:base_active_state_style$5,active_start:base_active_start_state_style$4,active_end:base_active_end_state_style$4,active_terminal:base_active_terminal_state_style$4,active_hooked:base_active_hooked_state_style$4,legal:undefined,main:undefined,forced:undefined,action:undefined,graph:undefined,title:undefined};const base_state_style$4={shape:"rectangle",backgroundColor:"khaki",textColor:"black",borderColor:"black"};const base_active_state_style$4={textColor:"white",backgroundColor:"dodgerblue4"};const base_hooked_state_style$4={shape:"component"};const base_terminal_state_style$4={textColor:"white",backgroundColor:"crimson"};const base_active_terminal_state_style$3={textColor:"white",backgroundColor:"indigo"};const base_start_state_style$4={backgroundColor:"yellow"};const base_active_start_state_style$3={backgroundColor:"yellowgreen"};const base_active_hooked_state_style$3={backgroundColor:"yellowgreen"};const base_end_state_style$4={textColor:"white",backgroundColor:"darkolivegreen"};const base_active_end_state_style$3={textColor:"white",backgroundColor:"darkgreen"};const modern_theme={name:"modern",state:base_state_style$4,start:base_start_state_style$4,end:base_end_state_style$4,terminal:base_terminal_state_style$4,hooked:base_hooked_state_style$4,active:base_active_state_style$4,active_start:base_active_start_state_style$3,active_end:base_active_end_state_style$3,active_terminal:base_active_terminal_state_style$3,active_hooked:base_active_hooked_state_style$3,legal:undefined,main:undefined,forced:undefined,action:undefined,graph:undefined,title:undefined};const base_state_style$3={backgroundColor:"cadetblue1"};const base_active_state_style$3={textColor:"white",backgroundColor:"deepskyblue"};const base_hooked_state_style$3={shape:"component",backgroundColor:"mediumaquamarine"};const base_terminal_state_style$3={textColor:"white",backgroundColor:"darkviolet"};const base_active_terminal_state_style$2={textColor:"white",backgroundColor:"deeppink"};const base_start_state_style$3={backgroundColor:"darkseagreen1"};const base_active_start_state_style$2={backgroundColor:"aquamarine"};const base_active_hooked_state_style$2={backgroundColor:"aquamarine"};const base_end_state_style$3={textColor:"white",backgroundColor:"chartreuse1"};const base_active_end_state_style$2={textColor:"white",backgroundColor:"darkgreen"};const ocean_theme={name:"ocean",state:base_state_style$3,start:base_start_state_style$3,end:base_end_state_style$3,terminal:base_terminal_state_style$3,hooked:base_hooked_state_style$3,active:base_active_state_style$3,active_start:base_active_start_state_style$2,active_end:base_active_end_state_style$2,active_terminal:base_active_terminal_state_style$2,active_hooked:base_active_hooked_state_style$2,legal:undefined,main:undefined,forced:undefined,action:undefined,graph:undefined,title:undefined};const base_state_style$2={textColor:"black",backgroundColor:"transparent",shape:"plaintext"};const base_active_state_style$2={textColor:"black",backgroundColor:"transparent",shape:"plaintext"};const base_hooked_state_style$2={textColor:"black",backgroundColor:"transparent",shape:"plaintext"};const base_terminal_state_style$2={textColor:"black",backgroundColor:"transparent",shape:"plaintext"};const base_active_terminal_state_style$1={textColor:"black",backgroundColor:"transparent",shape:"plaintext"};const base_start_state_style$2={textColor:"black",backgroundColor:"transparent",shape:"plaintext"};const base_active_start_state_style$1={textColor:"black",backgroundColor:"transparent",shape:"plaintext"};const base_active_hooked_state_style$1={textColor:"black",backgroundColor:"transparent",shape:"plaintext"};const base_end_state_style$2={textColor:"black",backgroundColor:"transparent",shape:"plaintext"};const base_active_end_state_style$1={textColor:"black",backgroundColor:"transparent",shape:"plaintext"};const plain_theme={name:"plain",state:base_state_style$2,start:base_start_state_style$2,end:base_end_state_style$2,terminal:base_terminal_state_style$2,hooked:base_hooked_state_style$2,active:base_active_state_style$2,active_start:base_active_start_state_style$1,active_end:base_active_end_state_style$1,active_terminal:base_active_terminal_state_style$1,active_hooked:base_active_hooked_state_style$1,legal:undefined,main:undefined,forced:undefined,action:undefined,graph:undefined,title:undefined};const base_state_style$1={shape:"rectangle",backgroundColor:"khaki",textColor:"black",borderColor:"black"};const base_active_state_style$1={textColor:"white",backgroundColor:"dodgerblue4"};const base_hooked_state_style$1={shape:"component"};const base_terminal_state_style$1={textColor:"white",backgroundColor:"crimson"};const base_active_terminal_state_style={textColor:"white",backgroundColor:"indigo"};const base_start_state_style$1={backgroundColor:"yellow"};const base_active_start_state_style={backgroundColor:"yellowgreen"};const base_active_hooked_state_style={backgroundColor:"yellowgreen"};const base_end_state_style$1={textColor:"white",backgroundColor:"darkolivegreen"};const base_active_end_state_style={textColor:"white",backgroundColor:"darkgreen"};const bold_theme={name:"bold",state:base_state_style$1,start:base_start_state_style$1,end:base_end_state_style$1,terminal:base_terminal_state_style$1,hooked:base_hooked_state_style$1,active:base_active_state_style$1,active_start:base_active_start_state_style,active_end:base_active_end_state_style,active_terminal:base_active_terminal_state_style,active_hooked:base_active_hooked_state_style,legal:undefined,main:undefined,forced:undefined,action:undefined,graph:undefined,title:undefined};const base_state_style={shape:"rectangle",backgroundColor:"white",textColor:"black",borderColor:"black"};const base_active_state_style={textColor:"white",backgroundColor:"dodgerblue4"};const base_hooked_state_style={shape:"component"};const base_terminal_state_style={textColor:"white",backgroundColor:"crimson"};const base_start_state_style={backgroundColor:"yellow"};const base_end_state_style={textColor:"white",backgroundColor:"darkolivegreen"};const base_theme={state:base_state_style,start:base_start_state_style,end:base_end_state_style,terminal:base_terminal_state_style,hooked:base_hooked_state_style,active:base_active_state_style};const theme_mapping=new Map([["default",default_theme],["modern",modern_theme],["ocean",ocean_theme],["plain",plain_theme],["bold",bold_theme]]);class Interner{constructor(){this.ids=new Map;this.names=[]}intern(name){const existing=this.ids.get(name);if(existing!==undefined){return existing}const id=this.names.length;this.ids.set(name,id);this.names.push(name);return id}id_of(name){return this.ids.get(name)}name_of(id){return this.names[id]}get size(){return this.names.length}}function pair_key(a,b){return a>=b?a*a+a+b:b*b+a}function un_pair_key(z){const s=Math.floor(Math.sqrt(z));const l=z-s*s;return l<s?[l,s]:[s,l-s]}const state_name_chars$1=Object.freeze([{from:"0",to:"9"},{from:"a",to:"z"},{from:"A",to:"Z"},{from:".",to:"."},{from:"+",to:"+"},{from:"_",to:"_"},{from:"^",to:"^"},{from:"(",to:"("},{from:")",to:")"},{from:"*",to:"*"},{from:"&",to:"&"},{from:"$",to:"$"},{from:"#",to:"#"},{from:"@",to:"@"},{from:"!",to:"!"},{from:"?",to:"?"},{from:",",to:","},{from:"",to:""}]);const state_name_first_chars$1=Object.freeze([{from:"0",to:"9"},{from:"a",to:"z"},{from:"A",to:"Z"},{from:".",to:"."},{from:"_",to:"_"},{from:"!",to:"!"},{from:"$",to:"$"},{from:"^",to:"^"},{from:"*",to:"*"},{from:"?",to:"?"},{from:",",to:","},{from:"",to:""}]);const action_label_chars$1=Object.freeze([{from:" ",to:"&"},{from:"(",to:"["},{from:"]",to:""}]);var constants=Object.freeze({__proto__:null,action_label_chars:action_label_chars$1,state_name_chars:state_name_chars$1,state_name_first_chars:state_name_first_chars$1});const version="5.162.31";var __classPrivateFieldSet=undefined&&undefined.__classPrivateFieldSet||function(receiver,state,value,kind,f){if(kind==="m")throw new TypeError("Private method is not writable");if(kind==="a"&&!f)throw new TypeError("Private accessor was defined without a setter");if(typeof state==="function"?receiver!==state||!f:!state.has(receiver))throw new TypeError("Cannot write private member to an object whose class did not declare it");return kind==="a"?f.call(receiver,value):f?f.value=value:state.set(receiver,value),value};var __classPrivateFieldGet=undefined&&undefined.__classPrivateFieldGet||function(receiver,state,kind,f){if(kind==="a"&&!f)throw new TypeError("Private accessor was defined without a getter");if(typeof state==="function"?receiver!==state||!f:!state.has(receiver))throw new TypeError("Cannot read private member from an object whose class did not declare it");return kind==="m"?f:kind==="a"?f.call(receiver):f?f.value:state.get(receiver)};var _Machine_instances,_Machine_states,_Machine_edges,_Machine_edge_map,_Machine_outbound_edge_ids,_Machine_named_transitions,_Machine_actions,_Machine_reverse_actions,_Machine_reverse_action_targets,_Machine_unsubscribe_entry,_Machine_subscribe,_Machine_fire_one,_Machine_has_subscribers,_Machine_fire,_Machine_validate_hook_description,_Machine_recompute_hook_flags,_Machine_fire_hook_rejection,_Machine_fire_boundary_actions,_Machine_resolved_themes,_Machine_individual_state_config,_Machine_groups_by_depth,_Machine_compose_state_config;const{state_name_chars:state_name_chars,state_name_first_chars:state_name_first_chars,action_label_chars:action_label_chars}=constants;const empty_string_set=new Set;const hook_required_fields={hook:["from","to"],named:["from","to","action"],"global action":["action"],"any action":[],"standard transition":[],"main transition":[],"forced transition":[],"any transition":[],entry:["to"],exit:["from"],after:["from"],"after any":[],"post hook":["from","to"],"post named":["from","to","action"],"post global action":["action"],"post any action":[],"post standard transition":[],"post main transition":[],"post forced transition":[],"post any transition":[],"post entry":["to"],"post exit":["from"],"pre everything":[],everything:[],"pre post everything":[],"post everything":[]};const hook_spatial_fields=["from","to","action"];function transfer_state_properties(state_decl){state_decl.declarations.map(d=>{switch(d.key){case"shape":{state_decl.shape=d.value;break}case"color":{state_decl.color=d.value;break}case"corners":{state_decl.corners=d.value;break}case"line-style":{state_decl.lineStyle=d.value;break}case"text-color":{state_decl.textColor=d.value;break}case"background-color":{state_decl.backgroundColor=d.value;break}case"state-label":{state_decl.stateLabel=d.value;break}case"border-color":{state_decl.borderColor=d.value;break}case"image":{state_decl.image=d.value;break}case"url":{state_decl.url=d.value;break}case"state_property":{state_decl.property={name:d.name,value:d.value};break}default:{throw new JssmError(undefined,`Unknown state property: '${JSON.stringify(d)}'`)}}});return state_decl}function apply_state_style_key(state_style,key,machine){switch(key.key){case"shape":{if(state_style.shape!==undefined){throw new JssmError(machine,`cannot redefine 'shape' in state_style_condense, already defined`)}state_style.shape=key.value;return}case"color":{if(state_style.color!==undefined){throw new JssmError(machine,`cannot redefine 'color' in state_style_condense, already defined`)}state_style.color=key.value;return}case"text-color":{if(state_style.textColor!==undefined){throw new JssmError(machine,`cannot redefine 'text-color' in state_style_condense, already defined`)}state_style.textColor=key.value;return}case"corners":{if(state_style.corners!==undefined){throw new JssmError(machine,`cannot redefine 'corners' in state_style_condense, already defined`)}state_style.corners=key.value;return}case"line-style":{if(state_style.lineStyle!==undefined){throw new JssmError(machine,`cannot redefine 'line-style' in state_style_condense, already defined`)}state_style.lineStyle=key.value;return}case"background-color":{if(state_style.backgroundColor!==undefined){throw new JssmError(machine,`cannot redefine 'background-color' in state_style_condense, already defined`)}state_style.backgroundColor=key.value;return}case"state-label":{if(state_style.stateLabel!==undefined){throw new JssmError(machine,`cannot redefine 'state-label' in state_style_condense, already defined`)}state_style.stateLabel=key.value;return}case"border-color":{if(state_style.borderColor!==undefined){throw new JssmError(machine,`cannot redefine 'border-color' in state_style_condense, already defined`)}state_style.borderColor=key.value;return}case"url":{if(state_style.url!==undefined){throw new JssmError(machine,`cannot redefine 'url' in state_style_condense, already defined`)}state_style.url=key.value;return}default:{throw new JssmError(machine,`unknown state style key in condense: ${key.key}`)}}}function state_style_condense(jssk,machine){const state_style={};if(Array.isArray(jssk)){for(const[i,key]of jssk.entries()){if(typeof key!=="object"){throw new JssmError(machine,`invalid state item ${i} in state_style_condense list: ${JSON.stringify(key)}`)}apply_state_style_key(state_style,key,machine)}}else if(jssk===undefined);else{throw new JssmError(machine,"state_style_condense received a non-array")}return state_style}function merge_state_config(base,over){const merged=Object.assign({},base);for(const[key,value]of Object.entries(over)){if(value!==undefined){merged[key]=value}}return merged}function find_connected_components(states,edges){const adj=new Map;for(const name of states.keys()){adj.set(name,new Set)}for(const edge of edges){adj.get(edge.from).add(edge.to);adj.get(edge.to).add(edge.from)}const visited=new Set;const result=[];for(const start of states.keys()){if(visited.has(start)){continue}const component=[];const queue=[start];visited.add(start);const enqueue_unvisited=neighbor=>{if(visited.has(neighbor)){return}visited.add(neighbor);queue.push(neighbor)};let head=0;while(head<queue.length){const node=queue[head++];component.push(node);for(const neighbor of adj.get(node)){enqueue_unvisited(neighbor)}}result.push(component)}return result}const STOCHASTIC_DEFAULT_RUNS=1e3;const STOCHASTIC_DEFAULT_MAX_STEPS=1e3;const DEFAULT_TIME_SOURCE=()=>Date.now();const DEFAULT_TIMEOUT_SOURCE=(f,a)=>{const handle=setTimeout(f,a);const maybe_unref=handle;if(typeof maybe_unref.unref==="function"){maybe_unref.unref()}return handle};const DEFAULT_CLEAR_TIMEOUT_SOURCE=h=>clearTimeout(h);class Machine{constructor({start_states:start_states,end_states:end_states=[],failed_outputs:failed_outputs=[],initial_state:initial_state,start_states_no_enforce:start_states_no_enforce,complete:complete=[],transitions:transitions,machine_author:machine_author,machine_comment:machine_comment,machine_contributor:machine_contributor,machine_definition:machine_definition,machine_language:machine_language,machine_license:machine_license,machine_name:machine_name,machine_version:machine_version,npm_name:npm_name,default_size:default_size,state_declaration:state_declaration,property_definition:property_definition,state_property:state_property,fsl_version:fsl_version,dot_preamble:dot_preamble,arrange_declaration:arrange_declaration=[],arrange_start_declaration:arrange_start_declaration=[],arrange_end_declaration:arrange_end_declaration=[],oarrange_declaration:oarrange_declaration=[],farrange_declaration:farrange_declaration=[],theme:theme=["default"],flow:flow="down",graph_layout:graph_layout="dot",instance_name:instance_name,history:history,boundary_depth_limit:boundary_depth_limit,data:data,default_state_config:default_state_config,default_active_state_config:default_active_state_config,default_hooked_state_config:default_hooked_state_config,default_terminal_state_config:default_terminal_state_config,default_start_state_config:default_start_state_config,default_end_state_config:default_end_state_config,default_transition_config:default_transition_config,default_graph_config:default_graph_config,group_registry:group_registry,group_metadata:group_metadata,group_hooks:group_hooks,state_hooks:state_hooks,allows_override:allows_override,config_allows_override:config_allows_override,allow_islands:allow_islands,editor_config:editor_config,rng_seed:rng_seed,time_source:time_source,timeout_source:timeout_source,clear_timeout_source:clear_timeout_source}){_Machine_instances.add(this);_Machine_states.set(this,void 0);_Machine_edges.set(this,void 0);_Machine_edge_map.set(this,void 0);_Machine_outbound_edge_ids.set(this,void 0);_Machine_named_transitions.set(this,void 0);_Machine_actions.set(this,void 0);_Machine_reverse_actions.set(this,void 0);_Machine_reverse_action_targets.set(this,void 0);this._time_source=time_source!==null&&time_source!==void 0?time_source:DEFAULT_TIME_SOURCE;this._create_started=this._time_source();this._instance_name=instance_name;__classPrivateFieldSet(this,_Machine_states,new Map,"f");this._state_declarations=new Map;__classPrivateFieldSet(this,_Machine_edges,[],"f");__classPrivateFieldSet(this,_Machine_edge_map,new Map,"f");__classPrivateFieldSet(this,_Machine_outbound_edge_ids,new Map,"f");__classPrivateFieldSet(this,_Machine_named_transitions,new Map,"f");__classPrivateFieldSet(this,_Machine_actions,new Map,"f");__classPrivateFieldSet(this,_Machine_reverse_actions,new Map,"f");__classPrivateFieldSet(this,_Machine_reverse_action_targets,new Map,"f");this._state_interner=new Interner;this._action_interner=new Interner;this._state_id=NaN;this._edge_id_by_pair=new Map;this._edge_id_by_action_pair=new Map;this._edge_to_ids=[];this._start_states=new Set(start_states);this._end_states=new Set(end_states);this._failed_outputs=new Set(failed_outputs);this._machine_author=array_box_if_string(machine_author);this._machine_comment=machine_comment;this._machine_contributor=array_box_if_string(machine_contributor);this._machine_definition=machine_definition;this._machine_language=machine_language;this._machine_license=machine_license;this._machine_name=machine_name;this._machine_version=machine_version;this._npm_name=npm_name;this._default_size=default_size;this._raw_state_declaration=state_declaration||[];this._fsl_version=fsl_version;this._arrange_declaration=arrange_declaration;this._arrange_start_declaration=arrange_start_declaration;this._arrange_end_declaration=arrange_end_declaration;this._oarrange_declaration=oarrange_declaration;this._farrange_declaration=farrange_declaration;this._dot_preamble=dot_preamble;this._themes=theme;this._flow=flow;this._graph_layout=graph_layout;this._has_hooks=false;this._has_basic_hooks=false;this._has_named_hooks=false;this._has_entry_hooks=false;this._has_exit_hooks=false;this._has_after_hooks=false;this._has_global_action_hooks=false;this._has_transition_hooks=false;this._has_forced_transitions=false;this._hooks=new Map;this._named_hooks=new Map;this._entry_hooks=new Map;this._exit_hooks=new Map;this._after_hooks=new Map;this._after_any_hook=undefined;this._global_action_hooks=new Map;this._any_action_hook=undefined;this._standard_transition_hook=undefined;this._main_transition_hook=undefined;this._forced_transition_hook=undefined;this._any_transition_hook=undefined;this._has_post_hooks=false;this._has_post_basic_hooks=false;this._has_post_named_hooks=false;this._has_post_entry_hooks=false;this._has_post_exit_hooks=false;this._has_post_global_action_hooks=false;this._has_post_transition_hooks=false;this._code_allows_override=allows_override;this._config_allows_override=config_allows_override;this._allow_islands=allow_islands!==null&&allow_islands!==void 0?allow_islands:true;this._editor_config=editor_config;if(allows_override===false&&config_allows_override===true){throw new JssmError(undefined,"Code specifies no override, but config tries to permit; config may not be less strict than code")}this._post_hooks=new Map;this._post_named_hooks=new Map;this._post_entry_hooks=new Map;this._post_exit_hooks=new Map;this._post_global_action_hooks=new Map;this._post_any_action_hook=undefined;this._post_standard_transition_hook=undefined;this._post_main_transition_hook=undefined;this._post_forced_transition_hook=undefined;this._post_any_transition_hook=undefined;this._pre_everything_hook=undefined;this._everything_hook=undefined;this._pre_post_everything_hook=undefined;this._post_everything_hook=undefined;this._data=data;this._property_keys=new Set;this._default_properties=new Map;this._state_properties=new Map;this._required_properties=new Set;this._state_property_first_state=new Map;this._state_style=state_style_condense(default_state_config,this);this._active_state_style=state_style_condense(default_active_state_config,this);this._hooked_state_style=state_style_condense(default_hooked_state_config,this);this._terminal_state_style=state_style_condense(default_terminal_state_config,this);this._start_state_style=state_style_condense(default_start_state_config,this);this._end_state_style=state_style_condense(default_end_state_config,this);this._default_transition_config=default_transition_config;this._default_graph_config=default_graph_config;this._group_registry=group_registry!==null&&group_registry!==void 0?group_registry:new Map;this._group_hooks=group_hooks!==null&&group_hooks!==void 0?group_hooks:new Map;this._state_hooks=state_hooks!==null&&state_hooks!==void 0?state_hooks:new Map;this._group_metadata=new Map;if(group_metadata){group_metadata.forEach((raw,group_name)=>this._group_metadata.set(group_name,state_style_condense(raw.declarations,this)))}this._group_order=[...this._group_registry.keys()];this._state_to_groups=new Map;{const memo=new Map;for(const group_name of this._group_order){for(const member of transitive_members(this._group_registry,group_name,memo)){let bucket=this._state_to_groups.get(member);if(bucket===undefined){bucket=new Set;this._state_to_groups.set(member,bucket)}bucket.add(group_name)}}}this._static_state_config_cache=new Map;this._history_length=history||0;this._history=new circular_buffer(this._history_length);this._state_labels=new Map;this._rng_seed=rng_seed!==null&&rng_seed!==void 0?rng_seed:Date.now();this._rng=gen_splitmix32(this._rng_seed);this._timeout_source=timeout_source!==null&&timeout_source!==void 0?timeout_source:DEFAULT_TIMEOUT_SOURCE;this._clear_timeout_source=clear_timeout_source!==null&&clear_timeout_source!==void 0?clear_timeout_source:DEFAULT_CLEAR_TIMEOUT_SOURCE;this._timeout_handle=undefined;this._timeout_target=undefined;this._timeout_target_time=undefined;this._after_mapping=new Map;this._event_handlers=new Map;this._event_listener_count=0;this._firing_error=false;this._committing_transition=false;this._boundary_depth=0;this._boundary_depth_limit=boundary_depth_limit!==null&&boundary_depth_limit!==void 0?boundary_depth_limit:100;if(state_declaration){for(const state_decl of state_declaration){if(this._state_declarations.has(state_decl.state)){throw new JssmError(this,`Added the same state declaration twice: ${JSON.stringify(state_decl.state)}`)}this._state_declarations.set(state_decl.state,transfer_state_properties(state_decl))}}for(const[key,decl]of this._state_declarations){const labelled=decl.declarations.filter(d=>d.key==="state-label");if(labelled.length>1){throw new JssmError(this,`state ${key} may only have one state-label; has ${labelled.length}`)}if(labelled.length===1){this._state_labels.set(key,labelled[0].value)}}const seen_edges=new Map;const complete_set=new Set(complete);for(const tr of transitions){if(tr.from===undefined){throw new JssmError(this,`transition must define 'from': ${JSON.stringify(tr)}`)}if(tr.to===undefined){throw new JssmError(this,`transition must define 'to': ${JSON.stringify(tr)}`)}let cursor_from=__classPrivateFieldGet(this,_Machine_states,"f").get(tr.from);if(cursor_from===undefined){cursor_from={name:tr.from,from:[],to:[],complete:complete_set.has(tr.from)};this._new_state(cursor_from)}let cursor_to=__classPrivateFieldGet(this,_Machine_states,"f").get(tr.to);if(cursor_to===undefined){cursor_to={name:tr.to,from:[],to:[],complete:complete_set.has(tr.to)};this._new_state(cursor_to)}let to_slots=seen_edges.get(tr.from);if(to_slots===undefined){to_slots=new Map;seen_edges.set(tr.from,to_slots)}let slots=to_slots.get(tr.to);if(slots===undefined){slots=new Set;to_slots.set(tr.to,slots);cursor_from.to.push(tr.to);cursor_to.from.push(tr.from)}const edge_exempt=!tr.action&&tr.probability!==undefined;if(!edge_exempt){const slot=tr.action||"";if(slots.has(slot)){throw new JssmError(this,`already has ${JSON.stringify(tr.from)} to ${JSON.stringify(tr.to)}`+(tr.action?` on action ${JSON.stringify(tr.action)}`:""))}slots.add(slot)}__classPrivateFieldGet(this,_Machine_edges,"f").push(tr);const thisEdgeId=__classPrivateFieldGet(this,_Machine_edges,"f").length-1;if(tr.forced_only){this._has_forced_transitions=true}if(tr.name){if(__classPrivateFieldGet(this,_Machine_named_transitions,"f").has(tr.name)){throw new JssmError(this,`named transition "${JSON.stringify(tr.name)}" already created`)}__classPrivateFieldGet(this,_Machine_named_transitions,"f").set(tr.name,thisEdgeId)}if(tr.after_time){this._after_mapping.set(tr.from,[tr.to,tr.after_time])}let from_mapping=__classPrivateFieldGet(this,_Machine_edge_map,"f").get(tr.from);if(from_mapping===undefined){from_mapping=new Map;__classPrivateFieldGet(this,_Machine_edge_map,"f").set(tr.from,from_mapping)}if(!from_mapping.has(tr.to)){from_mapping.set(tr.to,thisEdgeId)}const from_id=this._state_interner.intern(tr.from);const to_id=this._state_interner.intern(tr.to);const pair=pair_key(from_id,to_id);if(!this._edge_id_by_pair.has(pair)){this._edge_id_by_pair.set(pair,thisEdgeId)}this._edge_to_ids[thisEdgeId]=to_id;let outbound=__classPrivateFieldGet(this,_Machine_outbound_edge_ids,"f").get(tr.from);if(!outbound){outbound=[];__classPrivateFieldGet(this,_Machine_outbound_edge_ids,"f").set(tr.from,outbound)}outbound.push(thisEdgeId);if(tr.action){let actionMap=__classPrivateFieldGet(this,_Machine_actions,"f").get(tr.action);if(!actionMap){actionMap=new Map;__classPrivateFieldGet(this,_Machine_actions,"f").set(tr.action,actionMap)}if(actionMap.has(tr.from)){throw new JssmError(this,`action ${JSON.stringify(tr.action)} already attached to origin ${JSON.stringify(tr.from)}`)}actionMap.set(tr.from,thisEdgeId);let rActionMap=__classPrivateFieldGet(this,_Machine_reverse_actions,"f").get(tr.from);if(!rActionMap){rActionMap=new Map;__classPrivateFieldGet(this,_Machine_reverse_actions,"f").set(tr.from,rActionMap)}rActionMap.set(tr.action,thisEdgeId);const action_id=this._action_interner.intern(tr.action);this._edge_id_by_action_pair.set(pair_key(action_id,from_id),thisEdgeId);if(!__classPrivateFieldGet(this,_Machine_reverse_action_targets,"f").has(tr.to)){__classPrivateFieldGet(this,_Machine_reverse_action_targets,"f").set(tr.to,new Map)}}}if(Array.isArray(property_definition)){for(const pr of property_definition){this._property_keys.add(pr.name);if(Object.prototype.hasOwnProperty.call(pr,"default_value")){this._default_properties.set(pr.name,pr.default_value)}if(Object.prototype.hasOwnProperty.call(pr,"required")&&pr.required===true){this._required_properties.add(pr.name)}}}if(Array.isArray(state_property)){for(const sp of state_property){this._state_properties.set(sp.name,sp.default_value);let j_property=sp.property,j_state=sp.state;if(j_property===undefined||j_state===undefined){const inside=JSON.parse(sp.name);j_property=inside[0];j_state=inside[1]}if(!this._state_property_first_state.has(j_property)){this._state_property_first_state.set(j_property,j_state)}}}if(initial_state){if(!__classPrivateFieldGet(this,_Machine_states,"f").has(initial_state)){throw new JssmError(this,`requested start state ${initial_state} does not exist`)}if(!start_states_no_enforce&&!start_states.includes(initial_state)){throw new JssmError(this,`requested start state ${initial_state} is not in start state list; add {start_states_no_enforce:true} to constructor options if desired`)}this._state=initial_state}else{this._state=start_states[0]}this._state_id=this._state_interner.intern(this._state);this._state_property_first_state.forEach((j_state,j_property)=>{if(!this.known_prop(j_property)){throw new JssmError(this,`State "${j_state}" has property "${j_property}" which is not globally declared`)}});const all_states_for_props=this.states();this._required_properties.forEach(dp_key=>{if(this._default_properties.has(dp_key)){throw new JssmError(this,`The property "${dp_key}" is required, but also has a default; these conflict`)}for(const s of all_states_for_props){const bound_name=name_bind_prop_and_state(dp_key,s);if(!this._state_properties.has(bound_name)){throw new JssmError(this,`State "${s}" is missing required property "${dp_key}"`)}}});if(!this.has_state(this.state())){throw new JssmError(this,`Current start state "${this.state()}" does not exist`)}for(const[ssi,ss]of start_states.entries()){if(!this.has_state(ss)){throw new JssmError(this,`Start state ${ssi} "${ss}" does not exist`)}}if(start_states.length!==this._start_states.size){throw new JssmError(this,`Start states cannot be repeated`)}if(this._allow_islands!==true){const components=find_connected_components(__classPrivateFieldGet(this,_Machine_states,"f"),__classPrivateFieldGet(this,_Machine_edges,"f"));if(this._allow_islands===false){if(components.length>1){throw new JssmError(this,`allow_islands is false but the state graph has ${components.length} disconnected components`)}}else{for(const component of components){const has_start=component.some(s=>this._start_states.has(s));if(!has_start){throw new JssmError(this,`allow_islands is 'with_start' but a connected component has no start state: [${[...component].join(", ")}]`)}}}}this._created=this._time_source();this.auto_set_state_timeout();for(const declaration of[this._arrange_declaration,this._oarrange_declaration,this._farrange_declaration]){for(const arrange_pair of declaration){for(const possibleState of arrange_pair){if(!__classPrivateFieldGet(this,_Machine_states,"f").has(possibleState)){throw new JssmError(this,`Cannot arrange state that does not exist "${possibleState}"`)}}}}}_new_state(state_config){if(__classPrivateFieldGet(this,_Machine_states,"f").has(state_config.name)){throw new JssmError(this,`state ${JSON.stringify(state_config.name)} already exists`)}__classPrivateFieldGet(this,_Machine_states,"f").set(state_config.name,state_config);this._state_interner.intern(state_config.name);return state_config.name}state(){return this._state}label_for(state){return this._state_labels.get(state)}display_text(state){var _a;return(_a=this._state_labels.get(state))!==null&&_a!==void 0?_a:state}data(){return structuredClone(this._data)}set_data(newData){const oldData=this._data;this._data=newData;if(oldData!==newData){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"data-change",{from:this._state,to:this._state,old_data:oldData,new_data:newData,cause:"set_data"})}return this}_data_ref(){return this._data}prop(name){const bound_name=name_bind_prop_and_state(name,this.state());if(this._state_properties.has(bound_name)){return this._state_properties.get(bound_name)}return this._default_properties.has(name)?this._default_properties.get(name):undefined}strict_prop(name){const bound_name=name_bind_prop_and_state(name,this.state());if(this._state_properties.has(bound_name)){return this._state_properties.get(bound_name)}if(this._default_properties.has(name)){return this._default_properties.get(name)}throw new JssmError(this,`Strictly requested a prop '${name}' which doesn't exist on current state '${this.state()}' and has no default`)}props(){const ret={};for(const p of this.known_props())ret[p]=this.prop(p);return ret}known_prop(prop_name){return this._property_keys.has(prop_name)}known_props(){return[...this._property_keys]}is_start_state(whichState){return this._start_states.has(whichState)}is_end_state(whichState){return this._end_states.has(whichState)}failed_outputs(){return[...this._failed_outputs]}is_failed_output(whichState){return this._failed_outputs.has(whichState)}is_failed(){return this._failed_outputs.has(this._state)}state_is_final(whichState){return this.state_is_terminal(whichState)||this.state_is_complete(whichState)}is_final(){return this.state_is_final(this.state())}serialize(comment){return{comment:comment,state:this._state,data:this._data,jssm_version:version,history:this._history.toArray(),history_capacity:this._history.capacity,timestamp:this._time_source()}}graph_layout(){return this._graph_layout}dot_preamble(){return this._dot_preamble}default_transition_config(){return this._default_transition_config}default_graph_config(){return this._default_graph_config}machine_author(){return this._machine_author}machine_comment(){return this._machine_comment}machine_contributor(){return this._machine_contributor}machine_definition(){return this._machine_definition}machine_language(){return this._machine_language}machine_license(){return this._machine_license}machine_name(){return this._machine_name}editor_config(){return this._editor_config}npm_name(){return this._npm_name}default_size(){return this._default_size}machine_version(){return this._machine_version}raw_state_declarations(){return this._raw_state_declaration}state_declaration(which){return this._state_declarations.get(which)}state_declarations(){return this._state_declarations}fsl_version(){return this._fsl_version}machine_state(){return{internal_state_impl_version:1,actions:__classPrivateFieldGet(this,_Machine_actions,"f"),edge_map:__classPrivateFieldGet(this,_Machine_edge_map,"f"),edges:__classPrivateFieldGet(this,_Machine_edges,"f"),named_transitions:__classPrivateFieldGet(this,_Machine_named_transitions,"f"),reverse_actions:__classPrivateFieldGet(this,_Machine_reverse_actions,"f"),state:this._state,states:__classPrivateFieldGet(this,_Machine_states,"f")}}states(){return[...__classPrivateFieldGet(this,_Machine_states,"f").keys()]}state_for(whichState){const state=__classPrivateFieldGet(this,_Machine_states,"f").get(whichState);if(state){return state}throw new JssmError(this,"No such state",{requested_state:whichState})}has_state(whichState){return __classPrivateFieldGet(this,_Machine_states,"f").has(whichState)}list_edges(){return __classPrivateFieldGet(this,_Machine_edges,"f")}list_named_transitions(){return __classPrivateFieldGet(this,_Machine_named_transitions,"f")}list_actions(){return[...__classPrivateFieldGet(this,_Machine_actions,"f").keys()]}get uses_actions(){return __classPrivateFieldGet(this,_Machine_actions,"f").size>0}get uses_forced_transitions(){return this._has_forced_transitions}get code_allows_override(){return this._code_allows_override}get config_allows_override(){return this._config_allows_override}get allows_override(){if(this._code_allows_override===false){if(this._config_allows_override===true){throw new JssmError(this,"Code specifies no override, but config tries to permit; config may not be less strict than code; should be unreachable")}return false}if(this._code_allows_override===true){return this._config_allows_override!==false}return this._config_allows_override===true}get allow_islands(){return this._allow_islands}all_themes(){return[...theme_mapping.keys()]}all_state_name_chars(){return state_name_chars}all_state_name_first_chars(){return state_name_first_chars}all_action_label_chars(){return action_label_chars}get themes(){return this._themes}set themes(to){this._themes=typeof to==="string"?[to]:to;this._static_state_config_cache.clear()}flow(){return this._flow}get_transition_by_state_names(from,to){const emg=__classPrivateFieldGet(this,_Machine_edge_map,"f").get(from);return emg?emg.get(to):undefined}lookup_transition_for(from,to){const id=this.get_transition_by_state_names(from,to);return id===undefined||id===null?undefined:__classPrivateFieldGet(this,_Machine_edges,"f")[id]}list_transitions(whichState=this.state()){return{entrances:this.list_entrances(whichState),exits:this.list_exits(whichState)}}list_entrances(whichState=this.state()){var _a,_b;const guaranteed=(_a=__classPrivateFieldGet(this,_Machine_states,"f").get(whichState))!==null&&_a!==void 0?_a:{from:undefined};return(_b=guaranteed.from)!==null&&_b!==void 0?_b:[]}list_exits(whichState=this.state()){var _a,_b;const guaranteed=(_a=__classPrivateFieldGet(this,_Machine_states,"f").get(whichState))!==null&&_a!==void 0?_a:{to:undefined};return(_b=guaranteed.to)!==null&&_b!==void 0?_b:[]}probable_exits_for(whichState){const wstate=__classPrivateFieldGet(this,_Machine_states,"f").get(whichState);if(!wstate){throw new JssmError(this,`No such state ${JSON.stringify(whichState)} in probable_exits_for`)}const legal_exits=[],probability_bearing=[];const emg=__classPrivateFieldGet(this,_Machine_edge_map,"f").get(whichState);for(const ws of wstate.to){const edge=__classPrivateFieldGet(this,_Machine_edges,"f")[emg.get(ws)];if(!edge){continue}if(edge.forced_only){continue}legal_exits.push(edge);if(edge.probability!==undefined){probability_bearing.push(edge)}}return probability_bearing.length>0?probability_bearing:legal_exits}_assert_selectable_exit_pool(whichState,exits){if(exits.length===0){return}let total=0;for(const e of exits){total+=e.probability===undefined?1:e.probability}if(total>0){return}throw new JssmError(this,`Cannot randomly select an exit from state ${JSON.stringify(whichState)}: every candidate edge has probability 0%. Note that an explicit 0% edge excludes unweighted sibling edges from the candidate pool (StoneCypher/fsl#1248)`)}probabilistic_transition(){const exits=this.probable_exits_for(this.state());this._assert_selectable_exit_pool(this.state(),exits);const selected=weighted_rand_select(exits,undefined,this._rng);return this.transition(selected.to)}probabilistic_walk(n){return[...seq(n).map(()=>{const state_was=this.state();this.probabilistic_transition();return state_was}),this.state()]}probabilistic_histo_walk(n){return histograph(this.probabilistic_walk(n))}_stochastic_one_walk(start,max_steps,exit_memo){const states=[start];const edges=[];let cur=start;let exits=exit_memo.get(cur);if(exits===undefined){exits=this.probable_exits_for(cur);this._assert_selectable_exit_pool(cur,exits);exit_memo.set(cur,exits)}let terminated=exits.length===0;for(let step=0;step<max_steps&&!terminated;step++){const selected=weighted_rand_select(exits,undefined,this._rng);edges.push(`${cur}→${selected.to}`);cur=selected.to;states.push(cur);exits=exit_memo.get(cur);if(exits===undefined){exits=this.probable_exits_for(cur);this._assert_selectable_exit_pool(cur,exits);exit_memo.set(cur,exits)}terminated=exits.length===0}return{states:states,edges:edges,length:states.length-1,terminated:terminated}}*stochastic_runs(opts={}){var _a,_b,_c,_d,_e;if(opts.seed!==undefined){this.rng_seed=opts.seed}const mode=(_a=opts.mode)!==null&&_a!==void 0?_a:"montecarlo";const max_steps=(_b=opts.max_steps)!==null&&_b!==void 0?_b:STOCHASTIC_DEFAULT_MAX_STEPS;const runs=mode==="steady_state"?1:(_e=(_c=opts.runs)!==null&&_c!==void 0?_c:(_d=this.editor_config())===null||_d===void 0?void 0:_d.stochastic_run_count)!==null&&_e!==void 0?_e:STOCHASTIC_DEFAULT_RUNS;const start=this.state();const exit_memo=new Map;for(let i=0;i<runs;i++){yield this._stochastic_one_walk(start,max_steps,exit_memo)}}stochastic_summary(opts={}){var _a,_b,_c;const mode=(_a=opts.mode)!==null&&_a!==void 0?_a:"montecarlo";const saved_seed=this._rng_seed;if(opts.seed!==undefined){this.rng_seed=opts.seed}const effective_seed=this._rng_seed;const state_visits=new Map;const edge_traversals=new Map;const path_lengths=[];let terminal_reached=0,capped=0,runs=0;try{const run_stream=this.stochastic_runs(Object.assign(Object.assign({},opts),{mode:mode}));for(const run of run_stream){runs+=1;for(const s of run.states){state_visits.set(s,((_b=state_visits.get(s))!==null&&_b!==void 0?_b:0)+1)}for(const e of run.edges){edge_traversals.set(e,((_c=edge_traversals.get(e))!==null&&_c!==void 0?_c:0)+1)}if(mode==="montecarlo"){if(run.terminated){terminal_reached+=1;path_lengths.push(run.length)}else{capped+=1}}}}finally{this.rng_seed=saved_seed}const total_visits=[...state_visits.values()].reduce((a,b)=>a+b,0);const state_visit_fraction=new Map;for(const[s,c]of state_visits){state_visit_fraction.set(s,c/total_visits)}const summary={mode:mode,runs:runs,seed:effective_seed,state_visits:state_visits,state_visit_fraction:state_visit_fraction,edge_traversals:edge_traversals};if(mode==="montecarlo"){summary.path_lengths=path_lengths;summary.terminal_reached=terminal_reached;summary.capped=capped}return summary}actions(whichState=this.state()){const wstate=__classPrivateFieldGet(this,_Machine_reverse_actions,"f").get(whichState);if(wstate){return[...wstate.keys()]}if(this.has_state(whichState)){return[]}throw new JssmError(this,`No such state ${JSON.stringify(whichState)}`)}list_states_having_action(whichState){const wstate=__classPrivateFieldGet(this,_Machine_actions,"f").get(whichState);if(wstate){return[...wstate.keys()]}throw new JssmError(this,`No such state ${JSON.stringify(whichState)}`)}list_exit_actions(whichState=this.state()){const ra_base=__classPrivateFieldGet(this,_Machine_reverse_actions,"f").get(whichState);if(!ra_base){if(this.has_state(whichState)){return[]}throw new JssmError(this,`No such state ${JSON.stringify(whichState)}`)}return[...ra_base.keys()]}probable_action_exits(whichState=this.state()){const ra_base=__classPrivateFieldGet(this,_Machine_reverse_actions,"f").get(whichState);if(!ra_base){if(this.has_state(whichState)){return[]}throw new JssmError(this,`No such state ${JSON.stringify(whichState)}`)}const exits=[];ra_base.forEach((edgeId,action)=>{exits.push({action:action,probability:__classPrivateFieldGet(this,_Machine_edges,"f")[edgeId].probability})});return exits}is_unenterable(whichState){if(!this.has_state(whichState)){throw new JssmError(this,`No such state ${whichState}`)}return this.list_entrances(whichState).length===0}has_unenterables(){return this.states().some(x=>this.is_unenterable(x))}is_terminal(){return this.state_is_terminal(this.state())}state_is_terminal(whichState){if(!this.has_state(whichState)){throw new JssmError(this,`No such state ${whichState}`)}return this.list_exits(whichState).length===0}has_terminals(){return this.states().some(x=>this.state_is_terminal(x))}isIn(groupName){return this.groupsOf(this.state()).has(groupName)}groupsOf(state){return new Set(this._state_to_groups.get(state))}groups(){return[...this._group_order]}statesIn(groupName){if(!this._group_registry.has(groupName)){throw new JssmError(this,`No such group ${JSON.stringify(groupName)}`)}return transitive_members(this._group_registry,groupName,new Map)}is_complete(){return this.state_is_complete(this.state())}state_is_complete(whichState){const wstate=__classPrivateFieldGet(this,_Machine_states,"f").get(whichState);if(wstate){return wstate.complete}throw new JssmError(this,`No such state ${JSON.stringify(whichState)}`)}has_completes(){return this.states().some(x=>this.state_is_complete(x))}on(name,filterOrFn,maybeFn){return __classPrivateFieldGet(this,_Machine_instances,"m",_Machine_subscribe).call(this,name,filterOrFn,maybeFn,false)}once(name,filterOrFn,maybeFn){return __classPrivateFieldGet(this,_Machine_instances,"m",_Machine_subscribe).call(this,name,filterOrFn,maybeFn,true)}off(name,handler){const set=this._event_handlers.get(name);if(set===undefined){return false}for(const entry of set){if(entry.handler===handler){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_unsubscribe_entry).call(this,set,entry);return true}}return false}set_hook(HookDesc){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_validate_hook_description).call(this,HookDesc);switch(HookDesc.kind){case"hook":{this._hooks.set(pair_key(this._state_interner.intern(HookDesc.from),this._state_interner.intern(HookDesc.to)),HookDesc.handler);this._has_hooks=true;this._has_basic_hooks=true;break}case"named":{const pk=pair_key(this._state_interner.intern(HookDesc.from),this._state_interner.intern(HookDesc.to));let inner=this._named_hooks.get(pk);if(inner===undefined){inner=new Map;this._named_hooks.set(pk,inner)}inner.set(this._action_interner.intern(HookDesc.action),HookDesc.handler);this._has_hooks=true;this._has_named_hooks=true;break}case"global action":{this._global_action_hooks.set(this._action_interner.intern(HookDesc.action),HookDesc.handler);this._has_hooks=true;this._has_global_action_hooks=true;break}case"any action":{this._any_action_hook=HookDesc.handler;this._has_hooks=true;break}case"standard transition":{this._standard_transition_hook=HookDesc.handler;this._has_transition_hooks=true;this._has_hooks=true;break}case"main transition":{this._main_transition_hook=HookDesc.handler;this._has_transition_hooks=true;this._has_hooks=true;break}case"forced transition":{this._forced_transition_hook=HookDesc.handler;this._has_transition_hooks=true;this._has_hooks=true;break}case"any transition":{this._any_transition_hook=HookDesc.handler;this._has_hooks=true;break}case"entry":{this._entry_hooks.set(this._state_interner.intern(HookDesc.to),HookDesc.handler);this._has_hooks=true;this._has_entry_hooks=true;break}case"exit":{this._exit_hooks.set(this._state_interner.intern(HookDesc.from),HookDesc.handler);this._has_hooks=true;this._has_exit_hooks=true;break}case"after":{this._after_hooks.set(HookDesc.from,HookDesc.handler);this._has_hooks=true;this._has_after_hooks=true;break}case"after any":{this._after_any_hook=HookDesc.handler;this._has_hooks=true;this._has_after_hooks=true;break}case"post hook":{this._post_hooks.set(pair_key(this._state_interner.intern(HookDesc.from),this._state_interner.intern(HookDesc.to)),HookDesc.handler);this._has_post_hooks=true;this._has_post_basic_hooks=true;break}case"post named":{const pk=pair_key(this._state_interner.intern(HookDesc.from),this._state_interner.intern(HookDesc.to));let inner=this._post_named_hooks.get(pk);if(inner===undefined){inner=new Map;this._post_named_hooks.set(pk,inner)}inner.set(this._action_interner.intern(HookDesc.action),HookDesc.handler);this._has_post_hooks=true;this._has_post_named_hooks=true;break}case"post global action":{this._post_global_action_hooks.set(this._action_interner.intern(HookDesc.action),HookDesc.handler);this._has_post_hooks=true;this._has_post_global_action_hooks=true;break}case"post any action":{this._post_any_action_hook=HookDesc.handler;this._has_post_hooks=true;break}case"post standard transition":{this._post_standard_transition_hook=HookDesc.handler;this._has_post_transition_hooks=true;this._has_post_hooks=true;break}case"post main transition":{this._post_main_transition_hook=HookDesc.handler;this._has_post_transition_hooks=true;this._has_post_hooks=true;break}case"post forced transition":{this._post_forced_transition_hook=HookDesc.handler;this._has_post_transition_hooks=true;this._has_post_hooks=true;break}case"post any transition":{this._post_any_transition_hook=HookDesc.handler;this._has_post_hooks=true;break}case"post entry":{this._post_entry_hooks.set(this._state_interner.intern(HookDesc.to),HookDesc.handler);this._has_post_entry_hooks=true;this._has_post_hooks=true;break}case"post exit":{this._post_exit_hooks.set(this._state_interner.intern(HookDesc.from),HookDesc.handler);this._has_post_exit_hooks=true;this._has_post_hooks=true;break}case"pre everything":{this._pre_everything_hook=HookDesc.handler;this._has_hooks=true;break}case"everything":{this._everything_hook=HookDesc.handler;this._has_hooks=true;break}case"pre post everything":{this._pre_post_everything_hook=HookDesc.handler;this._has_post_hooks=true;break}case"post everything":{this._post_everything_hook=HookDesc.handler;this._has_post_hooks=true;break}}this._static_state_config_cache.clear();__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"hook-registration",{description:HookDesc})}remove_hook(HookDesc){let removed=false;switch(HookDesc.kind){case"hook":{const fid=this._state_interner.id_of(HookDesc.from),tid=this._state_interner.id_of(HookDesc.to);removed=fid!==undefined&&tid!==undefined&&this._hooks.delete(pair_key(fid,tid));break}case"named":{const fid=this._state_interner.id_of(HookDesc.from),tid=this._state_interner.id_of(HookDesc.to),aid=this._action_interner.id_of(HookDesc.action);const inner=fid===undefined||tid===undefined?undefined:this._named_hooks.get(pair_key(fid,tid));removed=inner!==undefined&&aid!==undefined&&inner.delete(aid);break}case"global action":{const aid=this._action_interner.id_of(HookDesc.action);removed=aid!==undefined&&this._global_action_hooks.delete(aid);break}case"any action":{if(this._any_action_hook!==undefined){this._any_action_hook=undefined;removed=true}break}case"standard transition":{if(this._standard_transition_hook!==undefined){this._standard_transition_hook=undefined;removed=true}break}case"main transition":{if(this._main_transition_hook!==undefined){this._main_transition_hook=undefined;removed=true}break}case"forced transition":{if(this._forced_transition_hook!==undefined){this._forced_transition_hook=undefined;removed=true}break}case"any transition":{if(this._any_transition_hook!==undefined){this._any_transition_hook=undefined;removed=true}break}case"entry":{const tid=this._state_interner.id_of(HookDesc.to);removed=tid!==undefined&&this._entry_hooks.delete(tid);break}case"exit":{const fid=this._state_interner.id_of(HookDesc.from);removed=fid!==undefined&&this._exit_hooks.delete(fid);break}case"after":{removed=this._after_hooks.delete(HookDesc.from);break}case"after any":{if(this._after_any_hook!==undefined){this._after_any_hook=undefined;removed=true}break}case"post hook":{const fid=this._state_interner.id_of(HookDesc.from),tid=this._state_interner.id_of(HookDesc.to);removed=fid!==undefined&&tid!==undefined&&this._post_hooks.delete(pair_key(fid,tid));break}case"post named":{const fid=this._state_interner.id_of(HookDesc.from),tid=this._state_interner.id_of(HookDesc.to),aid=this._action_interner.id_of(HookDesc.action);const inner=fid===undefined||tid===undefined?undefined:this._post_named_hooks.get(pair_key(fid,tid));removed=inner!==undefined&&aid!==undefined&&inner.delete(aid);break}case"post global action":{const aid=this._action_interner.id_of(HookDesc.action);removed=aid!==undefined&&this._post_global_action_hooks.delete(aid);break}case"post any action":{if(this._post_any_action_hook!==undefined){this._post_any_action_hook=undefined;removed=true}break}case"post standard transition":{if(this._post_standard_transition_hook!==undefined){this._post_standard_transition_hook=undefined;removed=true}break}case"post main transition":{if(this._post_main_transition_hook!==undefined){this._post_main_transition_hook=undefined;removed=true}break}case"post forced transition":{if(this._post_forced_transition_hook!==undefined){this._post_forced_transition_hook=undefined;removed=true}break}case"post any transition":{if(this._post_any_transition_hook!==undefined){this._post_any_transition_hook=undefined;removed=true}break}case"post entry":{const tid=this._state_interner.id_of(HookDesc.to);removed=tid!==undefined&&this._post_entry_hooks.delete(tid);break}case"post exit":{const fid=this._state_interner.id_of(HookDesc.from);removed=fid!==undefined&&this._post_exit_hooks.delete(fid);break}case"pre everything":{if(this._pre_everything_hook!==undefined){this._pre_everything_hook=undefined;removed=true}break}case"everything":{if(this._everything_hook!==undefined){this._everything_hook=undefined;removed=true}break}case"pre post everything":{if(this._pre_post_everything_hook!==undefined){this._pre_post_everything_hook=undefined;removed=true}break}case"post everything":{if(this._post_everything_hook!==undefined){this._post_everything_hook=undefined;removed=true}break}default:{throw new JssmError(this,`Unknown hook type ${HookDesc.kind}, should be impossible`)}}if(removed){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_recompute_hook_flags).call(this);this._static_state_config_cache.clear();__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"hook-removal",{description:HookDesc})}return removed}hook(from,to,handler){this.set_hook({kind:"hook",from:from,to:to,handler:handler});return this}hook_action(from,to,action,handler){this.set_hook({kind:"named",from:from,to:to,action:action,handler:handler});return this}hook_global_action(action,handler){this.set_hook({kind:"global action",action:action,handler:handler});return this}hook_any_action(handler){this.set_hook({kind:"any action",handler:handler});return this}hook_standard_transition(handler){this.set_hook({kind:"standard transition",handler:handler});return this}hook_main_transition(handler){this.set_hook({kind:"main transition",handler:handler});return this}hook_forced_transition(handler){this.set_hook({kind:"forced transition",handler:handler});return this}hook_any_transition(handler){this.set_hook({kind:"any transition",handler:handler});return this}hook_entry(to,handler){this.set_hook({kind:"entry",to:to,handler:handler});return this}hook_exit(from,handler){this.set_hook({kind:"exit",from:from,handler:handler});return this}hook_after(from,handler){this.set_hook({kind:"after",from:from,handler:handler});return this}hook_after_any(handler){this.set_hook({kind:"after any",handler:handler});return this}post_hook(from,to,handler){this.set_hook({kind:"post hook",from:from,to:to,handler:handler});return this}post_hook_action(from,to,action,handler){this.set_hook({kind:"post named",from:from,to:to,action:action,handler:handler});return this}post_hook_global_action(action,handler){this.set_hook({kind:"post global action",action:action,handler:handler});return this}post_hook_any_action(handler){this.set_hook({kind:"post any action",handler:handler});return this}post_hook_standard_transition(handler){this.set_hook({kind:"post standard transition",handler:handler});return this}post_hook_main_transition(handler){this.set_hook({kind:"post main transition",handler:handler});return this}post_hook_forced_transition(handler){this.set_hook({kind:"post forced transition",handler:handler});return this}post_hook_any_transition(handler){this.set_hook({kind:"post any transition",handler:handler});return this}post_hook_entry(to,handler){this.set_hook({kind:"post entry",to:to,handler:handler});return this}post_hook_exit(from,handler){this.set_hook({kind:"post exit",from:from,handler:handler});return this}hook_pre_everything(handler){this.set_hook({kind:"pre everything",handler:handler});return this}hook_everything(handler){this.set_hook({kind:"everything",handler:handler});return this}hook_post_everything(handler){this.set_hook({kind:"post everything",handler:handler});return this}hook_pre_post_everything(handler){this.set_hook({kind:"pre post everything",handler:handler});return this}get rng_seed(){return this._rng_seed}set rng_seed(to){this._rng_seed=to===undefined?Date.now():to;this._rng=gen_splitmix32(this._rng_seed)}edges_between(from,to){var _a;const to_id=this._state_interner.id_of(to);if(to_id===undefined){return[]}const outbound=(_a=__classPrivateFieldGet(this,_Machine_outbound_edge_ids,"f").get(from))!==null&&_a!==void 0?_a:[];const result=[];for(const edgeId of outbound){if(this._edge_to_ids[edgeId]===to_id){result.push(__classPrivateFieldGet(this,_Machine_edges,"f")[edgeId])}}return result}override(newState,newData){const dataProvided=arguments.length>=2;if(this.allows_override){if(__classPrivateFieldGet(this,_Machine_states,"f").has(newState)){const fromState=this._state;const oldData=this._data;this._state=newState;this._state_id=this._state_interner.intern(newState);if(dataProvided){this._data=newData}__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"override",{from:fromState,to:newState,old_data:oldData,new_data:this._data});if(dataProvided&&oldData!==newData){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"data-change",{from:fromState,to:newState,old_data:oldData,new_data:newData,cause:"override"})}__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_boundary_actions).call(this,fromState,newState)}else{throw new JssmError(this,`Cannot override state to "${newState}", a state that does not exist`)}}else{throw new JssmError(this,"Code specifies no override, but config tries to permit; config may not be less strict than code")}}transition_impl(newStateOrAction,newData,wasForced,wasAction,dataProvided=newData!==undefined){if(this._committing_transition){throw new JssmError(this,"cannot start a transition from within a transition hook: the enclosing transition has not committed yet, so the inner result would be silently discarded")}let valid=false,trans_type,newState,newStateId=NaN,actionId=NaN,fromAction;if(wasForced){const to_id=this._state_interner.id_of(newStateOrAction);const edgeId=to_id===undefined?undefined:this._edge_id_by_pair.get(pair_key(this._state_id,to_id));if(edgeId!==undefined){valid=true;trans_type="forced";newState=newStateOrAction;newStateId=to_id}}else if(wasAction){const aid=this._action_interner.id_of(newStateOrAction);const edgeId=aid===undefined?undefined:this._edge_id_by_action_pair.get(pair_key(aid,this._state_id));if(edgeId!==undefined){const edge=__classPrivateFieldGet(this,_Machine_edges,"f")[edgeId];valid=true;trans_type=edge.kind;newState=edge.to;newStateId=this._edge_to_ids[edgeId];fromAction=newStateOrAction;actionId=aid}}else{const to_id=this._state_interner.id_of(newStateOrAction);const edgeId=to_id===undefined?undefined:this._edge_id_by_pair.get(pair_key(this._state_id,to_id));if(edgeId!==undefined&&!__classPrivateFieldGet(this,_Machine_edges,"f")[edgeId].forced_only){if(this._has_transition_hooks||this._has_post_transition_hooks){trans_type=__classPrivateFieldGet(this,_Machine_edges,"f")[edgeId].kind}valid=true;newState=newStateOrAction;newStateId=to_id}}const hook_args_obj=this._has_hooks||this._has_post_hooks?{data:this._data,action:fromAction,from:this._state,to:newState,next_data:newData,forced:wasForced,trans_type:trans_type}:undefined;const hook_args=hook_args_obj;if(wasAction&&this._event_listener_count!==0){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"action",{action:newStateOrAction,from:this._state,to:newState,data:this._data,next_data:newData})}const fromState=this._state;const fromStateId=this._state_id;const oldData=this._data;if(valid){if(this._has_hooks){this._committing_transition=true;try{let data_changed=false;if(this._pre_everything_hook!==undefined){const outcome=abstract_everything_hook_step(this._pre_everything_hook,Object.assign(Object.assign({},hook_args),{hook_name:"pre everything"}));if(!outcome.pass){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_hook_rejection).call(this,"pre everything",fromState,newState,fromAction,oldData,newData,wasForced);return false}if(_update_hook_fields(hook_args,outcome)){data_changed=true}}if(wasAction){const outcome=abstract_hook_step(this._any_action_hook,hook_args);if(!outcome.pass){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_hook_rejection).call(this,"any action",fromState,newState,fromAction,oldData,newData,wasForced);return false}if(_update_hook_fields(hook_args,outcome)){data_changed=true}const outcome2=abstract_hook_step(this._global_action_hooks.get(actionId),hook_args);if(!outcome2.pass){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_hook_rejection).call(this,"global action",fromState,newState,fromAction,oldData,newData,wasForced);return false}if(_update_hook_fields(hook_args,outcome2)){data_changed=true}}if(this._any_transition_hook!==undefined){const outcome=abstract_hook_step(this._any_transition_hook,hook_args);if(!outcome.pass){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_hook_rejection).call(this,"any transition",fromState,newState,fromAction,oldData,newData,wasForced);return false}if(_update_hook_fields(hook_args,outcome)){data_changed=true}}if(this._has_exit_hooks){const outcome=abstract_hook_step(this._exit_hooks.get(this._state_id),hook_args);if(!outcome.pass){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_hook_rejection).call(this,"exit",fromState,newState,fromAction,oldData,newData,wasForced);return false}if(_update_hook_fields(hook_args,outcome)){data_changed=true}}const pre_pair_id=pair_key(this._state_id,newStateId);if(this._has_named_hooks&&wasAction){const byPair=this._named_hooks.get(pre_pair_id);const nh=byPair===undefined?undefined:byPair.get(actionId);const outcome=abstract_hook_step(nh,hook_args);if(!outcome.pass){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_hook_rejection).call(this,"named",fromState,newState,fromAction,oldData,newData,wasForced);return false}if(_update_hook_fields(hook_args,outcome)){data_changed=true}}if(this._has_basic_hooks){const h=this._hooks.get(pre_pair_id);const outcome=abstract_hook_step(h,hook_args);if(!outcome.pass){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_hook_rejection).call(this,"hook",fromState,newState,fromAction,oldData,newData,wasForced);return false}if(_update_hook_fields(hook_args,outcome)){data_changed=true}}switch(trans_type){case"legal":{const outcome=abstract_hook_step(this._standard_transition_hook,hook_args);if(!outcome.pass){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_hook_rejection).call(this,"standard transition",fromState,newState,fromAction,oldData,newData,wasForced);return false}if(_update_hook_fields(hook_args,outcome)){data_changed=true}break}case"main":{const outcome=abstract_hook_step(this._main_transition_hook,hook_args);if(!outcome.pass){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_hook_rejection).call(this,"main transition",fromState,newState,fromAction,oldData,newData,wasForced);return false}if(_update_hook_fields(hook_args,outcome)){data_changed=true}break}case"forced":{const outcome=abstract_hook_step(this._forced_transition_hook,hook_args);if(!outcome.pass){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_hook_rejection).call(this,"forced transition",fromState,newState,fromAction,oldData,newData,wasForced);return false}if(_update_hook_fields(hook_args,outcome)){data_changed=true}break}}if(this._has_entry_hooks){const outcome=abstract_hook_step(this._entry_hooks.get(newStateId),hook_args);if(!outcome.pass){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_hook_rejection).call(this,"entry",fromState,newState,fromAction,oldData,newData,wasForced);return false}if(_update_hook_fields(hook_args,outcome)){data_changed=true}}if(this._everything_hook!==undefined){const outcome=abstract_everything_hook_step(this._everything_hook,Object.assign(Object.assign({},hook_args),{hook_name:"everything"}));if(!outcome.pass){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_hook_rejection).call(this,"everything",fromState,newState,fromAction,oldData,newData,wasForced);return false}if(_update_hook_fields(hook_args,outcome)){data_changed=true}}if(hook_args.to!==newState){const override_id=this._state_interner.id_of(hook_args.to);if(override_id===undefined){throw new JssmError(this,`A hook overrode the transition destination to '${hook_args.to}', which is not a state in this machine`)}newState=hook_args.to;newStateId=override_id}if(this._history_length){this._history.shove([this._state,this._data])}this._state=newState;this._state_id=newStateId;if(data_changed){this._data=hook_args.next_data}else if(dataProvided){this._data=newData}}finally{this._committing_transition=false}}else{if(this._history_length){this._history.shove([this._state,this._data])}this._state=newState;this._state_id=newStateId;if(dataProvided){this._data=newData}}}else{if(this._event_listener_count!==0){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"rejection",{from:fromState,to:newStateOrAction,action:fromAction,data:oldData,next_data:newData,reason:"invalid",forced:wasForced})}return false}if(this._has_post_hooks){if(this._pre_post_everything_hook!==undefined){this._pre_post_everything_hook(Object.assign(Object.assign({},hook_args),{hook_name:"pre post everything"}))}if(wasAction){if(this._post_any_action_hook!==undefined){this._post_any_action_hook(hook_args)}const pgah=this._post_global_action_hooks.get(actionId);if(pgah!==undefined){pgah(hook_args)}}if(this._post_any_transition_hook!==undefined){this._post_any_transition_hook(hook_args)}if(this._has_post_exit_hooks){const peh=this._post_exit_hooks.get(fromStateId);if(peh!==undefined){peh(hook_args)}}const post_pair_id=pair_key(fromStateId,newStateId);if(this._has_post_named_hooks&&wasAction){const byPair=this._post_named_hooks.get(post_pair_id);const pnh=byPair===undefined?undefined:byPair.get(actionId);if(pnh!==undefined){pnh(hook_args)}}if(this._has_post_basic_hooks){const hook=this._post_hooks.get(post_pair_id);if(hook!==undefined){hook(hook_args)}}if(trans_type==="legal"&&this._post_standard_transition_hook!==undefined){this._post_standard_transition_hook(hook_args)}if(trans_type==="main"&&this._post_main_transition_hook!==undefined){this._post_main_transition_hook(hook_args)}if(trans_type==="forced"&&this._post_forced_transition_hook!==undefined){this._post_forced_transition_hook(hook_args)}if(this._has_post_entry_hooks){const hook=this._post_entry_hooks.get(newStateId);if(hook!==undefined){hook(hook_args)}}if(this._post_everything_hook!==undefined){this._post_everything_hook(Object.assign(Object.assign({},hook_args),{hook_name:"post everything"}))}}if(this._event_listener_count!==0){const newData_after=this._data;if(__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_has_subscribers).call(this,"exit")){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"exit",{state:fromState,to:newState,action:fromAction,data:newData_after})}if(__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_has_subscribers).call(this,"transition")){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"transition",{from:fromState,to:newState,action:fromAction,data:newData_after,next_data:newData,trans_type:trans_type,forced:wasForced})}if(__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_has_subscribers).call(this,"entry")){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"entry",{state:newState,from:fromState,action:fromAction,data:newData_after})}if(oldData!==newData_after&&__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_has_subscribers).call(this,"data-change")){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"data-change",{from:fromState,to:newState,action:fromAction,old_data:oldData,new_data:newData_after,cause:"transition"})}const new_state_rec=__classPrivateFieldGet(this,_Machine_states,"f").get(newState);if(new_state_rec.to.length===0&&__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_has_subscribers).call(this,"terminal")){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"terminal",{state:newState,data:newData_after})}if(new_state_rec.complete&&__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_has_subscribers).call(this,"complete")){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"complete",{state:newState,data:newData_after})}}__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_boundary_actions).call(this,fromState,newState);this.clear_state_timeout();this.auto_set_state_timeout();return true}auto_set_state_timeout(){if(this._after_mapping.size===0){return}const after_res=this._after_mapping.get(this._state);if(after_res!==undefined){const[next_state,after_time]=after_res;this.set_state_timeout(next_state,after_time)}}get history(){return this._history.toArray()}get history_inclusive(){const ret=this._history.toArray();ret.push([this.state(),this.data()]);return ret}get history_length(){return this._history_length}set history_length(to){this._history_length=to;this._history.resize(to,true)}action(actionName,newData){return this.transition_impl(actionName,newData,false,true,arguments.length>=2)}get standard_state_style(){return this._state_style}get hooked_state_style(){return this._hooked_state_style}get start_state_style(){return this._start_state_style}get end_state_style(){return this._end_state_style}get terminal_state_style(){return this._terminal_state_style}get active_state_style(){return this._active_state_style}hook_registry(){const entries=[];const state_name=id=>this._state_interner.name_of(id);const action_name=id=>this._action_interner.name_of(id);const push_edges=(table,kind,phase)=>{table.forEach((_handler,pk)=>{const[fid,tid]=un_pair_key(pk);entries.push({kind:kind,phase:phase,target:{scope:"edge",from:state_name(fid),to:state_name(tid)}})})};const push_named=(table,kind,phase)=>{table.forEach((byAction,pk)=>{const[fid,tid]=un_pair_key(pk);const from=state_name(fid),to=state_name(tid);byAction.forEach((_handler,aid)=>{entries.push({kind:kind,phase:phase,target:{scope:"edge",from:from,to:to,action:action_name(aid)}})})})};const push_states=(table,kind,phase)=>{table.forEach((_handler,sid)=>{entries.push({kind:kind,phase:phase,target:{scope:"state",state:state_name(sid)}})})};const push_states_by_name=(table,kind,phase)=>{table.forEach((_handler,state)=>{entries.push({kind:kind,phase:phase,target:{scope:"state",state:state}})})};const push_actions=(table,kind,phase)=>{table.forEach((_handler,aid)=>{entries.push({kind:kind,phase:phase,target:{scope:"action",action:action_name(aid)}})})};const push_global=(handler,kind,phase)=>{if(handler!==undefined){entries.push({kind:kind,phase:phase,target:{scope:"global"}})}};const push_boundary=(table,enterKind,exitKind,target_of)=>{table.forEach((bh,subject)=>{if(bh.onEnter!==undefined){entries.push({kind:enterKind,phase:"post",target:target_of(subject)})}if(bh.onExit!==undefined){entries.push({kind:exitKind,phase:"post",target:target_of(subject)})}})};push_edges(this._hooks,"hook","pre");push_named(this._named_hooks,"named","pre");push_states(this._entry_hooks,"entry","pre");push_states(this._exit_hooks,"exit","pre");push_states_by_name(this._after_hooks,"after","pre");push_actions(this._global_action_hooks,"global action","pre");push_global(this._any_action_hook,"any action","pre");push_global(this._standard_transition_hook,"standard transition","pre");push_global(this._main_transition_hook,"main transition","pre");push_global(this._forced_transition_hook,"forced transition","pre");push_global(this._any_transition_hook,"any transition","pre");push_global(this._after_any_hook,"after any","pre");push_global(this._pre_everything_hook,"pre everything","pre");push_global(this._everything_hook,"everything","pre");push_edges(this._post_hooks,"post hook","post");push_named(this._post_named_hooks,"post named","post");push_states(this._post_entry_hooks,"post entry","post");push_states(this._post_exit_hooks,"post exit","post");push_actions(this._post_global_action_hooks,"post global action","post");push_global(this._post_any_action_hook,"post any action","post");push_global(this._post_standard_transition_hook,"post standard transition","post");push_global(this._post_main_transition_hook,"post main transition","post");push_global(this._post_forced_transition_hook,"post forced transition","post");push_global(this._post_any_transition_hook,"post any transition","post");push_global(this._pre_post_everything_hook,"pre post everything","post");push_global(this._post_everything_hook,"post everything","post");push_boundary(this._group_hooks,"group enter","group exit",group=>({scope:"group",group:group}));push_boundary(this._state_hooks,"state enter","state exit",state=>({scope:"state",state:state}));return entries}static _entry_touches_state(entry,state){const t=entry.target;if(t.scope==="state"){return t.state===state}if(t.scope==="edge"){return t.from===state||t.to===state}return false}static _entry_matches_edge(entry,from,to,action){const t=entry.target;if(t.scope!=="edge"){return false}if(t.from!==from||t.to!==to){return false}if(action!==undefined){return t.action===action}return true}static _entry_matches_action(entry,action){const t=entry.target;if(t.scope==="action"){return t.action===action}if(t.scope==="edge"){return t.action===action}return false}static _entry_matches_group(entry,group){const t=entry.target;if(t.scope==="group"){return t.group===group}return false}hooks_on(query){const registry=this.hook_registry();if(typeof query==="string"){return registry.filter(e=>Machine._entry_touches_state(e,query))}if("from"in query){return registry.filter(e=>Machine._entry_matches_edge(e,query.from,query.to,query.action))}if("group"in query){return registry.filter(e=>Machine._entry_matches_group(e,query.group))}return registry.filter(e=>Machine._entry_matches_action(e,query.action))}has_hook(query,phase){const matches=this.hooks_on(query);if(phase===undefined){return matches.length>0}return matches.some(e=>e.phase===phase)}state_has_hooks(state){if(!this._has_hooks&&!this._has_post_hooks&&this._state_hooks.size===0&&this._group_hooks.size===0){return false}return this.hook_registry().some(e=>Machine._entry_touches_state(e,state))}resolve_state_config(state){if(this.state()===state){const acc=__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_compose_state_config).call(this,state,true);return merge_state_config(acc,this._active_state_style)}const cached=this._static_state_config_cache.get(state);if(cached!==undefined){return cached}const resolved=__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_compose_state_config).call(this,state,false);this._static_state_config_cache.set(state,resolved);return resolved}style_for(state){return this.resolve_state_config(state)}do(actionName,newData){return this.transition_impl(actionName,newData,false,true,arguments.length>=2)}transition(newState,newData){return this.transition_impl(newState,newData,false,false,arguments.length>=2)}go(newState,newData){return this.transition_impl(newState,newData,false,false,arguments.length>=2)}force_transition(newState,newData){return this.transition_impl(newState,newData,true,false,arguments.length>=2)}current_action_for(action){const action_id=this._action_interner.id_of(action);return action_id===undefined?undefined:this._edge_id_by_action_pair.get(pair_key(action_id,this._state_id))}current_action_edge_for(action){const idx=this.current_action_for(action);if(idx===undefined||idx===null){throw new JssmError(this,`No such action ${JSON.stringify(action)}`)}return __classPrivateFieldGet(this,_Machine_edges,"f")[idx]}valid_action(action,_newData){return this.current_action_for(action)!==undefined}valid_transition(newState,_newData){const transition_for=this.lookup_transition_for(this.state(),newState);if(!transition_for){return false}if(transition_for.forced_only){return false}return true}valid_force_transition(newState,_newData){return this.lookup_transition_for(this.state(),newState)!==undefined}instance_name(){return this._instance_name}get creation_date(){return new Date(Math.floor(this.creation_timestamp))}get creation_timestamp(){return this._created}get create_start_time(){return this._create_started}set_state_timeout(next_state,after_time){if(this._timeout_handle!==undefined){throw new JssmError(this,`Asked to set a state timeout to ${next_state}:${after_time}, but already timing out to ${this._timeout_target}:${this._timeout_target_time}`)}this._timeout_handle=this._timeout_source(()=>{const from_state=this.state();this.clear_state_timeout();if(this._has_after_hooks){const ah=this._after_hooks.get(from_state);if(ah!==undefined){ah({data:this._data,next_data:this._data})}if(this._after_any_hook!==undefined){this._after_any_hook({data:this._data,next_data:this._data})}}__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"timeout",{from:from_state,to:next_state,after_time:after_time});this.go(next_state)},after_time);this._timeout_target=next_state;this._timeout_target_time=after_time}clear_state_timeout(){if(this._timeout_handle===undefined){return}this._clear_timeout_source(this._timeout_handle);this._timeout_handle=undefined;this._timeout_target=undefined;this._timeout_target_time=undefined}state_timeout_for(which_state){return this._after_mapping.get(which_state)}current_state_timeout(){return this._timeout_target===undefined?undefined:[this._timeout_target,this._timeout_target_time]}sm(template_strings,...remainder){return sm(template_strings,...remainder)}}_Machine_states=new WeakMap,_Machine_edges=new WeakMap,_Machine_edge_map=new WeakMap,_Machine_outbound_edge_ids=new WeakMap,_Machine_named_transitions=new WeakMap,_Machine_actions=new WeakMap,_Machine_reverse_actions=new WeakMap,_Machine_reverse_action_targets=new WeakMap,_Machine_instances=new WeakSet,_Machine_unsubscribe_entry=function _Machine_unsubscribe_entry(set,entry){if(set.delete(entry)){this._event_listener_count--}},_Machine_subscribe=function _Machine_subscribe(name,filterOrFn,maybeFn,once){let filter;let handler;if(typeof filterOrFn==="function"){filter=undefined;handler=filterOrFn}else{filter=filterOrFn;handler=maybeFn}if(typeof handler!=="function"){throw new JssmError(this,`event handler for "${name}" must be a function`)}let set=this._event_handlers.get(name);if(set===undefined){set=new Set;this._event_handlers.set(name,set)}const entry={handler:handler,filter:filter,once:once};set.add(entry);this._event_listener_count++;return()=>{__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_unsubscribe_entry).call(this,set,entry)}},_Machine_fire_one=function _Machine_fire_one(entry,set,name,detail){if(entry.filter!==undefined){for(const[k,v]of Object.entries(entry.filter)){if(v!==detail[k]){return}}}if(entry.once){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_unsubscribe_entry).call(this,set,entry)}try{entry.handler(detail)}catch(error){if(name==="error"||this._firing_error){console.error(error)}else{this._firing_error=true;try{__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"error",{error:error,source_event:name,source_detail:detail,handler:entry.handler})}finally{this._firing_error=false}}}},_Machine_has_subscribers=function _Machine_has_subscribers(name){const set=this._event_handlers.get(name);return set!==undefined&&set.size>0},_Machine_fire=function _Machine_fire(name,detail){const set=this._event_handlers.get(name);if(set===undefined||set.size===0){return}if(set.size===1){const only=set.values().next().value;__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_one).call(this,only,set,name,detail);return}const entries=[...set];for(const entry of entries){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_one).call(this,entry,set,name,detail)}},_Machine_validate_hook_description=function _Machine_validate_hook_description(HookDesc){const required=hook_required_fields[HookDesc.kind];if(required===undefined){throw new JssmError(this,`unknown hook kind ${JSON.stringify(HookDesc.kind)}`)}if(typeof HookDesc.handler!=="function"){throw new JssmError(this,`${HookDesc.kind} hook requires a handler function`)}for(const field of hook_spatial_fields){const needed=required.includes(field);const value=HookDesc[field];if(needed&&(typeof value!=="string"||value==="")){throw new JssmError(this,`${HookDesc.kind} hook requires '${field}' to be a non-empty string`)}if(!needed&&value!==undefined){throw new JssmError(this,`${HookDesc.kind} hook does not take '${field}'`)}}},_Machine_recompute_hook_flags=function _Machine_recompute_hook_flags(){const nested_has=m=>[...m.values()].some(inner=>inner.size>0);this._has_basic_hooks=this._hooks.size>0;this._has_named_hooks=nested_has(this._named_hooks);this._has_entry_hooks=this._entry_hooks.size>0;this._has_exit_hooks=this._exit_hooks.size>0;this._has_after_hooks=[this._after_hooks.size>0,this._after_any_hook!==undefined].includes(true);this._has_global_action_hooks=this._global_action_hooks.size>0;this._has_transition_hooks=[this._standard_transition_hook!==undefined,this._main_transition_hook!==undefined,this._forced_transition_hook!==undefined].includes(true);this._has_hooks=[this._has_basic_hooks,this._has_named_hooks,this._has_entry_hooks,this._has_exit_hooks,this._has_after_hooks,this._has_global_action_hooks,this._has_transition_hooks,this._any_action_hook!==undefined,this._any_transition_hook!==undefined,this._pre_everything_hook!==undefined,this._everything_hook!==undefined].includes(true);this._has_post_basic_hooks=this._post_hooks.size>0;this._has_post_named_hooks=nested_has(this._post_named_hooks);this._has_post_entry_hooks=this._post_entry_hooks.size>0;this._has_post_exit_hooks=this._post_exit_hooks.size>0;this._has_post_global_action_hooks=this._post_global_action_hooks.size>0;this._has_post_transition_hooks=[this._post_standard_transition_hook!==undefined,this._post_main_transition_hook!==undefined,this._post_forced_transition_hook!==undefined].includes(true);this._has_post_hooks=[this._has_post_basic_hooks,this._has_post_named_hooks,this._has_post_entry_hooks,this._has_post_exit_hooks,this._has_post_global_action_hooks,this._has_post_transition_hooks,this._post_any_action_hook!==undefined,this._post_any_transition_hook!==undefined,this._pre_post_everything_hook!==undefined,this._post_everything_hook!==undefined].includes(true)},_Machine_fire_hook_rejection=function _Machine_fire_hook_rejection(hook_name,fromState,newState,fromAction,oldData,newData,wasForced){this._committing_transition=false;__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"rejection",{from:fromState,to:newState,action:fromAction,data:oldData,next_data:newData,reason:"hook",hook_name:hook_name,forced:wasForced})},_Machine_fire_boundary_actions=function _Machine_fire_boundary_actions(prev_state,next_state){var _a,_b,_c,_d,_e,_f;if(prev_state===next_state){return}if(this._group_hooks.size===0&&this._state_hooks.size===0){return}if(this._boundary_depth>=this._boundary_depth_limit){throw new JssmError(this,`boundary-hook action cascade exceeded depth limit (${this._boundary_depth_limit}) `+`crossing from ${JSON.stringify(prev_state)} to ${JSON.stringify(next_state)} `+`(possible infinite loop)`)}const prev_groups=(_a=this._state_to_groups.get(prev_state))!==null&&_a!==void 0?_a:empty_string_set;const next_groups=(_b=this._state_to_groups.get(next_state))!==null&&_b!==void 0?_b:empty_string_set;const labels=[];for(const group of prev_groups){if(next_groups.has(group)){continue}const label=(_c=this._group_hooks.get(group))===null||_c===void 0?void 0:_c.onExit;if(label!==undefined){labels.push(label)}}const prev_state_exit=(_d=this._state_hooks.get(prev_state))===null||_d===void 0?void 0:_d.onExit;if(prev_state_exit!==undefined){labels.push(prev_state_exit)}for(const group of next_groups){if(prev_groups.has(group)){continue}const label=(_e=this._group_hooks.get(group))===null||_e===void 0?void 0:_e.onEnter;if(label!==undefined){labels.push(label)}}const next_state_enter=(_f=this._state_hooks.get(next_state))===null||_f===void 0?void 0:_f.onEnter;if(next_state_enter!==undefined){labels.push(next_state_enter)}if(labels.length===0){return}this._boundary_depth+=1;try{for(const label of labels){this.action(label)}}finally{this._boundary_depth-=1}},_Machine_resolved_themes=function _Machine_resolved_themes(){const themes=[];for(const th of this._themes){const theme_impl=theme_mapping.get(th);if(theme_impl!==undefined){themes.push(theme_impl)}}return themes.reverse()},_Machine_individual_state_config=function _Machine_individual_state_config(state){const decl=this._state_declarations.get(state);return{color:decl===null||decl===void 0?void 0:decl.color,textColor:decl===null||decl===void 0?void 0:decl.textColor,borderColor:decl===null||decl===void 0?void 0:decl.borderColor,backgroundColor:decl===null||decl===void 0?void 0:decl.backgroundColor,lineStyle:decl===null||decl===void 0?void 0:decl.lineStyle,corners:decl===null||decl===void 0?void 0:decl.corners,shape:decl===null||decl===void 0?void 0:decl.shape,image:decl===null||decl===void 0?void 0:decl.image,url:decl===null||decl===void 0?void 0:decl.url}},_Machine_groups_by_depth=function _Machine_groups_by_depth(state){const containing=[...this.groupsOf(state)];if(containing.length<2){return containing}return containing.sort((ga,gb)=>{const da=membership_distance(this._group_registry,state,ga),db=membership_distance(this._group_registry,state,gb);if(da!==db){return db-da}return this._group_order.indexOf(ga)-this._group_order.indexOf(gb)})},_Machine_compose_state_config=function _Machine_compose_state_config(state,active){const themes=__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_resolved_themes).call(this);let acc={};acc=merge_state_config(acc,base_theme.state);for(const theme of themes){if(theme.state){acc=merge_state_config(acc,theme.state)}}acc=merge_state_config(acc,this._state_style);if(this.state_has_hooks(state)){acc=merge_state_config(acc,base_theme.hooked);for(const theme of themes){if(theme.hooked){acc=merge_state_config(acc,theme.hooked)}}acc=merge_state_config(acc,this._hooked_state_style)}if(this.state_is_terminal(state)){acc=merge_state_config(acc,base_theme.terminal);for(const theme of themes){if(theme.terminal){acc=merge_state_config(acc,theme.terminal)}}acc=merge_state_config(acc,this._terminal_state_style)}if(this.is_start_state(state)){acc=merge_state_config(acc,base_theme.start);for(const theme of themes){if(theme.start){acc=merge_state_config(acc,theme.start)}}acc=merge_state_config(acc,this._start_state_style)}if(this.is_end_state(state)){acc=merge_state_config(acc,base_theme.end);for(const theme of themes){if(theme.end){acc=merge_state_config(acc,theme.end)}}acc=merge_state_config(acc,this._end_state_style)}if(active){acc=merge_state_config(acc,base_theme.active);for(const theme of themes){if(theme.active){acc=merge_state_config(acc,theme.active)}}}for(const group_name of __classPrivateFieldGet(this,_Machine_instances,"m",_Machine_groups_by_depth).call(this,state)){const group_cfg=this._group_metadata.get(group_name);if(group_cfg!==undefined){acc=merge_state_config(acc,group_cfg)}}acc=merge_state_config(acc,__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_individual_state_config).call(this,state));return acc};function sm(template_strings,...remainder){return new Machine(make(template_strings.reduce((acc,val,idx)=>`${acc}${remainder[idx-1]}${val}`)))}function from(MachineAsString,ExtraConstructorFields){const to_decorate=make(MachineAsString);if(ExtraConstructorFields!==undefined){for(const[key,value]of Object.entries(ExtraConstructorFields)){if(key==="allows_override"){to_decorate["config_allows_override"]=ExtraConstructorFields.allows_override}else{to_decorate[key]=value}}}return new Machine(to_decorate)}function is_hook_complex_result(hr){return hr!==null&&typeof hr==="object"&&typeof hr.pass==="boolean"}function _update_hook_fields(hook_args,res){if(res===HOOK_PASSED){return false}if(Object.prototype.hasOwnProperty.call(res,"state")&&res.state!==undefined){hook_args.to=res.state}let changed=false;if(Object.prototype.hasOwnProperty.call(res,"data")){hook_args.data=res.data;hook_args.next_data=res.data;changed=true}if(Object.prototype.hasOwnProperty.call(res,"next_data")){hook_args.next_data=res.next_data;changed=true}return changed}const HOOK_PASSED=Object.freeze({pass:true});const HOOK_REJECTED=Object.freeze({pass:false});function abstract_hook_step(maybe_hook,hook_args){if(maybe_hook===undefined){return HOOK_PASSED}const result=maybe_hook(hook_args);if(result===undefined){return HOOK_PASSED}if(result===true){return HOOK_PASSED}if(result===false){return HOOK_REJECTED}if(result===null){return HOOK_REJECTED}if(is_hook_complex_result(result)){return result}throw new TypeError(`Unknown hook result type ${String(result)}`)}function abstract_everything_hook_step(maybe_hook,hook_args){if(maybe_hook===undefined){return HOOK_PASSED}const result=maybe_hook(hook_args);if(result===undefined){return HOOK_PASSED}if(result===true){return HOOK_PASSED}if(result===false){return HOOK_REJECTED}if(result===null){return HOOK_REJECTED}if(is_hook_complex_result(result)){return result}throw new TypeError(`Unknown hook result type ${String(result)}`)}function wc_suffix_matches(tag_name,suffix){const lower=tag_name.toLowerCase();return lower===`fsl-${suffix}`||lower===`jssm-${suffix}`}function closest_wc(el,suffix){return el.closest(`fsl-${suffix}, jssm-${suffix}`)}function define_with_synonym(canonical_tag,synonym_tag,CanonicalClass,SynonymClass){if(!customElements.get(canonical_tag))customElements.define(canonical_tag,CanonicalClass);if(!customElements.get(synonym_tag))customElements.define(synonym_tag,SynonymClass)}function walk_path(obj,path){if(path.length===0){return obj}let cur=obj;for(const part of path.split(".")){if(cur===null||typeof cur!=="object"){return undefined}cur=cur[part]}return cur}function resolve_binding(m,expr){switch(expr){case"state":{return m.state()}case"terminal":{return m.is_terminal()}case"complete":{return m.is_complete()}case"legal-actions":{return m.list_exit_actions().map(String).join(" ")}case"data":{return m.data()}default:{if(expr.startsWith("data.")){const leaf=walk_path(m._data_ref(),expr.slice(5));return typeof leaf==="object"&&leaf!==null?structuredClone(leaf):leaf}throw new Error(`<jssm-bind>: unknown binding expression "${expr}"`)}}}function set_on_element(el,target,value){if(target.startsWith("data-")){el.setAttribute(target,String(value))}else if(target==="textContent"){el.textContent=String(value)}else{el[target]=value}}function install_bindings(host,machine){var _a,_b;const unsubs=[];const inline_nodes=host.querySelectorAll("[data-jssm-bind]");for(const el of inline_nodes){const expr=el.dataset.jssmBind;const target=(_a=el.dataset.jssmBindTo)!==null&&_a!==void 0?_a:"textContent";const apply=()=>{set_on_element(el,target,resolve_binding(machine,expr))};apply();unsubs.push(machine.on("transition",apply))}const all_direct=host.querySelectorAll(":scope > *");const config_tags=[...all_direct].filter(el=>wc_suffix_matches(el.tagName,"bind"));for(const tag of config_tags){const selector=tag.getAttribute("selector");if(selector===null||selector.length===0){throw new Error('<jssm-bind>: missing required "selector" attribute')}const expr=tag.getAttribute("source");if(expr===null||expr.length===0){throw new Error('<jssm-bind>: missing required "source" attribute')}const target=(_b=tag.getAttribute("target"))!==null&&_b!==void 0?_b:"textContent";const targets=host.querySelectorAll(selector);for(const el of targets){const apply=()=>{set_on_element(el,target,resolve_binding(machine,expr))};apply();unsubs.push(machine.on("transition",apply))}}return unsubs}class FslBind extends i{render(){return null}}FslBind.styles=i$3`:host { display: none; }`;const VALID_KINDS=new Set(["hook","named","any transition","standard transition","main transition","forced transition","entry","exit","any action","global action"]);function make_hook_proxy(ctx,machine){return{get data(){return ctx.data},set data(next){ctx.data=next},get from(){return ctx.from},get to(){return ctx.to},get action(){return ctx.action},state(){return String(machine.state())}}}function compile_inline_body$1(body,debug_id){const annotated=`//# sourceURL=jssm-hook:${debug_id}\n${body}`;const ctor=Function;return new ctor("m",annotated)}function resolve_named_handler$1(name,registry){if(registry!==undefined){const registered=registry.get(name);if(registered!==undefined){return registered}}const global=globalThis[name];if(typeof global==="function"){return global}throw new Error(`<jssm-hook handler="${name}">: handler not found in registry or globalThis`)}function normalize_hook_kind(raw){if(!raw){return"hook"}if(!VALID_KINDS.has(raw)){throw new Error(`<jssm-hook kind="${raw}">: unknown hook kind (expected one of: ${[...VALID_KINDS].join(", ")})`)}return raw}function parse_hook_element(el,debug_id,registry){var _a,_b,_c,_d;const handler_attr=el.getAttribute("handler");const raw_text=el.textContent;const body_text=(raw_text===null?"":raw_text).trim();if(handler_attr!==null&&body_text.length>0){throw new Error('<jssm-hook>: specify handler="name" OR inline body, not both')}if(handler_attr===null&&body_text.length===0){throw new Error('<jssm-hook>: must specify either handler="name" attribute or an inline body')}const user_handler=handler_attr===null?compile_inline_body$1(body_text,debug_id):resolve_named_handler$1(handler_attr,registry);const kind=normalize_hook_kind(el.getAttribute("kind"));const from=(_a=el.getAttribute("from"))!==null&&_a!==void 0?_a:undefined;const to=(_b=el.getAttribute("to"))!==null&&_b!==void 0?_b:undefined;const action=(_c=el.getAttribute("action"))!==null&&_c!==void 0?_c:undefined;const name=(_d=el.getAttribute("name"))!==null&&_d!==void 0?_d:undefined;return{kind:kind,name:name,from:from,to:to,action:action,user_handler:user_handler}}function wrap_user_handler(spec,machine){const user=spec.user_handler;return ctx=>{const proxy=make_hook_proxy(ctx,machine);const result=user(proxy);if(result===false){return false}return{pass:true,data:proxy.data}}}function build_hook_descriptor(spec,wrapped){const base={kind:spec.kind,handler:wrapped};if(spec.from!==undefined)base.from=spec.from;if(spec.to!==undefined)base.to=spec.to;if(spec.action!==undefined)base.action=spec.action;return base}function bytes_to_base64url(bytes){let binary="";for(const byte of bytes){binary+=String.fromCharCode(byte)}return btoa(binary).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function base64url_to_bytes(text){const standard=text.replace(/-/g,"+").replace(/_/g,"/");const padded=standard+"=".repeat((4-standard.length%4)%4);const binary=atob(padded);const bytes=new Uint8Array(binary.length);for(let i=0;i<binary.length;i++){bytes[i]=binary.charCodeAt(i)}return bytes}async function deflate_raw(bytes){const stream=new CompressionStream("deflate-raw");const writer=stream.writable.getWriter();void writer.write(bytes);void writer.close();return new Uint8Array(await new Response(stream.readable).arrayBuffer())}const MAX_PERMALINK_INFLATE_BYTES=5*1024*1024;async function inflate_raw(bytes){const stream=new DecompressionStream("deflate-raw");const writer=stream.writable.getWriter();void writer.write(bytes);void writer.close();const reader=stream.readable.getReader();const chunks=[];let total=0;for(;;){const{done:done,value:value}=await reader.read();if(done){break}total+=value.length;if(total>MAX_PERMALINK_INFLATE_BYTES){throw new RangeError(`permalink inflate exceeded ${MAX_PERMALINK_INFLATE_BYTES} bytes`)}chunks.push(value)}const out=new Uint8Array(total);let offset=0;for(const chunk of chunks){out.set(chunk,offset);offset+=chunk.length}return out}async function encode_machine(fsl){const utf8=(new TextEncoder).encode(fsl);const raw=bytes_to_base64url(utf8);const deflated=bytes_to_base64url(await deflate_raw(utf8));return deflated.length<raw.length?`1${deflated}`:`0${raw}`}async function decode_machine(segment){const scheme=segment[0];const bytes=base64url_to_bytes(segment.slice(1));const plain=scheme==="1"?await inflate_raw(bytes):bytes;return(new TextDecoder).decode(plain)}function safe_decode(text){try{return decodeURIComponent(text)}catch(_a){return text}}function fragment_pairs(hash){const body=hash.startsWith("#")?hash.slice(1):hash;return body.split("&").filter(Boolean).map(seg=>{const eq=seg.indexOf("=");return eq===-1?[safe_decode(seg),""]:[safe_decode(seg.slice(0,eq)),seg.slice(eq+1)]})}function read_fragment_param(hash,key){const found=fragment_pairs(hash).find(([k])=>k===key);return found?found[1]:null}function set_fragment_param(hash,key,value){const pairs=fragment_pairs(hash);const at=pairs.findIndex(([k])=>k===key);if(at===-1){pairs.push([key,value])}else{pairs[at]=[key,value]}return pairs.map(([k,v])=>`${encodeURIComponent(k)}=${v}`).join("&")}function permalink_key_for(host){var _a,_b;return(_b=(_a=host.getAttribute("uhash"))!==null&&_a!==void 0?_a:host.getAttribute("id"))!==null&&_b!==void 0?_b:null}const PERMALINK_WRITE_DEBOUNCE_MS=300;const UNOBSERVED_SEGMENT=Symbol("unobserved permalink segment");class FslPermalinkSync{constructor(host){this.key=null;this._observed=UNOBSERVED_SEGMENT;this._connected=false;this._revision=0;this._onRebuilt=()=>{this._scheduleWrite()};this._onHashChange=()=>{void this._restore()};this.host=host;host.addController(this)}hostConnected(){this._connected=true;this.key=permalink_key_for(this.host);if(this.key===null){return}void this._restore();this.host.addEventListener("fsl-machine-rebuilt",this._onRebuilt);addEventListener("hashchange",this._onHashChange)}hostDisconnected(){this._connected=false;this._revision+=1;this._observed=UNOBSERVED_SEGMENT;if(this.key!==null){this.host.removeEventListener("fsl-machine-rebuilt",this._onRebuilt);removeEventListener("hashchange",this._onHashChange)}if(this._timer!==undefined){clearTimeout(this._timer);this._timer=undefined}}async _restore(){const key=this.key;const segment=read_fragment_param(location.hash,key);if(segment===this._observed){return}this._observed=segment;this._revision+=1;if(segment===null){return}const revision=this._revision;try{const fsl=await decode_machine(segment);const currentSegment=read_fragment_param(location.hash,key);if(!this._connected||revision!==this._revision||key!==this.key||currentSegment!==segment){return}this.host.fsl=fsl}catch(_a){}}_scheduleWrite(){const revision=this._revision+=1;if(this._timer!==undefined){clearTimeout(this._timer)}this._timer=setTimeout(()=>{this._timer=undefined;void this._write(revision)},PERMALINK_WRITE_DEBOUNCE_MS)}async _write(revision){const key=this.key;const fsl=this.host.fsl;const observed=this._observed;try{const segment=await encode_machine(fsl);const currentSegment=read_fragment_param(location.hash,key);if(!this._connected||revision!==this._revision||key!==this.key||currentSegment!==observed){return}if(segment===observed){return}const fragment=set_fragment_param(location.hash,key,segment);history.replaceState(history.state,"",`#${fragment}`);this._observed=segment}catch(_a){}}}const BUILTIN_THEMES={Default:{light:{surface:"#ffffff",text:"#222222",accent:"#5b9dff",border:"#e5e5e5",muted:"#9aa0a6","json-key":"#5b3da8","json-string":"#2e7d32","json-number":"#b8860b","json-atom":"#c2185b"},dark:{surface:"#1e1e22",text:"#d6d6d6",accent:"#82aaff",border:"#2a2a2e",muted:"#5a5f66","json-key":"#82aaff","json-string":"#c3e88d","json-number":"#f78c6c","json-atom":"#c792ea"}},Solarized:{light:{surface:"#fdf6e3",text:"#657b83",accent:"#268bd2",border:"#eee8d5",muted:"#93a1a1","json-key":"#6c71c4","json-string":"#859900","json-number":"#b58900","json-atom":"#d33682"},dark:{surface:"#002b36",text:"#839496",accent:"#268bd2",border:"#073642",muted:"#586e75","json-key":"#6c71c4","json-string":"#859900","json-number":"#b58900","json-atom":"#d33682"}}};function resolve_palette(themes,name,variant){var _a;return((_a=themes[name])!==null&&_a!==void 0?_a:BUILTIN_THEMES["Default"])[variant]}function resolve_theme_mode(mode,prefers_dark){return mode==="system"?prefers_dark?"dark":"light":mode}function palette_to_vars(palette){return Object.entries(palette).map(([k,v])=>[`--fsl-color-${k}`,v])}function register_palette_properties(){if(typeof CSS==="undefined"||typeof CSS.registerProperty!=="function"){return}const default_light_vars=palette_to_vars(BUILTIN_THEMES["Default"].light);for(const[prop,value]of default_light_vars){try{CSS.registerProperty({name:prop,syntax:"<color>",inherits:true,initialValue:value})}catch(_a){}}}const JSSM_ON_EVENT_NAMES=new Set(["transition","rejection","action","entry","exit","terminal","complete","error","data-change","override","timeout","hook-registration","hook-removal"]);function parse_jssm_on_element(el){const event_attr=el.getAttribute("event");if(event_attr===null||event_attr.trim().length===0){throw new Error("<jssm-on>: missing required `event` attribute")}const event=event_attr.trim();if(!JSSM_ON_EVENT_NAMES.has(event)){throw new Error(`<jssm-on>: unknown event "${event}"`)}const handler_attr=el.getAttribute("handler");const handler_name=handler_attr!==null&&handler_attr.trim().length>0?handler_attr.trim():undefined;const body_text=el.textContent;const inline_body=body_text!==null&&body_text.trim().length>0?body_text:undefined;if(handler_name!==undefined&&inline_body!==undefined){throw new Error('<jssm-on>: specify handler="name" OR inline body, not both')}if(handler_name===undefined&&inline_body===undefined){throw new Error('<jssm-on>: must specify handler="name" or an inline body')}const once_attr=el.hasAttribute("once");const name_attr=el.getAttribute("name");const name=name_attr!==null&&name_attr.trim().length>0?name_attr.trim():undefined;let filter;if(event==="entry"||event==="exit"){const state_attr=el.getAttribute("state");if(state_attr!==null&&state_attr.length>0){filter={state:state_attr}}}else if(event==="transition"){const from_attr=el.getAttribute("from");const to_attr=el.getAttribute("to");const candidate={};if(from_attr!==null&&from_attr.length>0){candidate.from=from_attr}if(to_attr!==null&&to_attr.length>0){candidate.to=to_attr}if(Object.keys(candidate).length>0){filter=candidate}}return{event:event,handler_name:handler_name,inline_body:inline_body,once:once_attr,name:name,filter:filter}}const jssm_handler_registry=new Map;function resolve_named_handler(name){const from_registry=jssm_handler_registry.get(name);if(typeof from_registry==="function"){return from_registry}const from_global=globalThis[name];if(typeof from_global==="function"){return from_global}throw new Error(`<jssm-on>: handler "${name}" not found in registry or globalThis`)}function compile_inline_body(body,source_id){const wrapped=`${body}\n//# sourceURL=jssm-on:${source_id}`;return new Function("e",wrapped)}function resolve_fsl_source(host,fsl_attr){const sources=[];if(typeof fsl_attr==="string"&&fsl_attr.trim().length>0){sources.push({kind:"fsl-attribute",fsl:fsl_attr})}const script_child=host.querySelector('script[type="text/fsl"]');if(script_child!==null){const text=(script_child.textContent||"").trim();if(text.length>0){sources.push({kind:"fsl-script",fsl:text})}}const text_content_fsl=function extract_text_fsl(){const clone=host.cloneNode(true);clone.querySelectorAll("script").forEach(n=>n.remove());clone.querySelectorAll("*").forEach(n=>{const t=n.tagName.toLowerCase();if(t.startsWith("fsl-")||t.startsWith("jssm-")){n.remove()}});clone.querySelectorAll("[slot]").forEach(n=>n.remove());return(clone.textContent||"").trim()}();if(text_content_fsl.length>0){sources.push({kind:"text-content",fsl:text_content_fsl})}if(sources.length===0){return{fsl:undefined,provided_count:0,error:"no FSL source"}}if(sources.length>1){return{fsl:undefined,provided_count:sources.length,error:`use exactly one source (found ${sources.length}: ${sources.map(s=>s.kind).join(", ")})`}}const only=sources[0];return{fsl:only.fsl,provided_count:1,error:undefined}}function auto_mode(width,height){return width>=height?"lr":"tb"}function split_ratio(coord,start,size){if(size<=0){return 50}const pct=(coord-start)/size*100;return Math.min(85,Math.max(15,pct))}class FslInstance extends i{constructor(){super();this.fsl="";this.layout="";this.theme="light";this.themeName="Default";this.themes=BUILTIN_THEMES;this.data=undefined;this._split=50;this._tab="viz";this._autoMode="lr";this._autoListener=null;this._overrides=new Map;this.panelMode="default";this.panelModes={};this.requestedPanels=[];this._machine=undefined;this._unsubs=[];this._on_unsubscribes=[];this._reemit_unsubscribes=[];this._pending_dom_events=[];this.registry=new Map;this._installed_hooks=[];this._hook_debug_counter=0;this._action_listeners=[];this._mql=null;this._on_os_theme_change=()=>{if(this.theme==="system"){this._applyTheme()}};this._onGutterDown=e=>{e.preventDefault();document.addEventListener("pointermove",this._onGutterMove);document.addEventListener("pointerup",this._onGutterUp)};this._onGutterMove=e=>{const rect=this.renderRoot.querySelector(".workbench").getBoundingClientRect();const mode=this._effectiveMode();this._split=mode==="tb"||mode==="bt"?split_ratio(e.clientY,rect.top,rect.height):split_ratio(e.clientX,rect.left,rect.width);this.requestUpdate()};this._onGutterUp=()=>{document.removeEventListener("pointermove",this._onGutterMove);document.removeEventListener("pointerup",this._onGutterUp)};this._onGutterReset=()=>{this._split=50;this.requestUpdate()};new FslPermalinkSync(this)}get machine(){if(this._machine===undefined){throw new Error("fsl-instance: machine accessed before connection")}return this._machine}do(action,data){const result=this.machine.action(action,data);this._paint_state_reflection();this.requestUpdate();return result}transition(state,data){const result=this.machine.transition(state,data);this._paint_state_reflection();this.requestUpdate();return result}force_transition(state,data){const result=this.machine.force_transition(state,data);this._paint_state_reflection();this.requestUpdate();return result}state(){return this.machine.state()}_prefers_dark(){return typeof matchMedia==="function"&&matchMedia("(prefers-color-scheme: dark)").matches}_applyTheme(){const variant=resolve_theme_mode(this.theme,this._prefers_dark());this.setAttribute("resolved-theme",variant);const vars=palette_to_vars(resolve_palette(this.themes,this.themeName,variant));for(const[prop,value]of vars){this.style.setProperty(prop,value)}for(const editor of this.querySelectorAll('[slot="editor"]')){editor.theme=variant}}_effectiveMode(){return this.layout==="auto"?this._autoMode:this.layout}_renderTabbar(){return b`
|
|
21
|
+
*/};const s=globalThis;class i extends y$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=D(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return E}}i._$litElement$=true,i["finalized"]=true,s.litElementHydrateSupport?.({LitElement:i});const o=s.litElementPolyfillSupport;o?.({LitElement:i});(s.litElementVersions??=[]).push("4.2.2");class circular_buffer{constructor(uCapacity){if(!Number.isInteger(uCapacity)){throw new RangeError(`Capacity must be an integer, received ${uCapacity}`)}if(uCapacity<0){throw new RangeError(`Capacity must be a non-negative integer, received ${uCapacity}`)}this._values=new Array(uCapacity);this._capacity=uCapacity;this._cursor=0;this._offset=0;this._length=0}get capacity(){return this._capacity}set capacity(newSize){this.resize(newSize)}get length(){return this._length}set length(newLength){if(newLength>this._capacity){throw new RangeError(`Requested new length [${newLength}] exceeds container capacity [${this._capacity}]`)}if(newLength<0){throw new RangeError(`Requested new length [${newLength}] cannot be negative`)}if(!Number.isInteger(newLength)){throw new RangeError(`Requested new length [${newLength}] must be an integer`)}if(this._length<=newLength){return}this._length=newLength}get available(){return this._capacity-this._length}get isEmpty(){return this._length===0}get isFull(){return this._length===this._capacity}get first(){if(this.isEmpty){throw new RangeError("Cannot return first element of an empty container")}return this.at(0)}get last(){if(this.isEmpty){throw new RangeError("Cannot return last element of an empty container")}return this.at(this.length-1)}static from(i,map_fn,t){const new_array=map_fn?Array.from(i,map_fn,t):Array.from(i);const target_length=new_array.length;const ncb=new circular_buffer(target_length);ncb._values=new_array;ncb._length=target_length;return ncb}push(v){if(this.isFull){throw new RangeError(`Cannot push, structure is full to capacity`)}this._values[(this._cursor+this._length++)%this._capacity]=v;return v}shove(v){let shoved;if(this._capacity===0){throw new RangeError(`Cannot shove, structure is zero-capacity`)}if(this.isFull){shoved=this.pop()}this.push(v);return shoved}fill(x){for(let i=0;i<this._capacity;i++){this._values[i]=x}this._length=this._capacity;return this._values}indexOf(searchElement,fromIndex){const normalized=this.toArray();return normalized.indexOf(searchElement,fromIndex)}find(predicate,thisArg){return this.toArray().find(predicate,thisArg)}every(functor,thisArg){const normalized=this.toArray(),res=normalized.every(functor,thisArg);this._values=normalized;this._values.length=this._capacity;this._cursor=0;return res}some(functor,thisArg){const normalized=this.toArray(),res=normalized.some(functor,thisArg);this._values=normalized;this._values.length=this._capacity;this._cursor=0;return res}reverse(){const normalized=this.toArray();this._values=normalized.reverse();this._values.length=this._capacity;this._cursor=0;return this}clear(){const old=this.toArray();this._length=0;return old}pop(){if(this._length<=0){throw new RangeError(`Cannot pop, structure is empty`)}const cache=this.at(0);--this._length;++this._offset;++this._cursor;if(this._cursor>=this._capacity){this._cursor-=this._capacity}return cache}at(i){if(i<0){throw new RangeError(`circular_buffer does not support negative traversals; called at(${i})`)}if(!Number.isInteger(i)){throw new RangeError(`Accessors must be non-negative integers; called at(${i})`)}if(i>=this._capacity){throw new RangeError(`Requested cell ${i} exceeds container permanent capacity`)}if(i>=this._length){throw new RangeError(`Requested cell ${i} exceeds container current length`)}return this._values[(this._cursor+i)%this._capacity]}pos(i){return this.at(i-this.offset())}offset(){return this._offset}resize(newSize,preferEnd=false){this._values=this.toArray();this._cursor=0;const oldSize=this._length;this._length=Math.min(this._length,newSize);this._capacity=newSize;if(newSize>=oldSize){this._values.length=newSize}else{if(preferEnd){const tmp=this._values.slice(oldSize-newSize);this._values=tmp}else{this._values.length=newSize}}}toArray(){const startPoint=this._cursor%this._capacity;if(this._capacity>startPoint+this._length){return this._values.slice(startPoint,startPoint+this._length)}else{const base=this._values.slice(startPoint,this._capacity);base.push(...this._values.slice(0,this.length-(this._capacity-startPoint)));return base}}}class JssmError extends Error{constructor(machine,message,JEEI){const{requested_state:requested_state,source_location:source_location}=JEEI===undefined?{requested_state:undefined,source_location:undefined}:JEEI;const follow_ups=[];if(machine&&machine.state()!==undefined){follow_ups.push(`at "${machine.state()}"`)}if(requested_state!==undefined){follow_ups.push(`requested "${requested_state}"`)}const complex_msg=`${(machine===null||machine===void 0?void 0:machine.instance_name())===undefined?"":`[[${machine.instance_name()}]]: `}${message}${follow_ups.length>0?` (${follow_ups.join(", ")})`:""}`;super(complex_msg);this.name="JssmError";this.message=complex_msg;this.base_message=message;this.requested_state=requested_state;this.source_location=source_location}}function peg$subclass(child,parent){function ctor(){this.constructor=child}ctor.prototype=parent.prototype;child.prototype=new ctor}function peg$SyntaxError(message,expected,found,location){this.message=message;this.expected=expected;this.found=found;this.location=location;this.name="SyntaxError";if(typeof Error.captureStackTrace==="function"){Error.captureStackTrace(this,peg$SyntaxError)}}peg$subclass(peg$SyntaxError,Error);peg$SyntaxError.buildMessage=function(expected,found){var DESCRIBE_EXPECTATION_FNS={literal:function(expectation){return'"'+literalEscape(expectation.text)+'"'},class:function(expectation){var escapedParts="",i;for(i=0;i<expectation.parts.length;i++){escapedParts+=expectation.parts[i]instanceof Array?classEscape(expectation.parts[i][0])+"-"+classEscape(expectation.parts[i][1]):classEscape(expectation.parts[i])}return"["+(expectation.inverted?"^":"")+escapedParts+"]"},any:function(expectation){return"any character"},end:function(expectation){return"end of input"},other:function(expectation){return expectation.description}};function hex(ch){return ch.charCodeAt(0).toString(16).toUpperCase()}function literalEscape(s){return s.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(ch){return"\\x0"+hex(ch)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(ch){return"\\x"+hex(ch)})}function classEscape(s){return s.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(ch){return"\\x0"+hex(ch)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(ch){return"\\x"+hex(ch)})}function describeExpectation(expectation){return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation)}function describeExpected(expected){var descriptions=new Array(expected.length),i,j;for(i=0;i<expected.length;i++){descriptions[i]=describeExpectation(expected[i])}descriptions.sort();if(descriptions.length>0){for(i=1,j=1;i<descriptions.length;i++){if(descriptions[i-1]!==descriptions[i]){descriptions[j]=descriptions[i];j++}}descriptions.length=j}switch(descriptions.length){case 1:return descriptions[0];case 2:return descriptions[0]+" or "+descriptions[1];default:return descriptions.slice(0,-1).join(", ")+", or "+descriptions[descriptions.length-1]}}function describeFound(found){return found?'"'+literalEscape(found)+'"':"end of input"}return"Expected "+describeExpected(expected)+" but "+describeFound(found)+" found."};function peg$parse(input,options){options=options!==void 0?options:{};var peg$FAILED={},peg$startRuleFunctions={Document:peg$parseDocument},peg$startRuleFunction=peg$parseDocument,peg$c0=function(e){return e},peg$c1="default",peg$c2=peg$literalExpectation("default",false),peg$c3="ocean",peg$c4=peg$literalExpectation("ocean",false),peg$c5="modern",peg$c6=peg$literalExpectation("modern",false),peg$c7="plain",peg$c8=peg$literalExpectation("plain",false),peg$c9="bold",peg$c10=peg$literalExpectation("bold",false),peg$c11="[",peg$c12=peg$literalExpectation("[",false),peg$c13="]",peg$c14=peg$literalExpectation("]",false),peg$c15=function(ths,th){const themes=ths.map(t=>t[0]);if(th)themes.push(th);return themes},peg$c16=function(th){return[th]},peg$c17="box3d",peg$c18=peg$literalExpectation("box3d",false),peg$c19="polygon",peg$c20=peg$literalExpectation("polygon",false),peg$c21="ellipse",peg$c22=peg$literalExpectation("ellipse",false),peg$c23="oval",peg$c24=peg$literalExpectation("oval",false),peg$c25="circle",peg$c26=peg$literalExpectation("circle",false),peg$c27="point",peg$c28=peg$literalExpectation("point",false),peg$c29="egg",peg$c30=peg$literalExpectation("egg",false),peg$c31="triangle",peg$c32=peg$literalExpectation("triangle",false),peg$c33="plaintext",peg$c34=peg$literalExpectation("plaintext",false),peg$c35="diamond",peg$c36=peg$literalExpectation("diamond",false),peg$c37="trapezium",peg$c38=peg$literalExpectation("trapezium",false),peg$c39="parallelogram",peg$c40=peg$literalExpectation("parallelogram",false),peg$c41="house",peg$c42=peg$literalExpectation("house",false),peg$c43="pentagon",peg$c44=peg$literalExpectation("pentagon",false),peg$c45="hexagon",peg$c46=peg$literalExpectation("hexagon",false),peg$c47="septagon",peg$c48=peg$literalExpectation("septagon",false),peg$c49="octagon",peg$c50=peg$literalExpectation("octagon",false),peg$c51="doublecircle",peg$c52=peg$literalExpectation("doublecircle",false),peg$c53="doubleoctagon",peg$c54=peg$literalExpectation("doubleoctagon",false),peg$c55="tripleoctagon",peg$c56=peg$literalExpectation("tripleoctagon",false),peg$c57="invtriangle",peg$c58=peg$literalExpectation("invtriangle",false),peg$c59="invtrapezium",peg$c60=peg$literalExpectation("invtrapezium",false),peg$c61="invhouse",peg$c62=peg$literalExpectation("invhouse",false),peg$c63="Mdiamond",peg$c64=peg$literalExpectation("Mdiamond",false),peg$c65="Msquare",peg$c66=peg$literalExpectation("Msquare",false),peg$c67="Mcircle",peg$c68=peg$literalExpectation("Mcircle",false),peg$c69="rectangle",peg$c70=peg$literalExpectation("rectangle",false),peg$c71="rect",peg$c72=peg$literalExpectation("rect",false),peg$c73="square",peg$c74=peg$literalExpectation("square",false),peg$c75="star",peg$c76=peg$literalExpectation("star",false),peg$c77="none",peg$c78=peg$literalExpectation("none",false),peg$c79="underline",peg$c80=peg$literalExpectation("underline",false),peg$c81="cylinder",peg$c82=peg$literalExpectation("cylinder",false),peg$c83="note",peg$c84=peg$literalExpectation("note",false),peg$c85="tab",peg$c86=peg$literalExpectation("tab",false),peg$c87="folder",peg$c88=peg$literalExpectation("folder",false),peg$c89="box",peg$c90=peg$literalExpectation("box",false),peg$c91="component",peg$c92=peg$literalExpectation("component",false),peg$c93="promoter",peg$c94=peg$literalExpectation("promoter",false),peg$c95="cds",peg$c96=peg$literalExpectation("cds",false),peg$c97="terminator",peg$c98=peg$literalExpectation("terminator",false),peg$c99="utr",peg$c100=peg$literalExpectation("utr",false),peg$c101="primersite",peg$c102=peg$literalExpectation("primersite",false),peg$c103="restrictionsite",peg$c104=peg$literalExpectation("restrictionsite",false),peg$c105="fivepoverhang",peg$c106=peg$literalExpectation("fivepoverhang",false),peg$c107="threepoverhang",peg$c108=peg$literalExpectation("threepoverhang",false),peg$c109="noverhang",peg$c110=peg$literalExpectation("noverhang",false),peg$c111="assembly",peg$c112=peg$literalExpectation("assembly",false),peg$c113="signature",peg$c114=peg$literalExpectation("signature",false),peg$c115="insulator",peg$c116=peg$literalExpectation("insulator",false),peg$c117="ribosite",peg$c118=peg$literalExpectation("ribosite",false),peg$c119="rnastab",peg$c120=peg$literalExpectation("rnastab",false),peg$c121="proteasesite",peg$c122=peg$literalExpectation("proteasesite",false),peg$c123="proteinstab",peg$c124=peg$literalExpectation("proteinstab",false),peg$c125="rpromoter",peg$c126=peg$literalExpectation("rpromoter",false),peg$c127="rarrow",peg$c128=peg$literalExpectation("rarrow",false),peg$c129="larrow",peg$c130=peg$literalExpectation("larrow",false),peg$c131="lpromoter",peg$c132=peg$literalExpectation("lpromoter",false),peg$c133="record",peg$c134=peg$literalExpectation("record",false),peg$c135=peg$otherExpectation("forward light arrow ->"),peg$c136="->",peg$c137=peg$literalExpectation("->",false),peg$c138="→",peg$c139=peg$literalExpectation("→",false),peg$c140=function(){return"->"},peg$c141=peg$otherExpectation("two way light arrow <->"),peg$c142="<->",peg$c143=peg$literalExpectation("<->",false),peg$c144="↔",peg$c145=peg$literalExpectation("↔",false),peg$c146=function(){return"<->"},peg$c147=peg$otherExpectation("back light arrow <-"),peg$c148="<-",peg$c149=peg$literalExpectation("<-",false),peg$c150="←",peg$c151=peg$literalExpectation("←",false),peg$c152=function(){return"<-"},peg$c153=peg$otherExpectation("forward fat arrow =>"),peg$c154="=>",peg$c155=peg$literalExpectation("=>",false),peg$c156="⇒",peg$c157=peg$literalExpectation("⇒",false),peg$c158=function(){return"=>"},peg$c159=peg$otherExpectation("two way fat arrow <=>"),peg$c160="<=>",peg$c161=peg$literalExpectation("<=>",false),peg$c162="⇔",peg$c163=peg$literalExpectation("⇔",false),peg$c164=function(){return"<=>"},peg$c165=peg$otherExpectation("back fat arrow <="),peg$c166="<=",peg$c167=peg$literalExpectation("<=",false),peg$c168="⇐",peg$c169=peg$literalExpectation("⇐",false),peg$c170=function(){return"<="},peg$c171=peg$otherExpectation("forward tilde arrow ~>"),peg$c172="~>",peg$c173=peg$literalExpectation("~>",false),peg$c174="↛",peg$c175=peg$literalExpectation("↛",false),peg$c176=function(){return"~>"},peg$c177=peg$otherExpectation("two way tilde arrow <~>"),peg$c178="<~>",peg$c179=peg$literalExpectation("<~>",false),peg$c180="↮",peg$c181=peg$literalExpectation("↮",false),peg$c182=function(){return"<~>"},peg$c183=peg$otherExpectation("back tilde arrow <~"),peg$c184="<~",peg$c185=peg$literalExpectation("<~",false),peg$c186="↚",peg$c187=peg$literalExpectation("↚",false),peg$c188=function(){return"<~"},peg$c189=peg$otherExpectation("light fat arrow <-=>"),peg$c190="<-=>",peg$c191=peg$literalExpectation("<-=>",false),peg$c192="←⇒",peg$c193=peg$literalExpectation("←⇒",false),peg$c194=function(){return"<-=>"},peg$c195="←=>",peg$c196=peg$literalExpectation("←=>",false),peg$c197="<-⇒",peg$c198=peg$literalExpectation("<-⇒",false),peg$c199=peg$otherExpectation("light tilde arrow <-~>"),peg$c200="<-~>",peg$c201=peg$literalExpectation("<-~>",false),peg$c202="←↛",peg$c203=peg$literalExpectation("←↛",false),peg$c204=function(){return"<-~>"},peg$c205="←~>",peg$c206=peg$literalExpectation("←~>",false),peg$c207="<-↛",peg$c208=peg$literalExpectation("<-↛",false),peg$c209=peg$otherExpectation("fat light arrow <=->"),peg$c210="<=->",peg$c211=peg$literalExpectation("<=->",false),peg$c212="⇐→",peg$c213=peg$literalExpectation("⇐→",false),peg$c214=function(){return"<=->"},peg$c215="⇐->",peg$c216=peg$literalExpectation("⇐->",false),peg$c217="<=→",peg$c218=peg$literalExpectation("<=→",false),peg$c219=peg$otherExpectation("fat tilde arrow <=~>"),peg$c220="<=~>",peg$c221=peg$literalExpectation("<=~>",false),peg$c222="⇐↛",peg$c223=peg$literalExpectation("⇐↛",false),peg$c224=function(){return"<=~>"},peg$c225="⇐~>",peg$c226=peg$literalExpectation("⇐~>",false),peg$c227="<=↛",peg$c228=peg$literalExpectation("<=↛",false),peg$c229=peg$otherExpectation("tilde light arrow <~->"),peg$c230="<~->",peg$c231=peg$literalExpectation("<~->",false),peg$c232="↚→",peg$c233=peg$literalExpectation("↚→",false),peg$c234=function(){return"<~->"},peg$c235="↚->",peg$c236=peg$literalExpectation("↚->",false),peg$c237="<~→",peg$c238=peg$literalExpectation("<~→",false),peg$c239=peg$otherExpectation("tilde fat arrow <~=>"),peg$c240="<~=>",peg$c241=peg$literalExpectation("<~=>",false),peg$c242="↚⇒",peg$c243=peg$literalExpectation("↚⇒",false),peg$c244=function(){return"<~=>"},peg$c245="↚=>",peg$c246=peg$literalExpectation("↚=>",false),peg$c247="<~⇒",peg$c248=peg$literalExpectation("<~⇒",false),peg$c249=peg$otherExpectation("light arrow"),peg$c250=peg$otherExpectation("fat arrow"),peg$c251=peg$otherExpectation("tilde arrow"),peg$c252=peg$otherExpectation("mixed arrow"),peg$c253=peg$otherExpectation("arrow"),peg$c254="true",peg$c255=peg$literalExpectation("true",false),peg$c256=function(){return true},peg$c257="false",peg$c258=peg$literalExpectation("false",false),peg$c259=function(){return false},peg$c260="regular",peg$c261=peg$literalExpectation("regular",false),peg$c262="rounded",peg$c263=peg$literalExpectation("rounded",false),peg$c264="lined",peg$c265=peg$literalExpectation("lined",false),peg$c266="solid",peg$c267=peg$literalExpectation("solid",false),peg$c268="dotted",peg$c269=peg$literalExpectation("dotted",false),peg$c270="dashed",peg$c271=peg$literalExpectation("dashed",false),peg$c300="null",peg$c301=peg$literalExpectation("null",false),peg$c302=function(){return null},peg$c303="undefined",peg$c304=peg$literalExpectation("undefined",false),peg$c305=function(){return undefined},peg$c312=peg$otherExpectation("action label"),peg$c314=/^[\n\r\u2028\u2029]/,peg$c315=peg$classExpectation(["\n","\r","\u2028","\u2029"],false,false),peg$c316=peg$otherExpectation("block comment"),peg$c317="/*",peg$c318=peg$literalExpectation("/*",false),peg$c319="*/",peg$c320=peg$literalExpectation("*/",false),peg$c321=peg$anyExpectation(),peg$c322=peg$otherExpectation("line comment"),peg$c323="//",peg$c324=peg$literalExpectation("//",false),peg$c325=peg$otherExpectation("whitespace"),peg$c328=peg$otherExpectation("string"),peg$c331=/^[0-9a-zA-Z.+_\^()*&$#@!?,\x80-\uFFFF]/,peg$c332=peg$classExpectation([["0","9"],["a","z"],["A","Z"],".","+","_","^","(",")","*","&","$","#","@","!","?",",",["",""]],false,false),peg$c333=peg$otherExpectation("atom"),peg$c335=peg$otherExpectation("label"),peg$c336="0",peg$c337=peg$literalExpectation("0",false),peg$c338=/^[0-9]/,peg$c339=peg$classExpectation([["0","9"]],false,false),peg$c340=/^[1-9]/,peg$c341=peg$classExpectation([["1","9"]],false,false),peg$c342=/^[0-9a-f]/i,peg$c343=peg$classExpectation([["0","9"],["a","f"]],false,true),peg$c344=/^[0-1]/,peg$c345=peg$classExpectation([["0","1"]],false,false),peg$c346=/^[0-7]/,peg$c347=peg$classExpectation([["0","7"]],false,false),peg$c348=peg$otherExpectation("nonneg number"),peg$c349=".",peg$c350=peg$literalExpectation(".",false),peg$c351=function(){return parseFloat(text())},peg$c352=peg$otherExpectation("number"),peg$c353=function(literal){return literal},peg$c354="NaN",peg$c355=peg$literalExpectation("NaN",false),peg$c356=function(){return NaN},peg$c357="NegativeInfinity",peg$c358=peg$literalExpectation("NegativeInfinity",false),peg$c359=function(){return Number.NEGATIVE_INFINITY},peg$c360="NegativeInf",peg$c361=peg$literalExpectation("NegativeInf",false),peg$c362="NegInfinity",peg$c363=peg$literalExpectation("NegInfinity",false),peg$c364="NegInf",peg$c365=peg$literalExpectation("NegInf",false),peg$c366="NInfinity",peg$c367=peg$literalExpectation("NInfinity",false),peg$c368="NInf",peg$c369=peg$literalExpectation("NInf",false),peg$c370="-∞",peg$c371=peg$literalExpectation("-∞",false),peg$c372="PInfinity",peg$c373=peg$literalExpectation("PInfinity",false),peg$c374=function(){return Number.POSITIVE_INFINITY},peg$c375="Infinity",peg$c376=peg$literalExpectation("Infinity",false),peg$c377="PInf",peg$c378=peg$literalExpectation("PInf",false),peg$c379="Inf",peg$c380=peg$literalExpectation("Inf",false),peg$c381="∞",peg$c382=peg$literalExpectation("∞",false),peg$c383="Epsilon",peg$c384=peg$literalExpectation("Epsilon",false),peg$c385=function(){return Number.EPSILON},peg$c386="𝜀",peg$c387=peg$literalExpectation("𝜀",false),peg$c388="ε",peg$c389=peg$literalExpectation("ε",false),peg$c390="Pi",peg$c391=peg$literalExpectation("Pi",false),peg$c392=function(){return Math.PI},peg$c393="𝜋",peg$c394=peg$literalExpectation("𝜋",false),peg$c395="π",peg$c396=peg$literalExpectation("π",false),peg$c397="EulerNumber",peg$c398=peg$literalExpectation("EulerNumber",false),peg$c399=function(){return Math.E},peg$c400="E",peg$c401=peg$literalExpectation("E",false),peg$c402="e",peg$c403=peg$literalExpectation("e",false),peg$c404="Ɛ",peg$c405=peg$literalExpectation("Ɛ",false),peg$c406="ℇ",peg$c407=peg$literalExpectation("ℇ",false),peg$c408="Root2",peg$c409=peg$literalExpectation("Root2",false),peg$c410=function(){return Math.SQRT2},peg$c411="RootHalf",peg$c412=peg$literalExpectation("RootHalf",false),peg$c413=function(){return Math.SQRT1_2},peg$c414="Ln2",peg$c415=peg$literalExpectation("Ln2",false),peg$c416=function(){return Math.LN2},peg$c417="NatLog2",peg$c418=peg$literalExpectation("NatLog2",false),peg$c419="Ln10",peg$c420=peg$literalExpectation("Ln10",false),peg$c421=function(){return Math.LN10},peg$c422="NatLog10",peg$c423=peg$literalExpectation("NatLog10",false),peg$c424="Log2E",peg$c425=peg$literalExpectation("Log2E",false),peg$c426=function(){return Math.LOG2E},peg$c427="Log10E",peg$c428=peg$literalExpectation("Log10E",false),peg$c429=function(){return Math.LOG10E},peg$c430="MaxSafeInt",peg$c431=peg$literalExpectation("MaxSafeInt",false),peg$c432=function(){return Number.MAX_SAFE_INTEGER},peg$c433="MinSafeInt",peg$c434=peg$literalExpectation("MinSafeInt",false),peg$c435=function(){return Number.MIN_SAFE_INTEGER},peg$c436="MaxPosNum",peg$c437=peg$literalExpectation("MaxPosNum",false),peg$c438=function(){return Number.MAX_VALUE},peg$c439="MinPosNum",peg$c440=peg$literalExpectation("MinPosNum",false),peg$c441=function(){return Number.MIN_VALUE},peg$c442="Phi",peg$c443=peg$literalExpectation("Phi",false),peg$c444=function(){return 1.618033988749895},peg$c445="𝜑",peg$c446=peg$literalExpectation("𝜑",false),peg$c447="𝜙",peg$c448=peg$literalExpectation("𝜙",false),peg$c449="ϕ",peg$c450=peg$literalExpectation("ϕ",false),peg$c451="φ",peg$c452=peg$literalExpectation("φ",false),peg$c453="EulerConstant",peg$c454=peg$literalExpectation("EulerConstant",false),peg$c455=function(){return.5772156649015329},peg$c456="γ",peg$c457=peg$literalExpectation("γ",false),peg$c458="𝛾",peg$c459=peg$literalExpectation("𝛾",false),peg$c460=peg$literalExpectation("e",true),peg$c461=/^[+\-]/,peg$c462=peg$classExpectation(["+","-"],false,false),peg$c463="0x",peg$c464=peg$literalExpectation("0x",true),peg$c465=function(digits){return parseInt(digits,16)},peg$c466="0b",peg$c467=peg$literalExpectation("0b",true),peg$c468=function(digits){return parseInt(digits,2)},peg$c469="0o",peg$c470=peg$literalExpectation("0o",true),peg$c471=function(digits){return parseInt(digits,8)},peg$c472=function(major,minor,patch){const node={major:parseInt(major,10),minor:parseInt(minor,10),patch:parseInt(patch,10),full:text()};if(options.locations){node.loc=location()}return node},peg$c483="http://",peg$c484=peg$literalExpectation("http://",false),peg$c485="https://",peg$c486=peg$literalExpectation("https://",false),peg$c487=/^[a-zA-Z0-9!*'():;@&=+$,\/?#[\]_.~\-]/,peg$c488=peg$classExpectation([["a","z"],["A","Z"],["0","9"],"!","*","'","(",")",":",";","@","&","=","+","$",",","/","?","#","[","]","_",".","~","-"],false,false),peg$c489=function(protocol){return text()},peg$c490="aliceblue",peg$c491=peg$literalExpectation("aliceblue",false),peg$c492=function(){return"#f0f8ffff"},peg$c493="AliceBlue",peg$c494=peg$literalExpectation("AliceBlue",false),peg$c495="antiquewhite",peg$c496=peg$literalExpectation("antiquewhite",false),peg$c497=function(){return"#faebd7ff"},peg$c498="AntiqueWhite",peg$c499=peg$literalExpectation("AntiqueWhite",false),peg$c500="aquamarine",peg$c501=peg$literalExpectation("aquamarine",false),peg$c502=function(){return"#7fffd4ff"},peg$c503="Aquamarine",peg$c504=peg$literalExpectation("Aquamarine",false),peg$c505="aqua",peg$c506=peg$literalExpectation("aqua",false),peg$c507=function(){return"#00ffffff"},peg$c508="Aqua",peg$c509=peg$literalExpectation("Aqua",false),peg$c510="azure",peg$c511=peg$literalExpectation("azure",false),peg$c512=function(){return"#f0ffffff"},peg$c513="Azure",peg$c514=peg$literalExpectation("Azure",false),peg$c515="beige",peg$c516=peg$literalExpectation("beige",false),peg$c517=function(){return"#f5f5dcff"},peg$c518="Beige",peg$c519=peg$literalExpectation("Beige",false),peg$c520="bisque",peg$c521=peg$literalExpectation("bisque",false),peg$c522=function(){return"#ffe4c4ff"},peg$c523="Bisque",peg$c524=peg$literalExpectation("Bisque",false),peg$c525="black",peg$c526=peg$literalExpectation("black",false),peg$c527=function(){return"#000000ff"},peg$c528="Black",peg$c529=peg$literalExpectation("Black",false),peg$c530="blanchedalmond",peg$c531=peg$literalExpectation("blanchedalmond",false),peg$c532=function(){return"#ffebcdff"},peg$c533="BlanchedAlmond",peg$c534=peg$literalExpectation("BlanchedAlmond",false),peg$c535="blueviolet",peg$c536=peg$literalExpectation("blueviolet",false),peg$c537=function(){return"#8a2be2ff"},peg$c538="BlueViolet",peg$c539=peg$literalExpectation("BlueViolet",false),peg$c540="blue",peg$c541=peg$literalExpectation("blue",false),peg$c542=function(){return"#0000ffff"},peg$c543="Blue",peg$c544=peg$literalExpectation("Blue",false),peg$c545="brown",peg$c546=peg$literalExpectation("brown",false),peg$c547=function(){return"#a52a2aff"},peg$c548="Brown",peg$c549=peg$literalExpectation("Brown",false),peg$c550="burlywood",peg$c551=peg$literalExpectation("burlywood",false),peg$c552=function(){return"#deb887ff"},peg$c553="BurlyWood",peg$c554=peg$literalExpectation("BurlyWood",false),peg$c555="cadetblue",peg$c556=peg$literalExpectation("cadetblue",false),peg$c557=function(){return"#5f9ea0ff"},peg$c558="CadetBlue",peg$c559=peg$literalExpectation("CadetBlue",false),peg$c560="chartreuse",peg$c561=peg$literalExpectation("chartreuse",false),peg$c562=function(){return"#7fff00ff"},peg$c563="Chartreuse",peg$c564=peg$literalExpectation("Chartreuse",false),peg$c565="chocolate",peg$c566=peg$literalExpectation("chocolate",false),peg$c567=function(){return"#d2691eff"},peg$c568="Chocolate",peg$c569=peg$literalExpectation("Chocolate",false),peg$c570="coral",peg$c571=peg$literalExpectation("coral",false),peg$c572=function(){return"#ff7f50ff"},peg$c573="Coral",peg$c574=peg$literalExpectation("Coral",false),peg$c575="cornflowerblue",peg$c576=peg$literalExpectation("cornflowerblue",false),peg$c577=function(){return"#6495edff"},peg$c578="CornflowerBlue",peg$c579=peg$literalExpectation("CornflowerBlue",false),peg$c580="cornsilk",peg$c581=peg$literalExpectation("cornsilk",false),peg$c582=function(){return"#fff8dcff"},peg$c583="Cornsilk",peg$c584=peg$literalExpectation("Cornsilk",false),peg$c585="crimson",peg$c586=peg$literalExpectation("crimson",false),peg$c587=function(){return"#dc143cff"},peg$c588="Crimson",peg$c589=peg$literalExpectation("Crimson",false),peg$c590="cyan",peg$c591=peg$literalExpectation("cyan",false),peg$c592="Cyan",peg$c593=peg$literalExpectation("Cyan",false),peg$c594="darkblue",peg$c595=peg$literalExpectation("darkblue",false),peg$c596=function(){return"#00008bff"},peg$c597="DarkBlue",peg$c598=peg$literalExpectation("DarkBlue",false),peg$c599="darkcyan",peg$c600=peg$literalExpectation("darkcyan",false),peg$c601=function(){return"#008b8bff"},peg$c602="DarkCyan",peg$c603=peg$literalExpectation("DarkCyan",false),peg$c604="darkgoldenrod",peg$c605=peg$literalExpectation("darkgoldenrod",false),peg$c606=function(){return"#b8860bff"},peg$c607="DarkGoldenRod",peg$c608=peg$literalExpectation("DarkGoldenRod",false),peg$c609="darkgray",peg$c610=peg$literalExpectation("darkgray",false),peg$c611=function(){return"#a9a9a9ff"},peg$c612="DarkGray",peg$c613=peg$literalExpectation("DarkGray",false),peg$c614="darkgrey",peg$c615=peg$literalExpectation("darkgrey",false),peg$c616="DarkGrey",peg$c617=peg$literalExpectation("DarkGrey",false),peg$c618="darkgreen",peg$c619=peg$literalExpectation("darkgreen",false),peg$c620=function(){return"#006400ff"},peg$c621="DarkGreen",peg$c622=peg$literalExpectation("DarkGreen",false),peg$c623="darkkhaki",peg$c624=peg$literalExpectation("darkkhaki",false),peg$c625=function(){return"#bdb76bff"},peg$c626="DarkKhaki",peg$c627=peg$literalExpectation("DarkKhaki",false),peg$c628="darkmagenta",peg$c629=peg$literalExpectation("darkmagenta",false),peg$c630=function(){return"#8b008bff"},peg$c631="DarkMagenta",peg$c632=peg$literalExpectation("DarkMagenta",false),peg$c633="darkolivegreen",peg$c634=peg$literalExpectation("darkolivegreen",false),peg$c635=function(){return"#556b2fff"},peg$c636="DarkOliveGreen",peg$c637=peg$literalExpectation("DarkOliveGreen",false),peg$c638="darkorange",peg$c639=peg$literalExpectation("darkorange",false),peg$c640=function(){return"#ff8c00ff"},peg$c641="Darkorange",peg$c642=peg$literalExpectation("Darkorange",false),peg$c643="darkorchid",peg$c644=peg$literalExpectation("darkorchid",false),peg$c645=function(){return"#9932ccff"},peg$c646="DarkOrchid",peg$c647=peg$literalExpectation("DarkOrchid",false),peg$c648="darkred",peg$c649=peg$literalExpectation("darkred",false),peg$c650=function(){return"#8b0000ff"},peg$c651="DarkRed",peg$c652=peg$literalExpectation("DarkRed",false),peg$c653="darksalmon",peg$c654=peg$literalExpectation("darksalmon",false),peg$c655=function(){return"#e9967aff"},peg$c656="DarkSalmon",peg$c657=peg$literalExpectation("DarkSalmon",false),peg$c658="darkseagreen",peg$c659=peg$literalExpectation("darkseagreen",false),peg$c660=function(){return"#8fbc8fff"},peg$c661="DarkSeaGreen",peg$c662=peg$literalExpectation("DarkSeaGreen",false),peg$c663="darkslateblue",peg$c664=peg$literalExpectation("darkslateblue",false),peg$c665=function(){return"#483d8bff"},peg$c666="DarkSlateBlue",peg$c667=peg$literalExpectation("DarkSlateBlue",false),peg$c668="darkslategray",peg$c669=peg$literalExpectation("darkslategray",false),peg$c670=function(){return"#2f4f4fff"},peg$c671="DarkSlateGray",peg$c672=peg$literalExpectation("DarkSlateGray",false),peg$c673="darkslategrey",peg$c674=peg$literalExpectation("darkslategrey",false),peg$c675="DarkSlateGrey",peg$c676=peg$literalExpectation("DarkSlateGrey",false),peg$c677="darkturquoise",peg$c678=peg$literalExpectation("darkturquoise",false),peg$c679=function(){return"#00ced1ff"},peg$c680="DarkTurquoise",peg$c681=peg$literalExpectation("DarkTurquoise",false),peg$c682="darkviolet",peg$c683=peg$literalExpectation("darkviolet",false),peg$c684=function(){return"#9400d3ff"},peg$c685="DarkViolet",peg$c686=peg$literalExpectation("DarkViolet",false),peg$c687="deeppink",peg$c688=peg$literalExpectation("deeppink",false),peg$c689=function(){return"#ff1493ff"},peg$c690="DeepPink",peg$c691=peg$literalExpectation("DeepPink",false),peg$c692="deepskyblue",peg$c693=peg$literalExpectation("deepskyblue",false),peg$c694=function(){return"#00bfffff"},peg$c695="DeepSkyBlue",peg$c696=peg$literalExpectation("DeepSkyBlue",false),peg$c697="dimgray",peg$c698=peg$literalExpectation("dimgray",false),peg$c699=function(){return"#696969ff"},peg$c700="DimGray",peg$c701=peg$literalExpectation("DimGray",false),peg$c702="dimgrey",peg$c703=peg$literalExpectation("dimgrey",false),peg$c704="DimGrey",peg$c705=peg$literalExpectation("DimGrey",false),peg$c706="dodgerblue",peg$c707=peg$literalExpectation("dodgerblue",false),peg$c708=function(){return"#1e90ffff"},peg$c709="DodgerBlue",peg$c710=peg$literalExpectation("DodgerBlue",false),peg$c711="firebrick",peg$c712=peg$literalExpectation("firebrick",false),peg$c713=function(){return"#b22222ff"},peg$c714="FireBrick",peg$c715=peg$literalExpectation("FireBrick",false),peg$c716="floralwhite",peg$c717=peg$literalExpectation("floralwhite",false),peg$c718=function(){return"#fffaf0ff"},peg$c719="FloralWhite",peg$c720=peg$literalExpectation("FloralWhite",false),peg$c721="forestgreen",peg$c722=peg$literalExpectation("forestgreen",false),peg$c723=function(){return"#228b22ff"},peg$c724="ForestGreen",peg$c725=peg$literalExpectation("ForestGreen",false),peg$c726="fuchsia",peg$c727=peg$literalExpectation("fuchsia",false),peg$c728=function(){return"#ff00ffff"},peg$c729="Fuchsia",peg$c730=peg$literalExpectation("Fuchsia",false),peg$c731="gainsboro",peg$c732=peg$literalExpectation("gainsboro",false),peg$c733=function(){return"#dcdcdcff"},peg$c734="Gainsboro",peg$c735=peg$literalExpectation("Gainsboro",false),peg$c736="ghostwhite",peg$c737=peg$literalExpectation("ghostwhite",false),peg$c738=function(){return"#f8f8ffff"},peg$c739="GhostWhite",peg$c740=peg$literalExpectation("GhostWhite",false),peg$c741="goldenrod",peg$c742=peg$literalExpectation("goldenrod",false),peg$c743=function(){return"#daa520ff"},peg$c744="GoldenRod",peg$c745=peg$literalExpectation("GoldenRod",false),peg$c746="gold",peg$c747=peg$literalExpectation("gold",false),peg$c748=function(){return"#ffd700ff"},peg$c749="Gold",peg$c750=peg$literalExpectation("Gold",false),peg$c751="gray",peg$c752=peg$literalExpectation("gray",false),peg$c753=function(){return"#808080ff"},peg$c754="Gray",peg$c755=peg$literalExpectation("Gray",false),peg$c756="grey",peg$c757=peg$literalExpectation("grey",false),peg$c758="Grey",peg$c759=peg$literalExpectation("Grey",false),peg$c760="greenyellow",peg$c761=peg$literalExpectation("greenyellow",false),peg$c762=function(){return"#adff2fff"},peg$c763="GreenYellow",peg$c764=peg$literalExpectation("GreenYellow",false),peg$c765="green",peg$c766=peg$literalExpectation("green",false),peg$c767=function(){return"#008000ff"},peg$c768="Green",peg$c769=peg$literalExpectation("Green",false),peg$c770="honeydew",peg$c771=peg$literalExpectation("honeydew",false),peg$c772=function(){return"#f0fff0ff"},peg$c773="HoneyDew",peg$c774=peg$literalExpectation("HoneyDew",false),peg$c775="hotpink",peg$c776=peg$literalExpectation("hotpink",false),peg$c777=function(){return"#ff69b4ff"},peg$c778="HotPink",peg$c779=peg$literalExpectation("HotPink",false),peg$c780="indianred",peg$c781=peg$literalExpectation("indianred",false),peg$c782=function(){return"#cd5c5cff"},peg$c783="IndianRed",peg$c784=peg$literalExpectation("IndianRed",false),peg$c785="indigo",peg$c786=peg$literalExpectation("indigo",false),peg$c787=function(){return"#4b0082ff"},peg$c788="Indigo",peg$c789=peg$literalExpectation("Indigo",false),peg$c790="ivory",peg$c791=peg$literalExpectation("ivory",false),peg$c792=function(){return"#fffff0ff"},peg$c793="Ivory",peg$c794=peg$literalExpectation("Ivory",false),peg$c795="khaki",peg$c796=peg$literalExpectation("khaki",false),peg$c797=function(){return"#f0e68cff"},peg$c798="Khaki",peg$c799=peg$literalExpectation("Khaki",false),peg$c800="lavenderblush",peg$c801=peg$literalExpectation("lavenderblush",false),peg$c802=function(){return"#fff0f5ff"},peg$c803="LavenderBlush",peg$c804=peg$literalExpectation("LavenderBlush",false),peg$c805="lavender",peg$c806=peg$literalExpectation("lavender",false),peg$c807=function(){return"#e6e6faff"},peg$c808="Lavender",peg$c809=peg$literalExpectation("Lavender",false),peg$c810="lawngreen",peg$c811=peg$literalExpectation("lawngreen",false),peg$c812=function(){return"#7cfc00ff"},peg$c813="LawnGreen",peg$c814=peg$literalExpectation("LawnGreen",false),peg$c815="lemonchiffon",peg$c816=peg$literalExpectation("lemonchiffon",false),peg$c817=function(){return"#fffacdff"},peg$c818="LemonChiffon",peg$c819=peg$literalExpectation("LemonChiffon",false),peg$c820="lightblue",peg$c821=peg$literalExpectation("lightblue",false),peg$c822=function(){return"#add8e6ff"},peg$c823="LightBlue",peg$c824=peg$literalExpectation("LightBlue",false),peg$c825="lightcoral",peg$c826=peg$literalExpectation("lightcoral",false),peg$c827=function(){return"#f08080ff"},peg$c828="LightCoral",peg$c829=peg$literalExpectation("LightCoral",false),peg$c830="lightcyan",peg$c831=peg$literalExpectation("lightcyan",false),peg$c832=function(){return"#e0ffffff"},peg$c833="LightCyan",peg$c834=peg$literalExpectation("LightCyan",false),peg$c835="lightgoldenrodyellow",peg$c836=peg$literalExpectation("lightgoldenrodyellow",false),peg$c837=function(){return"#fafad2ff"},peg$c838="LightGoldenRodYellow",peg$c839=peg$literalExpectation("LightGoldenRodYellow",false),peg$c840="lightgray",peg$c841=peg$literalExpectation("lightgray",false),peg$c842=function(){return"#d3d3d3ff"},peg$c843="LightGray",peg$c844=peg$literalExpectation("LightGray",false),peg$c845="lightgrey",peg$c846=peg$literalExpectation("lightgrey",false),peg$c847="LightGrey",peg$c848=peg$literalExpectation("LightGrey",false),peg$c849="lightgreen",peg$c850=peg$literalExpectation("lightgreen",false),peg$c851=function(){return"#90ee90ff"},peg$c852="LightGreen",peg$c853=peg$literalExpectation("LightGreen",false),peg$c854="lightpink",peg$c855=peg$literalExpectation("lightpink",false),peg$c856=function(){return"#ffb6c1ff"},peg$c857="LightPink",peg$c858=peg$literalExpectation("LightPink",false),peg$c859="lightsalmon",peg$c860=peg$literalExpectation("lightsalmon",false),peg$c861=function(){return"#ffa07aff"},peg$c862="LightSalmon",peg$c863=peg$literalExpectation("LightSalmon",false),peg$c864="lightseagreen",peg$c865=peg$literalExpectation("lightseagreen",false),peg$c866=function(){return"#20b2aaff"},peg$c867="LightSeaGreen",peg$c868=peg$literalExpectation("LightSeaGreen",false),peg$c869="lightskyblue",peg$c870=peg$literalExpectation("lightskyblue",false),peg$c871=function(){return"#87cefaff"},peg$c872="LightSkyBlue",peg$c873=peg$literalExpectation("LightSkyBlue",false),peg$c874="lightslategray",peg$c875=peg$literalExpectation("lightslategray",false),peg$c876=function(){return"#778899ff"},peg$c877="LightSlateGray",peg$c878=peg$literalExpectation("LightSlateGray",false),peg$c879="lightslategrey",peg$c880=peg$literalExpectation("lightslategrey",false),peg$c881="LightSlateGrey",peg$c882=peg$literalExpectation("LightSlateGrey",false),peg$c883="lightsteelblue",peg$c884=peg$literalExpectation("lightsteelblue",false),peg$c885=function(){return"#b0c4deff"},peg$c886="LightSteelBlue",peg$c887=peg$literalExpectation("LightSteelBlue",false),peg$c888="lightyellow",peg$c889=peg$literalExpectation("lightyellow",false),peg$c890=function(){return"#ffffe0ff"},peg$c891="LightYellow",peg$c892=peg$literalExpectation("LightYellow",false),peg$c893="limegreen",peg$c894=peg$literalExpectation("limegreen",false),peg$c895=function(){return"#32cd32ff"},peg$c896="LimeGreen",peg$c897=peg$literalExpectation("LimeGreen",false),peg$c898="lime",peg$c899=peg$literalExpectation("lime",false),peg$c900=function(){return"#00ff00ff"},peg$c901="Lime",peg$c902=peg$literalExpectation("Lime",false),peg$c903="linen",peg$c904=peg$literalExpectation("linen",false),peg$c905=function(){return"#faf0e6ff"},peg$c906="Linen",peg$c907=peg$literalExpectation("Linen",false),peg$c908="magenta",peg$c909=peg$literalExpectation("magenta",false),peg$c910="Magenta",peg$c911=peg$literalExpectation("Magenta",false),peg$c912="maroon",peg$c913=peg$literalExpectation("maroon",false),peg$c914=function(){return"#800000ff"},peg$c915="Maroon",peg$c916=peg$literalExpectation("Maroon",false),peg$c917="mediumaquamarine",peg$c918=peg$literalExpectation("mediumaquamarine",false),peg$c919=function(){return"#66cdaaff"},peg$c920="MediumAquaMarine",peg$c921=peg$literalExpectation("MediumAquaMarine",false),peg$c922="mediumblue",peg$c923=peg$literalExpectation("mediumblue",false),peg$c924=function(){return"#0000cdff"},peg$c925="MediumBlue",peg$c926=peg$literalExpectation("MediumBlue",false),peg$c927="mediumorchid",peg$c928=peg$literalExpectation("mediumorchid",false),peg$c929=function(){return"#ba55d3ff"},peg$c930="MediumOrchid",peg$c931=peg$literalExpectation("MediumOrchid",false),peg$c932="mediumpurple",peg$c933=peg$literalExpectation("mediumpurple",false),peg$c934=function(){return"#9370d8ff"},peg$c935="MediumPurple",peg$c936=peg$literalExpectation("MediumPurple",false),peg$c937="mediumseagreen",peg$c938=peg$literalExpectation("mediumseagreen",false),peg$c939=function(){return"#3cb371ff"},peg$c940="MediumSeaGreen",peg$c941=peg$literalExpectation("MediumSeaGreen",false),peg$c942="mediumslateblue",peg$c943=peg$literalExpectation("mediumslateblue",false),peg$c944=function(){return"#7b68eeff"},peg$c945="MediumSlateBlue",peg$c946=peg$literalExpectation("MediumSlateBlue",false),peg$c947="mediumspringgreen",peg$c948=peg$literalExpectation("mediumspringgreen",false),peg$c949=function(){return"#00fa9aff"},peg$c950="MediumSpringGreen",peg$c951=peg$literalExpectation("MediumSpringGreen",false),peg$c952="mediumturquoise",peg$c953=peg$literalExpectation("mediumturquoise",false),peg$c954=function(){return"#48d1ccff"},peg$c955="MediumTurquoise",peg$c956=peg$literalExpectation("MediumTurquoise",false),peg$c957="mediumvioletred",peg$c958=peg$literalExpectation("mediumvioletred",false),peg$c959=function(){return"#c71585ff"},peg$c960="MediumVioletRed",peg$c961=peg$literalExpectation("MediumVioletRed",false),peg$c962="midnightblue",peg$c963=peg$literalExpectation("midnightblue",false),peg$c964=function(){return"#191970ff"},peg$c965="MidnightBlue",peg$c966=peg$literalExpectation("MidnightBlue",false),peg$c967="mintcream",peg$c968=peg$literalExpectation("mintcream",false),peg$c969=function(){return"#f5fffaff"},peg$c970="MintCream",peg$c971=peg$literalExpectation("MintCream",false),peg$c972="mistyrose",peg$c973=peg$literalExpectation("mistyrose",false),peg$c974=function(){return"#ffe4e1ff"},peg$c975="MistyRose",peg$c976=peg$literalExpectation("MistyRose",false),peg$c977="moccasin",peg$c978=peg$literalExpectation("moccasin",false),peg$c979=function(){return"#ffe4b5ff"},peg$c980="Moccasin",peg$c981=peg$literalExpectation("Moccasin",false),peg$c982="navajowhite",peg$c983=peg$literalExpectation("navajowhite",false),peg$c984=function(){return"#ffdeadff"},peg$c985="NavajoWhite",peg$c986=peg$literalExpectation("NavajoWhite",false),peg$c987="navy",peg$c988=peg$literalExpectation("navy",false),peg$c989=function(){return"#000080ff"},peg$c990="Navy",peg$c991=peg$literalExpectation("Navy",false),peg$c992="oldlace",peg$c993=peg$literalExpectation("oldlace",false),peg$c994=function(){return"#fdf5e6ff"},peg$c995="OldLace",peg$c996=peg$literalExpectation("OldLace",false),peg$c997="olivedrab",peg$c998=peg$literalExpectation("olivedrab",false),peg$c999=function(){return"#6b8e23ff"},peg$c1000="OliveDrab",peg$c1001=peg$literalExpectation("OliveDrab",false),peg$c1002="olive",peg$c1003=peg$literalExpectation("olive",false),peg$c1004=function(){return"#808000ff"},peg$c1005="Olive",peg$c1006=peg$literalExpectation("Olive",false),peg$c1007="orangered",peg$c1008=peg$literalExpectation("orangered",false),peg$c1009=function(){return"#ff4500ff"},peg$c1010="OrangeRed",peg$c1011=peg$literalExpectation("OrangeRed",false),peg$c1012="orange",peg$c1013=peg$literalExpectation("orange",false),peg$c1014=function(){return"#ffa500ff"},peg$c1015="Orange",peg$c1016=peg$literalExpectation("Orange",false),peg$c1017="orchid",peg$c1018=peg$literalExpectation("orchid",false),peg$c1019=function(){return"#da70d6ff"},peg$c1020="Orchid",peg$c1021=peg$literalExpectation("Orchid",false),peg$c1022="palegoldenrod",peg$c1023=peg$literalExpectation("palegoldenrod",false),peg$c1024=function(){return"#eee8aaff"},peg$c1025="PaleGoldenRod",peg$c1026=peg$literalExpectation("PaleGoldenRod",false),peg$c1027="palegreen",peg$c1028=peg$literalExpectation("palegreen",false),peg$c1029=function(){return"#98fb98ff"},peg$c1030="PaleGreen",peg$c1031=peg$literalExpectation("PaleGreen",false),peg$c1032="paleturquoise",peg$c1033=peg$literalExpectation("paleturquoise",false),peg$c1034=function(){return"#afeeeeff"},peg$c1035="PaleTurquoise",peg$c1036=peg$literalExpectation("PaleTurquoise",false),peg$c1037="palevioletred",peg$c1038=peg$literalExpectation("palevioletred",false),peg$c1039=function(){return"#d87093ff"},peg$c1040="PaleVioletRed",peg$c1041=peg$literalExpectation("PaleVioletRed",false),peg$c1042="papayawhip",peg$c1043=peg$literalExpectation("papayawhip",false),peg$c1044=function(){return"#ffefd5ff"},peg$c1045="PapayaWhip",peg$c1046=peg$literalExpectation("PapayaWhip",false),peg$c1047="peachpuff",peg$c1048=peg$literalExpectation("peachpuff",false),peg$c1049=function(){return"#ffdab9ff"},peg$c1050="PeachPuff",peg$c1051=peg$literalExpectation("PeachPuff",false),peg$c1052="peru",peg$c1053=peg$literalExpectation("peru",false),peg$c1054=function(){return"#cd853fff"},peg$c1055="Peru",peg$c1056=peg$literalExpectation("Peru",false),peg$c1057="pink",peg$c1058=peg$literalExpectation("pink",false),peg$c1059=function(){return"#ffc0cbff"},peg$c1060="Pink",peg$c1061=peg$literalExpectation("Pink",false),peg$c1062="plum",peg$c1063=peg$literalExpectation("plum",false),peg$c1064=function(){return"#dda0ddff"},peg$c1065="Plum",peg$c1066=peg$literalExpectation("Plum",false),peg$c1067="powderblue",peg$c1068=peg$literalExpectation("powderblue",false),peg$c1069=function(){return"#b0e0e6ff"},peg$c1070="PowderBlue",peg$c1071=peg$literalExpectation("PowderBlue",false),peg$c1072="purple",peg$c1073=peg$literalExpectation("purple",false),peg$c1074=function(){return"#800080ff"},peg$c1075="Purple",peg$c1076=peg$literalExpectation("Purple",false),peg$c1077="red",peg$c1078=peg$literalExpectation("red",false),peg$c1079=function(){return"#ff0000ff"},peg$c1080="Red",peg$c1081=peg$literalExpectation("Red",false),peg$c1082="rosybrown",peg$c1083=peg$literalExpectation("rosybrown",false),peg$c1084=function(){return"#bc8f8fff"},peg$c1085="RosyBrown",peg$c1086=peg$literalExpectation("RosyBrown",false),peg$c1087="royalblue",peg$c1088=peg$literalExpectation("royalblue",false),peg$c1089=function(){return"#4169e1ff"},peg$c1090="RoyalBlue",peg$c1091=peg$literalExpectation("RoyalBlue",false),peg$c1092="saddlebrown",peg$c1093=peg$literalExpectation("saddlebrown",false),peg$c1094=function(){return"#8b4513ff"},peg$c1095="SaddleBrown",peg$c1096=peg$literalExpectation("SaddleBrown",false),peg$c1097="salmon",peg$c1098=peg$literalExpectation("salmon",false),peg$c1099=function(){return"#fa8072ff"},peg$c1100="Salmon",peg$c1101=peg$literalExpectation("Salmon",false),peg$c1102="sandybrown",peg$c1103=peg$literalExpectation("sandybrown",false),peg$c1104=function(){return"#f4a460ff"},peg$c1105="SandyBrown",peg$c1106=peg$literalExpectation("SandyBrown",false),peg$c1107="seagreen",peg$c1108=peg$literalExpectation("seagreen",false),peg$c1109=function(){return"#2e8b57ff"},peg$c1110="SeaGreen",peg$c1111=peg$literalExpectation("SeaGreen",false),peg$c1112="seashell",peg$c1113=peg$literalExpectation("seashell",false),peg$c1114=function(){return"#fff5eeff"},peg$c1115="SeaShell",peg$c1116=peg$literalExpectation("SeaShell",false),peg$c1117="sienna",peg$c1118=peg$literalExpectation("sienna",false),peg$c1119=function(){return"#a0522dff"},peg$c1120="Sienna",peg$c1121=peg$literalExpectation("Sienna",false),peg$c1122="silver",peg$c1123=peg$literalExpectation("silver",false),peg$c1124=function(){return"#c0c0c0ff"},peg$c1125="Silver",peg$c1126=peg$literalExpectation("Silver",false),peg$c1127="skyblue",peg$c1128=peg$literalExpectation("skyblue",false),peg$c1129=function(){return"#87ceebff"},peg$c1130="SkyBlue",peg$c1131=peg$literalExpectation("SkyBlue",false),peg$c1132="slateblue",peg$c1133=peg$literalExpectation("slateblue",false),peg$c1134=function(){return"#6a5acdff"},peg$c1135="SlateBlue",peg$c1136=peg$literalExpectation("SlateBlue",false),peg$c1137="slategray",peg$c1138=peg$literalExpectation("slategray",false),peg$c1139=function(){return"#708090ff"},peg$c1140="SlateGray",peg$c1141=peg$literalExpectation("SlateGray",false),peg$c1142="slategrey",peg$c1143=peg$literalExpectation("slategrey",false),peg$c1144="SlateGrey",peg$c1145=peg$literalExpectation("SlateGrey",false),peg$c1146="snow",peg$c1147=peg$literalExpectation("snow",false),peg$c1148=function(){return"#fffafaff"},peg$c1149="Snow",peg$c1150=peg$literalExpectation("Snow",false),peg$c1151="springgreen",peg$c1152=peg$literalExpectation("springgreen",false),peg$c1153=function(){return"#00ff7fff"},peg$c1154="SpringGreen",peg$c1155=peg$literalExpectation("SpringGreen",false),peg$c1156="steelblue",peg$c1157=peg$literalExpectation("steelblue",false),peg$c1158=function(){return"#4682b4ff"},peg$c1159="SteelBlue",peg$c1160=peg$literalExpectation("SteelBlue",false),peg$c1161="tan",peg$c1162=peg$literalExpectation("tan",false),peg$c1163=function(){return"#d2b48cff"},peg$c1164="Tan",peg$c1165=peg$literalExpectation("Tan",false),peg$c1166="teal",peg$c1167=peg$literalExpectation("teal",false),peg$c1168=function(){return"#008080ff"},peg$c1169="Teal",peg$c1170=peg$literalExpectation("Teal",false),peg$c1171="thistle",peg$c1172=peg$literalExpectation("thistle",false),peg$c1173=function(){return"#d8bfd8ff"},peg$c1174="Thistle",peg$c1175=peg$literalExpectation("Thistle",false),peg$c1176="tomato",peg$c1177=peg$literalExpectation("tomato",false),peg$c1178=function(){return"#ff6347ff"},peg$c1179="Tomato",peg$c1180=peg$literalExpectation("Tomato",false),peg$c1181="transparent",peg$c1182=peg$literalExpectation("transparent",false),peg$c1183=function(){return"#00000000"},peg$c1184="Transparent",peg$c1185=peg$literalExpectation("Transparent",false),peg$c1186="turquoise",peg$c1187=peg$literalExpectation("turquoise",false),peg$c1188=function(){return"#40e0d0ff"},peg$c1189="Turquoise",peg$c1190=peg$literalExpectation("Turquoise",false),peg$c1191="violet",peg$c1192=peg$literalExpectation("violet",false),peg$c1193=function(){return"#ee82eeff"},peg$c1194="Violet",peg$c1195=peg$literalExpectation("Violet",false),peg$c1196="wheat",peg$c1197=peg$literalExpectation("wheat",false),peg$c1198=function(){return"#f5deb3ff"},peg$c1199="Wheat",peg$c1200=peg$literalExpectation("Wheat",false),peg$c1201="whitesmoke",peg$c1202=peg$literalExpectation("whitesmoke",false),peg$c1203=function(){return"#f5f5f5ff"},peg$c1204="WhiteSmoke",peg$c1205=peg$literalExpectation("WhiteSmoke",false),peg$c1206="white",peg$c1207=peg$literalExpectation("white",false),peg$c1208=function(){return"#ffffffff"},peg$c1209="White",peg$c1210=peg$literalExpectation("White",false),peg$c1211="yellowgreen",peg$c1212=peg$literalExpectation("yellowgreen",false),peg$c1213=function(){return"#9acd32ff"},peg$c1214="YellowGreen",peg$c1215=peg$literalExpectation("YellowGreen",false),peg$c1216="yellow",peg$c1217=peg$literalExpectation("yellow",false),peg$c1218=function(){return"#ffff00ff"},peg$c1219="Yellow",peg$c1220=peg$literalExpectation("Yellow",false),peg$c1221=function(lab){return lab},peg$c1222="#",peg$c1223=peg$literalExpectation("#",false),peg$c1224=function(r,g,b){return`#${r}${r}${g}${g}${b}${b}ff`},peg$c1225=function(r1,r2,g1,g2,b1,b2){return`#${r1}${r2}${g1}${g2}${b1}${b2}ff`},peg$c1226=function(r,g,b,a){return`#${r}${r}${g}${g}${b}${b}${a}${a}`},peg$c1227=function(r1,r2,g1,g2,b1,b2,a1,a2){return`#${r1}${r2}${g1}${g2}${b1}${b2}${a1}${a2}`},peg$c1228=peg$otherExpectation("color"),peg$c1229="arc_label",peg$c1230=peg$literalExpectation("arc_label",false),peg$c1231="head_label",peg$c1232=peg$literalExpectation("head_label",false),peg$c1233="tail_label",peg$c1234=peg$literalExpectation("tail_label",false),peg$c1235=":",peg$c1236=peg$literalExpectation(":",false),peg$c1237=";",peg$c1238=peg$literalExpectation(";",false),peg$c1239=function(key,value){const node={key:key,value:value};if(options.locations){node.loc=location()}return node},peg$c1240=peg$otherExpectation("single edge color"),peg$c1241="edge-color",peg$c1242=peg$literalExpectation("edge-color",false),peg$c1243=function(v){return options.locations?{__v:v,__loc:location()}:v},peg$c1244=function(value){const raw=options.locations?value.__v:value;const node={key:"single_edge_color",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1245="edge_color",peg$c1246=peg$literalExpectation("edge_color",false),peg$c1247=peg$otherExpectation("transition line style"),peg$c1248="line-style",peg$c1249=peg$literalExpectation("line-style",false),peg$c1250=function(value){const node={key:"transition_line_style",value:value};if(options.locations){node.loc=location()}return node},peg$c1251="{",peg$c1252=peg$literalExpectation("{",false),peg$c1253="}",peg$c1254=peg$literalExpectation("}",false),peg$c1255=function(items){return items},peg$c1256="%",peg$c1257=peg$literalExpectation("%",false),peg$c1258=function(value){const node={key:"arrow probability",value:value};if(options.locations){node.loc=location()}return node},peg$c1259="milliseconds",peg$c1260=peg$literalExpectation("milliseconds",false),peg$c1261=function(){return 1},peg$c1262="millisecond",peg$c1263=peg$literalExpectation("millisecond",false),peg$c1264="msecs",peg$c1265=peg$literalExpectation("msecs",false),peg$c1266="msec",peg$c1267=peg$literalExpectation("msec",false),peg$c1268="ms",peg$c1269=peg$literalExpectation("ms",false),peg$c1270="seconds",peg$c1271=peg$literalExpectation("seconds",false),peg$c1272=function(){return 1e3},peg$c1273="second",peg$c1274=peg$literalExpectation("second",false),peg$c1275="secs",peg$c1276=peg$literalExpectation("secs",false),peg$c1277="sec",peg$c1278=peg$literalExpectation("sec",false),peg$c1279="s",peg$c1280=peg$literalExpectation("s",false),peg$c1281="minutes",peg$c1282=peg$literalExpectation("minutes",false),peg$c1283=function(){return 1e3*60},peg$c1284="minute",peg$c1285=peg$literalExpectation("minute",false),peg$c1286="mins",peg$c1287=peg$literalExpectation("mins",false),peg$c1288="min",peg$c1289=peg$literalExpectation("min",false),peg$c1290="m",peg$c1291=peg$literalExpectation("m",false),peg$c1292="hours",peg$c1293=peg$literalExpectation("hours",false),peg$c1294=function(){return 1e3*60*60},peg$c1295="hour",peg$c1296=peg$literalExpectation("hour",false),peg$c1297="hrs",peg$c1298=peg$literalExpectation("hrs",false),peg$c1299="hr",peg$c1300=peg$literalExpectation("hr",false),peg$c1301="h",peg$c1302=peg$literalExpectation("h",false),peg$c1303="days",peg$c1304=peg$literalExpectation("days",false),peg$c1305=function(){return 1e3*60*60*24},peg$c1306="day",peg$c1307=peg$literalExpectation("day",false),peg$c1308="d",peg$c1309=peg$literalExpectation("d",false),peg$c1310="weeks",peg$c1311=peg$literalExpectation("weeks",false),peg$c1312=function(){return 1e3*60*60*24*7},peg$c1313="week",peg$c1314=peg$literalExpectation("week",false),peg$c1315="wks",peg$c1316=peg$literalExpectation("wks",false),peg$c1317="wk",peg$c1318=peg$literalExpectation("wk",false),peg$c1319="w",peg$c1320=peg$literalExpectation("w",false),peg$c1321="after",peg$c1322=peg$literalExpectation("after",false),peg$c1323=function(value,timescale){return value*(timescale||1e3)},peg$c1324=function(names){return names.map(i=>i[0])},peg$c1325=peg$otherExpectation("group reference"),peg$c1326="&",peg$c1327=peg$literalExpectation("&",false),peg$c1328=function(name){return{key:"group_ref",name:name}},peg$c1329="...",peg$c1330=peg$literalExpectation("...",false),peg$c1331=function(name){const m={kind:"group",name:name,mode:"spread"};if(options.locations){m.__loc=location()}return m},peg$c1332=function(name){const m={kind:"group",name:name,mode:"nest"};if(options.locations){m.__loc=location()}return m},peg$c1333=function(name){const m={kind:"state",name:name};if(options.locations){m.__loc=location()}return m},peg$c1334=function(members){const items=members.map(m=>m[0]);const has_group=items.some(m=>m.kind==="group");const collapsed=has_group?items:items.map(m=>m.name);if(options.locations){collapsed.__member_locs=items.map(m=>m.__loc)}return collapsed},peg$c1335="+|",peg$c1336=peg$literalExpectation("+|",false),peg$c1337=function(n){const node={key:"stripe",value:parseInt(n,10)};if(options.locations){node.loc=location()}return node},peg$c1338="-|",peg$c1339=peg$literalExpectation("-|",false),peg$c1340=function(n){const node={key:"stripe",value:-1*parseInt(n,10)};if(options.locations){node.loc=location()}return node},peg$c1341="+",peg$c1342=peg$literalExpectation("+",false),peg$c1343=function(n){const node={key:"cycle",value:parseInt(n,10)};if(options.locations){node.loc=location()}return node},peg$c1344="-",peg$c1345=peg$literalExpectation("-",false),peg$c1346=function(n){const node={key:"cycle",value:-1*parseInt(n,10)};if(options.locations){node.loc=location()}return node},peg$c1347="+0",peg$c1348=peg$literalExpectation("+0",false),peg$c1349=function(){const node={key:"cycle",value:0};if(options.locations){node.loc=location()}return node},peg$c1350=function(v){return{_kind:"after",v:v}},peg$c1351=function(v){return{_kind:"action",v:v,loc:location()}},peg$c1352=function(v){return{_kind:"prob",v:v}},peg$c1353=function(v){return{_kind:"desc",v:v}},peg$c1354=function(d){return d},peg$c1355=function(pre,arrow,post,l){return options.locations?{__v:l,__loc:location()}:l},peg$c1356=function(pre,arrow,post,label,tail){const toVal=options.locations?label.__v:label;const base={kind:arrow,to:toVal};const seen={};for(const d of pre){if(seen["pre:"+d._kind]){error("duplicate "+d._kind+" decoration before arrow",location())}seen["pre:"+d._kind]=true;if(d._kind==="after"&&d.v!=null){base.r_after=d.v}if(d._kind==="action"&&d.v!=null){base.r_action=d.v;if(options.locations){base.r_action_loc=d.loc}}if(d._kind==="prob"&&d.v!=null){base.r_probability=d.v.value}if(d._kind==="desc"&&d.v!=null){base.l_desc=d.v}}for(const d of post){if(seen["post:"+d._kind]){error("duplicate "+d._kind+" decoration after arrow",location())}seen["post:"+d._kind]=true;if(d._kind==="after"&&d.v!=null){base.l_after=d.v}if(d._kind==="action"&&d.v!=null){base.l_action=d.v;if(options.locations){base.l_action_loc=d.loc}}if(d._kind==="prob"&&d.v!=null){base.l_probability=d.v.value}if(d._kind==="desc"&&d.v!=null){base.r_desc=d.v}}if(tail){base.se=tail}if(options.locations){base.loc=location();base.to_loc=label.__loc}return base},peg$c1357=function(l){return options.locations?{__v:l,__loc:location()}:l},peg$c1358=function(label,se){const fromVal=options.locations?label.__v:label;const base={key:"transition",from:fromVal};if(se){base.se=se}if(options.locations){base.loc=location();base.from_loc=label.__loc}return base},peg$c1359="dot",peg$c1360=peg$literalExpectation("dot",false),peg$c1361="circo",peg$c1362=peg$literalExpectation("circo",false),peg$c1363="fdp",peg$c1364=peg$literalExpectation("fdp",false),peg$c1365="neato",peg$c1366=peg$literalExpectation("neato",false),peg$c1367="twopi",peg$c1368=peg$literalExpectation("twopi",false),peg$c1369="state",peg$c1370=peg$literalExpectation("state",false),peg$c1371="};",peg$c1372=peg$literalExpectation("};",false),peg$c1373=function(state_items){const node={key:"default_state_config",value:state_items||[]};if(options.locations){node.loc=location()}return node},peg$c1374="start_state",peg$c1375=peg$literalExpectation("start_state",false),peg$c1376=function(state_items){const node={key:"default_start_state_config",value:state_items||[]};if(options.locations){node.loc=location()}return node},peg$c1377="end_state",peg$c1378=peg$literalExpectation("end_state",false),peg$c1379=function(state_items){const node={key:"default_end_state_config",value:state_items||[]};if(options.locations){node.loc=location()}return node},peg$c1380="active_state",peg$c1381=peg$literalExpectation("active_state",false),peg$c1382=function(state_items){const node={key:"default_active_state_config",value:state_items||[]};if(options.locations){node.loc=location()}return node},peg$c1383="terminal_state",peg$c1384=peg$literalExpectation("terminal_state",false),peg$c1385=function(state_items){const node={key:"default_terminal_state_config",value:state_items||[]};if(options.locations){node.loc=location()}return node},peg$c1386="hooked_state",peg$c1387=peg$literalExpectation("hooked_state",false),peg$c1388=function(state_items){const node={key:"default_hooked_state_config",value:state_items||[]};if(options.locations){node.loc=location()}return node},peg$c1389=peg$otherExpectation("graph default edge color"),peg$c1390=function(value){const raw=options.locations?value.__v:value;const node={key:"graph_default_edge_color",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1391="transition",peg$c1392=peg$literalExpectation("transition",false),peg$c1393=function(items){const node={key:"default_transition_config",value:items||[]};if(options.locations){node.loc=location()}return node},peg$c1394="graph",peg$c1395=peg$literalExpectation("graph",false),peg$c1396=function(items){const node={key:"default_graph_config",value:items||[]};if(options.locations){node.loc=location()}return node},peg$c1397="editor",peg$c1398=peg$literalExpectation("editor",false),peg$c1399=function(items){const node={key:"editor_config",value:items};if(options.locations){node.loc=location()}return node},peg$c1400="stochastic_run_count",peg$c1401=peg$literalExpectation("stochastic_run_count",false),peg$c1402=function(value){const node={key:"stochastic_run_count",value:parseInt(value,10)};if(options.locations){node.loc=location()}return node},peg$c1403="panels",peg$c1404=peg$literalExpectation("panels",false),peg$c1405=function(value){const node={key:"panels",value:value};if(options.locations){node.loc=location()}return node},peg$c1406="graph_layout",peg$c1407=peg$literalExpectation("graph_layout",false),peg$c1408=function(value){const node={key:"graph_layout",value:value};if(options.locations){node.loc=location()}return node},peg$c1409="start_states",peg$c1410=peg$literalExpectation("start_states",false),peg$c1411=function(value){const node={key:"start_states",value:value};if(options.locations){node.loc=location()}return node},peg$c1412="end_states",peg$c1413=peg$literalExpectation("end_states",false),peg$c1414=function(value){const node={key:"end_states",value:value};if(options.locations){node.loc=location()}return node},peg$c1415="failed_outputs",peg$c1416=peg$literalExpectation("failed_outputs",false),peg$c1417=function(value){const raw=options.locations?value.__v:value;const node={key:"failed_outputs",value:typeof raw==="string"?[raw]:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1418="graph_bg_color",peg$c1419=peg$literalExpectation("graph_bg_color",false),peg$c1420=function(value){const raw=options.locations?value.__v:value;const node={key:"graph_bg_color",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1421="allows_override",peg$c1422=peg$literalExpectation("allows_override",false),peg$c1423=function(value){const node={key:"allows_override",value:value};if(options.locations){node.loc=location()}return node},peg$c1424="allow_islands",peg$c1425=peg$literalExpectation("allow_islands",false),peg$c1426=function(value){const raw=options.locations?value.__v:value;const node={key:"allow_islands",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1427=function(){return true},peg$c1428=function(){return false},peg$c1429="with_start",peg$c1430=peg$literalExpectation("with_start",false),peg$c1431=function(){return"with_start"},peg$c1432=function(){return true},peg$c1433=function(){return false},peg$c1434=peg$otherExpectation("configuration"),peg$c1435="MIT",peg$c1436=peg$literalExpectation("MIT",false),peg$c1437="BSD 2-clause",peg$c1438=peg$literalExpectation("BSD 2-clause",false),peg$c1439="BSD 3-clause",peg$c1440=peg$literalExpectation("BSD 3-clause",false),peg$c1441="Apache 2.0",peg$c1442=peg$literalExpectation("Apache 2.0",false),peg$c1443="Mozilla 2.0",peg$c1444=peg$literalExpectation("Mozilla 2.0",false),peg$c1445="Public domain",peg$c1446=peg$literalExpectation("Public domain",false),peg$c1447="GPL v2",peg$c1448=peg$literalExpectation("GPL v2",false),peg$c1449="GPL v3",peg$c1450=peg$literalExpectation("GPL v3",false),peg$c1451="LGPL v2.1",peg$c1452=peg$literalExpectation("LGPL v2.1",false),peg$c1453="LGPL v3.0",peg$c1454=peg$literalExpectation("LGPL v3.0",false),peg$c1455="Unknown",peg$c1456=peg$literalExpectation("Unknown",false),peg$c1457=peg$otherExpectation("direction"),peg$c1458="up",peg$c1459=peg$literalExpectation("up",false),peg$c1460="right",peg$c1461=peg$literalExpectation("right",false),peg$c1462="down",peg$c1463=peg$literalExpectation("down",false),peg$c1464="left",peg$c1465=peg$literalExpectation("left",false),peg$c1466=peg$otherExpectation("hook definition (open/closed)"),peg$c1467="open",peg$c1468=peg$literalExpectation("open",false),peg$c1469="closed",peg$c1470=peg$literalExpectation("closed",false),peg$c1471="machine_author",peg$c1472=peg$literalExpectation("machine_author",false),peg$c1473=function(value){const raw=options.locations?value.__v:value;const node={key:"machine_author",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1474="machine_contributor",peg$c1475=peg$literalExpectation("machine_contributor",false),peg$c1476=function(value){const raw=options.locations?value.__v:value;const node={key:"machine_contributor",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1477="machine_comment",peg$c1478=peg$literalExpectation("machine_comment",false),peg$c1479=function(value){const raw=options.locations?value.__v:value;const node={key:"machine_comment",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1480="machine_definition",peg$c1481=peg$literalExpectation("machine_definition",false),peg$c1482=function(value){const raw=options.locations?value.__v:value;const node={key:"machine_definition",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1483="machine_name",peg$c1484=peg$literalExpectation("machine_name",false),peg$c1485=function(value){const raw=options.locations?value.__v:value;const node={key:"machine_name",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1486="npm_name",peg$c1487=peg$literalExpectation("npm_name",false),peg$c1488=function(value){const raw=options.locations?value.__v:value;const node={key:"npm_name",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1489="machine_reference",peg$c1490=peg$literalExpectation("machine_reference",false),peg$c1491=function(value){const raw=options.locations?value.__v:value;const node={key:"machine_reference",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1492="machine_version",peg$c1493=peg$literalExpectation("machine_version",false),peg$c1494=function(value){const raw=options.locations?value.__v:value;const node={key:"machine_version",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1495="machine_license",peg$c1496=peg$literalExpectation("machine_license",false),peg$c1497=function(value){const raw=options.locations?value.__v:value;const node={key:"machine_license",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1498="machine_language",peg$c1499=peg$literalExpectation("machine_language",false),peg$c1500=function(value){const raw=options.locations?value.__v:value;const node={key:"machine_language",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1501="fsl_version",peg$c1502=peg$literalExpectation("fsl_version",false),peg$c1503=function(value){const raw=options.locations?value.__v:value;const node={key:"fsl_version",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1504="theme",peg$c1505=peg$literalExpectation("theme",false),peg$c1506=function(value){const raw=options.locations?value.__v:value;const node={key:"theme",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1507="flow",peg$c1508=peg$literalExpectation("flow",false),peg$c1509=function(value){const raw=options.locations?value.__v:value;const node={key:"flow",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1510="hooks",peg$c1511=peg$literalExpectation("hooks",false),peg$c1512=function(value){const raw=options.locations?value.__v:value;const node={key:"hook_definition",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1513="dot_preamble",peg$c1514=peg$literalExpectation("dot_preamble",false),peg$c1515=function(value){const raw=options.locations?value.__v:value;const node={key:"dot_preamble",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1516="height",peg$c1517=peg$literalExpectation("height",false),peg$c1518=function(n){return{height:n}},peg$c1519=function(w,h){return{width:w,height:h}},peg$c1520=function(w){return{width:w}},peg$c1521="default_size",peg$c1522=peg$literalExpectation("default_size",false),peg$c1523=function(value){const raw=options.locations?value.__v:value;const node={key:"default_size",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1524=peg$otherExpectation("machine attribute"),peg$c1525="label",peg$c1526=peg$literalExpectation("label",false),peg$c1527=function(value){const node={key:"state-label",value:value};if(options.locations){node.loc=location()}return node},peg$c1528="color",peg$c1529=peg$literalExpectation("color",false),peg$c1530=function(value){const raw=options.locations?value.__v:value;const node={key:"color",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1531=peg$otherExpectation("text color"),peg$c1532="text-color",peg$c1533=peg$literalExpectation("text-color",false),peg$c1534=function(value){const raw=options.locations?value.__v:value;const node={key:"text-color",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1535=peg$otherExpectation("background color"),peg$c1536="background-color",peg$c1537=peg$literalExpectation("background-color",false),peg$c1538=function(value){const raw=options.locations?value.__v:value;const node={key:"background-color",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1539=peg$otherExpectation("border color"),peg$c1540="border-color",peg$c1541=peg$literalExpectation("border-color",false),peg$c1542=function(value){const raw=options.locations?value.__v:value;const node={key:"border-color",value:raw};if(options.locations){node.loc=location();node.value_loc=value.__loc}return node},peg$c1543=peg$otherExpectation("shape"),peg$c1544="shape",peg$c1545=peg$literalExpectation("shape",false),peg$c1546=function(value){const node={key:"shape",value:value};if(options.locations){node.loc=location()}return node},peg$c1547=peg$otherExpectation("corners"),peg$c1548="corners",peg$c1549=peg$literalExpectation("corners",false),peg$c1550=function(value){const node={key:"corners",value:value};if(options.locations){node.loc=location()}return node},peg$c1551=peg$otherExpectation("linestyle"),peg$c1552=function(value){const node={key:"line-style",value:value};if(options.locations){node.loc=location()}return node},peg$c1553="linestyle",peg$c1554=peg$literalExpectation("linestyle",false),peg$c1555=peg$otherExpectation("image"),peg$c1556="image",peg$c1557=peg$literalExpectation("image",false),peg$c1558=function(value){const node={key:"image",value:value};if(options.locations){node.loc=location()}return node},peg$c1559=peg$otherExpectation("url"),peg$c1560="url",peg$c1561=peg$literalExpectation("url",false),peg$c1562=function(value){const node={key:"url",value:value};if(options.locations){node.loc=location()}return node},peg$c1563=peg$otherExpectation("state property"),peg$c1564="property",peg$c1565=peg$literalExpectation("property",false),peg$c1566=function(name,value){const node={key:"state_property",name:name,value:value};if(options.locations){node.loc=location()}return node},peg$c1567="required",peg$c1568=peg$literalExpectation("required",false),peg$c1569=function(name,value){const node={key:"state_property",name:name,value:value,required:true};if(options.locations){node.loc=location()}return node},peg$c1570=function(n){return options.locations?{__v:n,__loc:location()}:n},peg$c1571=function(name,value){const raw=options.locations?name.__v:name;const node={key:"state_declaration",name:raw,value:value};if(options.locations){node.loc=location();node.name_loc=name.__loc}return node},peg$c1572=function(name,value){const node={key:"named_list",name:name,value:value};if(options.locations){node.loc=location();node.value_locs=value.__member_locs;delete value.__member_locs}return node},peg$c1573=function(name,value){const node={key:"named_list",name:name,value:value.name};if(options.locations){node.loc=location();node.value_locs=[value.__loc]}return node},peg$c1574=function(name){const m={name:name};if(options.locations){m.__loc=location()}return m},peg$c1575=peg$otherExpectation("hook event (enter/exit)"),peg$c1576="enter",peg$c1577=peg$literalExpectation("enter",false),peg$c1578="exit",peg$c1579=peg$literalExpectation("exit",false),peg$c1580=peg$otherExpectation("hook declaration"),peg$c1581="on",peg$c1582=peg$literalExpectation("on",false),peg$c1583="do",peg$c1584=peg$literalExpectation("do",false),peg$c1585=function(event,subject,action){const node={key:"hook_decl",event:event,subject:subject,action:action};if(subject.key==="hook_state_subject"){node.subject=subject.name;if(options.locations){node.subject_loc=subject.__loc}}if(options.locations){node.loc=location()}return node},peg$c1586=function(name){const m={key:"hook_state_subject",name:name};if(options.locations){m.__loc=location()}return m},peg$c1587=function(name,default_value){const node={key:"property_definition",name:name,default_value:default_value,required:true};if(options.locations){node.loc=location()}return node},peg$c1588=function(name){const node={key:"property_definition",name:name,required:true};if(options.locations){node.loc=location()}return node},peg$c1589=function(name,default_value){const node={key:"property_definition",name:name,default_value:default_value};if(options.locations){node.loc=location()}return node},peg$c1590=function(name){const node={key:"property_definition",name:name};if(options.locations){node.loc=location()}return node},peg$c1591="arrange",peg$c1592=peg$literalExpectation("arrange",false),peg$c1593=function(value){const node={key:"arrange_declaration",value:value};if(options.locations){node.loc=location()}return node},peg$c1594="arrange-start",peg$c1595=peg$literalExpectation("arrange-start",false),peg$c1596=function(value){const node={key:"arrange_start_declaration",value:value};if(options.locations){node.loc=location()}return node},peg$c1597="arrange-end",peg$c1598=peg$literalExpectation("arrange-end",false),peg$c1599=function(value){const node={key:"arrange_end_declaration",value:value};if(options.locations){node.loc=location()}return node},peg$c1600=peg$otherExpectation("oarrange declaration"),peg$c1601="oarrange",peg$c1602=peg$literalExpectation("oarrange",false),peg$c1603=function(value){const node={key:"oarrange_declaration",value:value};if(options.locations){node.loc=location()}return node},peg$c1604=peg$otherExpectation("farrange declaration"),peg$c1605="farrange",peg$c1606=peg$literalExpectation("farrange",false),peg$c1607=function(value){const node={key:"farrange_declaration",value:value};if(options.locations){node.loc=location()}return node},peg$c1608=peg$otherExpectation("arrange declaration"),peg$currPos=0,peg$savedPos=0,peg$posDetailsCache=[{line:1,column:1}],peg$maxFailPos=0,peg$maxFailExpected=[],peg$silentFails=0,peg$result;if("startRule"in options){if(!(options.startRule in peg$startRuleFunctions)){throw new Error("Can't start parsing from rule \""+options.startRule+'".')}peg$startRuleFunction=peg$startRuleFunctions[options.startRule]}function text(){return input.substring(peg$savedPos,peg$currPos)}function location(){return peg$computeLocation(peg$savedPos,peg$currPos)}function error(message,location){location=location!==void 0?location:peg$computeLocation(peg$savedPos,peg$currPos);throw peg$buildSimpleError(message,location)}function peg$literalExpectation(text,ignoreCase){return{type:"literal",text:text,ignoreCase:ignoreCase}}function peg$classExpectation(parts,inverted,ignoreCase){return{type:"class",parts:parts,inverted:inverted,ignoreCase:ignoreCase}}function peg$anyExpectation(){return{type:"any"}}function peg$endExpectation(){return{type:"end"}}function peg$otherExpectation(description){return{type:"other",description:description}}function peg$computePosDetails(pos){var details=peg$posDetailsCache[pos],p;if(details){return details}else{p=pos-1;while(!peg$posDetailsCache[p]){p--}details=peg$posDetailsCache[p];details={line:details.line,column:details.column};while(p<pos){if(input.charCodeAt(p)===10){details.line++;details.column=1}else{details.column++}p++}peg$posDetailsCache[pos]=details;return details}}function peg$computeLocation(startPos,endPos){var startPosDetails=peg$computePosDetails(startPos),endPosDetails=peg$computePosDetails(endPos);return{start:{offset:startPos,line:startPosDetails.line,column:startPosDetails.column},end:{offset:endPos,line:endPosDetails.line,column:endPosDetails.column}}}function peg$fail(expected){if(peg$currPos<peg$maxFailPos){return}if(peg$currPos>peg$maxFailPos){peg$maxFailPos=peg$currPos;peg$maxFailExpected=[]}peg$maxFailExpected.push(expected)}function peg$buildSimpleError(message,location){return new peg$SyntaxError(message,null,null,location)}function peg$buildStructuredError(expected,found,location){return new peg$SyntaxError(peg$SyntaxError.buildMessage(expected,found),expected,found,location)}function peg$parseDocument(){var s0,s1,s2,s3;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){s2=peg$parseTermList();if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){peg$savedPos=s0;s1=peg$c0(s2);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseTheme(){var s0;if(input.substr(peg$currPos,7)===peg$c1){s0=peg$c1;peg$currPos+=7}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c2)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,5)===peg$c3){s0=peg$c3;peg$currPos+=5}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c4)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,6)===peg$c5){s0=peg$c5;peg$currPos+=6}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c6)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,5)===peg$c7){s0=peg$c7;peg$currPos+=5}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c8)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,4)===peg$c9){s0=peg$c9;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c10)}}}}}}return s0}function peg$parseThemeOrThemeList(){var s0,s1,s2,s3,s4,s5,s6;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===91){s1=peg$c11;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c12)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){s3=[];s4=peg$currPos;s5=peg$parseTheme();if(s5!==peg$FAILED){s6=peg$parseWS();if(s6!==peg$FAILED){s5=[s5,s6];s4=s5}else{peg$currPos=s4;s4=peg$FAILED}}else{peg$currPos=s4;s4=peg$FAILED}while(s4!==peg$FAILED){s3.push(s4);s4=peg$currPos;s5=peg$parseTheme();if(s5!==peg$FAILED){s6=peg$parseWS();if(s6!==peg$FAILED){s5=[s5,s6];s4=s5}else{peg$currPos=s4;s4=peg$FAILED}}else{peg$currPos=s4;s4=peg$FAILED}}if(s3!==peg$FAILED){s4=peg$parseTheme();if(s4===peg$FAILED){s4=null}if(s4!==peg$FAILED){if(input.charCodeAt(peg$currPos)===93){s5=peg$c13;peg$currPos++}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c14)}}if(s5!==peg$FAILED){peg$savedPos=s0;s1=peg$c15(s3,s4);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseTheme();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c16(s1)}s0=s1}return s0}function peg$parseGvizShape(){var s0;if(input.substr(peg$currPos,5)===peg$c17){s0=peg$c17;peg$currPos+=5}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c18)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,7)===peg$c19){s0=peg$c19;peg$currPos+=7}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c20)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,7)===peg$c21){s0=peg$c21;peg$currPos+=7}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c22)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,4)===peg$c23){s0=peg$c23;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c24)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,6)===peg$c25){s0=peg$c25;peg$currPos+=6}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c26)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,5)===peg$c27){s0=peg$c27;peg$currPos+=5}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c28)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,3)===peg$c29){s0=peg$c29;peg$currPos+=3}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c30)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,8)===peg$c31){s0=peg$c31;peg$currPos+=8}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c32)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,9)===peg$c33){s0=peg$c33;peg$currPos+=9}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c34)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,5)===peg$c7){s0=peg$c7;peg$currPos+=5}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c8)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,7)===peg$c35){s0=peg$c35;peg$currPos+=7}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c36)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,9)===peg$c37){s0=peg$c37;peg$currPos+=9}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c38)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,13)===peg$c39){s0=peg$c39;peg$currPos+=13}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c40)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,5)===peg$c41){s0=peg$c41;peg$currPos+=5}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c42)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,8)===peg$c43){s0=peg$c43;peg$currPos+=8}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c44)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,7)===peg$c45){s0=peg$c45;peg$currPos+=7}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c46)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,8)===peg$c47){s0=peg$c47;peg$currPos+=8}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c48)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,7)===peg$c49){s0=peg$c49;peg$currPos+=7}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c50)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,12)===peg$c51){s0=peg$c51;peg$currPos+=12}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c52)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,13)===peg$c53){s0=peg$c53;peg$currPos+=13}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c54)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,13)===peg$c55){s0=peg$c55;peg$currPos+=13}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c56)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,11)===peg$c57){s0=peg$c57;peg$currPos+=11}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c58)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,12)===peg$c59){s0=peg$c59;peg$currPos+=12}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c60)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,8)===peg$c61){s0=peg$c61;peg$currPos+=8}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c62)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,8)===peg$c63){s0=peg$c63;peg$currPos+=8}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c64)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,7)===peg$c65){s0=peg$c65;peg$currPos+=7}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c66)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,7)===peg$c67){s0=peg$c67;peg$currPos+=7}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c68)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,9)===peg$c69){s0=peg$c69;peg$currPos+=9}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c70)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,4)===peg$c71){s0=peg$c71;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c72)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,6)===peg$c73){s0=peg$c73;peg$currPos+=6}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c74)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,4)===peg$c75){s0=peg$c75;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c76)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,4)===peg$c77){s0=peg$c77;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c78)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,9)===peg$c79){s0=peg$c79;peg$currPos+=9}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c80)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,8)===peg$c81){s0=peg$c81;peg$currPos+=8}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c82)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,4)===peg$c83){s0=peg$c83;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c84)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,3)===peg$c85){s0=peg$c85;peg$currPos+=3}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c86)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,6)===peg$c87){s0=peg$c87;peg$currPos+=6}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c88)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,3)===peg$c89){s0=peg$c89;peg$currPos+=3}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c90)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,9)===peg$c91){s0=peg$c91;peg$currPos+=9}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c92)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,8)===peg$c93){s0=peg$c93;peg$currPos+=8}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c94)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,3)===peg$c95){s0=peg$c95;peg$currPos+=3}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c96)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,10)===peg$c97){s0=peg$c97;peg$currPos+=10}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c98)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,3)===peg$c99){s0=peg$c99;peg$currPos+=3}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c100)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,10)===peg$c101){s0=peg$c101;peg$currPos+=10}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c102)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,15)===peg$c103){s0=peg$c103;peg$currPos+=15}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c104)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,13)===peg$c105){s0=peg$c105;peg$currPos+=13}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c106)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,14)===peg$c107){s0=peg$c107;peg$currPos+=14}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c108)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,9)===peg$c109){s0=peg$c109;peg$currPos+=9}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c110)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,8)===peg$c111){s0=peg$c111;peg$currPos+=8}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c112)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,9)===peg$c113){s0=peg$c113;peg$currPos+=9}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c114)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,9)===peg$c115){s0=peg$c115;peg$currPos+=9}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c116)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,8)===peg$c117){s0=peg$c117;peg$currPos+=8}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c118)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,7)===peg$c119){s0=peg$c119;peg$currPos+=7}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c120)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,12)===peg$c121){s0=peg$c121;peg$currPos+=12}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c122)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,11)===peg$c123){s0=peg$c123;peg$currPos+=11}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c124)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,9)===peg$c125){s0=peg$c125;peg$currPos+=9}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c126)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,6)===peg$c127){s0=peg$c127;peg$currPos+=6}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c128)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,6)===peg$c129){s0=peg$c129;peg$currPos+=6}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c130)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,9)===peg$c131){s0=peg$c131;peg$currPos+=9}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c132)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,6)===peg$c133){s0=peg$c133;peg$currPos+=6}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c134)}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return s0}function peg$parseForwardLightArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,2)===peg$c136){s0=peg$c136;peg$currPos+=2}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c137)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===8594){s1=peg$c138;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c139)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c140()}s0=s1}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c135)}}return s0}function peg$parseTwoWayLightArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,3)===peg$c142){s0=peg$c142;peg$currPos+=3}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c143)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===8596){s1=peg$c144;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c145)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c146()}s0=s1}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c141)}}return s0}function peg$parseBackLightArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,2)===peg$c148){s0=peg$c148;peg$currPos+=2}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c149)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===8592){s1=peg$c150;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c151)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c152()}s0=s1}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c147)}}return s0}function peg$parseForwardFatArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,2)===peg$c154){s0=peg$c154;peg$currPos+=2}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c155)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===8658){s1=peg$c156;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c157)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c158()}s0=s1}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c153)}}return s0}function peg$parseTwoWayFatArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,3)===peg$c160){s0=peg$c160;peg$currPos+=3}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c161)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===8660){s1=peg$c162;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c163)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c164()}s0=s1}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c159)}}return s0}function peg$parseBackFatArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,2)===peg$c166){s0=peg$c166;peg$currPos+=2}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c167)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===8656){s1=peg$c168;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c169)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c170()}s0=s1}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c165)}}return s0}function peg$parseForwardTildeArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,2)===peg$c172){s0=peg$c172;peg$currPos+=2}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c173)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===8603){s1=peg$c174;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c175)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c176()}s0=s1}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c171)}}return s0}function peg$parseTwoWayTildeArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,3)===peg$c178){s0=peg$c178;peg$currPos+=3}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c179)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===8622){s1=peg$c180;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c181)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c182()}s0=s1}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c177)}}return s0}function peg$parseBackTildeArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,2)===peg$c184){s0=peg$c184;peg$currPos+=2}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c185)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===8602){s1=peg$c186;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c187)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c188()}s0=s1}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c183)}}return s0}function peg$parseLightFatArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,4)===peg$c190){s0=peg$c190;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c191)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c192){s1=peg$c192;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c193)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c194()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c195){s1=peg$c195;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c196)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c194()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c197){s1=peg$c197;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c198)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c194()}s0=s1}}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c189)}}return s0}function peg$parseLightTildeArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,4)===peg$c200){s0=peg$c200;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c201)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c202){s1=peg$c202;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c203)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c204()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c205){s1=peg$c205;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c206)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c204()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c207){s1=peg$c207;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c208)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c204()}s0=s1}}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c199)}}return s0}function peg$parseFatLightArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,4)===peg$c210){s0=peg$c210;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c211)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c212){s1=peg$c212;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c213)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c214()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c215){s1=peg$c215;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c216)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c214()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c217){s1=peg$c217;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c218)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c214()}s0=s1}}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c209)}}return s0}function peg$parseFatTildeArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,4)===peg$c220){s0=peg$c220;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c221)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c222){s1=peg$c222;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c223)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c224()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c225){s1=peg$c225;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c226)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c224()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c227){s1=peg$c227;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c228)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c224()}s0=s1}}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c219)}}return s0}function peg$parseTildeLightArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,4)===peg$c230){s0=peg$c230;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c231)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c232){s1=peg$c232;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c233)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c234()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c235){s1=peg$c235;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c236)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c234()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c237){s1=peg$c237;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c238)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c234()}s0=s1}}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c229)}}return s0}function peg$parseTildeFatArrow(){var s0,s1;peg$silentFails++;if(input.substr(peg$currPos,4)===peg$c240){s0=peg$c240;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c241)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c242){s1=peg$c242;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c243)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c244()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c245){s1=peg$c245;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c246)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c244()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c247){s1=peg$c247;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c248)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c244()}s0=s1}}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c239)}}return s0}function peg$parseLightArrow(){var s0;peg$silentFails++;s0=peg$parseForwardLightArrow();if(s0===peg$FAILED){s0=peg$parseTwoWayLightArrow();if(s0===peg$FAILED){s0=peg$parseBackLightArrow()}}peg$silentFails--;if(s0===peg$FAILED){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c249)}}return s0}function peg$parseFatArrow(){var s0;peg$silentFails++;s0=peg$parseForwardFatArrow();if(s0===peg$FAILED){s0=peg$parseTwoWayFatArrow();if(s0===peg$FAILED){s0=peg$parseBackFatArrow()}}peg$silentFails--;if(s0===peg$FAILED){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c250)}}return s0}function peg$parseTildeArrow(){var s0;peg$silentFails++;s0=peg$parseForwardTildeArrow();if(s0===peg$FAILED){s0=peg$parseTwoWayTildeArrow();if(s0===peg$FAILED){s0=peg$parseBackTildeArrow()}}peg$silentFails--;if(s0===peg$FAILED){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c251)}}return s0}function peg$parseMixedArrow(){var s0;peg$silentFails++;s0=peg$parseLightFatArrow();if(s0===peg$FAILED){s0=peg$parseLightTildeArrow();if(s0===peg$FAILED){s0=peg$parseFatLightArrow();if(s0===peg$FAILED){s0=peg$parseFatTildeArrow();if(s0===peg$FAILED){s0=peg$parseTildeLightArrow();if(s0===peg$FAILED){s0=peg$parseTildeFatArrow()}}}}}peg$silentFails--;if(s0===peg$FAILED){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c252)}}return s0}function peg$parseArrow(){var s0;peg$silentFails++;s0=peg$parseMixedArrow();if(s0===peg$FAILED){s0=peg$parseLightArrow();if(s0===peg$FAILED){s0=peg$parseFatArrow();if(s0===peg$FAILED){s0=peg$parseTildeArrow()}}}peg$silentFails--;if(s0===peg$FAILED){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c253)}}return s0}function peg$parseBoolean(){var s0,s1;s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c254){s1=peg$c254;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c255)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c256()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c257){s1=peg$c257;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c258)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c259()}s0=s1}return s0}function peg$parseCorners(){var s0;if(input.substr(peg$currPos,7)===peg$c260){s0=peg$c260;peg$currPos+=7}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c261)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,7)===peg$c262){s0=peg$c262;peg$currPos+=7}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c263)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,5)===peg$c264){s0=peg$c264;peg$currPos+=5}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c265)}}}}return s0}function peg$parseLineStyle(){var s0;if(input.substr(peg$currPos,5)===peg$c266){s0=peg$c266;peg$currPos+=5}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c267)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,6)===peg$c268){s0=peg$c268;peg$currPos+=6}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c269)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,6)===peg$c270){s0=peg$c270;peg$currPos+=6}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c271)}}}}return s0}function peg$parseNull(){var s0,s1;s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c300){s1=peg$c300;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c301)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c302()}s0=s1;return s0}function peg$parseUndefined(){var s0,s1;s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c303){s1=peg$c303;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c304)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c305()}s0=s1;return s0}function peg$parseActionLabel(){var c,start,chunk,out,h,hv;peg$silentFails++;if(input.charCodeAt(peg$currPos)===39){start=peg$currPos;peg$currPos++;chunk=peg$currPos;out="";for(;;){c=input.charCodeAt(peg$currPos);if(c>=32&&c!==39&&c!==92){peg$currPos++;continue}if(c===39){out=out+input.substring(chunk,peg$currPos);peg$currPos++;peg$silentFails--;return out}if(c===92){out+=input.substring(chunk,peg$currPos);peg$currPos++;c=input.charCodeAt(peg$currPos);if(c===39){out+="'";peg$currPos++}else if(c===92){out+="\\";peg$currPos++}else if(c===47){out+="/";peg$currPos++}else if(c===98){out+="\b";peg$currPos++}else if(c===102){out+="\f";peg$currPos++}else if(c===110){out+="\n";peg$currPos++}else if(c===114){out+="\r";peg$currPos++}else if(c===116){out+="\t";peg$currPos++}else if(c===118){out+="\v";peg$currPos++}else if(c===117){hv=0;for(h=1;h<=4;++h){c=input.charCodeAt(peg$currPos+h);if(c>=48&&c<=57){hv=hv*16+(c-48)}else if(c>=97&&c<=102){hv=hv*16+(c-87)}else if(c>=65&&c<=70){hv=hv*16+(c-55)}else{hv=-1;break}}if(hv<0){break}out+=String.fromCharCode(hv);peg$currPos+=5}else{break}chunk=peg$currPos;continue}break}peg$currPos=start}peg$silentFails--;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c312)}return peg$FAILED}function peg$parseLineTerminator(){var s0;if(peg$c314.test(input.charAt(peg$currPos))){s0=input.charAt(peg$currPos);peg$currPos++}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c315)}}return s0}function peg$parseBlockComment(){var s0,s1,s2,s3,s4,s5;peg$silentFails++;s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c317){s1=peg$c317;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c318)}}if(s1!==peg$FAILED){s2=[];s3=peg$currPos;s4=peg$currPos;peg$silentFails++;if(input.substr(peg$currPos,2)===peg$c319){s5=peg$c319;peg$currPos+=2}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c320)}}peg$silentFails--;if(s5===peg$FAILED){s4=void 0}else{peg$currPos=s4;s4=peg$FAILED}if(s4!==peg$FAILED){if(input.length>peg$currPos){s5=input.charAt(peg$currPos);peg$currPos++}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c321)}}if(s5!==peg$FAILED){s4=[s4,s5];s3=s4}else{peg$currPos=s3;s3=peg$FAILED}}else{peg$currPos=s3;s3=peg$FAILED}while(s3!==peg$FAILED){s2.push(s3);s3=peg$currPos;s4=peg$currPos;peg$silentFails++;if(input.substr(peg$currPos,2)===peg$c319){s5=peg$c319;peg$currPos+=2}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c320)}}peg$silentFails--;if(s5===peg$FAILED){s4=void 0}else{peg$currPos=s4;s4=peg$FAILED}if(s4!==peg$FAILED){if(input.length>peg$currPos){s5=input.charAt(peg$currPos);peg$currPos++}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c321)}}if(s5!==peg$FAILED){s4=[s4,s5];s3=s4}else{peg$currPos=s3;s3=peg$FAILED}}else{peg$currPos=s3;s3=peg$FAILED}}if(s2!==peg$FAILED){if(input.substr(peg$currPos,2)===peg$c319){s3=peg$c319;peg$currPos+=2}else{s3=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c320)}}if(s3!==peg$FAILED){s1=[s1,s2,s3];s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c316)}}return s0}function peg$parseEOF(){var s0,s1;s0=peg$currPos;peg$silentFails++;if(input.length>peg$currPos){s1=input.charAt(peg$currPos);peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c321)}}peg$silentFails--;if(s1===peg$FAILED){s0=void 0}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseLineComment(){var s0,s1,s2,s3,s4,s5;peg$silentFails++;s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c323){s1=peg$c323;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c324)}}if(s1!==peg$FAILED){s2=[];s3=peg$currPos;s4=peg$currPos;peg$silentFails++;s5=peg$parseLineTerminator();peg$silentFails--;if(s5===peg$FAILED){s4=void 0}else{peg$currPos=s4;s4=peg$FAILED}if(s4!==peg$FAILED){if(input.length>peg$currPos){s5=input.charAt(peg$currPos);peg$currPos++}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c321)}}if(s5!==peg$FAILED){s4=[s4,s5];s3=s4}else{peg$currPos=s3;s3=peg$FAILED}}else{peg$currPos=s3;s3=peg$FAILED}while(s3!==peg$FAILED){s2.push(s3);s3=peg$currPos;s4=peg$currPos;peg$silentFails++;s5=peg$parseLineTerminator();peg$silentFails--;if(s5===peg$FAILED){s4=void 0}else{peg$currPos=s4;s4=peg$FAILED}if(s4!==peg$FAILED){if(input.length>peg$currPos){s5=input.charAt(peg$currPos);peg$currPos++}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c321)}}if(s5!==peg$FAILED){s4=[s4,s5];s3=s4}else{peg$currPos=s3;s3=peg$FAILED}}else{peg$currPos=s3;s3=peg$FAILED}}if(s2!==peg$FAILED){s3=peg$parseLineTerminator();if(s3===peg$FAILED){s3=peg$parseEOF()}if(s3!==peg$FAILED){s1=[s1,s2,s3];s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c322)}}return s0}function peg$parseWS(){var c,r,matched;peg$silentFails++;matched=false;for(;;){c=input.charCodeAt(peg$currPos);if(c===32||c===9||c===13||c===10||c===11){peg$currPos++;matched=true;continue}if(c!==47){break}r=peg$parseBlockComment();if(r===peg$FAILED){r=peg$parseLineComment()}if(r===peg$FAILED){break}matched=true}peg$silentFails--;if(matched){return null}if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c325)}return peg$FAILED}function peg$parseString(){var c,start,chunk,out,h,hv;peg$silentFails++;if(input.charCodeAt(peg$currPos)===34){start=peg$currPos;peg$currPos++;chunk=peg$currPos;out="";for(;;){c=input.charCodeAt(peg$currPos);if(c>=0&&c!==34&&c!==92){peg$currPos++;continue}if(c===34){out=out+input.substring(chunk,peg$currPos);peg$currPos++;peg$silentFails--;return out}if(c===92){out+=input.substring(chunk,peg$currPos);peg$currPos++;c=input.charCodeAt(peg$currPos);if(c===34){out+='"';peg$currPos++}else if(c===92){out+="\\";peg$currPos++}else if(c===47){out+="/";peg$currPos++}else if(c===98){out+="\b";peg$currPos++}else if(c===102){out+="\f";peg$currPos++}else if(c===110){out+="\n";peg$currPos++}else if(c===114){out+="\r";peg$currPos++}else if(c===116){out+="\t";peg$currPos++}else if(c===118){out+="\v";peg$currPos++}else if(c===117){hv=0;for(h=1;h<=4;++h){c=input.charCodeAt(peg$currPos+h);if(c>=48&&c<=57){hv=hv*16+(c-48)}else if(c>=97&&c<=102){hv=hv*16+(c-87)}else if(c>=65&&c<=70){hv=hv*16+(c-55)}else{hv=-1;break}}if(hv<0){break}out+=String.fromCharCode(hv);peg$currPos+=5}else{break}chunk=peg$currPos;continue}break}peg$currPos=start}peg$silentFails--;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c328)}return peg$FAILED}function peg$parseAtomLetter(){var s0;if(peg$c331.test(input.charAt(peg$currPos))){s0=input.charAt(peg$currPos);peg$currPos++}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c332)}}return s0}function peg$parseAtom(){var c,start;peg$silentFails++;c=input.charCodeAt(peg$currPos);if(c>=48&&c<=57||c>=97&&c<=122||c>=65&&c<=90||c===46||c===95||c===33||c===36||c===94||c===42||c===63||c===44||c>=128){start=peg$currPos;peg$currPos++;c=input.charCodeAt(peg$currPos);while(c>=48&&c<=57||c>=97&&c<=122||c>=65&&c<=90||c===46||c===95||c===33||c===36||c===94||c===42||c===63||c===44||c===43||c===40||c===41||c===38||c===35||c===64||c>=128){peg$currPos++;c=input.charCodeAt(peg$currPos)}peg$silentFails--;return input.substring(start,peg$currPos)}peg$silentFails--;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c333)}return peg$FAILED}function peg$parseLabel(){var s0;peg$silentFails++;s0=peg$parseAtom();if(s0===peg$FAILED){s0=peg$parseString()}peg$silentFails--;if(s0===peg$FAILED){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c335)}}return s0}function peg$parseIntegerLiteral(){var c,start;c=input.charCodeAt(peg$currPos);if(c===48){peg$currPos++;return"0"}if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c337)}if(c>=49&&c<=57){start=peg$currPos;peg$currPos++;c=input.charCodeAt(peg$currPos);while(c>=48&&c<=57){peg$currPos++;c=input.charCodeAt(peg$currPos)}if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c339)}return input.substring(start,peg$currPos)}if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c341)}return peg$FAILED}function peg$parseDecimalDigit(){var s0;if(peg$c338.test(input.charAt(peg$currPos))){s0=input.charAt(peg$currPos);peg$currPos++}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c339)}}return s0}function peg$parseNonZeroDigit(){var s0;if(peg$c340.test(input.charAt(peg$currPos))){s0=input.charAt(peg$currPos);peg$currPos++}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c341)}}return s0}function peg$parseHexDigit(){var s0;if(peg$c342.test(input.charAt(peg$currPos))){s0=input.charAt(peg$currPos);peg$currPos++}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c343)}}return s0}function peg$parseBinaryDigit(){var s0;if(peg$c344.test(input.charAt(peg$currPos))){s0=input.charAt(peg$currPos);peg$currPos++}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c345)}}return s0}function peg$parseOctalDigit(){var s0;if(peg$c346.test(input.charAt(peg$currPos))){s0=input.charAt(peg$currPos);peg$currPos++}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c347)}}return s0}function peg$parseNonNegNumber(){var s0,s1,s2,s3,s4;peg$silentFails++;s0=peg$currPos;s1=peg$parseIntegerLiteral();if(s1!==peg$FAILED){if(input.charCodeAt(peg$currPos)===46){s2=peg$c349;peg$currPos++}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c350)}}if(s2!==peg$FAILED){s3=[];s4=peg$parseDecimalDigit();while(s4!==peg$FAILED){s3.push(s4);s4=peg$parseDecimalDigit()}if(s3!==peg$FAILED){s4=peg$parseWS();if(s4===peg$FAILED){s4=null}if(s4!==peg$FAILED){peg$savedPos=s0;s1=peg$c351();s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseIntegerLiteral();if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c351();s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c348)}}return s0}function peg$parseJsNumericLiteral(){var s0,s1;peg$silentFails++;s0=peg$currPos;s1=peg$parseJsHexIntegerLiteral();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c353(s1)}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseJsBinaryIntegerLiteral();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c353(s1)}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseNonJsOctalIntegerLiteral();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c353(s1)}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseJsDecimalLiteral();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c353(s1)}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c354){s1=peg$c354;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c355)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c356()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,16)===peg$c357){s1=peg$c357;peg$currPos+=16}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c358)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c359()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c360){s1=peg$c360;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c361)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c359()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c362){s1=peg$c362;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c363)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c359()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c364){s1=peg$c364;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c365)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c359()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c366){s1=peg$c366;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c367)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c359()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c368){s1=peg$c368;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c369)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c359()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c370){s1=peg$c370;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c371)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c359()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c372){s1=peg$c372;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c373)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c374()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c375){s1=peg$c375;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c376)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c374()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c377){s1=peg$c377;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c378)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c374()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c379){s1=peg$c379;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c380)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c374()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===8734){s1=peg$c381;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c382)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c374()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c383){s1=peg$c383;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c384)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c385()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c386){s1=peg$c386;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c387)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c385()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===949){s1=peg$c388;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c389)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c385()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c390){s1=peg$c390;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c391)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c392()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c393){s1=peg$c393;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c394)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c392()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===960){s1=peg$c395;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c396)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c392()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c397){s1=peg$c397;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c398)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c399()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===69){s1=peg$c400;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c401)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c399()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===101){s1=peg$c402;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c403)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c399()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===400){s1=peg$c404;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c405)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c399()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===8455){s1=peg$c406;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c407)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c399()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c408){s1=peg$c408;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c409)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c410()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c411){s1=peg$c411;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c412)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c413()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c414){s1=peg$c414;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c415)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c416()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c417){s1=peg$c417;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c418)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c416()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c419){s1=peg$c419;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c420)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c421()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c422){s1=peg$c422;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c423)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c421()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c424){s1=peg$c424;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c425)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c426()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c427){s1=peg$c427;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c428)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c429()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c430){s1=peg$c430;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c431)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c432()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c433){s1=peg$c433;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c434)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c435()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c436){s1=peg$c436;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c437)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c438()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c439){s1=peg$c439;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c440)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c441()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c442){s1=peg$c442;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c443)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c444()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c445){s1=peg$c445;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c446)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c444()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c447){s1=peg$c447;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c448)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c444()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===981){s1=peg$c449;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c450)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c444()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===966){s1=peg$c451;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c452)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c444()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c453){s1=peg$c453;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c454)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c455()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===947){s1=peg$c456;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c457)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c455()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c458){s1=peg$c458;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c459)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c455()}s0=s1}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c352)}}return s0}function peg$parseJsDecimalLiteral(){var s0,s1,s2,s3,s4;s0=peg$currPos;s1=peg$parseJsDecimalIntegerLiteral();if(s1!==peg$FAILED){if(input.charCodeAt(peg$currPos)===46){s2=peg$c349;peg$currPos++}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c350)}}if(s2!==peg$FAILED){s3=[];s4=peg$parseDecimalDigit();while(s4!==peg$FAILED){s3.push(s4);s4=peg$parseDecimalDigit()}if(s3!==peg$FAILED){s4=peg$parseJsNExponentPart();if(s4===peg$FAILED){s4=null}if(s4!==peg$FAILED){peg$savedPos=s0;s1=peg$c351();s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===46){s1=peg$c349;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c350)}}if(s1!==peg$FAILED){s2=[];s3=peg$parseDecimalDigit();if(s3!==peg$FAILED){while(s3!==peg$FAILED){s2.push(s3);s3=peg$parseDecimalDigit()}}else{s2=peg$FAILED}if(s2!==peg$FAILED){s3=peg$parseJsNExponentPart();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){peg$savedPos=s0;s1=peg$c351();s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseJsDecimalIntegerLiteral();if(s1!==peg$FAILED){s2=peg$parseJsNExponentPart();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c351();s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}}return s0}function peg$parseJsDecimalIntegerLiteral(){var s0,s1,s2,s3;if(input.charCodeAt(peg$currPos)===48){s0=peg$c336;peg$currPos++}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c337)}}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseNonZeroDigit();if(s1!==peg$FAILED){s2=[];s3=peg$parseDecimalDigit();while(s3!==peg$FAILED){s2.push(s3);s3=peg$parseDecimalDigit()}if(s2!==peg$FAILED){s1=[s1,s2];s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}return s0}function peg$parseJsNExponentPart(){var s0,s1,s2;s0=peg$currPos;s1=peg$parseJsNExponentIndicator();if(s1!==peg$FAILED){s2=peg$parseJsNSignedInteger();if(s2!==peg$FAILED){s1=[s1,s2];s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseJsNExponentIndicator(){var s0;if(input.substr(peg$currPos,1).toLowerCase()===peg$c402){s0=input.charAt(peg$currPos);peg$currPos++}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c460)}}return s0}function peg$parseJsNSignedInteger(){var s0,s1,s2,s3;s0=peg$currPos;if(peg$c461.test(input.charAt(peg$currPos))){s1=input.charAt(peg$currPos);peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c462)}}if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){s2=[];s3=peg$parseDecimalDigit();if(s3!==peg$FAILED){while(s3!==peg$FAILED){s2.push(s3);s3=peg$parseDecimalDigit()}}else{s2=peg$FAILED}if(s2!==peg$FAILED){s1=[s1,s2];s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseJsHexIntegerLiteral(){var s0,s1,s2,s3,s4;s0=peg$currPos;if(input.substr(peg$currPos,2).toLowerCase()===peg$c463){s1=input.substr(peg$currPos,2);peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c464)}}if(s1!==peg$FAILED){s2=peg$currPos;s3=[];s4=peg$parseHexDigit();if(s4!==peg$FAILED){while(s4!==peg$FAILED){s3.push(s4);s4=peg$parseHexDigit()}}else{s3=peg$FAILED}if(s3!==peg$FAILED){s2=input.substring(s2,peg$currPos)}else{s2=s3}if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c465(s2);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseJsBinaryIntegerLiteral(){var s0,s1,s2,s3,s4;s0=peg$currPos;if(input.substr(peg$currPos,2).toLowerCase()===peg$c466){s1=input.substr(peg$currPos,2);peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c467)}}if(s1!==peg$FAILED){s2=peg$currPos;s3=[];s4=peg$parseBinaryDigit();if(s4!==peg$FAILED){while(s4!==peg$FAILED){s3.push(s4);s4=peg$parseBinaryDigit()}}else{s3=peg$FAILED}if(s3!==peg$FAILED){s2=input.substring(s2,peg$currPos)}else{s2=s3}if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c468(s2);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseNonJsOctalIntegerLiteral(){var s0,s1,s2,s3,s4;s0=peg$currPos;if(input.substr(peg$currPos,2).toLowerCase()===peg$c469){s1=input.substr(peg$currPos,2);peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c470)}}if(s1!==peg$FAILED){s2=peg$currPos;s3=[];s4=peg$parseOctalDigit();if(s4!==peg$FAILED){while(s4!==peg$FAILED){s3.push(s4);s4=peg$parseOctalDigit()}}else{s3=peg$FAILED}if(s3!==peg$FAILED){s2=input.substring(s2,peg$currPos)}else{s2=s3}if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c471(s2);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseSemVer(){var s0,s1,s2,s3,s4,s5;s0=peg$currPos;s1=peg$parseIntegerLiteral();if(s1!==peg$FAILED){if(input.charCodeAt(peg$currPos)===46){s2=peg$c349;peg$currPos++}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c350)}}if(s2!==peg$FAILED){s3=peg$parseIntegerLiteral();if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===46){s4=peg$c349;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c350)}}if(s4!==peg$FAILED){s5=peg$parseIntegerLiteral();if(s5!==peg$FAILED){peg$savedPos=s0;s1=peg$c472(s1,s3,s5);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseUrlProtocol(){var s0;if(input.substr(peg$currPos,7)===peg$c483){s0=peg$c483;peg$currPos+=7}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c484)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,8)===peg$c485){s0=peg$c485;peg$currPos+=8}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c486)}}}return s0}function peg$parseURL(){var s0,s1,s2,s3;s0=peg$currPos;s1=peg$parseUrlProtocol();if(s1!==peg$FAILED){s2=[];if(peg$c487.test(input.charAt(peg$currPos))){s3=input.charAt(peg$currPos);peg$currPos++}else{s3=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c488)}}if(s3!==peg$FAILED){while(s3!==peg$FAILED){s2.push(s3);if(peg$c487.test(input.charAt(peg$currPos))){s3=input.charAt(peg$currPos);peg$currPos++}else{s3=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c488)}}}}else{s2=peg$FAILED}if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c489();s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseSvgColorLabel(){var s0,s1;s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c490){s1=peg$c490;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c491)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c492()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c493){s1=peg$c493;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c494)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c492()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c495){s1=peg$c495;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c496)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c497()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c498){s1=peg$c498;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c499)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c497()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c500){s1=peg$c500;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c501)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c502()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c503){s1=peg$c503;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c504)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c502()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c505){s1=peg$c505;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c506)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c507()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c508){s1=peg$c508;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c509)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c507()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c510){s1=peg$c510;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c511)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c512()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c513){s1=peg$c513;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c514)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c512()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c515){s1=peg$c515;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c516)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c517()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c518){s1=peg$c518;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c519)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c517()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c520){s1=peg$c520;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c521)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c522()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c523){s1=peg$c523;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c524)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c522()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c525){s1=peg$c525;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c526)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c527()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c528){s1=peg$c528;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c529)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c527()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c530){s1=peg$c530;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c531)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c532()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c533){s1=peg$c533;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c534)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c532()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c535){s1=peg$c535;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c536)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c537()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c538){s1=peg$c538;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c539)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c537()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c540){s1=peg$c540;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c541)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c542()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c543){s1=peg$c543;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c544)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c542()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c545){s1=peg$c545;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c546)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c547()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c548){s1=peg$c548;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c549)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c547()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c550){s1=peg$c550;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c551)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c552()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c553){s1=peg$c553;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c554)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c552()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c555){s1=peg$c555;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c556)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c557()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c558){s1=peg$c558;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c559)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c557()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c560){s1=peg$c560;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c561)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c562()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c563){s1=peg$c563;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c564)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c562()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c565){s1=peg$c565;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c566)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c567()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c568){s1=peg$c568;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c569)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c567()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c570){s1=peg$c570;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c571)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c572()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c573){s1=peg$c573;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c574)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c572()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c575){s1=peg$c575;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c576)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c577()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c578){s1=peg$c578;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c579)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c577()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c580){s1=peg$c580;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c581)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c582()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c583){s1=peg$c583;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c584)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c582()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c585){s1=peg$c585;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c586)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c587()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c588){s1=peg$c588;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c589)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c587()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c590){s1=peg$c590;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c591)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c507()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c592){s1=peg$c592;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c593)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c507()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c594){s1=peg$c594;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c595)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c596()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c597){s1=peg$c597;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c598)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c596()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c599){s1=peg$c599;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c600)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c601()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c602){s1=peg$c602;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c603)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c601()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c604){s1=peg$c604;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c605)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c606()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c607){s1=peg$c607;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c608)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c606()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c609){s1=peg$c609;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c610)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c611()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c612){s1=peg$c612;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c613)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c611()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c614){s1=peg$c614;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c615)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c611()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c616){s1=peg$c616;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c617)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c611()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c618){s1=peg$c618;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c619)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c620()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c621){s1=peg$c621;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c622)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c620()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c623){s1=peg$c623;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c624)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c625()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c626){s1=peg$c626;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c627)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c625()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c628){s1=peg$c628;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c629)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c630()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c631){s1=peg$c631;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c632)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c630()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c633){s1=peg$c633;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c634)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c635()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c636){s1=peg$c636;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c637)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c635()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c638){s1=peg$c638;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c639)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c640()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c641){s1=peg$c641;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c642)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c640()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c643){s1=peg$c643;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c644)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c645()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c646){s1=peg$c646;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c647)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c645()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c648){s1=peg$c648;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c649)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c650()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c651){s1=peg$c651;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c652)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c650()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c653){s1=peg$c653;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c654)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c655()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c656){s1=peg$c656;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c657)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c655()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c658){s1=peg$c658;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c659)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c660()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c661){s1=peg$c661;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c662)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c660()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c663){s1=peg$c663;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c664)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c665()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c666){s1=peg$c666;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c667)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c665()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c668){s1=peg$c668;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c669)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c670()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c671){s1=peg$c671;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c672)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c670()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c673){s1=peg$c673;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c674)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c670()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c675){s1=peg$c675;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c676)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c670()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c677){s1=peg$c677;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c678)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c679()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c680){s1=peg$c680;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c681)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c679()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c682){s1=peg$c682;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c683)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c684()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c685){s1=peg$c685;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c686)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c684()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c687){s1=peg$c687;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c688)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c689()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c690){s1=peg$c690;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c691)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c689()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c692){s1=peg$c692;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c693)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c694()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c695){s1=peg$c695;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c696)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c694()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c697){s1=peg$c697;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c698)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c699()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c700){s1=peg$c700;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c701)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c699()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c702){s1=peg$c702;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c703)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c699()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c704){s1=peg$c704;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c705)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c699()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c706){s1=peg$c706;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c707)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c708()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c709){s1=peg$c709;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c710)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c708()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c711){s1=peg$c711;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c712)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c713()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c714){s1=peg$c714;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c715)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c713()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c716){s1=peg$c716;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c717)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c718()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c719){s1=peg$c719;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c720)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c718()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c721){s1=peg$c721;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c722)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c723()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c724){s1=peg$c724;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c725)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c723()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c726){s1=peg$c726;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c727)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c728()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c729){s1=peg$c729;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c730)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c728()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c731){s1=peg$c731;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c732)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c733()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c734){s1=peg$c734;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c735)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c733()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c736){s1=peg$c736;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c737)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c738()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c739){s1=peg$c739;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c740)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c738()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c741){s1=peg$c741;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c742)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c743()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c744){s1=peg$c744;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c745)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c743()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c746){s1=peg$c746;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c747)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c748()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c749){s1=peg$c749;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c750)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c748()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c751){s1=peg$c751;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c752)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c753()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c754){s1=peg$c754;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c755)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c753()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c756){s1=peg$c756;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c757)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c753()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c758){s1=peg$c758;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c759)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c753()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c760){s1=peg$c760;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c761)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c762()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c763){s1=peg$c763;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c764)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c762()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c765){s1=peg$c765;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c766)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c767()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c768){s1=peg$c768;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c769)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c767()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c770){s1=peg$c770;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c771)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c772()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c773){s1=peg$c773;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c774)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c772()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c775){s1=peg$c775;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c776)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c777()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c778){s1=peg$c778;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c779)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c777()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c780){s1=peg$c780;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c781)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c782()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c783){s1=peg$c783;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c784)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c782()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c785){s1=peg$c785;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c786)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c787()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c788){s1=peg$c788;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c789)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c787()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c790){s1=peg$c790;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c791)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c792()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c793){s1=peg$c793;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c794)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c792()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c795){s1=peg$c795;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c796)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c797()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c798){s1=peg$c798;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c799)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c797()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c800){s1=peg$c800;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c801)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c802()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c803){s1=peg$c803;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c804)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c802()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c805){s1=peg$c805;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c806)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c807()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c808){s1=peg$c808;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c809)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c807()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c810){s1=peg$c810;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c811)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c812()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c813){s1=peg$c813;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c814)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c812()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c815){s1=peg$c815;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c816)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c817()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c818){s1=peg$c818;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c819)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c817()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c820){s1=peg$c820;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c821)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c822()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c823){s1=peg$c823;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c824)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c822()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c825){s1=peg$c825;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c826)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c827()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c828){s1=peg$c828;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c829)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c827()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c830){s1=peg$c830;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c831)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c832()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c833){s1=peg$c833;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c834)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c832()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,20)===peg$c835){s1=peg$c835;peg$currPos+=20}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c836)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c837()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,20)===peg$c838){s1=peg$c838;peg$currPos+=20}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c839)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c837()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c840){s1=peg$c840;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c841)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c842()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c843){s1=peg$c843;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c844)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c842()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c845){s1=peg$c845;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c846)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c842()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c847){s1=peg$c847;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c848)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c842()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c849){s1=peg$c849;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c850)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c851()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c852){s1=peg$c852;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c853)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c851()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c854){s1=peg$c854;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c855)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c856()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c857){s1=peg$c857;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c858)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c856()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c859){s1=peg$c859;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c860)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c861()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c862){s1=peg$c862;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c863)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c861()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c864){s1=peg$c864;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c865)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c866()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c867){s1=peg$c867;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c868)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c866()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c869){s1=peg$c869;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c870)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c871()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c872){s1=peg$c872;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c873)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c871()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c874){s1=peg$c874;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c875)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c876()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c877){s1=peg$c877;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c878)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c876()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c879){s1=peg$c879;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c880)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c876()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c881){s1=peg$c881;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c882)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c876()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c883){s1=peg$c883;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c884)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c885()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c886){s1=peg$c886;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c887)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c885()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c888){s1=peg$c888;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c889)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c890()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c891){s1=peg$c891;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c892)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c890()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c893){s1=peg$c893;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c894)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c895()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c896){s1=peg$c896;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c897)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c895()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c898){s1=peg$c898;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c899)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c900()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c901){s1=peg$c901;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c902)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c900()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c903){s1=peg$c903;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c904)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c905()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c906){s1=peg$c906;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c907)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c905()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c908){s1=peg$c908;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c909)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c728()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c910){s1=peg$c910;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c911)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c728()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c912){s1=peg$c912;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c913)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c914()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c915){s1=peg$c915;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c916)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c914()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,16)===peg$c917){s1=peg$c917;peg$currPos+=16}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c918)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c919()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,16)===peg$c920){s1=peg$c920;peg$currPos+=16}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c921)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c919()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c922){s1=peg$c922;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c923)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c924()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c925){s1=peg$c925;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c926)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c924()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c927){s1=peg$c927;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c928)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c929()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c930){s1=peg$c930;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c931)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c929()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c932){s1=peg$c932;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c933)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c934()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c935){s1=peg$c935;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c936)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c934()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c937){s1=peg$c937;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c938)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c939()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,14)===peg$c940){s1=peg$c940;peg$currPos+=14}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c941)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c939()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,15)===peg$c942){s1=peg$c942;peg$currPos+=15}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c943)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c944()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,15)===peg$c945){s1=peg$c945;peg$currPos+=15}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c946)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c944()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,17)===peg$c947){s1=peg$c947;peg$currPos+=17}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c948)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c949()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,17)===peg$c950){s1=peg$c950;peg$currPos+=17}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c951)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c949()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,15)===peg$c952){s1=peg$c952;peg$currPos+=15}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c953)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c954()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,15)===peg$c955){s1=peg$c955;peg$currPos+=15}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c956)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c954()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,15)===peg$c957){s1=peg$c957;peg$currPos+=15}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c958)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c959()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,15)===peg$c960){s1=peg$c960;peg$currPos+=15}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c961)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c959()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c962){s1=peg$c962;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c963)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c964()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,12)===peg$c965){s1=peg$c965;peg$currPos+=12}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c966)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c964()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c967){s1=peg$c967;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c968)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c969()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c970){s1=peg$c970;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c971)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c969()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c972){s1=peg$c972;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c973)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c974()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c975){s1=peg$c975;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c976)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c974()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c977){s1=peg$c977;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c978)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c979()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c980){s1=peg$c980;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c981)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c979()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c982){s1=peg$c982;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c983)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c984()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c985){s1=peg$c985;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c986)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c984()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c987){s1=peg$c987;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c988)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c989()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c990){s1=peg$c990;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c991)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c989()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c992){s1=peg$c992;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c993)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c994()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c995){s1=peg$c995;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c996)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c994()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c997){s1=peg$c997;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c998)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c999()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1000){s1=peg$c1000;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1001)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c999()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c1002){s1=peg$c1002;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1003)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1004()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c1005){s1=peg$c1005;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1006)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1004()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1007){s1=peg$c1007;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1008)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1009()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1010){s1=peg$c1010;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1011)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1009()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1012){s1=peg$c1012;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1013)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1014()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1015){s1=peg$c1015;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1016)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1014()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1017){s1=peg$c1017;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1018)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1019()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1020){s1=peg$c1020;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1021)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1019()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c1022){s1=peg$c1022;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1023)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1024()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c1025){s1=peg$c1025;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1026)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1024()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1027){s1=peg$c1027;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1028)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1029()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1030){s1=peg$c1030;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1031)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1029()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c1032){s1=peg$c1032;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1033)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1034()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c1035){s1=peg$c1035;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1036)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1034()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c1037){s1=peg$c1037;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1038)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1039()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c1040){s1=peg$c1040;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1041)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1039()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c1042){s1=peg$c1042;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1043)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1044()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c1045){s1=peg$c1045;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1046)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1044()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1047){s1=peg$c1047;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1048)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1049()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1050){s1=peg$c1050;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1051)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1049()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c1052){s1=peg$c1052;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1053)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1054()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c1055){s1=peg$c1055;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1056)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1054()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c1057){s1=peg$c1057;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1058)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1059()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c1060){s1=peg$c1060;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1061)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1059()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c1062){s1=peg$c1062;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1063)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1064()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c1065){s1=peg$c1065;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1066)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1064()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c1067){s1=peg$c1067;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1068)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1069()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c1070){s1=peg$c1070;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1071)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1069()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1072){s1=peg$c1072;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1073)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1074()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1075){s1=peg$c1075;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1076)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1074()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c1077){s1=peg$c1077;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1078)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1079()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c1080){s1=peg$c1080;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1081)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1079()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1082){s1=peg$c1082;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1083)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1084()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1085){s1=peg$c1085;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1086)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1084()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1087){s1=peg$c1087;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1088)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1089()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1090){s1=peg$c1090;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1091)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1089()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c1092){s1=peg$c1092;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1093)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1094()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c1095){s1=peg$c1095;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1096)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1094()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1097){s1=peg$c1097;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1098)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1099()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1100){s1=peg$c1100;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1101)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1099()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c1102){s1=peg$c1102;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1103)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1104()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c1105){s1=peg$c1105;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1106)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1104()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c1107){s1=peg$c1107;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1108)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1109()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c1110){s1=peg$c1110;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1111)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1109()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c1112){s1=peg$c1112;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1113)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1114()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c1115){s1=peg$c1115;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1116)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1114()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1117){s1=peg$c1117;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1118)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1119()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1120){s1=peg$c1120;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1121)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1119()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1122){s1=peg$c1122;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1123)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1124()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1125){s1=peg$c1125;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1126)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1124()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c1127){s1=peg$c1127;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1128)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1129()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c1130){s1=peg$c1130;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1131)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1129()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1132){s1=peg$c1132;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1133)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1134()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1135){s1=peg$c1135;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1136)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1134()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1137){s1=peg$c1137;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1138)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1139()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1140){s1=peg$c1140;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1141)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1139()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1142){s1=peg$c1142;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1143)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1139()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1144){s1=peg$c1144;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1145)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1139()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c1146){s1=peg$c1146;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1147)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1148()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c1149){s1=peg$c1149;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1150)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1148()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c1151){s1=peg$c1151;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1152)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1153()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c1154){s1=peg$c1154;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1155)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1153()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1156){s1=peg$c1156;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1157)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1158()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1159){s1=peg$c1159;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1160)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1158()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c1161){s1=peg$c1161;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1162)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1163()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c1164){s1=peg$c1164;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1165)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1163()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c1166){s1=peg$c1166;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1167)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1168()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c1169){s1=peg$c1169;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1170)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1168()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c1171){s1=peg$c1171;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1172)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1173()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c1174){s1=peg$c1174;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1175)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1173()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1176){s1=peg$c1176;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1177)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1178()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1179){s1=peg$c1179;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1180)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1178()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c1181){s1=peg$c1181;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1182)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1183()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c1184){s1=peg$c1184;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1185)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1183()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1186){s1=peg$c1186;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1187)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1188()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1189){s1=peg$c1189;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1190)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1188()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1191){s1=peg$c1191;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1192)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1193()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1194){s1=peg$c1194;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1195)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1193()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c1196){s1=peg$c1196;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1197)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1198()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c1199){s1=peg$c1199;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1200)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1198()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c1201){s1=peg$c1201;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1202)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1203()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c1204){s1=peg$c1204;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1205)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1203()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c1206){s1=peg$c1206;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1207)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1208()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c1209){s1=peg$c1209;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1210)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1208()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c1211){s1=peg$c1211;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1212)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1213()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c1214){s1=peg$c1214;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1215)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1213()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1216){s1=peg$c1216;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1217)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1218()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1219){s1=peg$c1219;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1220)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1218()}s0=s1}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return s0}function peg$parseSvgColor(){var s0,s1,s2;s0=peg$currPos;s1=peg$parseSvgColorLabel();if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c1221(s1);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseRgb3(){var s0,s1,s2,s3,s4,s5;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===35){s1=peg$c1222;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1223)}}if(s1!==peg$FAILED){s2=peg$parseHexDigit();if(s2!==peg$FAILED){s3=peg$parseHexDigit();if(s3!==peg$FAILED){s4=peg$parseHexDigit();if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){peg$savedPos=s0;s1=peg$c1224(s2,s3,s4);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseRgb6(){var s0,s1,s2,s3,s4,s5,s6,s7,s8;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===35){s1=peg$c1222;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1223)}}if(s1!==peg$FAILED){s2=peg$parseHexDigit();if(s2!==peg$FAILED){s3=peg$parseHexDigit();if(s3!==peg$FAILED){s4=peg$parseHexDigit();if(s4!==peg$FAILED){s5=peg$parseHexDigit();if(s5!==peg$FAILED){s6=peg$parseHexDigit();if(s6!==peg$FAILED){s7=peg$parseHexDigit();if(s7!==peg$FAILED){s8=peg$parseWS();if(s8===peg$FAILED){s8=null}if(s8!==peg$FAILED){peg$savedPos=s0;s1=peg$c1225(s2,s3,s4,s5,s6,s7);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseRgba4(){var s0,s1,s2,s3,s4,s5,s6;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===35){s1=peg$c1222;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1223)}}if(s1!==peg$FAILED){s2=peg$parseHexDigit();if(s2!==peg$FAILED){s3=peg$parseHexDigit();if(s3!==peg$FAILED){s4=peg$parseHexDigit();if(s4!==peg$FAILED){s5=peg$parseHexDigit();if(s5!==peg$FAILED){s6=peg$parseWS();if(s6===peg$FAILED){s6=null}if(s6!==peg$FAILED){peg$savedPos=s0;s1=peg$c1226(s2,s3,s4,s5);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseRgba8(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===35){s1=peg$c1222;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1223)}}if(s1!==peg$FAILED){s2=peg$parseHexDigit();if(s2!==peg$FAILED){s3=peg$parseHexDigit();if(s3!==peg$FAILED){s4=peg$parseHexDigit();if(s4!==peg$FAILED){s5=peg$parseHexDigit();if(s5!==peg$FAILED){s6=peg$parseHexDigit();if(s6!==peg$FAILED){s7=peg$parseHexDigit();if(s7!==peg$FAILED){s8=peg$parseHexDigit();if(s8!==peg$FAILED){s9=peg$parseHexDigit();if(s9!==peg$FAILED){s10=peg$parseWS();if(s10===peg$FAILED){s10=null}if(s10!==peg$FAILED){peg$savedPos=s0;s1=peg$c1227(s2,s3,s4,s5,s6,s7,s8,s9);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseColor(){var s0;peg$silentFails++;s0=peg$parseSvgColor();if(s0===peg$FAILED){s0=peg$parseRgba8();if(s0===peg$FAILED){s0=peg$parseRgb6();if(s0===peg$FAILED){s0=peg$parseRgba4();if(s0===peg$FAILED){s0=peg$parseRgb3()}}}}peg$silentFails--;if(s0===peg$FAILED){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1228)}}return s0}function peg$parseArrowItemKey(){var s0;if(input.substr(peg$currPos,9)===peg$c1229){s0=peg$c1229;peg$currPos+=9}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1230)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,10)===peg$c1231){s0=peg$c1231;peg$currPos+=10}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1232)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,10)===peg$c1233){s0=peg$c1233;peg$currPos+=10}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1234)}}}}return s0}function peg$parseArrowItem(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){s2=peg$parseArrowItemKey();if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseLabel();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1239(s2,s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseSingleEdgeColor(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,10)===peg$c1241){s2=peg$c1241;peg$currPos+=10}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1242)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseColor();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1244(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,10)===peg$c1245){s2=peg$c1245;peg$currPos+=10}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1246)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseColor();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1244(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1240)}}return s0}function peg$parseTransitionLineStyle(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,10)===peg$c1248){s2=peg$c1248;peg$currPos+=10}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1249)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseLineStyle();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1250(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1247)}}return s0}function peg$parseArrowItems(){var s0,s1;s0=peg$parseSingleEdgeColor();if(s0===peg$FAILED){s0=peg$parseTransitionLineStyle();if(s0===peg$FAILED){s0=[];s1=peg$parseArrowItem();if(s1!==peg$FAILED){while(s1!==peg$FAILED){s0.push(s1);s1=peg$parseArrowItem()}}else{s0=peg$FAILED}}}return s0}function peg$parseArrowDesc(){var s0,s1,s2,s3,s4,s5;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===123){s1=peg$c1251;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1252)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){s3=peg$parseArrowItems();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){s4=peg$parseWS();if(s4===peg$FAILED){s4=null}if(s4!==peg$FAILED){if(input.charCodeAt(peg$currPos)===125){s5=peg$c1253;peg$currPos++}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1254)}}if(s5!==peg$FAILED){peg$savedPos=s0;s1=peg$c1255(s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseArrowProbability(){var s0,s1,s2;s0=peg$currPos;s1=peg$parseNonNegNumber();if(s1!==peg$FAILED){if(input.charCodeAt(peg$currPos)===37){s2=peg$c1256;peg$currPos++}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1257)}}if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c1258(s1);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}var peg$timetype_alts=[[12,peg$c1259,peg$c1260,peg$c1261,109],[11,peg$c1262,peg$c1263,peg$c1261,109],[5,peg$c1264,peg$c1265,peg$c1261,109],[4,peg$c1266,peg$c1267,peg$c1261,109],[2,peg$c1268,peg$c1269,peg$c1261,109],[7,peg$c1270,peg$c1271,peg$c1272,115],[6,peg$c1273,peg$c1274,peg$c1272,115],[4,peg$c1275,peg$c1276,peg$c1272,115],[3,peg$c1277,peg$c1278,peg$c1272,115],[1,peg$c1279,peg$c1280,peg$c1272,115],[7,peg$c1281,peg$c1282,peg$c1283,109],[6,peg$c1284,peg$c1285,peg$c1283,109],[4,peg$c1286,peg$c1287,peg$c1283,109],[3,peg$c1288,peg$c1289,peg$c1283,109],[1,peg$c1290,peg$c1291,peg$c1283,109],[5,peg$c1292,peg$c1293,peg$c1294,104],[4,peg$c1295,peg$c1296,peg$c1294,104],[3,peg$c1297,peg$c1298,peg$c1294,104],[2,peg$c1299,peg$c1300,peg$c1294,104],[1,peg$c1301,peg$c1302,peg$c1294,104],[4,peg$c1303,peg$c1304,peg$c1305,100],[3,peg$c1306,peg$c1307,peg$c1305,100],[1,peg$c1308,peg$c1309,peg$c1305,100],[5,peg$c1310,peg$c1311,peg$c1312,119],[4,peg$c1313,peg$c1314,peg$c1312,119],[3,peg$c1315,peg$c1316,peg$c1312,119],[2,peg$c1317,peg$c1318,peg$c1312,119],[1,peg$c1319,peg$c1320,peg$c1312,119]];function peg$parseTimeType(){var i,j,alt,start;var c=input.charCodeAt(peg$currPos);for(i=0;i<28;i++){alt=peg$timetype_alts[i];if(alt[4]!==c){continue}if(alt[0]!==1&&input.substr(peg$currPos,alt[0])!==alt[1]){continue}if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){for(j=0;j<i;j++){peg$fail(peg$timetype_alts[j][2])}}start=peg$currPos;peg$currPos+=alt[0];peg$savedPos=start;return alt[3]()}if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){for(j=0;j<28;j++){peg$fail(peg$timetype_alts[j][2])}}return peg$FAILED}function peg$parseArrowAfter(){var s0,s1,s2,s3,s4,s5;s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c1321){s1=peg$c1321;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1322)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2!==peg$FAILED){s3=peg$parseNonNegNumber();if(s3!==peg$FAILED){s4=peg$parseWS();if(s4===peg$FAILED){s4=null}if(s4!==peg$FAILED){s5=peg$parseTimeType();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){peg$savedPos=s0;s1=peg$c1323(s3,s5);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseLabelList(){var s0,s1,s2,s3,s4,s5,s6;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===91){s1=peg$c11;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c12)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){s3=[];s4=peg$currPos;s5=peg$parseLabel();if(s5!==peg$FAILED){s6=peg$parseWS();if(s6===peg$FAILED){s6=null}if(s6!==peg$FAILED){s5=[s5,s6];s4=s5}else{peg$currPos=s4;s4=peg$FAILED}}else{peg$currPos=s4;s4=peg$FAILED}while(s4!==peg$FAILED){s3.push(s4);s4=peg$currPos;s5=peg$parseLabel();if(s5!==peg$FAILED){s6=peg$parseWS();if(s6===peg$FAILED){s6=null}if(s6!==peg$FAILED){s5=[s5,s6];s4=s5}else{peg$currPos=s4;s4=peg$FAILED}}else{peg$currPos=s4;s4=peg$FAILED}}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===93){s4=peg$c13;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c14)}}if(s4!==peg$FAILED){peg$savedPos=s0;s1=peg$c1324(s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseLabelOrLabelList(){var s0;s0=peg$parseLabelList();if(s0===peg$FAILED){s0=peg$parseLabel()}return s0}function peg$parseGroupRef(){var s0,s1,s2,s3;peg$silentFails++;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===38){s1=peg$c1326;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1327)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){s3=peg$parseLabel();if(s3!==peg$FAILED){peg$savedPos=s0;s1=peg$c1328(s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1325)}}return s0}function peg$parseGroupMember(){var s0,s1,s2,s3,s4,s5;s0=peg$currPos;if(input.substr(peg$currPos,3)===peg$c1329){s1=peg$c1329;peg$currPos+=3}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1330)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){if(input.charCodeAt(peg$currPos)===38){s3=peg$c1326;peg$currPos++}else{s3=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1327)}}if(s3!==peg$FAILED){s4=peg$parseWS();if(s4===peg$FAILED){s4=null}if(s4!==peg$FAILED){s5=peg$parseLabel();if(s5!==peg$FAILED){peg$savedPos=s0;s1=peg$c1331(s5);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===38){s1=peg$c1326;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1327)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){s3=peg$parseLabel();if(s3!==peg$FAILED){peg$savedPos=s0;s1=peg$c1332(s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseLabel();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1333(s1)}s0=s1}}return s0}function peg$parseGroupMemberList(){var s0,s1,s2,s3,s4,s5,s6;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===91){s1=peg$c11;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c12)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){s3=[];s4=peg$currPos;s5=peg$parseGroupMember();if(s5!==peg$FAILED){s6=peg$parseWS();if(s6===peg$FAILED){s6=null}if(s6!==peg$FAILED){s5=[s5,s6];s4=s5}else{peg$currPos=s4;s4=peg$FAILED}}else{peg$currPos=s4;s4=peg$FAILED}while(s4!==peg$FAILED){s3.push(s4);s4=peg$currPos;s5=peg$parseGroupMember();if(s5!==peg$FAILED){s6=peg$parseWS();if(s6===peg$FAILED){s6=null}if(s6!==peg$FAILED){s5=[s5,s6];s4=s5}else{peg$currPos=s4;s4=peg$FAILED}}else{peg$currPos=s4;s4=peg$FAILED}}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===93){s4=peg$c13;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c14)}}if(s4!==peg$FAILED){peg$savedPos=s0;s1=peg$c1334(s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseStripe(){var s0,s1,s2,s3,s4,s5,s6;var cg=input.charCodeAt(peg$currPos);if(cg!==43&&cg!==45){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1336);peg$fail(peg$c1339)}return peg$FAILED}s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c1335){s1=peg$c1335;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1336)}}if(s1!==peg$FAILED){s2=peg$currPos;s3=peg$currPos;s4=peg$parseNonZeroDigit();if(s4!==peg$FAILED){s5=[];s6=peg$parseDecimalDigit();while(s6!==peg$FAILED){s5.push(s6);s6=peg$parseDecimalDigit()}if(s5!==peg$FAILED){s4=[s4,s5];s3=s4}else{peg$currPos=s3;s3=peg$FAILED}}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=input.substring(s2,peg$currPos)}else{s2=s3}if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c1337(s2);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c1338){s1=peg$c1338;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1339)}}if(s1!==peg$FAILED){s2=peg$currPos;s3=peg$currPos;s4=peg$parseNonZeroDigit();if(s4!==peg$FAILED){s5=[];s6=peg$parseDecimalDigit();while(s6!==peg$FAILED){s5.push(s6);s6=peg$parseDecimalDigit()}if(s5!==peg$FAILED){s4=[s4,s5];s3=s4}else{peg$currPos=s3;s3=peg$FAILED}}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=input.substring(s2,peg$currPos)}else{s2=s3}if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c1340(s2);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}return s0}function peg$parseCycle(){var s0,s1,s2,s3,s4,s5,s6;var cg=input.charCodeAt(peg$currPos);if(cg!==43&&cg!==45){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1342);peg$fail(peg$c1345);peg$fail(peg$c1348)}return peg$FAILED}s0=peg$currPos;if(input.charCodeAt(peg$currPos)===43){s1=peg$c1341;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1342)}}if(s1!==peg$FAILED){s2=peg$currPos;s3=peg$currPos;s4=peg$parseNonZeroDigit();if(s4!==peg$FAILED){s5=[];s6=peg$parseDecimalDigit();while(s6!==peg$FAILED){s5.push(s6);s6=peg$parseDecimalDigit()}if(s5!==peg$FAILED){s4=[s4,s5];s3=s4}else{peg$currPos=s3;s3=peg$FAILED}}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=input.substring(s2,peg$currPos)}else{s2=s3}if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c1343(s2);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;if(input.charCodeAt(peg$currPos)===45){s1=peg$c1344;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1345)}}if(s1!==peg$FAILED){s2=peg$currPos;s3=peg$currPos;s4=peg$parseNonZeroDigit();if(s4!==peg$FAILED){s5=[];s6=peg$parseDecimalDigit();while(s6!==peg$FAILED){s5.push(s6);s6=peg$parseDecimalDigit()}if(s5!==peg$FAILED){s4=[s4,s5];s3=s4}else{peg$currPos=s3;s3=peg$FAILED}}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=input.substring(s2,peg$currPos)}else{s2=s3}if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c1346(s2);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c1347){s1=peg$c1347;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1348)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1349()}s0=s1}}return s0}function peg$parseArrowTarget(){var s0;s0=peg$parseStripe();if(s0===peg$FAILED){s0=peg$parseCycle();if(s0===peg$FAILED){s0=peg$parseLabelList();if(s0===peg$FAILED){s0=peg$parseGroupRef();if(s0===peg$FAILED){s0=peg$parseLabel()}}}}return s0}function peg$parseArrowDecoration(){var s0,s1;s0=peg$currPos;s1=peg$parseArrowAfter();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1350(s1)}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseActionLabel();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1351(s1)}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseArrowProbability();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1352(s1)}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseArrowDesc();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1353(s1)}s0=s1}}}return s0}function peg$parseArrowDecorations(){var s0,s1,s2,s3;s0=[];s1=peg$currPos;s2=peg$parseArrowDecoration();if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){peg$savedPos=s1;s2=peg$c1354(s2);s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}while(s1!==peg$FAILED){s0.push(s1);s1=peg$currPos;s2=peg$parseArrowDecoration();if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){peg$savedPos=s1;s2=peg$c1354(s2);s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}}return s0}function peg$parseSubexp(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){s2=peg$parseArrowDecorations();if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){s4=peg$parseArrow();if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseArrowDecorations();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=peg$currPos;s9=peg$parseArrowTarget();if(s9!==peg$FAILED){peg$savedPos=s8;s9=peg$c1355(s2,s4,s6,s9)}s8=s9;if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){s10=peg$parseSubexp();if(s10===peg$FAILED){s10=null}if(s10!==peg$FAILED){peg$savedPos=s0;s1=peg$c1356(s2,s4,s6,s8,s10);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseExp(){var s0,s1,s2,s3,s4,s5;s0=peg$currPos;s1=peg$currPos;s2=peg$parseArrowTarget();if(s2!==peg$FAILED){peg$savedPos=s1;s2=peg$c1357(s2)}s1=s2;if(s1!==peg$FAILED){s2=peg$parseSubexp();if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s4=peg$c1237;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){peg$savedPos=s0;s1=peg$c1358(s1,s2);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseGvizLayout(){var s0;if(input.substr(peg$currPos,3)===peg$c1359){s0=peg$c1359;peg$currPos+=3}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1360)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1361){s0=peg$c1361;peg$currPos+=5}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1362)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,3)===peg$c1363){s0=peg$c1363;peg$currPos+=3}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1364)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1365){s0=peg$c1365;peg$currPos+=5}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1366)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1367){s0=peg$c1367;peg$currPos+=5}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1368)}}}}}}return s0}function peg$parseStateItems(){var s0,s1;s0=[];s1=peg$parseStateDeclarationItem();if(s1!==peg$FAILED){while(s1!==peg$FAILED){s0.push(s1);s1=peg$parseStateDeclarationItem()}}else{s0=peg$FAILED}return s0}function peg$parseConfigState(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1369){s2=peg$c1369;peg$currPos+=5}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1370)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===123){s6=peg$c1251;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1252)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=peg$parseStateItems();if(s8===peg$FAILED){s8=null}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.substr(peg$currPos,2)===peg$c1371){s10=peg$c1371;peg$currPos+=2}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1372)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1373(s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigStartState(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,11)===peg$c1374){s2=peg$c1374;peg$currPos+=11}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1375)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===123){s6=peg$c1251;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1252)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=peg$parseStateItems();if(s8===peg$FAILED){s8=null}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.substr(peg$currPos,2)===peg$c1371){s10=peg$c1371;peg$currPos+=2}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1372)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1376(s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigEndState(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,9)===peg$c1377){s2=peg$c1377;peg$currPos+=9}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1378)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===123){s6=peg$c1251;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1252)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=peg$parseStateItems();if(s8===peg$FAILED){s8=null}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.substr(peg$currPos,2)===peg$c1371){s10=peg$c1371;peg$currPos+=2}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1372)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1379(s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigActiveState(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,12)===peg$c1380){s2=peg$c1380;peg$currPos+=12}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1381)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===123){s6=peg$c1251;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1252)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=peg$parseStateItems();if(s8===peg$FAILED){s8=null}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.substr(peg$currPos,2)===peg$c1371){s10=peg$c1371;peg$currPos+=2}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1372)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1382(s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigTerminalState(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,14)===peg$c1383){s2=peg$c1383;peg$currPos+=14}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1384)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===123){s6=peg$c1251;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1252)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=peg$parseStateItems();if(s8===peg$FAILED){s8=null}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.substr(peg$currPos,2)===peg$c1371){s10=peg$c1371;peg$currPos+=2}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1372)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1385(s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigHookedState(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,12)===peg$c1386){s2=peg$c1386;peg$currPos+=12}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1387)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===123){s6=peg$c1251;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1252)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=peg$parseStateItems();if(s8===peg$FAILED){s8=null}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.substr(peg$currPos,2)===peg$c1371){s10=peg$c1371;peg$currPos+=2}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1372)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1388(s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigAnyState(){var s0;s0=peg$parseConfigState();if(s0===peg$FAILED){s0=peg$parseConfigStartState();if(s0===peg$FAILED){s0=peg$parseConfigEndState();if(s0===peg$FAILED){s0=peg$parseConfigActiveState();if(s0===peg$FAILED){s0=peg$parseConfigTerminalState();if(s0===peg$FAILED){s0=peg$parseConfigHookedState()}}}}}return s0}function peg$parseGraphDefaultEdgeColor(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,10)===peg$c1241){s2=peg$c1241;peg$currPos+=10}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1242)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseColor();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1390(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,10)===peg$c1245){s2=peg$c1245;peg$currPos+=10}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1246)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseColor();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1390(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1389)}}return s0}function peg$parseConfigStyleItems(){var s0,s1,s2;s0=peg$parseGraphDefaultEdgeColor();if(s0===peg$FAILED){s0=peg$currPos;s1=[];s2=peg$parseStateDeclarationItem();if(s2!==peg$FAILED){while(s2!==peg$FAILED){s1.push(s2);s2=peg$parseStateDeclarationItem()}}else{s1=peg$FAILED}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1255(s1)}s0=s1}return s0}function peg$parseConfigTransition(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,10)===peg$c1391){s2=peg$c1391;peg$currPos+=10}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1392)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===123){s6=peg$c1251;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1252)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=peg$parseConfigStyleItems();if(s8===peg$FAILED){s8=null}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.substr(peg$currPos,2)===peg$c1371){s10=peg$c1371;peg$currPos+=2}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1372)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1393(s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigGraph(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1394){s2=peg$c1394;peg$currPos+=5}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1395)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===123){s6=peg$c1251;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1252)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=peg$parseConfigStyleItems();if(s8===peg$FAILED){s8=null}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.substr(peg$currPos,2)===peg$c1371){s10=peg$c1371;peg$currPos+=2}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1372)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1396(s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigEditor(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,6)===peg$c1397){s2=peg$c1397;peg$currPos+=6}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1398)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===123){s6=peg$c1251;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1252)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=[];s9=peg$parseEditorConfigItem();while(s9!==peg$FAILED){s8.push(s9);s9=peg$parseEditorConfigItem()}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.substr(peg$currPos,2)===peg$c1371){s10=peg$c1371;peg$currPos+=2}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1372)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1399(s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseEditorConfigItem(){var s0;s0=peg$parseEditorStochasticRunCount();if(s0===peg$FAILED){s0=peg$parseEditorPanels()}return s0}function peg$parseEditorStochasticRunCount(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,20)===peg$c1400){s2=peg$c1400;peg$currPos+=20}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1401)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseIntegerLiteral();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1402(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseEditorPanels(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,6)===peg$c1403){s2=peg$c1403;peg$currPos+=6}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1404)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseLabelList();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1405(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigGraphLayout(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,12)===peg$c1406){s2=peg$c1406;peg$currPos+=12}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1407)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseGvizLayout();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1408(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigStartNodes(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,12)===peg$c1409){s2=peg$c1409;peg$currPos+=12}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1410)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseLabelList();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1411(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigEndNodes(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,10)===peg$c1412){s2=peg$c1412;peg$currPos+=10}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1413)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseLabelList();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1414(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigFailedOutputs(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,14)===peg$c1415){s2=peg$c1415;peg$currPos+=14}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1416)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseLabelOrLabelList();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1417(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigGraphBgColor(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,14)===peg$c1418){s2=peg$c1418;peg$currPos+=14}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1419)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseColor();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1420(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigAllowsOverride(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,15)===peg$c1421){s2=peg$c1421;peg$currPos+=15}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1422)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseOverrideT();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1423(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseConfigAllowIslands(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,13)===peg$c1424){s2=peg$c1424;peg$currPos+=13}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1425)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseIslandsT();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1426(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseOverrideT(){var s0,s1;s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c254){s1=peg$c254;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c255)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1427()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c257){s1=peg$c257;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c258)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1428()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,9)===peg$c303){s1=peg$c303;peg$currPos+=9}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c304)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c305()}s0=s1}}return s0}function peg$parseIslandsT(){var s0,s1;s0=peg$currPos;if(input.substr(peg$currPos,10)===peg$c1429){s1=peg$c1429;peg$currPos+=10}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1430)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1431()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,4)===peg$c254){s1=peg$c254;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c255)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1432()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,5)===peg$c257){s1=peg$c257;peg$currPos+=5}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c258)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1433()}s0=s1}}return s0}function peg$parseConfig(){var s0;peg$silentFails++;s0=peg$parseConfigGraphLayout();if(s0===peg$FAILED){s0=peg$parseConfigStartNodes();if(s0===peg$FAILED){s0=peg$parseConfigEndNodes();if(s0===peg$FAILED){s0=peg$parseConfigFailedOutputs();if(s0===peg$FAILED){s0=peg$parseConfigTransition();if(s0===peg$FAILED){s0=peg$parseConfigGraph();if(s0===peg$FAILED){s0=peg$parseConfigEditor();if(s0===peg$FAILED){s0=peg$parseConfigAnyState();if(s0===peg$FAILED){s0=peg$parseConfigGraphBgColor();if(s0===peg$FAILED){s0=peg$parseConfigAllowsOverride();if(s0===peg$FAILED){s0=peg$parseConfigAllowIslands()}}}}}}}}}}peg$silentFails--;if(s0===peg$FAILED){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1434)}}return s0}function peg$parseLicenseOrLabelOrList(){var s0,s1,s2,s3,s4;s0=peg$currPos;s1=peg$currPos;if(input.substr(peg$currPos,3)===peg$c1435){s2=peg$c1435;peg$currPos+=3}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1436)}}if(s2!==peg$FAILED){s3=peg$currPos;peg$silentFails++;s4=peg$parseAtomLetter();peg$silentFails--;if(s4===peg$FAILED){s3=void 0}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=[s2,s3];s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$currPos;if(input.substr(peg$currPos,12)===peg$c1437){s2=peg$c1437;peg$currPos+=12}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1438)}}if(s2!==peg$FAILED){s3=peg$currPos;peg$silentFails++;s4=peg$parseAtomLetter();peg$silentFails--;if(s4===peg$FAILED){s3=void 0}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=[s2,s3];s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$currPos;if(input.substr(peg$currPos,12)===peg$c1439){s2=peg$c1439;peg$currPos+=12}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1440)}}if(s2!==peg$FAILED){s3=peg$currPos;peg$silentFails++;s4=peg$parseAtomLetter();peg$silentFails--;if(s4===peg$FAILED){s3=void 0}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=[s2,s3];s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$currPos;if(input.substr(peg$currPos,10)===peg$c1441){s2=peg$c1441;peg$currPos+=10}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1442)}}if(s2!==peg$FAILED){s3=peg$currPos;peg$silentFails++;s4=peg$parseAtomLetter();peg$silentFails--;if(s4===peg$FAILED){s3=void 0}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=[s2,s3];s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$currPos;if(input.substr(peg$currPos,11)===peg$c1443){s2=peg$c1443;peg$currPos+=11}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1444)}}if(s2!==peg$FAILED){s3=peg$currPos;peg$silentFails++;s4=peg$parseAtomLetter();peg$silentFails--;if(s4===peg$FAILED){s3=void 0}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=[s2,s3];s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$currPos;if(input.substr(peg$currPos,13)===peg$c1445){s2=peg$c1445;peg$currPos+=13}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1446)}}if(s2!==peg$FAILED){s3=peg$currPos;peg$silentFails++;s4=peg$parseAtomLetter();peg$silentFails--;if(s4===peg$FAILED){s3=void 0}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=[s2,s3];s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1447){s2=peg$c1447;peg$currPos+=6}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1448)}}if(s2!==peg$FAILED){s3=peg$currPos;peg$silentFails++;s4=peg$parseAtomLetter();peg$silentFails--;if(s4===peg$FAILED){s3=void 0}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=[s2,s3];s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1449){s2=peg$c1449;peg$currPos+=6}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1450)}}if(s2!==peg$FAILED){s3=peg$currPos;peg$silentFails++;s4=peg$parseAtomLetter();peg$silentFails--;if(s4===peg$FAILED){s3=void 0}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=[s2,s3];s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1451){s2=peg$c1451;peg$currPos+=9}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1452)}}if(s2!==peg$FAILED){s3=peg$currPos;peg$silentFails++;s4=peg$parseAtomLetter();peg$silentFails--;if(s4===peg$FAILED){s3=void 0}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=[s2,s3];s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$currPos;if(input.substr(peg$currPos,9)===peg$c1453){s2=peg$c1453;peg$currPos+=9}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1454)}}if(s2!==peg$FAILED){s3=peg$currPos;peg$silentFails++;s4=peg$parseAtomLetter();peg$silentFails--;if(s4===peg$FAILED){s3=void 0}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=[s2,s3];s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$currPos;if(input.substr(peg$currPos,7)===peg$c1455){s2=peg$c1455;peg$currPos+=7}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1456)}}if(s2!==peg$FAILED){s3=peg$currPos;peg$silentFails++;s4=peg$parseAtomLetter();peg$silentFails--;if(s4===peg$FAILED){s3=void 0}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=[s2,s3];s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}if(s0===peg$FAILED){s0=peg$parseLabel();if(s0===peg$FAILED){s0=peg$parseLabelList()}}}}}}}}}}}}return s0}function peg$parseDirection(){var s0;peg$silentFails++;if(input.substr(peg$currPos,2)===peg$c1458){s0=peg$c1458;peg$currPos+=2}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1459)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1460){s0=peg$c1460;peg$currPos+=5}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1461)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,4)===peg$c1462){s0=peg$c1462;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1463)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,4)===peg$c1464){s0=peg$c1464;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1465)}}}}}peg$silentFails--;if(s0===peg$FAILED){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1457)}}return s0}function peg$parseHookDefinition(){var s0;peg$silentFails++;if(input.substr(peg$currPos,4)===peg$c1467){s0=peg$c1467;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1468)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,6)===peg$c1469){s0=peg$c1469;peg$currPos+=6}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1470)}}}peg$silentFails--;if(s0===peg$FAILED){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1466)}}return s0}function peg$parseMachineAuthor(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,14)===peg$c1471){s2=peg$c1471;peg$currPos+=14}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1472)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseLabelOrLabelList();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1473(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseMachineContributor(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,19)===peg$c1474){s2=peg$c1474;peg$currPos+=19}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1475)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseLabelOrLabelList();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1476(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseMachineComment(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,15)===peg$c1477){s2=peg$c1477;peg$currPos+=15}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1478)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseLabelOrLabelList();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1479(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseMachineDefinition(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,18)===peg$c1480){s2=peg$c1480;peg$currPos+=18}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1481)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseURL();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1482(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseMachineName(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,12)===peg$c1483){s2=peg$c1483;peg$currPos+=12}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1484)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseLabel();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1485(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseNpmName(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,8)===peg$c1486){s2=peg$c1486;peg$currPos+=8}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1487)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseLabel();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1488(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseMachineReference(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,17)===peg$c1489){s2=peg$c1489;peg$currPos+=17}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1490)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseLabelOrLabelList();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1491(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseMachineVersion(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,15)===peg$c1492){s2=peg$c1492;peg$currPos+=15}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1493)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseSemVer();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1494(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseMachineLicense(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,15)===peg$c1495){s2=peg$c1495;peg$currPos+=15}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1496)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseLicenseOrLabelOrList();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1497(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseMachineLanguage(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,16)===peg$c1498){s2=peg$c1498;peg$currPos+=16}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1499)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseLabel();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1500(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseFslVersion(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,11)===peg$c1501){s2=peg$c1501;peg$currPos+=11}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1502)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseSemVer();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1503(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseMachineTheme(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1504){s2=peg$c1504;peg$currPos+=5}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1505)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseThemeOrThemeList();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1506(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseMachineFlow(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,4)===peg$c1507){s2=peg$c1507;peg$currPos+=4}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1508)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseDirection();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1509(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseMachineHookDefinition(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1510){s2=peg$c1510;peg$currPos+=5}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1511)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseHookDefinition();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1512(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseDotPreamble(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,12)===peg$c1513){s2=peg$c1513;peg$currPos+=12}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1514)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseString();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1515(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseDefaultSizeVal(){var s0,s1,s2,s3;s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c1516){s1=peg$c1516;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1517)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2!==peg$FAILED){s3=peg$parseNonNegNumber();if(s3!==peg$FAILED){peg$savedPos=s0;s1=peg$c1518(s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseNonNegNumber();if(s1!==peg$FAILED){s2=peg$parseNonNegNumber();if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c1519(s1,s2);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseNonNegNumber();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1520(s1)}s0=s1}}return s0}function peg$parseDefaultSize(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,12)===peg$c1521){s2=peg$c1521;peg$currPos+=12}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1522)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseDefaultSizeVal();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1523(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseMachineAttribute(){var s0;peg$silentFails++;s0=peg$parseFslVersion();if(s0===peg$FAILED){s0=peg$parseMachineName();if(s0===peg$FAILED){s0=peg$parseNpmName();if(s0===peg$FAILED){s0=peg$parseMachineAuthor();if(s0===peg$FAILED){s0=peg$parseMachineContributor();if(s0===peg$FAILED){s0=peg$parseMachineComment();if(s0===peg$FAILED){s0=peg$parseMachineDefinition();if(s0===peg$FAILED){s0=peg$parseMachineReference();if(s0===peg$FAILED){s0=peg$parseMachineVersion();if(s0===peg$FAILED){s0=peg$parseMachineLicense();if(s0===peg$FAILED){s0=peg$parseMachineLanguage();if(s0===peg$FAILED){s0=peg$parseMachineTheme();if(s0===peg$FAILED){s0=peg$parseDotPreamble();if(s0===peg$FAILED){s0=peg$parseMachineFlow();if(s0===peg$FAILED){s0=peg$parseMachineHookDefinition();if(s0===peg$FAILED){s0=peg$parseDefaultSize()}}}}}}}}}}}}}}}peg$silentFails--;if(s0===peg$FAILED){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1524)}}return s0}function peg$parsePropertyVal(){var s0;s0=peg$parseString();if(s0===peg$FAILED){s0=peg$parseBoolean();if(s0===peg$FAILED){s0=peg$parseJsNumericLiteral();if(s0===peg$FAILED){s0=peg$parseNull();if(s0===peg$FAILED){s0=peg$parseUndefined()}}}}return s0}function peg$parseSdStateLabel(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1525){s2=peg$c1525;peg$currPos+=5}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1526)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseLabel();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1527(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c335)}}return s0}function peg$parseSdStateColor(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1528){s2=peg$c1528;peg$currPos+=5}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1529)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseColor();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1530(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1228)}}return s0}function peg$parseSdStateTextColor(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,10)===peg$c1532){s2=peg$c1532;peg$currPos+=10}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1533)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseColor();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1534(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1531)}}return s0}function peg$parseSdStateBackgroundColor(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,16)===peg$c1536){s2=peg$c1536;peg$currPos+=16}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1537)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseColor();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1538(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1535)}}return s0}function peg$parseSdStateBorderColor(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,12)===peg$c1540){s2=peg$c1540;peg$currPos+=12}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1541)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$currPos;s7=peg$parseColor();if(s7!==peg$FAILED){peg$savedPos=s6;s7=peg$c1243(s7)}s6=s7;if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1542(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1539)}}return s0}function peg$parseSdStateShape(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1544){s2=peg$c1544;peg$currPos+=5}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1545)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseGvizShape();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1546(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1543)}}return s0}function peg$parseSdStateCorners(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,7)===peg$c1548){s2=peg$c1548;peg$currPos+=7}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1549)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseCorners();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1550(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1547)}}return s0}function peg$parseSdStateLineStyle(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,10)===peg$c1248){s2=peg$c1248;peg$currPos+=10}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1249)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseLineStyle();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1552(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,9)===peg$c1553){s2=peg$c1553;peg$currPos+=9}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1554)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseLineStyle();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1552(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1551)}}return s0}function peg$parseSdStateImage(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1556){s2=peg$c1556;peg$currPos+=5}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1557)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseString();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1558(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1555)}}return s0}function peg$parseSdStateUrl(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,3)===peg$c1560){s2=peg$c1560;peg$currPos+=3}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1561)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseString();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1562(s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1559)}}return s0}function peg$parseSdStateProperty(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,8)===peg$c1564){s2=peg$c1564;peg$currPos+=8}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1565)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseAtom();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7!==peg$FAILED){s8=peg$parsePropertyVal();if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s10=peg$c1237;peg$currPos++}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1566(s6,s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,8)===peg$c1564){s2=peg$c1564;peg$currPos+=8}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1565)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s4=peg$c1235;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parseAtom();if(s6!==peg$FAILED){s7=peg$parseWS();if(s7!==peg$FAILED){s8=peg$parsePropertyVal();if(s8!==peg$FAILED){s9=peg$parseWS();if(s9!==peg$FAILED){if(input.substr(peg$currPos,8)===peg$c1567){s10=peg$c1567;peg$currPos+=8}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1568)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s12=peg$c1237;peg$currPos++}else{s12=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s12!==peg$FAILED){s13=peg$parseWS();if(s13===peg$FAILED){s13=null}if(s13!==peg$FAILED){peg$savedPos=s0;s1=peg$c1569(s6,s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1563)}}return s0}function peg$parseStateDeclarationItem(){var s0;s0=peg$parseSdStateLabel();if(s0===peg$FAILED){s0=peg$parseSdStateColor();if(s0===peg$FAILED){s0=peg$parseSdStateTextColor();if(s0===peg$FAILED){s0=peg$parseSdStateBackgroundColor();if(s0===peg$FAILED){s0=peg$parseSdStateBorderColor();if(s0===peg$FAILED){s0=peg$parseSdStateShape();if(s0===peg$FAILED){s0=peg$parseSdStateCorners();if(s0===peg$FAILED){s0=peg$parseSdStateLineStyle();if(s0===peg$FAILED){s0=peg$parseSdStateImage();if(s0===peg$FAILED){s0=peg$parseSdStateUrl();if(s0===peg$FAILED){s0=peg$parseSdStateProperty()}}}}}}}}}}return s0}function peg$parseStateDeclarationDesc(){var s0,s1,s2,s3,s4,s5;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===123){s1=peg$c1251;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1252)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){s3=[];s4=peg$parseStateDeclarationItem();while(s4!==peg$FAILED){s3.push(s4);s4=peg$parseStateDeclarationItem()}if(s3!==peg$FAILED){s4=peg$parseWS();if(s4===peg$FAILED){s4=null}if(s4!==peg$FAILED){if(input.charCodeAt(peg$currPos)===125){s5=peg$c1253;peg$currPos++}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1254)}}if(s5!==peg$FAILED){peg$savedPos=s0;s1=peg$c1255(s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseStateDeclaration(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1369){s2=peg$c1369;peg$currPos+=5}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1370)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3!==peg$FAILED){s4=peg$currPos;s5=peg$parseGroupRef();if(s5!==peg$FAILED){peg$savedPos=s4;s5=peg$c1570(s5)}s4=s5;if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s6=peg$c1235;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=peg$parseStateDeclarationDesc();if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s10=peg$c1237;peg$currPos++}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1571(s4,s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,5)===peg$c1369){s2=peg$c1369;peg$currPos+=5}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1370)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3!==peg$FAILED){s4=peg$currPos;s5=peg$parseLabel();if(s5!==peg$FAILED){peg$savedPos=s4;s5=peg$c1570(s5)}s4=s5;if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s6=peg$c1235;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=peg$parseStateDeclarationDesc();if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s10=peg$c1237;peg$currPos++}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1571(s4,s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}return s0}function peg$parseNamedList(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.charCodeAt(peg$currPos)===38){s2=peg$c1326;peg$currPos++}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1327)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){s4=peg$parseLabel();if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s6=peg$c1235;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=peg$parseGroupMemberList();if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s10=peg$c1237;peg$currPos++}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1572(s4,s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.charCodeAt(peg$currPos)===38){s2=peg$c1326;peg$currPos++}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1327)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){s4=peg$parseLabel();if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===58){s6=peg$c1235;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1236)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){s8=peg$parseGroupAliasMember();if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s10=peg$c1237;peg$currPos++}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1573(s4,s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}return s0}function peg$parseGroupAliasMember(){var s0,s1;s0=peg$currPos;s1=peg$parseLabel();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1574(s1)}s0=s1;return s0}function peg$parseHookEvent(){var s0;peg$silentFails++;if(input.substr(peg$currPos,5)===peg$c1576){s0=peg$c1576;peg$currPos+=5}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1577)}}if(s0===peg$FAILED){if(input.substr(peg$currPos,4)===peg$c1578){s0=peg$c1578;peg$currPos+=4}else{s0=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1579)}}}peg$silentFails--;if(s0===peg$FAILED){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1575)}}return s0}function peg$parseHookDeclaration(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13;peg$silentFails++;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,2)===peg$c1581){s2=peg$c1581;peg$currPos+=2}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1582)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3!==peg$FAILED){s4=peg$parseHookEvent();if(s4!==peg$FAILED){s5=peg$parseWS();if(s5!==peg$FAILED){s6=peg$parseGroupRef();if(s6===peg$FAILED){s6=peg$parseHookStateSubject()}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7!==peg$FAILED){if(input.substr(peg$currPos,2)===peg$c1583){s8=peg$c1583;peg$currPos+=2}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1584)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9!==peg$FAILED){s10=peg$parseActionLabel();if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s12=peg$c1237;peg$currPos++}else{s12=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s12!==peg$FAILED){s13=peg$parseWS();if(s13===peg$FAILED){s13=null}if(s13!==peg$FAILED){peg$savedPos=s0;s1=peg$c1585(s4,s6,s10);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1580)}}return s0}function peg$parseHookStateSubject(){var s0,s1;s0=peg$currPos;s1=peg$parseLabel();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1586(s1)}s0=s1;return s0}function peg$parseMachineProperty(){var s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13;s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,8)===peg$c1564){s2=peg$c1564;peg$currPos+=8}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1565)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3!==peg$FAILED){s4=peg$parseLabel();if(s4!==peg$FAILED){s5=peg$parseWS();if(s5!==peg$FAILED){if(input.substr(peg$currPos,7)===peg$c1){s6=peg$c1;peg$currPos+=7}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c2)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7!==peg$FAILED){s8=peg$parsePropertyVal();if(s8!==peg$FAILED){s9=peg$parseWS();if(s9!==peg$FAILED){if(input.substr(peg$currPos,8)===peg$c1567){s10=peg$c1567;peg$currPos+=8}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1568)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s12=peg$c1237;peg$currPos++}else{s12=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s12!==peg$FAILED){s13=peg$parseWS();if(s13===peg$FAILED){s13=null}if(s13!==peg$FAILED){peg$savedPos=s0;s1=peg$c1587(s4,s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,8)===peg$c1564){s2=peg$c1564;peg$currPos+=8}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1565)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3!==peg$FAILED){s4=peg$parseLabel();if(s4!==peg$FAILED){s5=peg$parseWS();if(s5!==peg$FAILED){if(input.substr(peg$currPos,8)===peg$c1567){s6=peg$c1567;peg$currPos+=8}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1568)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s8=peg$c1237;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){peg$savedPos=s0;s1=peg$c1588(s4);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,8)===peg$c1564){s2=peg$c1564;peg$currPos+=8}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1565)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3!==peg$FAILED){s4=peg$parseLabel();if(s4!==peg$FAILED){s5=peg$parseWS();if(s5!==peg$FAILED){if(input.substr(peg$currPos,7)===peg$c1){s6=peg$c1;peg$currPos+=7}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c2)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7!==peg$FAILED){s8=peg$parsePropertyVal();if(s8!==peg$FAILED){s9=peg$parseWS();if(s9===peg$FAILED){s9=null}if(s9!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s10=peg$c1237;peg$currPos++}else{s10=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s10!==peg$FAILED){s11=peg$parseWS();if(s11===peg$FAILED){s11=null}if(s11!==peg$FAILED){peg$savedPos=s0;s1=peg$c1589(s4,s8);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parseWS();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){if(input.substr(peg$currPos,8)===peg$c1564){s2=peg$c1564;peg$currPos+=8}else{s2=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1565)}}if(s2!==peg$FAILED){s3=peg$parseWS();if(s3!==peg$FAILED){s4=peg$parseLabel();if(s4!==peg$FAILED){s5=peg$parseWS();if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s6=peg$c1237;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s6!==peg$FAILED){s7=peg$parseWS();if(s7===peg$FAILED){s7=null}if(s7!==peg$FAILED){peg$savedPos=s0;s1=peg$c1590(s4);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}}}return s0}function peg$parseRegularArrangeDeclaration(){var s0,s1,s2,s3,s4,s5,s6;s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c1591){s1=peg$c1591;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1592)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){s3=peg$parseLabelOrLabelList();if(s3!==peg$FAILED){s4=peg$parseWS();if(s4===peg$FAILED){s4=null}if(s4!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s5=peg$c1237;peg$currPos++}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s5!==peg$FAILED){s6=peg$parseWS();if(s6===peg$FAILED){s6=null}if(s6!==peg$FAILED){peg$savedPos=s0;s1=peg$c1593(s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseArrangeStartDeclaration(){var s0,s1,s2,s3,s4,s5,s6;s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c1594){s1=peg$c1594;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1595)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){s3=peg$parseLabelOrLabelList();if(s3!==peg$FAILED){s4=peg$parseWS();if(s4===peg$FAILED){s4=null}if(s4!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s5=peg$c1237;peg$currPos++}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s5!==peg$FAILED){s6=peg$parseWS();if(s6===peg$FAILED){s6=null}if(s6!==peg$FAILED){peg$savedPos=s0;s1=peg$c1596(s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseArrangeEndDeclaration(){var s0,s1,s2,s3,s4,s5,s6;s0=peg$currPos;if(input.substr(peg$currPos,11)===peg$c1597){s1=peg$c1597;peg$currPos+=11}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1598)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){s3=peg$parseLabelOrLabelList();if(s3!==peg$FAILED){s4=peg$parseWS();if(s4===peg$FAILED){s4=null}if(s4!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s5=peg$c1237;peg$currPos++}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s5!==peg$FAILED){s6=peg$parseWS();if(s6===peg$FAILED){s6=null}if(s6!==peg$FAILED){peg$savedPos=s0;s1=peg$c1599(s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseOArrangeDeclaration(){var s0,s1,s2,s3,s4,s5,s6;peg$silentFails++;s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c1601){s1=peg$c1601;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1602)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){s3=peg$parseLabelOrLabelList();if(s3!==peg$FAILED){s4=peg$parseWS();if(s4===peg$FAILED){s4=null}if(s4!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s5=peg$c1237;peg$currPos++}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s5!==peg$FAILED){s6=peg$parseWS();if(s6===peg$FAILED){s6=null}if(s6!==peg$FAILED){peg$savedPos=s0;s1=peg$c1603(s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1600)}}return s0}function peg$parseFArrangeDeclaration(){var s0,s1,s2,s3,s4,s5,s6;peg$silentFails++;s0=peg$currPos;if(input.substr(peg$currPos,8)===peg$c1605){s1=peg$c1605;peg$currPos+=8}else{s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1606)}}if(s1!==peg$FAILED){s2=peg$parseWS();if(s2===peg$FAILED){s2=null}if(s2!==peg$FAILED){s3=peg$parseLabelOrLabelList();if(s3!==peg$FAILED){s4=peg$parseWS();if(s4===peg$FAILED){s4=null}if(s4!==peg$FAILED){if(input.charCodeAt(peg$currPos)===59){s5=peg$c1237;peg$currPos++}else{s5=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1238)}}if(s5!==peg$FAILED){s6=peg$parseWS();if(s6===peg$FAILED){s6=null}if(s6!==peg$FAILED){peg$savedPos=s0;s1=peg$c1607(s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1604)}}return s0}function peg$parseArrangeDeclaration(){var s0;peg$silentFails++;s0=peg$parseArrangeStartDeclaration();if(s0===peg$FAILED){s0=peg$parseArrangeEndDeclaration();if(s0===peg$FAILED){s0=peg$parseOArrangeDeclaration();if(s0===peg$FAILED){s0=peg$parseFArrangeDeclaration();if(s0===peg$FAILED){s0=peg$parseRegularArrangeDeclaration()}}}}peg$silentFails--;if(s0===peg$FAILED){if(peg$silentFails===0&&peg$currPos>=peg$maxFailPos){peg$fail(peg$c1608)}}return s0}function peg$parseTerm(){var s0;s0=peg$parseHookDeclaration();if(s0===peg$FAILED){s0=peg$parseExp();if(s0===peg$FAILED){s0=peg$parseStateDeclaration();if(s0===peg$FAILED){s0=peg$parseArrangeDeclaration();if(s0===peg$FAILED){s0=peg$parseNamedList();if(s0===peg$FAILED){s0=peg$parseMachineAttribute();if(s0===peg$FAILED){s0=peg$parseMachineProperty();if(s0===peg$FAILED){s0=peg$parseConfig()}}}}}}}return s0}function peg$parseTermList(){var s0,s1;s0=[];s1=peg$parseTerm();while(s1!==peg$FAILED){s0.push(s1);s1=peg$parseTerm()}return s0}peg$result=peg$startRuleFunction();if(peg$result!==peg$FAILED&&peg$currPos===input.length){return peg$result}else{if(peg$result!==peg$FAILED&&peg$currPos<input.length){peg$fail(peg$endExpectation())}throw peg$buildStructuredError(peg$maxFailExpected,peg$maxFailPos<input.length?input.charAt(peg$maxFailPos):null,peg$maxFailPos<input.length?peg$computeLocation(peg$maxFailPos,peg$maxFailPos+1):peg$computeLocation(peg$maxFailPos,peg$maxFailPos))}}function arrow_left_kind(arrow){switch(arrow){case"->":case"→":case"=>":case"⇒":case"~>":case"↛":{return"none"}case"<-":case"←":case"<->":case"↔":case"<-=>":case"←⇒":case"←=>":case"<-⇒":case"<-~>":case"←↛":case"←~>":case"<-↛":{return"legal"}case"<=":case"⇐":case"<=>":case"⇔":case"<=->":case"⇐→":case"⇐->":case"<=→":case"<=~>":case"⇐↛":case"⇐~>":case"<=↛":{return"main"}case"<~":case"↚":case"<~>":case"↮":case"<~->":case"↚→":case"↚->":case"<~→":case"<~=>":case"↚⇒":case"↚=>":case"<~⇒":{return"forced"}default:{throw new JssmError(undefined,`arrow_direction: unknown arrow type ${arrow}`)}}}function arrow_right_kind(arrow){switch(arrow){case"<-":case"←":case"<=":case"⇐":case"<~":case"↚":{return"none"}case"->":case"→":case"<->":case"↔":case"<=->":case"⇐→":case"⇐->":case"<=→":case"<~->":case"↚→":case"↚->":case"<~→":{return"legal"}case"=>":case"⇒":case"<=>":case"⇔":case"<-=>":case"←⇒":case"←=>":case"<-⇒":case"<~=>":case"↚⇒":case"↚=>":case"<~⇒":{return"main"}case"~>":case"↛":case"<~>":case"↮":case"<-~>":case"←↛":case"←~>":case"<-↛":case"<=~>":case"⇐↛":case"⇐~>":case"<=↛":{return"forced"}default:{throw new JssmError(undefined,`arrow_direction: unknown arrow type ${arrow}`)}}}const array_box_if_string=n=>typeof n==="string"?[n]:n;const weighted_rand_select=(options,probability_property="probability",rng)=>{if(!Array.isArray(options)){throw new TypeError("options must be a non-empty array of objects")}if(options.length===0){throw new TypeError("options must be a non-empty array of objects")}if(typeof options[0]!=="object"){throw new TypeError("options must be a non-empty array of objects")}const named=probability_property==="probability";let prob_sum=0;for(const opt of options){const p=named?opt.probability:opt[probability_property];prob_sum+=p===undefined?1:p}const rnd=(rng?rng():Math.random())*prob_sum;let cursor=0,cursor_sum=0;while(cursor<options.length){const p=named?options[cursor].probability:options[cursor][probability_property];cursor_sum+=p===undefined?1:p;++cursor;if(cursor_sum>rnd){break}}return options[cursor-1]};function seq(n){if(!Number.isSafeInteger(n)){throw new TypeError("seq/1 takes a non-negative integer n as an argument")}if(n<0){throw new TypeError("seq/1 takes a non-negative integer n as an argument")}return Array.from({length:n},(_,i)=>i)}const default_lexicographic=(a,b)=>{const sa=String(a),sb=String(b);return sa<sb?-1:sa>sb?1:0};const histograph=ar=>{const counts=new Map;for(const v of ar){const c=counts.get(v);counts.set(v,c===undefined?1:c+1)}const out=new Map;const sorted_keys=[...counts.keys()].sort(default_lexicographic);for(const k of sorted_keys){out.set(k,counts.get(k))}return out};function name_bind_prop_and_state(prop,state){if(typeof prop!=="string"){throw new JssmError(undefined,`Name of property must be a string; got ${prop}`)}if(typeof state!=="string"){throw new JssmError(undefined,`Name of state must be a string; got ${state}`)}return JSON.stringify([prop,state])}function gen_splitmix32(a){if(a===undefined){a=Date.now()}return function(){a=Math.trunc(a);a=a+2654435769|0;let t=a^a>>>16;t=Math.imul(t,569420461);t^=t>>>15;t=Math.imul(t,1935289751);return((t^t>>>15)>>>0)/4294967296}}const unique=arr=>{const seen=new Set;return arr.filter(v=>{if(v!==v){return false}if(seen.has(v)){return false}seen.add(v);return true})};function find_repeated(arr){const uniqued=unique(arr);if(uniqued.length===arr.length){return[]}const residue_keys=new Map;for(const k of arr)residue_keys.set(k,residue_keys.has(k)?residue_keys.get(k)+1:1);for(const k of uniqued)residue_keys.set(k,residue_keys.get(k)-1);return[...residue_keys].filter(e=>e[1]>0&&!Number.isNaN(e[0])).map(e=>[e[0],e[1]+1])}var reductions={abkhazian:"ab","аҧсуа бызшәа, аҧсшәа":"ab",ab:"ab",abk:"ab","аҧсуа бызшәа":"ab","аҧсшәа":"ab",afar:"aa",afaraf:"aa",aa:"aa",aar:"aa",afrikaans:"af",af:"af",afr:"af",akan:"ak",ak:"ak",aka:"ak","aka + 2":"ak",albanian:"sq",shqip:"sq",sq:"sq",sqi:"sq",alb:"sq","sqi + 4":"sq",amharic:"am","አማርኛ":"am",am:"am",amh:"am",arabic:"ar","العربية":"ar",ar:"ar",ara:"ar","ara + 30":"ar",aragonese:"an","aragonés":"an",an:"an",arg:"an",armenian:"hy","հայերեն":"hy",hy:"hy",hye:"hy",arm:"hy",assamese:"as","অসমীয়া":"as",as:"as",asm:"as",avaric:"av","авар мацӏ, магӏарул мацӏ":"av",av:"av",ava:"av","авар мацӏ":"av","магӏарул мацӏ":"av",avestan:"ae",avesta:"ae",ae:"ae",ave:"ae",aymara:"ay","aymar aru":"ay",ay:"ay",aym:"ay","aym + 2":"ay",azerbaijani:"az","azərbaycan dili":"az",az:"az",aze:"az","aze + 2":"az",bambara:"bm",bamanankan:"bm",bm:"bm",bam:"bm",bashkir:"ba","башҡорт теле":"ba",ba:"ba",bak:"ba",basque:"eu","euskara, euskera":"eu",eu:"eu",eus:"eu",baq:"eu",euskara:"eu",euskera:"eu",belarusian:"be","беларуская мова":"be",be:"be",bel:"be",bengali:"bn","বাংলা":"bn",bn:"bn",ben:"bn","bihari languages":"bh","भोजपुरी":"bh",bh:"bh",bih:"bh",bislama:"bi",bi:"bi",bis:"bi",bosnian:"bs","bosanski jezik":"bs",bs:"bs",bos:"bs",breton:"br",brezhoneg:"br",br:"br",bre:"br",bulgarian:"bg","български език":"bg",bg:"bg",bul:"bg",burmese:"my","ဗမာစာ":"my",my:"my",mya:"my",bur:"my","catalan, valencian":"ca","català, valencià":"ca",ca:"ca",cat:"ca","català":"ca","valencià":"ca",chamorro:"ch",chamoru:"ch",ch:"ch",cha:"ch",chechen:"ce","нохчийн мотт":"ce",ce:"ce",che:"ce","chichewa, chewa, nyanja":"ny","chicheŵa, chinyanja":"ny",ny:"ny",nya:"ny","chicheŵa":"ny",chinyanja:"ny",chinese:"zh","中文 (zhōngwén), 汉语, 漢語":"zh",zh:"zh",zho:"zh",chi:"zh","zho + 13":"zh","中文 (zhōngwén)":"zh","汉语":"zh","漢語":"zh",chuvash:"cv","чӑваш чӗлхи":"cv",cv:"cv",chv:"cv",cornish:"kw",kernewek:"kw",kw:"kw",cor:"kw",corsican:"co","corsu, lingua corsa":"co",co:"co",cos:"co",corsu:"co","lingua corsa":"co",cree:"cr","ᓀᐦᐃᔭᐍᐏᐣ":"cr",cr:"cr",cre:"cr","cre + 6":"cr",croatian:"hr","hrvatski jezik":"hr",hr:"hr",hrv:"hr",czech:"cs","čeština, český jazyk":"cs",cs:"cs",ces:"cs",cze:"cs","čeština":"cs","český jazyk":"cs",danish:"da",dansk:"da",da:"da",dan:"da","divehi, dhivehi, maldivian":"dv","ދިވެހި":"dv",dv:"dv",div:"dv","dutch, flemish":"nl","nederlands, vlaams":"nl",nl:"nl",nld:"nl",dut:"nl",nederlands:"nl",vlaams:"nl",dzongkha:"dz","རྫོང་ཁ":"dz",dz:"dz",dzo:"dz",english:"en",en:"en",eng:"en",esperanto:"eo",eo:"eo",epo:"eo",estonian:"et","eesti, eesti keel":"et",et:"et",est:"et","est + 2":"et",eesti:"et","eesti keel":"et",ewe:"ee","eʋegbe":"ee",ee:"ee",faroese:"fo","føroyskt":"fo",fo:"fo",fao:"fo",fijian:"fj","vosa vakaviti":"fj",fj:"fj",fij:"fj",finnish:"fi","suomi, suomen kieli":"fi",fi:"fi",fin:"fi",suomi:"fi","suomen kieli":"fi",french:"fr","français, langue française":"fr",fr:"fr",fra:"fr",fre:"fr","français":"fr","langue française":"fr",fulah:"ff","fulfulde, pulaar, pular":"ff",ff:"ff",ful:"ff","ful + 9":"ff",fulfulde:"ff",pulaar:"ff",pular:"ff",galician:"gl",galego:"gl",gl:"gl",glg:"gl",georgian:"ka","ქართული":"ka",ka:"ka",kat:"ka",geo:"ka",german:"de",deutsch:"de",de:"de",deu:"de",ger:"de","greek (modern)":"el","ελληνικά":"el",el:"el",ell:"el",gre:"el","guaraní":"gn","avañe'ẽ":"gn",gn:"gn",grn:"gn","grn + 5":"gn",gujarati:"gu","ગુજરાતી":"gu",gu:"gu",guj:"gu","haitian, haitian creole":"ht","kreyòl ayisyen":"ht",ht:"ht",hat:"ht",hausa:"ha","(hausa) هَوُسَ":"ha",ha:"ha",hau:"ha","hebrew (modern)":"he","עברית":"he",he:"he",heb:"he",herero:"hz",otjiherero:"hz",hz:"hz",her:"hz",hindi:"hi","हिन्दी, हिंदी":"hi",hi:"hi",hin:"hi","हिन्दी":"hi","हिंदी":"hi","hiri motu":"ho",ho:"ho",hmo:"ho",hungarian:"hu",magyar:"hu",hu:"hu",hun:"hu",interlingua:"ia",ia:"ia",ina:"ia",indonesian:"id","bahasa indonesia":"id",id:"id",ind:"id",interlingue:"ie","originally called occidental; then interlingue after wwii":"ie",ie:"ie",ile:"ie",irish:"ga",gaeilge:"ga",ga:"ga",gle:"ga",igbo:"ig","asụsụ igbo":"ig",ig:"ig",ibo:"ig",inupiaq:"ik","iñupiaq, iñupiatun":"ik",ik:"ik",ipk:"ik","ipk + 2":"ik","iñupiaq":"ik","iñupiatun":"ik",ido:"io",io:"io",icelandic:"is","íslenska":"is",is:"is",isl:"is",ice:"is",italian:"it",italiano:"it",it:"it",ita:"it",inuktitut:"iu","ᐃᓄᒃᑎᑐᑦ":"iu",iu:"iu",iku:"iu","iku + 2":"iu",japanese:"ja","日本語 (にほんご)":"ja",ja:"ja",jpn:"ja",javanese:"jv","ꦧꦱꦗꦮ, basa jawa":"jv",jv:"jv",jav:"jv","ꦧꦱꦗꦮ":"jv","basa jawa":"jv","kalaallisut, greenlandic":"kl","kalaallisut, kalaallit oqaasii":"kl",kl:"kl",kal:"kl",kalaallisut:"kl","kalaallit oqaasii":"kl",kannada:"kn","ಕನ್ನಡ":"kn",kn:"kn",kan:"kn",kanuri:"kr",kr:"kr",kau:"kr","kau + 3":"kr",kashmiri:"ks","कश्मीरी, كشميري":"ks",ks:"ks",kas:"ks","कश्मीरी":"ks","كشميري":"ks",kazakh:"kk","қазақ тілі":"kk",kk:"kk",kaz:"kk","central khmer":"km","ខ្មែរ, ខេមរភាសា, ភាសាខ្មែរ":"km",km:"km",khm:"km","ខ្មែរ":"km","ខេមរភាសា":"km","ភាសាខ្មែរ":"km","kikuyu, gikuyu":"ki","gĩkũyũ":"ki",ki:"ki",kik:"ki",kinyarwanda:"rw",ikinyarwanda:"rw",rw:"rw",kin:"rw","kirghiz, kyrgyz":"ky","кыргызча, кыргыз тили":"ky",ky:"ky",kir:"ky","кыргызча":"ky","кыргыз тили":"ky",komi:"kv","коми кыв":"kv",kv:"kv",kom:"kv","kom + 2":"kv",kongo:"kg",kikongo:"kg",kg:"kg",kon:"kg","kon + 3":"kg",korean:"ko","한국어":"ko",ko:"ko",kor:"ko",kurdish:"ku","kurdî, كوردی":"ku",ku:"ku",kur:"ku","kur + 3":"ku","kurdî":"ku","كوردی":"ku","kuanyama, kwanyama":"kj",kuanyama:"kj",kj:"kj",kua:"kj",latin:"la","latine, lingua latina":"la",la:"la",lat:"la",latine:"la","lingua latina":"la","luxembourgish, letzeburgesch":"lb","lëtzebuergesch":"lb",lb:"lb",ltz:"lb",ganda:"lg",luganda:"lg",lg:"lg",lug:"lg","limburgan, limburger, limburgish":"li",limburgs:"li",li:"li",lim:"li",lingala:"ln","lingála":"ln",ln:"ln",lin:"ln",lao:"lo","ພາສາລາວ":"lo",lo:"lo",lithuanian:"lt","lietuvių kalba":"lt",lt:"lt",lit:"lt","luba-katanga":"lu",kiluba:"lu",lu:"lu",lub:"lu",latvian:"lv","latviešu valoda":"lv",lv:"lv",lav:"lv","lav + 2":"lv",manx:"gv","gaelg, gailck":"gv",gv:"gv",glv:"gv",gaelg:"gv",gailck:"gv",macedonian:"mk","македонски јазик":"mk",mk:"mk",mkd:"mk",mac:"mk",malagasy:"mg","fiteny malagasy":"mg",mg:"mg",mlg:"mg","mlg + 10":"mg",malay:"ms","bahasa melayu, بهاس ملايو":"ms",ms:"ms",msa:"ms",may:"ms","msa + 13":"ms","bahasa melayu":"ms","بهاس ملايو":"ms",malayalam:"ml","മലയാളം":"ml",ml:"ml",mal:"ml",maltese:"mt",malti:"mt",mt:"mt",mlt:"mt",maori:"mi","te reo māori":"mi",mi:"mi",mri:"mi",mao:"mi",marathi:"mr","मराठी":"mr",mr:"mr",mar:"mr",marshallese:"mh","kajin m̧ajeļ":"mh",mh:"mh",mah:"mh",mongolian:"mn","монгол хэл":"mn",mn:"mn",mon:"mn","mon + 2":"mn",nauru:"na","dorerin naoero":"na",na:"na",nau:"na","navajo, navaho":"nv","diné bizaad":"nv",nv:"nv",nav:"nv","north ndebele":"nd",isindebele:"nr",nd:"nd",nde:"nd",nepali:"ne","नेपाली":"ne",ne:"ne",nep:"ne",ndonga:"ng",owambo:"ng",ng:"ng",ndo:"ng","norwegian bokmål":"nb","norsk bokmål":"nb",nb:"nb",nob:"nb","norwegian nynorsk":"nn","norsk nynorsk":"nn",nn:"nn",nno:"nn",norwegian:"no",norsk:"no",no:"no",nor:"no","nor + 2":"no","sichuan yi, nuosu":"ii","ꆈꌠ꒿ nuosuhxop":"ii",ii:"ii",iii:"ii","south ndebele":"nr",nr:"nr",nbl:"nr",occitan:"oc","occitan, lenga d'òc":"oc",oc:"oc",oci:"oc","lenga d'òc":"oc",ojibwa:"oj","ᐊᓂᔑᓈᐯᒧᐎᓐ":"oj",oj:"oj",oji:"oj","oji + 7":"oj","church slavic, church slavonic, old church slavonic, old slavonic, old bulgarian":"cu","ѩзыкъ словѣньскъ":"cu",cu:"cu",chu:"cu",oromo:"om","afaan oromoo":"om",om:"om",orm:"om","orm + 4":"om",oriya:"or","ଓଡ଼ିଆ":"or",or:"or",ori:"or","ossetian, ossetic":"os","ирон æвзаг":"os",os:"os",oss:"os","panjabi, punjabi":"pa","ਪੰਜਾਬੀ":"pa",pa:"pa",pan:"pa",pali:"pi","पाऴि":"pi",pi:"pi",pli:"pi",persian:"fa","فارسی":"fa",fa:"fa",fas:"fa",per:"fa","fas + 2":"fa",polish:"pl","język polski, polszczyzna":"pl",pl:"pl",pol:"pl","język polski":"pl",polszczyzna:"pl","pashto, pushto":"ps","پښتو":"ps",ps:"ps",pus:"ps","pus + 3":"ps",portuguese:"pt","português":"pt",pt:"pt",por:"pt",quechua:"qu","runa simi, kichwa":"qu",qu:"qu",que:"qu","que + 44":"qu","runa simi":"qu",kichwa:"qu",romansh:"rm","rumantsch grischun":"rm",rm:"rm",roh:"rm",rundi:"rn",ikirundi:"rn",rn:"rn",run:"rn","romanian, moldavian, moldovan":"ro","română":"ro",ro:"ro",ron:"ro",rum:"ro",russian:"ru","русский":"ru",ru:"ru",rus:"ru",sanskrit:"sa","संस्कृतम्":"sa",sa:"sa",san:"sa",sardinian:"sc",sardu:"sc",sc:"sc",srd:"sc","srd + 4":"sc",sindhi:"sd","सिन्धी, سنڌي، سندھی":"sd",sd:"sd",snd:"sd","सिन्धी":"sd","سنڌي، سندھی":"sd","northern sami":"se","davvisámegiella":"se",se:"se",sme:"se",samoan:"sm","gagana fa'a samoa":"sm",sm:"sm",smo:"sm",sango:"sg","yângâ tî sängö":"sg",sg:"sg",sag:"sg",serbian:"sr","српски језик":"sr",sr:"sr",srp:"sr","gaelic, scottish gaelic":"gd","gàidhlig":"gd",gd:"gd",gla:"gd",shona:"sn",chishona:"sn",sn:"sn",sna:"sn","sinhala, sinhalese":"si","සිංහල":"si",si:"si",sin:"si",slovak:"sk","slovenčina, slovenský jazyk":"sk",sk:"sk",slk:"sk",slo:"sk","slovenčina":"sk","slovenský jazyk":"sk",slovenian:"sl","slovenski jezik, slovenščina":"sl",sl:"sl",slv:"sl","slovenski jezik":"sl","slovenščina":"sl",somali:"so","soomaaliga, af soomaali":"so",so:"so",som:"so",soomaaliga:"so","af soomaali":"so","southern sotho":"st",sesotho:"st",st:"st",sot:"st","spanish, castilian":"es","español":"es",es:"es",spa:"es",sundanese:"su","basa sunda":"su",su:"su",sun:"su",swahili:"sw",kiswahili:"sw",sw:"sw",swa:"sw","swa + 2":"sw",swati:"ss",siswati:"ss",ss:"ss",ssw:"ss",swedish:"sv",svenska:"sv",sv:"sv",swe:"sv",tamil:"ta","தமிழ்":"ta",ta:"ta",tam:"ta",telugu:"te","తెలుగు":"te",te:"te",tel:"te",tajik:"tg","тоҷикӣ, toçikī, تاجیکی":"tg",tg:"tg",tgk:"tg","тоҷикӣ":"tg","toçikī":"tg","تاجیکی":"tg",thai:"th","ไทย":"th",th:"th",tha:"th",tigrinya:"ti","ትግርኛ":"ti",ti:"ti",tir:"ti",tibetan:"bo","བོད་ཡིག":"bo",bo:"bo",bod:"bo",tib:"bo",turkmen:"tk","türkmen, түркмен":"tk",tk:"tk",tuk:"tk","türkmen":"tk","түркмен":"tk",tagalog:"tl","wikang tagalog":"tl",tl:"tl",tgl:"tl",tswana:"tn",setswana:"tn",tn:"tn",tsn:"tn","tonga (tonga islands)":"to","faka tonga":"to",to:"to",ton:"to",turkish:"tr","türkçe":"tr",tr:"tr",tur:"tr",tsonga:"ts",xitsonga:"ts",ts:"ts",tso:"ts",tatar:"tt","татар теле, tatar tele":"tt",tt:"tt",tat:"tt","татар теле":"tt","tatar tele":"tt",twi:"tw",tw:"tw",tahitian:"ty","reo tahiti":"ty",ty:"ty",tah:"ty","uighur, uyghur":"ug","ئۇيغۇرچە, uyghurche":"ug",ug:"ug",uig:"ug","ئۇيغۇرچە":"ug",uyghurche:"ug",ukrainian:"uk","українська":"uk",uk:"uk",ukr:"uk",urdu:"ur","اردو":"ur",ur:"ur",urd:"ur",uzbek:"uz","oʻzbek, ўзбек, أۇزبېك":"uz",uz:"uz",uzb:"uz","uzb + 2":"uz","oʻzbek":"uz","ўзбек":"uz","أۇزبېك":"uz",venda:"ve","tshivenḓa":"ve",ve:"ve",ven:"ve",vietnamese:"vi","tiếng việt":"vi",vi:"vi",vie:"vi","volapük":"vo",vo:"vo",vol:"vo",walloon:"wa",walon:"wa",wa:"wa",wln:"wa",welsh:"cy",cymraeg:"cy",cy:"cy",cym:"cy",wel:"cy",wolof:"wo",wollof:"wo",wo:"wo",wol:"wo","western frisian":"fy",frysk:"fy",fy:"fy",fry:"fy",xhosa:"xh",isixhosa:"xh",xh:"xh",xho:"xh",yiddish:"yi","ייִדיש":"yi",yi:"yi",yid:"yi","yid + 2":"yi",yoruba:"yo","yorùbá":"yo",yo:"yo",yor:"yo","zhuang, chuang":"za","saɯ cueŋƅ, saw cuengh":"za",za:"za",zha:"za","zha + 16":"za","saɯ cueŋƅ":"za","saw cuengh":"za",zulu:"zu",isizulu:"zu",zu:"zu",zul:"zu"};function reduce(from){return reductions[from.toLowerCase()]}function nth_matching_loc(tree,predicate,n){let count=0;for(const node of tree){if(!predicate(node)){continue}count++;if(count===n){return node.loc}}return undefined}function makeTransition(this_se,from,to,isRight,_wasList,_wasIndex){if(from===""){throw new JssmError(undefined,"A state name may not be the empty string (transition source)")}if(to===""){throw new JssmError(undefined,"A state name may not be the empty string (transition target)")}const arrow=this_se.kind,kind=isRight?arrow_right_kind(arrow):arrow_left_kind(arrow),edge={from:from,to:to,kind:kind,after_time:isRight?this_se.r_after:this_se.l_after,forced_only:kind==="forced",main_path:kind==="main",action:undefined,probability:undefined};const action=isRight?"r_action":"l_action",probability=isRight?"r_probability":"l_probability";if(this_se[action]!=null){edge.action=this_se[action]}if(this_se[probability]!=null){edge.probability=this_se[probability]}if(edge.action===""){throw new JssmError(undefined,"An action name may not be the empty string")}return edge}function wrap_parse(input,options){return peg$parse(input,{})}function normalize_group_members(value){return value.map(member=>typeof member==="string"?{kind:"state",name:member}:member)}function build_group_registry(tree){const registry=new Map;for(const node of tree){if(node.key!=="named_list"){continue}if(registry.has(node.name)){throw new JssmError(undefined,`Cannot redeclare group: &${node.name}`)}registry.set(node.name,normalize_group_members(node.value))}return registry}function group_registry_cycle_check(registry){const visiting=new Set;const visited=new Set;const walk=(group,path)=>{var _a;if(visiting.has(group)){const cycle=[...path,group].map(g=>`&${g}`).join(" -> ");throw new JssmError(undefined,`Group membership cycle detected: ${cycle}`)}if(visited.has(group)){return}visiting.add(group);const group_members=(_a=registry.get(group))!==null&&_a!==void 0?_a:[];for(const member of group_members){if(member.kind==="group"){walk(member.name,[...path,group])}}visiting.delete(group);visited.add(group)};for(const group of registry.keys()){walk(group,[])}}function transitive_members(registry,group,memo){var _a;const cached=memo.get(group);if(cached!==undefined){return cached}const out=[];const group_members=(_a=registry.get(group))!==null&&_a!==void 0?_a:[];for(const member of group_members){if(member.kind==="state"){out.push(member.name)}else{for(const s of transitive_members(registry,member.name,memo)){out.push(s)}}}memo.set(group,out);return out}function validate_group_members(registry){for(const members of registry.values()){for(const member of members){if(member.kind==="group"&&!registry.has(member.name)){throw new JssmError(undefined,`Unresolved group reference: &${member.name}`)}}}}function membership_distance(registry,state,group){var _a;const visited=new Set([group]);let frontier=[{group:group,hops:0}];while(frontier.length>0){const next=[];for(const{group:g,hops:hops}of frontier){const members=(_a=registry.get(g))!==null&&_a!==void 0?_a:[];for(const member of members){if(member.kind==="state"){if(member.name===state){return hops+1}}else if(!visited.has(member.name)){visited.add(member.name);next.push({group:member.name,hops:hops+1})}}}frontier=next}return Infinity}const edge_decl_meta=new WeakMap;function resolve_transition_conflicts(edges,has_group_sources=true){var _a;if(!has_group_sources){return edges}const buckets=new Map;for(const[index,edge]of edges.entries()){if(edge.action==null){continue}const key=JSON.stringify([String(edge.from),String(edge.action)]);let by_decl=buckets.get(key);if(by_decl===undefined){by_decl=new Map;buckets.set(key,by_decl)}const meta=edge_decl_meta.get(edge);const decl_id=meta===undefined?undefined:meta.decl_id;const entry=by_decl.get(decl_id);if(entry===undefined){by_decl.set(decl_id,{decl_id:decl_id,indices:[index],source_group:meta===undefined?undefined:meta.source_group,specificity:(_a=meta===undefined?undefined:meta.specificity)!==null&&_a!==void 0?_a:Infinity})}else{entry.indices.push(index)}}const dropped=new Set;const arbitrate_bucket=by_decl=>{const decls=[...by_decl.values()];if(decls.length<2){return}const state_decls=decls.filter(d=>d.source_group===undefined);const group_decls=decls.filter(d=>d.source_group!==undefined);if(state_decls.length>0){for(const d of group_decls){for(const i of d.indices){dropped.add(i)}}return}let winner=group_decls[0];for(const d of group_decls){const nearer=d.specificity<winner.specificity;const tie_later=d.specificity===winner.specificity&&d.decl_id>winner.decl_id;if(nearer||tie_later){winner=d}}for(const d of group_decls){if(d.decl_id===winner.decl_id){continue}for(const i of d.indices){dropped.add(i)}console.warn(`jssm: group &${d.source_group} transition for state '${String(edges[d.indices[0]].from)}' `+`on action '${String(edges[d.indices[0]].action)}' is overridden by nearer group `+`&${winner.source_group}`)}};for(const by_decl of buckets.values()){arbitrate_bucket(by_decl)}const out=[];for(const[index,edge]of edges.entries()){if(dropped.has(index)){continue}out.push(edge)}return out}function is_group_ref(endpoint){return typeof endpoint==="object"&&endpoint.key==="group_ref"}function resolve_group_refs(tree,registry){const memo=new Map;const require_resolvable=name=>{if(!registry.has(name)){throw new JssmError(undefined,`Unresolved group reference: &${name}`)}};const rewrite_group_targets=node=>{for(let link=node.se;link;link=link.se){if(!is_group_ref(link.to)){continue}require_resolvable(link.to.name);link.to=transitive_members(registry,link.to.name,memo)}};const resolved=[];let decl_id=0;for(const node of tree){if(node.key==="hook_decl"&&is_group_ref(node.subject)){require_resolvable(node.subject.name)}if(node.key!=="transition"){resolved.push(node);continue}const this_decl=decl_id++;rewrite_group_targets(node);if(is_group_ref(node.from)){const group_name=node.from.name;require_resolvable(group_name);for(const member of transitive_members(registry,group_name,memo)){resolved.push(Object.assign(Object.assign({},node),{from:member,__decl_id:this_decl,__source_group:group_name,__specificity:membership_distance(registry,member,group_name)}))}}else if(registry.size===0){resolved.push(node)}else{resolved.push(Object.assign(Object.assign({},node),{__decl_id:this_decl}))}}return resolved}function compile_rule_transition_step(acc,from,to,this_se,next_se){const uFrom=Array.isArray(from)?from:[from],uTo=Array.isArray(to)?to:[to];for(const f of uFrom){for(const t of uTo){const right=makeTransition(this_se,f,t,true);if(right.kind!=="none"){acc.push(right)}const left=makeTransition(this_se,t,f,false);if(left.kind==="none"){const rev=this_se;if(rev.l_probability!=null||rev.l_action!=null||rev.l_after!=null){throw new JssmError(undefined,`A one-way arrow has no reverse edge, so a decoration written after it ("${String(from)} ${this_se.kind} 40% ${String(to)}") is discarded; write it before the arrow instead ("${String(from)} 40% ${this_se.kind} ${String(to)}").`)}}else{acc.push(left)}}}return next_se?compile_rule_transition_step(acc,to,next_se.to,next_se,next_se.se):acc}function compile_rule_handle_transition(rule){return compile_rule_transition_step([],rule.from,rule.se.to,rule.se,rule.se.se)}function compile_rule_handler(rule){if(rule.key==="transition"){const edges=compile_rule_handle_transition(rule);const decl_id=rule.__decl_id;const source_group=rule.__source_group;const specificity=rule.__specificity;if(decl_id!==undefined){for(const edge of edges){if(edge.from===rule.from){edge_decl_meta.set(edge,{decl_id:decl_id,source_group:source_group,specificity:specificity})}}}return{agg_as:"transition",val:edges}}if(rule.key==="machine_language"){const language_value=rule.value;const primary_subtag=String(language_value).split(/[-_]/,1)[0];return{agg_as:"machine_language",val:reduce(primary_subtag)}}if(rule.key==="property_definition"){const ret={agg_as:"property_definition",val:{name:rule.name}};if(Object.prototype.hasOwnProperty.call(rule,"default_value")){ret.val.default_value=rule.default_value}if(Object.prototype.hasOwnProperty.call(rule,"required")){ret.val.required=rule.required}return ret}if(rule.key==="named_list"){return{agg_as:"named_list",val:[]}}if(rule.key==="hook_decl"){return{agg_as:"hook_decl",val:[rule]}}if(rule.key==="state_declaration"){if(!rule.name){throw new JssmError(undefined,"State declarations must have a name",{source_location:rule.loc})}if(is_group_ref(rule.name)){return{agg_as:"group_metadata",val:[{group:rule.name.name,declarations:rule.value}]}}return{agg_as:"state_declaration",val:{state:rule.name,declarations:rule.value}}}if(["arrange_declaration","arrange_start_declaration","arrange_end_declaration","oarrange_declaration","farrange_declaration"].includes(rule.key)){return{agg_as:rule.key,val:[rule.value]}}const tautologies=["graph_layout","graph_bg_color","start_states","end_states","failed_outputs","machine_name","machine_version","machine_comment","machine_author","machine_contributor","machine_definition","machine_reference","machine_license","fsl_version","state_config","theme","flow","dot_preamble","allows_override","allow_islands","default_state_config","default_transition_config","default_graph_config","default_start_state_config","default_end_state_config","default_hooked_state_config","default_active_state_config","default_terminal_state_config","npm_name","default_size","editor_config"];if(tautologies.includes(rule.key)){return{agg_as:rule.key,val:rule.value}}throw new JssmError(undefined,`compile_rule_handler: Unknown rule: ${JSON.stringify(rule)}`)}function canonical_graph_alias_key(alias_key){if(alias_key==="graph_bg_color"){return"background-color"}return alias_key}const WARN_DEPRECATED_GRAPH_ALIASES=new Set(["graph_bg_color"]);function fold_graph_config(aliases,explicit_block){const folded=[];for(const[alias_key,values]of Object.entries(aliases)){for(const value of values){if(WARN_DEPRECATED_GRAPH_ALIASES.has(alias_key)){console.warn(`jssm: top-level \`${alias_key}\` is deprecated; prefer a \`graph: {}\` config block`)}folded.push({key:canonical_graph_alias_key(alias_key),value:value})}}for(const item of explicit_block){folded.push(item)}const seen_at=new Map;const result=[];for(const item of folded){const existing_index=seen_at.get(item.key);if(existing_index===undefined){seen_at.set(item.key,result.length);result.push(item)}else{result[existing_index]=item}}return result}function compile(tree){const results={graph_layout:[],graph_bg_color:[],transition:[],start_states:[],end_states:[],failed_outputs:[],state_config:[],state_declaration:[],fsl_version:[],machine_author:[],machine_comment:[],machine_contributor:[],machine_definition:[],machine_language:[],machine_license:[],machine_name:[],machine_reference:[],npm_name:[],default_size:[],property_definition:[],state_property:{},theme:[],flow:[],dot_preamble:[],arrange_declaration:[],arrange_start_declaration:[],arrange_end_declaration:[],oarrange_declaration:[],farrange_declaration:[],machine_version:[],default_state_config:[],default_active_state_config:[],default_hooked_state_config:[],default_terminal_state_config:[],default_start_state_config:[],default_end_state_config:[],default_transition_config:[],default_graph_config:[],named_list:[],group_metadata:[],hook_decl:[],allows_override:[],allow_islands:[],editor_config:[]};const group_registry=build_group_registry(tree);group_registry_cycle_check(group_registry);validate_group_members(group_registry);const resolved_tree=resolve_group_refs(tree,group_registry);for(const tr of resolved_tree){const rule=compile_rule_handler(tr),val=rule.val,bucket=results[rule.agg_as];if(Array.isArray(val)){for(const v of val){bucket.push(v)}}else{bucket.push(val)}}const property_keys=results["property_definition"].map(pd=>pd.name),repeat_props=find_repeated(property_keys);if(repeat_props.length>0){const dup=repeat_props[0][0];throw new JssmError(undefined,`Cannot repeat property definitions. Saw ${JSON.stringify(repeat_props)}`,{source_location:nth_matching_loc(tree,n=>n.key==="property_definition"&&n.name===dup,2)})}const assembled_transitions=resolve_transition_conflicts(results["transition"],group_registry.size>0);if(assembled_transitions.length===0){throw new JssmError(undefined,"This machine has no transitions, only declarations; a machine requires at least one transition (like `a -> b;`)")}const result_cfg={start_states:results.start_states.length>0?results.start_states:[assembled_transitions[0].from],end_states:results.end_states,failed_outputs:results.failed_outputs,transitions:assembled_transitions,state_property:[]};if(group_registry.size>0){result_cfg.group_registry=group_registry}if(results.group_metadata.length>0){const group_metadata=new Map;for(const gm of results.group_metadata){group_metadata.set(gm.group,{declarations:gm.declarations})}result_cfg.group_metadata=group_metadata}if(results.hook_decl.length>0){const group_hooks=new Map;const state_hooks=new Map;const merge_hook=(table,subject,event,action)=>{var _a;const existing=(_a=table.get(subject))!==null&&_a!==void 0?_a:{};if(event==="enter"){existing.onEnter=action}else{existing.onExit=action}table.set(subject,existing)};for(const decl of results.hook_decl){if(is_group_ref(decl.subject)){merge_hook(group_hooks,decl.subject.name,decl.event,decl.action)}else{merge_hook(state_hooks,decl.subject,decl.event,decl.action)}}if(group_hooks.size>0){result_cfg.group_hooks=group_hooks}if(state_hooks.size>0){result_cfg.state_hooks=state_hooks}}const oneOnlyKeys=["graph_layout","graph_bg_color","machine_name","machine_version","machine_comment","fsl_version","machine_license","machine_definition","machine_language","flow","dot_preamble","allows_override","allow_islands","npm_name","default_size"];for(const oneOnlyKey of oneOnlyKeys){if(results[oneOnlyKey].length>1){throw new JssmError(undefined,`May only have one ${oneOnlyKey} statement maximum: ${JSON.stringify(results[oneOnlyKey])}`,{source_location:nth_matching_loc(tree,n=>n.key===oneOnlyKey,2)})}if(results[oneOnlyKey].length>0){result_cfg[oneOnlyKey]=results[oneOnlyKey][0]}}const multiKeys=["arrange_declaration","arrange_start_declaration","arrange_end_declaration","oarrange_declaration","farrange_declaration","machine_author","machine_contributor","machine_reference","theme","state_declaration","property_definition","default_state_config","default_start_state_config","default_end_state_config","default_hooked_state_config","default_terminal_state_config","default_active_state_config","default_transition_config"];for(const multiKey of multiKeys){if(results[multiKey].length>0){result_cfg[multiKey]=results[multiKey]}}result_cfg.default_graph_config=fold_graph_config({graph_layout:results.graph_layout,graph_bg_color:results.graph_bg_color,dot_preamble:results.dot_preamble,theme:results.theme,flow:results.flow},results.default_graph_config);if(result_cfg.default_graph_config.length===0){delete result_cfg.default_graph_config}if(results.editor_config.length>0){const ec={};for(const item of results.editor_config){if(item.key==="stochastic_run_count"){ec.stochastic_run_count=item.value}else{ec.panels=item.value}}result_cfg.editor_config=ec}const register_state_property=(sd,decl)=>{if(decl.key!=="state_property"){return}const label=name_bind_prop_and_state(decl.name,sd.state);if(result_cfg.state_property.some(c=>c.name===label)){throw new JssmError(undefined,`A state may only bind a property once (${sd.state} re-binds ${decl.name})`,{source_location:nth_matching_loc(tree,n=>n.key==="state_declaration"&&n.name===sd.state,1)})}result_cfg.state_property.push({name:label,default_value:decl.value,property:decl.name,state:sd.state})};for(const sd of results.state_declaration){for(const decl of sd.declarations){register_state_property(sd,decl)}}return result_cfg}function make(plan){return compile(wrap_parse(plan))}const base_state_style$5={shape:"rectangle",backgroundColor:"white",textColor:"black",borderColor:"black"};const base_active_state_style$5={textColor:"white",backgroundColor:"dodgerblue4"};const base_hooked_state_style$5={shape:"component"};const base_terminal_state_style$5={textColor:"white",backgroundColor:"crimson"};const base_active_terminal_state_style$4={textColor:"white",backgroundColor:"indigo"};const base_start_state_style$5={backgroundColor:"yellow"};const base_active_start_state_style$4={backgroundColor:"yellowgreen"};const base_active_hooked_state_style$4={backgroundColor:"yellowgreen"};const base_end_state_style$5={textColor:"white",backgroundColor:"darkolivegreen"};const base_active_end_state_style$4={textColor:"white",backgroundColor:"darkgreen"};const default_theme={name:"default",state:base_state_style$5,start:base_start_state_style$5,end:base_end_state_style$5,terminal:base_terminal_state_style$5,hooked:base_hooked_state_style$5,active:base_active_state_style$5,active_start:base_active_start_state_style$4,active_end:base_active_end_state_style$4,active_terminal:base_active_terminal_state_style$4,active_hooked:base_active_hooked_state_style$4,legal:undefined,main:undefined,forced:undefined,action:undefined,graph:undefined,title:undefined};const base_state_style$4={shape:"rectangle",backgroundColor:"khaki",textColor:"black",borderColor:"black"};const base_active_state_style$4={textColor:"white",backgroundColor:"dodgerblue4"};const base_hooked_state_style$4={shape:"component"};const base_terminal_state_style$4={textColor:"white",backgroundColor:"crimson"};const base_active_terminal_state_style$3={textColor:"white",backgroundColor:"indigo"};const base_start_state_style$4={backgroundColor:"yellow"};const base_active_start_state_style$3={backgroundColor:"yellowgreen"};const base_active_hooked_state_style$3={backgroundColor:"yellowgreen"};const base_end_state_style$4={textColor:"white",backgroundColor:"darkolivegreen"};const base_active_end_state_style$3={textColor:"white",backgroundColor:"darkgreen"};const modern_theme={name:"modern",state:base_state_style$4,start:base_start_state_style$4,end:base_end_state_style$4,terminal:base_terminal_state_style$4,hooked:base_hooked_state_style$4,active:base_active_state_style$4,active_start:base_active_start_state_style$3,active_end:base_active_end_state_style$3,active_terminal:base_active_terminal_state_style$3,active_hooked:base_active_hooked_state_style$3,legal:undefined,main:undefined,forced:undefined,action:undefined,graph:undefined,title:undefined};const base_state_style$3={backgroundColor:"cadetblue1"};const base_active_state_style$3={textColor:"white",backgroundColor:"deepskyblue"};const base_hooked_state_style$3={shape:"component",backgroundColor:"mediumaquamarine"};const base_terminal_state_style$3={textColor:"white",backgroundColor:"darkviolet"};const base_active_terminal_state_style$2={textColor:"white",backgroundColor:"deeppink"};const base_start_state_style$3={backgroundColor:"darkseagreen1"};const base_active_start_state_style$2={backgroundColor:"aquamarine"};const base_active_hooked_state_style$2={backgroundColor:"aquamarine"};const base_end_state_style$3={textColor:"white",backgroundColor:"chartreuse1"};const base_active_end_state_style$2={textColor:"white",backgroundColor:"darkgreen"};const ocean_theme={name:"ocean",state:base_state_style$3,start:base_start_state_style$3,end:base_end_state_style$3,terminal:base_terminal_state_style$3,hooked:base_hooked_state_style$3,active:base_active_state_style$3,active_start:base_active_start_state_style$2,active_end:base_active_end_state_style$2,active_terminal:base_active_terminal_state_style$2,active_hooked:base_active_hooked_state_style$2,legal:undefined,main:undefined,forced:undefined,action:undefined,graph:undefined,title:undefined};const base_state_style$2={textColor:"black",backgroundColor:"transparent",shape:"plaintext"};const base_active_state_style$2={textColor:"black",backgroundColor:"transparent",shape:"plaintext"};const base_hooked_state_style$2={textColor:"black",backgroundColor:"transparent",shape:"plaintext"};const base_terminal_state_style$2={textColor:"black",backgroundColor:"transparent",shape:"plaintext"};const base_active_terminal_state_style$1={textColor:"black",backgroundColor:"transparent",shape:"plaintext"};const base_start_state_style$2={textColor:"black",backgroundColor:"transparent",shape:"plaintext"};const base_active_start_state_style$1={textColor:"black",backgroundColor:"transparent",shape:"plaintext"};const base_active_hooked_state_style$1={textColor:"black",backgroundColor:"transparent",shape:"plaintext"};const base_end_state_style$2={textColor:"black",backgroundColor:"transparent",shape:"plaintext"};const base_active_end_state_style$1={textColor:"black",backgroundColor:"transparent",shape:"plaintext"};const plain_theme={name:"plain",state:base_state_style$2,start:base_start_state_style$2,end:base_end_state_style$2,terminal:base_terminal_state_style$2,hooked:base_hooked_state_style$2,active:base_active_state_style$2,active_start:base_active_start_state_style$1,active_end:base_active_end_state_style$1,active_terminal:base_active_terminal_state_style$1,active_hooked:base_active_hooked_state_style$1,legal:undefined,main:undefined,forced:undefined,action:undefined,graph:undefined,title:undefined};const base_state_style$1={shape:"rectangle",backgroundColor:"khaki",textColor:"black",borderColor:"black"};const base_active_state_style$1={textColor:"white",backgroundColor:"dodgerblue4"};const base_hooked_state_style$1={shape:"component"};const base_terminal_state_style$1={textColor:"white",backgroundColor:"crimson"};const base_active_terminal_state_style={textColor:"white",backgroundColor:"indigo"};const base_start_state_style$1={backgroundColor:"yellow"};const base_active_start_state_style={backgroundColor:"yellowgreen"};const base_active_hooked_state_style={backgroundColor:"yellowgreen"};const base_end_state_style$1={textColor:"white",backgroundColor:"darkolivegreen"};const base_active_end_state_style={textColor:"white",backgroundColor:"darkgreen"};const bold_theme={name:"bold",state:base_state_style$1,start:base_start_state_style$1,end:base_end_state_style$1,terminal:base_terminal_state_style$1,hooked:base_hooked_state_style$1,active:base_active_state_style$1,active_start:base_active_start_state_style,active_end:base_active_end_state_style,active_terminal:base_active_terminal_state_style,active_hooked:base_active_hooked_state_style,legal:undefined,main:undefined,forced:undefined,action:undefined,graph:undefined,title:undefined};const base_state_style={shape:"rectangle",backgroundColor:"white",textColor:"black",borderColor:"black"};const base_active_state_style={textColor:"white",backgroundColor:"dodgerblue4"};const base_hooked_state_style={shape:"component"};const base_terminal_state_style={textColor:"white",backgroundColor:"crimson"};const base_start_state_style={backgroundColor:"yellow"};const base_end_state_style={textColor:"white",backgroundColor:"darkolivegreen"};const base_theme={state:base_state_style,start:base_start_state_style,end:base_end_state_style,terminal:base_terminal_state_style,hooked:base_hooked_state_style,active:base_active_state_style};const theme_mapping=new Map([["default",default_theme],["modern",modern_theme],["ocean",ocean_theme],["plain",plain_theme],["bold",bold_theme]]);class Interner{constructor(){this.ids=new Map;this.names=[]}intern(name){const existing=this.ids.get(name);if(existing!==undefined){return existing}const id=this.names.length;this.ids.set(name,id);this.names.push(name);return id}id_of(name){return this.ids.get(name)}name_of(id){return this.names[id]}get size(){return this.names.length}}function pair_key(a,b){return a>=b?a*a+a+b:b*b+a}function un_pair_key(z){const s=Math.floor(Math.sqrt(z));const l=z-s*s;return l<s?[l,s]:[s,l-s]}const state_name_chars$1=Object.freeze([{from:"0",to:"9"},{from:"a",to:"z"},{from:"A",to:"Z"},{from:".",to:"."},{from:"+",to:"+"},{from:"_",to:"_"},{from:"^",to:"^"},{from:"(",to:"("},{from:")",to:")"},{from:"*",to:"*"},{from:"&",to:"&"},{from:"$",to:"$"},{from:"#",to:"#"},{from:"@",to:"@"},{from:"!",to:"!"},{from:"?",to:"?"},{from:",",to:","},{from:"",to:""}]);const state_name_first_chars$1=Object.freeze([{from:"0",to:"9"},{from:"a",to:"z"},{from:"A",to:"Z"},{from:".",to:"."},{from:"_",to:"_"},{from:"!",to:"!"},{from:"$",to:"$"},{from:"^",to:"^"},{from:"*",to:"*"},{from:"?",to:"?"},{from:",",to:","},{from:"",to:""}]);const action_label_chars$1=Object.freeze([{from:" ",to:"&"},{from:"(",to:"["},{from:"]",to:""}]);var constants=Object.freeze({__proto__:null,action_label_chars:action_label_chars$1,state_name_chars:state_name_chars$1,state_name_first_chars:state_name_first_chars$1});const version="5.162.33";var __classPrivateFieldGet=undefined&&undefined.__classPrivateFieldGet||function(receiver,state,kind,f){if(kind==="a"&&!f)throw new TypeError("Private accessor was defined without a getter");if(typeof state==="function"?receiver!==state||!f:!state.has(receiver))throw new TypeError("Cannot read private member from an object whose class did not declare it");return kind==="m"?f:kind==="a"?f.call(receiver):f?f.value:state.get(receiver)};var _Machine_instances,_Machine_unsubscribe_entry,_Machine_subscribe,_Machine_fire_one,_Machine_has_subscribers,_Machine_fire,_Machine_validate_hook_description,_Machine_recompute_hook_flags,_Machine_fire_hook_rejection,_Machine_fire_boundary_actions,_Machine_resolved_themes,_Machine_individual_state_config,_Machine_groups_by_depth,_Machine_compose_state_config;const{state_name_chars:state_name_chars,state_name_first_chars:state_name_first_chars,action_label_chars:action_label_chars}=constants;const empty_string_set=new Set;const hook_required_fields={hook:["from","to"],named:["from","to","action"],"global action":["action"],"any action":[],"standard transition":[],"main transition":[],"forced transition":[],"any transition":[],entry:["to"],exit:["from"],after:["from"],"after any":[],"post hook":["from","to"],"post named":["from","to","action"],"post global action":["action"],"post any action":[],"post standard transition":[],"post main transition":[],"post forced transition":[],"post any transition":[],"post entry":["to"],"post exit":["from"],"pre everything":[],everything:[],"pre post everything":[],"post everything":[]};const hook_spatial_fields=["from","to","action"];function transfer_state_properties(state_decl){state_decl.declarations.map(d=>{switch(d.key){case"shape":{state_decl.shape=d.value;break}case"color":{state_decl.color=d.value;break}case"corners":{state_decl.corners=d.value;break}case"line-style":{state_decl.lineStyle=d.value;break}case"text-color":{state_decl.textColor=d.value;break}case"background-color":{state_decl.backgroundColor=d.value;break}case"state-label":{state_decl.stateLabel=d.value;break}case"border-color":{state_decl.borderColor=d.value;break}case"image":{state_decl.image=d.value;break}case"url":{state_decl.url=d.value;break}case"state_property":{state_decl.property={name:d.name,value:d.value};break}default:{throw new JssmError(undefined,`Unknown state property: '${JSON.stringify(d)}'`)}}});return state_decl}function apply_state_style_key(state_style,key,machine){switch(key.key){case"shape":{if(state_style.shape!==undefined){throw new JssmError(machine,`cannot redefine 'shape' in state_style_condense, already defined`)}state_style.shape=key.value;return}case"color":{if(state_style.color!==undefined){throw new JssmError(machine,`cannot redefine 'color' in state_style_condense, already defined`)}state_style.color=key.value;return}case"text-color":{if(state_style.textColor!==undefined){throw new JssmError(machine,`cannot redefine 'text-color' in state_style_condense, already defined`)}state_style.textColor=key.value;return}case"corners":{if(state_style.corners!==undefined){throw new JssmError(machine,`cannot redefine 'corners' in state_style_condense, already defined`)}state_style.corners=key.value;return}case"line-style":{if(state_style.lineStyle!==undefined){throw new JssmError(machine,`cannot redefine 'line-style' in state_style_condense, already defined`)}state_style.lineStyle=key.value;return}case"background-color":{if(state_style.backgroundColor!==undefined){throw new JssmError(machine,`cannot redefine 'background-color' in state_style_condense, already defined`)}state_style.backgroundColor=key.value;return}case"state-label":{if(state_style.stateLabel!==undefined){throw new JssmError(machine,`cannot redefine 'state-label' in state_style_condense, already defined`)}state_style.stateLabel=key.value;return}case"border-color":{if(state_style.borderColor!==undefined){throw new JssmError(machine,`cannot redefine 'border-color' in state_style_condense, already defined`)}state_style.borderColor=key.value;return}case"url":{if(state_style.url!==undefined){throw new JssmError(machine,`cannot redefine 'url' in state_style_condense, already defined`)}state_style.url=key.value;return}default:{throw new JssmError(machine,`unknown state style key in condense: ${key.key}`)}}}function state_style_condense(jssk,machine){const state_style={};if(Array.isArray(jssk)){for(const[i,key]of jssk.entries()){if(typeof key!=="object"){throw new JssmError(machine,`invalid state item ${i} in state_style_condense list: ${JSON.stringify(key)}`)}apply_state_style_key(state_style,key,machine)}}else if(jssk===undefined);else{throw new JssmError(machine,"state_style_condense received a non-array")}return state_style}function merge_state_config(base,over){const merged=Object.assign({},base);for(const[key,value]of Object.entries(over)){if(value!==undefined){merged[key]=value}}return merged}function find_connected_components(states,edges){const adj=new Map;for(const name of states.keys()){adj.set(name,new Set)}for(const edge of edges){adj.get(edge.from).add(edge.to);adj.get(edge.to).add(edge.from)}const visited=new Set;const result=[];for(const start of states.keys()){if(visited.has(start)){continue}const component=[];const queue=[start];visited.add(start);const enqueue_unvisited=neighbor=>{if(visited.has(neighbor)){return}visited.add(neighbor);queue.push(neighbor)};let head=0;while(head<queue.length){const node=queue[head++];component.push(node);for(const neighbor of adj.get(node)){enqueue_unvisited(neighbor)}}result.push(component)}return result}const STOCHASTIC_DEFAULT_RUNS=1e3;const STOCHASTIC_DEFAULT_MAX_STEPS=1e3;const DEFAULT_TIME_SOURCE=()=>Date.now();const DEFAULT_TIMEOUT_SOURCE=(f,a)=>{const handle=setTimeout(f,a);const maybe_unref=handle;if(typeof maybe_unref.unref==="function"){maybe_unref.unref()}return handle};const DEFAULT_CLEAR_TIMEOUT_SOURCE=h=>clearTimeout(h);class Machine{constructor({start_states:start_states,end_states:end_states=[],failed_outputs:failed_outputs=[],initial_state:initial_state,start_states_no_enforce:start_states_no_enforce,complete:complete=[],transitions:transitions,machine_author:machine_author,machine_comment:machine_comment,machine_contributor:machine_contributor,machine_definition:machine_definition,machine_language:machine_language,machine_license:machine_license,machine_name:machine_name,machine_version:machine_version,npm_name:npm_name,default_size:default_size,state_declaration:state_declaration,property_definition:property_definition,state_property:state_property,fsl_version:fsl_version,dot_preamble:dot_preamble,arrange_declaration:arrange_declaration=[],arrange_start_declaration:arrange_start_declaration=[],arrange_end_declaration:arrange_end_declaration=[],oarrange_declaration:oarrange_declaration=[],farrange_declaration:farrange_declaration=[],theme:theme=["default"],flow:flow="down",graph_layout:graph_layout="dot",instance_name:instance_name,history:history,boundary_depth_limit:boundary_depth_limit,data:data,default_state_config:default_state_config,default_active_state_config:default_active_state_config,default_hooked_state_config:default_hooked_state_config,default_terminal_state_config:default_terminal_state_config,default_start_state_config:default_start_state_config,default_end_state_config:default_end_state_config,default_transition_config:default_transition_config,default_graph_config:default_graph_config,group_registry:group_registry,group_metadata:group_metadata,group_hooks:group_hooks,state_hooks:state_hooks,allows_override:allows_override,config_allows_override:config_allows_override,allow_islands:allow_islands,editor_config:editor_config,rng_seed:rng_seed,time_source:time_source,timeout_source:timeout_source,clear_timeout_source:clear_timeout_source}){_Machine_instances.add(this);this._time_source=time_source!==null&&time_source!==void 0?time_source:DEFAULT_TIME_SOURCE;this._create_started=this._time_source();this._instance_name=instance_name;this._states=new Map;this._state_declarations=new Map;this._edges=[];this._edge_map=new Map;this._outbound_edge_ids=new Map;this._named_transitions=new Map;this._actions=new Map;this._reverse_actions=new Map;this._reverse_action_targets=new Map;this._state_interner=new Interner;this._action_interner=new Interner;this._state_id=NaN;this._edge_id_by_pair=new Map;this._edge_id_by_action_pair=new Map;this._edge_to_ids=[];this._start_states=new Set(start_states);this._end_states=new Set(end_states);this._failed_outputs=new Set(failed_outputs);this._machine_author=array_box_if_string(machine_author);this._machine_comment=machine_comment;this._machine_contributor=array_box_if_string(machine_contributor);this._machine_definition=machine_definition;this._machine_language=machine_language;this._machine_license=machine_license;this._machine_name=machine_name;this._machine_version=machine_version;this._npm_name=npm_name;this._default_size=default_size;this._raw_state_declaration=state_declaration||[];this._fsl_version=fsl_version;this._arrange_declaration=arrange_declaration;this._arrange_start_declaration=arrange_start_declaration;this._arrange_end_declaration=arrange_end_declaration;this._oarrange_declaration=oarrange_declaration;this._farrange_declaration=farrange_declaration;this._dot_preamble=dot_preamble;this._themes=theme;this._flow=flow;this._graph_layout=graph_layout;this._has_hooks=false;this._has_basic_hooks=false;this._has_named_hooks=false;this._has_entry_hooks=false;this._has_exit_hooks=false;this._has_after_hooks=false;this._has_global_action_hooks=false;this._has_transition_hooks=false;this._has_forced_transitions=false;this._hooks=new Map;this._named_hooks=new Map;this._entry_hooks=new Map;this._exit_hooks=new Map;this._after_hooks=new Map;this._after_any_hook=undefined;this._global_action_hooks=new Map;this._any_action_hook=undefined;this._standard_transition_hook=undefined;this._main_transition_hook=undefined;this._forced_transition_hook=undefined;this._any_transition_hook=undefined;this._has_post_hooks=false;this._has_post_basic_hooks=false;this._has_post_named_hooks=false;this._has_post_entry_hooks=false;this._has_post_exit_hooks=false;this._has_post_global_action_hooks=false;this._has_post_transition_hooks=false;this._code_allows_override=allows_override;this._config_allows_override=config_allows_override;this._allow_islands=allow_islands!==null&&allow_islands!==void 0?allow_islands:true;this._editor_config=editor_config;if(allows_override===false&&config_allows_override===true){throw new JssmError(undefined,"Code specifies no override, but config tries to permit; config may not be less strict than code")}this._post_hooks=new Map;this._post_named_hooks=new Map;this._post_entry_hooks=new Map;this._post_exit_hooks=new Map;this._post_global_action_hooks=new Map;this._post_any_action_hook=undefined;this._post_standard_transition_hook=undefined;this._post_main_transition_hook=undefined;this._post_forced_transition_hook=undefined;this._post_any_transition_hook=undefined;this._pre_everything_hook=undefined;this._everything_hook=undefined;this._pre_post_everything_hook=undefined;this._post_everything_hook=undefined;this._data=data;this._property_keys=new Set;this._default_properties=new Map;this._state_properties=new Map;this._required_properties=new Set;this._state_property_first_state=new Map;this._state_style=state_style_condense(default_state_config,this);this._active_state_style=state_style_condense(default_active_state_config,this);this._hooked_state_style=state_style_condense(default_hooked_state_config,this);this._terminal_state_style=state_style_condense(default_terminal_state_config,this);this._start_state_style=state_style_condense(default_start_state_config,this);this._end_state_style=state_style_condense(default_end_state_config,this);this._default_transition_config=default_transition_config;this._default_graph_config=default_graph_config;this._group_registry=group_registry!==null&&group_registry!==void 0?group_registry:new Map;this._group_hooks=group_hooks!==null&&group_hooks!==void 0?group_hooks:new Map;this._state_hooks=state_hooks!==null&&state_hooks!==void 0?state_hooks:new Map;this._group_metadata=new Map;if(group_metadata){group_metadata.forEach((raw,group_name)=>this._group_metadata.set(group_name,state_style_condense(raw.declarations,this)))}this._group_order=[...this._group_registry.keys()];this._state_to_groups=new Map;{const memo=new Map;for(const group_name of this._group_order){for(const member of transitive_members(this._group_registry,group_name,memo)){let bucket=this._state_to_groups.get(member);if(bucket===undefined){bucket=new Set;this._state_to_groups.set(member,bucket)}bucket.add(group_name)}}}this._static_state_config_cache=new Map;this._history_length=history||0;this._history=new circular_buffer(this._history_length);this._state_labels=new Map;this._rng_seed=rng_seed!==null&&rng_seed!==void 0?rng_seed:Date.now();this._rng=gen_splitmix32(this._rng_seed);this._timeout_source=timeout_source!==null&&timeout_source!==void 0?timeout_source:DEFAULT_TIMEOUT_SOURCE;this._clear_timeout_source=clear_timeout_source!==null&&clear_timeout_source!==void 0?clear_timeout_source:DEFAULT_CLEAR_TIMEOUT_SOURCE;this._timeout_handle=undefined;this._timeout_target=undefined;this._timeout_target_time=undefined;this._after_mapping=new Map;this._event_handlers=new Map;this._event_listener_count=0;this._firing_error=false;this._committing_transition=false;this._boundary_depth=0;this._boundary_depth_limit=boundary_depth_limit!==null&&boundary_depth_limit!==void 0?boundary_depth_limit:100;if(state_declaration){for(const state_decl of state_declaration){if(this._state_declarations.has(state_decl.state)){throw new JssmError(this,`Added the same state declaration twice: ${JSON.stringify(state_decl.state)}`)}this._state_declarations.set(state_decl.state,transfer_state_properties(state_decl))}}for(const[key,decl]of this._state_declarations){const labelled=decl.declarations.filter(d=>d.key==="state-label");if(labelled.length>1){throw new JssmError(this,`state ${key} may only have one state-label; has ${labelled.length}`)}if(labelled.length===1){this._state_labels.set(key,labelled[0].value)}}const seen_edges=new Map;const complete_set=new Set(complete);for(const tr of transitions){if(tr.from===undefined){throw new JssmError(this,`transition must define 'from': ${JSON.stringify(tr)}`)}if(tr.to===undefined){throw new JssmError(this,`transition must define 'to': ${JSON.stringify(tr)}`)}let cursor_from=this._states.get(tr.from);if(cursor_from===undefined){cursor_from={name:tr.from,from:[],to:[],complete:complete_set.has(tr.from)};this._new_state(cursor_from)}let cursor_to=this._states.get(tr.to);if(cursor_to===undefined){cursor_to={name:tr.to,from:[],to:[],complete:complete_set.has(tr.to)};this._new_state(cursor_to)}let to_slots=seen_edges.get(tr.from);if(to_slots===undefined){to_slots=new Map;seen_edges.set(tr.from,to_slots)}let slots=to_slots.get(tr.to);if(slots===undefined){slots=new Set;to_slots.set(tr.to,slots);cursor_from.to.push(tr.to);cursor_to.from.push(tr.from)}const edge_exempt=!tr.action&&tr.probability!==undefined;if(!edge_exempt){const slot=tr.action||"";if(slots.has(slot)){throw new JssmError(this,`already has ${JSON.stringify(tr.from)} to ${JSON.stringify(tr.to)}`+(tr.action?` on action ${JSON.stringify(tr.action)}`:""))}slots.add(slot)}this._edges.push(tr);const thisEdgeId=this._edges.length-1;if(tr.forced_only){this._has_forced_transitions=true}if(tr.name){if(this._named_transitions.has(tr.name)){throw new JssmError(this,`named transition "${JSON.stringify(tr.name)}" already created`)}this._named_transitions.set(tr.name,thisEdgeId)}if(tr.after_time){this._after_mapping.set(tr.from,[tr.to,tr.after_time])}let from_mapping=this._edge_map.get(tr.from);if(from_mapping===undefined){from_mapping=new Map;this._edge_map.set(tr.from,from_mapping)}if(!from_mapping.has(tr.to)){from_mapping.set(tr.to,thisEdgeId)}const from_id=this._state_interner.intern(tr.from);const to_id=this._state_interner.intern(tr.to);const pair=pair_key(from_id,to_id);if(!this._edge_id_by_pair.has(pair)){this._edge_id_by_pair.set(pair,thisEdgeId)}this._edge_to_ids[thisEdgeId]=to_id;let outbound=this._outbound_edge_ids.get(tr.from);if(!outbound){outbound=[];this._outbound_edge_ids.set(tr.from,outbound)}outbound.push(thisEdgeId);if(tr.action){let actionMap=this._actions.get(tr.action);if(!actionMap){actionMap=new Map;this._actions.set(tr.action,actionMap)}if(actionMap.has(tr.from)){throw new JssmError(this,`action ${JSON.stringify(tr.action)} already attached to origin ${JSON.stringify(tr.from)}`)}actionMap.set(tr.from,thisEdgeId);let rActionMap=this._reverse_actions.get(tr.from);if(!rActionMap){rActionMap=new Map;this._reverse_actions.set(tr.from,rActionMap)}rActionMap.set(tr.action,thisEdgeId);const action_id=this._action_interner.intern(tr.action);this._edge_id_by_action_pair.set(pair_key(action_id,from_id),thisEdgeId);if(!this._reverse_action_targets.has(tr.to)){this._reverse_action_targets.set(tr.to,new Map)}}}if(Array.isArray(property_definition)){for(const pr of property_definition){this._property_keys.add(pr.name);if(Object.prototype.hasOwnProperty.call(pr,"default_value")){this._default_properties.set(pr.name,pr.default_value)}if(Object.prototype.hasOwnProperty.call(pr,"required")&&pr.required===true){this._required_properties.add(pr.name)}}}if(Array.isArray(state_property)){for(const sp of state_property){this._state_properties.set(sp.name,sp.default_value);let j_property=sp.property,j_state=sp.state;if(j_property===undefined||j_state===undefined){const inside=JSON.parse(sp.name);j_property=inside[0];j_state=inside[1]}if(!this._state_property_first_state.has(j_property)){this._state_property_first_state.set(j_property,j_state)}}}if(initial_state){if(!this._states.has(initial_state)){throw new JssmError(this,`requested start state ${initial_state} does not exist`)}if(!start_states_no_enforce&&!start_states.includes(initial_state)){throw new JssmError(this,`requested start state ${initial_state} is not in start state list; add {start_states_no_enforce:true} to constructor options if desired`)}this._state=initial_state}else{this._state=start_states[0]}this._state_id=this._state_interner.intern(this._state);this._state_property_first_state.forEach((j_state,j_property)=>{if(!this.known_prop(j_property)){throw new JssmError(this,`State "${j_state}" has property "${j_property}" which is not globally declared`)}});const all_states_for_props=this.states();this._required_properties.forEach(dp_key=>{if(this._default_properties.has(dp_key)){throw new JssmError(this,`The property "${dp_key}" is required, but also has a default; these conflict`)}for(const s of all_states_for_props){const bound_name=name_bind_prop_and_state(dp_key,s);if(!this._state_properties.has(bound_name)){throw new JssmError(this,`State "${s}" is missing required property "${dp_key}"`)}}});if(!this.has_state(this.state())){throw new JssmError(this,`Current start state "${this.state()}" does not exist`)}for(const[ssi,ss]of start_states.entries()){if(!this.has_state(ss)){throw new JssmError(this,`Start state ${ssi} "${ss}" does not exist`)}}if(start_states.length!==this._start_states.size){throw new JssmError(this,`Start states cannot be repeated`)}if(this._allow_islands!==true){const components=find_connected_components(this._states,this._edges);if(this._allow_islands===false){if(components.length>1){throw new JssmError(this,`allow_islands is false but the state graph has ${components.length} disconnected components`)}}else{for(const component of components){const has_start=component.some(s=>this._start_states.has(s));if(!has_start){throw new JssmError(this,`allow_islands is 'with_start' but a connected component has no start state: [${[...component].join(", ")}]`)}}}}this._created=this._time_source();this.auto_set_state_timeout();for(const declaration of[this._arrange_declaration,this._oarrange_declaration,this._farrange_declaration]){for(const arrange_pair of declaration){for(const possibleState of arrange_pair){if(!this._states.has(possibleState)){throw new JssmError(this,`Cannot arrange state that does not exist "${possibleState}"`)}}}}}_new_state(state_config){if(this._states.has(state_config.name)){throw new JssmError(this,`state ${JSON.stringify(state_config.name)} already exists`)}this._states.set(state_config.name,state_config);this._state_interner.intern(state_config.name);return state_config.name}state(){return this._state}label_for(state){return this._state_labels.get(state)}display_text(state){var _a;return(_a=this._state_labels.get(state))!==null&&_a!==void 0?_a:state}data(){return structuredClone(this._data)}set_data(newData){const oldData=this._data;this._data=newData;if(oldData!==newData){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"data-change",{from:this._state,to:this._state,old_data:oldData,new_data:newData,cause:"set_data"})}return this}_data_ref(){return this._data}prop(name){const bound_name=name_bind_prop_and_state(name,this.state());if(this._state_properties.has(bound_name)){return this._state_properties.get(bound_name)}return this._default_properties.has(name)?this._default_properties.get(name):undefined}strict_prop(name){const bound_name=name_bind_prop_and_state(name,this.state());if(this._state_properties.has(bound_name)){return this._state_properties.get(bound_name)}if(this._default_properties.has(name)){return this._default_properties.get(name)}throw new JssmError(this,`Strictly requested a prop '${name}' which doesn't exist on current state '${this.state()}' and has no default`)}props(){const ret={};for(const p of this.known_props())ret[p]=this.prop(p);return ret}known_prop(prop_name){return this._property_keys.has(prop_name)}known_props(){return[...this._property_keys]}is_start_state(whichState){return this._start_states.has(whichState)}is_end_state(whichState){return this._end_states.has(whichState)}failed_outputs(){return[...this._failed_outputs]}is_failed_output(whichState){return this._failed_outputs.has(whichState)}is_failed(){return this._failed_outputs.has(this._state)}state_is_final(whichState){return this.state_is_terminal(whichState)||this.state_is_complete(whichState)}is_final(){return this.state_is_final(this.state())}serialize(comment){return{comment:comment,state:this._state,data:this._data,jssm_version:version,history:this._history.toArray(),history_capacity:this._history.capacity,timestamp:this._time_source()}}graph_layout(){return this._graph_layout}dot_preamble(){return this._dot_preamble}default_transition_config(){return this._default_transition_config}default_graph_config(){return this._default_graph_config}machine_author(){return this._machine_author}machine_comment(){return this._machine_comment}machine_contributor(){return this._machine_contributor}machine_definition(){return this._machine_definition}machine_language(){return this._machine_language}machine_license(){return this._machine_license}machine_name(){return this._machine_name}editor_config(){return this._editor_config}npm_name(){return this._npm_name}default_size(){return this._default_size}machine_version(){return this._machine_version}raw_state_declarations(){return this._raw_state_declaration}state_declaration(which){return this._state_declarations.get(which)}state_declarations(){return this._state_declarations}fsl_version(){return this._fsl_version}machine_state(){return{internal_state_impl_version:1,actions:this._actions,edge_map:this._edge_map,edges:this._edges,named_transitions:this._named_transitions,reverse_actions:this._reverse_actions,state:this._state,states:this._states}}states(){return[...this._states.keys()]}state_for(whichState){const state=this._states.get(whichState);if(state){return state}throw new JssmError(this,"No such state",{requested_state:whichState})}has_state(whichState){return this._states.has(whichState)}list_edges(){return this._edges}list_named_transitions(){return this._named_transitions}list_actions(){return[...this._actions.keys()]}get uses_actions(){return this._actions.size>0}get uses_forced_transitions(){return this._has_forced_transitions}get code_allows_override(){return this._code_allows_override}get config_allows_override(){return this._config_allows_override}get allows_override(){if(this._code_allows_override===false){if(this._config_allows_override===true){throw new JssmError(this,"Code specifies no override, but config tries to permit; config may not be less strict than code; should be unreachable")}return false}if(this._code_allows_override===true){return this._config_allows_override!==false}return this._config_allows_override===true}get allow_islands(){return this._allow_islands}all_themes(){return[...theme_mapping.keys()]}all_state_name_chars(){return state_name_chars}all_state_name_first_chars(){return state_name_first_chars}all_action_label_chars(){return action_label_chars}get themes(){return this._themes}set themes(to){this._themes=typeof to==="string"?[to]:to;this._static_state_config_cache.clear()}flow(){return this._flow}get_transition_by_state_names(from,to){const emg=this._edge_map.get(from);return emg?emg.get(to):undefined}lookup_transition_for(from,to){const id=this.get_transition_by_state_names(from,to);return id===undefined||id===null?undefined:this._edges[id]}list_transitions(whichState=this.state()){return{entrances:this.list_entrances(whichState),exits:this.list_exits(whichState)}}list_entrances(whichState=this.state()){var _a,_b;const guaranteed=(_a=this._states.get(whichState))!==null&&_a!==void 0?_a:{from:undefined};return(_b=guaranteed.from)!==null&&_b!==void 0?_b:[]}list_exits(whichState=this.state()){var _a,_b;const guaranteed=(_a=this._states.get(whichState))!==null&&_a!==void 0?_a:{to:undefined};return(_b=guaranteed.to)!==null&&_b!==void 0?_b:[]}probable_exits_for(whichState){const wstate=this._states.get(whichState);if(!wstate){throw new JssmError(this,`No such state ${JSON.stringify(whichState)} in probable_exits_for`)}const legal_exits=[],probability_bearing=[];const emg=this._edge_map.get(whichState);for(const ws of wstate.to){const edge=this._edges[emg.get(ws)];if(!edge){continue}if(edge.forced_only){continue}legal_exits.push(edge);if(edge.probability!==undefined){probability_bearing.push(edge)}}return probability_bearing.length>0?probability_bearing:legal_exits}_assert_selectable_exit_pool(whichState,exits){if(exits.length===0){return}let total=0;for(const e of exits){total+=e.probability===undefined?1:e.probability}if(total>0){return}throw new JssmError(this,`Cannot randomly select an exit from state ${JSON.stringify(whichState)}: every candidate edge has probability 0%. Note that an explicit 0% edge excludes unweighted sibling edges from the candidate pool (StoneCypher/fsl#1248)`)}probabilistic_transition(){const exits=this.probable_exits_for(this.state());this._assert_selectable_exit_pool(this.state(),exits);const selected=weighted_rand_select(exits,undefined,this._rng);return this.transition(selected.to)}probabilistic_walk(n){return[...seq(n).map(()=>{const state_was=this.state();this.probabilistic_transition();return state_was}),this.state()]}probabilistic_histo_walk(n){return histograph(this.probabilistic_walk(n))}_stochastic_one_walk(start,max_steps,exit_memo){const states=[start];const edges=[];let cur=start;let exits=exit_memo.get(cur);if(exits===undefined){exits=this.probable_exits_for(cur);this._assert_selectable_exit_pool(cur,exits);exit_memo.set(cur,exits)}let terminated=exits.length===0;for(let step=0;step<max_steps&&!terminated;step++){const selected=weighted_rand_select(exits,undefined,this._rng);edges.push(`${cur}→${selected.to}`);cur=selected.to;states.push(cur);exits=exit_memo.get(cur);if(exits===undefined){exits=this.probable_exits_for(cur);this._assert_selectable_exit_pool(cur,exits);exit_memo.set(cur,exits)}terminated=exits.length===0}return{states:states,edges:edges,length:states.length-1,terminated:terminated}}*stochastic_runs(opts={}){var _a,_b,_c,_d,_e;if(opts.seed!==undefined){this.rng_seed=opts.seed}const mode=(_a=opts.mode)!==null&&_a!==void 0?_a:"montecarlo";const max_steps=(_b=opts.max_steps)!==null&&_b!==void 0?_b:STOCHASTIC_DEFAULT_MAX_STEPS;const runs=mode==="steady_state"?1:(_e=(_c=opts.runs)!==null&&_c!==void 0?_c:(_d=this.editor_config())===null||_d===void 0?void 0:_d.stochastic_run_count)!==null&&_e!==void 0?_e:STOCHASTIC_DEFAULT_RUNS;const start=this.state();const exit_memo=new Map;for(let i=0;i<runs;i++){yield this._stochastic_one_walk(start,max_steps,exit_memo)}}stochastic_summary(opts={}){var _a,_b,_c;const mode=(_a=opts.mode)!==null&&_a!==void 0?_a:"montecarlo";const saved_seed=this._rng_seed;if(opts.seed!==undefined){this.rng_seed=opts.seed}const effective_seed=this._rng_seed;const state_visits=new Map;const edge_traversals=new Map;const path_lengths=[];let terminal_reached=0,capped=0,runs=0;try{const run_stream=this.stochastic_runs(Object.assign(Object.assign({},opts),{mode:mode}));for(const run of run_stream){runs+=1;for(const s of run.states){state_visits.set(s,((_b=state_visits.get(s))!==null&&_b!==void 0?_b:0)+1)}for(const e of run.edges){edge_traversals.set(e,((_c=edge_traversals.get(e))!==null&&_c!==void 0?_c:0)+1)}if(mode==="montecarlo"){if(run.terminated){terminal_reached+=1;path_lengths.push(run.length)}else{capped+=1}}}}finally{this.rng_seed=saved_seed}const total_visits=[...state_visits.values()].reduce((a,b)=>a+b,0);const state_visit_fraction=new Map;for(const[s,c]of state_visits){state_visit_fraction.set(s,c/total_visits)}const summary={mode:mode,runs:runs,seed:effective_seed,state_visits:state_visits,state_visit_fraction:state_visit_fraction,edge_traversals:edge_traversals};if(mode==="montecarlo"){summary.path_lengths=path_lengths;summary.terminal_reached=terminal_reached;summary.capped=capped}return summary}actions(whichState=this.state()){const wstate=this._reverse_actions.get(whichState);if(wstate){return[...wstate.keys()]}if(this.has_state(whichState)){return[]}throw new JssmError(this,`No such state ${JSON.stringify(whichState)}`)}list_states_having_action(whichState){const wstate=this._actions.get(whichState);if(wstate){return[...wstate.keys()]}throw new JssmError(this,`No such state ${JSON.stringify(whichState)}`)}list_exit_actions(whichState=this.state()){const ra_base=this._reverse_actions.get(whichState);if(!ra_base){if(this.has_state(whichState)){return[]}throw new JssmError(this,`No such state ${JSON.stringify(whichState)}`)}return[...ra_base.keys()]}probable_action_exits(whichState=this.state()){const ra_base=this._reverse_actions.get(whichState);if(!ra_base){if(this.has_state(whichState)){return[]}throw new JssmError(this,`No such state ${JSON.stringify(whichState)}`)}const exits=[];ra_base.forEach((edgeId,action)=>{exits.push({action:action,probability:this._edges[edgeId].probability})});return exits}is_unenterable(whichState){if(!this.has_state(whichState)){throw new JssmError(this,`No such state ${whichState}`)}return this.list_entrances(whichState).length===0}has_unenterables(){return this.states().some(x=>this.is_unenterable(x))}is_terminal(){return this.state_is_terminal(this.state())}state_is_terminal(whichState){if(!this.has_state(whichState)){throw new JssmError(this,`No such state ${whichState}`)}return this.list_exits(whichState).length===0}has_terminals(){return this.states().some(x=>this.state_is_terminal(x))}isIn(groupName){return this.groupsOf(this.state()).has(groupName)}groupsOf(state){return new Set(this._state_to_groups.get(state))}groups(){return[...this._group_order]}statesIn(groupName){if(!this._group_registry.has(groupName)){throw new JssmError(this,`No such group ${JSON.stringify(groupName)}`)}return transitive_members(this._group_registry,groupName,new Map)}is_complete(){return this.state_is_complete(this.state())}state_is_complete(whichState){const wstate=this._states.get(whichState);if(wstate){return wstate.complete}throw new JssmError(this,`No such state ${JSON.stringify(whichState)}`)}has_completes(){return this.states().some(x=>this.state_is_complete(x))}on(name,filterOrFn,maybeFn){return __classPrivateFieldGet(this,_Machine_instances,"m",_Machine_subscribe).call(this,name,filterOrFn,maybeFn,false)}once(name,filterOrFn,maybeFn){return __classPrivateFieldGet(this,_Machine_instances,"m",_Machine_subscribe).call(this,name,filterOrFn,maybeFn,true)}off(name,handler){const set=this._event_handlers.get(name);if(set===undefined){return false}for(const entry of set){if(entry.handler===handler){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_unsubscribe_entry).call(this,set,entry);return true}}return false}set_hook(HookDesc){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_validate_hook_description).call(this,HookDesc);switch(HookDesc.kind){case"hook":{this._hooks.set(pair_key(this._state_interner.intern(HookDesc.from),this._state_interner.intern(HookDesc.to)),HookDesc.handler);this._has_hooks=true;this._has_basic_hooks=true;break}case"named":{const pk=pair_key(this._state_interner.intern(HookDesc.from),this._state_interner.intern(HookDesc.to));let inner=this._named_hooks.get(pk);if(inner===undefined){inner=new Map;this._named_hooks.set(pk,inner)}inner.set(this._action_interner.intern(HookDesc.action),HookDesc.handler);this._has_hooks=true;this._has_named_hooks=true;break}case"global action":{this._global_action_hooks.set(this._action_interner.intern(HookDesc.action),HookDesc.handler);this._has_hooks=true;this._has_global_action_hooks=true;break}case"any action":{this._any_action_hook=HookDesc.handler;this._has_hooks=true;break}case"standard transition":{this._standard_transition_hook=HookDesc.handler;this._has_transition_hooks=true;this._has_hooks=true;break}case"main transition":{this._main_transition_hook=HookDesc.handler;this._has_transition_hooks=true;this._has_hooks=true;break}case"forced transition":{this._forced_transition_hook=HookDesc.handler;this._has_transition_hooks=true;this._has_hooks=true;break}case"any transition":{this._any_transition_hook=HookDesc.handler;this._has_hooks=true;break}case"entry":{this._entry_hooks.set(this._state_interner.intern(HookDesc.to),HookDesc.handler);this._has_hooks=true;this._has_entry_hooks=true;break}case"exit":{this._exit_hooks.set(this._state_interner.intern(HookDesc.from),HookDesc.handler);this._has_hooks=true;this._has_exit_hooks=true;break}case"after":{this._after_hooks.set(HookDesc.from,HookDesc.handler);this._has_hooks=true;this._has_after_hooks=true;break}case"after any":{this._after_any_hook=HookDesc.handler;this._has_hooks=true;this._has_after_hooks=true;break}case"post hook":{this._post_hooks.set(pair_key(this._state_interner.intern(HookDesc.from),this._state_interner.intern(HookDesc.to)),HookDesc.handler);this._has_post_hooks=true;this._has_post_basic_hooks=true;break}case"post named":{const pk=pair_key(this._state_interner.intern(HookDesc.from),this._state_interner.intern(HookDesc.to));let inner=this._post_named_hooks.get(pk);if(inner===undefined){inner=new Map;this._post_named_hooks.set(pk,inner)}inner.set(this._action_interner.intern(HookDesc.action),HookDesc.handler);this._has_post_hooks=true;this._has_post_named_hooks=true;break}case"post global action":{this._post_global_action_hooks.set(this._action_interner.intern(HookDesc.action),HookDesc.handler);this._has_post_hooks=true;this._has_post_global_action_hooks=true;break}case"post any action":{this._post_any_action_hook=HookDesc.handler;this._has_post_hooks=true;break}case"post standard transition":{this._post_standard_transition_hook=HookDesc.handler;this._has_post_transition_hooks=true;this._has_post_hooks=true;break}case"post main transition":{this._post_main_transition_hook=HookDesc.handler;this._has_post_transition_hooks=true;this._has_post_hooks=true;break}case"post forced transition":{this._post_forced_transition_hook=HookDesc.handler;this._has_post_transition_hooks=true;this._has_post_hooks=true;break}case"post any transition":{this._post_any_transition_hook=HookDesc.handler;this._has_post_hooks=true;break}case"post entry":{this._post_entry_hooks.set(this._state_interner.intern(HookDesc.to),HookDesc.handler);this._has_post_entry_hooks=true;this._has_post_hooks=true;break}case"post exit":{this._post_exit_hooks.set(this._state_interner.intern(HookDesc.from),HookDesc.handler);this._has_post_exit_hooks=true;this._has_post_hooks=true;break}case"pre everything":{this._pre_everything_hook=HookDesc.handler;this._has_hooks=true;break}case"everything":{this._everything_hook=HookDesc.handler;this._has_hooks=true;break}case"pre post everything":{this._pre_post_everything_hook=HookDesc.handler;this._has_post_hooks=true;break}case"post everything":{this._post_everything_hook=HookDesc.handler;this._has_post_hooks=true;break}}this._static_state_config_cache.clear();__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"hook-registration",{description:HookDesc})}remove_hook(HookDesc){let removed=false;switch(HookDesc.kind){case"hook":{const fid=this._state_interner.id_of(HookDesc.from),tid=this._state_interner.id_of(HookDesc.to);removed=fid!==undefined&&tid!==undefined&&this._hooks.delete(pair_key(fid,tid));break}case"named":{const fid=this._state_interner.id_of(HookDesc.from),tid=this._state_interner.id_of(HookDesc.to),aid=this._action_interner.id_of(HookDesc.action);const inner=fid===undefined||tid===undefined?undefined:this._named_hooks.get(pair_key(fid,tid));removed=inner!==undefined&&aid!==undefined&&inner.delete(aid);break}case"global action":{const aid=this._action_interner.id_of(HookDesc.action);removed=aid!==undefined&&this._global_action_hooks.delete(aid);break}case"any action":{if(this._any_action_hook!==undefined){this._any_action_hook=undefined;removed=true}break}case"standard transition":{if(this._standard_transition_hook!==undefined){this._standard_transition_hook=undefined;removed=true}break}case"main transition":{if(this._main_transition_hook!==undefined){this._main_transition_hook=undefined;removed=true}break}case"forced transition":{if(this._forced_transition_hook!==undefined){this._forced_transition_hook=undefined;removed=true}break}case"any transition":{if(this._any_transition_hook!==undefined){this._any_transition_hook=undefined;removed=true}break}case"entry":{const tid=this._state_interner.id_of(HookDesc.to);removed=tid!==undefined&&this._entry_hooks.delete(tid);break}case"exit":{const fid=this._state_interner.id_of(HookDesc.from);removed=fid!==undefined&&this._exit_hooks.delete(fid);break}case"after":{removed=this._after_hooks.delete(HookDesc.from);break}case"after any":{if(this._after_any_hook!==undefined){this._after_any_hook=undefined;removed=true}break}case"post hook":{const fid=this._state_interner.id_of(HookDesc.from),tid=this._state_interner.id_of(HookDesc.to);removed=fid!==undefined&&tid!==undefined&&this._post_hooks.delete(pair_key(fid,tid));break}case"post named":{const fid=this._state_interner.id_of(HookDesc.from),tid=this._state_interner.id_of(HookDesc.to),aid=this._action_interner.id_of(HookDesc.action);const inner=fid===undefined||tid===undefined?undefined:this._post_named_hooks.get(pair_key(fid,tid));removed=inner!==undefined&&aid!==undefined&&inner.delete(aid);break}case"post global action":{const aid=this._action_interner.id_of(HookDesc.action);removed=aid!==undefined&&this._post_global_action_hooks.delete(aid);break}case"post any action":{if(this._post_any_action_hook!==undefined){this._post_any_action_hook=undefined;removed=true}break}case"post standard transition":{if(this._post_standard_transition_hook!==undefined){this._post_standard_transition_hook=undefined;removed=true}break}case"post main transition":{if(this._post_main_transition_hook!==undefined){this._post_main_transition_hook=undefined;removed=true}break}case"post forced transition":{if(this._post_forced_transition_hook!==undefined){this._post_forced_transition_hook=undefined;removed=true}break}case"post any transition":{if(this._post_any_transition_hook!==undefined){this._post_any_transition_hook=undefined;removed=true}break}case"post entry":{const tid=this._state_interner.id_of(HookDesc.to);removed=tid!==undefined&&this._post_entry_hooks.delete(tid);break}case"post exit":{const fid=this._state_interner.id_of(HookDesc.from);removed=fid!==undefined&&this._post_exit_hooks.delete(fid);break}case"pre everything":{if(this._pre_everything_hook!==undefined){this._pre_everything_hook=undefined;removed=true}break}case"everything":{if(this._everything_hook!==undefined){this._everything_hook=undefined;removed=true}break}case"pre post everything":{if(this._pre_post_everything_hook!==undefined){this._pre_post_everything_hook=undefined;removed=true}break}case"post everything":{if(this._post_everything_hook!==undefined){this._post_everything_hook=undefined;removed=true}break}default:{throw new JssmError(this,`Unknown hook type ${HookDesc.kind}, should be impossible`)}}if(removed){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_recompute_hook_flags).call(this);this._static_state_config_cache.clear();__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"hook-removal",{description:HookDesc})}return removed}hook(from,to,handler){this.set_hook({kind:"hook",from:from,to:to,handler:handler});return this}hook_action(from,to,action,handler){this.set_hook({kind:"named",from:from,to:to,action:action,handler:handler});return this}hook_global_action(action,handler){this.set_hook({kind:"global action",action:action,handler:handler});return this}hook_any_action(handler){this.set_hook({kind:"any action",handler:handler});return this}hook_standard_transition(handler){this.set_hook({kind:"standard transition",handler:handler});return this}hook_main_transition(handler){this.set_hook({kind:"main transition",handler:handler});return this}hook_forced_transition(handler){this.set_hook({kind:"forced transition",handler:handler});return this}hook_any_transition(handler){this.set_hook({kind:"any transition",handler:handler});return this}hook_entry(to,handler){this.set_hook({kind:"entry",to:to,handler:handler});return this}hook_exit(from,handler){this.set_hook({kind:"exit",from:from,handler:handler});return this}hook_after(from,handler){this.set_hook({kind:"after",from:from,handler:handler});return this}hook_after_any(handler){this.set_hook({kind:"after any",handler:handler});return this}post_hook(from,to,handler){this.set_hook({kind:"post hook",from:from,to:to,handler:handler});return this}post_hook_action(from,to,action,handler){this.set_hook({kind:"post named",from:from,to:to,action:action,handler:handler});return this}post_hook_global_action(action,handler){this.set_hook({kind:"post global action",action:action,handler:handler});return this}post_hook_any_action(handler){this.set_hook({kind:"post any action",handler:handler});return this}post_hook_standard_transition(handler){this.set_hook({kind:"post standard transition",handler:handler});return this}post_hook_main_transition(handler){this.set_hook({kind:"post main transition",handler:handler});return this}post_hook_forced_transition(handler){this.set_hook({kind:"post forced transition",handler:handler});return this}post_hook_any_transition(handler){this.set_hook({kind:"post any transition",handler:handler});return this}post_hook_entry(to,handler){this.set_hook({kind:"post entry",to:to,handler:handler});return this}post_hook_exit(from,handler){this.set_hook({kind:"post exit",from:from,handler:handler});return this}hook_pre_everything(handler){this.set_hook({kind:"pre everything",handler:handler});return this}hook_everything(handler){this.set_hook({kind:"everything",handler:handler});return this}hook_post_everything(handler){this.set_hook({kind:"post everything",handler:handler});return this}hook_pre_post_everything(handler){this.set_hook({kind:"pre post everything",handler:handler});return this}get rng_seed(){return this._rng_seed}set rng_seed(to){this._rng_seed=to===undefined?Date.now():to;this._rng=gen_splitmix32(this._rng_seed)}edges_between(from,to){var _a;const to_id=this._state_interner.id_of(to);if(to_id===undefined){return[]}const outbound=(_a=this._outbound_edge_ids.get(from))!==null&&_a!==void 0?_a:[];const result=[];for(const edgeId of outbound){if(this._edge_to_ids[edgeId]===to_id){result.push(this._edges[edgeId])}}return result}override(newState,newData){const dataProvided=arguments.length>=2;if(this.allows_override){if(this._states.has(newState)){const fromState=this._state;const oldData=this._data;this._state=newState;this._state_id=this._state_interner.intern(newState);if(dataProvided){this._data=newData}__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"override",{from:fromState,to:newState,old_data:oldData,new_data:this._data});if(dataProvided&&oldData!==newData){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"data-change",{from:fromState,to:newState,old_data:oldData,new_data:newData,cause:"override"})}__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_boundary_actions).call(this,fromState,newState)}else{throw new JssmError(this,`Cannot override state to "${newState}", a state that does not exist`)}}else{throw new JssmError(this,"Code specifies no override, but config tries to permit; config may not be less strict than code")}}transition_impl(newStateOrAction,newData,wasForced,wasAction,dataProvided=newData!==undefined){if(this._committing_transition){throw new JssmError(this,"cannot start a transition from within a transition hook: the enclosing transition has not committed yet, so the inner result would be silently discarded")}let valid=false,trans_type,newState,newStateId=NaN,actionId=NaN,fromAction;if(wasForced){const to_id=this._state_interner.id_of(newStateOrAction);const edgeId=to_id===undefined?undefined:this._edge_id_by_pair.get(pair_key(this._state_id,to_id));if(edgeId!==undefined){valid=true;trans_type="forced";newState=newStateOrAction;newStateId=to_id}}else if(wasAction){const aid=this._action_interner.id_of(newStateOrAction);const edgeId=aid===undefined?undefined:this._edge_id_by_action_pair.get(pair_key(aid,this._state_id));if(edgeId!==undefined){const edge=this._edges[edgeId];valid=true;trans_type=edge.kind;newState=edge.to;newStateId=this._edge_to_ids[edgeId];fromAction=newStateOrAction;actionId=aid}}else{const to_id=this._state_interner.id_of(newStateOrAction);const edgeId=to_id===undefined?undefined:this._edge_id_by_pair.get(pair_key(this._state_id,to_id));if(edgeId!==undefined&&!this._edges[edgeId].forced_only){if(this._has_transition_hooks||this._has_post_transition_hooks){trans_type=this._edges[edgeId].kind}valid=true;newState=newStateOrAction;newStateId=to_id}}const hook_args_obj=this._has_hooks||this._has_post_hooks?{data:this._data,action:fromAction,from:this._state,to:newState,next_data:newData,forced:wasForced,trans_type:trans_type}:undefined;const hook_args=hook_args_obj;if(wasAction&&this._event_listener_count!==0){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"action",{action:newStateOrAction,from:this._state,to:newState,data:this._data,next_data:newData})}const fromState=this._state;const fromStateId=this._state_id;const oldData=this._data;if(valid){if(this._has_hooks){this._committing_transition=true;try{let data_changed=false;if(this._pre_everything_hook!==undefined){const outcome=abstract_everything_hook_step(this._pre_everything_hook,Object.assign(Object.assign({},hook_args),{hook_name:"pre everything"}));if(!outcome.pass){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_hook_rejection).call(this,"pre everything",fromState,newState,fromAction,oldData,newData,wasForced);return false}if(_update_hook_fields(hook_args,outcome)){data_changed=true}}if(wasAction){const outcome=abstract_hook_step(this._any_action_hook,hook_args);if(!outcome.pass){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_hook_rejection).call(this,"any action",fromState,newState,fromAction,oldData,newData,wasForced);return false}if(_update_hook_fields(hook_args,outcome)){data_changed=true}const outcome2=abstract_hook_step(this._global_action_hooks.get(actionId),hook_args);if(!outcome2.pass){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_hook_rejection).call(this,"global action",fromState,newState,fromAction,oldData,newData,wasForced);return false}if(_update_hook_fields(hook_args,outcome2)){data_changed=true}}if(this._any_transition_hook!==undefined){const outcome=abstract_hook_step(this._any_transition_hook,hook_args);if(!outcome.pass){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_hook_rejection).call(this,"any transition",fromState,newState,fromAction,oldData,newData,wasForced);return false}if(_update_hook_fields(hook_args,outcome)){data_changed=true}}if(this._has_exit_hooks){const outcome=abstract_hook_step(this._exit_hooks.get(this._state_id),hook_args);if(!outcome.pass){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_hook_rejection).call(this,"exit",fromState,newState,fromAction,oldData,newData,wasForced);return false}if(_update_hook_fields(hook_args,outcome)){data_changed=true}}const pre_pair_id=pair_key(this._state_id,newStateId);if(this._has_named_hooks&&wasAction){const byPair=this._named_hooks.get(pre_pair_id);const nh=byPair===undefined?undefined:byPair.get(actionId);const outcome=abstract_hook_step(nh,hook_args);if(!outcome.pass){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_hook_rejection).call(this,"named",fromState,newState,fromAction,oldData,newData,wasForced);return false}if(_update_hook_fields(hook_args,outcome)){data_changed=true}}if(this._has_basic_hooks){const h=this._hooks.get(pre_pair_id);const outcome=abstract_hook_step(h,hook_args);if(!outcome.pass){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_hook_rejection).call(this,"hook",fromState,newState,fromAction,oldData,newData,wasForced);return false}if(_update_hook_fields(hook_args,outcome)){data_changed=true}}switch(trans_type){case"legal":{const outcome=abstract_hook_step(this._standard_transition_hook,hook_args);if(!outcome.pass){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_hook_rejection).call(this,"standard transition",fromState,newState,fromAction,oldData,newData,wasForced);return false}if(_update_hook_fields(hook_args,outcome)){data_changed=true}break}case"main":{const outcome=abstract_hook_step(this._main_transition_hook,hook_args);if(!outcome.pass){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_hook_rejection).call(this,"main transition",fromState,newState,fromAction,oldData,newData,wasForced);return false}if(_update_hook_fields(hook_args,outcome)){data_changed=true}break}case"forced":{const outcome=abstract_hook_step(this._forced_transition_hook,hook_args);if(!outcome.pass){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_hook_rejection).call(this,"forced transition",fromState,newState,fromAction,oldData,newData,wasForced);return false}if(_update_hook_fields(hook_args,outcome)){data_changed=true}break}}if(this._has_entry_hooks){const outcome=abstract_hook_step(this._entry_hooks.get(newStateId),hook_args);if(!outcome.pass){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_hook_rejection).call(this,"entry",fromState,newState,fromAction,oldData,newData,wasForced);return false}if(_update_hook_fields(hook_args,outcome)){data_changed=true}}if(this._everything_hook!==undefined){const outcome=abstract_everything_hook_step(this._everything_hook,Object.assign(Object.assign({},hook_args),{hook_name:"everything"}));if(!outcome.pass){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_hook_rejection).call(this,"everything",fromState,newState,fromAction,oldData,newData,wasForced);return false}if(_update_hook_fields(hook_args,outcome)){data_changed=true}}if(hook_args.to!==newState){const override_id=this._state_interner.id_of(hook_args.to);if(override_id===undefined){throw new JssmError(this,`A hook overrode the transition destination to '${hook_args.to}', which is not a state in this machine`)}newState=hook_args.to;newStateId=override_id}if(this._history_length){this._history.shove([this._state,this._data])}this._state=newState;this._state_id=newStateId;if(data_changed){this._data=hook_args.next_data}else if(dataProvided){this._data=newData}}finally{this._committing_transition=false}}else{if(this._history_length){this._history.shove([this._state,this._data])}this._state=newState;this._state_id=newStateId;if(dataProvided){this._data=newData}}}else{if(this._event_listener_count!==0){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"rejection",{from:fromState,to:newStateOrAction,action:fromAction,data:oldData,next_data:newData,reason:"invalid",forced:wasForced})}return false}if(this._has_post_hooks){if(this._pre_post_everything_hook!==undefined){this._pre_post_everything_hook(Object.assign(Object.assign({},hook_args),{hook_name:"pre post everything"}))}if(wasAction){if(this._post_any_action_hook!==undefined){this._post_any_action_hook(hook_args)}const pgah=this._post_global_action_hooks.get(actionId);if(pgah!==undefined){pgah(hook_args)}}if(this._post_any_transition_hook!==undefined){this._post_any_transition_hook(hook_args)}if(this._has_post_exit_hooks){const peh=this._post_exit_hooks.get(fromStateId);if(peh!==undefined){peh(hook_args)}}const post_pair_id=pair_key(fromStateId,newStateId);if(this._has_post_named_hooks&&wasAction){const byPair=this._post_named_hooks.get(post_pair_id);const pnh=byPair===undefined?undefined:byPair.get(actionId);if(pnh!==undefined){pnh(hook_args)}}if(this._has_post_basic_hooks){const hook=this._post_hooks.get(post_pair_id);if(hook!==undefined){hook(hook_args)}}if(trans_type==="legal"&&this._post_standard_transition_hook!==undefined){this._post_standard_transition_hook(hook_args)}if(trans_type==="main"&&this._post_main_transition_hook!==undefined){this._post_main_transition_hook(hook_args)}if(trans_type==="forced"&&this._post_forced_transition_hook!==undefined){this._post_forced_transition_hook(hook_args)}if(this._has_post_entry_hooks){const hook=this._post_entry_hooks.get(newStateId);if(hook!==undefined){hook(hook_args)}}if(this._post_everything_hook!==undefined){this._post_everything_hook(Object.assign(Object.assign({},hook_args),{hook_name:"post everything"}))}}if(this._event_listener_count!==0){const newData_after=this._data;if(__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_has_subscribers).call(this,"exit")){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"exit",{state:fromState,to:newState,action:fromAction,data:newData_after})}if(__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_has_subscribers).call(this,"transition")){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"transition",{from:fromState,to:newState,action:fromAction,data:newData_after,next_data:newData,trans_type:trans_type,forced:wasForced})}if(__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_has_subscribers).call(this,"entry")){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"entry",{state:newState,from:fromState,action:fromAction,data:newData_after})}if(oldData!==newData_after&&__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_has_subscribers).call(this,"data-change")){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"data-change",{from:fromState,to:newState,action:fromAction,old_data:oldData,new_data:newData_after,cause:"transition"})}const new_state_rec=this._states.get(newState);if(new_state_rec.to.length===0&&__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_has_subscribers).call(this,"terminal")){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"terminal",{state:newState,data:newData_after})}if(new_state_rec.complete&&__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_has_subscribers).call(this,"complete")){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"complete",{state:newState,data:newData_after})}}__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_boundary_actions).call(this,fromState,newState);this.clear_state_timeout();this.auto_set_state_timeout();return true}auto_set_state_timeout(){if(this._after_mapping.size===0){return}const after_res=this._after_mapping.get(this._state);if(after_res!==undefined){const[next_state,after_time]=after_res;this.set_state_timeout(next_state,after_time)}}get history(){return this._history.toArray()}get history_inclusive(){const ret=this._history.toArray();ret.push([this.state(),this.data()]);return ret}get history_length(){return this._history_length}set history_length(to){this._history_length=to;this._history.resize(to,true)}action(actionName,newData){return this.transition_impl(actionName,newData,false,true,arguments.length>=2)}get standard_state_style(){return this._state_style}get hooked_state_style(){return this._hooked_state_style}get start_state_style(){return this._start_state_style}get end_state_style(){return this._end_state_style}get terminal_state_style(){return this._terminal_state_style}get active_state_style(){return this._active_state_style}hook_registry(){const entries=[];const state_name=id=>this._state_interner.name_of(id);const action_name=id=>this._action_interner.name_of(id);const push_edges=(table,kind,phase)=>{table.forEach((_handler,pk)=>{const[fid,tid]=un_pair_key(pk);entries.push({kind:kind,phase:phase,target:{scope:"edge",from:state_name(fid),to:state_name(tid)}})})};const push_named=(table,kind,phase)=>{table.forEach((byAction,pk)=>{const[fid,tid]=un_pair_key(pk);const from=state_name(fid),to=state_name(tid);byAction.forEach((_handler,aid)=>{entries.push({kind:kind,phase:phase,target:{scope:"edge",from:from,to:to,action:action_name(aid)}})})})};const push_states=(table,kind,phase)=>{table.forEach((_handler,sid)=>{entries.push({kind:kind,phase:phase,target:{scope:"state",state:state_name(sid)}})})};const push_states_by_name=(table,kind,phase)=>{table.forEach((_handler,state)=>{entries.push({kind:kind,phase:phase,target:{scope:"state",state:state}})})};const push_actions=(table,kind,phase)=>{table.forEach((_handler,aid)=>{entries.push({kind:kind,phase:phase,target:{scope:"action",action:action_name(aid)}})})};const push_global=(handler,kind,phase)=>{if(handler!==undefined){entries.push({kind:kind,phase:phase,target:{scope:"global"}})}};const push_boundary=(table,enterKind,exitKind,target_of)=>{table.forEach((bh,subject)=>{if(bh.onEnter!==undefined){entries.push({kind:enterKind,phase:"post",target:target_of(subject)})}if(bh.onExit!==undefined){entries.push({kind:exitKind,phase:"post",target:target_of(subject)})}})};push_edges(this._hooks,"hook","pre");push_named(this._named_hooks,"named","pre");push_states(this._entry_hooks,"entry","pre");push_states(this._exit_hooks,"exit","pre");push_states_by_name(this._after_hooks,"after","pre");push_actions(this._global_action_hooks,"global action","pre");push_global(this._any_action_hook,"any action","pre");push_global(this._standard_transition_hook,"standard transition","pre");push_global(this._main_transition_hook,"main transition","pre");push_global(this._forced_transition_hook,"forced transition","pre");push_global(this._any_transition_hook,"any transition","pre");push_global(this._after_any_hook,"after any","pre");push_global(this._pre_everything_hook,"pre everything","pre");push_global(this._everything_hook,"everything","pre");push_edges(this._post_hooks,"post hook","post");push_named(this._post_named_hooks,"post named","post");push_states(this._post_entry_hooks,"post entry","post");push_states(this._post_exit_hooks,"post exit","post");push_actions(this._post_global_action_hooks,"post global action","post");push_global(this._post_any_action_hook,"post any action","post");push_global(this._post_standard_transition_hook,"post standard transition","post");push_global(this._post_main_transition_hook,"post main transition","post");push_global(this._post_forced_transition_hook,"post forced transition","post");push_global(this._post_any_transition_hook,"post any transition","post");push_global(this._pre_post_everything_hook,"pre post everything","post");push_global(this._post_everything_hook,"post everything","post");push_boundary(this._group_hooks,"group enter","group exit",group=>({scope:"group",group:group}));push_boundary(this._state_hooks,"state enter","state exit",state=>({scope:"state",state:state}));return entries}static _entry_touches_state(entry,state){const t=entry.target;if(t.scope==="state"){return t.state===state}if(t.scope==="edge"){return t.from===state||t.to===state}return false}static _entry_matches_edge(entry,from,to,action){const t=entry.target;if(t.scope!=="edge"){return false}if(t.from!==from||t.to!==to){return false}if(action!==undefined){return t.action===action}return true}static _entry_matches_action(entry,action){const t=entry.target;if(t.scope==="action"){return t.action===action}if(t.scope==="edge"){return t.action===action}return false}static _entry_matches_group(entry,group){const t=entry.target;if(t.scope==="group"){return t.group===group}return false}hooks_on(query){const registry=this.hook_registry();if(typeof query==="string"){return registry.filter(e=>Machine._entry_touches_state(e,query))}if("from"in query){return registry.filter(e=>Machine._entry_matches_edge(e,query.from,query.to,query.action))}if("group"in query){return registry.filter(e=>Machine._entry_matches_group(e,query.group))}return registry.filter(e=>Machine._entry_matches_action(e,query.action))}has_hook(query,phase){const matches=this.hooks_on(query);if(phase===undefined){return matches.length>0}return matches.some(e=>e.phase===phase)}state_has_hooks(state){if(!this._has_hooks&&!this._has_post_hooks&&this._state_hooks.size===0&&this._group_hooks.size===0){return false}return this.hook_registry().some(e=>Machine._entry_touches_state(e,state))}resolve_state_config(state){if(this.state()===state){const acc=__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_compose_state_config).call(this,state,true);return merge_state_config(acc,this._active_state_style)}const cached=this._static_state_config_cache.get(state);if(cached!==undefined){return cached}const resolved=__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_compose_state_config).call(this,state,false);this._static_state_config_cache.set(state,resolved);return resolved}style_for(state){return this.resolve_state_config(state)}do(actionName,newData){return this.transition_impl(actionName,newData,false,true,arguments.length>=2)}transition(newState,newData){return this.transition_impl(newState,newData,false,false,arguments.length>=2)}go(newState,newData){return this.transition_impl(newState,newData,false,false,arguments.length>=2)}force_transition(newState,newData){return this.transition_impl(newState,newData,true,false,arguments.length>=2)}current_action_for(action){const action_id=this._action_interner.id_of(action);return action_id===undefined?undefined:this._edge_id_by_action_pair.get(pair_key(action_id,this._state_id))}current_action_edge_for(action){const idx=this.current_action_for(action);if(idx===undefined||idx===null){throw new JssmError(this,`No such action ${JSON.stringify(action)}`)}return this._edges[idx]}valid_action(action,_newData){return this.current_action_for(action)!==undefined}valid_transition(newState,_newData){const transition_for=this.lookup_transition_for(this.state(),newState);if(!transition_for){return false}if(transition_for.forced_only){return false}return true}valid_force_transition(newState,_newData){return this.lookup_transition_for(this.state(),newState)!==undefined}instance_name(){return this._instance_name}get creation_date(){return new Date(Math.floor(this.creation_timestamp))}get creation_timestamp(){return this._created}get create_start_time(){return this._create_started}set_state_timeout(next_state,after_time){if(this._timeout_handle!==undefined){throw new JssmError(this,`Asked to set a state timeout to ${next_state}:${after_time}, but already timing out to ${this._timeout_target}:${this._timeout_target_time}`)}this._timeout_handle=this._timeout_source(()=>{const from_state=this.state();this.clear_state_timeout();if(this._has_after_hooks){const ah=this._after_hooks.get(from_state);if(ah!==undefined){ah({data:this._data,next_data:this._data})}if(this._after_any_hook!==undefined){this._after_any_hook({data:this._data,next_data:this._data})}}__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"timeout",{from:from_state,to:next_state,after_time:after_time});this.go(next_state)},after_time);this._timeout_target=next_state;this._timeout_target_time=after_time}clear_state_timeout(){if(this._timeout_handle===undefined){return}this._clear_timeout_source(this._timeout_handle);this._timeout_handle=undefined;this._timeout_target=undefined;this._timeout_target_time=undefined}state_timeout_for(which_state){return this._after_mapping.get(which_state)}current_state_timeout(){return this._timeout_target===undefined?undefined:[this._timeout_target,this._timeout_target_time]}sm(template_strings,...remainder){return sm(template_strings,...remainder)}}_Machine_instances=new WeakSet,_Machine_unsubscribe_entry=function _Machine_unsubscribe_entry(set,entry){if(set.delete(entry)){this._event_listener_count--}},_Machine_subscribe=function _Machine_subscribe(name,filterOrFn,maybeFn,once){let filter;let handler;if(typeof filterOrFn==="function"){filter=undefined;handler=filterOrFn}else{filter=filterOrFn;handler=maybeFn}if(typeof handler!=="function"){throw new JssmError(this,`event handler for "${name}" must be a function`)}let set=this._event_handlers.get(name);if(set===undefined){set=new Set;this._event_handlers.set(name,set)}const entry={handler:handler,filter:filter,once:once};set.add(entry);this._event_listener_count++;return()=>{__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_unsubscribe_entry).call(this,set,entry)}},_Machine_fire_one=function _Machine_fire_one(entry,set,name,detail){if(entry.filter!==undefined){for(const[k,v]of Object.entries(entry.filter)){if(v!==detail[k]){return}}}if(entry.once){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_unsubscribe_entry).call(this,set,entry)}try{entry.handler(detail)}catch(error){if(name==="error"||this._firing_error){console.error(error)}else{this._firing_error=true;try{__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"error",{error:error,source_event:name,source_detail:detail,handler:entry.handler})}finally{this._firing_error=false}}}},_Machine_has_subscribers=function _Machine_has_subscribers(name){const set=this._event_handlers.get(name);return set!==undefined&&set.size>0},_Machine_fire=function _Machine_fire(name,detail){const set=this._event_handlers.get(name);if(set===undefined||set.size===0){return}if(set.size===1){const only=set.values().next().value;__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_one).call(this,only,set,name,detail);return}const entries=[...set];for(const entry of entries){__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire_one).call(this,entry,set,name,detail)}},_Machine_validate_hook_description=function _Machine_validate_hook_description(HookDesc){const required=hook_required_fields[HookDesc.kind];if(required===undefined){throw new JssmError(this,`unknown hook kind ${JSON.stringify(HookDesc.kind)}`)}if(typeof HookDesc.handler!=="function"){throw new JssmError(this,`${HookDesc.kind} hook requires a handler function`)}for(const field of hook_spatial_fields){const needed=required.includes(field);const value=HookDesc[field];if(needed&&(typeof value!=="string"||value==="")){throw new JssmError(this,`${HookDesc.kind} hook requires '${field}' to be a non-empty string`)}if(!needed&&value!==undefined){throw new JssmError(this,`${HookDesc.kind} hook does not take '${field}'`)}}},_Machine_recompute_hook_flags=function _Machine_recompute_hook_flags(){const nested_has=m=>[...m.values()].some(inner=>inner.size>0);this._has_basic_hooks=this._hooks.size>0;this._has_named_hooks=nested_has(this._named_hooks);this._has_entry_hooks=this._entry_hooks.size>0;this._has_exit_hooks=this._exit_hooks.size>0;this._has_after_hooks=[this._after_hooks.size>0,this._after_any_hook!==undefined].includes(true);this._has_global_action_hooks=this._global_action_hooks.size>0;this._has_transition_hooks=[this._standard_transition_hook!==undefined,this._main_transition_hook!==undefined,this._forced_transition_hook!==undefined].includes(true);this._has_hooks=[this._has_basic_hooks,this._has_named_hooks,this._has_entry_hooks,this._has_exit_hooks,this._has_after_hooks,this._has_global_action_hooks,this._has_transition_hooks,this._any_action_hook!==undefined,this._any_transition_hook!==undefined,this._pre_everything_hook!==undefined,this._everything_hook!==undefined].includes(true);this._has_post_basic_hooks=this._post_hooks.size>0;this._has_post_named_hooks=nested_has(this._post_named_hooks);this._has_post_entry_hooks=this._post_entry_hooks.size>0;this._has_post_exit_hooks=this._post_exit_hooks.size>0;this._has_post_global_action_hooks=this._post_global_action_hooks.size>0;this._has_post_transition_hooks=[this._post_standard_transition_hook!==undefined,this._post_main_transition_hook!==undefined,this._post_forced_transition_hook!==undefined].includes(true);this._has_post_hooks=[this._has_post_basic_hooks,this._has_post_named_hooks,this._has_post_entry_hooks,this._has_post_exit_hooks,this._has_post_global_action_hooks,this._has_post_transition_hooks,this._post_any_action_hook!==undefined,this._post_any_transition_hook!==undefined,this._pre_post_everything_hook!==undefined,this._post_everything_hook!==undefined].includes(true)},_Machine_fire_hook_rejection=function _Machine_fire_hook_rejection(hook_name,fromState,newState,fromAction,oldData,newData,wasForced){this._committing_transition=false;__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_fire).call(this,"rejection",{from:fromState,to:newState,action:fromAction,data:oldData,next_data:newData,reason:"hook",hook_name:hook_name,forced:wasForced})},_Machine_fire_boundary_actions=function _Machine_fire_boundary_actions(prev_state,next_state){var _a,_b,_c,_d,_e,_f;if(prev_state===next_state){return}if(this._group_hooks.size===0&&this._state_hooks.size===0){return}if(this._boundary_depth>=this._boundary_depth_limit){throw new JssmError(this,`boundary-hook action cascade exceeded depth limit (${this._boundary_depth_limit}) `+`crossing from ${JSON.stringify(prev_state)} to ${JSON.stringify(next_state)} `+`(possible infinite loop)`)}const prev_groups=(_a=this._state_to_groups.get(prev_state))!==null&&_a!==void 0?_a:empty_string_set;const next_groups=(_b=this._state_to_groups.get(next_state))!==null&&_b!==void 0?_b:empty_string_set;const labels=[];for(const group of prev_groups){if(next_groups.has(group)){continue}const label=(_c=this._group_hooks.get(group))===null||_c===void 0?void 0:_c.onExit;if(label!==undefined){labels.push(label)}}const prev_state_exit=(_d=this._state_hooks.get(prev_state))===null||_d===void 0?void 0:_d.onExit;if(prev_state_exit!==undefined){labels.push(prev_state_exit)}for(const group of next_groups){if(prev_groups.has(group)){continue}const label=(_e=this._group_hooks.get(group))===null||_e===void 0?void 0:_e.onEnter;if(label!==undefined){labels.push(label)}}const next_state_enter=(_f=this._state_hooks.get(next_state))===null||_f===void 0?void 0:_f.onEnter;if(next_state_enter!==undefined){labels.push(next_state_enter)}if(labels.length===0){return}this._boundary_depth+=1;try{for(const label of labels){this.action(label)}}finally{this._boundary_depth-=1}},_Machine_resolved_themes=function _Machine_resolved_themes(){const themes=[];for(const th of this._themes){const theme_impl=theme_mapping.get(th);if(theme_impl!==undefined){themes.push(theme_impl)}}return themes.reverse()},_Machine_individual_state_config=function _Machine_individual_state_config(state){const decl=this._state_declarations.get(state);return{color:decl===null||decl===void 0?void 0:decl.color,textColor:decl===null||decl===void 0?void 0:decl.textColor,borderColor:decl===null||decl===void 0?void 0:decl.borderColor,backgroundColor:decl===null||decl===void 0?void 0:decl.backgroundColor,lineStyle:decl===null||decl===void 0?void 0:decl.lineStyle,corners:decl===null||decl===void 0?void 0:decl.corners,shape:decl===null||decl===void 0?void 0:decl.shape,image:decl===null||decl===void 0?void 0:decl.image,url:decl===null||decl===void 0?void 0:decl.url}},_Machine_groups_by_depth=function _Machine_groups_by_depth(state){const containing=[...this.groupsOf(state)];if(containing.length<2){return containing}return containing.sort((ga,gb)=>{const da=membership_distance(this._group_registry,state,ga),db=membership_distance(this._group_registry,state,gb);if(da!==db){return db-da}return this._group_order.indexOf(ga)-this._group_order.indexOf(gb)})},_Machine_compose_state_config=function _Machine_compose_state_config(state,active){const themes=__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_resolved_themes).call(this);let acc={};acc=merge_state_config(acc,base_theme.state);for(const theme of themes){if(theme.state){acc=merge_state_config(acc,theme.state)}}acc=merge_state_config(acc,this._state_style);if(this.state_has_hooks(state)){acc=merge_state_config(acc,base_theme.hooked);for(const theme of themes){if(theme.hooked){acc=merge_state_config(acc,theme.hooked)}}acc=merge_state_config(acc,this._hooked_state_style)}if(this.state_is_terminal(state)){acc=merge_state_config(acc,base_theme.terminal);for(const theme of themes){if(theme.terminal){acc=merge_state_config(acc,theme.terminal)}}acc=merge_state_config(acc,this._terminal_state_style)}if(this.is_start_state(state)){acc=merge_state_config(acc,base_theme.start);for(const theme of themes){if(theme.start){acc=merge_state_config(acc,theme.start)}}acc=merge_state_config(acc,this._start_state_style)}if(this.is_end_state(state)){acc=merge_state_config(acc,base_theme.end);for(const theme of themes){if(theme.end){acc=merge_state_config(acc,theme.end)}}acc=merge_state_config(acc,this._end_state_style)}if(active){acc=merge_state_config(acc,base_theme.active);for(const theme of themes){if(theme.active){acc=merge_state_config(acc,theme.active)}}}for(const group_name of __classPrivateFieldGet(this,_Machine_instances,"m",_Machine_groups_by_depth).call(this,state)){const group_cfg=this._group_metadata.get(group_name);if(group_cfg!==undefined){acc=merge_state_config(acc,group_cfg)}}acc=merge_state_config(acc,__classPrivateFieldGet(this,_Machine_instances,"m",_Machine_individual_state_config).call(this,state));return acc};function sm(template_strings,...remainder){return new Machine(make(template_strings.reduce((acc,val,idx)=>`${acc}${remainder[idx-1]}${val}`)))}function from(MachineAsString,ExtraConstructorFields){const to_decorate=make(MachineAsString);if(ExtraConstructorFields!==undefined){for(const[key,value]of Object.entries(ExtraConstructorFields)){if(key==="allows_override"){to_decorate["config_allows_override"]=ExtraConstructorFields.allows_override}else{to_decorate[key]=value}}}return new Machine(to_decorate)}function is_hook_complex_result(hr){return hr!==null&&typeof hr==="object"&&typeof hr.pass==="boolean"}function _update_hook_fields(hook_args,res){if(res===HOOK_PASSED){return false}if(Object.prototype.hasOwnProperty.call(res,"state")&&res.state!==undefined){hook_args.to=res.state}let changed=false;if(Object.prototype.hasOwnProperty.call(res,"data")){hook_args.data=res.data;hook_args.next_data=res.data;changed=true}if(Object.prototype.hasOwnProperty.call(res,"next_data")){hook_args.next_data=res.next_data;changed=true}return changed}const HOOK_PASSED=Object.freeze({pass:true});const HOOK_REJECTED=Object.freeze({pass:false});function abstract_hook_step(maybe_hook,hook_args){if(maybe_hook===undefined){return HOOK_PASSED}const result=maybe_hook(hook_args);if(result===undefined){return HOOK_PASSED}if(result===true){return HOOK_PASSED}if(result===false){return HOOK_REJECTED}if(result===null){return HOOK_REJECTED}if(is_hook_complex_result(result)){return result}throw new TypeError(`Unknown hook result type ${String(result)}`)}function abstract_everything_hook_step(maybe_hook,hook_args){if(maybe_hook===undefined){return HOOK_PASSED}const result=maybe_hook(hook_args);if(result===undefined){return HOOK_PASSED}if(result===true){return HOOK_PASSED}if(result===false){return HOOK_REJECTED}if(result===null){return HOOK_REJECTED}if(is_hook_complex_result(result)){return result}throw new TypeError(`Unknown hook result type ${String(result)}`)}function wc_suffix_matches(tag_name,suffix){const lower=tag_name.toLowerCase();return lower===`fsl-${suffix}`||lower===`jssm-${suffix}`}function closest_wc(el,suffix){return el.closest(`fsl-${suffix}, jssm-${suffix}`)}function define_with_synonym(canonical_tag,synonym_tag,CanonicalClass,SynonymClass){if(!customElements.get(canonical_tag))customElements.define(canonical_tag,CanonicalClass);if(!customElements.get(synonym_tag))customElements.define(synonym_tag,SynonymClass)}function walk_path(obj,path){if(path.length===0){return obj}let cur=obj;for(const part of path.split(".")){if(cur===null||typeof cur!=="object"){return undefined}cur=cur[part]}return cur}function resolve_binding(m,expr){switch(expr){case"state":{return m.state()}case"terminal":{return m.is_terminal()}case"complete":{return m.is_complete()}case"legal-actions":{return m.list_exit_actions().map(String).join(" ")}case"data":{return m.data()}default:{if(expr.startsWith("data.")){const leaf=walk_path(m._data_ref(),expr.slice(5));return typeof leaf==="object"&&leaf!==null?structuredClone(leaf):leaf}throw new Error(`<jssm-bind>: unknown binding expression "${expr}"`)}}}function set_on_element(el,target,value){if(target.startsWith("data-")){el.setAttribute(target,String(value))}else if(target==="textContent"){el.textContent=String(value)}else{el[target]=value}}function install_bindings(host,machine){var _a,_b;const unsubs=[];const inline_nodes=host.querySelectorAll("[data-jssm-bind]");for(const el of inline_nodes){const expr=el.dataset.jssmBind;const target=(_a=el.dataset.jssmBindTo)!==null&&_a!==void 0?_a:"textContent";const apply=()=>{set_on_element(el,target,resolve_binding(machine,expr))};apply();unsubs.push(machine.on("transition",apply))}const all_direct=host.querySelectorAll(":scope > *");const config_tags=[...all_direct].filter(el=>wc_suffix_matches(el.tagName,"bind"));for(const tag of config_tags){const selector=tag.getAttribute("selector");if(selector===null||selector.length===0){throw new Error('<jssm-bind>: missing required "selector" attribute')}const expr=tag.getAttribute("source");if(expr===null||expr.length===0){throw new Error('<jssm-bind>: missing required "source" attribute')}const target=(_b=tag.getAttribute("target"))!==null&&_b!==void 0?_b:"textContent";const targets=host.querySelectorAll(selector);for(const el of targets){const apply=()=>{set_on_element(el,target,resolve_binding(machine,expr))};apply();unsubs.push(machine.on("transition",apply))}}return unsubs}class FslBind extends i{render(){return null}}FslBind.styles=i$3`:host { display: none; }`;const VALID_KINDS=new Set(["hook","named","any transition","standard transition","main transition","forced transition","entry","exit","any action","global action"]);function make_hook_proxy(ctx,machine){return{get data(){return ctx.data},set data(next){ctx.data=next},get from(){return ctx.from},get to(){return ctx.to},get action(){return ctx.action},state(){return String(machine.state())}}}function compile_inline_body$1(body,debug_id){const annotated=`//# sourceURL=jssm-hook:${debug_id}\n${body}`;const ctor=Function;return new ctor("m",annotated)}function resolve_named_handler$1(name,registry){if(registry!==undefined){const registered=registry.get(name);if(registered!==undefined){return registered}}const global=globalThis[name];if(typeof global==="function"){return global}throw new Error(`<jssm-hook handler="${name}">: handler not found in registry or globalThis`)}function normalize_hook_kind(raw){if(!raw){return"hook"}if(!VALID_KINDS.has(raw)){throw new Error(`<jssm-hook kind="${raw}">: unknown hook kind (expected one of: ${[...VALID_KINDS].join(", ")})`)}return raw}function parse_hook_element(el,debug_id,registry){var _a,_b,_c,_d;const handler_attr=el.getAttribute("handler");const raw_text=el.textContent;const body_text=(raw_text===null?"":raw_text).trim();if(handler_attr!==null&&body_text.length>0){throw new Error('<jssm-hook>: specify handler="name" OR inline body, not both')}if(handler_attr===null&&body_text.length===0){throw new Error('<jssm-hook>: must specify either handler="name" attribute or an inline body')}const user_handler=handler_attr===null?compile_inline_body$1(body_text,debug_id):resolve_named_handler$1(handler_attr,registry);const kind=normalize_hook_kind(el.getAttribute("kind"));const from=(_a=el.getAttribute("from"))!==null&&_a!==void 0?_a:undefined;const to=(_b=el.getAttribute("to"))!==null&&_b!==void 0?_b:undefined;const action=(_c=el.getAttribute("action"))!==null&&_c!==void 0?_c:undefined;const name=(_d=el.getAttribute("name"))!==null&&_d!==void 0?_d:undefined;return{kind:kind,name:name,from:from,to:to,action:action,user_handler:user_handler}}function wrap_user_handler(spec,machine){const user=spec.user_handler;return ctx=>{const proxy=make_hook_proxy(ctx,machine);const result=user(proxy);if(result===false){return false}return{pass:true,data:proxy.data}}}function build_hook_descriptor(spec,wrapped){const base={kind:spec.kind,handler:wrapped};if(spec.from!==undefined)base.from=spec.from;if(spec.to!==undefined)base.to=spec.to;if(spec.action!==undefined)base.action=spec.action;return base}function bytes_to_base64url(bytes){let binary="";for(const byte of bytes){binary+=String.fromCharCode(byte)}return btoa(binary).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function base64url_to_bytes(text){const standard=text.replace(/-/g,"+").replace(/_/g,"/");const padded=standard+"=".repeat((4-standard.length%4)%4);const binary=atob(padded);const bytes=new Uint8Array(binary.length);for(let i=0;i<binary.length;i++){bytes[i]=binary.charCodeAt(i)}return bytes}async function deflate_raw(bytes){const stream=new CompressionStream("deflate-raw");const writer=stream.writable.getWriter();void writer.write(bytes);void writer.close();return new Uint8Array(await new Response(stream.readable).arrayBuffer())}const MAX_PERMALINK_INFLATE_BYTES=5*1024*1024;async function inflate_raw(bytes){const stream=new DecompressionStream("deflate-raw");const writer=stream.writable.getWriter();void writer.write(bytes);void writer.close();const reader=stream.readable.getReader();const chunks=[];let total=0;for(;;){const{done:done,value:value}=await reader.read();if(done){break}total+=value.length;if(total>MAX_PERMALINK_INFLATE_BYTES){throw new RangeError(`permalink inflate exceeded ${MAX_PERMALINK_INFLATE_BYTES} bytes`)}chunks.push(value)}const out=new Uint8Array(total);let offset=0;for(const chunk of chunks){out.set(chunk,offset);offset+=chunk.length}return out}async function encode_machine(fsl){const utf8=(new TextEncoder).encode(fsl);const raw=bytes_to_base64url(utf8);const deflated=bytes_to_base64url(await deflate_raw(utf8));return deflated.length<raw.length?`1${deflated}`:`0${raw}`}async function decode_machine(segment){const scheme=segment[0];const bytes=base64url_to_bytes(segment.slice(1));const plain=scheme==="1"?await inflate_raw(bytes):bytes;return(new TextDecoder).decode(plain)}function safe_decode(text){try{return decodeURIComponent(text)}catch(_a){return text}}function fragment_pairs(hash){const body=hash.startsWith("#")?hash.slice(1):hash;return body.split("&").filter(Boolean).map(seg=>{const eq=seg.indexOf("=");return eq===-1?[safe_decode(seg),""]:[safe_decode(seg.slice(0,eq)),seg.slice(eq+1)]})}function read_fragment_param(hash,key){const found=fragment_pairs(hash).find(([k])=>k===key);return found?found[1]:null}function set_fragment_param(hash,key,value){const pairs=fragment_pairs(hash);const at=pairs.findIndex(([k])=>k===key);if(at===-1){pairs.push([key,value])}else{pairs[at]=[key,value]}return pairs.map(([k,v])=>`${encodeURIComponent(k)}=${v}`).join("&")}function permalink_key_for(host){var _a,_b;return(_b=(_a=host.getAttribute("uhash"))!==null&&_a!==void 0?_a:host.getAttribute("id"))!==null&&_b!==void 0?_b:null}const PERMALINK_WRITE_DEBOUNCE_MS=300;const UNOBSERVED_SEGMENT=Symbol("unobserved permalink segment");class FslPermalinkSync{constructor(host){this.key=null;this._observed=UNOBSERVED_SEGMENT;this._connected=false;this._revision=0;this._onRebuilt=()=>{this._scheduleWrite()};this._onHashChange=()=>{void this._restore()};this.host=host;host.addController(this)}hostConnected(){this._connected=true;this.key=permalink_key_for(this.host);if(this.key===null){return}void this._restore();this.host.addEventListener("fsl-machine-rebuilt",this._onRebuilt);addEventListener("hashchange",this._onHashChange)}hostDisconnected(){this._connected=false;this._revision+=1;this._observed=UNOBSERVED_SEGMENT;if(this.key!==null){this.host.removeEventListener("fsl-machine-rebuilt",this._onRebuilt);removeEventListener("hashchange",this._onHashChange)}if(this._timer!==undefined){clearTimeout(this._timer);this._timer=undefined}}async _restore(){const key=this.key;const segment=read_fragment_param(location.hash,key);if(segment===this._observed){return}this._observed=segment;this._revision+=1;if(segment===null){return}const revision=this._revision;try{const fsl=await decode_machine(segment);const currentSegment=read_fragment_param(location.hash,key);if(!this._connected||revision!==this._revision||key!==this.key||currentSegment!==segment){return}this.host.fsl=fsl}catch(_a){}}_scheduleWrite(){const revision=this._revision+=1;if(this._timer!==undefined){clearTimeout(this._timer)}this._timer=setTimeout(()=>{this._timer=undefined;void this._write(revision)},PERMALINK_WRITE_DEBOUNCE_MS)}async _write(revision){const key=this.key;const fsl=this.host.fsl;const observed=this._observed;try{const segment=await encode_machine(fsl);const currentSegment=read_fragment_param(location.hash,key);if(!this._connected||revision!==this._revision||key!==this.key||currentSegment!==observed){return}if(segment===observed){return}const fragment=set_fragment_param(location.hash,key,segment);history.replaceState(history.state,"",`#${fragment}`);this._observed=segment}catch(_a){}}}const BUILTIN_THEMES={Default:{light:{surface:"#ffffff",text:"#222222",accent:"#5b9dff",border:"#e5e5e5",muted:"#9aa0a6","json-key":"#5b3da8","json-string":"#2e7d32","json-number":"#b8860b","json-atom":"#c2185b"},dark:{surface:"#1e1e22",text:"#d6d6d6",accent:"#82aaff",border:"#2a2a2e",muted:"#5a5f66","json-key":"#82aaff","json-string":"#c3e88d","json-number":"#f78c6c","json-atom":"#c792ea"}},Solarized:{light:{surface:"#fdf6e3",text:"#657b83",accent:"#268bd2",border:"#eee8d5",muted:"#93a1a1","json-key":"#6c71c4","json-string":"#859900","json-number":"#b58900","json-atom":"#d33682"},dark:{surface:"#002b36",text:"#839496",accent:"#268bd2",border:"#073642",muted:"#586e75","json-key":"#6c71c4","json-string":"#859900","json-number":"#b58900","json-atom":"#d33682"}}};function resolve_palette(themes,name,variant){var _a;return((_a=themes[name])!==null&&_a!==void 0?_a:BUILTIN_THEMES["Default"])[variant]}function resolve_theme_mode(mode,prefers_dark){return mode==="system"?prefers_dark?"dark":"light":mode}function palette_to_vars(palette){return Object.entries(palette).map(([k,v])=>[`--fsl-color-${k}`,v])}function register_palette_properties(){if(typeof CSS==="undefined"||typeof CSS.registerProperty!=="function"){return}const default_light_vars=palette_to_vars(BUILTIN_THEMES["Default"].light);for(const[prop,value]of default_light_vars){try{CSS.registerProperty({name:prop,syntax:"<color>",inherits:true,initialValue:value})}catch(_a){}}}const JSSM_ON_EVENT_NAMES=new Set(["transition","rejection","action","entry","exit","terminal","complete","error","data-change","override","timeout","hook-registration","hook-removal"]);function parse_jssm_on_element(el){const event_attr=el.getAttribute("event");if(event_attr===null||event_attr.trim().length===0){throw new Error("<jssm-on>: missing required `event` attribute")}const event=event_attr.trim();if(!JSSM_ON_EVENT_NAMES.has(event)){throw new Error(`<jssm-on>: unknown event "${event}"`)}const handler_attr=el.getAttribute("handler");const handler_name=handler_attr!==null&&handler_attr.trim().length>0?handler_attr.trim():undefined;const body_text=el.textContent;const inline_body=body_text!==null&&body_text.trim().length>0?body_text:undefined;if(handler_name!==undefined&&inline_body!==undefined){throw new Error('<jssm-on>: specify handler="name" OR inline body, not both')}if(handler_name===undefined&&inline_body===undefined){throw new Error('<jssm-on>: must specify handler="name" or an inline body')}const once_attr=el.hasAttribute("once");const name_attr=el.getAttribute("name");const name=name_attr!==null&&name_attr.trim().length>0?name_attr.trim():undefined;let filter;if(event==="entry"||event==="exit"){const state_attr=el.getAttribute("state");if(state_attr!==null&&state_attr.length>0){filter={state:state_attr}}}else if(event==="transition"){const from_attr=el.getAttribute("from");const to_attr=el.getAttribute("to");const candidate={};if(from_attr!==null&&from_attr.length>0){candidate.from=from_attr}if(to_attr!==null&&to_attr.length>0){candidate.to=to_attr}if(Object.keys(candidate).length>0){filter=candidate}}return{event:event,handler_name:handler_name,inline_body:inline_body,once:once_attr,name:name,filter:filter}}const jssm_handler_registry=new Map;function resolve_named_handler(name){const from_registry=jssm_handler_registry.get(name);if(typeof from_registry==="function"){return from_registry}const from_global=globalThis[name];if(typeof from_global==="function"){return from_global}throw new Error(`<jssm-on>: handler "${name}" not found in registry or globalThis`)}function compile_inline_body(body,source_id){const wrapped=`${body}\n//# sourceURL=jssm-on:${source_id}`;return new Function("e",wrapped)}function resolve_fsl_source(host,fsl_attr){const sources=[];if(typeof fsl_attr==="string"&&fsl_attr.trim().length>0){sources.push({kind:"fsl-attribute",fsl:fsl_attr})}const script_child=host.querySelector('script[type="text/fsl"]');if(script_child!==null){const text=(script_child.textContent||"").trim();if(text.length>0){sources.push({kind:"fsl-script",fsl:text})}}const text_content_fsl=function extract_text_fsl(){const clone=host.cloneNode(true);clone.querySelectorAll("script").forEach(n=>n.remove());clone.querySelectorAll("*").forEach(n=>{const t=n.tagName.toLowerCase();if(t.startsWith("fsl-")||t.startsWith("jssm-")){n.remove()}});clone.querySelectorAll("[slot]").forEach(n=>n.remove());return(clone.textContent||"").trim()}();if(text_content_fsl.length>0){sources.push({kind:"text-content",fsl:text_content_fsl})}if(sources.length===0){return{fsl:undefined,provided_count:0,error:"no FSL source"}}if(sources.length>1){return{fsl:undefined,provided_count:sources.length,error:`use exactly one source (found ${sources.length}: ${sources.map(s=>s.kind).join(", ")})`}}const only=sources[0];return{fsl:only.fsl,provided_count:1,error:undefined}}function auto_mode(width,height){return width>=height?"lr":"tb"}function split_ratio(coord,start,size){if(size<=0){return 50}const pct=(coord-start)/size*100;return Math.min(85,Math.max(15,pct))}class FslInstance extends i{constructor(){super();this.fsl="";this.layout="";this.theme="light";this.themeName="Default";this.themes=BUILTIN_THEMES;this.data=undefined;this._split=50;this._tab="viz";this._autoMode="lr";this._autoListener=null;this._overrides=new Map;this.panelMode="default";this.panelModes={};this.requestedPanels=[];this._machine=undefined;this._unsubs=[];this._on_unsubscribes=[];this._reemit_unsubscribes=[];this._pending_dom_events=[];this.registry=new Map;this._installed_hooks=[];this._hook_debug_counter=0;this._action_listeners=[];this._mql=null;this._on_os_theme_change=()=>{if(this.theme==="system"){this._applyTheme()}};this._onGutterDown=e=>{e.preventDefault();document.addEventListener("pointermove",this._onGutterMove);document.addEventListener("pointerup",this._onGutterUp)};this._onGutterMove=e=>{const rect=this.renderRoot.querySelector(".workbench").getBoundingClientRect();const mode=this._effectiveMode();this._split=mode==="tb"||mode==="bt"?split_ratio(e.clientY,rect.top,rect.height):split_ratio(e.clientX,rect.left,rect.width);this.requestUpdate()};this._onGutterUp=()=>{document.removeEventListener("pointermove",this._onGutterMove);document.removeEventListener("pointerup",this._onGutterUp)};this._onGutterReset=()=>{this._split=50;this.requestUpdate()};new FslPermalinkSync(this)}get machine(){if(this._machine===undefined){throw new Error("fsl-instance: machine accessed before connection")}return this._machine}do(action,data){const result=this.machine.action(action,data);this._paint_state_reflection();this.requestUpdate();return result}transition(state,data){const result=this.machine.transition(state,data);this._paint_state_reflection();this.requestUpdate();return result}force_transition(state,data){const result=this.machine.force_transition(state,data);this._paint_state_reflection();this.requestUpdate();return result}state(){return this.machine.state()}_prefers_dark(){return typeof matchMedia==="function"&&matchMedia("(prefers-color-scheme: dark)").matches}_applyTheme(){const variant=resolve_theme_mode(this.theme,this._prefers_dark());this.setAttribute("resolved-theme",variant);const vars=palette_to_vars(resolve_palette(this.themes,this.themeName,variant));for(const[prop,value]of vars){this.style.setProperty(prop,value)}for(const editor of this.querySelectorAll('[slot="editor"]')){editor.theme=variant}}_effectiveMode(){return this.layout==="auto"?this._autoMode:this.layout}_renderTabbar(){return b`
|
|
22
22
|
<div class="tabbar" role="tablist" aria-label="Pane">
|
|
23
23
|
<button type="button" role="tab" aria-selected=${this._tab==="viz"} @click=${()=>this._setTab("viz")}>Graph</button>
|
|
24
24
|
<button type="button" role="tab" aria-selected=${this._tab==="editor"} @click=${()=>this._setTab("editor")}>Code</button>
|