diff --git a/.prettierignore b/.prettierignore index 54df33a4..903390ad 100644 --- a/.prettierignore +++ b/.prettierignore @@ -11,3 +11,4 @@ packages/squiggle-lang/.nyc_output/ packages/squiggle-lang/coverage/ packages/squiggle-lang/.cache/ packages/website/build/ +packages/squiggle-lang/src/rescript/Reducer/Reducer_Peggy/Reducer_Peggy_GeneratedParser.js diff --git a/packages/components/package.json b/packages/components/package.json index ad9f2e63..21b3e46e 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -19,13 +19,13 @@ "devDependencies": { "@babel/plugin-proposal-private-property-in-object": "^7.17.12", "@storybook/addon-actions": "^6.5.3", - "@storybook/addon-essentials": "^6.5.3", - "@storybook/addon-links": "^6.5.3", + "@storybook/addon-essentials": "^6.5.4", + "@storybook/addon-links": "^6.5.4", "@storybook/builder-webpack5": "^6.5.3", - "@storybook/manager-webpack5": "^6.5.3", - "@storybook/node-logger": "^6.4.22", + "@storybook/manager-webpack5": "^6.5.4", + "@storybook/node-logger": "^6.5.4", "@storybook/preset-create-react-app": "^4.1.0", - "@storybook/react": "^6.5.3", + "@storybook/react": "^6.5.4", "@testing-library/jest-dom": "^5.16.4", "@testing-library/react": "^13.2.0", "@testing-library/user-event": "^14.2.0", diff --git a/packages/squiggle-lang/.gitignore b/packages/squiggle-lang/.gitignore index 4db5c5f4..1449d5f3 100644 --- a/packages/squiggle-lang/.gitignore +++ b/packages/squiggle-lang/.gitignore @@ -21,3 +21,4 @@ dist _coverage coverage .nyc_output/ +src/rescript/Reducer/Reducer_Peggy/Reducer_Peggy_GeneratedParser.js diff --git a/packages/squiggle-lang/.prettierignore b/packages/squiggle-lang/.prettierignore index 1c242bb9..46ac9925 100644 --- a/packages/squiggle-lang/.prettierignore +++ b/packages/squiggle-lang/.prettierignore @@ -4,4 +4,5 @@ lib *.gen.tsx .nyc_output/ coverage/ -.cache/ \ No newline at end of file +.cache/ +Reducer_Peggy_GeneratedParser.js diff --git a/packages/squiggle-lang/__tests__/Reducer/Reducer_Peggy/Reducer_Peggy_Parse_test.res b/packages/squiggle-lang/__tests__/Reducer/Reducer_Peggy/Reducer_Peggy_Parse_test.res index 3f1baf12..b0e723f4 100644 --- a/packages/squiggle-lang/__tests__/Reducer/Reducer_Peggy/Reducer_Peggy_Parse_test.res +++ b/packages/squiggle-lang/__tests__/Reducer/Reducer_Peggy/Reducer_Peggy_Parse_test.res @@ -252,11 +252,8 @@ describe("Peggy parse", () => { ) }) describe("unit", () => { - testParse("1m", "{(::multiply 1 (::$valueOfUnit 'm'))}") - testParse( - "1m+2cm", - "{(::add (::multiply 1 (::$valueOfUnit 'm')) (::multiply 2 (::$valueOfUnit 'cm')))}", - ) + testParse("1m", "{(::fromUnit_m 1)}") + testParse("1m+2cm", "{(::add (::fromUnit_m 1) (::fromUnit_cm 2))}") }) }) diff --git a/packages/squiggle-lang/package.json b/packages/squiggle-lang/package.json index bf76709a..d92c18d9 100644 --- a/packages/squiggle-lang/package.json +++ b/packages/squiggle-lang/package.json @@ -4,9 +4,9 @@ "homepage": "https://squiggle-language.com", "license": "MIT", "scripts": { - "peggy": "peggy --cache ", - "build:peggy": "find . -type f -name *.peggy -exec yarn run peggy {} \\;", - "build": "yarn build:rescript && yarn build:typescript", + "peggy": "peggy --cache", + "build": "yarn build:peggy && yarn build:rescript && yarn build:typescript", + "build:peggy": "find . -type f -name *.peggy -exec yarn peggy {} \\;", "build:rescript": "rescript build -with-deps", "build:typescript": "tsc", "bundle": "webpack", @@ -61,7 +61,7 @@ "rescript-fast-check": "^1.1.1", "ts-jest": "^27.1.4", "ts-loader": "^9.3.0", - "ts-node": "^10.7.0", + "ts-node": "^10.8.0", "typescript": "^4.6.3", "webpack": "^5.72.1", "webpack-cli": "^4.9.2" diff --git a/packages/squiggle-lang/src/rescript/Reducer/Reducer_Peggy/Reducer_Peggy_GeneratedParser.js b/packages/squiggle-lang/src/rescript/Reducer/Reducer_Peggy/Reducer_Peggy_GeneratedParser.js index 4c1532dd..239cc876 100644 --- a/packages/squiggle-lang/src/rescript/Reducer/Reducer_Peggy/Reducer_Peggy_GeneratedParser.js +++ b/packages/squiggle-lang/src/rescript/Reducer/Reducer_Peggy/Reducer_Peggy_GeneratedParser.js @@ -4,103 +4,71 @@ "use strict"; -var toFunction = { - "-": "subtract", - "->": "pipe", - "!=": "unequal", - ".-": "dotSubtract", - ".*": "dotMultiply", - "./": "dotDivide", - ".^": "dotPow", - ".+": "dotAdd", - "*": "multiply", - "/": "divide", - "&&": "and", - "^": "pow", // or xor - "+": "add", - "<": "smaller", - "<=": "smallerEq", - "==": "equal", - ">": "larger", - ">=": "largerEq", - "||": "or", - to: "credibleIntervalToDistribution", -}; -var unaryToFunction = { - "-": "unaryMinus", - "!": "not", - ".-": "unaryDotMinus", -}; + var toFunction = { + '-': 'subtract', + '->': 'pipe', + '!=': 'unequal', + '.-': 'dotSubtract', + '.*': 'dotMultiply', + './': 'dotDivide', + '.^': 'dotPow', + '.+': 'dotAdd', + '*': 'multiply', + '/': 'divide', + '&&': 'and', + '^': 'pow', // or xor + '+': 'add', + '<': 'smaller', + '<=': 'smallerEq', + '==': 'equal', + '>': 'larger', + '>=': 'largerEq', + '||': 'or', + 'to': 'credibleIntervalToDistribution', + } -var postOperatorToFunction = { - ".": "$_atIndex_$", - "()": "$$_applyAll_$$", - "[]": "$_atIndex_$", -}; + var unaryToFunction = { + '-': 'unaryMinus', + '!': 'not', + '.-': 'unaryDotMinus', + } -function nodeBlock(statements) { - return { type: "Block", statements: statements }; -} -function nodeBoolean(value) { - return { type: "Boolean", value: value }; -} -function nodeCallIndentifier(value) { - return { type: "CallIdentifier", value: value }; -} -function nodeExpression(args) { - return { type: "Expression", nodes: args }; -} -function nodeFloat(value) { - return { type: "Float", value: value }; -} -function makeFunctionCall(fn, args) { - if (fn === "$$_applyAll_$$") { - // Any list of values is applied from left to right anyway. - // Like in Haskell and Lisp. - // So we remove the redundant $$_applyAll_$$. - if (args[0].type === "Identifier") { - args[0].type = "CallIdentifier"; + var postOperatorToFunction = { + '.': '$_atIndex_$', + '()': '$$_applyAll_$$', + '[]': '$_atIndex_$', + } + + function nodeBlock(statements) {return{type: 'Block', statements: statements}} + function nodeBoolean(value) {return {type: 'Boolean', value: value}} + function nodeCallIndentifier(value) {return {type: 'CallIdentifier', value: value}} + function nodeExpression(args) {return {type: 'Expression', nodes: args}} + function nodeFloat(value) {return {type: 'Float', value: value}} + function makeFunctionCall(fn, args) { + if (fn === '$$_applyAll_$$') { + // Any list of values is applied from left to right anyway. + // Like in Haskell and Lisp. + // So we remove the redundant $$_applyAll_$$. + if (args[0].type === "Identifier") {args[0].type = "CallIdentifier"} + return nodeExpression(args) + } else { + return nodeExpression([nodeCallIndentifier(fn), ...args]) } - return nodeExpression(args); - } else { - return nodeExpression([nodeCallIndentifier(fn), ...args]); } -} -function nodeIdentifier(value) { - return { type: "Identifier", value: value }; -} -function nodeInteger(value) { - return { type: "Integer", value: value }; -} -function nodeKeyValue(key, value) { - if (key.type === "Identifier") { - key.type = "String"; - } - return { type: "KeyValue", key: key, value: value }; -} -function nodeLambda(args, body) { - return { type: "Lambda", args: args, body: body }; -} -function nodeLetStatment(variable, value) { - return { type: "LetStatement", variable: variable, value: value }; -} -function nodeString(value) { - return { type: "String", value: value }; -} -function nodeTernary(condition, trueExpression, falseExpression) { - return { - type: "Ternary", - condition: condition, - trueExpression: trueExpression, - falseExpression: falseExpression, - }; -} + function nodeIdentifier(value) {return {type: 'Identifier', value: value}} + function nodeInteger(value) {return {type: 'Integer', value: value}} + function nodeKeyValue(key, value) { + if (key.type === 'Identifier') {key.type = 'String'} + return {type: 'KeyValue', key: key, value: value}} + function nodeLambda(args, body) {return {type: 'Lambda', args: args, body: body}} + function nodeLetStatment(variable, value) {return {type: 'LetStatement', variable: variable, value: value}} + function nodeString(value) {return {type: 'String', value: value}} + function nodeTernary(condition, trueExpression, falseExpression) {return {type: 'Ternary', condition: condition, trueExpression: trueExpression, falseExpression: falseExpression}} + function peg$subclass(child, parent) { - function C() { - this.constructor = child; - } + function C() { this.constructor = child; } C.prototype = parent.prototype; child.prototype = new C(); } @@ -121,15 +89,13 @@ peg$subclass(peg$SyntaxError, Error); function peg$padEnd(str, targetLength, padString) { padString = padString || " "; - if (str.length > targetLength) { - return str; - } + if (str.length > targetLength) { return str; } targetLength -= str.length; padString += padString.repeat(targetLength); return str + padString.slice(0, targetLength); } -peg$SyntaxError.prototype.format = function (sources) { +peg$SyntaxError.prototype.format = function(sources) { var str = "Error: " + this.message; if (this.location) { var src = null; @@ -147,20 +113,11 @@ peg$SyntaxError.prototype.format = function (sources) { var filler = peg$padEnd("", s.line.toString().length); var line = src[s.line - 1]; var last = s.line === e.line ? e.column : line.length + 1; - str += - "\n --> " + - loc + - "\n" + - filler + - " |\n" + - s.line + - " | " + - line + - "\n" + - filler + - " | " + - peg$padEnd("", s.column - 1) + - peg$padEnd("", last - s.column, "^"); + str += "\n --> " + loc + "\n" + + filler + " |\n" + + s.line + " | " + line + "\n" + + filler + " | " + peg$padEnd("", s.column - 1) + + peg$padEnd("", last - s.column, "^"); } else { str += "\n at " + loc; } @@ -168,14 +125,14 @@ peg$SyntaxError.prototype.format = function (sources) { return str; }; -peg$SyntaxError.buildMessage = function (expected, found) { +peg$SyntaxError.buildMessage = function(expected, found) { var DESCRIBE_EXPECTATION_FNS = { - literal: function (expectation) { - return '"' + literalEscape(expectation.text) + '"'; + literal: function(expectation) { + return "\"" + literalEscape(expectation.text) + "\""; }, - class: function (expectation) { - var escapedParts = expectation.parts.map(function (part) { + class: function(expectation) { + var escapedParts = expectation.parts.map(function(part) { return Array.isArray(part) ? classEscape(part[0]) + "-" + classEscape(part[1]) : classEscape(part); @@ -184,17 +141,17 @@ peg$SyntaxError.buildMessage = function (expected, found) { return "[" + (expectation.inverted ? "^" : "") + escapedParts + "]"; }, - any: function () { + any: function() { return "any character"; }, - end: function () { + end: function() { return "end of input"; }, - other: function (expectation) { + other: function(expectation) { return expectation.description; - }, + } }; function hex(ch) { @@ -204,17 +161,13 @@ peg$SyntaxError.buildMessage = function (expected, found) { function literalEscape(s) { return s .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); - }); + .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) { @@ -222,17 +175,13 @@ peg$SyntaxError.buildMessage = function (expected, found) { .replace(/\\/g, "\\\\") .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); - }); + .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) { @@ -263,25 +212,17 @@ peg$SyntaxError.buildMessage = function (expected, found) { return descriptions[0] + " or " + descriptions[1]; default: - return ( - descriptions.slice(0, -1).join(", ") + - ", or " + - descriptions[descriptions.length - 1] - ); + return descriptions.slice(0, -1).join(", ") + + ", or " + + descriptions[descriptions.length - 1]; } } function describeFound(found) { - return found ? '"' + literalEscape(found) + '"' : "end of input"; + return found ? "\"" + literalEscape(found) + "\"" : "end of input"; } - return ( - "Expected " + - describeExpected(expected) + - " but " + - describeFound(found) + - " found." - ); + return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found."; }; function peg$parse(input, options) { @@ -330,7 +271,7 @@ function peg$parse(input, options) { var peg$c34 = "."; var peg$c35 = "]"; var peg$c36 = "'"; - var peg$c37 = '"'; + var peg$c37 = "\""; var peg$c38 = "true"; var peg$c39 = "false"; var peg$c40 = "|"; @@ -394,23 +335,15 @@ function peg$parse(input, options) { var peg$e38 = peg$literalExpectation("]", false); var peg$e39 = peg$otherExpectation("identifier"); var peg$e40 = peg$classExpectation(["_", ["a", "z"]], false, false); - var peg$e41 = peg$classExpectation( - ["_", ["a", "z"], ["0", "9"]], - false, - true - ); + var peg$e41 = peg$classExpectation(["_", ["a", "z"], ["0", "9"]], false, true); var peg$e42 = peg$otherExpectation("$identifier"); var peg$e43 = peg$classExpectation(["$", "_", ["a", "z"]], false, false); - var peg$e44 = peg$classExpectation( - ["$", "_", ["a", "z"], ["0", "9"]], - false, - true - ); + var peg$e44 = peg$classExpectation(["$", "_", ["a", "z"], ["0", "9"]], false, true); var peg$e45 = peg$otherExpectation("string"); var peg$e46 = peg$literalExpectation("'", false); var peg$e47 = peg$classExpectation(["'"], true, false); - var peg$e48 = peg$literalExpectation('"', false); - var peg$e49 = peg$classExpectation(['"'], true, false); + var peg$e48 = peg$literalExpectation("\"", false); + var peg$e49 = peg$classExpectation(["\""], true, false); var peg$e50 = peg$otherExpectation("integer"); var peg$e51 = peg$classExpectation(["e"], false, true); var peg$e52 = peg$otherExpectation("float"); @@ -438,144 +371,62 @@ function peg$parse(input, options) { var peg$e74 = peg$otherExpectation("newline"); var peg$e75 = peg$classExpectation(["\n", "\r"], false, false); - var peg$f0 = function (start) { - return start; - }; - var peg$f1 = function (statements, finalExpression) { - if (finalExpression != null) { - statements.push(finalExpression); - } - return nodeBlock(statements); - }; - var peg$f2 = function (finalExpression) { - return nodeBlock([finalExpression]); - }; - var peg$f3 = function (statements, finalExpression) { - statements.push(finalExpression); - return nodeBlock(statements); - }; - var peg$f4 = function (finalExpression) { - return nodeBlock([finalExpression]); - }; - var peg$f5 = function (head, tail) { - return [head, ...tail]; - }; - var peg$f6 = function (head) { - return [head]; - }; - var peg$f7 = function (variable, value) { - return nodeLetStatment(variable, value); - }; - var peg$f8 = function (variable, args, body) { - var value = nodeLambda(args, body); - return nodeLetStatment(variable, value); - }; - var peg$f9 = function (head, tail) { - return [head, ...tail]; - }; - var peg$f10 = function (condition, trueExpression, falseExpression) { - return nodeTernary(condition, trueExpression, falseExpression); - }; - var peg$f11 = function (head, operator, arg) { - return { operator: operator, right: arg }; - }; - var peg$f12 = function (head, tail) { - return tail.reduce(function (result, element) { - return makeFunctionCall(toFunction[element.operator], [ - result, - element.right, - ]); - }, head); - }; - var peg$f13 = function (left, operator, right) { - return makeFunctionCall(toFunction[operator], [left, right]); - }; - var peg$f14 = function (head, chained) { - return chained; - }; - var peg$f15 = function (head, tail) { - return tail.reduce(function (result, element) { - return makeFunctionCall(element.fnName, [result, ...element.args]); - }, head); - }; - var peg$f16 = function (fn, args) { - return { fnName: fn.value, args: args }; - }; - var peg$f17 = function (fn) { - return { fnName: fn.value, args: [] }; - }; - var peg$f18 = function (unaryOperator, right) { - return makeFunctionCall(unaryToFunction[unaryOperator], [right]); - }; - var peg$f19 = function (head, arg) { - return { fn: postOperatorToFunction["[]"], args: [arg] }; - }; - var peg$f20 = function (head, args) { - return { fn: postOperatorToFunction["()"], args: args }; - }; - var peg$f21 = function (head, arg) { - return { fn: postOperatorToFunction["[]"], args: [nodeString(arg)] }; - }; - var peg$f22 = function (head, tail) { - return tail.reduce(function (result, element) { - return makeFunctionCall(element.fn, [result, ...element.args]); - }, head); - }; - var peg$f23 = function (head, arg) { - return { fn: postOperatorToFunction["."], args: [nodeString(arg)] }; - }; - var peg$f24 = function (head, tail) { - return tail.reduce(function (result, element) { - return makeFunctionCall(element.fn, [result, ...element.args]); - }, head); - }; - var peg$f25 = function (expression) { - return expression; - }; - var peg$f26 = function () { - return nodeIdentifier(text()); - }; - var peg$f27 = function (characters) { - return nodeString(characters.join("")); - }; - var peg$f28 = function (number, unit) { - if (unit === null) { - return number; - } else { - return makeFunctionCall("multiply", [ - number, - makeFunctionCall("$valueOfUnit", [nodeString(unit.value)]), - ]); - } - }; - var peg$f29 = function () { - return nodeInteger(parseInt(text())); - }; - var peg$f30 = function () { - return nodeFloat(parseFloat(text())); - }; - var peg$f31 = function () { - return nodeBoolean(text() === "true"); - }; - var peg$f32 = function (args, statements, finalExpression) { - statements.push(finalExpression); - return nodeLambda(args, nodeBlock(statements)); - }; - var peg$f33 = function (args, finalExpression) { - return nodeLambda(args, nodeBlock([finalExpression])); - }; - var peg$f34 = function () { - return makeFunctionCall("$_constructArray_$", [nodeExpression([])]); - }; - var peg$f35 = function (args) { - return makeFunctionCall("$_constructArray_$", [nodeExpression(args)]); - }; - var peg$f36 = function (args) { - return makeFunctionCall("$_constructRecord_$", [nodeExpression(args)]); - }; - var peg$f37 = function (key, value) { - return nodeKeyValue(key, value); - }; + var peg$f0 = function(start) {return start}; + var peg$f1 = function(statements, finalExpression) { if (finalExpression != null) { statements.push(finalExpression) } + return nodeBlock(statements) }; + var peg$f2 = function(finalExpression) { return nodeBlock([finalExpression])}; + var peg$f3 = function(statements, finalExpression) { statements.push(finalExpression) + return nodeBlock(statements) }; + var peg$f4 = function(finalExpression) { return nodeBlock([finalExpression]) }; + var peg$f5 = function(head, tail) { return [head, ...tail] }; + var peg$f6 = function(head) { return [head] }; + var peg$f7 = function(variable, value) { return nodeLetStatment(variable, value) }; + var peg$f8 = function(variable, args, body) { var value = nodeLambda(args, body) + return nodeLetStatment(variable, value) }; + var peg$f9 = function(head, tail) { return [head, ...tail]; }; + var peg$f10 = function(condition, trueExpression, falseExpression) { return nodeTernary(condition, trueExpression, falseExpression) }; + var peg$f11 = function(head, operator, arg) {return {operator: operator, right: arg}}; + var peg$f12 = function(head, tail) { return tail.reduce(function(result, element) { + return makeFunctionCall(toFunction[element.operator], [result, element.right]) + }, head)}; + var peg$f13 = function(left, operator, right) { return makeFunctionCall(toFunction[operator], [left, right])}; + var peg$f14 = function(head, chained) {return chained}; + var peg$f15 = function(head, tail) { return tail.reduce(function(result, element) { + return makeFunctionCall(element.fnName, [result, ...element.args]) + }, head)}; + var peg$f16 = function(fn, args) { return {fnName: fn.value, args: args}}; + var peg$f17 = function(fn) { return {fnName: fn.value, args: []}}; + var peg$f18 = function(unaryOperator, right) { return makeFunctionCall(unaryToFunction[unaryOperator], [right])}; + var peg$f19 = function(head, arg) {return {fn: postOperatorToFunction['[]'], args: [arg]}}; + var peg$f20 = function(head, args) {return {fn: postOperatorToFunction['()'], args: args}}; + var peg$f21 = function(head, arg) {return {fn: postOperatorToFunction['[]'], args: [nodeString(arg)]}}; + var peg$f22 = function(head, tail) { return tail.reduce(function(result, element) { + return makeFunctionCall(element.fn, [result, ...element.args]) + }, head)}; + var peg$f23 = function(head, arg) {return {fn: postOperatorToFunction['.'], args: [nodeString(arg)]}}; + var peg$f24 = function(head, tail) { return tail.reduce(function(result, element) { + return makeFunctionCall(element.fn, [result, ...element.args]) + }, head)}; + var peg$f25 = function(expression) {return expression}; + var peg$f26 = function() {return nodeIdentifier(text())}; + var peg$f27 = function(characters) {return nodeString(characters.join(''))}; + var peg$f28 = function(number, unit) { + if (unit === null) + { return number } + else + { return makeFunctionCall('fromUnit_'+unit.value, [number]) + } + }; + var peg$f29 = function() { return nodeInteger(parseInt(text()))}; + var peg$f30 = function() { return nodeFloat(parseFloat(text()))}; + var peg$f31 = function() { return nodeBoolean(text() === 'true')}; + var peg$f32 = function(args, statements, finalExpression) { statements.push(finalExpression) + return nodeLambda(args, nodeBlock(statements)) }; + var peg$f33 = function(args, finalExpression) { return nodeLambda(args, nodeBlock([finalExpression])) }; + var peg$f34 = function() { return makeFunctionCall('$_constructArray_$', [nodeExpression([])])}; + var peg$f35 = function(args) { return makeFunctionCall('$_constructArray_$', [nodeExpression(args)])}; + var peg$f36 = function(args) { return makeFunctionCall('$_constructRecord_$', [nodeExpression(args)])}; + var peg$f37 = function(key, value) { return nodeKeyValue(key, value)}; var peg$currPos = 0; var peg$savedPos = 0; @@ -590,9 +441,7 @@ function peg$parse(input, options) { if ("startRule" in options) { if (!(options.startRule in peg$startRuleFunctions)) { - throw new Error( - "Can't start parsing from rule \"" + options.startRule + '".' - ); + throw new Error("Can't start parsing from rule \"" + options.startRule + "\"."); } peg$startRuleFunction = peg$startRuleFunctions[options.startRule]; @@ -610,7 +459,7 @@ function peg$parse(input, options) { return { source: peg$source, start: peg$savedPos, - end: peg$currPos, + end: peg$currPos }; } @@ -619,10 +468,9 @@ function peg$parse(input, options) { } function expected(description, location) { - location = - location !== undefined - ? location - : peg$computeLocation(peg$savedPos, peg$currPos); + location = location !== undefined + ? location + : peg$computeLocation(peg$savedPos, peg$currPos); throw peg$buildStructuredError( [peg$otherExpectation(description)], @@ -632,10 +480,9 @@ function peg$parse(input, options) { } function error(message, location) { - location = - location !== undefined - ? location - : peg$computeLocation(peg$savedPos, peg$currPos); + location = location !== undefined + ? location + : peg$computeLocation(peg$savedPos, peg$currPos); throw peg$buildSimpleError(message, location); } @@ -645,12 +492,7 @@ function peg$parse(input, options) { } function peg$classExpectation(parts, inverted, ignoreCase) { - return { - type: "class", - parts: parts, - inverted: inverted, - ignoreCase: ignoreCase, - }; + return { type: "class", parts: parts, inverted: inverted, ignoreCase: ignoreCase }; } function peg$anyExpectation() { @@ -680,7 +522,7 @@ function peg$parse(input, options) { details = peg$posDetailsCache[p]; details = { line: details.line, - column: details.column, + column: details.column }; while (p < pos) { @@ -709,20 +551,18 @@ function peg$parse(input, options) { start: { offset: startPos, line: startPosDetails.line, - column: startPosDetails.column, + column: startPosDetails.column }, end: { offset: endPos, line: endPosDetails.line, - column: endPosDetails.column, - }, + column: endPosDetails.column + } }; } function peg$fail(expected) { - if (peg$currPos < peg$maxFailPos) { - return; - } + if (peg$currPos < peg$maxFailPos) { return; } if (peg$currPos > peg$maxFailPos) { peg$maxFailPos = peg$currPos; @@ -899,9 +739,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e0); - } + if (peg$silentFails === 0) { peg$fail(peg$e0); } } if (s1 !== peg$FAILED) { s2 = peg$parse_nl(); @@ -928,9 +766,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e1); - } + if (peg$silentFails === 0) { peg$fail(peg$e1); } } if (s6 !== peg$FAILED) { peg$savedPos = s0; @@ -958,9 +794,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e0); - } + if (peg$silentFails === 0) { peg$fail(peg$e0); } } if (s1 !== peg$FAILED) { s2 = peg$parse_nl(); @@ -972,9 +806,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e1); - } + if (peg$silentFails === 0) { peg$fail(peg$e1); } } if (s5 !== peg$FAILED) { peg$savedPos = s0; @@ -1136,9 +968,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e2); - } + if (peg$silentFails === 0) { peg$fail(peg$e2); } } if (s2 !== peg$FAILED) { s3 = peg$parse_nl(); @@ -1150,9 +980,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e3); - } + if (peg$silentFails === 0) { peg$fail(peg$e3); } } if (s6 !== peg$FAILED) { s7 = peg$parse_(); @@ -1211,16 +1039,12 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e5); - } + if (peg$silentFails === 0) { peg$fail(peg$e5); } } peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e4); - } + if (peg$silentFails === 0) { peg$fail(peg$e4); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -1251,9 +1075,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e6); - } + if (peg$silentFails === 0) { peg$fail(peg$e6); } } if (s5 !== peg$FAILED) { s6 = peg$parse_nl(); @@ -1277,9 +1099,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e6); - } + if (peg$silentFails === 0) { peg$fail(peg$e6); } } if (s5 !== peg$FAILED) { s6 = peg$parse_nl(); @@ -1350,9 +1170,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e7); - } + if (peg$silentFails === 0) { peg$fail(peg$e7); } } if (s1 !== peg$FAILED) { s2 = peg$parse__nl(); @@ -1366,9 +1184,7 @@ function peg$parse(input, options) { peg$currPos += 4; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e8); - } + if (peg$silentFails === 0) { peg$fail(peg$e8); } } if (s5 !== peg$FAILED) { s6 = peg$parse__nl(); @@ -1382,9 +1198,7 @@ function peg$parse(input, options) { peg$currPos += 4; } else { s9 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e9); - } + if (peg$silentFails === 0) { peg$fail(peg$e9); } } if (s9 !== peg$FAILED) { s10 = peg$parse__nl(); @@ -1467,9 +1281,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e10); - } + if (peg$silentFails === 0) { peg$fail(peg$e10); } } if (s3 !== peg$FAILED) { s4 = peg$parse_nl(); @@ -1481,9 +1293,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s7 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e11); - } + if (peg$silentFails === 0) { peg$fail(peg$e11); } } if (s7 !== peg$FAILED) { s8 = peg$parse_nl(); @@ -1603,16 +1413,12 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e13); - } + if (peg$silentFails === 0) { peg$fail(peg$e13); } } peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e12); - } + if (peg$silentFails === 0) { peg$fail(peg$e12); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -1703,16 +1509,12 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e14); - } + if (peg$silentFails === 0) { peg$fail(peg$e14); } } peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e12); - } + if (peg$silentFails === 0) { peg$fail(peg$e12); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -1782,9 +1584,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e15); - } + if (peg$silentFails === 0) { peg$fail(peg$e15); } } if (s0 === peg$FAILED) { if (input.substr(peg$currPos, 2) === peg$c14) { @@ -1792,17 +1592,13 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e16); - } + if (peg$silentFails === 0) { peg$fail(peg$e16); } } } peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e12); - } + if (peg$silentFails === 0) { peg$fail(peg$e12); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -1872,9 +1668,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e17); - } + if (peg$silentFails === 0) { peg$fail(peg$e17); } } if (s0 === peg$FAILED) { if (input.charCodeAt(peg$currPos) === 60) { @@ -1882,9 +1676,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e18); - } + if (peg$silentFails === 0) { peg$fail(peg$e18); } } if (s0 === peg$FAILED) { if (input.substr(peg$currPos, 2) === peg$c17) { @@ -1892,9 +1684,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e19); - } + if (peg$silentFails === 0) { peg$fail(peg$e19); } } if (s0 === peg$FAILED) { if (input.charCodeAt(peg$currPos) === 62) { @@ -1902,9 +1692,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e20); - } + if (peg$silentFails === 0) { peg$fail(peg$e20); } } } } @@ -1912,9 +1700,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e12); - } + if (peg$silentFails === 0) { peg$fail(peg$e12); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -2005,9 +1791,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e21); - } + if (peg$silentFails === 0) { peg$fail(peg$e21); } } if (s0 === peg$FAILED) { if (input.charCodeAt(peg$currPos) === 45) { @@ -2015,9 +1799,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e22); - } + if (peg$silentFails === 0) { peg$fail(peg$e22); } } if (s0 === peg$FAILED) { if (input.substr(peg$currPos, 2) === peg$c21) { @@ -2025,9 +1807,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e23); - } + if (peg$silentFails === 0) { peg$fail(peg$e23); } } if (s0 === peg$FAILED) { if (input.substr(peg$currPos, 2) === peg$c22) { @@ -2035,9 +1815,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e24); - } + if (peg$silentFails === 0) { peg$fail(peg$e24); } } } } @@ -2045,9 +1823,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e12); - } + if (peg$silentFails === 0) { peg$fail(peg$e12); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -2138,9 +1914,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e25); - } + if (peg$silentFails === 0) { peg$fail(peg$e25); } } if (s0 === peg$FAILED) { if (input.charCodeAt(peg$currPos) === 47) { @@ -2148,9 +1922,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e26); - } + if (peg$silentFails === 0) { peg$fail(peg$e26); } } if (s0 === peg$FAILED) { if (input.substr(peg$currPos, 2) === peg$c25) { @@ -2158,9 +1930,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e27); - } + if (peg$silentFails === 0) { peg$fail(peg$e27); } } if (s0 === peg$FAILED) { if (input.substr(peg$currPos, 2) === peg$c26) { @@ -2168,9 +1938,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e28); - } + if (peg$silentFails === 0) { peg$fail(peg$e28); } } } } @@ -2178,9 +1946,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e12); - } + if (peg$silentFails === 0) { peg$fail(peg$e12); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -2271,9 +2037,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e29); - } + if (peg$silentFails === 0) { peg$fail(peg$e29); } } if (s0 === peg$FAILED) { if (input.substr(peg$currPos, 2) === peg$c28) { @@ -2281,17 +2045,13 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e30); - } + if (peg$silentFails === 0) { peg$fail(peg$e30); } } } peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e12); - } + if (peg$silentFails === 0) { peg$fail(peg$e12); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -2402,16 +2162,12 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e31); - } + if (peg$silentFails === 0) { peg$fail(peg$e31); } } peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e12); - } + if (peg$silentFails === 0) { peg$fail(peg$e12); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -2442,9 +2198,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e32); - } + if (peg$silentFails === 0) { peg$fail(peg$e32); } } if (s5 === peg$FAILED) { if (input.substr(peg$currPos, 2) === peg$c31) { @@ -2452,9 +2206,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e33); - } + if (peg$silentFails === 0) { peg$fail(peg$e33); } } } if (s5 !== peg$FAILED) { @@ -2480,9 +2232,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e32); - } + if (peg$silentFails === 0) { peg$fail(peg$e32); } } if (s5 === peg$FAILED) { if (input.substr(peg$currPos, 2) === peg$c31) { @@ -2490,9 +2240,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e33); - } + if (peg$silentFails === 0) { peg$fail(peg$e33); } } } if (s5 !== peg$FAILED) { @@ -2542,9 +2290,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e2); - } + if (peg$silentFails === 0) { peg$fail(peg$e2); } } if (s2 !== peg$FAILED) { s3 = peg$parse_nl(); @@ -2556,9 +2302,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e3); - } + if (peg$silentFails === 0) { peg$fail(peg$e3); } } if (s6 !== peg$FAILED) { peg$savedPos = s0; @@ -2588,9 +2332,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e2); - } + if (peg$silentFails === 0) { peg$fail(peg$e2); } } if (s2 !== peg$FAILED) { s3 = peg$parse_nl(); @@ -2599,9 +2341,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e3); - } + if (peg$silentFails === 0) { peg$fail(peg$e3); } } if (s4 !== peg$FAILED) { peg$savedPos = s0; @@ -2692,9 +2432,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e22); - } + if (peg$silentFails === 0) { peg$fail(peg$e22); } } if (s0 === peg$FAILED) { if (input.substr(peg$currPos, 2) === peg$c22) { @@ -2702,9 +2440,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e24); - } + if (peg$silentFails === 0) { peg$fail(peg$e24); } } if (s0 === peg$FAILED) { if (input.charCodeAt(peg$currPos) === 33) { @@ -2712,18 +2448,14 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e35); - } + if (peg$silentFails === 0) { peg$fail(peg$e35); } } } } peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e34); - } + if (peg$silentFails === 0) { peg$fail(peg$e34); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -2778,9 +2510,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e36); - } + if (peg$silentFails === 0) { peg$fail(peg$e36); } } if (s3 === peg$FAILED) { if (input.charCodeAt(peg$currPos) === 40) { @@ -2788,9 +2518,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e2); - } + if (peg$silentFails === 0) { peg$fail(peg$e2); } } if (s3 === peg$FAILED) { if (input.charCodeAt(peg$currPos) === 46) { @@ -2798,9 +2526,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e37); - } + if (peg$silentFails === 0) { peg$fail(peg$e37); } } } } @@ -2820,9 +2546,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e36); - } + if (peg$silentFails === 0) { peg$fail(peg$e36); } } if (s6 !== peg$FAILED) { s7 = peg$parse_nl(); @@ -2834,9 +2558,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s10 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e38); - } + if (peg$silentFails === 0) { peg$fail(peg$e38); } } if (s10 !== peg$FAILED) { peg$savedPos = s4; @@ -2861,9 +2583,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e2); - } + if (peg$silentFails === 0) { peg$fail(peg$e2); } } if (s6 !== peg$FAILED) { s7 = peg$parse_nl(); @@ -2875,9 +2595,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s10 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e3); - } + if (peg$silentFails === 0) { peg$fail(peg$e3); } } if (s10 !== peg$FAILED) { peg$savedPos = s4; @@ -2901,9 +2619,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e37); - } + if (peg$silentFails === 0) { peg$fail(peg$e37); } } if (s5 !== peg$FAILED) { s6 = peg$currPos; @@ -2935,9 +2651,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e36); - } + if (peg$silentFails === 0) { peg$fail(peg$e36); } } if (s6 !== peg$FAILED) { s7 = peg$parse_nl(); @@ -2949,9 +2663,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s10 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e38); - } + if (peg$silentFails === 0) { peg$fail(peg$e38); } } if (s10 !== peg$FAILED) { peg$savedPos = s4; @@ -2976,9 +2688,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e2); - } + if (peg$silentFails === 0) { peg$fail(peg$e2); } } if (s6 !== peg$FAILED) { s7 = peg$parse_nl(); @@ -2990,9 +2700,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s10 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e3); - } + if (peg$silentFails === 0) { peg$fail(peg$e3); } } if (s10 !== peg$FAILED) { peg$savedPos = s4; @@ -3016,9 +2724,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e37); - } + if (peg$silentFails === 0) { peg$fail(peg$e37); } } if (s5 !== peg$FAILED) { s6 = peg$currPos; @@ -3081,9 +2787,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e6); - } + if (peg$silentFails === 0) { peg$fail(peg$e6); } } if (s5 !== peg$FAILED) { s6 = peg$parse_nl(); @@ -3107,9 +2811,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e6); - } + if (peg$silentFails === 0) { peg$fail(peg$e6); } } if (s5 !== peg$FAILED) { s6 = peg$parse_nl(); @@ -3159,9 +2861,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e37); - } + if (peg$silentFails === 0) { peg$fail(peg$e37); } } peg$silentFails--; if (s3 !== peg$FAILED) { @@ -3179,9 +2879,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e37); - } + if (peg$silentFails === 0) { peg$fail(peg$e37); } } if (s6 !== peg$FAILED) { s7 = peg$parse_nl(); @@ -3212,9 +2910,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e37); - } + if (peg$silentFails === 0) { peg$fail(peg$e37); } } if (s6 !== peg$FAILED) { s7 = peg$parse_nl(); @@ -3271,9 +2967,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e2); - } + if (peg$silentFails === 0) { peg$fail(peg$e2); } } if (s1 !== peg$FAILED) { s2 = peg$parse_nl(); @@ -3285,9 +2979,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e3); - } + if (peg$silentFails === 0) { peg$fail(peg$e3); } } if (s5 !== peg$FAILED) { peg$savedPos = s0; @@ -3384,9 +3076,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e40); - } + if (peg$silentFails === 0) { peg$fail(peg$e40); } } if (s3 !== peg$FAILED) { while (s3 !== peg$FAILED) { @@ -3396,9 +3086,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e40); - } + if (peg$silentFails === 0) { peg$fail(peg$e40); } } } } else { @@ -3411,9 +3099,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e41); - } + if (peg$silentFails === 0) { peg$fail(peg$e41); } } while (s4 !== peg$FAILED) { s3.push(s4); @@ -3422,9 +3108,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e41); - } + if (peg$silentFails === 0) { peg$fail(peg$e41); } } } s2 = [s2, s3]; @@ -3441,9 +3125,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e39); - } + if (peg$silentFails === 0) { peg$fail(peg$e39); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -3472,9 +3154,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e43); - } + if (peg$silentFails === 0) { peg$fail(peg$e43); } } if (s3 !== peg$FAILED) { while (s3 !== peg$FAILED) { @@ -3484,9 +3164,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e43); - } + if (peg$silentFails === 0) { peg$fail(peg$e43); } } } } else { @@ -3499,9 +3177,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e44); - } + if (peg$silentFails === 0) { peg$fail(peg$e44); } } while (s4 !== peg$FAILED) { s3.push(s4); @@ -3510,9 +3186,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e44); - } + if (peg$silentFails === 0) { peg$fail(peg$e44); } } } s2 = [s2, s3]; @@ -3529,9 +3203,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e42); - } + if (peg$silentFails === 0) { peg$fail(peg$e42); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -3559,9 +3231,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e46); - } + if (peg$silentFails === 0) { peg$fail(peg$e46); } } if (s2 !== peg$FAILED) { s3 = []; @@ -3570,9 +3240,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e47); - } + if (peg$silentFails === 0) { peg$fail(peg$e47); } } while (s4 !== peg$FAILED) { s3.push(s4); @@ -3581,9 +3249,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e47); - } + if (peg$silentFails === 0) { peg$fail(peg$e47); } } } if (input.charCodeAt(peg$currPos) === 39) { @@ -3591,9 +3257,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e46); - } + if (peg$silentFails === 0) { peg$fail(peg$e46); } } if (s4 !== peg$FAILED) { s1 = s3; @@ -3618,9 +3282,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e48); - } + if (peg$silentFails === 0) { peg$fail(peg$e48); } } if (s2 !== peg$FAILED) { s3 = []; @@ -3629,9 +3291,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e49); - } + if (peg$silentFails === 0) { peg$fail(peg$e49); } } while (s4 !== peg$FAILED) { s3.push(s4); @@ -3640,9 +3300,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e49); - } + if (peg$silentFails === 0) { peg$fail(peg$e49); } } } if (input.charCodeAt(peg$currPos) === 34) { @@ -3650,9 +3308,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e48); - } + if (peg$silentFails === 0) { peg$fail(peg$e48); } } if (s4 !== peg$FAILED) { s1 = s3; @@ -3673,9 +3329,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e45); - } + if (peg$silentFails === 0) { peg$fail(peg$e45); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -3749,9 +3403,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e37); - } + if (peg$silentFails === 0) { peg$fail(peg$e37); } } peg$silentFails--; if (s3 === peg$FAILED) { @@ -3768,9 +3420,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e51); - } + if (peg$silentFails === 0) { peg$fail(peg$e51); } } peg$silentFails--; if (s4 === peg$FAILED) { @@ -3797,9 +3447,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e50); - } + if (peg$silentFails === 0) { peg$fail(peg$e50); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -3840,9 +3488,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e37); - } + if (peg$silentFails === 0) { peg$fail(peg$e37); } } if (s5 !== peg$FAILED) { s6 = []; @@ -3868,9 +3514,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e37); - } + if (peg$silentFails === 0) { peg$fail(peg$e37); } } if (s4 !== peg$FAILED) { s5 = []; @@ -3945,9 +3589,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e52); - } + if (peg$silentFails === 0) { peg$fail(peg$e52); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -3973,9 +3615,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e51); - } + if (peg$silentFails === 0) { peg$fail(peg$e51); } } if (s1 !== peg$FAILED) { if (input.charCodeAt(peg$currPos) === 45) { @@ -3983,9 +3623,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e22); - } + if (peg$silentFails === 0) { peg$fail(peg$e22); } } if (s2 === peg$FAILED) { s2 = null; @@ -4034,9 +3672,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e53); - } + if (peg$silentFails === 0) { peg$fail(peg$e53); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -4063,9 +3699,7 @@ function peg$parse(input, options) { peg$currPos += 4; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e55); - } + if (peg$silentFails === 0) { peg$fail(peg$e55); } } if (s1 === peg$FAILED) { if (input.substr(peg$currPos, 5) === peg$c39) { @@ -4073,9 +3707,7 @@ function peg$parse(input, options) { peg$currPos += 5; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e56); - } + if (peg$silentFails === 0) { peg$fail(peg$e56); } } } if (s1 !== peg$FAILED) { @@ -4086,9 +3718,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e54); - } + if (peg$silentFails === 0) { peg$fail(peg$e54); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -4142,9 +3772,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e0); - } + if (peg$silentFails === 0) { peg$fail(peg$e0); } } if (s1 !== peg$FAILED) { s2 = peg$parse_nl(); @@ -4153,9 +3781,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e57); - } + if (peg$silentFails === 0) { peg$fail(peg$e57); } } if (s3 !== peg$FAILED) { s4 = peg$parse_nl(); @@ -4167,9 +3793,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s7 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e57); - } + if (peg$silentFails === 0) { peg$fail(peg$e57); } } if (s7 !== peg$FAILED) { s8 = peg$parse_nl(); @@ -4196,9 +3820,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s12 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e1); - } + if (peg$silentFails === 0) { peg$fail(peg$e1); } } if (s12 !== peg$FAILED) { peg$savedPos = s0; @@ -4238,9 +3860,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e0); - } + if (peg$silentFails === 0) { peg$fail(peg$e0); } } if (s1 !== peg$FAILED) { s2 = peg$parse_nl(); @@ -4249,9 +3869,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e57); - } + if (peg$silentFails === 0) { peg$fail(peg$e57); } } if (s3 !== peg$FAILED) { s4 = peg$parse_nl(); @@ -4263,9 +3881,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s7 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e57); - } + if (peg$silentFails === 0) { peg$fail(peg$e57); } } if (s7 !== peg$FAILED) { s8 = peg$parse_nl(); @@ -4277,9 +3893,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s11 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e1); - } + if (peg$silentFails === 0) { peg$fail(peg$e1); } } if (s11 !== peg$FAILED) { peg$savedPos = s0; @@ -4334,9 +3948,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e36); - } + if (peg$silentFails === 0) { peg$fail(peg$e36); } } if (s1 !== peg$FAILED) { s2 = peg$parse_nl(); @@ -4345,9 +3957,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e38); - } + if (peg$silentFails === 0) { peg$fail(peg$e38); } } if (s3 !== peg$FAILED) { peg$savedPos = s0; @@ -4367,9 +3977,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e36); - } + if (peg$silentFails === 0) { peg$fail(peg$e36); } } if (s1 !== peg$FAILED) { s2 = peg$parse_nl(); @@ -4381,9 +3989,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e38); - } + if (peg$silentFails === 0) { peg$fail(peg$e38); } } if (s5 !== peg$FAILED) { peg$savedPos = s0; @@ -4404,9 +4010,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e58); - } + if (peg$silentFails === 0) { peg$fail(peg$e58); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -4437,9 +4041,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e6); - } + if (peg$silentFails === 0) { peg$fail(peg$e6); } } if (s5 !== peg$FAILED) { s6 = peg$parse_nl(); @@ -4463,9 +4065,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e6); - } + if (peg$silentFails === 0) { peg$fail(peg$e6); } } if (s5 !== peg$FAILED) { s6 = peg$parse_nl(); @@ -4512,9 +4112,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e0); - } + if (peg$silentFails === 0) { peg$fail(peg$e0); } } if (s1 !== peg$FAILED) { s2 = peg$parse_nl(); @@ -4526,9 +4124,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e1); - } + if (peg$silentFails === 0) { peg$fail(peg$e1); } } if (s5 !== peg$FAILED) { peg$savedPos = s0; @@ -4548,9 +4144,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e59); - } + if (peg$silentFails === 0) { peg$fail(peg$e59); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -4581,9 +4175,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e6); - } + if (peg$silentFails === 0) { peg$fail(peg$e6); } } if (s5 !== peg$FAILED) { s6 = peg$parse_nl(); @@ -4607,9 +4199,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e6); - } + if (peg$silentFails === 0) { peg$fail(peg$e6); } } if (s5 !== peg$FAILED) { s6 = peg$parse_nl(); @@ -4658,9 +4248,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e11); - } + if (peg$silentFails === 0) { peg$fail(peg$e11); } } if (s3 !== peg$FAILED) { s4 = peg$parse_nl(); @@ -4707,9 +4295,7 @@ function peg$parse(input, options) { } peg$silentFails--; s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e60); - } + if (peg$silentFails === 0) { peg$fail(peg$e60); } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -4743,9 +4329,7 @@ function peg$parse(input, options) { } peg$silentFails--; s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e61); - } + if (peg$silentFails === 0) { peg$fail(peg$e61); } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -4778,9 +4362,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e60); - } + if (peg$silentFails === 0) { peg$fail(peg$e60); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -4820,9 +4402,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e62); - } + if (peg$silentFails === 0) { peg$fail(peg$e62); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -4851,9 +4431,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e64); - } + if (peg$silentFails === 0) { peg$fail(peg$e64); } } if (s3 === peg$FAILED) { s3 = peg$parsecommentOrNewLine(); @@ -4866,9 +4444,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e64); - } + if (peg$silentFails === 0) { peg$fail(peg$e64); } } if (s3 === peg$FAILED) { s3 = peg$parsecommentOrNewLine(); @@ -4888,9 +4464,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e63); - } + if (peg$silentFails === 0) { peg$fail(peg$e63); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -4949,9 +4523,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e66); - } + if (peg$silentFails === 0) { peg$fail(peg$e66); } } if (s2 === peg$FAILED) { if (input.charCodeAt(peg$currPos) === 35) { @@ -4959,9 +4531,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e67); - } + if (peg$silentFails === 0) { peg$fail(peg$e67); } } } if (s2 !== peg$FAILED) { @@ -4971,9 +4541,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e68); - } + if (peg$silentFails === 0) { peg$fail(peg$e68); } } while (s4 !== peg$FAILED) { s3.push(s4); @@ -4982,9 +4550,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e68); - } + if (peg$silentFails === 0) { peg$fail(peg$e68); } } } s0 = s3; @@ -4995,9 +4561,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e65); - } + if (peg$silentFails === 0) { peg$fail(peg$e65); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -5046,9 +4610,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e70); - } + if (peg$silentFails === 0) { peg$fail(peg$e70); } } if (s1 !== peg$FAILED) { s2 = []; @@ -5057,9 +4619,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e71); - } + if (peg$silentFails === 0) { peg$fail(peg$e71); } } while (s3 !== peg$FAILED) { s2.push(s3); @@ -5068,9 +4628,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e71); - } + if (peg$silentFails === 0) { peg$fail(peg$e71); } } } if (input.substr(peg$currPos, 2) === peg$c45) { @@ -5078,9 +4636,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e72); - } + if (peg$silentFails === 0) { peg$fail(peg$e72); } } if (s3 !== peg$FAILED) { s0 = s2; @@ -5095,9 +4651,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e69); - } + if (peg$silentFails === 0) { peg$fail(peg$e69); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -5122,9 +4676,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e73); - } + if (peg$silentFails === 0) { peg$fail(peg$e73); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -5150,16 +4702,12 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e75); - } + if (peg$silentFails === 0) { peg$fail(peg$e75); } } peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e74); - } + if (peg$silentFails === 0) { peg$fail(peg$e74); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -5188,5 +4736,5 @@ function peg$parse(input, options) { module.exports = { SyntaxError: peg$SyntaxError, - parse: peg$parse, + parse: peg$parse }; diff --git a/packages/squiggle-lang/src/rescript/Reducer/Reducer_Peggy/Reducer_Peggy_GeneratedParser.peggy b/packages/squiggle-lang/src/rescript/Reducer/Reducer_Peggy/Reducer_Peggy_GeneratedParser.peggy index 3b02d85a..15cc05a0 100644 --- a/packages/squiggle-lang/src/rescript/Reducer/Reducer_Peggy/Reducer_Peggy_GeneratedParser.peggy +++ b/packages/squiggle-lang/src/rescript/Reducer/Reducer_Peggy/Reducer_Peggy_GeneratedParser.peggy @@ -267,8 +267,7 @@ number = number:(float / integer) unit:identifier? if (unit === null) { return number } else - { return makeFunctionCall('multiply', - [number, makeFunctionCall('$valueOfUnit', [nodeString(unit.value)])]) + { return makeFunctionCall('fromUnit_'+unit.value, [number]) } } diff --git a/yarn.lock b/yarn.lock index 3ba8e213..c59717f6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1301,17 +1301,12 @@ resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.5.0.tgz#bb504579c1cae923e6576a4f5da43d25f97bdbd9" integrity sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ== -"@cspotcode/source-map-consumer@0.8.0": - version "0.8.0" - resolved "https://registry.yarnpkg.com/@cspotcode/source-map-consumer/-/source-map-consumer-0.8.0.tgz#33bf4b7b39c178821606f669bbc447a6a629786b" - integrity sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg== - -"@cspotcode/source-map-support@0.7.0": - version "0.7.0" - resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.7.0.tgz#4789840aa859e46d2f3173727ab707c66bf344f5" - integrity sha512-X4xqRHqN8ACt2aHVe51OxeA2HjbcL4MqFqXkrmQszJ1NOUuUu5u6Vqx/0lZSVNku7velL5FC/s5uEAj1lsBMhA== +"@cspotcode/source-map-support@^0.8.0": + version "0.8.1" + resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1" + integrity sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw== dependencies: - "@cspotcode/source-map-consumer" "0.8.0" + "@jridgewell/trace-mapping" "0.3.9" "@csstools/normalize.css@*": version "12.0.0" @@ -2146,6 +2141,14 @@ resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.13.tgz#b6461fb0c2964356c469e115f504c95ad97ab88c" integrity sha512-GryiOJmNcWbovBxTfZSF71V/mXbgcV3MewDe3kIMCLyIh5e7SKAeUZs+rMnJ8jkMolZ/4/VsdBmMrw3l+VdZ3w== +"@jridgewell/trace-mapping@0.3.9": + version "0.3.9" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz#6534fd5933a53ba7cbf3a17615e273a0d1273ff9" + integrity sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ== + dependencies: + "@jridgewell/resolve-uri" "^3.0.3" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@jridgewell/trace-mapping@^0.3.7", "@jridgewell/trace-mapping@^0.3.9": version "0.3.11" resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.11.tgz#eb2e124521f27673493030d02dffedf60e56553f" @@ -2725,18 +2728,18 @@ "@stdlib/types" "^0.0.x" debug "^2.6.9" -"@storybook/addon-actions@6.5.3", "@storybook/addon-actions@^6.5.3": - version "6.5.3" - resolved "https://registry.yarnpkg.com/@storybook/addon-actions/-/addon-actions-6.5.3.tgz#1e47bcfc5b215f483aef9d7f22e3619cd354af8c" - integrity sha512-OYfG6dDFoNIPmtQ5vXum7m7U5MDg6rlwkaUpV3MkMVCnSAco0/GGRdsYBVO+fpfFFVxRUi3QFEv7xI0xyX2oiQ== +"@storybook/addon-actions@6.5.4", "@storybook/addon-actions@^6.5.3": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/addon-actions/-/addon-actions-6.5.4.tgz#8ec4863982c805a3a39a19848aea3d65d80d491f" + integrity sha512-O70+brZOW78LBjbKsppXy37NQj4r3b2LQh3zUkIE1n37nb0bYhewr39UlT1/VhfDD4QA6PsBOqp0Mum8/V0GgQ== dependencies: - "@storybook/addons" "6.5.3" - "@storybook/api" "6.5.3" - "@storybook/client-logger" "6.5.3" - "@storybook/components" "6.5.3" - "@storybook/core-events" "6.5.3" + "@storybook/addons" "6.5.4" + "@storybook/api" "6.5.4" + "@storybook/client-logger" "6.5.4" + "@storybook/components" "6.5.4" + "@storybook/core-events" "6.5.4" "@storybook/csf" "0.0.2--canary.4566f4d.1" - "@storybook/theming" "6.5.3" + "@storybook/theming" "6.5.4" core-js "^3.8.2" fast-deep-equal "^3.1.3" global "^4.4.0" @@ -2750,18 +2753,18 @@ util-deprecate "^1.0.2" uuid-browser "^3.1.0" -"@storybook/addon-backgrounds@6.5.3": - version "6.5.3" - resolved "https://registry.yarnpkg.com/@storybook/addon-backgrounds/-/addon-backgrounds-6.5.3.tgz#dbe357d88c2844aef5c3c85e055c1c954721a109" - integrity sha512-U8ic8fR7kACRvvSaElFaCOgb8ugU2NCtpv2CC3VzxCVWDCdaYivgpXQrvHe0GLYhIrySqgm1wP7q73oILl+Qcg== +"@storybook/addon-backgrounds@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/addon-backgrounds/-/addon-backgrounds-6.5.4.tgz#97df5c73f350965bd5f2521e0882581df9f86315" + integrity sha512-lajT9N7VpBQRPHJF1iAGUIxJNuMwqZcMjijVAMoWX4gOdnGvjK7MpwoYbD2xAPXYrugJUGiYRG608d4PgPZT4w== dependencies: - "@storybook/addons" "6.5.3" - "@storybook/api" "6.5.3" - "@storybook/client-logger" "6.5.3" - "@storybook/components" "6.5.3" - "@storybook/core-events" "6.5.3" + "@storybook/addons" "6.5.4" + "@storybook/api" "6.5.4" + "@storybook/client-logger" "6.5.4" + "@storybook/components" "6.5.4" + "@storybook/core-events" "6.5.4" "@storybook/csf" "0.0.2--canary.4566f4d.1" - "@storybook/theming" "6.5.3" + "@storybook/theming" "6.5.4" core-js "^3.8.2" global "^4.4.0" memoizerific "^1.11.3" @@ -2769,47 +2772,47 @@ ts-dedent "^2.0.0" util-deprecate "^1.0.2" -"@storybook/addon-controls@6.5.3": - version "6.5.3" - resolved "https://registry.yarnpkg.com/@storybook/addon-controls/-/addon-controls-6.5.3.tgz#0f398b1c1898bf735bbd228f04a0ddfe1c281807" - integrity sha512-90dTS2ySo/u8t/UTY1snsfAJCszvJKW8FNbzxF1c+JwvErb6hrHq0JOSmFLOeRqPuvkKKB8q83vp6A6fXOU+gQ== +"@storybook/addon-controls@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/addon-controls/-/addon-controls-6.5.4.tgz#d0cc2781bc0122eb16e59940b32c645775d0c8da" + integrity sha512-+2s++u1yXGs94BoxMVOOa4Ld0u6ylV5KdS9cWigyQz/OP3ZeoXDx6kCaJfYhEe/7Ccn59g11XjG4W8pjHMdb4A== dependencies: - "@storybook/addons" "6.5.3" - "@storybook/api" "6.5.3" - "@storybook/client-logger" "6.5.3" - "@storybook/components" "6.5.3" - "@storybook/core-common" "6.5.3" + "@storybook/addons" "6.5.4" + "@storybook/api" "6.5.4" + "@storybook/client-logger" "6.5.4" + "@storybook/components" "6.5.4" + "@storybook/core-common" "6.5.4" "@storybook/csf" "0.0.2--canary.4566f4d.1" - "@storybook/node-logger" "6.5.3" - "@storybook/store" "6.5.3" - "@storybook/theming" "6.5.3" + "@storybook/node-logger" "6.5.4" + "@storybook/store" "6.5.4" + "@storybook/theming" "6.5.4" core-js "^3.8.2" lodash "^4.17.21" ts-dedent "^2.0.0" -"@storybook/addon-docs@6.5.3": - version "6.5.3" - resolved "https://registry.yarnpkg.com/@storybook/addon-docs/-/addon-docs-6.5.3.tgz#6db38b7721245193d2ceaf788844f5a110d1e8bc" - integrity sha512-MC1Bwamw8lQvRMmGKsf4UcyNdQCYgpAB2o9m4R0EPA5byTkcEfAXkAwSP8atlP0/wQTjrwvyVgQuhchHmxnR0Q== +"@storybook/addon-docs@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/addon-docs/-/addon-docs-6.5.4.tgz#6b22711b50dec7ab370923b6d37aae12476d0b2a" + integrity sha512-Sqx8XJN760rbFGlNXywKG1QtG24X6gHgWXMEdfA1yy6FbH8vXu8p9VVm6KV3tHcb7o+ihSK7pObKtSXNdumD/A== dependencies: "@babel/plugin-transform-react-jsx" "^7.12.12" "@babel/preset-env" "^7.12.11" "@jest/transform" "^26.6.2" "@mdx-js/react" "^1.6.22" - "@storybook/addons" "6.5.3" - "@storybook/api" "6.5.3" - "@storybook/components" "6.5.3" - "@storybook/core-common" "6.5.3" - "@storybook/core-events" "6.5.3" + "@storybook/addons" "6.5.4" + "@storybook/api" "6.5.4" + "@storybook/components" "6.5.4" + "@storybook/core-common" "6.5.4" + "@storybook/core-events" "6.5.4" "@storybook/csf" "0.0.2--canary.4566f4d.1" - "@storybook/docs-tools" "6.5.3" + "@storybook/docs-tools" "6.5.4" "@storybook/mdx1-csf" canary - "@storybook/node-logger" "6.5.3" - "@storybook/postinstall" "6.5.3" - "@storybook/preview-web" "6.5.3" - "@storybook/source-loader" "6.5.3" - "@storybook/store" "6.5.3" - "@storybook/theming" "6.5.3" + "@storybook/node-logger" "6.5.4" + "@storybook/postinstall" "6.5.4" + "@storybook/preview-web" "6.5.4" + "@storybook/source-loader" "6.5.4" + "@storybook/store" "6.5.4" + "@storybook/theming" "6.5.4" babel-loader "^8.0.0" core-js "^3.8.2" fast-deep-equal "^3.1.3" @@ -2821,37 +2824,37 @@ ts-dedent "^2.0.0" util-deprecate "^1.0.2" -"@storybook/addon-essentials@^6.5.3": - version "6.5.3" - resolved "https://registry.yarnpkg.com/@storybook/addon-essentials/-/addon-essentials-6.5.3.tgz#1bd33d5265288d24049e5fd63e78a99d67fdbe50" - integrity sha512-ZVps1kFMB4OuKRS9vIo8u07u04zvU84jP4B7c5TcH/WxFbwPW9I9ePBcCv+QmkdhDTb3TGWRWQqv5zs4cnQ1YA== +"@storybook/addon-essentials@^6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/addon-essentials/-/addon-essentials-6.5.4.tgz#578f1f222027a556d7e23b799956750163fd83be" + integrity sha512-/ayPl274Tdrfz0YG0oSovkrXJNbstFm/Zoz7KO4wNMFgxTYes3kk+ruwkFIZegunBB8yR77cSzWHKqS9pFD8tA== dependencies: - "@storybook/addon-actions" "6.5.3" - "@storybook/addon-backgrounds" "6.5.3" - "@storybook/addon-controls" "6.5.3" - "@storybook/addon-docs" "6.5.3" - "@storybook/addon-measure" "6.5.3" - "@storybook/addon-outline" "6.5.3" - "@storybook/addon-toolbars" "6.5.3" - "@storybook/addon-viewport" "6.5.3" - "@storybook/addons" "6.5.3" - "@storybook/api" "6.5.3" - "@storybook/core-common" "6.5.3" - "@storybook/node-logger" "6.5.3" + "@storybook/addon-actions" "6.5.4" + "@storybook/addon-backgrounds" "6.5.4" + "@storybook/addon-controls" "6.5.4" + "@storybook/addon-docs" "6.5.4" + "@storybook/addon-measure" "6.5.4" + "@storybook/addon-outline" "6.5.4" + "@storybook/addon-toolbars" "6.5.4" + "@storybook/addon-viewport" "6.5.4" + "@storybook/addons" "6.5.4" + "@storybook/api" "6.5.4" + "@storybook/core-common" "6.5.4" + "@storybook/node-logger" "6.5.4" core-js "^3.8.2" regenerator-runtime "^0.13.7" ts-dedent "^2.0.0" -"@storybook/addon-links@^6.5.3": - version "6.5.3" - resolved "https://registry.yarnpkg.com/@storybook/addon-links/-/addon-links-6.5.3.tgz#5eae9855e19cc03548aa6655756886c26557a175" - integrity sha512-FOcrHbEi8Bw6QE3hzO0vtnJVFj2iIiQk0thEdkhq+Pnn5iZ6VmDoctHPwc2wuyM7BIKDlROaK0VRXYLCx6uiBg== +"@storybook/addon-links@^6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/addon-links/-/addon-links-6.5.4.tgz#51e2944ba2ba45d70b6debacbc0f5d8ad664f62b" + integrity sha512-mJcg4Gpo7P6TFdyWpE2DQcMwSjfotPST3y713Ircgc+sYOouIPRdrxGpdvhLWWncsC5wK/z2xZyYtBWPNiKN/g== dependencies: - "@storybook/addons" "6.5.3" - "@storybook/client-logger" "6.5.3" - "@storybook/core-events" "6.5.3" + "@storybook/addons" "6.5.4" + "@storybook/client-logger" "6.5.4" + "@storybook/core-events" "6.5.4" "@storybook/csf" "0.0.2--canary.4566f4d.1" - "@storybook/router" "6.5.3" + "@storybook/router" "6.5.4" "@types/qs" "^6.9.5" core-js "^3.8.2" global "^4.4.0" @@ -2860,60 +2863,60 @@ regenerator-runtime "^0.13.7" ts-dedent "^2.0.0" -"@storybook/addon-measure@6.5.3": - version "6.5.3" - resolved "https://registry.yarnpkg.com/@storybook/addon-measure/-/addon-measure-6.5.3.tgz#7a27082d7863981924362fd15022521b0722048f" - integrity sha512-8auVdpM66+qaam3KGmfZZgSQ/jJIm6aMeEzi+HX48b2xVa4vv9W9/ZpJp9fc3K2349+BR5K3nzLMObdFr1Yjew== +"@storybook/addon-measure@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/addon-measure/-/addon-measure-6.5.4.tgz#af3dc98804e39411dd545eb2bff7b722b7ab6dbc" + integrity sha512-yucb2WnQMUyPo0cnbKKeIMp4pb18bU2zE8AFLm1GcQYJ56IfYD5EJbfpP7o3KpcMRRrZFjITggqhdU8DtncZkQ== dependencies: - "@storybook/addons" "6.5.3" - "@storybook/api" "6.5.3" - "@storybook/client-logger" "6.5.3" - "@storybook/components" "6.5.3" - "@storybook/core-events" "6.5.3" + "@storybook/addons" "6.5.4" + "@storybook/api" "6.5.4" + "@storybook/client-logger" "6.5.4" + "@storybook/components" "6.5.4" + "@storybook/core-events" "6.5.4" "@storybook/csf" "0.0.2--canary.4566f4d.1" core-js "^3.8.2" global "^4.4.0" -"@storybook/addon-outline@6.5.3": - version "6.5.3" - resolved "https://registry.yarnpkg.com/@storybook/addon-outline/-/addon-outline-6.5.3.tgz#2560912eddda92dc827448268176e9b3ac1ef308" - integrity sha512-QVSsTOs813Tl404IcWTxdzM+gAIiq46LuH11Re1cMwKrnuOvfHtbLQ4x2n1aTy+mTuWxNymaHwX2Aqilr0fqJA== +"@storybook/addon-outline@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/addon-outline/-/addon-outline-6.5.4.tgz#a400a288b26ce793c4fd1b01dd54efde5b754b77" + integrity sha512-Qj9KfPTllcT0CxHqfIvKUbTxwu2ujIq/YfguFBecSQCTGwYTyTmLHzS1vwFHyEoVPgILLnQfsBLdLs57TaGl+A== dependencies: - "@storybook/addons" "6.5.3" - "@storybook/api" "6.5.3" - "@storybook/client-logger" "6.5.3" - "@storybook/components" "6.5.3" - "@storybook/core-events" "6.5.3" + "@storybook/addons" "6.5.4" + "@storybook/api" "6.5.4" + "@storybook/client-logger" "6.5.4" + "@storybook/components" "6.5.4" + "@storybook/core-events" "6.5.4" "@storybook/csf" "0.0.2--canary.4566f4d.1" core-js "^3.8.2" global "^4.4.0" regenerator-runtime "^0.13.7" ts-dedent "^2.0.0" -"@storybook/addon-toolbars@6.5.3": - version "6.5.3" - resolved "https://registry.yarnpkg.com/@storybook/addon-toolbars/-/addon-toolbars-6.5.3.tgz#1a379bae5217ddbcbf37948867211c755d264c70" - integrity sha512-wQxDUQASrpdGJouo6WsC840JwaAQkgV4nuCmuxyqbL6yJ7HNyS7mbBoJzfe8kXWOzSN2MM1lP4gOlZuGH4m05g== +"@storybook/addon-toolbars@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/addon-toolbars/-/addon-toolbars-6.5.4.tgz#f99348cbefe905251a1a76bf3fdac6b604666929" + integrity sha512-cK80/EjDJ+Hr7/lqsEqasyZGHx5+j9pVQRWWhTEDzURcAsxh4HFSw9VSOnDk+EAgHrlvjm+PX2xeaHfT9ezo6Q== dependencies: - "@storybook/addons" "6.5.3" - "@storybook/api" "6.5.3" - "@storybook/client-logger" "6.5.3" - "@storybook/components" "6.5.3" - "@storybook/theming" "6.5.3" + "@storybook/addons" "6.5.4" + "@storybook/api" "6.5.4" + "@storybook/client-logger" "6.5.4" + "@storybook/components" "6.5.4" + "@storybook/theming" "6.5.4" core-js "^3.8.2" regenerator-runtime "^0.13.7" -"@storybook/addon-viewport@6.5.3": - version "6.5.3" - resolved "https://registry.yarnpkg.com/@storybook/addon-viewport/-/addon-viewport-6.5.3.tgz#759d0f5e276a77e032bdcd111162d1944f875a81" - integrity sha512-jzHGACC40g/jWXmDIdMyQk5EepNoHhOLFWxUpt12kSgkx0s8PL6PHAOn7p0Yh8JOp0hwHxZJXnYch6yEEgpBTA== +"@storybook/addon-viewport@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/addon-viewport/-/addon-viewport-6.5.4.tgz#4bf17ccdbe59801404c8ff856cbfa1fe543026d9" + integrity sha512-K0DrUTwiGY9IeTVUgwgl0boEYzn7QbYz34N7C5CMEUFWIBNehc7FJu/Rc+d2ltNz1w3jtnQPAFpt0FQ8ZYvVGg== dependencies: - "@storybook/addons" "6.5.3" - "@storybook/api" "6.5.3" - "@storybook/client-logger" "6.5.3" - "@storybook/components" "6.5.3" - "@storybook/core-events" "6.5.3" - "@storybook/theming" "6.5.3" + "@storybook/addons" "6.5.4" + "@storybook/api" "6.5.4" + "@storybook/client-logger" "6.5.4" + "@storybook/components" "6.5.4" + "@storybook/core-events" "6.5.4" + "@storybook/theming" "6.5.4" core-js "^3.8.2" global "^4.4.0" memoizerific "^1.11.3" @@ -2937,6 +2940,23 @@ global "^4.4.0" regenerator-runtime "^0.13.7" +"@storybook/addons@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/addons/-/addons-6.5.4.tgz#10cf41ab8aa3c509963599092fe8f3cf9a15edb6" + integrity sha512-biPtPQ80HwVJeJl6ghF0yFMWZ9apuh+oxCWezeb9t0lr7EB8MLbZAGz8PbRerwDzV+mW4ZNV2RSvvnDD5MH/zg== + dependencies: + "@storybook/api" "6.5.4" + "@storybook/channels" "6.5.4" + "@storybook/client-logger" "6.5.4" + "@storybook/core-events" "6.5.4" + "@storybook/csf" "0.0.2--canary.4566f4d.1" + "@storybook/router" "6.5.4" + "@storybook/theming" "6.5.4" + "@types/webpack-env" "^1.16.0" + core-js "^3.8.2" + global "^4.4.0" + regenerator-runtime "^0.13.7" + "@storybook/api@6.5.3": version "6.5.3" resolved "https://registry.yarnpkg.com/@storybook/api/-/api-6.5.3.tgz#f4c468f348bf6ac65dc571f3e65d67302323312c" @@ -2960,28 +2980,51 @@ ts-dedent "^2.0.0" util-deprecate "^1.0.2" -"@storybook/builder-webpack4@6.5.3": - version "6.5.3" - resolved "https://registry.yarnpkg.com/@storybook/builder-webpack4/-/builder-webpack4-6.5.3.tgz#5e99a009c0132380620a1d177a69a5f352ef6d29" - integrity sha512-zhZ879FH8XDs8TRkXN29pGMR2rJrKQYdRn19XTsBt9MlRI8ALFClGixYBsUF/Fa74LAWF2roL5dSt7qDyBQULQ== +"@storybook/api@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/api/-/api-6.5.4.tgz#faa06cde4990fd3b2be551ff869fc44a80e66e53" + integrity sha512-nZAf7/6bcOMb6yDYsCr2rWZuKtGfHQhyVvlW7uD1uPVytQ0OHS/D215C2odTNvIRxTiG67dQ4zeXcZPHHar+qQ== + dependencies: + "@storybook/channels" "6.5.4" + "@storybook/client-logger" "6.5.4" + "@storybook/core-events" "6.5.4" + "@storybook/csf" "0.0.2--canary.4566f4d.1" + "@storybook/router" "6.5.4" + "@storybook/semver" "^7.3.2" + "@storybook/theming" "6.5.4" + core-js "^3.8.2" + fast-deep-equal "^3.1.3" + global "^4.4.0" + lodash "^4.17.21" + memoizerific "^1.11.3" + regenerator-runtime "^0.13.7" + store2 "^2.12.0" + telejson "^6.0.8" + ts-dedent "^2.0.0" + util-deprecate "^1.0.2" + +"@storybook/builder-webpack4@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/builder-webpack4/-/builder-webpack4-6.5.4.tgz#c58708c18a657ab326026469e5f06aef462c074e" + integrity sha512-9AaSix850yOG7deAG8PDrAVNiDcTBm422Fjo9+OkONVN8tYIObW72U9kjwSrVL2HRMwu6Ikx939z1FBgA80NSw== dependencies: "@babel/core" "^7.12.10" - "@storybook/addons" "6.5.3" - "@storybook/api" "6.5.3" - "@storybook/channel-postmessage" "6.5.3" - "@storybook/channels" "6.5.3" - "@storybook/client-api" "6.5.3" - "@storybook/client-logger" "6.5.3" - "@storybook/components" "6.5.3" - "@storybook/core-common" "6.5.3" - "@storybook/core-events" "6.5.3" - "@storybook/node-logger" "6.5.3" - "@storybook/preview-web" "6.5.3" - "@storybook/router" "6.5.3" + "@storybook/addons" "6.5.4" + "@storybook/api" "6.5.4" + "@storybook/channel-postmessage" "6.5.4" + "@storybook/channels" "6.5.4" + "@storybook/client-api" "6.5.4" + "@storybook/client-logger" "6.5.4" + "@storybook/components" "6.5.4" + "@storybook/core-common" "6.5.4" + "@storybook/core-events" "6.5.4" + "@storybook/node-logger" "6.5.4" + "@storybook/preview-web" "6.5.4" + "@storybook/router" "6.5.4" "@storybook/semver" "^7.3.2" - "@storybook/store" "6.5.3" - "@storybook/theming" "6.5.3" - "@storybook/ui" "6.5.3" + "@storybook/store" "6.5.4" + "@storybook/theming" "6.5.4" + "@storybook/ui" "6.5.4" "@types/node" "^14.0.10 || ^16.0.0" "@types/webpack" "^4.41.26" autoprefixer "^9.8.6" @@ -3070,13 +3113,26 @@ qs "^6.10.0" telejson "^6.0.8" -"@storybook/channel-websocket@6.5.3": - version "6.5.3" - resolved "https://registry.yarnpkg.com/@storybook/channel-websocket/-/channel-websocket-6.5.3.tgz#3403d30c107763db311b084a0f6586c755ca64f0" - integrity sha512-Q1XCqtVMZFP1WG+OtzJ5l0Ip8umzBOkVmH3SH+DDU+o+MCSSfXKbw7UnbDUaZHzOHuFq55WaXVEnzRkeydI9rQ== +"@storybook/channel-postmessage@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/channel-postmessage/-/channel-postmessage-6.5.4.tgz#246483250e0e538d7455630d560149b1e974c5d3" + integrity sha512-K9UG32KRXB4YKg9/WpyE6aoWBjOI2+XkFbjab9FEpI7zxJSEjKlOIqJk1uE9Xm+oWNvj80MvwD9ecGtJtw9BsA== dependencies: - "@storybook/channels" "6.5.3" - "@storybook/client-logger" "6.5.3" + "@storybook/channels" "6.5.4" + "@storybook/client-logger" "6.5.4" + "@storybook/core-events" "6.5.4" + core-js "^3.8.2" + global "^4.4.0" + qs "^6.10.0" + telejson "^6.0.8" + +"@storybook/channel-websocket@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/channel-websocket/-/channel-websocket-6.5.4.tgz#659dac59649240ce9d9e74a84bcc28c9f359f62e" + integrity sha512-BQtN7ZVoeUUIDtQdsnVCOzKIfpODAIW4IQ8cEuYeHiQDuGWW0+4MuVP5fzfHVugXRoQEF+OBxP8YcVVgeakyQg== + dependencies: + "@storybook/channels" "6.5.4" + "@storybook/client-logger" "6.5.4" core-js "^3.8.2" global "^4.4.0" telejson "^6.0.8" @@ -3090,6 +3146,15 @@ ts-dedent "^2.0.0" util-deprecate "^1.0.2" +"@storybook/channels@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/channels/-/channels-6.5.4.tgz#a3fdc20d45cf4aa74b5310e5e4eb111e353a408a" + integrity sha512-I78N4AIipaD5mrkh5p3Yiu4iim2G3Ci7N8Y7UeRtQ4TJJzSAEuYMm7ydlpmoEM6G+4+hdU0lG2GjaeWNkIFvtA== + dependencies: + core-js "^3.8.2" + ts-dedent "^2.0.0" + util-deprecate "^1.0.2" + "@storybook/client-api@6.5.3": version "6.5.3" resolved "https://registry.yarnpkg.com/@storybook/client-api/-/client-api-6.5.3.tgz#ca7b5ddb9e745b1485d8946dd14d1e81173dd712" @@ -3116,6 +3181,32 @@ ts-dedent "^2.0.0" util-deprecate "^1.0.2" +"@storybook/client-api@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/client-api/-/client-api-6.5.4.tgz#e79418ffb21857deb98f5b7fd88dfe23ef12cfe7" + integrity sha512-2QMcjXBOxGiqcBWqZu/v1lXSiT8jRCiHL8yiUncYK57rRwB6xltX43CcY9IZRnq2iNtQ+BfrWV6RgtbIa9mHhg== + dependencies: + "@storybook/addons" "6.5.4" + "@storybook/channel-postmessage" "6.5.4" + "@storybook/channels" "6.5.4" + "@storybook/client-logger" "6.5.4" + "@storybook/core-events" "6.5.4" + "@storybook/csf" "0.0.2--canary.4566f4d.1" + "@storybook/store" "6.5.4" + "@types/qs" "^6.9.5" + "@types/webpack-env" "^1.16.0" + core-js "^3.8.2" + fast-deep-equal "^3.1.3" + global "^4.4.0" + lodash "^4.17.21" + memoizerific "^1.11.3" + qs "^6.10.0" + regenerator-runtime "^0.13.7" + store2 "^2.12.0" + synchronous-promise "^2.0.15" + ts-dedent "^2.0.0" + util-deprecate "^1.0.2" + "@storybook/client-logger@6.5.3": version "6.5.3" resolved "https://registry.yarnpkg.com/@storybook/client-logger/-/client-logger-6.5.3.tgz#4794e87d85c03aa6e38efc4c5775b9680cc1bf23" @@ -3124,6 +3215,14 @@ core-js "^3.8.2" global "^4.4.0" +"@storybook/client-logger@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/client-logger/-/client-logger-6.5.4.tgz#57348015276e0453675968f6ca31d908ceb498ae" + integrity sha512-8z5cdocpLW2bK6lTGdlBoX8njmNLTd9rrzSEIYRtobAbWjyfB6leCY6F79OVDZCXGsXIOrx/e1fwzioCT/sJSQ== + dependencies: + core-js "^3.8.2" + global "^4.4.0" + "@storybook/components@6.5.3": version "6.5.3" resolved "https://registry.yarnpkg.com/@storybook/components/-/components-6.5.3.tgz#8d643d2d89c298e5e5c2957f7ffb171ba3288ecf" @@ -3139,21 +3238,36 @@ regenerator-runtime "^0.13.7" util-deprecate "^1.0.2" -"@storybook/core-client@6.5.3": - version "6.5.3" - resolved "https://registry.yarnpkg.com/@storybook/core-client/-/core-client-6.5.3.tgz#9c689a5f6797dc7afe60183c29502e496bbd0a07" - integrity sha512-tsyXs+J7e210lRWminzyQU5uvbiKq9XrzsMs6feGyCE3kjZbBCj7RIgd/KxStVT/Ssim6BeTXHfnlLTxLbq5pQ== +"@storybook/components@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/components/-/components-6.5.4.tgz#8afdbba252ab957ba53318b34cb2593da964747b" + integrity sha512-FCJJm2r/OzW3QvavTCdHZeTubJkbNJeoiGKeZs9kMYSgDZAr4cDUr1xUl30Hw57Uy3TCY9gnYdtGZgCP1tQiLw== dependencies: - "@storybook/addons" "6.5.3" - "@storybook/channel-postmessage" "6.5.3" - "@storybook/channel-websocket" "6.5.3" - "@storybook/client-api" "6.5.3" - "@storybook/client-logger" "6.5.3" - "@storybook/core-events" "6.5.3" + "@storybook/client-logger" "6.5.4" "@storybook/csf" "0.0.2--canary.4566f4d.1" - "@storybook/preview-web" "6.5.3" - "@storybook/store" "6.5.3" - "@storybook/ui" "6.5.3" + "@storybook/theming" "6.5.4" + "@types/react-syntax-highlighter" "11.0.5" + core-js "^3.8.2" + qs "^6.10.0" + react-syntax-highlighter "^15.4.5" + regenerator-runtime "^0.13.7" + util-deprecate "^1.0.2" + +"@storybook/core-client@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/core-client/-/core-client-6.5.4.tgz#ab5eaa68c78c3e8816ea240afeea0887e2f68708" + integrity sha512-0rlQ5reKuCeFwqXdicPSLX/0ISAoEpVQgmBEosGt+1knRUfzS/IdLaBO+ZEwh+ajldFo3k9JfZOfxBOFqPMhsg== + dependencies: + "@storybook/addons" "6.5.4" + "@storybook/channel-postmessage" "6.5.4" + "@storybook/channel-websocket" "6.5.4" + "@storybook/client-api" "6.5.4" + "@storybook/client-logger" "6.5.4" + "@storybook/core-events" "6.5.4" + "@storybook/csf" "0.0.2--canary.4566f4d.1" + "@storybook/preview-web" "6.5.4" + "@storybook/store" "6.5.4" + "@storybook/ui" "6.5.4" airbnb-js-shims "^2.2.1" ansi-to-html "^0.6.11" core-js "^3.8.2" @@ -3221,6 +3335,62 @@ util-deprecate "^1.0.2" webpack "4" +"@storybook/core-common@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/core-common/-/core-common-6.5.4.tgz#e77f48a2c93b5eb656a3ad6dd0c01903ba7e57f3" + integrity sha512-JJ9PJr8FRUfTVC9KvkTl+K1Fut1hxMOJYuknmh8HdL8mSFzFIUzaizggEf9X7WT+0VVQkzj3Yit6s6dWA5Rh8w== + dependencies: + "@babel/core" "^7.12.10" + "@babel/plugin-proposal-class-properties" "^7.12.1" + "@babel/plugin-proposal-decorators" "^7.12.12" + "@babel/plugin-proposal-export-default-from" "^7.12.1" + "@babel/plugin-proposal-nullish-coalescing-operator" "^7.12.1" + "@babel/plugin-proposal-object-rest-spread" "^7.12.1" + "@babel/plugin-proposal-optional-chaining" "^7.12.7" + "@babel/plugin-proposal-private-methods" "^7.12.1" + "@babel/plugin-proposal-private-property-in-object" "^7.12.1" + "@babel/plugin-syntax-dynamic-import" "^7.8.3" + "@babel/plugin-transform-arrow-functions" "^7.12.1" + "@babel/plugin-transform-block-scoping" "^7.12.12" + "@babel/plugin-transform-classes" "^7.12.1" + "@babel/plugin-transform-destructuring" "^7.12.1" + "@babel/plugin-transform-for-of" "^7.12.1" + "@babel/plugin-transform-parameters" "^7.12.1" + "@babel/plugin-transform-shorthand-properties" "^7.12.1" + "@babel/plugin-transform-spread" "^7.12.1" + "@babel/preset-env" "^7.12.11" + "@babel/preset-react" "^7.12.10" + "@babel/preset-typescript" "^7.12.7" + "@babel/register" "^7.12.1" + "@storybook/node-logger" "6.5.4" + "@storybook/semver" "^7.3.2" + "@types/node" "^14.0.10 || ^16.0.0" + "@types/pretty-hrtime" "^1.0.0" + babel-loader "^8.0.0" + babel-plugin-macros "^3.0.1" + babel-plugin-polyfill-corejs3 "^0.1.0" + chalk "^4.1.0" + core-js "^3.8.2" + express "^4.17.1" + file-system-cache "^1.0.5" + find-up "^5.0.0" + fork-ts-checker-webpack-plugin "^6.0.4" + fs-extra "^9.0.1" + glob "^7.1.6" + handlebars "^4.7.7" + interpret "^2.2.0" + json5 "^2.1.3" + lazy-universal-dotenv "^3.0.1" + picomatch "^2.3.0" + pkg-dir "^5.0.0" + pretty-hrtime "^1.0.3" + resolve-from "^5.0.0" + slash "^3.0.0" + telejson "^6.0.8" + ts-dedent "^2.0.0" + util-deprecate "^1.0.2" + webpack "4" + "@storybook/core-events@6.5.3": version "6.5.3" resolved "https://registry.yarnpkg.com/@storybook/core-events/-/core-events-6.5.3.tgz#57fb45187d6d60403149d9b16953989897e2bd6e" @@ -3228,23 +3398,30 @@ dependencies: core-js "^3.8.2" -"@storybook/core-server@6.5.3": - version "6.5.3" - resolved "https://registry.yarnpkg.com/@storybook/core-server/-/core-server-6.5.3.tgz#6c6168ec74f07594b48b248ae53454745945b37e" - integrity sha512-aehEen3VeY2NvouYfbnw346KtRwCJceOH5IWGHvVVEauSVzwCH+Yfgy7c4k2j0Ey3u6fz5qCkvPp8rdY0XS7SA== +"@storybook/core-events@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/core-events/-/core-events-6.5.4.tgz#0c68ee42ac5afcc8ee7b56cd057d9a90d244067c" + integrity sha512-b03mPlzfX/TkeKqi7cgFzRof80dBb98w7ui6x0GzIXXcG/O0KebzqZ41/vXQICwsbkAIp5JQdkTEq9RUOh/KCg== + dependencies: + core-js "^3.8.2" + +"@storybook/core-server@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/core-server/-/core-server-6.5.4.tgz#0e213ac52748fac1325b5734e7b64c23f982bd2f" + integrity sha512-Fmapj0xHHNQ3FUFXiHR/Zex9hBWnxKYMANxmNslAHbD3BEpf8xPYcjtptVvr0hJyHtnygtwqPbR0CUBbCG0KKQ== dependencies: "@discoveryjs/json-ext" "^0.5.3" - "@storybook/builder-webpack4" "6.5.3" - "@storybook/core-client" "6.5.3" - "@storybook/core-common" "6.5.3" - "@storybook/core-events" "6.5.3" + "@storybook/builder-webpack4" "6.5.4" + "@storybook/core-client" "6.5.4" + "@storybook/core-common" "6.5.4" + "@storybook/core-events" "6.5.4" "@storybook/csf" "0.0.2--canary.4566f4d.1" - "@storybook/csf-tools" "6.5.3" - "@storybook/manager-webpack4" "6.5.3" - "@storybook/node-logger" "6.5.3" + "@storybook/csf-tools" "6.5.4" + "@storybook/manager-webpack4" "6.5.4" + "@storybook/node-logger" "6.5.4" "@storybook/semver" "^7.3.2" - "@storybook/store" "6.5.3" - "@storybook/telemetry" "6.5.3" + "@storybook/store" "6.5.4" + "@storybook/telemetry" "6.5.4" "@types/node" "^14.0.10 || ^16.0.0" "@types/node-fetch" "^2.5.7" "@types/pretty-hrtime" "^1.0.0" @@ -3279,18 +3456,18 @@ ws "^8.2.3" x-default-browser "^0.4.0" -"@storybook/core@6.5.3": - version "6.5.3" - resolved "https://registry.yarnpkg.com/@storybook/core/-/core-6.5.3.tgz#8291e7bccd5d726ac7dc39c1e27fc04178f777f6" - integrity sha512-XQDcAryLNyXe5eiNqB++6xvGqnYlJ8ZAFOPWFlFUhjrktojtwVEeHfj5M3e23D9XMN4KkBODoH3OWmREcUMwXg== +"@storybook/core@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/core/-/core-6.5.4.tgz#b6fcd148aea97f695ad491ee77664c28f1ff9396" + integrity sha512-de43+5FgQnLWTJw51h4qpaDVy1aHFte2eE2wi5rC3VHICxqQJJQqtzDrAtZ9NoKhztS5tZHA6pk60fh1TtPk8g== dependencies: - "@storybook/core-client" "6.5.3" - "@storybook/core-server" "6.5.3" + "@storybook/core-client" "6.5.4" + "@storybook/core-server" "6.5.4" -"@storybook/csf-tools@6.5.3": - version "6.5.3" - resolved "https://registry.yarnpkg.com/@storybook/csf-tools/-/csf-tools-6.5.3.tgz#4f3b53bbe38f4a62e1ed07948a632512fb59f41f" - integrity sha512-WotBTvKauVV+i2DZqem4m12D+Ogexg6oFiXt0dlqh0TUGEAGzvocOAPIKk6uciEF2eXu6yn8JE4s+faXLWrXSw== +"@storybook/csf-tools@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/csf-tools/-/csf-tools-6.5.4.tgz#01b4ab41482d6950781d2a3fa369445d818a1e92" + integrity sha512-mCAO8Ddig5PzXiI4HxiWhdLmPPpaovzVxqdh7g31k3fhpnRkQrKwftNGTW/ArFDdisMjB1+gm+ZOVACZg0pO4w== dependencies: "@babel/core" "^7.12.10" "@babel/generator" "^7.12.11" @@ -3314,33 +3491,33 @@ dependencies: lodash "^4.17.15" -"@storybook/docs-tools@6.5.3": - version "6.5.3" - resolved "https://registry.yarnpkg.com/@storybook/docs-tools/-/docs-tools-6.5.3.tgz#2460df5d20e4c6670e985268b50bf9c412eb47b7" - integrity sha512-scUztkQ9ZRRoo4lHiYRaCkmk351H2CwMnlOrCwv/EpmLZnHdffSAtMZS/O07KUOC8fvxCw36z5SfHlbCIcolSQ== +"@storybook/docs-tools@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/docs-tools/-/docs-tools-6.5.4.tgz#efe25c732f2061293e3cb84853e82a925e332804" + integrity sha512-XiCiCKwalbPrhcD9jhMM9IMOdOplUPNnwhW//VmHvWJ2j+JNiQVX42vfecl4hKy8wx63S/AzaGKw2yuavUAiHQ== dependencies: "@babel/core" "^7.12.10" "@storybook/csf" "0.0.2--canary.4566f4d.1" - "@storybook/store" "6.5.3" + "@storybook/store" "6.5.4" core-js "^3.8.2" doctrine "^3.0.0" lodash "^4.17.21" regenerator-runtime "^0.13.7" -"@storybook/manager-webpack4@6.5.3": - version "6.5.3" - resolved "https://registry.yarnpkg.com/@storybook/manager-webpack4/-/manager-webpack4-6.5.3.tgz#004380031a521f50d5d37740e7d2add3342dbd90" - integrity sha512-kI+6fbCHv9uH1GEYK/SYLtNiAJYVRgm8oh/7Zi/38cqUjnAg8lzUztABul4Iemu3w5aJplkqE08FFu69TTbHPg== +"@storybook/manager-webpack4@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/manager-webpack4/-/manager-webpack4-6.5.4.tgz#1dfd152e7af7b57ba0c1d5162ec360b71e088f61" + integrity sha512-JgFAlnnsOV6+L0ShDApwbDDdzoEAwuy01+TLUVdl60rlpbcBaasBMkZYAy1iwKZ59gCT51GocGMGDXBVeUJq9g== dependencies: "@babel/core" "^7.12.10" "@babel/plugin-transform-template-literals" "^7.12.1" "@babel/preset-react" "^7.12.10" - "@storybook/addons" "6.5.3" - "@storybook/core-client" "6.5.3" - "@storybook/core-common" "6.5.3" - "@storybook/node-logger" "6.5.3" - "@storybook/theming" "6.5.3" - "@storybook/ui" "6.5.3" + "@storybook/addons" "6.5.4" + "@storybook/core-client" "6.5.4" + "@storybook/core-common" "6.5.4" + "@storybook/node-logger" "6.5.4" + "@storybook/theming" "6.5.4" + "@storybook/ui" "6.5.4" "@types/node" "^14.0.10 || ^16.0.0" "@types/webpack" "^4.41.26" babel-loader "^8.0.0" @@ -3368,20 +3545,20 @@ webpack-dev-middleware "^3.7.3" webpack-virtual-modules "^0.2.2" -"@storybook/manager-webpack5@^6.5.3": - version "6.5.3" - resolved "https://registry.yarnpkg.com/@storybook/manager-webpack5/-/manager-webpack5-6.5.3.tgz#63cd2fe547653c5489f301db954016bed4ab9d29" - integrity sha512-AJpx2cpiBXt6lVHxe2ZaBWTXqq8/GNXfFKXuBRTvLM0ZqiY3HcohUmgpWs56OC2JUwunbZiS0nvxA3dzQmuBZg== +"@storybook/manager-webpack5@^6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/manager-webpack5/-/manager-webpack5-6.5.4.tgz#54793278225e17418318a34a830234e249de3db8" + integrity sha512-UwGnwkHV5CFuHmrsQnjQ0IQj6uXZFopCB7e96HU0YwOBiBA9ABlbJpUrxC/N7vO+OhTNtH6lcwHx0eJbbnnuxw== dependencies: "@babel/core" "^7.12.10" "@babel/plugin-transform-template-literals" "^7.12.1" "@babel/preset-react" "^7.12.10" - "@storybook/addons" "6.5.3" - "@storybook/core-client" "6.5.3" - "@storybook/core-common" "6.5.3" - "@storybook/node-logger" "6.5.3" - "@storybook/theming" "6.5.3" - "@storybook/ui" "6.5.3" + "@storybook/addons" "6.5.4" + "@storybook/core-client" "6.5.4" + "@storybook/core-common" "6.5.4" + "@storybook/node-logger" "6.5.4" + "@storybook/theming" "6.5.4" + "@storybook/ui" "6.5.4" "@types/node" "^14.0.10 || ^16.0.0" babel-loader "^8.0.0" case-sensitive-paths-webpack-plugin "^2.3.0" @@ -3423,7 +3600,7 @@ prettier ">=2.2.1 <=2.3.0" ts-dedent "^2.0.0" -"@storybook/node-logger@6.5.3", "@storybook/node-logger@^6.4.22": +"@storybook/node-logger@6.5.3": version "6.5.3" resolved "https://registry.yarnpkg.com/@storybook/node-logger/-/node-logger-6.5.3.tgz#6917bbbdaf2bb3b191bafadfe4f19c3ea3cbfa61" integrity sha512-iG4uQJCtuT54p3zg0zJ7+ALPUrt7PTAXmXqN7ak/9YcWbnwtMlHgg8oTlCebwr+E3QPCMauJM2eLzC6F7bI76w== @@ -3434,10 +3611,21 @@ npmlog "^5.0.1" pretty-hrtime "^1.0.3" -"@storybook/postinstall@6.5.3": - version "6.5.3" - resolved "https://registry.yarnpkg.com/@storybook/postinstall/-/postinstall-6.5.3.tgz#ba815b7590d0fe8ee8626e62ddd3f729264aa464" - integrity sha512-EIHnbrGwt/CPyLXwNFyfAGY4LhrBx713ghCtacQu2xAukDXg9UWJHarYXjwIivk8DGrims28qXGIjIUKqKeuyA== +"@storybook/node-logger@6.5.4", "@storybook/node-logger@^6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/node-logger/-/node-logger-6.5.4.tgz#1887abd364fd401ac7b76b313f92f12005a28c6f" + integrity sha512-2rK9oTBhvRm4VOr1ywIWXfWEXVbuV7wGdZu4hpSDlkhnBBFCyYBJH9asEJVoB4Qk77HPMCqkw2IHpstVjkASXQ== + dependencies: + "@types/npmlog" "^4.1.2" + chalk "^4.1.0" + core-js "^3.8.2" + npmlog "^5.0.1" + pretty-hrtime "^1.0.3" + +"@storybook/postinstall@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/postinstall/-/postinstall-6.5.4.tgz#01f7792f1a777cb1dee30e07f02314080cabd232" + integrity sha512-euiZOwz5KmtL3wcSxzxLTkGkxLCroZTVaNt/NopRBa0F8erJfT9MiQPVw/xFkS9QwEViaR+Zq4KmStxB41zycQ== dependencies: core-js "^3.8.2" @@ -3475,6 +3663,28 @@ unfetch "^4.2.0" util-deprecate "^1.0.2" +"@storybook/preview-web@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/preview-web/-/preview-web-6.5.4.tgz#a6899add3be1937ea79c14c4861c0f038c71efaa" + integrity sha512-mbyZI0ProlLSB5MVe+YvoCt+XtlyBvP3lzTVdPZWVVtRN6DK5SEcfsK9//rgmqxiYYXfSKfyI53skYZkKAIEcA== + dependencies: + "@storybook/addons" "6.5.4" + "@storybook/channel-postmessage" "6.5.4" + "@storybook/client-logger" "6.5.4" + "@storybook/core-events" "6.5.4" + "@storybook/csf" "0.0.2--canary.4566f4d.1" + "@storybook/store" "6.5.4" + ansi-to-html "^0.6.11" + core-js "^3.8.2" + global "^4.4.0" + lodash "^4.17.21" + qs "^6.10.0" + regenerator-runtime "^0.13.7" + synchronous-promise "^2.0.15" + ts-dedent "^2.0.0" + unfetch "^4.2.0" + util-deprecate "^1.0.2" + "@storybook/react-docgen-typescript-plugin@1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0", "@storybook/react-docgen-typescript-plugin@canary": version "1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0" resolved "https://registry.yarnpkg.com/@storybook/react-docgen-typescript-plugin/-/react-docgen-typescript-plugin-1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0.tgz#3103532ff494fb7dc3cf835f10740ecf6a26c0f9" @@ -3488,24 +3698,24 @@ react-docgen-typescript "^2.1.1" tslib "^2.0.0" -"@storybook/react@^6.5.3": - version "6.5.3" - resolved "https://registry.yarnpkg.com/@storybook/react/-/react-6.5.3.tgz#bab65edd22719d3367e136db20a79bd09aab41a0" - integrity sha512-RP9ak2EIrq9sJ80JjaVV/Xab9O663PA/DRqfbILewRLi9uUaG6L/Qby7LktwzqwaybeKbP6dTG0w937cRkuj4w== +"@storybook/react@^6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/react/-/react-6.5.4.tgz#54d947c79ed60aef8ae160332d5bce2e4281f40f" + integrity sha512-tZdoUc0TJ2HrE4iIHwNWjW/yJSM8+9uBE4U4rWmKjjqRk7jC0KGLxjPPgjGsJFx7iSdAurQlaZUW7cvcPuhz1w== dependencies: "@babel/preset-flow" "^7.12.1" "@babel/preset-react" "^7.12.10" "@pmmmwh/react-refresh-webpack-plugin" "^0.5.3" - "@storybook/addons" "6.5.3" - "@storybook/client-logger" "6.5.3" - "@storybook/core" "6.5.3" - "@storybook/core-common" "6.5.3" + "@storybook/addons" "6.5.4" + "@storybook/client-logger" "6.5.4" + "@storybook/core" "6.5.4" + "@storybook/core-common" "6.5.4" "@storybook/csf" "0.0.2--canary.4566f4d.1" - "@storybook/docs-tools" "6.5.3" - "@storybook/node-logger" "6.5.3" + "@storybook/docs-tools" "6.5.4" + "@storybook/node-logger" "6.5.4" "@storybook/react-docgen-typescript-plugin" "1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0" "@storybook/semver" "^7.3.2" - "@storybook/store" "6.5.3" + "@storybook/store" "6.5.4" "@types/estree" "^0.0.51" "@types/node" "^14.14.20 || ^16.0.0" "@types/webpack-env" "^1.16.0" @@ -3538,6 +3748,15 @@ core-js "^3.8.2" regenerator-runtime "^0.13.7" +"@storybook/router@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/router/-/router-6.5.4.tgz#575f4ae36629086622a8b41626226ba4da025bb7" + integrity sha512-Xw0oYaJSxd/zPUiZw8AoQRCdrePuxsn1XwlDvzfNlMnPnU17LAFzVf8kpHPXvx01F9pLnGI4ZggsjVomHy/E1Q== + dependencies: + "@storybook/client-logger" "6.5.4" + core-js "^3.8.2" + regenerator-runtime "^0.13.7" + "@storybook/semver@^7.3.2": version "7.3.2" resolved "https://registry.yarnpkg.com/@storybook/semver/-/semver-7.3.2.tgz#f3b9c44a1c9a0b933c04e66d0048fcf2fa10dac0" @@ -3546,13 +3765,13 @@ core-js "^3.6.5" find-up "^4.1.0" -"@storybook/source-loader@6.5.3": - version "6.5.3" - resolved "https://registry.yarnpkg.com/@storybook/source-loader/-/source-loader-6.5.3.tgz#5991dd33805ebb54c5c1e0ad779a2cf80ec6b3b9" - integrity sha512-JrwCm3El6XZC7eVYCF83e7x7/fA4ue+g2s0oAtdXD11KOrrJ7e0bgtvVdtRWKG/4n4Ww3+sGFnuIlXfPbJ3hvw== +"@storybook/source-loader@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/source-loader/-/source-loader-6.5.4.tgz#401bbfa4624c1c719a961394690f8621f93e0c3b" + integrity sha512-NfNktWLNvsGVyf3IjCke/4HftPcIHD251J7QOuPjq3lD9OTLZgL4blqscUmd2RrGZRUEH+KSfCIV9jTSeqS1wQ== dependencies: - "@storybook/addons" "6.5.3" - "@storybook/client-logger" "6.5.3" + "@storybook/addons" "6.5.4" + "@storybook/client-logger" "6.5.4" "@storybook/csf" "0.0.2--canary.4566f4d.1" core-js "^3.8.2" estraverse "^5.2.0" @@ -3583,13 +3802,34 @@ ts-dedent "^2.0.0" util-deprecate "^1.0.2" -"@storybook/telemetry@6.5.3": - version "6.5.3" - resolved "https://registry.yarnpkg.com/@storybook/telemetry/-/telemetry-6.5.3.tgz#2440606fa82406d279b0d60261613c5038d3bfbf" - integrity sha512-eXhQ+kRWdg+ZX3sglRaCoOzpzgQ/p9wKS4/vEJd5Fq+JlKIuZkJ7xiJYaxlhR55PLpJGbj+5HCTlnepAtf7Nnw== +"@storybook/store@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/store/-/store-6.5.4.tgz#7770b7bffcc6c254a2497db2d4b1ee93b7a62659" + integrity sha512-hCHSQorxRVGseVlIfM4JXbJHkA6AAXuAFl+QsUTjG24q3zAc3sIE2nbH5KsHuJN5NorjcrGeLQOAO9amqzUeHA== dependencies: - "@storybook/client-logger" "6.5.3" - "@storybook/core-common" "6.5.3" + "@storybook/addons" "6.5.4" + "@storybook/client-logger" "6.5.4" + "@storybook/core-events" "6.5.4" + "@storybook/csf" "0.0.2--canary.4566f4d.1" + core-js "^3.8.2" + fast-deep-equal "^3.1.3" + global "^4.4.0" + lodash "^4.17.21" + memoizerific "^1.11.3" + regenerator-runtime "^0.13.7" + slash "^3.0.0" + stable "^0.1.8" + synchronous-promise "^2.0.15" + ts-dedent "^2.0.0" + util-deprecate "^1.0.2" + +"@storybook/telemetry@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/telemetry/-/telemetry-6.5.4.tgz#810209e928449c2eab7e3bdf7dd6dbe0de8327b0" + integrity sha512-BKQajMd80mXHp/sE54I1JiusgvfZrnRqBbZW93slGNG3JyWpJLGOBH/KCp4iyu6Htbqssi+nvrxneUCT+wA6eQ== + dependencies: + "@storybook/client-logger" "6.5.4" + "@storybook/core-common" "6.5.4" chalk "^4.1.0" core-js "^3.8.2" detect-package-manager "^2.0.1" @@ -3610,20 +3850,29 @@ core-js "^3.8.2" regenerator-runtime "^0.13.7" -"@storybook/ui@6.5.3": - version "6.5.3" - resolved "https://registry.yarnpkg.com/@storybook/ui/-/ui-6.5.3.tgz#afa7a327c71350e9f92628b86c7f14d58427ec3c" - integrity sha512-TLJBfXHFM0ilMuUjer4AjhnNGvQ7lI4GYIKzuCjCrw/ukfUb1AABXd9fdHq7tEzVm8z7T3pyrRVsb1VVdbxL0A== +"@storybook/theming@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/theming/-/theming-6.5.4.tgz#3be001bf425f682f6e16ce3581e8cd109c85f8ea" + integrity sha512-J5ipCqKH8FfMVj8SuVsjxSIYgb9GN8NBsVAVvTakVjqyKnv5znR+w+h0lvyzRNaEnF5LQCy7Uj7DE6+Pbg/wPw== dependencies: - "@storybook/addons" "6.5.3" - "@storybook/api" "6.5.3" - "@storybook/channels" "6.5.3" - "@storybook/client-logger" "6.5.3" - "@storybook/components" "6.5.3" - "@storybook/core-events" "6.5.3" - "@storybook/router" "6.5.3" + "@storybook/client-logger" "6.5.4" + core-js "^3.8.2" + regenerator-runtime "^0.13.7" + +"@storybook/ui@6.5.4": + version "6.5.4" + resolved "https://registry.yarnpkg.com/@storybook/ui/-/ui-6.5.4.tgz#eb70602e78b871e6d762b43889b2dc7537a91331" + integrity sha512-+kMgNMcW7xma/H/O4LFzdxjX6GPfEEvOkm3HQDz0dJW7z/wtQVTgZKCA8gAVl+eNcNyRGzYRKOrOU0AzFfU7lw== + dependencies: + "@storybook/addons" "6.5.4" + "@storybook/api" "6.5.4" + "@storybook/channels" "6.5.4" + "@storybook/client-logger" "6.5.4" + "@storybook/components" "6.5.4" + "@storybook/core-events" "6.5.4" + "@storybook/router" "6.5.4" "@storybook/semver" "^7.3.2" - "@storybook/theming" "6.5.3" + "@storybook/theming" "6.5.4" core-js "^3.8.2" regenerator-runtime "^0.13.7" resolve-from "^5.0.0" @@ -16648,12 +16897,12 @@ ts-loader@^9.3.0: micromatch "^4.0.0" semver "^7.3.4" -ts-node@^10.7.0: - version "10.7.0" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.7.0.tgz#35d503d0fab3e2baa672a0e94f4b40653c2463f5" - integrity sha512-TbIGS4xgJoX2i3do417KSaep1uRAW/Lu+WAL2doDHC0D6ummjirVOXU5/7aiZotbQ5p1Zp9tP7U6cYhA0O7M8A== +ts-node@^10.8.0: + version "10.8.0" + resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.8.0.tgz#3ceb5ac3e67ae8025c1950626aafbdecb55d82ce" + integrity sha512-/fNd5Qh+zTt8Vt1KbYZjRHCE9sI5i7nqfD/dzBBRDeVXZXS6kToW6R7tTU6Nd4XavFs0mAVCg29Q//ML7WsZYA== dependencies: - "@cspotcode/source-map-support" "0.7.0" + "@cspotcode/source-map-support" "^0.8.0" "@tsconfig/node10" "^1.0.7" "@tsconfig/node12" "^1.0.7" "@tsconfig/node14" "^1.0.0" @@ -16664,7 +16913,7 @@ ts-node@^10.7.0: create-require "^1.1.0" diff "^4.0.1" make-error "^1.1.1" - v8-compile-cache-lib "^3.0.0" + v8-compile-cache-lib "^3.0.1" yn "3.1.1" ts-pnp@^1.1.6: @@ -17176,7 +17425,7 @@ uuid@^8.0.0, uuid@^8.3.2: resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== -v8-compile-cache-lib@^3.0.0: +v8-compile-cache-lib@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf" integrity sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==