isomorfeus-preact 10.5.1 → 10.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +29 -0
- data/lib/isomorfeus/preact/config.rb +19 -33
- data/lib/isomorfeus/preact/imports.rb +30 -0
- data/lib/isomorfeus/preact_view_helper.rb +26 -34
- data/lib/isomorfeus-preact.rb +6 -4
- data/lib/lucid_app/context.rb +9 -9
- data/lib/preact/version.rb +1 -1
- data/node_modules/.bin/loose-envify +12 -0
- data/node_modules/.bin/loose-envify.cmd +17 -0
- data/node_modules/.bin/loose-envify.ps1 +28 -0
- data/node_modules/.package-lock.json +278 -0
- data/node_modules/@babel/runtime/LICENSE +22 -0
- data/node_modules/@babel/runtime/README.md +19 -0
- data/node_modules/@babel/runtime/helpers/AsyncGenerator.js +99 -0
- data/node_modules/@babel/runtime/helpers/AwaitValue.js +6 -0
- data/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js +31 -0
- data/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +12 -0
- data/node_modules/@babel/runtime/helpers/arrayWithHoles.js +6 -0
- data/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +8 -0
- data/node_modules/@babel/runtime/helpers/assertThisInitialized.js +10 -0
- data/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js +57 -0
- data/node_modules/@babel/runtime/helpers/asyncIterator.js +16 -0
- data/node_modules/@babel/runtime/helpers/asyncToGenerator.js +38 -0
- data/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js +8 -0
- data/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js +8 -0
- data/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js +23 -0
- data/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js +10 -0
- data/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js +14 -0
- data/node_modules/@babel/runtime/helpers/classCallCheck.js +8 -0
- data/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js +8 -0
- data/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js +8 -0
- data/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js +10 -0
- data/node_modules/@babel/runtime/helpers/classNameTDZError.js +6 -0
- data/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js +11 -0
- data/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js +11 -0
- data/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js +9 -0
- data/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js +10 -0
- data/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js +8 -0
- data/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js +12 -0
- data/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js +10 -0
- data/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js +9 -0
- data/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js +6 -0
- data/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js +14 -0
- data/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js +14 -0
- data/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js +15 -0
- data/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js +9 -0
- data/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js +6 -0
- data/node_modules/@babel/runtime/helpers/construct.js +26 -0
- data/node_modules/@babel/runtime/helpers/createClass.js +18 -0
- data/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js +61 -0
- data/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js +25 -0
- data/node_modules/@babel/runtime/helpers/createSuper.js +25 -0
- data/node_modules/@babel/runtime/helpers/decorate.js +401 -0
- data/node_modules/@babel/runtime/helpers/defaults.js +17 -0
- data/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js +25 -0
- data/node_modules/@babel/runtime/helpers/defineProperty.js +17 -0
- data/node_modules/@babel/runtime/helpers/esm/AsyncGenerator.js +95 -0
- data/node_modules/@babel/runtime/helpers/esm/AwaitValue.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js +28 -0
- data/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +9 -0
- data/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +4 -0
- data/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js +54 -0
- data/node_modules/@babel/runtime/helpers/esm/asyncIterator.js +13 -0
- data/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +35 -0
- data/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js +4 -0
- data/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js +20 -0
- data/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js +11 -0
- data/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js +6 -0
- data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js +6 -0
- data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js +4 -0
- data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js +8 -0
- data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js +8 -0
- data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js +9 -0
- data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/construct.js +18 -0
- data/node_modules/@babel/runtime/helpers/esm/createClass.js +15 -0
- data/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +57 -0
- data/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js +21 -0
- data/node_modules/@babel/runtime/helpers/esm/createSuper.js +19 -0
- data/node_modules/@babel/runtime/helpers/esm/decorate.js +396 -0
- data/node_modules/@babel/runtime/helpers/esm/defaults.js +14 -0
- data/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js +22 -0
- data/node_modules/@babel/runtime/helpers/esm/defineProperty.js +14 -0
- data/node_modules/@babel/runtime/helpers/esm/extends.js +17 -0
- data/node_modules/@babel/runtime/helpers/esm/get.js +20 -0
- data/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +6 -0
- data/node_modules/@babel/runtime/helpers/esm/inherits.js +15 -0
- data/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +6 -0
- data/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js +9 -0
- data/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/instanceof.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +51 -0
- data/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +12 -0
- data/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +29 -0
- data/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimitLoose.js +14 -0
- data/node_modules/@babel/runtime/helpers/esm/jsx.js +46 -0
- data/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js +9 -0
- data/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/objectSpread.js +19 -0
- data/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +39 -0
- data/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +19 -0
- data/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +14 -0
- data/node_modules/@babel/runtime/helpers/esm/package.json +3 -0
- data/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +11 -0
- data/node_modules/@babel/runtime/helpers/esm/readOnlyError.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/set.js +51 -0
- data/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +8 -0
- data/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/slicedToArrayLoose.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/superPropBase.js +9 -0
- data/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +11 -0
- data/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js +8 -0
- data/node_modules/@babel/runtime/helpers/esm/tdz.js +3 -0
- data/node_modules/@babel/runtime/helpers/esm/temporalRef.js +5 -0
- data/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js +1 -0
- data/node_modules/@babel/runtime/helpers/esm/toArray.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +7 -0
- data/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +13 -0
- data/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +6 -0
- data/node_modules/@babel/runtime/helpers/esm/typeof.js +15 -0
- data/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +9 -0
- data/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +6 -0
- data/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +37 -0
- data/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +65 -0
- data/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js +3 -0
- data/node_modules/@babel/runtime/helpers/extends.js +21 -0
- data/node_modules/@babel/runtime/helpers/get.js +27 -0
- data/node_modules/@babel/runtime/helpers/getPrototypeOf.js +10 -0
- data/node_modules/@babel/runtime/helpers/inherits.js +19 -0
- data/node_modules/@babel/runtime/helpers/inheritsLoose.js +10 -0
- data/node_modules/@babel/runtime/helpers/initializerDefineProperty.js +12 -0
- data/node_modules/@babel/runtime/helpers/initializerWarningHelper.js +6 -0
- data/node_modules/@babel/runtime/helpers/instanceof.js +10 -0
- data/node_modules/@babel/runtime/helpers/interopRequireDefault.js +8 -0
- data/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +54 -0
- data/node_modules/@babel/runtime/helpers/isNativeFunction.js +6 -0
- data/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js +15 -0
- data/node_modules/@babel/runtime/helpers/iterableToArray.js +6 -0
- data/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +32 -0
- data/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js +17 -0
- data/node_modules/@babel/runtime/helpers/jsx.js +50 -0
- data/node_modules/@babel/runtime/helpers/maybeArrayLike.js +13 -0
- data/node_modules/@babel/runtime/helpers/newArrowCheck.js +8 -0
- data/node_modules/@babel/runtime/helpers/nonIterableRest.js +6 -0
- data/node_modules/@babel/runtime/helpers/nonIterableSpread.js +6 -0
- data/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js +6 -0
- data/node_modules/@babel/runtime/helpers/objectSpread.js +23 -0
- data/node_modules/@babel/runtime/helpers/objectSpread2.js +42 -0
- data/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +23 -0
- data/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +17 -0
- data/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js +16 -0
- data/node_modules/@babel/runtime/helpers/readOnlyError.js +6 -0
- data/node_modules/@babel/runtime/helpers/set.js +55 -0
- data/node_modules/@babel/runtime/helpers/setPrototypeOf.js +12 -0
- data/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js +10 -0
- data/node_modules/@babel/runtime/helpers/slicedToArray.js +14 -0
- data/node_modules/@babel/runtime/helpers/slicedToArrayLoose.js +14 -0
- data/node_modules/@babel/runtime/helpers/superPropBase.js +13 -0
- data/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js +14 -0
- data/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js +11 -0
- data/node_modules/@babel/runtime/helpers/tdz.js +6 -0
- data/node_modules/@babel/runtime/helpers/temporalRef.js +10 -0
- data/node_modules/@babel/runtime/helpers/temporalUndefined.js +4 -0
- data/node_modules/@babel/runtime/helpers/toArray.js +14 -0
- data/node_modules/@babel/runtime/helpers/toConsumableArray.js +14 -0
- data/node_modules/@babel/runtime/helpers/toPrimitive.js +17 -0
- data/node_modules/@babel/runtime/helpers/toPropertyKey.js +11 -0
- data/node_modules/@babel/runtime/helpers/typeof.js +22 -0
- data/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +13 -0
- data/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +10 -0
- data/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +45 -0
- data/node_modules/@babel/runtime/helpers/wrapRegExp.js +72 -0
- data/node_modules/@babel/runtime/helpers/writeOnlyError.js +6 -0
- data/node_modules/@babel/runtime/package.json +848 -0
- data/node_modules/@babel/runtime/regenerator/index.js +1 -0
- data/node_modules/css-in-js-utils/Changelog.md +16 -0
- data/node_modules/css-in-js-utils/LICENSE +21 -0
- data/node_modules/css-in-js-utils/README.md +241 -0
- data/node_modules/css-in-js-utils/lib/__tests__/assignStyle-test.js +117 -0
- data/node_modules/css-in-js-utils/lib/__tests__/camelCaseProperty-test.js +15 -0
- data/node_modules/css-in-js-utils/lib/__tests__/cssifyDeclaration-test.js +15 -0
- data/node_modules/css-in-js-utils/lib/__tests__/cssifyObject-test.js +31 -0
- data/node_modules/css-in-js-utils/lib/__tests__/isPrefixedProperty-test.js +19 -0
- data/node_modules/css-in-js-utils/lib/__tests__/isPrefixedValue-test.js +19 -0
- data/node_modules/css-in-js-utils/lib/__tests__/isUnitlessProperty-test.js +43 -0
- data/node_modules/css-in-js-utils/lib/__tests__/normalizeProperty-test.js +21 -0
- data/node_modules/css-in-js-utils/lib/__tests__/resolveArrayValue-test.js +17 -0
- data/node_modules/css-in-js-utils/lib/__tests__/unprefixProperty-test.js +19 -0
- data/node_modules/css-in-js-utils/lib/__tests__/unprefixValue-test.js +20 -0
- data/node_modules/css-in-js-utils/lib/assignStyle.js +37 -0
- data/node_modules/css-in-js-utils/lib/camelCaseProperty.js +15 -0
- data/node_modules/css-in-js-utils/lib/cssifyDeclaration.js +17 -0
- data/node_modules/css-in-js-utils/lib/cssifyObject.js +34 -0
- data/node_modules/css-in-js-utils/lib/hyphenateProperty.js +17 -0
- data/node_modules/css-in-js-utils/lib/index.js +71 -0
- data/node_modules/css-in-js-utils/lib/isPrefixedProperty.js +12 -0
- data/node_modules/css-in-js-utils/lib/isPrefixedValue.js +12 -0
- data/node_modules/css-in-js-utils/lib/isUnitlessProperty.js +64 -0
- data/node_modules/css-in-js-utils/lib/normalizeProperty.js +21 -0
- data/node_modules/css-in-js-utils/lib/resolveArrayValue.js +19 -0
- data/node_modules/css-in-js-utils/lib/unprefixProperty.js +13 -0
- data/node_modules/css-in-js-utils/lib/unprefixValue.js +16 -0
- data/node_modules/css-in-js-utils/package.json +56 -0
- data/node_modules/css-tree/CHANGELOG.md +590 -0
- data/node_modules/css-tree/LICENSE +19 -0
- data/node_modules/css-tree/README.md +130 -0
- data/node_modules/css-tree/data/index.js +103 -0
- data/node_modules/css-tree/data/patch.json +721 -0
- data/node_modules/css-tree/dist/csstree.js +12606 -0
- data/node_modules/css-tree/dist/csstree.min.js +1 -0
- data/node_modules/css-tree/lib/common/List.js +576 -0
- data/node_modules/css-tree/lib/common/OffsetToLocation.js +91 -0
- data/node_modules/css-tree/lib/common/SyntaxError.js +82 -0
- data/node_modules/css-tree/lib/common/TokenStream.js +219 -0
- data/node_modules/css-tree/lib/common/adopt-buffer.js +10 -0
- data/node_modules/css-tree/lib/convertor/create.js +28 -0
- data/node_modules/css-tree/lib/convertor/index.js +3 -0
- data/node_modules/css-tree/lib/definition-syntax/SyntaxError.js +14 -0
- data/node_modules/css-tree/lib/definition-syntax/generate.js +129 -0
- data/node_modules/css-tree/lib/definition-syntax/index.js +6 -0
- data/node_modules/css-tree/lib/definition-syntax/parse.js +568 -0
- data/node_modules/css-tree/lib/definition-syntax/tokenizer.js +55 -0
- data/node_modules/css-tree/lib/definition-syntax/walk.js +52 -0
- data/node_modules/css-tree/lib/generator/create.js +66 -0
- data/node_modules/css-tree/lib/generator/index.js +4 -0
- data/node_modules/css-tree/lib/generator/sourceMap.js +95 -0
- data/node_modules/css-tree/lib/index.js +1 -0
- data/node_modules/css-tree/lib/lexer/Lexer.js +466 -0
- data/node_modules/css-tree/lib/lexer/error.js +127 -0
- data/node_modules/css-tree/lib/lexer/generic-an-plus-b.js +236 -0
- data/node_modules/css-tree/lib/lexer/generic-urange.js +159 -0
- data/node_modules/css-tree/lib/lexer/generic.js +585 -0
- data/node_modules/css-tree/lib/lexer/index.js +3 -0
- data/node_modules/css-tree/lib/lexer/match-graph.js +455 -0
- data/node_modules/css-tree/lib/lexer/match.js +639 -0
- data/node_modules/css-tree/lib/lexer/prepare-tokens.js +73 -0
- data/node_modules/css-tree/lib/lexer/search.js +65 -0
- data/node_modules/css-tree/lib/lexer/structure.js +163 -0
- data/node_modules/css-tree/lib/lexer/trace.js +79 -0
- data/node_modules/css-tree/lib/parser/create.js +304 -0
- data/node_modules/css-tree/lib/parser/index.js +4 -0
- data/node_modules/css-tree/lib/parser/sequence.js +54 -0
- data/node_modules/css-tree/lib/syntax/atrule/font-face.js +8 -0
- data/node_modules/css-tree/lib/syntax/atrule/import.js +40 -0
- data/node_modules/css-tree/lib/syntax/atrule/index.js +7 -0
- data/node_modules/css-tree/lib/syntax/atrule/media.js +12 -0
- data/node_modules/css-tree/lib/syntax/atrule/page.js +12 -0
- data/node_modules/css-tree/lib/syntax/atrule/supports.js +89 -0
- data/node_modules/css-tree/lib/syntax/config/lexer.js +9 -0
- data/node_modules/css-tree/lib/syntax/config/mix.js +140 -0
- data/node_modules/css-tree/lib/syntax/config/parser.js +25 -0
- data/node_modules/css-tree/lib/syntax/config/walker.js +3 -0
- data/node_modules/css-tree/lib/syntax/create.js +77 -0
- data/node_modules/css-tree/lib/syntax/function/expression.js +7 -0
- data/node_modules/css-tree/lib/syntax/function/var.js +43 -0
- data/node_modules/css-tree/lib/syntax/index.js +21 -0
- data/node_modules/css-tree/lib/syntax/node/AnPlusB.js +297 -0
- data/node_modules/css-tree/lib/syntax/node/Atrule.js +107 -0
- data/node_modules/css-tree/lib/syntax/node/AtrulePrelude.js +51 -0
- data/node_modules/css-tree/lib/syntax/node/AttributeSelector.js +165 -0
- data/node_modules/css-tree/lib/syntax/node/Block.js +91 -0
- data/node_modules/css-tree/lib/syntax/node/Brackets.js +34 -0
- data/node_modules/css-tree/lib/syntax/node/CDC.js +19 -0
- data/node_modules/css-tree/lib/syntax/node/CDO.js +19 -0
- data/node_modules/css-tree/lib/syntax/node/ClassSelector.js +29 -0
- data/node_modules/css-tree/lib/syntax/node/Combinator.js +55 -0
- data/node_modules/css-tree/lib/syntax/node/Comment.js +36 -0
- data/node_modules/css-tree/lib/syntax/node/Declaration.js +169 -0
- data/node_modules/css-tree/lib/syntax/node/DeclarationList.js +49 -0
- data/node_modules/css-tree/lib/syntax/node/Dimension.js +29 -0
- data/node_modules/css-tree/lib/syntax/node/Function.js +40 -0
- data/node_modules/css-tree/lib/syntax/node/Hash.js +26 -0
- data/node_modules/css-tree/lib/syntax/node/IdSelector.js +27 -0
- data/node_modules/css-tree/lib/syntax/node/Identifier.js +20 -0
- data/node_modules/css-tree/lib/syntax/node/MediaFeature.js +76 -0
- data/node_modules/css-tree/lib/syntax/node/MediaQuery.js +68 -0
- data/node_modules/css-tree/lib/syntax/node/MediaQueryList.js +36 -0
- data/node_modules/css-tree/lib/syntax/node/Nth.js +51 -0
- data/node_modules/css-tree/lib/syntax/node/Number.js +18 -0
- data/node_modules/css-tree/lib/syntax/node/Operator.js +21 -0
- data/node_modules/css-tree/lib/syntax/node/Parentheses.js +34 -0
- data/node_modules/css-tree/lib/syntax/node/Percentage.js +27 -0
- data/node_modules/css-tree/lib/syntax/node/PseudoClassSelector.js +61 -0
- data/node_modules/css-tree/lib/syntax/node/PseudoElementSelector.js +62 -0
- data/node_modules/css-tree/lib/syntax/node/Ratio.js +66 -0
- data/node_modules/css-tree/lib/syntax/node/Raw.js +87 -0
- data/node_modules/css-tree/lib/syntax/node/Rule.js +54 -0
- data/node_modules/css-tree/lib/syntax/node/Selector.js +32 -0
- data/node_modules/css-tree/lib/syntax/node/SelectorList.js +39 -0
- data/node_modules/css-tree/lib/syntax/node/String.js +18 -0
- data/node_modules/css-tree/lib/syntax/node/StyleSheet.js +81 -0
- data/node_modules/css-tree/lib/syntax/node/TypeSelector.js +53 -0
- data/node_modules/css-tree/lib/syntax/node/UnicodeRange.js +173 -0
- data/node_modules/css-tree/lib/syntax/node/Url.js +69 -0
- data/node_modules/css-tree/lib/syntax/node/Value.js +19 -0
- data/node_modules/css-tree/lib/syntax/node/WhiteSpace.js +26 -0
- data/node_modules/css-tree/lib/syntax/node/index.js +42 -0
- data/node_modules/css-tree/lib/syntax/pseudo/common/nth.js +9 -0
- data/node_modules/css-tree/lib/syntax/pseudo/common/nthWithOfClause.js +9 -0
- data/node_modules/css-tree/lib/syntax/pseudo/common/selectorList.js +7 -0
- data/node_modules/css-tree/lib/syntax/pseudo/dir.js +7 -0
- data/node_modules/css-tree/lib/syntax/pseudo/has.js +7 -0
- data/node_modules/css-tree/lib/syntax/pseudo/index.js +12 -0
- data/node_modules/css-tree/lib/syntax/pseudo/lang.js +7 -0
- data/node_modules/css-tree/lib/syntax/pseudo/matches.js +1 -0
- data/node_modules/css-tree/lib/syntax/pseudo/not.js +1 -0
- data/node_modules/css-tree/lib/syntax/pseudo/nth-child.js +1 -0
- data/node_modules/css-tree/lib/syntax/pseudo/nth-last-child.js +1 -0
- data/node_modules/css-tree/lib/syntax/pseudo/nth-last-of-type.js +1 -0
- data/node_modules/css-tree/lib/syntax/pseudo/nth-of-type.js +1 -0
- data/node_modules/css-tree/lib/syntax/pseudo/slotted.js +7 -0
- data/node_modules/css-tree/lib/syntax/scope/atrulePrelude.js +3 -0
- data/node_modules/css-tree/lib/syntax/scope/default.js +87 -0
- data/node_modules/css-tree/lib/syntax/scope/index.js +5 -0
- data/node_modules/css-tree/lib/syntax/scope/selector.js +80 -0
- data/node_modules/css-tree/lib/syntax/scope/value.js +5 -0
- data/node_modules/css-tree/lib/tokenizer/char-code-definitions.js +249 -0
- data/node_modules/css-tree/lib/tokenizer/const.js +40 -0
- data/node_modules/css-tree/lib/tokenizer/index.js +591 -0
- data/node_modules/css-tree/lib/tokenizer/utils.js +243 -0
- data/node_modules/css-tree/lib/utils/clone.js +21 -0
- data/node_modules/css-tree/lib/utils/createCustomError.js +17 -0
- data/node_modules/css-tree/lib/utils/names.js +104 -0
- data/node_modules/css-tree/lib/walker/create.js +284 -0
- data/node_modules/css-tree/lib/walker/index.js +4 -0
- data/node_modules/css-tree/package.json +60 -0
- data/node_modules/csstype/LICENSE +19 -0
- data/node_modules/csstype/README.md +273 -0
- data/node_modules/csstype/index.d.ts +20553 -0
- data/node_modules/csstype/index.js.flow +6278 -0
- data/node_modules/csstype/package.json +62 -0
- data/node_modules/error-stack-parser/CHANGELOG.md +53 -0
- data/node_modules/error-stack-parser/LICENSE +19 -0
- data/node_modules/error-stack-parser/README.md +44 -0
- data/node_modules/error-stack-parser/dist/error-stack-parser.js +202 -0
- data/node_modules/error-stack-parser/dist/error-stack-parser.min.js +2 -0
- data/node_modules/error-stack-parser/dist/error-stack-parser.min.js.map +1 -0
- data/node_modules/error-stack-parser/error-stack-parser.d.ts +66 -0
- data/node_modules/error-stack-parser/error-stack-parser.js +202 -0
- data/node_modules/error-stack-parser/package.json +63 -0
- data/node_modules/fastest-stable-stringify/.eslintrc.yml +26 -0
- data/node_modules/fastest-stable-stringify/.travis.yml +7 -0
- data/node_modules/fastest-stable-stringify/LICENSE +18 -0
- data/node_modules/fastest-stable-stringify/README.md +44 -0
- data/node_modules/fastest-stable-stringify/benchmark/index.js +32 -0
- data/node_modules/fastest-stable-stringify/benchmark/test.json +215 -0
- data/node_modules/fastest-stable-stringify/example/key_cmp.js +7 -0
- data/node_modules/fastest-stable-stringify/example/nested.js +3 -0
- data/node_modules/fastest-stable-stringify/example/str.js +3 -0
- data/node_modules/fastest-stable-stringify/example/value_cmp.js +7 -0
- data/node_modules/fastest-stable-stringify/index.js +60 -0
- data/node_modules/fastest-stable-stringify/package.json +54 -0
- data/node_modules/fastest-stable-stringify/test/bench.js +20 -0
- data/node_modules/fastest-stable-stringify/test/nested.js +24 -0
- data/node_modules/fastest-stable-stringify/test/str.js +52 -0
- data/node_modules/fastest-stable-stringify/test/to-json.js +22 -0
- data/node_modules/hyphenate-style-name/LICENSE +28 -0
- data/node_modules/hyphenate-style-name/README.md +28 -0
- data/node_modules/hyphenate-style-name/index.cjs.js +21 -0
- data/node_modules/hyphenate-style-name/index.js +19 -0
- data/node_modules/hyphenate-style-name/package.json +42 -0
- data/node_modules/inline-style-prefixer/CHANGELOG.md +195 -0
- data/node_modules/inline-style-prefixer/LICENSE +22 -0
- data/node_modules/inline-style-prefixer/README.md +100 -0
- data/node_modules/inline-style-prefixer/es/createPrefixer.js +47 -0
- data/node_modules/inline-style-prefixer/es/data.js +12 -0
- data/node_modules/inline-style-prefixer/es/generator/generatePluginList.js +21 -0
- data/node_modules/inline-style-prefixer/es/generator/generatePrefixMap.js +75 -0
- data/node_modules/inline-style-prefixer/es/generator/index.js +69 -0
- data/node_modules/inline-style-prefixer/es/generator/maps/pluginMap.js +108 -0
- data/node_modules/inline-style-prefixer/es/generator/maps/propertyMap.js +38 -0
- data/node_modules/inline-style-prefixer/es/index.js +26 -0
- data/node_modules/inline-style-prefixer/es/plugins/backgroundClip.js +7 -0
- data/node_modules/inline-style-prefixer/es/plugins/calc.js +11 -0
- data/node_modules/inline-style-prefixer/es/plugins/crossFade.js +12 -0
- data/node_modules/inline-style-prefixer/es/plugins/cursor.js +16 -0
- data/node_modules/inline-style-prefixer/es/plugins/filter.js +12 -0
- data/node_modules/inline-style-prefixer/es/plugins/flex.js +10 -0
- data/node_modules/inline-style-prefixer/es/plugins/flexboxIE.js +67 -0
- data/node_modules/inline-style-prefixer/es/plugins/flexboxOld.js +33 -0
- data/node_modules/inline-style-prefixer/es/plugins/gradient.js +14 -0
- data/node_modules/inline-style-prefixer/es/plugins/grid.js +129 -0
- data/node_modules/inline-style-prefixer/es/plugins/imageSet.js +12 -0
- data/node_modules/inline-style-prefixer/es/plugins/index.js +17 -0
- data/node_modules/inline-style-prefixer/es/plugins/logical.js +35 -0
- data/node_modules/inline-style-prefixer/es/plugins/position.js +5 -0
- data/node_modules/inline-style-prefixer/es/plugins/sizing.js +26 -0
- data/node_modules/inline-style-prefixer/es/plugins/transition.js +75 -0
- data/node_modules/inline-style-prefixer/es/utils/addNewValuesOnly.js +15 -0
- data/node_modules/inline-style-prefixer/es/utils/capitalizeString.js +3 -0
- data/node_modules/inline-style-prefixer/es/utils/isObject.js +3 -0
- data/node_modules/inline-style-prefixer/es/utils/prefixProperty.js +22 -0
- data/node_modules/inline-style-prefixer/es/utils/prefixValue.js +11 -0
- data/node_modules/inline-style-prefixer/lib/createPrefixer.js +66 -0
- data/node_modules/inline-style-prefixer/lib/data.js +17 -0
- data/node_modules/inline-style-prefixer/lib/generator/generatePluginList.js +32 -0
- data/node_modules/inline-style-prefixer/lib/generator/generatePrefixMap.js +86 -0
- data/node_modules/inline-style-prefixer/lib/generator/index.js +85 -0
- data/node_modules/inline-style-prefixer/lib/generator/maps/pluginMap.js +113 -0
- data/node_modules/inline-style-prefixer/lib/generator/maps/propertyMap.js +43 -0
- data/node_modules/inline-style-prefixer/lib/index.js +78 -0
- data/node_modules/inline-style-prefixer/lib/plugins/backgroundClip.js +13 -0
- data/node_modules/inline-style-prefixer/lib/plugins/calc.js +21 -0
- data/node_modules/inline-style-prefixer/lib/plugins/crossFade.js +22 -0
- data/node_modules/inline-style-prefixer/lib/plugins/cursor.js +22 -0
- data/node_modules/inline-style-prefixer/lib/plugins/filter.js +22 -0
- data/node_modules/inline-style-prefixer/lib/plugins/flex.js +16 -0
- data/node_modules/inline-style-prefixer/lib/plugins/flexboxIE.js +73 -0
- data/node_modules/inline-style-prefixer/lib/plugins/flexboxOld.js +39 -0
- data/node_modules/inline-style-prefixer/lib/plugins/gradient.js +26 -0
- data/node_modules/inline-style-prefixer/lib/plugins/grid.js +136 -0
- data/node_modules/inline-style-prefixer/lib/plugins/imageSet.js +22 -0
- data/node_modules/inline-style-prefixer/lib/plugins/index.js +69 -0
- data/node_modules/inline-style-prefixer/lib/plugins/logical.js +41 -0
- data/node_modules/inline-style-prefixer/lib/plugins/position.js +11 -0
- data/node_modules/inline-style-prefixer/lib/plugins/sizing.js +32 -0
- data/node_modules/inline-style-prefixer/lib/plugins/transition.js +92 -0
- data/node_modules/inline-style-prefixer/lib/utils/addNewValuesOnly.js +21 -0
- data/node_modules/inline-style-prefixer/lib/utils/capitalizeString.js +9 -0
- data/node_modules/inline-style-prefixer/lib/utils/isObject.js +9 -0
- data/node_modules/inline-style-prefixer/lib/utils/prefixProperty.js +32 -0
- data/node_modules/inline-style-prefixer/lib/utils/prefixValue.js +17 -0
- data/node_modules/inline-style-prefixer/package.json +79 -0
- data/node_modules/isobject/LICENSE +21 -0
- data/node_modules/isobject/README.md +122 -0
- data/node_modules/isobject/index.d.ts +5 -0
- data/node_modules/isobject/index.js +12 -0
- data/node_modules/isobject/package.json +74 -0
- data/node_modules/js-tokens/CHANGELOG.md +151 -0
- data/node_modules/js-tokens/LICENSE +21 -0
- data/node_modules/js-tokens/README.md +240 -0
- data/node_modules/js-tokens/index.js +23 -0
- data/node_modules/js-tokens/package.json +30 -0
- data/node_modules/loose-envify/LICENSE +21 -0
- data/node_modules/loose-envify/README.md +45 -0
- data/node_modules/loose-envify/cli.js +16 -0
- data/node_modules/loose-envify/custom.js +4 -0
- data/node_modules/loose-envify/index.js +3 -0
- data/node_modules/loose-envify/loose-envify.js +36 -0
- data/node_modules/loose-envify/package.json +36 -0
- data/node_modules/loose-envify/replace.js +65 -0
- data/node_modules/mdn-data/LICENSE +116 -0
- data/node_modules/mdn-data/README.md +56 -0
- data/node_modules/mdn-data/api/index.js +3 -0
- data/node_modules/mdn-data/api/inheritance.json +2681 -0
- data/node_modules/mdn-data/api/inheritance.schema.json +31 -0
- data/node_modules/mdn-data/css/at-rules.json +560 -0
- data/node_modules/mdn-data/css/at-rules.schema.json +132 -0
- data/node_modules/mdn-data/css/definitions.json +77 -0
- data/node_modules/mdn-data/css/index.js +8 -0
- data/node_modules/mdn-data/css/properties.json +9163 -0
- data/node_modules/mdn-data/css/properties.schema.json +402 -0
- data/node_modules/mdn-data/css/selectors.json +927 -0
- data/node_modules/mdn-data/css/selectors.schema.json +36 -0
- data/node_modules/mdn-data/css/syntaxes.json +761 -0
- data/node_modules/mdn-data/css/syntaxes.schema.json +15 -0
- data/node_modules/mdn-data/css/types.json +265 -0
- data/node_modules/mdn-data/css/types.schema.json +32 -0
- data/node_modules/mdn-data/css/units.json +199 -0
- data/node_modules/mdn-data/css/units.schema.json +28 -0
- data/node_modules/mdn-data/index.js +5 -0
- data/node_modules/mdn-data/l10n/css.json +1567 -0
- data/node_modules/mdn-data/l10n/index.js +3 -0
- data/node_modules/mdn-data/package.json +39 -0
- data/node_modules/nano-css/.circleci/config.yml +85 -0
- data/node_modules/nano-css/.eslintrc.yml +27 -0
- data/node_modules/nano-css/.github/FUNDING.yml +3 -0
- data/node_modules/nano-css/.github/workflows/nodejs.yml +23 -0
- data/node_modules/nano-css/CHANGELOG.md +362 -0
- data/node_modules/nano-css/LICENSE +24 -0
- data/node_modules/nano-css/README.md +70 -0
- data/node_modules/nano-css/addon/__dev__/warnOnMissingDependencies.js +25 -0
- data/node_modules/nano-css/addon/__tests__/__snapshots__/reset.test.js.snap +407 -0
- data/node_modules/nano-css/addon/__tests__/__snapshots__/tachyons.test.js.snap +43 -0
- data/node_modules/nano-css/addon/__tests__/amp.server.dev.test.js +6 -0
- data/node_modules/nano-css/addon/__tests__/amp.server.test.js +223 -0
- data/node_modules/nano-css/addon/__tests__/atoms.dev.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/atoms.server.dev.test.js +8 -0
- data/node_modules/nano-css/addon/__tests__/atoms.server.test.js +6 -0
- data/node_modules/nano-css/addon/__tests__/atoms.test.js +49 -0
- data/node_modules/nano-css/addon/__tests__/cssom.server.test.js +12 -0
- data/node_modules/nano-css/addon/__tests__/emmet/emmet.dev.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/emmet/emmet.server.dev.test.js +8 -0
- data/node_modules/nano-css/addon/__tests__/emmet/emmet.server.test.js +6 -0
- data/node_modules/nano-css/addon/__tests__/emmet/emmet.test.js +219 -0
- data/node_modules/nano-css/addon/__tests__/env.js +6 -0
- data/node_modules/nano-css/addon/__tests__/extract.server.test.js +159 -0
- data/node_modules/nano-css/addon/__tests__/index.server.dev.test.js +6 -0
- data/node_modules/nano-css/addon/__tests__/index.server.test.js +4 -0
- data/node_modules/nano-css/addon/__tests__/index.test.js +257 -0
- data/node_modules/nano-css/addon/__tests__/jsx.dev.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/jsx.server.dev.test.js +6 -0
- data/node_modules/nano-css/addon/__tests__/jsx.server.test.js +4 -0
- data/node_modules/nano-css/addon/__tests__/jsx.test.js +33 -0
- data/node_modules/nano-css/addon/__tests__/keyframes.dev.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/keyframes.server.dev.test.js +6 -0
- data/node_modules/nano-css/addon/__tests__/keyframes.server.test.js +4 -0
- data/node_modules/nano-css/addon/__tests__/keyframes.test.js +131 -0
- data/node_modules/nano-css/addon/__tests__/limit.server.test.js +54 -0
- data/node_modules/nano-css/addon/__tests__/nesting.test.js +85 -0
- data/node_modules/nano-css/addon/__tests__/prefixer.test.js +121 -0
- data/node_modules/nano-css/addon/__tests__/put.dev.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/put.server.dev.test.js +6 -0
- data/node_modules/nano-css/addon/__tests__/put.server.test.js +4 -0
- data/node_modules/nano-css/addon/__tests__/put.test.js +75 -0
- data/node_modules/nano-css/addon/__tests__/reset.test.js +38 -0
- data/node_modules/nano-css/addon/__tests__/rule.dev.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/rule.server.dev.test.js +7 -0
- data/node_modules/nano-css/addon/__tests__/rule.server.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/rule.test.js +57 -0
- data/node_modules/nano-css/addon/__tests__/setup.js +7 -0
- data/node_modules/nano-css/addon/__tests__/sheet.test.js +74 -0
- data/node_modules/nano-css/addon/__tests__/snake.test.js +124 -0
- data/node_modules/nano-css/addon/__tests__/tachyons.test.js +45 -0
- data/node_modules/nano-css/addon/__tests__/units.dev.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/units.server.dev.test.js +6 -0
- data/node_modules/nano-css/addon/__tests__/units.server.test.js +4 -0
- data/node_modules/nano-css/addon/__tests__/units.test.js +41 -0
- data/node_modules/nano-css/addon/__tests__/validate.dev.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/validate.test.js +69 -0
- data/node_modules/nano-css/addon/__tests__/vcssom.server.test.js +14 -0
- data/node_modules/nano-css/addon/__tests__/virtual.dev.test.js +5 -0
- data/node_modules/nano-css/addon/__tests__/virtual.server.dev.test.js +6 -0
- data/node_modules/nano-css/addon/__tests__/virtual.server.test.js +4 -0
- data/node_modules/nano-css/addon/__tests__/virtual.test.js +225 -0
- data/node_modules/nano-css/addon/amp.d.ts +5 -0
- data/node_modules/nano-css/addon/amp.js +156 -0
- data/node_modules/nano-css/addon/animate/fadeIn.js +22 -0
- data/node_modules/nano-css/addon/animate/fadeInDown.js +25 -0
- data/node_modules/nano-css/addon/animate/fadeInScale.js +25 -0
- data/node_modules/nano-css/addon/animate/fadeOut.js +23 -0
- data/node_modules/nano-css/addon/animate/fadeOutScale.js +21 -0
- data/node_modules/nano-css/addon/array.d.ts +5 -0
- data/node_modules/nano-css/addon/array.js +33 -0
- data/node_modules/nano-css/addon/atoms.d.ts +243 -0
- data/node_modules/nano-css/addon/atoms.js +63 -0
- data/node_modules/nano-css/addon/cache.d.ts +8 -0
- data/node_modules/nano-css/addon/cache.js +17 -0
- data/node_modules/nano-css/addon/component.d.ts +7 -0
- data/node_modules/nano-css/addon/component.js +26 -0
- data/node_modules/nano-css/addon/cssom.d.ts +17 -0
- data/node_modules/nano-css/addon/cssom.js +36 -0
- data/node_modules/nano-css/addon/decorator.d.ts +7 -0
- data/node_modules/nano-css/addon/decorator.js +43 -0
- data/node_modules/nano-css/addon/drule.d.ts +8 -0
- data/node_modules/nano-css/addon/drule.js +27 -0
- data/node_modules/nano-css/addon/dsheet.d.ts +8 -0
- data/node_modules/nano-css/addon/dsheet.js +36 -0
- data/node_modules/nano-css/addon/emmet.d.ts +614 -0
- data/node_modules/nano-css/addon/emmet.js +177 -0
- data/node_modules/nano-css/addon/extract.d.ts +5 -0
- data/node_modules/nano-css/addon/extract.js +59 -0
- data/node_modules/nano-css/addon/global.d.ts +8 -0
- data/node_modules/nano-css/addon/global.js +19 -0
- data/node_modules/nano-css/addon/googleFont.d.ts +8 -0
- data/node_modules/nano-css/addon/googleFont.js +43 -0
- data/node_modules/nano-css/addon/hydrate.d.ts +7 -0
- data/node_modules/nano-css/addon/hydrate.js +28 -0
- data/node_modules/nano-css/addon/hyperstyle.js +27 -0
- data/node_modules/nano-css/addon/important.js +38 -0
- data/node_modules/nano-css/addon/jsx.js +60 -0
- data/node_modules/nano-css/addon/keyframes.d.ts +34 -0
- data/node_modules/nano-css/addon/keyframes.js +61 -0
- data/node_modules/nano-css/addon/limit.js +26 -0
- data/node_modules/nano-css/addon/nesting.js +37 -0
- data/node_modules/nano-css/addon/pipe.js +57 -0
- data/node_modules/nano-css/addon/prefixer.js +79 -0
- data/node_modules/nano-css/addon/ref.js +87 -0
- data/node_modules/nano-css/addon/reset/EricMeyer.js +48 -0
- data/node_modules/nano-css/addon/reset/EricMeyerCondensed.js +44 -0
- data/node_modules/nano-css/addon/reset/Minimalistic.js +16 -0
- data/node_modules/nano-css/addon/reset/Minimalistic2.js +17 -0
- data/node_modules/nano-css/addon/reset/Minimalistic3.js +18 -0
- data/node_modules/nano-css/addon/reset/Normalize.js +83 -0
- data/node_modules/nano-css/addon/reset/PoorMan.js +25 -0
- data/node_modules/nano-css/addon/reset/ShaunInman.js +42 -0
- data/node_modules/nano-css/addon/reset/Siolon.js +34 -0
- data/node_modules/nano-css/addon/reset/Tantek.js +31 -0
- data/node_modules/nano-css/addon/reset/Tripoli.js +75 -0
- data/node_modules/nano-css/addon/reset/Universal.js +23 -0
- data/node_modules/nano-css/addon/reset/Yahoo.js +43 -0
- data/node_modules/nano-css/addon/reset-font.js +24 -0
- data/node_modules/nano-css/addon/rtl.js +15 -0
- data/node_modules/nano-css/addon/rule.d.ts +26 -0
- data/node_modules/nano-css/addon/rule.js +39 -0
- data/node_modules/nano-css/addon/sheet.d.ts +22 -0
- data/node_modules/nano-css/addon/sheet.js +45 -0
- data/node_modules/nano-css/addon/snake.js +141 -0
- data/node_modules/nano-css/addon/sourcemaps.js +96 -0
- data/node_modules/nano-css/addon/spread.js +23 -0
- data/node_modules/nano-css/addon/stable.js +7 -0
- data/node_modules/nano-css/addon/style.js +33 -0
- data/node_modules/nano-css/addon/styled.js +161 -0
- data/node_modules/nano-css/addon/stylis/plugin-onRule.js +43 -0
- data/node_modules/nano-css/addon/stylis.js +28 -0
- data/node_modules/nano-css/addon/tachyons.js +215 -0
- data/node_modules/nano-css/addon/unitless.js +78 -0
- data/node_modules/nano-css/addon/units.d.ts +89 -0
- data/node_modules/nano-css/addon/units.js +27 -0
- data/node_modules/nano-css/addon/useStyles.js +24 -0
- data/node_modules/nano-css/addon/util/cloneElement.js +11 -0
- data/node_modules/nano-css/addon/util/transformComponentDynamic.js +50 -0
- data/node_modules/nano-css/addon/util/transformComponentStatic.js +26 -0
- data/node_modules/nano-css/addon/validate.js +82 -0
- data/node_modules/nano-css/addon/vcssom/__tests__/cssToTree.test.js +159 -0
- data/node_modules/nano-css/addon/vcssom/cssToTree.d.ts +15 -0
- data/node_modules/nano-css/addon/vcssom/cssToTree.js +42 -0
- data/node_modules/nano-css/addon/vcssom/removeRule.d.ts +3 -0
- data/node_modules/nano-css/addon/vcssom/removeRule.js +15 -0
- data/node_modules/nano-css/addon/vcssom.d.ts +72 -0
- data/node_modules/nano-css/addon/vcssom.js +97 -0
- data/node_modules/nano-css/addon/virtual.js +107 -0
- data/node_modules/nano-css/addon/withStyles.js +32 -0
- data/node_modules/nano-css/index.d.ts +4 -0
- data/node_modules/nano-css/index.js +138 -0
- data/node_modules/nano-css/package.json +145 -0
- data/node_modules/nano-css/preset/react.js +43 -0
- data/node_modules/nano-css/preset/sheet.d.ts +5 -0
- data/node_modules/nano-css/preset/sheet.js +27 -0
- data/node_modules/nano-css/preset/vdom.js +40 -0
- data/node_modules/nano-css/prettier.config.js +13 -0
- data/node_modules/nano-css/renovate.json +3 -0
- data/node_modules/nano-css/types/common.d.ts +14 -0
- data/node_modules/nano-css/types/demo.ts +7 -0
- data/node_modules/nano-css/types/nano.d.ts +171 -0
- data/node_modules/object-assign/index.js +90 -0
- data/node_modules/object-assign/license +21 -0
- data/node_modules/object-assign/package.json +42 -0
- data/node_modules/object-assign/readme.md +61 -0
- data/node_modules/preact/LICENSE +21 -0
- data/node_modules/preact/README.md +187 -0
- data/node_modules/preact/compat/LICENSE +21 -0
- data/node_modules/preact/compat/dist/compat.js +2 -0
- data/node_modules/preact/compat/dist/compat.js.map +1 -0
- data/node_modules/preact/compat/dist/compat.mjs +2 -0
- data/node_modules/preact/compat/dist/compat.mjs.map +1 -0
- data/node_modules/preact/compat/dist/compat.modern.js +2 -0
- data/node_modules/preact/compat/dist/compat.modern.js.map +1 -0
- data/node_modules/preact/compat/dist/compat.module.js +2 -0
- data/node_modules/preact/compat/dist/compat.module.js.map +1 -0
- data/node_modules/preact/compat/dist/compat.umd.js +2 -0
- data/node_modules/preact/compat/dist/compat.umd.js.map +1 -0
- data/node_modules/preact/compat/jsx-dev-runtime.js +1 -0
- data/node_modules/preact/compat/jsx-dev-runtime.mjs +1 -0
- data/node_modules/preact/compat/jsx-runtime.js +1 -0
- data/node_modules/preact/compat/jsx-runtime.mjs +1 -0
- data/node_modules/preact/compat/package.json +19 -0
- data/node_modules/preact/compat/scheduler.js +15 -0
- data/node_modules/preact/compat/scheduler.mjs +23 -0
- data/node_modules/preact/compat/server.js +15 -0
- data/node_modules/preact/compat/server.mjs +4 -0
- data/node_modules/preact/compat/src/Children.js +21 -0
- data/node_modules/preact/compat/src/PureComponent.js +15 -0
- data/node_modules/preact/compat/src/forwardRef.js +51 -0
- data/node_modules/preact/compat/src/index.d.ts +140 -0
- data/node_modules/preact/compat/src/index.js +187 -0
- data/node_modules/preact/compat/src/internal.d.ts +47 -0
- data/node_modules/preact/compat/src/memo.js +34 -0
- data/node_modules/preact/compat/src/portals.js +80 -0
- data/node_modules/preact/compat/src/render.js +219 -0
- data/node_modules/preact/compat/src/suspense-list.d.ts +14 -0
- data/node_modules/preact/compat/src/suspense-list.js +126 -0
- data/node_modules/preact/compat/src/suspense.d.ts +15 -0
- data/node_modules/preact/compat/src/suspense.js +270 -0
- data/node_modules/preact/compat/src/util.js +28 -0
- data/node_modules/preact/compat/test-utils.js +1 -0
- data/node_modules/preact/debug/LICENSE +21 -0
- data/node_modules/preact/debug/dist/debug.js +2 -0
- data/node_modules/preact/debug/dist/debug.js.map +1 -0
- data/node_modules/preact/debug/dist/debug.mjs +2 -0
- data/node_modules/preact/debug/dist/debug.mjs.map +1 -0
- data/node_modules/preact/debug/dist/debug.modern.js +2 -0
- data/node_modules/preact/debug/dist/debug.modern.js.map +1 -0
- data/node_modules/preact/debug/dist/debug.module.js +2 -0
- data/node_modules/preact/debug/dist/debug.module.js.map +1 -0
- data/node_modules/preact/debug/dist/debug.umd.js +2 -0
- data/node_modules/preact/debug/dist/debug.umd.js.map +1 -0
- data/node_modules/preact/debug/package.json +18 -0
- data/node_modules/preact/debug/src/check-props.js +54 -0
- data/node_modules/preact/debug/src/component-stack.js +146 -0
- data/node_modules/preact/debug/src/constants.js +3 -0
- data/node_modules/preact/debug/src/debug.js +442 -0
- data/node_modules/preact/debug/src/index.js +6 -0
- data/node_modules/preact/debug/src/internal.d.ts +82 -0
- data/node_modules/preact/debug/src/util.js +11 -0
- data/node_modules/preact/devtools/LICENSE +21 -0
- data/node_modules/preact/devtools/dist/devtools.js +2 -0
- data/node_modules/preact/devtools/dist/devtools.js.map +1 -0
- data/node_modules/preact/devtools/dist/devtools.mjs +2 -0
- data/node_modules/preact/devtools/dist/devtools.mjs.map +1 -0
- data/node_modules/preact/devtools/dist/devtools.modern.js +2 -0
- data/node_modules/preact/devtools/dist/devtools.modern.js.map +1 -0
- data/node_modules/preact/devtools/dist/devtools.module.js +2 -0
- data/node_modules/preact/devtools/dist/devtools.module.js.map +1 -0
- data/node_modules/preact/devtools/dist/devtools.umd.js +2 -0
- data/node_modules/preact/devtools/dist/devtools.umd.js.map +1 -0
- data/node_modules/preact/devtools/package.json +16 -0
- data/node_modules/preact/devtools/src/devtools.js +10 -0
- data/node_modules/preact/devtools/src/index.d.ts +8 -0
- data/node_modules/preact/devtools/src/index.js +15 -0
- data/node_modules/preact/dist/preact.js +2 -0
- data/node_modules/preact/dist/preact.js.map +1 -0
- data/node_modules/preact/dist/preact.min.js +2 -0
- data/node_modules/preact/dist/preact.min.js.map +1 -0
- data/node_modules/preact/dist/preact.mjs +2 -0
- data/node_modules/preact/dist/preact.mjs.map +1 -0
- data/node_modules/preact/dist/preact.module.js +2 -0
- data/node_modules/preact/dist/preact.module.js.map +1 -0
- data/node_modules/preact/dist/preact.umd.js +2 -0
- data/node_modules/preact/dist/preact.umd.js.map +1 -0
- data/node_modules/preact/hooks/LICENSE +21 -0
- data/node_modules/preact/hooks/dist/hooks.js +2 -0
- data/node_modules/preact/hooks/dist/hooks.js.map +1 -0
- data/node_modules/preact/hooks/dist/hooks.mjs +2 -0
- data/node_modules/preact/hooks/dist/hooks.mjs.map +1 -0
- data/node_modules/preact/hooks/dist/hooks.modern.js +2 -0
- data/node_modules/preact/hooks/dist/hooks.modern.js.map +1 -0
- data/node_modules/preact/hooks/dist/hooks.module.js +2 -0
- data/node_modules/preact/hooks/dist/hooks.module.js.map +1 -0
- data/node_modules/preact/hooks/dist/hooks.umd.js +2 -0
- data/node_modules/preact/hooks/dist/hooks.umd.js.map +1 -0
- data/node_modules/preact/hooks/package.json +26 -0
- data/node_modules/preact/hooks/src/index.d.ts +133 -0
- data/node_modules/preact/hooks/src/index.js +386 -0
- data/node_modules/preact/hooks/src/internal.d.ts +75 -0
- data/node_modules/preact/jsx-runtime/LICENSE +21 -0
- data/node_modules/preact/jsx-runtime/dist/jsxRuntime.js +2 -0
- data/node_modules/preact/jsx-runtime/dist/jsxRuntime.js.map +1 -0
- data/node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs +2 -0
- data/node_modules/preact/jsx-runtime/dist/jsxRuntime.modern.js +2 -0
- data/node_modules/preact/jsx-runtime/dist/jsxRuntime.modern.js.map +1 -0
- data/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js +2 -0
- data/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js.map +1 -0
- data/node_modules/preact/jsx-runtime/dist/jsxRuntime.umd.js +2 -0
- data/node_modules/preact/jsx-runtime/dist/jsxRuntime.umd.js.map +1 -0
- data/node_modules/preact/jsx-runtime/package.json +19 -0
- data/node_modules/preact/jsx-runtime/src/index.d.ts +50 -0
- data/node_modules/preact/jsx-runtime/src/index.js +77 -0
- data/node_modules/preact/package.json +270 -0
- data/node_modules/preact/src/cjs.js +3 -0
- data/node_modules/preact/src/clone-element.js +34 -0
- data/node_modules/preact/src/component.js +225 -0
- data/node_modules/preact/src/constants.js +3 -0
- data/node_modules/preact/src/create-context.js +68 -0
- data/node_modules/preact/src/create-element.js +97 -0
- data/node_modules/preact/src/diff/catch-error.js +38 -0
- data/node_modules/preact/src/diff/children.js +347 -0
- data/node_modules/preact/src/diff/index.js +514 -0
- data/node_modules/preact/src/diff/props.js +158 -0
- data/node_modules/preact/src/index.d.ts +310 -0
- data/node_modules/preact/src/index.js +13 -0
- data/node_modules/preact/src/internal.d.ts +146 -0
- data/node_modules/preact/src/jsx.d.ts +962 -0
- data/node_modules/preact/src/options.js +16 -0
- data/node_modules/preact/src/render.js +75 -0
- data/node_modules/preact/src/util.js +27 -0
- data/node_modules/preact/test-utils/dist/testUtils.js +2 -0
- data/node_modules/preact/test-utils/dist/testUtils.js.map +1 -0
- data/node_modules/preact/test-utils/dist/testUtils.mjs +2 -0
- data/node_modules/preact/test-utils/dist/testUtils.mjs.map +1 -0
- data/node_modules/preact/test-utils/dist/testUtils.modern.js +2 -0
- data/node_modules/preact/test-utils/dist/testUtils.modern.js.map +1 -0
- data/node_modules/preact/test-utils/dist/testUtils.module.js +2 -0
- data/node_modules/preact/test-utils/dist/testUtils.module.js.map +1 -0
- data/node_modules/preact/test-utils/dist/testUtils.umd.js +2 -0
- data/node_modules/preact/test-utils/dist/testUtils.umd.js.map +1 -0
- data/node_modules/preact/test-utils/package.json +19 -0
- data/node_modules/preact/test-utils/src/index.d.ts +3 -0
- data/node_modules/preact/test-utils/src/index.js +117 -0
- data/node_modules/preact-deep-force-update/.babelrc +8 -0
- data/node_modules/preact-deep-force-update/.eslintrc +66 -0
- data/node_modules/preact-deep-force-update/.npmignore +2 -0
- data/node_modules/preact-deep-force-update/.travis.yml +3 -0
- data/node_modules/preact-deep-force-update/LICENSE +21 -0
- data/node_modules/preact-deep-force-update/README.md +53 -0
- data/node_modules/preact-deep-force-update/dist/deep-force-update.js +36 -0
- data/node_modules/preact-deep-force-update/dist/deep-force-update.js.map +1 -0
- data/node_modules/preact-deep-force-update/dist/deep-force-update.min.js +2 -0
- data/node_modules/preact-deep-force-update/dist/deep-force-update.min.js.map +1 -0
- data/node_modules/preact-deep-force-update/karma.conf.js +32 -0
- data/node_modules/preact-deep-force-update/package.json +80 -0
- data/node_modules/preact-deep-force-update/rollup.config.js +17 -0
- data/node_modules/preact-deep-force-update/src/index.js +27 -0
- data/node_modules/preact-deep-force-update/test/index.js +50 -0
- data/node_modules/preact-render-to-string/LICENSE +21 -0
- data/node_modules/preact-render-to-string/README.md +102 -0
- data/node_modules/preact-render-to-string/dist/commonjs.js +2 -0
- data/node_modules/preact-render-to-string/dist/commonjs.js.map +1 -0
- data/node_modules/preact-render-to-string/dist/index.d.ts +16 -0
- data/node_modules/preact-render-to-string/dist/index.js +1 -0
- data/node_modules/preact-render-to-string/dist/index.js.map +1 -0
- data/node_modules/preact-render-to-string/dist/index.mjs +2 -0
- data/node_modules/preact-render-to-string/dist/index.module.js +2 -0
- data/node_modules/preact-render-to-string/dist/index.module.js.map +1 -0
- data/node_modules/preact-render-to-string/dist/jsx-entry.js +2 -0
- data/node_modules/preact-render-to-string/dist/jsx-entry.js.map +1 -0
- data/node_modules/preact-render-to-string/dist/jsx.d.ts +13 -0
- data/node_modules/preact-render-to-string/dist/jsx.js +1 -0
- data/node_modules/preact-render-to-string/dist/jsx.js.map +1 -0
- data/node_modules/preact-render-to-string/dist/jsx.mjs +2 -0
- data/node_modules/preact-render-to-string/dist/jsx.modern.js +2 -0
- data/node_modules/preact-render-to-string/dist/jsx.modern.js.map +1 -0
- data/node_modules/preact-render-to-string/dist/jsx.module.js +2 -0
- data/node_modules/preact-render-to-string/dist/jsx.module.js.map +1 -0
- data/node_modules/preact-render-to-string/dist/preact-render-to-string-tests.d.ts +1 -0
- data/node_modules/preact-render-to-string/jsx.js +1 -0
- data/node_modules/preact-render-to-string/package.json +139 -0
- data/node_modules/preact-render-to-string/src/index.d.ts +16 -0
- data/node_modules/preact-render-to-string/src/index.js +438 -0
- data/node_modules/preact-render-to-string/src/jsx.d.ts +13 -0
- data/node_modules/preact-render-to-string/src/jsx.js +76 -0
- data/node_modules/preact-render-to-string/src/polyfills.js +8 -0
- data/node_modules/preact-render-to-string/src/preact-render-to-string-tests.d.ts +1 -0
- data/node_modules/preact-render-to-string/src/util.js +78 -0
- data/node_modules/preact-render-to-string/typings.json +5 -0
- data/node_modules/pretty-format/.npmignore +3 -0
- data/node_modules/pretty-format/LICENSE.md +15 -0
- data/node_modules/pretty-format/README.md +94 -0
- data/node_modules/pretty-format/index.js +343 -0
- data/node_modules/pretty-format/package.json +26 -0
- data/node_modules/pretty-format/plugins/ReactElement.js +74 -0
- data/node_modules/pretty-format/plugins/ReactTestComponent.js +58 -0
- data/node_modules/pretty-format/printString.js +7 -0
- data/node_modules/react/LICENSE +21 -0
- data/node_modules/react/README.md +13 -0
- data/node_modules/react/build-info.json +8 -0
- data/node_modules/react/cjs/react-jsx-dev-runtime.development.js +1203 -0
- data/node_modules/react/cjs/react-jsx-dev-runtime.production.min.js +9 -0
- data/node_modules/react/cjs/react-jsx-dev-runtime.profiling.min.js +9 -0
- data/node_modules/react/cjs/react-jsx-runtime.development.js +1221 -0
- data/node_modules/react/cjs/react-jsx-runtime.production.min.js +10 -0
- data/node_modules/react/cjs/react-jsx-runtime.profiling.min.js +10 -0
- data/node_modules/react/cjs/react.development.js +2333 -0
- data/node_modules/react/cjs/react.production.min.js +23 -0
- data/node_modules/react/index.js +7 -0
- data/node_modules/react/jsx-dev-runtime.js +7 -0
- data/node_modules/react/jsx-runtime.js +7 -0
- data/node_modules/react/package.json +39 -0
- data/node_modules/react/umd/react.development.js +3357 -0
- data/node_modules/react/umd/react.production.min.js +31 -0
- data/node_modules/react/umd/react.profiling.min.js +36 -0
- data/node_modules/react-dom/LICENSE +21 -0
- data/node_modules/react-dom/README.md +54 -0
- data/node_modules/react-dom/build-info.json +8 -0
- data/node_modules/react-dom/cjs/react-dom-server.browser.development.js +4342 -0
- data/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js +51 -0
- data/node_modules/react-dom/cjs/react-dom-server.node.development.js +4383 -0
- data/node_modules/react-dom/cjs/react-dom-server.node.production.min.js +52 -0
- data/node_modules/react-dom/cjs/react-dom-test-utils.development.js +2118 -0
- data/node_modules/react-dom/cjs/react-dom-test-utils.production.min.js +43 -0
- data/node_modules/react-dom/cjs/react-dom.development.js +26262 -0
- data/node_modules/react-dom/cjs/react-dom.production.min.js +297 -0
- data/node_modules/react-dom/cjs/react-dom.profiling.min.js +310 -0
- data/node_modules/react-dom/index.js +38 -0
- data/node_modules/react-dom/package.json +49 -0
- data/node_modules/react-dom/profiling.js +38 -0
- data/node_modules/react-dom/server.browser.js +7 -0
- data/node_modules/react-dom/server.js +3 -0
- data/node_modules/react-dom/server.node.js +7 -0
- data/node_modules/react-dom/test-utils.js +7 -0
- data/node_modules/react-dom/umd/react-dom-server.browser.development.js +4341 -0
- data/node_modules/react-dom/umd/react-dom-server.browser.production.min.js +46 -0
- data/node_modules/react-dom/umd/react-dom-test-utils.development.js +2136 -0
- data/node_modules/react-dom/umd/react-dom-test-utils.production.min.js +35 -0
- data/node_modules/react-dom/umd/react-dom.development.js +26292 -0
- data/node_modules/react-dom/umd/react-dom.production.min.js +245 -0
- data/node_modules/react-dom/umd/react-dom.profiling.min.js +252 -0
- data/node_modules/regenerator-runtime/LICENSE +21 -0
- data/node_modules/regenerator-runtime/README.md +31 -0
- data/node_modules/regenerator-runtime/package.json +19 -0
- data/node_modules/regenerator-runtime/path.js +11 -0
- data/node_modules/regenerator-runtime/runtime.js +754 -0
- data/node_modules/rtl-css-js/CHANGELOG.md +5 -0
- data/node_modules/rtl-css-js/LICENSE +20 -0
- data/node_modules/rtl-css-js/README.md +205 -0
- data/node_modules/rtl-css-js/core/package.json +6 -0
- data/node_modules/rtl-css-js/core.d.ts +163 -0
- data/node_modules/rtl-css-js/core.esm.d.ts +1 -0
- data/node_modules/rtl-css-js/core.esm.js +9 -0
- data/node_modules/rtl-css-js/dist/cjs/convert-a10c80e3.js +509 -0
- data/node_modules/rtl-css-js/dist/cjs/core.js +30 -0
- data/node_modules/rtl-css-js/dist/cjs/index.js +7 -0
- data/node_modules/rtl-css-js/dist/esm/convert-09159978.js +487 -0
- data/node_modules/rtl-css-js/dist/esm/core.js +1 -0
- data/node_modules/rtl-css-js/dist/esm/index.js +5 -0
- data/node_modules/rtl-css-js/dist/rtl-css-js.core.umd.js +519 -0
- data/node_modules/rtl-css-js/dist/rtl-css-js.core.umd.js.map +1 -0
- data/node_modules/rtl-css-js/dist/rtl-css-js.core.umd.min.js +2 -0
- data/node_modules/rtl-css-js/dist/rtl-css-js.core.umd.min.js.map +1 -0
- data/node_modules/rtl-css-js/dist/rtl-css-js.umd.js +496 -0
- data/node_modules/rtl-css-js/dist/rtl-css-js.umd.js.map +1 -0
- data/node_modules/rtl-css-js/dist/rtl-css-js.umd.min.js +2 -0
- data/node_modules/rtl-css-js/dist/rtl-css-js.umd.min.js.map +1 -0
- data/node_modules/rtl-css-js/package.json +66 -0
- data/node_modules/rtl-css-js/types.d.ts +8 -0
- data/node_modules/scheduler/LICENSE +21 -0
- data/node_modules/scheduler/README.md +9 -0
- data/node_modules/scheduler/build-info.json +8 -0
- data/node_modules/scheduler/cjs/scheduler-tracing.development.js +347 -0
- data/node_modules/scheduler/cjs/scheduler-tracing.production.min.js +9 -0
- data/node_modules/scheduler/cjs/scheduler-tracing.profiling.min.js +16 -0
- data/node_modules/scheduler/cjs/scheduler-unstable_mock.development.js +665 -0
- data/node_modules/scheduler/cjs/scheduler-unstable_mock.production.min.js +19 -0
- data/node_modules/scheduler/cjs/scheduler-unstable_post_task.development.js +206 -0
- data/node_modules/scheduler/cjs/scheduler-unstable_post_task.production.min.js +13 -0
- data/node_modules/scheduler/cjs/scheduler.development.js +646 -0
- data/node_modules/scheduler/cjs/scheduler.production.min.js +20 -0
- data/node_modules/scheduler/index.js +7 -0
- data/node_modules/scheduler/package.json +40 -0
- data/node_modules/scheduler/tracing-profiling.js +7 -0
- data/node_modules/scheduler/tracing.js +7 -0
- data/node_modules/scheduler/umd/scheduler-tracing.development.js +80 -0
- data/node_modules/scheduler/umd/scheduler-tracing.production.min.js +80 -0
- data/node_modules/scheduler/umd/scheduler-tracing.profiling.min.js +80 -0
- data/node_modules/scheduler/umd/scheduler-unstable_mock.development.js +664 -0
- data/node_modules/scheduler/umd/scheduler-unstable_mock.production.min.js +18 -0
- data/node_modules/scheduler/umd/scheduler.development.js +152 -0
- data/node_modules/scheduler/umd/scheduler.production.min.js +146 -0
- data/node_modules/scheduler/umd/scheduler.profiling.min.js +146 -0
- data/node_modules/scheduler/unstable_mock.js +7 -0
- data/node_modules/scheduler/unstable_post_task.js +7 -0
- data/node_modules/source-map/CHANGELOG.md +301 -0
- data/node_modules/source-map/LICENSE +28 -0
- data/node_modules/source-map/README.md +742 -0
- data/node_modules/source-map/dist/source-map.debug.js +3234 -0
- data/node_modules/source-map/dist/source-map.js +3233 -0
- data/node_modules/source-map/dist/source-map.min.js +2 -0
- data/node_modules/source-map/dist/source-map.min.js.map +1 -0
- data/node_modules/source-map/lib/array-set.js +121 -0
- data/node_modules/source-map/lib/base64-vlq.js +140 -0
- data/node_modules/source-map/lib/base64.js +67 -0
- data/node_modules/source-map/lib/binary-search.js +111 -0
- data/node_modules/source-map/lib/mapping-list.js +79 -0
- data/node_modules/source-map/lib/quick-sort.js +114 -0
- data/node_modules/source-map/lib/source-map-consumer.js +1145 -0
- data/node_modules/source-map/lib/source-map-generator.js +425 -0
- data/node_modules/source-map/lib/source-node.js +413 -0
- data/node_modules/source-map/lib/util.js +488 -0
- data/node_modules/source-map/package.json +73 -0
- data/node_modules/source-map/source-map.d.ts +98 -0
- data/node_modules/source-map/source-map.js +8 -0
- data/node_modules/sourcemap-codec/CHANGELOG.md +64 -0
- data/node_modules/sourcemap-codec/LICENSE +21 -0
- data/node_modules/sourcemap-codec/README.md +63 -0
- data/node_modules/sourcemap-codec/dist/sourcemap-codec.es.js +124 -0
- data/node_modules/sourcemap-codec/dist/sourcemap-codec.es.js.map +1 -0
- data/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js +135 -0
- data/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js.map +1 -0
- data/node_modules/sourcemap-codec/dist/types/sourcemap-codec.d.ts +5 -0
- data/node_modules/sourcemap-codec/package.json +53 -0
- data/node_modules/stack-generator/.eslintrc.yml +32 -0
- data/node_modules/stack-generator/CHANGELOG.md +18 -0
- data/node_modules/stack-generator/CONTRIBUTING.md +27 -0
- data/node_modules/stack-generator/LICENSE +19 -0
- data/node_modules/stack-generator/README.md +28 -0
- data/node_modules/stack-generator/bower.json +33 -0
- data/node_modules/stack-generator/component.json +17 -0
- data/node_modules/stack-generator/dist/stack-generator.js +45 -0
- data/node_modules/stack-generator/dist/stack-generator.min.js +2 -0
- data/node_modules/stack-generator/dist/stack-generator.min.js.map +1 -0
- data/node_modules/stack-generator/karma.conf.ci.js +108 -0
- data/node_modules/stack-generator/karma.conf.js +26 -0
- data/node_modules/stack-generator/package.json +53 -0
- data/node_modules/stack-generator/stack-generator.js +45 -0
- data/node_modules/stackframe/.eslintrc.yml +29 -0
- data/node_modules/stackframe/CHANGELOG.md +39 -0
- data/node_modules/stackframe/CONTRIBUTING.md +28 -0
- data/node_modules/stackframe/LICENSE +19 -0
- data/node_modules/stackframe/README.md +78 -0
- data/node_modules/stackframe/bower.json +31 -0
- data/node_modules/stackframe/component.json +16 -0
- data/node_modules/stackframe/dist/stackframe.js +143 -0
- data/node_modules/stackframe/dist/stackframe.min.js +2 -0
- data/node_modules/stackframe/dist/stackframe.min.js.map +1 -0
- data/node_modules/stackframe/karma.conf.ci.js +105 -0
- data/node_modules/stackframe/karma.conf.js +23 -0
- data/node_modules/stackframe/package.json +51 -0
- data/node_modules/stackframe/stackframe-tests.ts +47 -0
- data/node_modules/stackframe/stackframe.d.ts +74 -0
- data/node_modules/stackframe/stackframe.js +143 -0
- data/node_modules/stacktrace-gps/CHANGELOG.md +60 -0
- data/node_modules/stacktrace-gps/LICENSE +19 -0
- data/node_modules/stacktrace-gps/README.md +89 -0
- data/node_modules/stacktrace-gps/dist/polyfills.js +5 -0
- data/node_modules/stacktrace-gps/dist/stacktrace-gps-with-polyfills.min.js +2 -0
- data/node_modules/stacktrace-gps/dist/stacktrace-gps-with-polyfills.min.js.map +1 -0
- data/node_modules/stacktrace-gps/dist/stacktrace-gps.js +342 -0
- data/node_modules/stacktrace-gps/dist/stacktrace-gps.min.js +2 -0
- data/node_modules/stacktrace-gps/dist/stacktrace-gps.min.js.map +1 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/CHANGELOG.md +301 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/LICENSE +28 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/README.md +729 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/dist/source-map.debug.js +3056 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/dist/source-map.js +3055 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/dist/source-map.min.js +2 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/dist/source-map.min.js.map +1 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/array-set.js +104 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/base64-vlq.js +140 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/base64.js +67 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/binary-search.js +111 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/mapping-list.js +79 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/quick-sort.js +114 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/source-map-consumer.js +1082 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/source-map-generator.js +404 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/source-node.js +407 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/lib/util.js +417 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/package.json +71 -0
- data/node_modules/stacktrace-gps/node_modules/source-map/source-map.js +8 -0
- data/node_modules/stacktrace-gps/package.json +66 -0
- data/node_modules/stacktrace-gps/stacktrace-gps.js +342 -0
- data/node_modules/stacktrace-js/CHANGELOG.md +97 -0
- data/node_modules/stacktrace-js/LICENSE +19 -0
- data/node_modules/stacktrace-js/README.md +186 -0
- data/node_modules/stacktrace-js/dist/stacktrace-with-promises-and-json-polyfills.js +5405 -0
- data/node_modules/stacktrace-js/dist/stacktrace-with-promises-and-json-polyfills.min.js +3 -0
- data/node_modules/stacktrace-js/dist/stacktrace-with-promises-and-json-polyfills.min.js.map +1 -0
- data/node_modules/stacktrace-js/dist/stacktrace.js +3025 -0
- data/node_modules/stacktrace-js/dist/stacktrace.min.js +2 -0
- data/node_modules/stacktrace-js/dist/stacktrace.min.js.map +1 -0
- data/node_modules/stacktrace-js/package.json +82 -0
- data/node_modules/stacktrace-js/stacktrace-js.d.ts +134 -0
- data/node_modules/stacktrace-js/stacktrace.js +227 -0
- data/node_modules/stylis/LICENSE +21 -0
- data/node_modules/stylis/README.md +152 -0
- data/node_modules/stylis/dist/stylis.mjs +2 -0
- data/node_modules/stylis/dist/stylis.mjs.map +1 -0
- data/node_modules/stylis/dist/umd/package.json +1 -0
- data/node_modules/stylis/dist/umd/stylis.js +2 -0
- data/node_modules/stylis/dist/umd/stylis.js.map +1 -0
- data/node_modules/stylis/index.js +7 -0
- data/node_modules/stylis/package.json +164 -0
- data/node_modules/stylis/src/Enum.js +20 -0
- data/node_modules/stylis/src/Middleware.js +107 -0
- data/node_modules/stylis/src/Parser.js +184 -0
- data/node_modules/stylis/src/Prefixer.js +119 -0
- data/node_modules/stylis/src/Serializer.js +34 -0
- data/node_modules/stylis/src/Tokenizer.js +244 -0
- data/node_modules/stylis/src/Utility.js +109 -0
- data/node_modules/wouter-preact/cjs/index.js +180 -0
- data/node_modules/wouter-preact/cjs/matcher.js +72 -0
- data/node_modules/wouter-preact/cjs/package.json +1 -0
- data/node_modules/wouter-preact/cjs/react-deps.js +75 -0
- data/node_modules/wouter-preact/cjs/static-location.js +21 -0
- data/node_modules/wouter-preact/cjs/use-location.js +94 -0
- data/node_modules/wouter-preact/index.d.ts +110 -0
- data/node_modules/wouter-preact/index.js +178 -0
- data/node_modules/wouter-preact/matcher.d.ts +30 -0
- data/node_modules/wouter-preact/matcher.js +66 -0
- data/node_modules/wouter-preact/package.json +33 -0
- data/node_modules/wouter-preact/react-deps.js +15 -0
- data/node_modules/wouter-preact/static-location.d.ts +16 -0
- data/node_modules/wouter-preact/static-location.js +17 -0
- data/node_modules/wouter-preact/use-location.d.ts +43 -0
- data/node_modules/wouter-preact/use-location.js +86 -0
- data/package.json +10 -0
- metadata +1093 -20
@@ -0,0 +1,249 @@
|
|
1
|
+
var EOF = 0;
|
2
|
+
|
3
|
+
// https://drafts.csswg.org/css-syntax-3/
|
4
|
+
// § 4.2. Definitions
|
5
|
+
|
6
|
+
// digit
|
7
|
+
// A code point between U+0030 DIGIT ZERO (0) and U+0039 DIGIT NINE (9).
|
8
|
+
function isDigit(code) {
|
9
|
+
return code >= 0x0030 && code <= 0x0039;
|
10
|
+
}
|
11
|
+
|
12
|
+
// hex digit
|
13
|
+
// A digit, or a code point between U+0041 LATIN CAPITAL LETTER A (A) and U+0046 LATIN CAPITAL LETTER F (F),
|
14
|
+
// or a code point between U+0061 LATIN SMALL LETTER A (a) and U+0066 LATIN SMALL LETTER F (f).
|
15
|
+
function isHexDigit(code) {
|
16
|
+
return (
|
17
|
+
isDigit(code) || // 0 .. 9
|
18
|
+
(code >= 0x0041 && code <= 0x0046) || // A .. F
|
19
|
+
(code >= 0x0061 && code <= 0x0066) // a .. f
|
20
|
+
);
|
21
|
+
}
|
22
|
+
|
23
|
+
// uppercase letter
|
24
|
+
// A code point between U+0041 LATIN CAPITAL LETTER A (A) and U+005A LATIN CAPITAL LETTER Z (Z).
|
25
|
+
function isUppercaseLetter(code) {
|
26
|
+
return code >= 0x0041 && code <= 0x005A;
|
27
|
+
}
|
28
|
+
|
29
|
+
// lowercase letter
|
30
|
+
// A code point between U+0061 LATIN SMALL LETTER A (a) and U+007A LATIN SMALL LETTER Z (z).
|
31
|
+
function isLowercaseLetter(code) {
|
32
|
+
return code >= 0x0061 && code <= 0x007A;
|
33
|
+
}
|
34
|
+
|
35
|
+
// letter
|
36
|
+
// An uppercase letter or a lowercase letter.
|
37
|
+
function isLetter(code) {
|
38
|
+
return isUppercaseLetter(code) || isLowercaseLetter(code);
|
39
|
+
}
|
40
|
+
|
41
|
+
// non-ASCII code point
|
42
|
+
// A code point with a value equal to or greater than U+0080 <control>.
|
43
|
+
function isNonAscii(code) {
|
44
|
+
return code >= 0x0080;
|
45
|
+
}
|
46
|
+
|
47
|
+
// name-start code point
|
48
|
+
// A letter, a non-ASCII code point, or U+005F LOW LINE (_).
|
49
|
+
function isNameStart(code) {
|
50
|
+
return isLetter(code) || isNonAscii(code) || code === 0x005F;
|
51
|
+
}
|
52
|
+
|
53
|
+
// name code point
|
54
|
+
// A name-start code point, a digit, or U+002D HYPHEN-MINUS (-).
|
55
|
+
function isName(code) {
|
56
|
+
return isNameStart(code) || isDigit(code) || code === 0x002D;
|
57
|
+
}
|
58
|
+
|
59
|
+
// non-printable code point
|
60
|
+
// A code point between U+0000 NULL and U+0008 BACKSPACE, or U+000B LINE TABULATION,
|
61
|
+
// or a code point between U+000E SHIFT OUT and U+001F INFORMATION SEPARATOR ONE, or U+007F DELETE.
|
62
|
+
function isNonPrintable(code) {
|
63
|
+
return (
|
64
|
+
(code >= 0x0000 && code <= 0x0008) ||
|
65
|
+
(code === 0x000B) ||
|
66
|
+
(code >= 0x000E && code <= 0x001F) ||
|
67
|
+
(code === 0x007F)
|
68
|
+
);
|
69
|
+
}
|
70
|
+
|
71
|
+
// newline
|
72
|
+
// U+000A LINE FEED. Note that U+000D CARRIAGE RETURN and U+000C FORM FEED are not included in this definition,
|
73
|
+
// as they are converted to U+000A LINE FEED during preprocessing.
|
74
|
+
// TODO: we doesn't do a preprocessing, so check a code point for U+000D CARRIAGE RETURN and U+000C FORM FEED
|
75
|
+
function isNewline(code) {
|
76
|
+
return code === 0x000A || code === 0x000D || code === 0x000C;
|
77
|
+
}
|
78
|
+
|
79
|
+
// whitespace
|
80
|
+
// A newline, U+0009 CHARACTER TABULATION, or U+0020 SPACE.
|
81
|
+
function isWhiteSpace(code) {
|
82
|
+
return isNewline(code) || code === 0x0020 || code === 0x0009;
|
83
|
+
}
|
84
|
+
|
85
|
+
// § 4.3.8. Check if two code points are a valid escape
|
86
|
+
function isValidEscape(first, second) {
|
87
|
+
// If the first code point is not U+005C REVERSE SOLIDUS (\), return false.
|
88
|
+
if (first !== 0x005C) {
|
89
|
+
return false;
|
90
|
+
}
|
91
|
+
|
92
|
+
// Otherwise, if the second code point is a newline or EOF, return false.
|
93
|
+
if (isNewline(second) || second === EOF) {
|
94
|
+
return false;
|
95
|
+
}
|
96
|
+
|
97
|
+
// Otherwise, return true.
|
98
|
+
return true;
|
99
|
+
}
|
100
|
+
|
101
|
+
// § 4.3.9. Check if three code points would start an identifier
|
102
|
+
function isIdentifierStart(first, second, third) {
|
103
|
+
// Look at the first code point:
|
104
|
+
|
105
|
+
// U+002D HYPHEN-MINUS
|
106
|
+
if (first === 0x002D) {
|
107
|
+
// If the second code point is a name-start code point or a U+002D HYPHEN-MINUS,
|
108
|
+
// or the second and third code points are a valid escape, return true. Otherwise, return false.
|
109
|
+
return (
|
110
|
+
isNameStart(second) ||
|
111
|
+
second === 0x002D ||
|
112
|
+
isValidEscape(second, third)
|
113
|
+
);
|
114
|
+
}
|
115
|
+
|
116
|
+
// name-start code point
|
117
|
+
if (isNameStart(first)) {
|
118
|
+
// Return true.
|
119
|
+
return true;
|
120
|
+
}
|
121
|
+
|
122
|
+
// U+005C REVERSE SOLIDUS (\)
|
123
|
+
if (first === 0x005C) {
|
124
|
+
// If the first and second code points are a valid escape, return true. Otherwise, return false.
|
125
|
+
return isValidEscape(first, second);
|
126
|
+
}
|
127
|
+
|
128
|
+
// anything else
|
129
|
+
// Return false.
|
130
|
+
return false;
|
131
|
+
}
|
132
|
+
|
133
|
+
// § 4.3.10. Check if three code points would start a number
|
134
|
+
function isNumberStart(first, second, third) {
|
135
|
+
// Look at the first code point:
|
136
|
+
|
137
|
+
// U+002B PLUS SIGN (+)
|
138
|
+
// U+002D HYPHEN-MINUS (-)
|
139
|
+
if (first === 0x002B || first === 0x002D) {
|
140
|
+
// If the second code point is a digit, return true.
|
141
|
+
if (isDigit(second)) {
|
142
|
+
return 2;
|
143
|
+
}
|
144
|
+
|
145
|
+
// Otherwise, if the second code point is a U+002E FULL STOP (.)
|
146
|
+
// and the third code point is a digit, return true.
|
147
|
+
// Otherwise, return false.
|
148
|
+
return second === 0x002E && isDigit(third) ? 3 : 0;
|
149
|
+
}
|
150
|
+
|
151
|
+
// U+002E FULL STOP (.)
|
152
|
+
if (first === 0x002E) {
|
153
|
+
// If the second code point is a digit, return true. Otherwise, return false.
|
154
|
+
return isDigit(second) ? 2 : 0;
|
155
|
+
}
|
156
|
+
|
157
|
+
// digit
|
158
|
+
if (isDigit(first)) {
|
159
|
+
// Return true.
|
160
|
+
return 1;
|
161
|
+
}
|
162
|
+
|
163
|
+
// anything else
|
164
|
+
// Return false.
|
165
|
+
return 0;
|
166
|
+
}
|
167
|
+
|
168
|
+
//
|
169
|
+
// Misc
|
170
|
+
//
|
171
|
+
|
172
|
+
// detect BOM (https://en.wikipedia.org/wiki/Byte_order_mark)
|
173
|
+
function isBOM(code) {
|
174
|
+
// UTF-16BE
|
175
|
+
if (code === 0xFEFF) {
|
176
|
+
return 1;
|
177
|
+
}
|
178
|
+
|
179
|
+
// UTF-16LE
|
180
|
+
if (code === 0xFFFE) {
|
181
|
+
return 1;
|
182
|
+
}
|
183
|
+
|
184
|
+
return 0;
|
185
|
+
}
|
186
|
+
|
187
|
+
// Fast code category
|
188
|
+
//
|
189
|
+
// https://drafts.csswg.org/css-syntax/#tokenizer-definitions
|
190
|
+
// > non-ASCII code point
|
191
|
+
// > A code point with a value equal to or greater than U+0080 <control>
|
192
|
+
// > name-start code point
|
193
|
+
// > A letter, a non-ASCII code point, or U+005F LOW LINE (_).
|
194
|
+
// > name code point
|
195
|
+
// > A name-start code point, a digit, or U+002D HYPHEN-MINUS (-)
|
196
|
+
// That means only ASCII code points has a special meaning and we define a maps for 0..127 codes only
|
197
|
+
var CATEGORY = new Array(0x80);
|
198
|
+
charCodeCategory.Eof = 0x80;
|
199
|
+
charCodeCategory.WhiteSpace = 0x82;
|
200
|
+
charCodeCategory.Digit = 0x83;
|
201
|
+
charCodeCategory.NameStart = 0x84;
|
202
|
+
charCodeCategory.NonPrintable = 0x85;
|
203
|
+
|
204
|
+
for (var i = 0; i < CATEGORY.length; i++) {
|
205
|
+
switch (true) {
|
206
|
+
case isWhiteSpace(i):
|
207
|
+
CATEGORY[i] = charCodeCategory.WhiteSpace;
|
208
|
+
break;
|
209
|
+
|
210
|
+
case isDigit(i):
|
211
|
+
CATEGORY[i] = charCodeCategory.Digit;
|
212
|
+
break;
|
213
|
+
|
214
|
+
case isNameStart(i):
|
215
|
+
CATEGORY[i] = charCodeCategory.NameStart;
|
216
|
+
break;
|
217
|
+
|
218
|
+
case isNonPrintable(i):
|
219
|
+
CATEGORY[i] = charCodeCategory.NonPrintable;
|
220
|
+
break;
|
221
|
+
|
222
|
+
default:
|
223
|
+
CATEGORY[i] = i || charCodeCategory.Eof;
|
224
|
+
}
|
225
|
+
}
|
226
|
+
|
227
|
+
function charCodeCategory(code) {
|
228
|
+
return code < 0x80 ? CATEGORY[code] : charCodeCategory.NameStart;
|
229
|
+
};
|
230
|
+
|
231
|
+
module.exports = {
|
232
|
+
isDigit: isDigit,
|
233
|
+
isHexDigit: isHexDigit,
|
234
|
+
isUppercaseLetter: isUppercaseLetter,
|
235
|
+
isLowercaseLetter: isLowercaseLetter,
|
236
|
+
isLetter: isLetter,
|
237
|
+
isNonAscii: isNonAscii,
|
238
|
+
isNameStart: isNameStart,
|
239
|
+
isName: isName,
|
240
|
+
isNonPrintable: isNonPrintable,
|
241
|
+
isNewline: isNewline,
|
242
|
+
isWhiteSpace: isWhiteSpace,
|
243
|
+
isValidEscape: isValidEscape,
|
244
|
+
isIdentifierStart: isIdentifierStart,
|
245
|
+
isNumberStart: isNumberStart,
|
246
|
+
|
247
|
+
isBOM: isBOM,
|
248
|
+
charCodeCategory: charCodeCategory
|
249
|
+
};
|
@@ -0,0 +1,40 @@
|
|
1
|
+
// CSS Syntax Module Level 3
|
2
|
+
// https://www.w3.org/TR/css-syntax-3/
|
3
|
+
var TYPE = {
|
4
|
+
EOF: 0, // <EOF-token>
|
5
|
+
Ident: 1, // <ident-token>
|
6
|
+
Function: 2, // <function-token>
|
7
|
+
AtKeyword: 3, // <at-keyword-token>
|
8
|
+
Hash: 4, // <hash-token>
|
9
|
+
String: 5, // <string-token>
|
10
|
+
BadString: 6, // <bad-string-token>
|
11
|
+
Url: 7, // <url-token>
|
12
|
+
BadUrl: 8, // <bad-url-token>
|
13
|
+
Delim: 9, // <delim-token>
|
14
|
+
Number: 10, // <number-token>
|
15
|
+
Percentage: 11, // <percentage-token>
|
16
|
+
Dimension: 12, // <dimension-token>
|
17
|
+
WhiteSpace: 13, // <whitespace-token>
|
18
|
+
CDO: 14, // <CDO-token>
|
19
|
+
CDC: 15, // <CDC-token>
|
20
|
+
Colon: 16, // <colon-token> :
|
21
|
+
Semicolon: 17, // <semicolon-token> ;
|
22
|
+
Comma: 18, // <comma-token> ,
|
23
|
+
LeftSquareBracket: 19, // <[-token>
|
24
|
+
RightSquareBracket: 20, // <]-token>
|
25
|
+
LeftParenthesis: 21, // <(-token>
|
26
|
+
RightParenthesis: 22, // <)-token>
|
27
|
+
LeftCurlyBracket: 23, // <{-token>
|
28
|
+
RightCurlyBracket: 24, // <}-token>
|
29
|
+
Comment: 25
|
30
|
+
};
|
31
|
+
|
32
|
+
var NAME = Object.keys(TYPE).reduce(function(result, key) {
|
33
|
+
result[TYPE[key]] = key;
|
34
|
+
return result;
|
35
|
+
}, {});
|
36
|
+
|
37
|
+
module.exports = {
|
38
|
+
TYPE: TYPE,
|
39
|
+
NAME: NAME
|
40
|
+
};
|
@@ -0,0 +1,591 @@
|
|
1
|
+
var TokenStream = require('../common/TokenStream');
|
2
|
+
var adoptBuffer = require('../common/adopt-buffer');
|
3
|
+
|
4
|
+
var constants = require('./const');
|
5
|
+
var TYPE = constants.TYPE;
|
6
|
+
|
7
|
+
var charCodeDefinitions = require('./char-code-definitions');
|
8
|
+
var isNewline = charCodeDefinitions.isNewline;
|
9
|
+
var isName = charCodeDefinitions.isName;
|
10
|
+
var isValidEscape = charCodeDefinitions.isValidEscape;
|
11
|
+
var isNumberStart = charCodeDefinitions.isNumberStart;
|
12
|
+
var isIdentifierStart = charCodeDefinitions.isIdentifierStart;
|
13
|
+
var charCodeCategory = charCodeDefinitions.charCodeCategory;
|
14
|
+
var isBOM = charCodeDefinitions.isBOM;
|
15
|
+
|
16
|
+
var utils = require('./utils');
|
17
|
+
var cmpStr = utils.cmpStr;
|
18
|
+
var getNewlineLength = utils.getNewlineLength;
|
19
|
+
var findWhiteSpaceEnd = utils.findWhiteSpaceEnd;
|
20
|
+
var consumeEscaped = utils.consumeEscaped;
|
21
|
+
var consumeName = utils.consumeName;
|
22
|
+
var consumeNumber = utils.consumeNumber;
|
23
|
+
var consumeBadUrlRemnants = utils.consumeBadUrlRemnants;
|
24
|
+
|
25
|
+
var OFFSET_MASK = 0x00FFFFFF;
|
26
|
+
var TYPE_SHIFT = 24;
|
27
|
+
|
28
|
+
function tokenize(source, stream) {
|
29
|
+
function getCharCode(offset) {
|
30
|
+
return offset < sourceLength ? source.charCodeAt(offset) : 0;
|
31
|
+
}
|
32
|
+
|
33
|
+
// § 4.3.3. Consume a numeric token
|
34
|
+
function consumeNumericToken() {
|
35
|
+
// Consume a number and let number be the result.
|
36
|
+
offset = consumeNumber(source, offset);
|
37
|
+
|
38
|
+
// If the next 3 input code points would start an identifier, then:
|
39
|
+
if (isIdentifierStart(getCharCode(offset), getCharCode(offset + 1), getCharCode(offset + 2))) {
|
40
|
+
// Create a <dimension-token> with the same value and type flag as number, and a unit set initially to the empty string.
|
41
|
+
// Consume a name. Set the <dimension-token>’s unit to the returned value.
|
42
|
+
// Return the <dimension-token>.
|
43
|
+
type = TYPE.Dimension;
|
44
|
+
offset = consumeName(source, offset);
|
45
|
+
return;
|
46
|
+
}
|
47
|
+
|
48
|
+
// Otherwise, if the next input code point is U+0025 PERCENTAGE SIGN (%), consume it.
|
49
|
+
if (getCharCode(offset) === 0x0025) {
|
50
|
+
// Create a <percentage-token> with the same value as number, and return it.
|
51
|
+
type = TYPE.Percentage;
|
52
|
+
offset++;
|
53
|
+
return;
|
54
|
+
}
|
55
|
+
|
56
|
+
// Otherwise, create a <number-token> with the same value and type flag as number, and return it.
|
57
|
+
type = TYPE.Number;
|
58
|
+
}
|
59
|
+
|
60
|
+
// § 4.3.4. Consume an ident-like token
|
61
|
+
function consumeIdentLikeToken() {
|
62
|
+
const nameStartOffset = offset;
|
63
|
+
|
64
|
+
// Consume a name, and let string be the result.
|
65
|
+
offset = consumeName(source, offset);
|
66
|
+
|
67
|
+
// If string’s value is an ASCII case-insensitive match for "url",
|
68
|
+
// and the next input code point is U+0028 LEFT PARENTHESIS ((), consume it.
|
69
|
+
if (cmpStr(source, nameStartOffset, offset, 'url') && getCharCode(offset) === 0x0028) {
|
70
|
+
// While the next two input code points are whitespace, consume the next input code point.
|
71
|
+
offset = findWhiteSpaceEnd(source, offset + 1);
|
72
|
+
|
73
|
+
// If the next one or two input code points are U+0022 QUOTATION MARK ("), U+0027 APOSTROPHE ('),
|
74
|
+
// or whitespace followed by U+0022 QUOTATION MARK (") or U+0027 APOSTROPHE ('),
|
75
|
+
// then create a <function-token> with its value set to string and return it.
|
76
|
+
if (getCharCode(offset) === 0x0022 ||
|
77
|
+
getCharCode(offset) === 0x0027) {
|
78
|
+
type = TYPE.Function;
|
79
|
+
offset = nameStartOffset + 4;
|
80
|
+
return;
|
81
|
+
}
|
82
|
+
|
83
|
+
// Otherwise, consume a url token, and return it.
|
84
|
+
consumeUrlToken();
|
85
|
+
return;
|
86
|
+
}
|
87
|
+
|
88
|
+
// Otherwise, if the next input code point is U+0028 LEFT PARENTHESIS ((), consume it.
|
89
|
+
// Create a <function-token> with its value set to string and return it.
|
90
|
+
if (getCharCode(offset) === 0x0028) {
|
91
|
+
type = TYPE.Function;
|
92
|
+
offset++;
|
93
|
+
return;
|
94
|
+
}
|
95
|
+
|
96
|
+
// Otherwise, create an <ident-token> with its value set to string and return it.
|
97
|
+
type = TYPE.Ident;
|
98
|
+
}
|
99
|
+
|
100
|
+
// § 4.3.5. Consume a string token
|
101
|
+
function consumeStringToken(endingCodePoint) {
|
102
|
+
// This algorithm may be called with an ending code point, which denotes the code point
|
103
|
+
// that ends the string. If an ending code point is not specified,
|
104
|
+
// the current input code point is used.
|
105
|
+
if (!endingCodePoint) {
|
106
|
+
endingCodePoint = getCharCode(offset++);
|
107
|
+
}
|
108
|
+
|
109
|
+
// Initially create a <string-token> with its value set to the empty string.
|
110
|
+
type = TYPE.String;
|
111
|
+
|
112
|
+
// Repeatedly consume the next input code point from the stream:
|
113
|
+
for (; offset < source.length; offset++) {
|
114
|
+
var code = source.charCodeAt(offset);
|
115
|
+
|
116
|
+
switch (charCodeCategory(code)) {
|
117
|
+
// ending code point
|
118
|
+
case endingCodePoint:
|
119
|
+
// Return the <string-token>.
|
120
|
+
offset++;
|
121
|
+
return;
|
122
|
+
|
123
|
+
// EOF
|
124
|
+
case charCodeCategory.Eof:
|
125
|
+
// This is a parse error. Return the <string-token>.
|
126
|
+
return;
|
127
|
+
|
128
|
+
// newline
|
129
|
+
case charCodeCategory.WhiteSpace:
|
130
|
+
if (isNewline(code)) {
|
131
|
+
// This is a parse error. Reconsume the current input code point,
|
132
|
+
// create a <bad-string-token>, and return it.
|
133
|
+
offset += getNewlineLength(source, offset, code);
|
134
|
+
type = TYPE.BadString;
|
135
|
+
return;
|
136
|
+
}
|
137
|
+
break;
|
138
|
+
|
139
|
+
// U+005C REVERSE SOLIDUS (\)
|
140
|
+
case 0x005C:
|
141
|
+
// If the next input code point is EOF, do nothing.
|
142
|
+
if (offset === source.length - 1) {
|
143
|
+
break;
|
144
|
+
}
|
145
|
+
|
146
|
+
var nextCode = getCharCode(offset + 1);
|
147
|
+
|
148
|
+
// Otherwise, if the next input code point is a newline, consume it.
|
149
|
+
if (isNewline(nextCode)) {
|
150
|
+
offset += getNewlineLength(source, offset + 1, nextCode);
|
151
|
+
} else if (isValidEscape(code, nextCode)) {
|
152
|
+
// Otherwise, (the stream starts with a valid escape) consume
|
153
|
+
// an escaped code point and append the returned code point to
|
154
|
+
// the <string-token>’s value.
|
155
|
+
offset = consumeEscaped(source, offset) - 1;
|
156
|
+
}
|
157
|
+
break;
|
158
|
+
|
159
|
+
// anything else
|
160
|
+
// Append the current input code point to the <string-token>’s value.
|
161
|
+
}
|
162
|
+
}
|
163
|
+
}
|
164
|
+
|
165
|
+
// § 4.3.6. Consume a url token
|
166
|
+
// Note: This algorithm assumes that the initial "url(" has already been consumed.
|
167
|
+
// This algorithm also assumes that it’s being called to consume an "unquoted" value, like url(foo).
|
168
|
+
// A quoted value, like url("foo"), is parsed as a <function-token>. Consume an ident-like token
|
169
|
+
// automatically handles this distinction; this algorithm shouldn’t be called directly otherwise.
|
170
|
+
function consumeUrlToken() {
|
171
|
+
// Initially create a <url-token> with its value set to the empty string.
|
172
|
+
type = TYPE.Url;
|
173
|
+
|
174
|
+
// Consume as much whitespace as possible.
|
175
|
+
offset = findWhiteSpaceEnd(source, offset);
|
176
|
+
|
177
|
+
// Repeatedly consume the next input code point from the stream:
|
178
|
+
for (; offset < source.length; offset++) {
|
179
|
+
var code = source.charCodeAt(offset);
|
180
|
+
|
181
|
+
switch (charCodeCategory(code)) {
|
182
|
+
// U+0029 RIGHT PARENTHESIS ())
|
183
|
+
case 0x0029:
|
184
|
+
// Return the <url-token>.
|
185
|
+
offset++;
|
186
|
+
return;
|
187
|
+
|
188
|
+
// EOF
|
189
|
+
case charCodeCategory.Eof:
|
190
|
+
// This is a parse error. Return the <url-token>.
|
191
|
+
return;
|
192
|
+
|
193
|
+
// whitespace
|
194
|
+
case charCodeCategory.WhiteSpace:
|
195
|
+
// Consume as much whitespace as possible.
|
196
|
+
offset = findWhiteSpaceEnd(source, offset);
|
197
|
+
|
198
|
+
// If the next input code point is U+0029 RIGHT PARENTHESIS ()) or EOF,
|
199
|
+
// consume it and return the <url-token>
|
200
|
+
// (if EOF was encountered, this is a parse error);
|
201
|
+
if (getCharCode(offset) === 0x0029 || offset >= source.length) {
|
202
|
+
if (offset < source.length) {
|
203
|
+
offset++;
|
204
|
+
}
|
205
|
+
return;
|
206
|
+
}
|
207
|
+
|
208
|
+
// otherwise, consume the remnants of a bad url, create a <bad-url-token>,
|
209
|
+
// and return it.
|
210
|
+
offset = consumeBadUrlRemnants(source, offset);
|
211
|
+
type = TYPE.BadUrl;
|
212
|
+
return;
|
213
|
+
|
214
|
+
// U+0022 QUOTATION MARK (")
|
215
|
+
// U+0027 APOSTROPHE (')
|
216
|
+
// U+0028 LEFT PARENTHESIS (()
|
217
|
+
// non-printable code point
|
218
|
+
case 0x0022:
|
219
|
+
case 0x0027:
|
220
|
+
case 0x0028:
|
221
|
+
case charCodeCategory.NonPrintable:
|
222
|
+
// This is a parse error. Consume the remnants of a bad url,
|
223
|
+
// create a <bad-url-token>, and return it.
|
224
|
+
offset = consumeBadUrlRemnants(source, offset);
|
225
|
+
type = TYPE.BadUrl;
|
226
|
+
return;
|
227
|
+
|
228
|
+
// U+005C REVERSE SOLIDUS (\)
|
229
|
+
case 0x005C:
|
230
|
+
// If the stream starts with a valid escape, consume an escaped code point and
|
231
|
+
// append the returned code point to the <url-token>’s value.
|
232
|
+
if (isValidEscape(code, getCharCode(offset + 1))) {
|
233
|
+
offset = consumeEscaped(source, offset) - 1;
|
234
|
+
break;
|
235
|
+
}
|
236
|
+
|
237
|
+
// Otherwise, this is a parse error. Consume the remnants of a bad url,
|
238
|
+
// create a <bad-url-token>, and return it.
|
239
|
+
offset = consumeBadUrlRemnants(source, offset);
|
240
|
+
type = TYPE.BadUrl;
|
241
|
+
return;
|
242
|
+
|
243
|
+
// anything else
|
244
|
+
// Append the current input code point to the <url-token>’s value.
|
245
|
+
}
|
246
|
+
}
|
247
|
+
}
|
248
|
+
|
249
|
+
if (!stream) {
|
250
|
+
stream = new TokenStream();
|
251
|
+
}
|
252
|
+
|
253
|
+
// ensure source is a string
|
254
|
+
source = String(source || '');
|
255
|
+
|
256
|
+
var sourceLength = source.length;
|
257
|
+
var offsetAndType = adoptBuffer(stream.offsetAndType, sourceLength + 1); // +1 because of eof-token
|
258
|
+
var balance = adoptBuffer(stream.balance, sourceLength + 1);
|
259
|
+
var tokenCount = 0;
|
260
|
+
var start = isBOM(getCharCode(0));
|
261
|
+
var offset = start;
|
262
|
+
var balanceCloseType = 0;
|
263
|
+
var balanceStart = 0;
|
264
|
+
var balancePrev = 0;
|
265
|
+
|
266
|
+
// https://drafts.csswg.org/css-syntax-3/#consume-token
|
267
|
+
// § 4.3.1. Consume a token
|
268
|
+
while (offset < sourceLength) {
|
269
|
+
var code = source.charCodeAt(offset);
|
270
|
+
var type = 0;
|
271
|
+
|
272
|
+
balance[tokenCount] = sourceLength;
|
273
|
+
|
274
|
+
switch (charCodeCategory(code)) {
|
275
|
+
// whitespace
|
276
|
+
case charCodeCategory.WhiteSpace:
|
277
|
+
// Consume as much whitespace as possible. Return a <whitespace-token>.
|
278
|
+
type = TYPE.WhiteSpace;
|
279
|
+
offset = findWhiteSpaceEnd(source, offset + 1);
|
280
|
+
break;
|
281
|
+
|
282
|
+
// U+0022 QUOTATION MARK (")
|
283
|
+
case 0x0022:
|
284
|
+
// Consume a string token and return it.
|
285
|
+
consumeStringToken();
|
286
|
+
break;
|
287
|
+
|
288
|
+
// U+0023 NUMBER SIGN (#)
|
289
|
+
case 0x0023:
|
290
|
+
// If the next input code point is a name code point or the next two input code points are a valid escape, then:
|
291
|
+
if (isName(getCharCode(offset + 1)) || isValidEscape(getCharCode(offset + 1), getCharCode(offset + 2))) {
|
292
|
+
// Create a <hash-token>.
|
293
|
+
type = TYPE.Hash;
|
294
|
+
|
295
|
+
// If the next 3 input code points would start an identifier, set the <hash-token>’s type flag to "id".
|
296
|
+
// if (isIdentifierStart(getCharCode(offset + 1), getCharCode(offset + 2), getCharCode(offset + 3))) {
|
297
|
+
// // TODO: set id flag
|
298
|
+
// }
|
299
|
+
|
300
|
+
// Consume a name, and set the <hash-token>’s value to the returned string.
|
301
|
+
offset = consumeName(source, offset + 1);
|
302
|
+
|
303
|
+
// Return the <hash-token>.
|
304
|
+
} else {
|
305
|
+
// Otherwise, return a <delim-token> with its value set to the current input code point.
|
306
|
+
type = TYPE.Delim;
|
307
|
+
offset++;
|
308
|
+
}
|
309
|
+
|
310
|
+
break;
|
311
|
+
|
312
|
+
// U+0027 APOSTROPHE (')
|
313
|
+
case 0x0027:
|
314
|
+
// Consume a string token and return it.
|
315
|
+
consumeStringToken();
|
316
|
+
break;
|
317
|
+
|
318
|
+
// U+0028 LEFT PARENTHESIS (()
|
319
|
+
case 0x0028:
|
320
|
+
// Return a <(-token>.
|
321
|
+
type = TYPE.LeftParenthesis;
|
322
|
+
offset++;
|
323
|
+
break;
|
324
|
+
|
325
|
+
// U+0029 RIGHT PARENTHESIS ())
|
326
|
+
case 0x0029:
|
327
|
+
// Return a <)-token>.
|
328
|
+
type = TYPE.RightParenthesis;
|
329
|
+
offset++;
|
330
|
+
break;
|
331
|
+
|
332
|
+
// U+002B PLUS SIGN (+)
|
333
|
+
case 0x002B:
|
334
|
+
// If the input stream starts with a number, ...
|
335
|
+
if (isNumberStart(code, getCharCode(offset + 1), getCharCode(offset + 2))) {
|
336
|
+
// ... reconsume the current input code point, consume a numeric token, and return it.
|
337
|
+
consumeNumericToken();
|
338
|
+
} else {
|
339
|
+
// Otherwise, return a <delim-token> with its value set to the current input code point.
|
340
|
+
type = TYPE.Delim;
|
341
|
+
offset++;
|
342
|
+
}
|
343
|
+
break;
|
344
|
+
|
345
|
+
// U+002C COMMA (,)
|
346
|
+
case 0x002C:
|
347
|
+
// Return a <comma-token>.
|
348
|
+
type = TYPE.Comma;
|
349
|
+
offset++;
|
350
|
+
break;
|
351
|
+
|
352
|
+
// U+002D HYPHEN-MINUS (-)
|
353
|
+
case 0x002D:
|
354
|
+
// If the input stream starts with a number, reconsume the current input code point, consume a numeric token, and return it.
|
355
|
+
if (isNumberStart(code, getCharCode(offset + 1), getCharCode(offset + 2))) {
|
356
|
+
consumeNumericToken();
|
357
|
+
} else {
|
358
|
+
// Otherwise, if the next 2 input code points are U+002D HYPHEN-MINUS U+003E GREATER-THAN SIGN (->), consume them and return a <CDC-token>.
|
359
|
+
if (getCharCode(offset + 1) === 0x002D &&
|
360
|
+
getCharCode(offset + 2) === 0x003E) {
|
361
|
+
type = TYPE.CDC;
|
362
|
+
offset = offset + 3;
|
363
|
+
} else {
|
364
|
+
// Otherwise, if the input stream starts with an identifier, ...
|
365
|
+
if (isIdentifierStart(code, getCharCode(offset + 1), getCharCode(offset + 2))) {
|
366
|
+
// ... reconsume the current input code point, consume an ident-like token, and return it.
|
367
|
+
consumeIdentLikeToken();
|
368
|
+
} else {
|
369
|
+
// Otherwise, return a <delim-token> with its value set to the current input code point.
|
370
|
+
type = TYPE.Delim;
|
371
|
+
offset++;
|
372
|
+
}
|
373
|
+
}
|
374
|
+
}
|
375
|
+
break;
|
376
|
+
|
377
|
+
// U+002E FULL STOP (.)
|
378
|
+
case 0x002E:
|
379
|
+
// If the input stream starts with a number, ...
|
380
|
+
if (isNumberStart(code, getCharCode(offset + 1), getCharCode(offset + 2))) {
|
381
|
+
// ... reconsume the current input code point, consume a numeric token, and return it.
|
382
|
+
consumeNumericToken();
|
383
|
+
} else {
|
384
|
+
// Otherwise, return a <delim-token> with its value set to the current input code point.
|
385
|
+
type = TYPE.Delim;
|
386
|
+
offset++;
|
387
|
+
}
|
388
|
+
|
389
|
+
break;
|
390
|
+
|
391
|
+
// U+002F SOLIDUS (/)
|
392
|
+
case 0x002F:
|
393
|
+
// If the next two input code point are U+002F SOLIDUS (/) followed by a U+002A ASTERISK (*),
|
394
|
+
if (getCharCode(offset + 1) === 0x002A) {
|
395
|
+
// ... consume them and all following code points up to and including the first U+002A ASTERISK (*)
|
396
|
+
// followed by a U+002F SOLIDUS (/), or up to an EOF code point.
|
397
|
+
type = TYPE.Comment;
|
398
|
+
offset = source.indexOf('*/', offset + 2) + 2;
|
399
|
+
if (offset === 1) {
|
400
|
+
offset = source.length;
|
401
|
+
}
|
402
|
+
} else {
|
403
|
+
type = TYPE.Delim;
|
404
|
+
offset++;
|
405
|
+
}
|
406
|
+
break;
|
407
|
+
|
408
|
+
// U+003A COLON (:)
|
409
|
+
case 0x003A:
|
410
|
+
// Return a <colon-token>.
|
411
|
+
type = TYPE.Colon;
|
412
|
+
offset++;
|
413
|
+
break;
|
414
|
+
|
415
|
+
// U+003B SEMICOLON (;)
|
416
|
+
case 0x003B:
|
417
|
+
// Return a <semicolon-token>.
|
418
|
+
type = TYPE.Semicolon;
|
419
|
+
offset++;
|
420
|
+
break;
|
421
|
+
|
422
|
+
// U+003C LESS-THAN SIGN (<)
|
423
|
+
case 0x003C:
|
424
|
+
// If the next 3 input code points are U+0021 EXCLAMATION MARK U+002D HYPHEN-MINUS U+002D HYPHEN-MINUS (!--), ...
|
425
|
+
if (getCharCode(offset + 1) === 0x0021 &&
|
426
|
+
getCharCode(offset + 2) === 0x002D &&
|
427
|
+
getCharCode(offset + 3) === 0x002D) {
|
428
|
+
// ... consume them and return a <CDO-token>.
|
429
|
+
type = TYPE.CDO;
|
430
|
+
offset = offset + 4;
|
431
|
+
} else {
|
432
|
+
// Otherwise, return a <delim-token> with its value set to the current input code point.
|
433
|
+
type = TYPE.Delim;
|
434
|
+
offset++;
|
435
|
+
}
|
436
|
+
|
437
|
+
break;
|
438
|
+
|
439
|
+
// U+0040 COMMERCIAL AT (@)
|
440
|
+
case 0x0040:
|
441
|
+
// If the next 3 input code points would start an identifier, ...
|
442
|
+
if (isIdentifierStart(getCharCode(offset + 1), getCharCode(offset + 2), getCharCode(offset + 3))) {
|
443
|
+
// ... consume a name, create an <at-keyword-token> with its value set to the returned value, and return it.
|
444
|
+
type = TYPE.AtKeyword;
|
445
|
+
offset = consumeName(source, offset + 1);
|
446
|
+
} else {
|
447
|
+
// Otherwise, return a <delim-token> with its value set to the current input code point.
|
448
|
+
type = TYPE.Delim;
|
449
|
+
offset++;
|
450
|
+
}
|
451
|
+
|
452
|
+
break;
|
453
|
+
|
454
|
+
// U+005B LEFT SQUARE BRACKET ([)
|
455
|
+
case 0x005B:
|
456
|
+
// Return a <[-token>.
|
457
|
+
type = TYPE.LeftSquareBracket;
|
458
|
+
offset++;
|
459
|
+
break;
|
460
|
+
|
461
|
+
// U+005C REVERSE SOLIDUS (\)
|
462
|
+
case 0x005C:
|
463
|
+
// If the input stream starts with a valid escape, ...
|
464
|
+
if (isValidEscape(code, getCharCode(offset + 1))) {
|
465
|
+
// ... reconsume the current input code point, consume an ident-like token, and return it.
|
466
|
+
consumeIdentLikeToken();
|
467
|
+
} else {
|
468
|
+
// Otherwise, this is a parse error. Return a <delim-token> with its value set to the current input code point.
|
469
|
+
type = TYPE.Delim;
|
470
|
+
offset++;
|
471
|
+
}
|
472
|
+
break;
|
473
|
+
|
474
|
+
// U+005D RIGHT SQUARE BRACKET (])
|
475
|
+
case 0x005D:
|
476
|
+
// Return a <]-token>.
|
477
|
+
type = TYPE.RightSquareBracket;
|
478
|
+
offset++;
|
479
|
+
break;
|
480
|
+
|
481
|
+
// U+007B LEFT CURLY BRACKET ({)
|
482
|
+
case 0x007B:
|
483
|
+
// Return a <{-token>.
|
484
|
+
type = TYPE.LeftCurlyBracket;
|
485
|
+
offset++;
|
486
|
+
break;
|
487
|
+
|
488
|
+
// U+007D RIGHT CURLY BRACKET (})
|
489
|
+
case 0x007D:
|
490
|
+
// Return a <}-token>.
|
491
|
+
type = TYPE.RightCurlyBracket;
|
492
|
+
offset++;
|
493
|
+
break;
|
494
|
+
|
495
|
+
// digit
|
496
|
+
case charCodeCategory.Digit:
|
497
|
+
// Reconsume the current input code point, consume a numeric token, and return it.
|
498
|
+
consumeNumericToken();
|
499
|
+
break;
|
500
|
+
|
501
|
+
// name-start code point
|
502
|
+
case charCodeCategory.NameStart:
|
503
|
+
// Reconsume the current input code point, consume an ident-like token, and return it.
|
504
|
+
consumeIdentLikeToken();
|
505
|
+
break;
|
506
|
+
|
507
|
+
// EOF
|
508
|
+
case charCodeCategory.Eof:
|
509
|
+
// Return an <EOF-token>.
|
510
|
+
break;
|
511
|
+
|
512
|
+
// anything else
|
513
|
+
default:
|
514
|
+
// Return a <delim-token> with its value set to the current input code point.
|
515
|
+
type = TYPE.Delim;
|
516
|
+
offset++;
|
517
|
+
}
|
518
|
+
|
519
|
+
switch (type) {
|
520
|
+
case balanceCloseType:
|
521
|
+
balancePrev = balanceStart & OFFSET_MASK;
|
522
|
+
balanceStart = balance[balancePrev];
|
523
|
+
balanceCloseType = balanceStart >> TYPE_SHIFT;
|
524
|
+
balance[tokenCount] = balancePrev;
|
525
|
+
balance[balancePrev++] = tokenCount;
|
526
|
+
for (; balancePrev < tokenCount; balancePrev++) {
|
527
|
+
if (balance[balancePrev] === sourceLength) {
|
528
|
+
balance[balancePrev] = tokenCount;
|
529
|
+
}
|
530
|
+
}
|
531
|
+
break;
|
532
|
+
|
533
|
+
case TYPE.LeftParenthesis:
|
534
|
+
case TYPE.Function:
|
535
|
+
balance[tokenCount] = balanceStart;
|
536
|
+
balanceCloseType = TYPE.RightParenthesis;
|
537
|
+
balanceStart = (balanceCloseType << TYPE_SHIFT) | tokenCount;
|
538
|
+
break;
|
539
|
+
|
540
|
+
case TYPE.LeftSquareBracket:
|
541
|
+
balance[tokenCount] = balanceStart;
|
542
|
+
balanceCloseType = TYPE.RightSquareBracket;
|
543
|
+
balanceStart = (balanceCloseType << TYPE_SHIFT) | tokenCount;
|
544
|
+
break;
|
545
|
+
|
546
|
+
case TYPE.LeftCurlyBracket:
|
547
|
+
balance[tokenCount] = balanceStart;
|
548
|
+
balanceCloseType = TYPE.RightCurlyBracket;
|
549
|
+
balanceStart = (balanceCloseType << TYPE_SHIFT) | tokenCount;
|
550
|
+
break;
|
551
|
+
}
|
552
|
+
|
553
|
+
offsetAndType[tokenCount++] = (type << TYPE_SHIFT) | offset;
|
554
|
+
}
|
555
|
+
|
556
|
+
// finalize buffers
|
557
|
+
offsetAndType[tokenCount] = (TYPE.EOF << TYPE_SHIFT) | offset; // <EOF-token>
|
558
|
+
balance[tokenCount] = sourceLength;
|
559
|
+
balance[sourceLength] = sourceLength; // prevents false positive balance match with any token
|
560
|
+
while (balanceStart !== 0) {
|
561
|
+
balancePrev = balanceStart & OFFSET_MASK;
|
562
|
+
balanceStart = balance[balancePrev];
|
563
|
+
balance[balancePrev] = sourceLength;
|
564
|
+
}
|
565
|
+
|
566
|
+
// update stream
|
567
|
+
stream.source = source;
|
568
|
+
stream.firstCharOffset = start;
|
569
|
+
stream.offsetAndType = offsetAndType;
|
570
|
+
stream.tokenCount = tokenCount;
|
571
|
+
stream.balance = balance;
|
572
|
+
stream.reset();
|
573
|
+
stream.next();
|
574
|
+
|
575
|
+
return stream;
|
576
|
+
}
|
577
|
+
|
578
|
+
// extend tokenizer with constants
|
579
|
+
Object.keys(constants).forEach(function(key) {
|
580
|
+
tokenize[key] = constants[key];
|
581
|
+
});
|
582
|
+
|
583
|
+
// extend tokenizer with static methods from utils
|
584
|
+
Object.keys(charCodeDefinitions).forEach(function(key) {
|
585
|
+
tokenize[key] = charCodeDefinitions[key];
|
586
|
+
});
|
587
|
+
Object.keys(utils).forEach(function(key) {
|
588
|
+
tokenize[key] = utils[key];
|
589
|
+
});
|
590
|
+
|
591
|
+
module.exports = tokenize;
|