select_all-rails 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +6 -0
- data/README.md +8 -7
- data/lib/select_all/rails/version.rb +1 -1
- data/node_modules/.bin/acorn +71 -0
- data/node_modules/.bin/escodegen +77 -0
- data/node_modules/.bin/esgenerate +64 -0
- data/node_modules/.bin/esparse +126 -0
- data/node_modules/.bin/esvalidate +199 -0
- data/node_modules/.bin/har-validator +56 -0
- data/node_modules/.bin/sshpk-conv +201 -0
- data/node_modules/.bin/sshpk-sign +191 -0
- data/node_modules/.bin/sshpk-verify +166 -0
- data/node_modules/.bin/uuid +26 -0
- data/node_modules/abab/CHANGELOG.md +11 -0
- data/node_modules/abab/README.md +52 -0
- data/node_modules/abab/index.js +9 -0
- data/node_modules/abab/lib/atob.js +109 -0
- data/node_modules/abab/lib/btoa.js +65 -0
- data/node_modules/abab/package.json +106 -0
- data/node_modules/acorn-globals/LICENSE +19 -0
- data/node_modules/acorn-globals/README.md +76 -0
- data/node_modules/acorn-globals/index.js +180 -0
- data/node_modules/acorn-globals/package.json +100 -0
- data/node_modules/acorn/.editorconfig +7 -0
- data/node_modules/acorn/.gitattributes +1 -0
- data/node_modules/acorn/.npmignore +3 -0
- data/node_modules/acorn/.tern-project +6 -0
- data/node_modules/acorn/.travis.yml +6 -0
- data/node_modules/acorn/AUTHORS +43 -0
- data/node_modules/acorn/LICENSE +19 -0
- data/node_modules/acorn/README.md +396 -0
- data/node_modules/acorn/bin/acorn +71 -0
- data/node_modules/acorn/bin/build-acorn.js +82 -0
- data/node_modules/acorn/bin/generate-identifier-regex.js +47 -0
- data/node_modules/acorn/bin/update_authors.sh +6 -0
- data/node_modules/acorn/dist/.keep +0 -0
- data/node_modules/acorn/dist/acorn.js +3340 -0
- data/node_modules/acorn/dist/acorn_loose.js +1300 -0
- data/node_modules/acorn/dist/walk.js +377 -0
- data/node_modules/acorn/package.json +222 -0
- data/node_modules/acorn/src/bin/acorn.js +59 -0
- data/node_modules/acorn/src/expression.js +707 -0
- data/node_modules/acorn/src/identifier.js +90 -0
- data/node_modules/acorn/src/index.js +67 -0
- data/node_modules/acorn/src/location.js +24 -0
- data/node_modules/acorn/src/locutil.js +42 -0
- data/node_modules/acorn/src/loose/acorn_loose.js +0 -0
- data/node_modules/acorn/src/loose/expression.js +501 -0
- data/node_modules/acorn/src/loose/index.js +50 -0
- data/node_modules/acorn/src/loose/parseutil.js +1 -0
- data/node_modules/acorn/src/loose/state.js +160 -0
- data/node_modules/acorn/src/loose/statement.js +420 -0
- data/node_modules/acorn/src/loose/tokenize.js +108 -0
- data/node_modules/acorn/src/lval.js +215 -0
- data/node_modules/acorn/src/node.js +50 -0
- data/node_modules/acorn/src/options.js +121 -0
- data/node_modules/acorn/src/parseutil.js +102 -0
- data/node_modules/acorn/src/state.js +104 -0
- data/node_modules/acorn/src/statement.js +626 -0
- data/node_modules/acorn/src/tokencontext.js +109 -0
- data/node_modules/acorn/src/tokenize.js +682 -0
- data/node_modules/acorn/src/tokentype.js +147 -0
- data/node_modules/acorn/src/util.js +9 -0
- data/node_modules/acorn/src/walk/index.js +340 -0
- data/node_modules/acorn/src/whitespace.js +12 -0
- data/node_modules/amdefine/LICENSE +58 -0
- data/node_modules/amdefine/README.md +171 -0
- data/node_modules/amdefine/amdefine.js +301 -0
- data/node_modules/amdefine/intercept.js +36 -0
- data/node_modules/amdefine/package.json +86 -0
- data/node_modules/ansi-regex/index.js +4 -0
- data/node_modules/ansi-regex/license +21 -0
- data/node_modules/ansi-regex/package.json +121 -0
- data/node_modules/ansi-regex/readme.md +31 -0
- data/node_modules/ansi-styles/index.js +65 -0
- data/node_modules/ansi-styles/license +21 -0
- data/node_modules/ansi-styles/package.json +114 -0
- data/node_modules/ansi-styles/readme.md +86 -0
- data/node_modules/array-equal/.npmignore +1 -0
- data/node_modules/array-equal/LICENSE +22 -0
- data/node_modules/array-equal/README.md +11 -0
- data/node_modules/array-equal/component.json +10 -0
- data/node_modules/array-equal/index.js +9 -0
- data/node_modules/array-equal/package.json +75 -0
- data/node_modules/asn1/.npmignore +2 -0
- data/node_modules/asn1/.travis.yml +4 -0
- data/node_modules/asn1/LICENSE +19 -0
- data/node_modules/asn1/README.md +50 -0
- data/node_modules/asn1/lib/ber/errors.js +13 -0
- data/node_modules/asn1/lib/ber/index.js +27 -0
- data/node_modules/asn1/lib/ber/reader.js +261 -0
- data/node_modules/asn1/lib/ber/types.js +36 -0
- data/node_modules/asn1/lib/ber/writer.js +316 -0
- data/node_modules/asn1/lib/index.js +20 -0
- data/node_modules/asn1/package.json +98 -0
- data/node_modules/asn1/tst/ber/reader.test.js +208 -0
- data/node_modules/asn1/tst/ber/writer.test.js +370 -0
- data/node_modules/assert-plus/AUTHORS +6 -0
- data/node_modules/assert-plus/CHANGES.md +8 -0
- data/node_modules/assert-plus/README.md +155 -0
- data/node_modules/assert-plus/assert.js +206 -0
- data/node_modules/assert-plus/package.json +115 -0
- data/node_modules/assertion-error/.npmignore +11 -0
- data/node_modules/assertion-error/History.md +19 -0
- data/node_modules/assertion-error/README.md +41 -0
- data/node_modules/assertion-error/index.js +116 -0
- data/node_modules/assertion-error/package.json +95 -0
- data/node_modules/asynckit/LICENSE +21 -0
- data/node_modules/asynckit/README.md +233 -0
- data/node_modules/asynckit/bench.js +76 -0
- data/node_modules/asynckit/index.js +6 -0
- data/node_modules/asynckit/lib/abort.js +29 -0
- data/node_modules/asynckit/lib/async.js +34 -0
- data/node_modules/asynckit/lib/defer.js +26 -0
- data/node_modules/asynckit/lib/iterate.js +75 -0
- data/node_modules/asynckit/lib/readable_asynckit.js +91 -0
- data/node_modules/asynckit/lib/readable_parallel.js +25 -0
- data/node_modules/asynckit/lib/readable_serial.js +25 -0
- data/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
- data/node_modules/asynckit/lib/state.js +37 -0
- data/node_modules/asynckit/lib/streamify.js +141 -0
- data/node_modules/asynckit/lib/terminator.js +29 -0
- data/node_modules/asynckit/package.json +126 -0
- data/node_modules/asynckit/parallel.js +43 -0
- data/node_modules/asynckit/serial.js +17 -0
- data/node_modules/asynckit/serialOrdered.js +75 -0
- data/node_modules/asynckit/stream.js +21 -0
- data/node_modules/aws-sign2/LICENSE +55 -0
- data/node_modules/aws-sign2/README.md +4 -0
- data/node_modules/aws-sign2/index.js +212 -0
- data/node_modules/aws-sign2/package.json +81 -0
- data/node_modules/aws4/.npmignore +4 -0
- data/node_modules/aws4/.tern-port +1 -0
- data/node_modules/aws4/.travis.yml +5 -0
- data/node_modules/aws4/LICENSE +19 -0
- data/node_modules/aws4/README.md +523 -0
- data/node_modules/aws4/aws4.js +323 -0
- data/node_modules/aws4/lru.js +96 -0
- data/node_modules/aws4/package.json +140 -0
- data/node_modules/bcrypt-pbkdf/README.md +39 -0
- data/node_modules/bcrypt-pbkdf/index.js +559 -0
- data/node_modules/bcrypt-pbkdf/package.json +72 -0
- data/node_modules/boom/.npmignore +18 -0
- data/node_modules/boom/.travis.yml +8 -0
- data/node_modules/boom/CONTRIBUTING.md +1 -0
- data/node_modules/boom/LICENSE +28 -0
- data/node_modules/boom/README.md +652 -0
- data/node_modules/boom/images/boom.png +0 -0
- data/node_modules/boom/lib/index.js +318 -0
- data/node_modules/boom/package.json +98 -0
- data/node_modules/boom/test/index.js +654 -0
- data/node_modules/caseless/LICENSE +28 -0
- data/node_modules/caseless/README.md +45 -0
- data/node_modules/caseless/index.js +66 -0
- data/node_modules/caseless/package.json +96 -0
- data/node_modules/caseless/test.js +40 -0
- data/node_modules/chai/.npmignore +14 -0
- data/node_modules/chai/CODE_OF_CONDUCT.md +58 -0
- data/node_modules/chai/CONTRIBUTING.md +214 -0
- data/node_modules/chai/History.md +1059 -0
- data/node_modules/chai/README.md +83 -0
- data/node_modules/chai/ReleaseNotes.md +737 -0
- data/node_modules/chai/bower.json +26 -0
- data/node_modules/chai/chai.js +6142 -0
- data/node_modules/chai/index.js +1 -0
- data/node_modules/chai/karma.conf.js +28 -0
- data/node_modules/chai/karma.sauce.js +41 -0
- data/node_modules/chai/lib/chai.js +93 -0
- data/node_modules/chai/lib/chai/assertion.js +131 -0
- data/node_modules/chai/lib/chai/config.js +55 -0
- data/node_modules/chai/lib/chai/core/assertions.js +1860 -0
- data/node_modules/chai/lib/chai/interface/assert.js +1645 -0
- data/node_modules/chai/lib/chai/interface/expect.js +34 -0
- data/node_modules/chai/lib/chai/interface/should.js +201 -0
- data/node_modules/chai/lib/chai/utils/addChainableMethod.js +112 -0
- data/node_modules/chai/lib/chai/utils/addMethod.js +44 -0
- data/node_modules/chai/lib/chai/utils/addProperty.js +48 -0
- data/node_modules/chai/lib/chai/utils/expectTypes.js +42 -0
- data/node_modules/chai/lib/chai/utils/flag.js +33 -0
- data/node_modules/chai/lib/chai/utils/getActual.js +20 -0
- data/node_modules/chai/lib/chai/utils/getEnumerableProperties.js +26 -0
- data/node_modules/chai/lib/chai/utils/getMessage.js +51 -0
- data/node_modules/chai/lib/chai/utils/getName.js +22 -0
- data/node_modules/chai/lib/chai/utils/getPathInfo.js +111 -0
- data/node_modules/chai/lib/chai/utils/getPathValue.js +43 -0
- data/node_modules/chai/lib/chai/utils/getProperties.js +36 -0
- data/node_modules/chai/lib/chai/utils/hasProperty.js +64 -0
- data/node_modules/chai/lib/chai/utils/index.js +130 -0
- data/node_modules/chai/lib/chai/utils/inspect.js +335 -0
- data/node_modules/chai/lib/chai/utils/objDisplay.js +50 -0
- data/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js +54 -0
- data/node_modules/chai/lib/chai/utils/overwriteMethod.js +52 -0
- data/node_modules/chai/lib/chai/utils/overwriteProperty.js +55 -0
- data/node_modules/chai/lib/chai/utils/test.js +28 -0
- data/node_modules/chai/lib/chai/utils/transferFlags.js +45 -0
- data/node_modules/chai/package.json +128 -0
- data/node_modules/chai/sauce.browsers.js +128 -0
- data/node_modules/chalk/index.js +116 -0
- data/node_modules/chalk/license +21 -0
- data/node_modules/chalk/package.json +140 -0
- data/node_modules/chalk/readme.md +213 -0
- data/node_modules/combined-stream/License +19 -0
- data/node_modules/combined-stream/Readme.md +138 -0
- data/node_modules/combined-stream/lib/combined_stream.js +188 -0
- data/node_modules/combined-stream/package.json +101 -0
- data/node_modules/commander/History.md +261 -0
- data/node_modules/commander/LICENSE +22 -0
- data/node_modules/commander/Readme.md +351 -0
- data/node_modules/commander/index.js +1110 -0
- data/node_modules/commander/package.json +104 -0
- data/node_modules/content-type-parser/LICENSE.txt +19 -0
- data/node_modules/content-type-parser/README.md +60 -0
- data/node_modules/content-type-parser/lib/content-type-parser.js +103 -0
- data/node_modules/content-type-parser/package.json +96 -0
- data/node_modules/cryptiles/.npmignore +18 -0
- data/node_modules/cryptiles/.travis.yml +8 -0
- data/node_modules/cryptiles/LICENSE +28 -0
- data/node_modules/cryptiles/README.md +16 -0
- data/node_modules/cryptiles/lib/index.js +68 -0
- data/node_modules/cryptiles/package.json +94 -0
- data/node_modules/cryptiles/test/index.js +102 -0
- data/node_modules/cssom/LICENSE.txt +20 -0
- data/node_modules/cssom/README.mdown +69 -0
- data/node_modules/cssom/lib/CSSDocumentRule.js +39 -0
- data/node_modules/cssom/lib/CSSFontFaceRule.js +36 -0
- data/node_modules/cssom/lib/CSSImportRule.js +132 -0
- data/node_modules/cssom/lib/CSSKeyframeRule.js +37 -0
- data/node_modules/cssom/lib/CSSKeyframesRule.js +39 -0
- data/node_modules/cssom/lib/CSSMediaRule.js +41 -0
- data/node_modules/cssom/lib/CSSRule.js +43 -0
- data/node_modules/cssom/lib/CSSStyleDeclaration.js +148 -0
- data/node_modules/cssom/lib/CSSStyleRule.js +190 -0
- data/node_modules/cssom/lib/CSSStyleSheet.js +88 -0
- data/node_modules/cssom/lib/CSSValue.js +43 -0
- data/node_modules/cssom/lib/CSSValueExpression.js +344 -0
- data/node_modules/cssom/lib/MatcherList.js +62 -0
- data/node_modules/cssom/lib/MediaList.js +61 -0
- data/node_modules/cssom/lib/StyleSheet.js +17 -0
- data/node_modules/cssom/lib/clone.js +76 -0
- data/node_modules/cssom/lib/index.js +19 -0
- data/node_modules/cssom/lib/parse.js +381 -0
- data/node_modules/cssom/package.json +96 -0
- data/node_modules/cssstyle/.npmignore +1 -0
- data/node_modules/cssstyle/MIT-LICENSE.txt +20 -0
- data/node_modules/cssstyle/README.md +27 -0
- data/node_modules/cssstyle/lib/CSSStyleDeclaration.js +233 -0
- data/node_modules/cssstyle/lib/parsers.js +670 -0
- data/node_modules/cssstyle/lib/properties.js +5858 -0
- data/node_modules/cssstyle/lib/properties/alignmentBaseline.js +12 -0
- data/node_modules/cssstyle/lib/properties/azimuth.js +65 -0
- data/node_modules/cssstyle/lib/properties/background.js +24 -0
- data/node_modules/cssstyle/lib/properties/backgroundAttachment.js +22 -0
- data/node_modules/cssstyle/lib/properties/backgroundClip.js +12 -0
- data/node_modules/cssstyle/lib/properties/backgroundColor.js +33 -0
- data/node_modules/cssstyle/lib/properties/backgroundImage.js +29 -0
- data/node_modules/cssstyle/lib/properties/backgroundOrigin.js +12 -0
- data/node_modules/cssstyle/lib/properties/backgroundPosition.js +56 -0
- data/node_modules/cssstyle/lib/properties/backgroundPositionX.js +12 -0
- data/node_modules/cssstyle/lib/properties/backgroundPositionY.js +12 -0
- data/node_modules/cssstyle/lib/properties/backgroundRepeat.js +25 -0
- data/node_modules/cssstyle/lib/properties/backgroundRepeatX.js +12 -0
- data/node_modules/cssstyle/lib/properties/backgroundRepeatY.js +12 -0
- data/node_modules/cssstyle/lib/properties/backgroundSize.js +12 -0
- data/node_modules/cssstyle/lib/properties/baselineShift.js +12 -0
- data/node_modules/cssstyle/lib/properties/border.js +49 -0
- data/node_modules/cssstyle/lib/properties/borderBottom.js +23 -0
- data/node_modules/cssstyle/lib/properties/borderBottomColor.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderBottomLeftRadius.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderBottomRightRadius.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderBottomStyle.js +21 -0
- data/node_modules/cssstyle/lib/properties/borderBottomWidth.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderCollapse.js +25 -0
- data/node_modules/cssstyle/lib/properties/borderColor.js +28 -0
- data/node_modules/cssstyle/lib/properties/borderImage.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderImageOutset.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderImageRepeat.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderImageSlice.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderImageSource.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderImageWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderLeft.js +23 -0
- data/node_modules/cssstyle/lib/properties/borderLeftColor.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderLeftStyle.js +21 -0
- data/node_modules/cssstyle/lib/properties/borderLeftWidth.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderRadius.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderRight.js +23 -0
- data/node_modules/cssstyle/lib/properties/borderRightColor.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderRightStyle.js +21 -0
- data/node_modules/cssstyle/lib/properties/borderRightWidth.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderSpacing.js +42 -0
- data/node_modules/cssstyle/lib/properties/borderStyle.js +27 -0
- data/node_modules/cssstyle/lib/properties/borderTop.js +22 -0
- data/node_modules/cssstyle/lib/properties/borderTopColor.js +16 -0
- data/node_modules/cssstyle/lib/properties/borderTopLeftRadius.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderTopRightRadius.js +12 -0
- data/node_modules/cssstyle/lib/properties/borderTopStyle.js +21 -0
- data/node_modules/cssstyle/lib/properties/borderTopWidth.js +17 -0
- data/node_modules/cssstyle/lib/properties/borderWidth.js +47 -0
- data/node_modules/cssstyle/lib/properties/bottom.js +14 -0
- data/node_modules/cssstyle/lib/properties/boxShadow.js +12 -0
- data/node_modules/cssstyle/lib/properties/boxSizing.js +12 -0
- data/node_modules/cssstyle/lib/properties/captionSide.js +12 -0
- data/node_modules/cssstyle/lib/properties/clear.js +16 -0
- data/node_modules/cssstyle/lib/properties/clip.js +49 -0
- data/node_modules/cssstyle/lib/properties/color.js +14 -0
- data/node_modules/cssstyle/lib/properties/colorInterpolation.js +12 -0
- data/node_modules/cssstyle/lib/properties/colorInterpolationFilters.js +12 -0
- data/node_modules/cssstyle/lib/properties/colorProfile.js +12 -0
- data/node_modules/cssstyle/lib/properties/colorRendering.js +12 -0
- data/node_modules/cssstyle/lib/properties/content.js +12 -0
- data/node_modules/cssstyle/lib/properties/counterIncrement.js +12 -0
- data/node_modules/cssstyle/lib/properties/counterReset.js +12 -0
- data/node_modules/cssstyle/lib/properties/cssFloat.js +12 -0
- data/node_modules/cssstyle/lib/properties/cue.js +12 -0
- data/node_modules/cssstyle/lib/properties/cueAfter.js +12 -0
- data/node_modules/cssstyle/lib/properties/cueBefore.js +12 -0
- data/node_modules/cssstyle/lib/properties/cursor.js +12 -0
- data/node_modules/cssstyle/lib/properties/direction.js +12 -0
- data/node_modules/cssstyle/lib/properties/display.js +12 -0
- data/node_modules/cssstyle/lib/properties/dominantBaseline.js +12 -0
- data/node_modules/cssstyle/lib/properties/elevation.js +12 -0
- data/node_modules/cssstyle/lib/properties/emptyCells.js +12 -0
- data/node_modules/cssstyle/lib/properties/enableBackground.js +12 -0
- data/node_modules/cssstyle/lib/properties/fill.js +12 -0
- data/node_modules/cssstyle/lib/properties/fillOpacity.js +12 -0
- data/node_modules/cssstyle/lib/properties/fillRule.js +12 -0
- data/node_modules/cssstyle/lib/properties/filter.js +12 -0
- data/node_modules/cssstyle/lib/properties/floodColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/floodOpacity.js +12 -0
- data/node_modules/cssstyle/lib/properties/font.js +40 -0
- data/node_modules/cssstyle/lib/properties/fontFamily.js +33 -0
- data/node_modules/cssstyle/lib/properties/fontSize.js +25 -0
- data/node_modules/cssstyle/lib/properties/fontSizeAdjust.js +12 -0
- data/node_modules/cssstyle/lib/properties/fontStretch.js +12 -0
- data/node_modules/cssstyle/lib/properties/fontStyle.js +18 -0
- data/node_modules/cssstyle/lib/properties/fontVariant.js +18 -0
- data/node_modules/cssstyle/lib/properties/fontWeight.js +18 -0
- data/node_modules/cssstyle/lib/properties/glyphOrientationHorizontal.js +12 -0
- data/node_modules/cssstyle/lib/properties/glyphOrientationVertical.js +12 -0
- data/node_modules/cssstyle/lib/properties/height.js +24 -0
- data/node_modules/cssstyle/lib/properties/imageRendering.js +12 -0
- data/node_modules/cssstyle/lib/properties/kerning.js +12 -0
- data/node_modules/cssstyle/lib/properties/left.js +14 -0
- data/node_modules/cssstyle/lib/properties/letterSpacing.js +12 -0
- data/node_modules/cssstyle/lib/properties/lightingColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/lineHeight.js +21 -0
- data/node_modules/cssstyle/lib/properties/listStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/listStyleImage.js +12 -0
- data/node_modules/cssstyle/lib/properties/listStylePosition.js +12 -0
- data/node_modules/cssstyle/lib/properties/listStyleType.js +12 -0
- data/node_modules/cssstyle/lib/properties/margin.js +59 -0
- data/node_modules/cssstyle/lib/properties/marginBottom.js +13 -0
- data/node_modules/cssstyle/lib/properties/marginLeft.js +13 -0
- data/node_modules/cssstyle/lib/properties/marginRight.js +13 -0
- data/node_modules/cssstyle/lib/properties/marginTop.js +13 -0
- data/node_modules/cssstyle/lib/properties/marker.js +12 -0
- data/node_modules/cssstyle/lib/properties/markerEnd.js +12 -0
- data/node_modules/cssstyle/lib/properties/markerMid.js +12 -0
- data/node_modules/cssstyle/lib/properties/markerOffset.js +12 -0
- data/node_modules/cssstyle/lib/properties/markerStart.js +12 -0
- data/node_modules/cssstyle/lib/properties/marks.js +12 -0
- data/node_modules/cssstyle/lib/properties/mask.js +12 -0
- data/node_modules/cssstyle/lib/properties/maxHeight.js +12 -0
- data/node_modules/cssstyle/lib/properties/maxWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/minHeight.js +12 -0
- data/node_modules/cssstyle/lib/properties/minWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/opacity.js +14 -0
- data/node_modules/cssstyle/lib/properties/orphans.js +12 -0
- data/node_modules/cssstyle/lib/properties/outline.js +12 -0
- data/node_modules/cssstyle/lib/properties/outlineColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/outlineOffset.js +12 -0
- data/node_modules/cssstyle/lib/properties/outlineStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/outlineWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/overflow.js +12 -0
- data/node_modules/cssstyle/lib/properties/overflowX.js +12 -0
- data/node_modules/cssstyle/lib/properties/overflowY.js +12 -0
- data/node_modules/cssstyle/lib/properties/padding.js +52 -0
- data/node_modules/cssstyle/lib/properties/paddingBottom.js +13 -0
- data/node_modules/cssstyle/lib/properties/paddingLeft.js +13 -0
- data/node_modules/cssstyle/lib/properties/paddingRight.js +13 -0
- data/node_modules/cssstyle/lib/properties/paddingTop.js +13 -0
- data/node_modules/cssstyle/lib/properties/page.js +12 -0
- data/node_modules/cssstyle/lib/properties/pageBreakAfter.js +12 -0
- data/node_modules/cssstyle/lib/properties/pageBreakBefore.js +12 -0
- data/node_modules/cssstyle/lib/properties/pageBreakInside.js +12 -0
- data/node_modules/cssstyle/lib/properties/pause.js +12 -0
- data/node_modules/cssstyle/lib/properties/pauseAfter.js +12 -0
- data/node_modules/cssstyle/lib/properties/pauseBefore.js +12 -0
- data/node_modules/cssstyle/lib/properties/pitch.js +12 -0
- data/node_modules/cssstyle/lib/properties/pitchRange.js +12 -0
- data/node_modules/cssstyle/lib/properties/playDuring.js +12 -0
- data/node_modules/cssstyle/lib/properties/pointerEvents.js +12 -0
- data/node_modules/cssstyle/lib/properties/position.js +12 -0
- data/node_modules/cssstyle/lib/properties/quotes.js +12 -0
- data/node_modules/cssstyle/lib/properties/resize.js +12 -0
- data/node_modules/cssstyle/lib/properties/richness.js +12 -0
- data/node_modules/cssstyle/lib/properties/right.js +14 -0
- data/node_modules/cssstyle/lib/properties/shapeRendering.js +12 -0
- data/node_modules/cssstyle/lib/properties/size.js +12 -0
- data/node_modules/cssstyle/lib/properties/speak.js +12 -0
- data/node_modules/cssstyle/lib/properties/speakHeader.js +12 -0
- data/node_modules/cssstyle/lib/properties/speakNumeral.js +12 -0
- data/node_modules/cssstyle/lib/properties/speakPunctuation.js +12 -0
- data/node_modules/cssstyle/lib/properties/speechRate.js +12 -0
- data/node_modules/cssstyle/lib/properties/src.js +12 -0
- data/node_modules/cssstyle/lib/properties/stopColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/stopOpacity.js +12 -0
- data/node_modules/cssstyle/lib/properties/stress.js +12 -0
- data/node_modules/cssstyle/lib/properties/stroke.js +12 -0
- data/node_modules/cssstyle/lib/properties/strokeDasharray.js +12 -0
- data/node_modules/cssstyle/lib/properties/strokeDashoffset.js +12 -0
- data/node_modules/cssstyle/lib/properties/strokeLinecap.js +12 -0
- data/node_modules/cssstyle/lib/properties/strokeLinejoin.js +12 -0
- data/node_modules/cssstyle/lib/properties/strokeMiterlimit.js +12 -0
- data/node_modules/cssstyle/lib/properties/strokeOpacity.js +12 -0
- data/node_modules/cssstyle/lib/properties/strokeWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/tableLayout.js +12 -0
- data/node_modules/cssstyle/lib/properties/textAlign.js +12 -0
- data/node_modules/cssstyle/lib/properties/textAnchor.js +12 -0
- data/node_modules/cssstyle/lib/properties/textDecoration.js +12 -0
- data/node_modules/cssstyle/lib/properties/textIndent.js +12 -0
- data/node_modules/cssstyle/lib/properties/textLineThrough.js +12 -0
- data/node_modules/cssstyle/lib/properties/textLineThroughColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/textLineThroughMode.js +12 -0
- data/node_modules/cssstyle/lib/properties/textLineThroughStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/textLineThroughWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/textOverflow.js +12 -0
- data/node_modules/cssstyle/lib/properties/textOverline.js +12 -0
- data/node_modules/cssstyle/lib/properties/textOverlineColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/textOverlineMode.js +12 -0
- data/node_modules/cssstyle/lib/properties/textOverlineStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/textOverlineWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/textRendering.js +12 -0
- data/node_modules/cssstyle/lib/properties/textShadow.js +12 -0
- data/node_modules/cssstyle/lib/properties/textTransform.js +12 -0
- data/node_modules/cssstyle/lib/properties/textUnderline.js +12 -0
- data/node_modules/cssstyle/lib/properties/textUnderlineColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/textUnderlineMode.js +12 -0
- data/node_modules/cssstyle/lib/properties/textUnderlineStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/textUnderlineWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/top.js +14 -0
- data/node_modules/cssstyle/lib/properties/unicodeBidi.js +12 -0
- data/node_modules/cssstyle/lib/properties/unicodeRange.js +12 -0
- data/node_modules/cssstyle/lib/properties/vectorEffect.js +12 -0
- data/node_modules/cssstyle/lib/properties/verticalAlign.js +12 -0
- data/node_modules/cssstyle/lib/properties/visibility.js +12 -0
- data/node_modules/cssstyle/lib/properties/voiceFamily.js +12 -0
- data/node_modules/cssstyle/lib/properties/volume.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAnimation.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAnimationDelay.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAnimationDirection.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAnimationDuration.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAnimationFillMode.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAnimationIterationCount.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAnimationName.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAnimationPlayState.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAnimationTimingFunction.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAppearance.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitAspectRatio.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBackfaceVisibility.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBackgroundClip.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBackgroundComposite.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBackgroundOrigin.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBackgroundSize.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderAfter.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderAfterColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderAfterStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderAfterWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderBefore.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderBeforeColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderBeforeStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderBeforeWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderEnd.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderEndColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderEndStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderEndWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderFit.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderHorizontalSpacing.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderImage.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderRadius.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderStart.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderStartColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderStartStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderStartWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBorderVerticalSpacing.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxAlign.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxDirection.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxFlex.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxFlexGroup.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxLines.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxOrdinalGroup.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxOrient.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxPack.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxReflect.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitBoxShadow.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColorCorrection.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnAxis.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnBreakAfter.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnBreakBefore.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnBreakInside.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnCount.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnGap.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnRule.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnRuleColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnRuleStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnRuleWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnSpan.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumnWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitColumns.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFilter.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlexAlign.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlexDirection.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlexFlow.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlexItemAlign.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlexLinePack.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlexOrder.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlexPack.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlexWrap.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlowFrom.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFlowInto.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFontFeatureSettings.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFontKerning.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFontSizeDelta.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFontSmoothing.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitFontVariantLigatures.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitHighlight.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitHyphenateCharacter.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitHyphenateLimitAfter.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitHyphenateLimitBefore.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitHyphenateLimitLines.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitHyphens.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitLineAlign.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitLineBoxContain.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitLineBreak.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitLineClamp.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitLineGrid.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitLineSnap.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitLocale.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitLogicalHeight.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitLogicalWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarginAfter.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarginAfterCollapse.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarginBefore.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarginBeforeCollapse.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarginBottomCollapse.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarginCollapse.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarginEnd.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarginStart.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarginTopCollapse.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarquee.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarqueeDirection.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarqueeIncrement.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarqueeRepetition.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarqueeSpeed.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMarqueeStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMask.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskAttachment.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskBoxImage.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskBoxImageOutset.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskBoxImageRepeat.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskBoxImageSlice.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskBoxImageSource.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskBoxImageWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskClip.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskComposite.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskImage.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskOrigin.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskPosition.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskPositionX.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskPositionY.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskRepeat.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskRepeatX.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskRepeatY.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaskSize.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMatchNearestMailBlockquoteColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitMaxLogicalHeight.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMaxLogicalWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMinLogicalHeight.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitMinLogicalWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitNbspMode.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitOverflowScrolling.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitPaddingAfter.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitPaddingBefore.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitPaddingEnd.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitPaddingStart.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitPerspective.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitPerspectiveOrigin.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitPerspectiveOriginX.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitPerspectiveOriginY.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitPrintColorAdjust.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitRegionBreakAfter.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitRegionBreakBefore.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitRegionBreakInside.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitRegionOverflow.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitRtlOrdering.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitSvgShadow.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTapHighlightColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitTextCombine.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTextDecorationsInEffect.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTextEmphasis.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTextEmphasisColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitTextEmphasisPosition.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTextEmphasisStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTextFillColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitTextOrientation.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTextSecurity.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTextSizeAdjust.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTextStroke.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTextStrokeColor.js +14 -0
- data/node_modules/cssstyle/lib/properties/webkitTextStrokeWidth.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransform.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransformOrigin.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransformOriginX.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransformOriginY.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransformOriginZ.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransformStyle.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransition.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransitionDelay.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransitionDuration.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransitionProperty.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitTransitionTimingFunction.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitUserDrag.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitUserModify.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitUserSelect.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitWrap.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitWrapFlow.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitWrapMargin.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitWrapPadding.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitWrapShapeInside.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitWrapShapeOutside.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitWrapThrough.js +12 -0
- data/node_modules/cssstyle/lib/properties/webkitWritingMode.js +12 -0
- data/node_modules/cssstyle/lib/properties/whiteSpace.js +12 -0
- data/node_modules/cssstyle/lib/properties/widows.js +12 -0
- data/node_modules/cssstyle/lib/properties/width.js +24 -0
- data/node_modules/cssstyle/lib/properties/wordBreak.js +12 -0
- data/node_modules/cssstyle/lib/properties/wordSpacing.js +12 -0
- data/node_modules/cssstyle/lib/properties/wordWrap.js +12 -0
- data/node_modules/cssstyle/lib/properties/writingMode.js +12 -0
- data/node_modules/cssstyle/lib/properties/zIndex.js +12 -0
- data/node_modules/cssstyle/lib/properties/zoom.js +12 -0
- data/node_modules/cssstyle/package.json +109 -0
- data/node_modules/cssstyle/scripts/generate_properties.js +302 -0
- data/node_modules/cssstyle/scripts/run_tests.sh +4 -0
- data/node_modules/cssstyle/tests/tests.js +405 -0
- data/node_modules/dashdash/CHANGES.md +364 -0
- data/node_modules/dashdash/LICENSE.txt +24 -0
- data/node_modules/dashdash/README.md +574 -0
- data/node_modules/dashdash/etc/dashdash.bash_completion.in +389 -0
- data/node_modules/dashdash/lib/dashdash.js +1055 -0
- data/node_modules/dashdash/node_modules/assert-plus/AUTHORS +6 -0
- data/node_modules/dashdash/node_modules/assert-plus/CHANGES.md +14 -0
- data/node_modules/dashdash/node_modules/assert-plus/README.md +162 -0
- data/node_modules/dashdash/node_modules/assert-plus/assert.js +211 -0
- data/node_modules/dashdash/node_modules/assert-plus/package.json +115 -0
- data/node_modules/dashdash/package.json +125 -0
- data/node_modules/deep-eql/.npmignore +11 -0
- data/node_modules/deep-eql/History.md +28 -0
- data/node_modules/deep-eql/README.md +52 -0
- data/node_modules/deep-eql/index.js +1 -0
- data/node_modules/deep-eql/karma.conf.js +20 -0
- data/node_modules/deep-eql/lib/eql.js +257 -0
- data/node_modules/deep-eql/node_modules/type-detect/.npmignore +11 -0
- data/node_modules/deep-eql/node_modules/type-detect/History.md +18 -0
- data/node_modules/deep-eql/node_modules/type-detect/README.md +193 -0
- data/node_modules/deep-eql/node_modules/type-detect/index.js +1 -0
- data/node_modules/deep-eql/node_modules/type-detect/lib/type.js +142 -0
- data/node_modules/deep-eql/node_modules/type-detect/package.json +91 -0
- data/node_modules/deep-eql/package.json +98 -0
- data/node_modules/deep-is/.npmignore +1 -0
- data/node_modules/deep-is/.travis.yml +6 -0
- data/node_modules/deep-is/LICENSE +22 -0
- data/node_modules/deep-is/README.markdown +70 -0
- data/node_modules/deep-is/example/cmp.js +11 -0
- data/node_modules/deep-is/index.js +102 -0
- data/node_modules/deep-is/package.json +120 -0
- data/node_modules/deep-is/test/NaN.js +16 -0
- data/node_modules/deep-is/test/cmp.js +23 -0
- data/node_modules/deep-is/test/neg-vs-pos-0.js +15 -0
- data/node_modules/delayed-stream/.npmignore +1 -0
- data/node_modules/delayed-stream/License +19 -0
- data/node_modules/delayed-stream/Makefile +7 -0
- data/node_modules/delayed-stream/Readme.md +141 -0
- data/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
- data/node_modules/delayed-stream/package.json +97 -0
- data/node_modules/ecc-jsbn/.npmignore +15 -0
- data/node_modules/ecc-jsbn/LICENSE +21 -0
- data/node_modules/ecc-jsbn/README.md +8 -0
- data/node_modules/ecc-jsbn/index.js +57 -0
- data/node_modules/ecc-jsbn/lib/LICENSE-jsbn +40 -0
- data/node_modules/ecc-jsbn/lib/ec.js +561 -0
- data/node_modules/ecc-jsbn/lib/sec.js +170 -0
- data/node_modules/ecc-jsbn/package.json +90 -0
- data/node_modules/ecc-jsbn/test.js +14 -0
- data/node_modules/escape-string-regexp/index.js +11 -0
- data/node_modules/escape-string-regexp/license +21 -0
- data/node_modules/escape-string-regexp/package.json +109 -0
- data/node_modules/escape-string-regexp/readme.md +27 -0
- data/node_modules/escodegen/LICENSE.BSD +19 -0
- data/node_modules/escodegen/LICENSE.source-map +27 -0
- data/node_modules/escodegen/README.md +116 -0
- data/node_modules/escodegen/bin/escodegen.js +77 -0
- data/node_modules/escodegen/bin/esgenerate.js +64 -0
- data/node_modules/escodegen/escodegen.js +2607 -0
- data/node_modules/escodegen/package.json +122 -0
- data/node_modules/esprima/ChangeLog +174 -0
- data/node_modules/esprima/LICENSE.BSD +21 -0
- data/node_modules/esprima/README.md +27 -0
- data/node_modules/esprima/bin/esparse.js +126 -0
- data/node_modules/esprima/bin/esvalidate.js +199 -0
- data/node_modules/esprima/esprima.js +5740 -0
- data/node_modules/esprima/package.json +153 -0
- data/node_modules/estraverse/.editorconfig +10 -0
- data/node_modules/estraverse/.jshintrc +16 -0
- data/node_modules/estraverse/LICENSE.BSD +19 -0
- data/node_modules/estraverse/README.md +124 -0
- data/node_modules/estraverse/estraverse.js +845 -0
- data/node_modules/estraverse/gulpfile.js +70 -0
- data/node_modules/estraverse/package.json +95 -0
- data/node_modules/esutils/LICENSE.BSD +19 -0
- data/node_modules/esutils/README.md +169 -0
- data/node_modules/esutils/lib/ast.js +144 -0
- data/node_modules/esutils/lib/code.js +135 -0
- data/node_modules/esutils/lib/keyword.js +165 -0
- data/node_modules/esutils/lib/utils.js +33 -0
- data/node_modules/esutils/package.json +105 -0
- data/node_modules/extend/.eslintrc +192 -0
- data/node_modules/extend/.jscs.json +104 -0
- data/node_modules/extend/.npmignore +1 -0
- data/node_modules/extend/.travis.yml +44 -0
- data/node_modules/extend/CHANGELOG.md +69 -0
- data/node_modules/extend/LICENSE +23 -0
- data/node_modules/extend/README.md +62 -0
- data/node_modules/extend/component.json +32 -0
- data/node_modules/extend/index.js +86 -0
- data/node_modules/extend/package.json +106 -0
- data/node_modules/extsprintf/.gitmodules +6 -0
- data/node_modules/extsprintf/LICENSE +19 -0
- data/node_modules/extsprintf/Makefile +23 -0
- data/node_modules/extsprintf/Makefile.deps +39 -0
- data/node_modules/extsprintf/Makefile.targ +285 -0
- data/node_modules/extsprintf/README.md +39 -0
- data/node_modules/extsprintf/examples/simple.js +2 -0
- data/node_modules/extsprintf/jsl.node.conf +137 -0
- data/node_modules/extsprintf/lib/extsprintf.js +166 -0
- data/node_modules/extsprintf/package.json +74 -0
- data/node_modules/fast-levenshtein/LICENSE.md +25 -0
- data/node_modules/fast-levenshtein/README.md +104 -0
- data/node_modules/fast-levenshtein/levenshtein.js +102 -0
- data/node_modules/fast-levenshtein/package.json +108 -0
- data/node_modules/forever-agent/LICENSE +55 -0
- data/node_modules/forever-agent/README.md +4 -0
- data/node_modules/forever-agent/index.js +138 -0
- data/node_modules/forever-agent/package.json +88 -0
- data/node_modules/form-data/License +19 -0
- data/node_modules/form-data/README.md +217 -0
- data/node_modules/form-data/lib/browser.js +2 -0
- data/node_modules/form-data/lib/form_data.js +440 -0
- data/node_modules/form-data/lib/populate.js +10 -0
- data/node_modules/form-data/package.json +145 -0
- data/node_modules/generate-function/.npmignore +1 -0
- data/node_modules/generate-function/.travis.yml +3 -0
- data/node_modules/generate-function/README.md +72 -0
- data/node_modules/generate-function/example.js +27 -0
- data/node_modules/generate-function/index.js +61 -0
- data/node_modules/generate-function/package.json +87 -0
- data/node_modules/generate-function/test.js +33 -0
- data/node_modules/generate-object-property/.npmignore +1 -0
- data/node_modules/generate-object-property/.travis.yml +3 -0
- data/node_modules/generate-object-property/LICENSE +21 -0
- data/node_modules/generate-object-property/README.md +19 -0
- data/node_modules/generate-object-property/index.js +12 -0
- data/node_modules/generate-object-property/package.json +84 -0
- data/node_modules/generate-object-property/test.js +12 -0
- data/node_modules/getpass/.npmignore +8 -0
- data/node_modules/getpass/.travis.yml +9 -0
- data/node_modules/getpass/LICENSE +18 -0
- data/node_modules/getpass/README.md +32 -0
- data/node_modules/getpass/lib/index.js +123 -0
- data/node_modules/getpass/node_modules/assert-plus/AUTHORS +6 -0
- data/node_modules/getpass/node_modules/assert-plus/CHANGES.md +14 -0
- data/node_modules/getpass/node_modules/assert-plus/README.md +162 -0
- data/node_modules/getpass/node_modules/assert-plus/assert.js +211 -0
- data/node_modules/getpass/node_modules/assert-plus/package.json +115 -0
- data/node_modules/getpass/package.json +90 -0
- data/node_modules/graceful-readlink/.npmignore +3 -0
- data/node_modules/graceful-readlink/.travis.yml +5 -0
- data/node_modules/graceful-readlink/LICENSE +22 -0
- data/node_modules/graceful-readlink/README.md +17 -0
- data/node_modules/graceful-readlink/index.js +12 -0
- data/node_modules/graceful-readlink/package.json +83 -0
- data/node_modules/har-validator/LICENSE +13 -0
- data/node_modules/har-validator/README.md +309 -0
- data/node_modules/har-validator/bin/har-validator +56 -0
- data/node_modules/har-validator/lib/async.js +14 -0
- data/node_modules/har-validator/lib/error.js +10 -0
- data/node_modules/har-validator/lib/index.js +22 -0
- data/node_modules/har-validator/lib/runner.js +29 -0
- data/node_modules/har-validator/lib/schemas/cache.json +13 -0
- data/node_modules/har-validator/lib/schemas/cacheEntry.json +31 -0
- data/node_modules/har-validator/lib/schemas/content.json +27 -0
- data/node_modules/har-validator/lib/schemas/cookie.json +34 -0
- data/node_modules/har-validator/lib/schemas/creator.json +18 -0
- data/node_modules/har-validator/lib/schemas/entry.json +51 -0
- data/node_modules/har-validator/lib/schemas/har.json +11 -0
- data/node_modules/har-validator/lib/schemas/index.js +49 -0
- data/node_modules/har-validator/lib/schemas/log.json +34 -0
- data/node_modules/har-validator/lib/schemas/page.json +30 -0
- data/node_modules/har-validator/lib/schemas/pageTimings.json +16 -0
- data/node_modules/har-validator/lib/schemas/postData.json +41 -0
- data/node_modules/har-validator/lib/schemas/record.json +18 -0
- data/node_modules/har-validator/lib/schemas/request.json +55 -0
- data/node_modules/har-validator/lib/schemas/response.json +52 -0
- data/node_modules/har-validator/lib/schemas/timings.json +40 -0
- data/node_modules/har-validator/package.json +120 -0
- data/node_modules/has-ansi/index.js +4 -0
- data/node_modules/has-ansi/license +21 -0
- data/node_modules/has-ansi/package.json +118 -0
- data/node_modules/has-ansi/readme.md +36 -0
- data/node_modules/hawk/.npmignore +20 -0
- data/node_modules/hawk/.travis.yml +5 -0
- data/node_modules/hawk/LICENSE +28 -0
- data/node_modules/hawk/README.md +634 -0
- data/node_modules/hawk/bower.json +24 -0
- data/node_modules/hawk/component.json +19 -0
- data/node_modules/hawk/dist/client.js +343 -0
- data/node_modules/hawk/example/usage.js +78 -0
- data/node_modules/hawk/images/hawk.png +0 -0
- data/node_modules/hawk/images/logo.png +0 -0
- data/node_modules/hawk/lib/browser.js +637 -0
- data/node_modules/hawk/lib/client.js +369 -0
- data/node_modules/hawk/lib/crypto.js +126 -0
- data/node_modules/hawk/lib/index.js +15 -0
- data/node_modules/hawk/lib/server.js +548 -0
- data/node_modules/hawk/lib/utils.js +184 -0
- data/node_modules/hawk/package.json +101 -0
- data/node_modules/hawk/test/browser.js +1492 -0
- data/node_modules/hawk/test/client.js +440 -0
- data/node_modules/hawk/test/crypto.js +70 -0
- data/node_modules/hawk/test/index.js +378 -0
- data/node_modules/hawk/test/readme.js +95 -0
- data/node_modules/hawk/test/server.js +1329 -0
- data/node_modules/hawk/test/uri.js +838 -0
- data/node_modules/hawk/test/utils.js +149 -0
- data/node_modules/hoek/.npmignore +18 -0
- data/node_modules/hoek/.travis.yml +7 -0
- data/node_modules/hoek/CONTRIBUTING.md +1 -0
- data/node_modules/hoek/LICENSE +31 -0
- data/node_modules/hoek/README.md +584 -0
- data/node_modules/hoek/images/hoek.png +0 -0
- data/node_modules/hoek/lib/escape.js +132 -0
- data/node_modules/hoek/lib/index.js +993 -0
- data/node_modules/hoek/package.json +96 -0
- data/node_modules/hoek/test/escaper.js +88 -0
- data/node_modules/hoek/test/index.js +2513 -0
- data/node_modules/hoek/test/modules/ignore.txt +0 -0
- data/node_modules/hoek/test/modules/test1.js +1 -0
- data/node_modules/hoek/test/modules/test2.js +1 -0
- data/node_modules/hoek/test/modules/test3.js +1 -0
- data/node_modules/html-encoding-sniffer/LICENSE.txt +19 -0
- data/node_modules/html-encoding-sniffer/README.md +38 -0
- data/node_modules/html-encoding-sniffer/lib/html-encoding-sniffer.js +302 -0
- data/node_modules/html-encoding-sniffer/package.json +98 -0
- data/node_modules/http-signature/.dir-locals.el +6 -0
- data/node_modules/http-signature/.npmignore +7 -0
- data/node_modules/http-signature/CHANGES.md +46 -0
- data/node_modules/http-signature/LICENSE +18 -0
- data/node_modules/http-signature/README.md +79 -0
- data/node_modules/http-signature/http_signing.md +363 -0
- data/node_modules/http-signature/lib/index.js +29 -0
- data/node_modules/http-signature/lib/parser.js +318 -0
- data/node_modules/http-signature/lib/signer.js +399 -0
- data/node_modules/http-signature/lib/utils.js +112 -0
- data/node_modules/http-signature/lib/verify.js +88 -0
- data/node_modules/http-signature/package.json +116 -0
- data/node_modules/iconv-lite/.npmignore +6 -0
- data/node_modules/iconv-lite/.travis.yml +22 -0
- data/node_modules/iconv-lite/Changelog.md +108 -0
- data/node_modules/iconv-lite/LICENSE +21 -0
- data/node_modules/iconv-lite/README.md +159 -0
- data/node_modules/iconv-lite/encodings/dbcs-codec.js +554 -0
- data/node_modules/iconv-lite/encodings/dbcs-data.js +176 -0
- data/node_modules/iconv-lite/encodings/index.js +22 -0
- data/node_modules/iconv-lite/encodings/internal.js +187 -0
- data/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- data/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- data/node_modules/iconv-lite/encodings/sbcs-data.js +169 -0
- data/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- data/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- data/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- data/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- data/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- data/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- data/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
- data/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- data/node_modules/iconv-lite/encodings/utf16.js +176 -0
- data/node_modules/iconv-lite/encodings/utf7.js +289 -0
- data/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- data/node_modules/iconv-lite/lib/extend-node.js +214 -0
- data/node_modules/iconv-lite/lib/index.d.ts +31 -0
- data/node_modules/iconv-lite/lib/index.js +141 -0
- data/node_modules/iconv-lite/lib/streams.js +120 -0
- data/node_modules/iconv-lite/package.json +158 -0
- data/node_modules/is-my-json-valid/.npmignore +2 -0
- data/node_modules/is-my-json-valid/.travis.yml +3 -0
- data/node_modules/is-my-json-valid/LICENSE +21 -0
- data/node_modules/is-my-json-valid/README.md +173 -0
- data/node_modules/is-my-json-valid/example.js +18 -0
- data/node_modules/is-my-json-valid/formats.js +14 -0
- data/node_modules/is-my-json-valid/index.js +594 -0
- data/node_modules/is-my-json-valid/package.json +116 -0
- data/node_modules/is-my-json-valid/require.js +12 -0
- data/node_modules/is-my-json-valid/test/fixtures/cosmic.js +84 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/additionalItems.json +82 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/additionalProperties.json +88 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/allOf.json +112 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json +68 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/bignum.json +107 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/default.json +49 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/definitions.json +32 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/dependencies.json +113 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/enum.json +72 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/format.json +143 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/items.json +46 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/maxItems.json +28 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/maxLength.json +28 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/maxProperties.json +28 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/maximum.json +42 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/minItems.json +28 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/minLength.json +28 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/minProperties.json +28 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/minimum.json +42 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/multipleOf.json +96 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/not.json +96 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/nullAndFormat.json +18 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/nullAndObject.json +18 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/oneOf.json +68 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/pattern.json +23 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/patternProperties.json +110 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/properties.json +92 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/ref.json +128 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/refRemote.json +74 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/required.json +39 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/type.json +330 -0
- data/node_modules/is-my-json-valid/test/json-schema-draft4/uniqueItems.json +79 -0
- data/node_modules/is-my-json-valid/test/json-schema.js +23 -0
- data/node_modules/is-my-json-valid/test/misc.js +471 -0
- data/node_modules/is-property/.npmignore +17 -0
- data/node_modules/is-property/LICENSE +22 -0
- data/node_modules/is-property/README.md +28 -0
- data/node_modules/is-property/is-property.js +5 -0
- data/node_modules/is-property/package.json +92 -0
- data/node_modules/is-typedarray/LICENSE.md +18 -0
- data/node_modules/is-typedarray/README.md +16 -0
- data/node_modules/is-typedarray/index.js +41 -0
- data/node_modules/is-typedarray/package.json +90 -0
- data/node_modules/is-typedarray/test.js +34 -0
- data/node_modules/isstream/.jshintrc +59 -0
- data/node_modules/isstream/.npmignore +1 -0
- data/node_modules/isstream/.travis.yml +12 -0
- data/node_modules/isstream/LICENSE.md +11 -0
- data/node_modules/isstream/README.md +66 -0
- data/node_modules/isstream/isstream.js +27 -0
- data/node_modules/isstream/package.json +93 -0
- data/node_modules/isstream/test.js +168 -0
- data/node_modules/jodid25519/.npmignore +11 -0
- data/node_modules/jodid25519/.travis.yml +7 -0
- data/node_modules/jodid25519/AUTHORS.md +3 -0
- data/node_modules/jodid25519/LICENSE +23 -0
- data/node_modules/jodid25519/README.md +51 -0
- data/node_modules/jodid25519/almond.0 +42 -0
- data/node_modules/jodid25519/almond.1 +13 -0
- data/node_modules/jodid25519/index.js +35 -0
- data/node_modules/jodid25519/jsdoc.json +19 -0
- data/node_modules/jodid25519/lib/core.js +481 -0
- data/node_modules/jodid25519/lib/curve255.js +221 -0
- data/node_modules/jodid25519/lib/dh.js +111 -0
- data/node_modules/jodid25519/lib/eddsa.js +573 -0
- data/node_modules/jodid25519/lib/utils.js +198 -0
- data/node_modules/jodid25519/package.json +104 -0
- data/node_modules/jquery/AUTHORS.txt +295 -0
- data/node_modules/jquery/LICENSE.txt +36 -0
- data/node_modules/jquery/README.md +65 -0
- data/node_modules/jquery/bower.json +14 -0
- data/node_modules/jquery/dist/core.js +482 -0
- data/node_modules/jquery/dist/jquery.js +10220 -0
- data/node_modules/jquery/dist/jquery.min.js +4 -0
- data/node_modules/jquery/dist/jquery.min.map +1 -0
- data/node_modules/jquery/dist/jquery.slim.js +8107 -0
- data/node_modules/jquery/dist/jquery.slim.min.js +4 -0
- data/node_modules/jquery/dist/jquery.slim.min.map +1 -0
- data/node_modules/jquery/external/sizzle/LICENSE.txt +36 -0
- data/node_modules/jquery/external/sizzle/dist/sizzle.js +2272 -0
- data/node_modules/jquery/external/sizzle/dist/sizzle.min.js +3 -0
- data/node_modules/jquery/external/sizzle/dist/sizzle.min.map +1 -0
- data/node_modules/jquery/package.json +169 -0
- data/node_modules/jquery/src/.eslintrc.json +18 -0
- data/node_modules/jquery/src/ajax.js +855 -0
- data/node_modules/jquery/src/ajax/jsonp.js +102 -0
- data/node_modules/jquery/src/ajax/load.js +76 -0
- data/node_modules/jquery/src/ajax/parseXML.js +30 -0
- data/node_modules/jquery/src/ajax/script.js +77 -0
- data/node_modules/jquery/src/ajax/var/location.js +5 -0
- data/node_modules/jquery/src/ajax/var/nonce.js +7 -0
- data/node_modules/jquery/src/ajax/var/rquery.js +5 -0
- data/node_modules/jquery/src/ajax/xhr.js +169 -0
- data/node_modules/jquery/src/attributes.js +13 -0
- data/node_modules/jquery/src/attributes/attr.js +140 -0
- data/node_modules/jquery/src/attributes/classes.js +174 -0
- data/node_modules/jquery/src/attributes/prop.js +143 -0
- data/node_modules/jquery/src/attributes/support.js +33 -0
- data/node_modules/jquery/src/attributes/val.js +188 -0
- data/node_modules/jquery/src/callbacks.js +234 -0
- data/node_modules/jquery/src/core.js +482 -0
- data/node_modules/jquery/src/core/DOMEval.js +16 -0
- data/node_modules/jquery/src/core/access.js +70 -0
- data/node_modules/jquery/src/core/init.js +127 -0
- data/node_modules/jquery/src/core/parseHTML.js +65 -0
- data/node_modules/jquery/src/core/ready-no-deferred.js +105 -0
- data/node_modules/jquery/src/core/ready.js +95 -0
- data/node_modules/jquery/src/core/readyException.js +13 -0
- data/node_modules/jquery/src/core/stripAndCollapse.js +14 -0
- data/node_modules/jquery/src/core/support.js +20 -0
- data/node_modules/jquery/src/core/var/rsingleTag.js +6 -0
- data/node_modules/jquery/src/css.js +426 -0
- data/node_modules/jquery/src/css/addGetHookIf.js +26 -0
- data/node_modules/jquery/src/css/adjustCSS.js +71 -0
- data/node_modules/jquery/src/css/curCSS.js +59 -0
- data/node_modules/jquery/src/css/hiddenVisibleSelectors.js +15 -0
- data/node_modules/jquery/src/css/showHide.js +105 -0
- data/node_modules/jquery/src/css/support.js +89 -0
- data/node_modules/jquery/src/css/var/cssExpand.js +5 -0
- data/node_modules/jquery/src/css/var/getStyles.js +17 -0
- data/node_modules/jquery/src/css/var/isHiddenWithinTree.js +34 -0
- data/node_modules/jquery/src/css/var/rmargin.js +5 -0
- data/node_modules/jquery/src/css/var/rnumnonpx.js +7 -0
- data/node_modules/jquery/src/css/var/swap.js +26 -0
- data/node_modules/jquery/src/data.js +179 -0
- data/node_modules/jquery/src/data/Data.js +161 -0
- data/node_modules/jquery/src/data/var/acceptData.js +19 -0
- data/node_modules/jquery/src/data/var/dataPriv.js +7 -0
- data/node_modules/jquery/src/data/var/dataUser.js +7 -0
- data/node_modules/jquery/src/deferred.js +389 -0
- data/node_modules/jquery/src/deferred/exceptionHook.js +21 -0
- data/node_modules/jquery/src/deprecated.js +30 -0
- data/node_modules/jquery/src/dimensions.js +56 -0
- data/node_modules/jquery/src/effects.js +693 -0
- data/node_modules/jquery/src/effects/Tween.js +123 -0
- data/node_modules/jquery/src/effects/animatedSelector.js +15 -0
- data/node_modules/jquery/src/event.js +745 -0
- data/node_modules/jquery/src/event/ajax.js +22 -0
- data/node_modules/jquery/src/event/alias.js +29 -0
- data/node_modules/jquery/src/event/focusin.js +55 -0
- data/node_modules/jquery/src/event/support.js +11 -0
- data/node_modules/jquery/src/event/trigger.js +185 -0
- data/node_modules/jquery/src/exports/amd.js +26 -0
- data/node_modules/jquery/src/exports/global.js +34 -0
- data/node_modules/jquery/src/jquery.js +41 -0
- data/node_modules/jquery/src/manipulation.js +486 -0
- data/node_modules/jquery/src/manipulation/_evalUrl.js +23 -0
- data/node_modules/jquery/src/manipulation/buildFragment.js +104 -0
- data/node_modules/jquery/src/manipulation/getAll.js +31 -0
- data/node_modules/jquery/src/manipulation/setGlobalEval.js +22 -0
- data/node_modules/jquery/src/manipulation/support.js +35 -0
- data/node_modules/jquery/src/manipulation/var/rcheckableType.js +5 -0
- data/node_modules/jquery/src/manipulation/var/rscriptType.js +5 -0
- data/node_modules/jquery/src/manipulation/var/rtagName.js +5 -0
- data/node_modules/jquery/src/manipulation/wrapMap.js +29 -0
- data/node_modules/jquery/src/offset.js +232 -0
- data/node_modules/jquery/src/queue.js +145 -0
- data/node_modules/jquery/src/queue/delay.js +24 -0
- data/node_modules/jquery/src/selector-native.js +237 -0
- data/node_modules/jquery/src/selector-sizzle.js +19 -0
- data/node_modules/jquery/src/selector.js +3 -0
- data/node_modules/jquery/src/serialize.js +130 -0
- data/node_modules/jquery/src/traversing.js +178 -0
- data/node_modules/jquery/src/traversing/findFilter.js +106 -0
- data/node_modules/jquery/src/traversing/var/dir.js +22 -0
- data/node_modules/jquery/src/traversing/var/rneedsContext.js +8 -0
- data/node_modules/jquery/src/traversing/var/siblings.js +17 -0
- data/node_modules/jquery/src/var/ObjectFunctionString.js +7 -0
- data/node_modules/jquery/src/var/arr.js +5 -0
- data/node_modules/jquery/src/var/class2type.js +6 -0
- data/node_modules/jquery/src/var/concat.js +7 -0
- data/node_modules/jquery/src/var/document.js +5 -0
- data/node_modules/jquery/src/var/documentElement.js +7 -0
- data/node_modules/jquery/src/var/fnToString.js +7 -0
- data/node_modules/jquery/src/var/getProto.js +5 -0
- data/node_modules/jquery/src/var/hasOwn.js +7 -0
- data/node_modules/jquery/src/var/indexOf.js +7 -0
- data/node_modules/jquery/src/var/pnum.js +5 -0
- data/node_modules/jquery/src/var/push.js +7 -0
- data/node_modules/jquery/src/var/rcssNum.js +9 -0
- data/node_modules/jquery/src/var/rnothtmlwhite.js +8 -0
- data/node_modules/jquery/src/var/slice.js +7 -0
- data/node_modules/jquery/src/var/support.js +6 -0
- data/node_modules/jquery/src/var/toString.js +7 -0
- data/node_modules/jquery/src/wrap.js +77 -0
- data/node_modules/jsbn/.npmignore +2 -0
- data/node_modules/jsbn/LICENSE +40 -0
- data/node_modules/jsbn/README.md +175 -0
- data/node_modules/jsbn/example.html +12 -0
- data/node_modules/jsbn/example.js +3 -0
- data/node_modules/jsbn/index.js +1358 -0
- data/node_modules/jsbn/package.json +87 -0
- data/node_modules/jsdom-global/.npmignore +1 -0
- data/node_modules/jsdom-global/.travis.yml +6 -0
- data/node_modules/jsdom-global/HISTORY.md +85 -0
- data/node_modules/jsdom-global/README.md +137 -0
- data/node_modules/jsdom-global/browser.js +10 -0
- data/node_modules/jsdom-global/index.js +46 -0
- data/node_modules/jsdom-global/keys.js +187 -0
- data/node_modules/jsdom-global/package.json +95 -0
- data/node_modules/jsdom-global/register.js +1 -0
- data/node_modules/jsdom-global/test.js +22 -0
- data/node_modules/jsdom/Changelog.md +1254 -0
- data/node_modules/jsdom/LICENSE.txt +22 -0
- data/node_modules/jsdom/README.md +592 -0
- data/node_modules/jsdom/lib/jsdom.js +456 -0
- data/node_modules/jsdom/lib/jsdom/browser/Window.js +502 -0
- data/node_modules/jsdom/lib/jsdom/browser/default-stylesheet.js +1129 -0
- data/node_modules/jsdom/lib/jsdom/browser/documentAdapter.js +73 -0
- data/node_modules/jsdom/lib/jsdom/browser/documentfeatures.js +47 -0
- data/node_modules/jsdom/lib/jsdom/browser/domtohtml.js +19 -0
- data/node_modules/jsdom/lib/jsdom/browser/htmltodom.js +323 -0
- data/node_modules/jsdom/lib/jsdom/browser/not-implemented.js +13 -0
- data/node_modules/jsdom/lib/jsdom/browser/resource-loader.js +275 -0
- data/node_modules/jsdom/lib/jsdom/level2/style.js +69 -0
- data/node_modules/jsdom/lib/jsdom/level3/xpath.js +1874 -0
- data/node_modules/jsdom/lib/jsdom/living/attributes.js +468 -0
- data/node_modules/jsdom/lib/jsdom/living/attributes/Attr-impl.js +87 -0
- data/node_modules/jsdom/lib/jsdom/living/blob-symbols.js +6 -0
- data/node_modules/jsdom/lib/jsdom/living/blob.js +73 -0
- data/node_modules/jsdom/lib/jsdom/living/dom-token-list.js +222 -0
- data/node_modules/jsdom/lib/jsdom/living/domparsing/DOMParser-impl.js +61 -0
- data/node_modules/jsdom/lib/jsdom/living/events/CustomEvent-impl.js +18 -0
- data/node_modules/jsdom/lib/jsdom/living/events/ErrorEvent-impl.js +11 -0
- data/node_modules/jsdom/lib/jsdom/living/events/Event-impl.js +77 -0
- data/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js +303 -0
- data/node_modules/jsdom/lib/jsdom/living/events/FocusEvent-impl.js +4 -0
- data/node_modules/jsdom/lib/jsdom/living/events/HashChangeEvent-impl.js +11 -0
- data/node_modules/jsdom/lib/jsdom/living/events/KeyboardEvent-impl.js +21 -0
- data/node_modules/jsdom/lib/jsdom/living/events/MessageEvent-impl.js +22 -0
- data/node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js +28 -0
- data/node_modules/jsdom/lib/jsdom/living/events/PopStateEvent-impl.js +4 -0
- data/node_modules/jsdom/lib/jsdom/living/events/ProgressEvent-impl.js +11 -0
- data/node_modules/jsdom/lib/jsdom/living/events/TouchEvent-impl.js +11 -0
- data/node_modules/jsdom/lib/jsdom/living/events/UIEvent-impl.js +19 -0
- data/node_modules/jsdom/lib/jsdom/living/file-reader.js +133 -0
- data/node_modules/jsdom/lib/jsdom/living/file-symbols.js +4 -0
- data/node_modules/jsdom/lib/jsdom/living/file.js +22 -0
- data/node_modules/jsdom/lib/jsdom/living/filelist-symbols.js +3 -0
- data/node_modules/jsdom/lib/jsdom/living/filelist.js +21 -0
- data/node_modules/jsdom/lib/jsdom/living/form-data-symbols.js +3 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/.gitkeep +0 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/AddEventListenerOptions.js +34 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Attr.js +169 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/CharacterData.js +189 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ChildNode.js +92 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Comment.js +92 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/CustomEvent.js +122 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/CustomEventInit.js +34 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/DOMImplementation.js +143 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/DOMParser.js +97 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Document.js +712 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/DocumentFragment.js +91 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/DocumentType.js +110 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Element.js +552 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ElementCSSInlineStyle.js +88 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ElementContentEditable.js +77 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ErrorEvent.js +137 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ErrorEventInit.js +56 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Event.js +251 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/EventInit.js +40 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/EventListenerOptions.js +32 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/EventModifierInit.js +146 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js +130 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/FocusEvent.js +104 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/FocusEventInit.js +34 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/FormData.js +179 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/GlobalEventHandlers.js +770 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAnchorElement.js +228 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAppletElement.js +225 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAreaElement.js +167 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLAudioElement.js +82 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLBRElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLBaseElement.js +107 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLBodyElement.js +164 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLButtonElement.js +189 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLCanvasElement.js +181 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDListElement.js +98 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDataElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDataListElement.js +82 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDialogElement.js +98 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDirectoryElement.js +98 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLDivElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLElement.js +205 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLEmbedElement.js +159 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFieldSetElement.js +119 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFontElement.js +121 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFormElement.js +211 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFrameElement.js +203 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLFrameSetElement.js +112 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHRElement.js +150 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHeadElement.js +82 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHeadingElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHtmlElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLHyperlinkElementUtils.js +205 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLIFrameElement.js +278 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLImageElement.js +326 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLInputElement.js +583 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLIElement.js +108 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLabelElement.js +103 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLegendElement.js +103 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLLinkElement.js +206 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMapElement.js +103 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMediaElement.js +505 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMenuElement.js +124 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMetaElement.js +134 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLMeterElement.js +82 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLModElement.js +108 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOListElement.js +140 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLObjectElement.js +309 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOptGroupElement.js +111 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOptionElement.js +178 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLOutputElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLParagraphElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLParamElement.js +134 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLPreElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLProgressElement.js +82 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLQuoteElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLScriptElement.js +204 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSelectElement.js +260 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSourceElement.js +146 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLSpanElement.js +82 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLStyleElement.js +125 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableCaptionElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableCellElement.js +245 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableColElement.js +161 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableDataCellElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableElement.js +357 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableHeaderCellElement.js +121 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableRowElement.js +202 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTableSectionElement.js +173 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTemplateElement.js +90 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTextAreaElement.js +415 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTimeElement.js +95 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTitleElement.js +94 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLTrackElement.js +193 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLUListElement.js +111 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLUnknownElement.js +82 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HTMLVideoElement.js +138 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HashChangeEvent.js +113 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/HashChangeEventInit.js +38 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/History.js +179 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/KeyboardEvent.js +269 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/KeyboardEventInit.js +90 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/LinkStyle.js +85 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Location.js +227 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/MessageEvent.js +164 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/MessageEventInit.js +56 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/MouseEvent.js +234 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/MouseEventInit.js +82 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Navigator.js +96 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorConcurrentHardware.js +85 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorCookies.js +85 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorID.js +149 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorLanguage.js +93 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorOnLine.js +85 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NavigatorPlugins.js +88 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Node.js +512 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NonDocumentTypeChildNode.js +93 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/NonElementParentNode.js +92 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ParentNode.js +139 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/PopStateEvent.js +105 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/PopStateEventInit.js +32 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ProcessingInstruction.js +90 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ProgressEvent.js +122 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ProgressEventInit.js +50 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ScrollIntoViewOptions.js +42 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/ScrollOptions.js +32 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Text.js +107 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/TouchEvent.js +138 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/TreeWalker.js +189 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/UIEvent.js +134 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/UIEventInit.js +42 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/Window.js +1 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/WindowEventHandlers.js +242 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/XMLDocument.js +82 -0
- data/node_modules/jsdom/lib/jsdom/living/generated/utils.js +40 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/document-base-url.js +53 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/focusing.js +74 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/form-controls.js +43 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/internal-constants.js +13 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/ordered-set-parser.js +5 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/proxied-window-event-handlers.js +11 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js +68 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/selectors.js +30 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/stylesheets.js +78 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/traversal.js +51 -0
- data/node_modules/jsdom/lib/jsdom/living/helpers/validate-names.js +62 -0
- data/node_modules/jsdom/lib/jsdom/living/html-collection.js +109 -0
- data/node_modules/jsdom/lib/jsdom/living/index.js +57 -0
- data/node_modules/jsdom/lib/jsdom/living/named-properties-window.js +139 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/Navigator-impl.js +24 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorConcurrentHardware-impl.js +8 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorCookies-impl.js +7 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorID-impl.js +37 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorLanguage-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorOnLine-impl.js +7 -0
- data/node_modules/jsdom/lib/jsdom/living/navigator/NavigatorPlugins-impl.js +7 -0
- data/node_modules/jsdom/lib/jsdom/living/node-document-position.js +10 -0
- data/node_modules/jsdom/lib/jsdom/living/node-filter.js +47 -0
- data/node_modules/jsdom/lib/jsdom/living/node-iterator.js +232 -0
- data/node_modules/jsdom/lib/jsdom/living/node-list.js +85 -0
- data/node_modules/jsdom/lib/jsdom/living/node-type.js +16 -0
- data/node_modules/jsdom/lib/jsdom/living/node.js +189 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/CharacterData-impl.js +78 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/ChildNode-impl.js +15 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/Comment-impl.js +17 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/DOMImplementation-impl.js +176 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/Document-impl.js +777 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/DocumentFragment-impl.js +21 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/DocumentType-impl.js +26 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/Element-impl.js +491 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/ElementCSSInlineStyle-impl.js +7 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/ElementContentEditable-impl.js +7 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/GlobalEventHandlers-impl.js +7 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAnchorElement-impl.js +25 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAppletElement-impl.js +26 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAreaElement-impl.js +18 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLAudioElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBRElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBaseElement-impl.js +27 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBodyElement-impl.js +30 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLButtonElement-impl.js +58 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js +134 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDListElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDataElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDataListElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDialogElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDirectoryElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDivElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js +144 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLEmbedElement-impl.js +18 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFieldSetElement-impl.js +14 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFontElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFormElement-impl.js +125 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFrameElement-impl.js +181 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLFrameSetElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHRElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHeadElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHeadingElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHtmlElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHyperlinkElementUtils-impl.js +275 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLIFrameElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLImageElement-impl.js +93 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLInputElement-impl.js +396 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLIElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLabelElement-impl.js +72 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLegendElement-impl.js +14 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLLinkElement-impl.js +76 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMapElement-impl.js +13 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMediaElement-impl.js +140 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMenuElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMetaElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLMeterElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLModElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOListElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLObjectElement-impl.js +35 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOptGroupElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOptionElement-impl.js +122 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOutputElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLParagraphElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLParamElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLPreElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLProgressElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLQuoteElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js +139 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSelectElement-impl.js +174 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSourceElement-impl.js +18 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLSpanElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLStyleElement-impl.js +33 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableCaptionElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableCellElement-impl.js +56 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableColElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableDataCellElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableElement-impl.js +148 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableHeaderCellElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableRowElement-impl.js +70 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableSectionElement-impl.js +54 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTemplateElement-impl.js +33 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTextAreaElement-impl.js +184 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTimeElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTitleElement-impl.js +18 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTrackElement-impl.js +21 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLUListElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLUnknownElement-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/HTMLVideoElement-impl.js +26 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/LinkStyle-impl.js +16 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/Node-impl.js +475 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/NonDocumentTypeChildNode-impl.js +28 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/NonElementParentNode-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/ParentNode-impl.js +91 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/ProcessingInstruction-impl.js +22 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/Text-impl.js +48 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/WindowEventHandlers-impl.js +9 -0
- data/node_modules/jsdom/lib/jsdom/living/nodes/XMLDocument-impl.js +4 -0
- data/node_modules/jsdom/lib/jsdom/living/post-message.js +36 -0
- data/node_modules/jsdom/lib/jsdom/living/register-elements.js +306 -0
- data/node_modules/jsdom/lib/jsdom/living/traversal/TreeWalker-impl.js +257 -0
- data/node_modules/jsdom/lib/jsdom/living/window/History-impl.js +145 -0
- data/node_modules/jsdom/lib/jsdom/living/window/History.idl +12 -0
- data/node_modules/jsdom/lib/jsdom/living/window/Location-impl.js +235 -0
- data/node_modules/jsdom/lib/jsdom/living/window/navigation.js +103 -0
- data/node_modules/jsdom/lib/jsdom/living/xhr-sync-worker.js +50 -0
- data/node_modules/jsdom/lib/jsdom/living/xhr-utils.js +327 -0
- data/node_modules/jsdom/lib/jsdom/living/xhr/FormData-impl.js +182 -0
- data/node_modules/jsdom/lib/jsdom/living/xmlhttprequest-event-target.js +23 -0
- data/node_modules/jsdom/lib/jsdom/living/xmlhttprequest-symbols.js +4 -0
- data/node_modules/jsdom/lib/jsdom/living/xmlhttprequest-upload.js +17 -0
- data/node_modules/jsdom/lib/jsdom/living/xmlhttprequest.js +1016 -0
- data/node_modules/jsdom/lib/jsdom/named-properties-tracker.js +156 -0
- data/node_modules/jsdom/lib/jsdom/utils.js +242 -0
- data/node_modules/jsdom/lib/jsdom/virtual-console.js +34 -0
- data/node_modules/jsdom/lib/jsdom/vm-shim.js +106 -0
- data/node_modules/jsdom/lib/jsdom/web-idl/DOMException.js +41 -0
- data/node_modules/jsdom/lib/jsdom/web-idl/dom-exception-table.json +134 -0
- data/node_modules/jsdom/node_modules/request/CHANGELOG.md +662 -0
- data/node_modules/jsdom/node_modules/request/LICENSE +55 -0
- data/node_modules/jsdom/node_modules/request/README.md +1098 -0
- data/node_modules/jsdom/node_modules/request/index.js +156 -0
- data/node_modules/jsdom/node_modules/request/lib/auth.js +168 -0
- data/node_modules/jsdom/node_modules/request/lib/cookies.js +39 -0
- data/node_modules/jsdom/node_modules/request/lib/getProxyFromURI.js +79 -0
- data/node_modules/jsdom/node_modules/request/lib/har.js +215 -0
- data/node_modules/jsdom/node_modules/request/lib/helpers.js +65 -0
- data/node_modules/jsdom/node_modules/request/lib/multipart.js +112 -0
- data/node_modules/jsdom/node_modules/request/lib/oauth.js +147 -0
- data/node_modules/jsdom/node_modules/request/lib/querystring.js +51 -0
- data/node_modules/jsdom/node_modules/request/lib/redirect.js +157 -0
- data/node_modules/jsdom/node_modules/request/lib/tunnel.js +176 -0
- data/node_modules/jsdom/node_modules/request/package.json +163 -0
- data/node_modules/jsdom/node_modules/request/request.js +1475 -0
- data/node_modules/jsdom/package.json +184 -0
- data/node_modules/json-schema/README.md +5 -0
- data/node_modules/json-schema/draft-00/hyper-schema +68 -0
- data/node_modules/json-schema/draft-00/json-ref +26 -0
- data/node_modules/json-schema/draft-00/links +33 -0
- data/node_modules/json-schema/draft-00/schema +155 -0
- data/node_modules/json-schema/draft-01/hyper-schema +68 -0
- data/node_modules/json-schema/draft-01/json-ref +26 -0
- data/node_modules/json-schema/draft-01/links +33 -0
- data/node_modules/json-schema/draft-01/schema +155 -0
- data/node_modules/json-schema/draft-02/hyper-schema +68 -0
- data/node_modules/json-schema/draft-02/json-ref +26 -0
- data/node_modules/json-schema/draft-02/links +35 -0
- data/node_modules/json-schema/draft-02/schema +166 -0
- data/node_modules/json-schema/draft-03/examples/address +20 -0
- data/node_modules/json-schema/draft-03/examples/calendar +53 -0
- data/node_modules/json-schema/draft-03/examples/card +105 -0
- data/node_modules/json-schema/draft-03/examples/geo +8 -0
- data/node_modules/json-schema/draft-03/examples/interfaces +23 -0
- data/node_modules/json-schema/draft-03/hyper-schema +60 -0
- data/node_modules/json-schema/draft-03/json-ref +26 -0
- data/node_modules/json-schema/draft-03/links +35 -0
- data/node_modules/json-schema/draft-03/schema +174 -0
- data/node_modules/json-schema/draft-04/hyper-schema +60 -0
- data/node_modules/json-schema/draft-04/links +41 -0
- data/node_modules/json-schema/draft-04/schema +189 -0
- data/node_modules/json-schema/draft-zyp-json-schema-03.xml +1120 -0
- data/node_modules/json-schema/draft-zyp-json-schema-04.xml +1072 -0
- data/node_modules/json-schema/lib/links.js +66 -0
- data/node_modules/json-schema/lib/validate.js +273 -0
- data/node_modules/json-schema/package.json +100 -0
- data/node_modules/json-schema/test/tests.js +95 -0
- data/node_modules/json-stringify-safe/.npmignore +1 -0
- data/node_modules/json-stringify-safe/CHANGELOG.md +14 -0
- data/node_modules/json-stringify-safe/LICENSE +15 -0
- data/node_modules/json-stringify-safe/Makefile +35 -0
- data/node_modules/json-stringify-safe/README.md +52 -0
- data/node_modules/json-stringify-safe/package.json +102 -0
- data/node_modules/json-stringify-safe/stringify.js +27 -0
- data/node_modules/json-stringify-safe/test/mocha.opts +2 -0
- data/node_modules/json-stringify-safe/test/stringify_test.js +246 -0
- data/node_modules/jsonpointer/.travis.yml +7 -0
- data/node_modules/jsonpointer/LICENSE.md +21 -0
- data/node_modules/jsonpointer/README.md +39 -0
- data/node_modules/jsonpointer/benchmark.js +56 -0
- data/node_modules/jsonpointer/jsonpointer.js +93 -0
- data/node_modules/jsonpointer/package.json +109 -0
- data/node_modules/jsonpointer/test.js +131 -0
- data/node_modules/jsprim/CHANGES.md +39 -0
- data/node_modules/jsprim/LICENSE +19 -0
- data/node_modules/jsprim/README.md +237 -0
- data/node_modules/jsprim/lib/jsprim.js +488 -0
- data/node_modules/jsprim/package.json +85 -0
- data/node_modules/levn/LICENSE +22 -0
- data/node_modules/levn/README.md +196 -0
- data/node_modules/levn/lib/cast.js +298 -0
- data/node_modules/levn/lib/coerce.js +285 -0
- data/node_modules/levn/lib/index.js +22 -0
- data/node_modules/levn/lib/parse-string.js +113 -0
- data/node_modules/levn/lib/parse.js +102 -0
- data/node_modules/levn/package.json +108 -0
- data/node_modules/mime-db/HISTORY.md +375 -0
- data/node_modules/mime-db/LICENSE +22 -0
- data/node_modules/mime-db/README.md +82 -0
- data/node_modules/mime-db/db.json +6712 -0
- data/node_modules/mime-db/index.js +11 -0
- data/node_modules/mime-db/package.json +137 -0
- data/node_modules/mime-types/HISTORY.md +210 -0
- data/node_modules/mime-types/LICENSE +23 -0
- data/node_modules/mime-types/README.md +103 -0
- data/node_modules/mime-types/index.js +188 -0
- data/node_modules/mime-types/package.json +127 -0
- data/node_modules/nwmatcher/LICENSE +22 -0
- data/node_modules/nwmatcher/README.md +107 -0
- data/node_modules/nwmatcher/package.json +99 -0
- data/node_modules/nwmatcher/src/modules/nwmatcher-cache.js +187 -0
- data/node_modules/nwmatcher/src/modules/nwmatcher-jquery.js +126 -0
- data/node_modules/nwmatcher/src/modules/nwmatcher-pseudos.js +273 -0
- data/node_modules/nwmatcher/src/modules/nwmatcher-shortcuts.js +35 -0
- data/node_modules/nwmatcher/src/modules/nwmatcher-traversal.js +90 -0
- data/node_modules/nwmatcher/src/modules/nwmatcher-webforms.js +104 -0
- data/node_modules/nwmatcher/src/nwmatcher-base.js +785 -0
- data/node_modules/nwmatcher/src/nwmatcher-noqsa.js +962 -0
- data/node_modules/nwmatcher/src/nwmatcher.js +1780 -0
- data/node_modules/oauth-sign/LICENSE +55 -0
- data/node_modules/oauth-sign/README.md +4 -0
- data/node_modules/oauth-sign/index.js +136 -0
- data/node_modules/oauth-sign/package.json +98 -0
- data/node_modules/optionator/CHANGELOG.md +52 -0
- data/node_modules/optionator/LICENSE +22 -0
- data/node_modules/optionator/README.md +236 -0
- data/node_modules/optionator/lib/help.js +247 -0
- data/node_modules/optionator/lib/index.js +465 -0
- data/node_modules/optionator/lib/util.js +54 -0
- data/node_modules/optionator/package.json +109 -0
- data/node_modules/parse5/CHANGELOG.md +69 -0
- data/node_modules/parse5/LICENSE +19 -0
- data/node_modules/parse5/README.md +247 -0
- data/node_modules/parse5/docs/build/index.md +963 -0
- data/node_modules/parse5/index.js +12 -0
- data/node_modules/parse5/lib/common/doctype.js +134 -0
- data/node_modules/parse5/lib/common/foreign_content.js +257 -0
- data/node_modules/parse5/lib/common/html.js +268 -0
- data/node_modules/parse5/lib/common/unicode.js +48 -0
- data/node_modules/parse5/lib/common/utils.js +13 -0
- data/node_modules/parse5/lib/jsdom/jsdom_parser.js +39 -0
- data/node_modules/parse5/lib/jsdom/parsing_unit.js +53 -0
- data/node_modules/parse5/lib/serialization/serializer.js +178 -0
- data/node_modules/parse5/lib/simple_api/simple_api_parser.js +107 -0
- data/node_modules/parse5/lib/simple_api/tokenizer_proxy.js +122 -0
- data/node_modules/parse5/lib/tokenization/location_info_mixin.js +80 -0
- data/node_modules/parse5/lib/tokenization/named_entity_trie.js +6 -0
- data/node_modules/parse5/lib/tokenization/preprocessor.js +115 -0
- data/node_modules/parse5/lib/tokenization/tokenizer.js +2317 -0
- data/node_modules/parse5/lib/tree_adapters/default.js +200 -0
- data/node_modules/parse5/lib/tree_adapters/htmlparser2.js +317 -0
- data/node_modules/parse5/lib/tree_construction/formatting_element_list.js +167 -0
- data/node_modules/parse5/lib/tree_construction/location_info_mixin.js +197 -0
- data/node_modules/parse5/lib/tree_construction/open_element_stack.js +379 -0
- data/node_modules/parse5/lib/tree_construction/parser.js +2827 -0
- data/node_modules/parse5/package.json +125 -0
- data/node_modules/pinkie-promise/index.js +3 -0
- data/node_modules/pinkie-promise/license +21 -0
- data/node_modules/pinkie-promise/package.json +102 -0
- data/node_modules/pinkie-promise/readme.md +28 -0
- data/node_modules/pinkie/index.js +292 -0
- data/node_modules/pinkie/license +21 -0
- data/node_modules/pinkie/package.json +100 -0
- data/node_modules/pinkie/readme.md +83 -0
- data/node_modules/prelude-ls/CHANGELOG.md +99 -0
- data/node_modules/prelude-ls/LICENSE +22 -0
- data/node_modules/prelude-ls/README.md +15 -0
- data/node_modules/prelude-ls/lib/Func.js +65 -0
- data/node_modules/prelude-ls/lib/List.js +686 -0
- data/node_modules/prelude-ls/lib/Num.js +130 -0
- data/node_modules/prelude-ls/lib/Obj.js +154 -0
- data/node_modules/prelude-ls/lib/Str.js +92 -0
- data/node_modules/prelude-ls/lib/index.js +178 -0
- data/node_modules/prelude-ls/package.json +116 -0
- data/node_modules/punycode/LICENSE-MIT.txt +20 -0
- data/node_modules/punycode/README.md +176 -0
- data/node_modules/punycode/package.json +127 -0
- data/node_modules/punycode/punycode.js +533 -0
- data/node_modules/qs/.eslintignore +1 -0
- data/node_modules/qs/.eslintrc +19 -0
- data/node_modules/qs/CHANGELOG.md +144 -0
- data/node_modules/qs/CONTRIBUTING.md +1 -0
- data/node_modules/qs/LICENSE +28 -0
- data/node_modules/qs/README.md +398 -0
- data/node_modules/qs/dist/qs.js +574 -0
- data/node_modules/qs/lib/formats.js +18 -0
- data/node_modules/qs/lib/index.js +11 -0
- data/node_modules/qs/lib/parse.js +166 -0
- data/node_modules/qs/lib/stringify.js +187 -0
- data/node_modules/qs/lib/utils.js +180 -0
- data/node_modules/qs/package.json +121 -0
- data/node_modules/qs/test/.eslintrc +9 -0
- data/node_modules/qs/test/index.js +7 -0
- data/node_modules/qs/test/parse.js +459 -0
- data/node_modules/qs/test/stringify.js +538 -0
- data/node_modules/qs/test/utils.js +22 -0
- data/node_modules/sax/LICENSE +41 -0
- data/node_modules/sax/LICENSE-W3C.html +188 -0
- data/node_modules/sax/README.md +225 -0
- data/node_modules/sax/lib/sax.js +1576 -0
- data/node_modules/sax/package.json +133 -0
- data/node_modules/sntp/.npmignore +18 -0
- data/node_modules/sntp/.travis.yml +5 -0
- data/node_modules/sntp/LICENSE +28 -0
- data/node_modules/sntp/Makefile +9 -0
- data/node_modules/sntp/README.md +68 -0
- data/node_modules/sntp/examples/offset.js +16 -0
- data/node_modules/sntp/examples/time.js +25 -0
- data/node_modules/sntp/index.js +1 -0
- data/node_modules/sntp/lib/index.js +412 -0
- data/node_modules/sntp/package.json +98 -0
- data/node_modules/sntp/test/index.js +435 -0
- data/node_modules/source-map/.npmignore +2 -0
- data/node_modules/source-map/.travis.yml +4 -0
- data/node_modules/source-map/CHANGELOG.md +201 -0
- data/node_modules/source-map/LICENSE +28 -0
- data/node_modules/source-map/Makefile.dryice.js +166 -0
- data/node_modules/source-map/README.md +479 -0
- data/node_modules/source-map/build/assert-shim.js +56 -0
- data/node_modules/source-map/build/mini-require.js +152 -0
- data/node_modules/source-map/build/prefix-source-map.jsm +20 -0
- data/node_modules/source-map/build/prefix-utils.jsm +18 -0
- data/node_modules/source-map/build/suffix-browser.js +8 -0
- data/node_modules/source-map/build/suffix-source-map.jsm +6 -0
- data/node_modules/source-map/build/suffix-utils.jsm +21 -0
- data/node_modules/source-map/build/test-prefix.js +8 -0
- data/node_modules/source-map/build/test-suffix.js +3 -0
- data/node_modules/source-map/lib/source-map.js +8 -0
- data/node_modules/source-map/lib/source-map/array-set.js +97 -0
- data/node_modules/source-map/lib/source-map/base64-vlq.js +142 -0
- data/node_modules/source-map/lib/source-map/base64.js +42 -0
- data/node_modules/source-map/lib/source-map/basic-source-map-consumer.js +420 -0
- data/node_modules/source-map/lib/source-map/binary-search.js +80 -0
- data/node_modules/source-map/lib/source-map/indexed-source-map-consumer.js +303 -0
- data/node_modules/source-map/lib/source-map/mapping-list.js +86 -0
- data/node_modules/source-map/lib/source-map/source-map-consumer.js +222 -0
- data/node_modules/source-map/lib/source-map/source-map-generator.js +400 -0
- data/node_modules/source-map/lib/source-map/source-node.js +414 -0
- data/node_modules/source-map/lib/source-map/util.js +319 -0
- data/node_modules/source-map/package.json +223 -0
- data/node_modules/source-map/test/run-tests.js +62 -0
- data/node_modules/source-map/test/source-map/test-api.js +26 -0
- data/node_modules/source-map/test/source-map/test-array-set.js +104 -0
- data/node_modules/source-map/test/source-map/test-base64-vlq.js +23 -0
- data/node_modules/source-map/test/source-map/test-base64.js +35 -0
- data/node_modules/source-map/test/source-map/test-binary-search.js +54 -0
- data/node_modules/source-map/test/source-map/test-dog-fooding.js +84 -0
- data/node_modules/source-map/test/source-map/test-source-map-consumer.js +874 -0
- data/node_modules/source-map/test/source-map/test-source-map-generator.js +679 -0
- data/node_modules/source-map/test/source-map/test-source-node.js +612 -0
- data/node_modules/source-map/test/source-map/test-util.js +216 -0
- data/node_modules/source-map/test/source-map/util.js +299 -0
- data/node_modules/sshpk/.npmignore +9 -0
- data/node_modules/sshpk/.travis.yml +11 -0
- data/node_modules/sshpk/LICENSE +18 -0
- data/node_modules/sshpk/README.md +666 -0
- data/node_modules/sshpk/bin/sshpk-conv +201 -0
- data/node_modules/sshpk/bin/sshpk-sign +191 -0
- data/node_modules/sshpk/bin/sshpk-verify +166 -0
- data/node_modules/sshpk/lib/algs.js +168 -0
- data/node_modules/sshpk/lib/certificate.js +291 -0
- data/node_modules/sshpk/lib/dhe.js +311 -0
- data/node_modules/sshpk/lib/ed-compat.js +96 -0
- data/node_modules/sshpk/lib/errors.js +84 -0
- data/node_modules/sshpk/lib/fingerprint.js +161 -0
- data/node_modules/sshpk/lib/formats/auto.js +73 -0
- data/node_modules/sshpk/lib/formats/openssh-cert.js +289 -0
- data/node_modules/sshpk/lib/formats/pem.js +186 -0
- data/node_modules/sshpk/lib/formats/pkcs1.js +320 -0
- data/node_modules/sshpk/lib/formats/pkcs8.js +505 -0
- data/node_modules/sshpk/lib/formats/rfc4253.js +146 -0
- data/node_modules/sshpk/lib/formats/ssh-private.js +261 -0
- data/node_modules/sshpk/lib/formats/ssh.js +114 -0
- data/node_modules/sshpk/lib/formats/x509-pem.js +77 -0
- data/node_modules/sshpk/lib/formats/x509.js +484 -0
- data/node_modules/sshpk/lib/identity.js +255 -0
- data/node_modules/sshpk/lib/index.js +38 -0
- data/node_modules/sshpk/lib/key.js +270 -0
- data/node_modules/sshpk/lib/private-key.js +231 -0
- data/node_modules/sshpk/lib/signature.js +245 -0
- data/node_modules/sshpk/lib/ssh-buffer.js +148 -0
- data/node_modules/sshpk/lib/utils.js +288 -0
- data/node_modules/sshpk/man/man1/sshpk-conv.1 +135 -0
- data/node_modules/sshpk/man/man1/sshpk-sign.1 +81 -0
- data/node_modules/sshpk/man/man1/sshpk-verify.1 +68 -0
- data/node_modules/sshpk/node_modules/assert-plus/AUTHORS +6 -0
- data/node_modules/sshpk/node_modules/assert-plus/CHANGES.md +14 -0
- data/node_modules/sshpk/node_modules/assert-plus/README.md +162 -0
- data/node_modules/sshpk/node_modules/assert-plus/assert.js +211 -0
- data/node_modules/sshpk/node_modules/assert-plus/package.json +115 -0
- data/node_modules/sshpk/package.json +135 -0
- data/node_modules/stringstream/.npmignore +15 -0
- data/node_modules/stringstream/.travis.yml +4 -0
- data/node_modules/stringstream/LICENSE.txt +22 -0
- data/node_modules/stringstream/README.md +38 -0
- data/node_modules/stringstream/example.js +27 -0
- data/node_modules/stringstream/package.json +85 -0
- data/node_modules/stringstream/stringstream.js +102 -0
- data/node_modules/strip-ansi/index.js +6 -0
- data/node_modules/strip-ansi/license +21 -0
- data/node_modules/strip-ansi/package.json +123 -0
- data/node_modules/strip-ansi/readme.md +33 -0
- data/node_modules/supports-color/index.js +50 -0
- data/node_modules/supports-color/license +21 -0
- data/node_modules/supports-color/package.json +113 -0
- data/node_modules/supports-color/readme.md +36 -0
- data/node_modules/symbol-tree/.jscsrc +55 -0
- data/node_modules/symbol-tree/.npmignore +6 -0
- data/node_modules/symbol-tree/LICENSE +21 -0
- data/node_modules/symbol-tree/README.md +68 -0
- data/node_modules/symbol-tree/api.md +441 -0
- data/node_modules/symbol-tree/lib/SymbolTree.js +834 -0
- data/node_modules/symbol-tree/lib/SymbolTreeNode.js +54 -0
- data/node_modules/symbol-tree/lib/TreeIterator.js +69 -0
- data/node_modules/symbol-tree/lib/TreePosition.js +10 -0
- data/node_modules/symbol-tree/package.json +121 -0
- data/node_modules/symbol-tree/test/SymbolTree.js +1189 -0
- data/node_modules/tough-cookie/LICENSE +27 -0
- data/node_modules/tough-cookie/README.md +506 -0
- data/node_modules/tough-cookie/lib/cookie.js +1336 -0
- data/node_modules/tough-cookie/lib/memstore.js +170 -0
- data/node_modules/tough-cookie/lib/pathMatch.js +61 -0
- data/node_modules/tough-cookie/lib/permuteDomain.js +56 -0
- data/node_modules/tough-cookie/lib/pubsuffix.js +98 -0
- data/node_modules/tough-cookie/lib/store.js +71 -0
- data/node_modules/tough-cookie/package.json +136 -0
- data/node_modules/tr46/.npmignore +4 -0
- data/node_modules/tr46/index.js +193 -0
- data/node_modules/tr46/lib/.gitkeep +0 -0
- data/node_modules/tr46/lib/mappingTable.json +1 -0
- data/node_modules/tr46/package.json +91 -0
- data/node_modules/tunnel-agent/LICENSE +55 -0
- data/node_modules/tunnel-agent/README.md +4 -0
- data/node_modules/tunnel-agent/index.js +243 -0
- data/node_modules/tunnel-agent/package.json +100 -0
- data/node_modules/tweetnacl/.npmignore +4 -0
- data/node_modules/tweetnacl/CHANGELOG.md +209 -0
- data/node_modules/tweetnacl/COPYING.txt +9 -0
- data/node_modules/tweetnacl/ISSUE_TEMPLATE.md +3 -0
- data/node_modules/tweetnacl/README.md +477 -0
- data/node_modules/tweetnacl/nacl-fast.js +2388 -0
- data/node_modules/tweetnacl/nacl-fast.min.js +2 -0
- data/node_modules/tweetnacl/nacl.d.ts +98 -0
- data/node_modules/tweetnacl/nacl.js +1175 -0
- data/node_modules/tweetnacl/nacl.min.js +1 -0
- data/node_modules/tweetnacl/package.json +121 -0
- data/node_modules/type-check/LICENSE +22 -0
- data/node_modules/type-check/README.md +210 -0
- data/node_modules/type-check/lib/check.js +126 -0
- data/node_modules/type-check/lib/index.js +16 -0
- data/node_modules/type-check/lib/parse-type.js +196 -0
- data/node_modules/type-check/package.json +102 -0
- data/node_modules/type-detect/.npmignore +11 -0
- data/node_modules/type-detect/History.md +52 -0
- data/node_modules/type-detect/README.md +226 -0
- data/node_modules/type-detect/ReleaseNotes.md +46 -0
- data/node_modules/type-detect/index.js +1 -0
- data/node_modules/type-detect/lib/type.js +134 -0
- data/node_modules/type-detect/package.json +93 -0
- data/node_modules/uuid/.npmignore +8 -0
- data/node_modules/uuid/.travis.yml +5 -0
- data/node_modules/uuid/AUTHORS +5 -0
- data/node_modules/uuid/HISTORY.md +28 -0
- data/node_modules/uuid/LICENSE.md +21 -0
- data/node_modules/uuid/README.md +132 -0
- data/node_modules/uuid/bin/uuid +26 -0
- data/node_modules/uuid/index.js +8 -0
- data/node_modules/uuid/lib/bytesToUuid.js +23 -0
- data/node_modules/uuid/lib/rng-browser.js +33 -0
- data/node_modules/uuid/lib/rng.js +10 -0
- data/node_modules/uuid/package.json +122 -0
- data/node_modules/uuid/test/mocha.opts +3 -0
- data/node_modules/uuid/test/test.js +96 -0
- data/node_modules/uuid/v1.js +103 -0
- data/node_modules/uuid/v4.js +29 -0
- data/node_modules/verror/.gitmodules +0 -0
- data/node_modules/verror/.npmignore +1 -0
- data/node_modules/verror/LICENSE +19 -0
- data/node_modules/verror/Makefile +35 -0
- data/node_modules/verror/Makefile.targ +285 -0
- data/node_modules/verror/README.md +120 -0
- data/node_modules/verror/examples/levels-verror.js +36 -0
- data/node_modules/verror/examples/levels-werror.js +34 -0
- data/node_modules/verror/examples/varargs.js +6 -0
- data/node_modules/verror/examples/verror.js +13 -0
- data/node_modules/verror/examples/werror.js +14 -0
- data/node_modules/verror/jsl.node.conf +139 -0
- data/node_modules/verror/lib/verror.js +157 -0
- data/node_modules/verror/package.json +78 -0
- data/node_modules/verror/tests/tst.inherit.js +100 -0
- data/node_modules/verror/tests/tst.verror.js +156 -0
- data/node_modules/verror/tests/tst.werror.js +179 -0
- data/node_modules/webidl-conversions/LICENSE.md +12 -0
- data/node_modules/webidl-conversions/README.md +53 -0
- data/node_modules/webidl-conversions/lib/index.js +189 -0
- data/node_modules/webidl-conversions/package.json +96 -0
- data/node_modules/whatwg-encoding/LICENSE.txt +19 -0
- data/node_modules/whatwg-encoding/lib/labels-to-names.json +207 -0
- data/node_modules/whatwg-encoding/lib/supported-names.json +37 -0
- data/node_modules/whatwg-encoding/lib/whatwg-encoding.js +47 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/.npmignore +6 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/.travis.yml +20 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/Changelog.md +93 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/LICENSE +21 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/README.md +157 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/dbcs-codec.js +554 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/dbcs-data.js +170 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/index.js +22 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/internal.js +187 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/sbcs-data.js +169 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/utf16.js +174 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/encodings/utf7.js +289 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/lib/extend-node.js +214 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/lib/index.js +141 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/lib/streams.js +120 -0
- data/node_modules/whatwg-encoding/node_modules/iconv-lite/package.json +153 -0
- data/node_modules/whatwg-encoding/package.json +101 -0
- data/node_modules/whatwg-url/.eslintignore +3 -0
- data/node_modules/whatwg-url/LICENSE.txt +21 -0
- data/node_modules/whatwg-url/README.md +66 -0
- data/node_modules/whatwg-url/lib/URL-impl.js +216 -0
- data/node_modules/whatwg-url/lib/URL.js +209 -0
- data/node_modules/whatwg-url/lib/public-api.js +11 -0
- data/node_modules/whatwg-url/lib/url-state-machine.js +1173 -0
- data/node_modules/whatwg-url/lib/utils.js +20 -0
- data/node_modules/whatwg-url/package.json +103 -0
- data/node_modules/wordwrap/LICENSE +18 -0
- data/node_modules/wordwrap/README.markdown +70 -0
- data/node_modules/wordwrap/example/center.js +10 -0
- data/node_modules/wordwrap/example/meat.js +3 -0
- data/node_modules/wordwrap/index.js +76 -0
- data/node_modules/wordwrap/package.json +94 -0
- data/node_modules/wordwrap/test/break.js +32 -0
- data/node_modules/wordwrap/test/idleness.txt +63 -0
- data/node_modules/wordwrap/test/wrap.js +33 -0
- data/node_modules/xml-name-validator/LICENSE.txt +19 -0
- data/node_modules/xml-name-validator/README.md +36 -0
- data/node_modules/xml-name-validator/lib/generated-parser.js +504 -0
- data/node_modules/xml-name-validator/lib/grammar.pegjs +35 -0
- data/node_modules/xml-name-validator/lib/xml-name-validator.js +17 -0
- data/node_modules/xml-name-validator/package.json +97 -0
- data/node_modules/xtend/.jshintrc +30 -0
- data/node_modules/xtend/.npmignore +1 -0
- data/node_modules/xtend/LICENCE +19 -0
- data/node_modules/xtend/Makefile +4 -0
- data/node_modules/xtend/README.md +32 -0
- data/node_modules/xtend/immutable.js +19 -0
- data/node_modules/xtend/mutable.js +17 -0
- data/node_modules/xtend/package.json +117 -0
- data/node_modules/xtend/test.js +83 -0
- data/package.json +32 -0
- data/vendor/assets/javascripts/select_all.js +1 -1
- metadata +1870 -2
@@ -0,0 +1,1576 @@
|
|
1
|
+
;(function (sax) { // wrapper for non-node envs
|
2
|
+
sax.parser = function (strict, opt) { return new SAXParser(strict, opt) }
|
3
|
+
sax.SAXParser = SAXParser
|
4
|
+
sax.SAXStream = SAXStream
|
5
|
+
sax.createStream = createStream
|
6
|
+
|
7
|
+
// When we pass the MAX_BUFFER_LENGTH position, start checking for buffer overruns.
|
8
|
+
// When we check, schedule the next check for MAX_BUFFER_LENGTH - (max(buffer lengths)),
|
9
|
+
// since that's the earliest that a buffer overrun could occur. This way, checks are
|
10
|
+
// as rare as required, but as often as necessary to ensure never crossing this bound.
|
11
|
+
// Furthermore, buffers are only tested at most once per write(), so passing a very
|
12
|
+
// large string into write() might have undesirable effects, but this is manageable by
|
13
|
+
// the caller, so it is assumed to be safe. Thus, a call to write() may, in the extreme
|
14
|
+
// edge case, result in creating at most one complete copy of the string passed in.
|
15
|
+
// Set to Infinity to have unlimited buffers.
|
16
|
+
sax.MAX_BUFFER_LENGTH = 64 * 1024
|
17
|
+
|
18
|
+
var buffers = [
|
19
|
+
'comment', 'sgmlDecl', 'textNode', 'tagName', 'doctype',
|
20
|
+
'procInstName', 'procInstBody', 'entity', 'attribName',
|
21
|
+
'attribValue', 'cdata', 'script'
|
22
|
+
]
|
23
|
+
|
24
|
+
sax.EVENTS = [
|
25
|
+
'text',
|
26
|
+
'processinginstruction',
|
27
|
+
'sgmldeclaration',
|
28
|
+
'doctype',
|
29
|
+
'comment',
|
30
|
+
'opentagstart',
|
31
|
+
'attribute',
|
32
|
+
'opentag',
|
33
|
+
'closetag',
|
34
|
+
'opencdata',
|
35
|
+
'cdata',
|
36
|
+
'closecdata',
|
37
|
+
'error',
|
38
|
+
'end',
|
39
|
+
'ready',
|
40
|
+
'script',
|
41
|
+
'opennamespace',
|
42
|
+
'closenamespace'
|
43
|
+
]
|
44
|
+
|
45
|
+
function SAXParser (strict, opt) {
|
46
|
+
if (!(this instanceof SAXParser)) {
|
47
|
+
return new SAXParser(strict, opt)
|
48
|
+
}
|
49
|
+
|
50
|
+
var parser = this
|
51
|
+
clearBuffers(parser)
|
52
|
+
parser.q = parser.c = ''
|
53
|
+
parser.bufferCheckPosition = sax.MAX_BUFFER_LENGTH
|
54
|
+
parser.opt = opt || {}
|
55
|
+
parser.opt.lowercase = parser.opt.lowercase || parser.opt.lowercasetags
|
56
|
+
parser.looseCase = parser.opt.lowercase ? 'toLowerCase' : 'toUpperCase'
|
57
|
+
parser.tags = []
|
58
|
+
parser.closed = parser.closedRoot = parser.sawRoot = false
|
59
|
+
parser.tag = parser.error = null
|
60
|
+
parser.strict = !!strict
|
61
|
+
parser.noscript = !!(strict || parser.opt.noscript)
|
62
|
+
parser.state = S.BEGIN
|
63
|
+
parser.strictEntities = parser.opt.strictEntities
|
64
|
+
parser.ENTITIES = parser.strictEntities ? Object.create(sax.XML_ENTITIES) : Object.create(sax.ENTITIES)
|
65
|
+
parser.attribList = []
|
66
|
+
|
67
|
+
// namespaces form a prototype chain.
|
68
|
+
// it always points at the current tag,
|
69
|
+
// which protos to its parent tag.
|
70
|
+
if (parser.opt.xmlns) {
|
71
|
+
parser.ns = Object.create(rootNS)
|
72
|
+
}
|
73
|
+
|
74
|
+
// mostly just for error reporting
|
75
|
+
parser.trackPosition = parser.opt.position !== false
|
76
|
+
if (parser.trackPosition) {
|
77
|
+
parser.position = parser.line = parser.column = 0
|
78
|
+
}
|
79
|
+
emit(parser, 'onready')
|
80
|
+
}
|
81
|
+
|
82
|
+
if (!Object.create) {
|
83
|
+
Object.create = function (o) {
|
84
|
+
function F () {}
|
85
|
+
F.prototype = o
|
86
|
+
var newf = new F()
|
87
|
+
return newf
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
91
|
+
if (!Object.keys) {
|
92
|
+
Object.keys = function (o) {
|
93
|
+
var a = []
|
94
|
+
for (var i in o) if (o.hasOwnProperty(i)) a.push(i)
|
95
|
+
return a
|
96
|
+
}
|
97
|
+
}
|
98
|
+
|
99
|
+
function checkBufferLength (parser) {
|
100
|
+
var maxAllowed = Math.max(sax.MAX_BUFFER_LENGTH, 10)
|
101
|
+
var maxActual = 0
|
102
|
+
for (var i = 0, l = buffers.length; i < l; i++) {
|
103
|
+
var len = parser[buffers[i]].length
|
104
|
+
if (len > maxAllowed) {
|
105
|
+
// Text/cdata nodes can get big, and since they're buffered,
|
106
|
+
// we can get here under normal conditions.
|
107
|
+
// Avoid issues by emitting the text node now,
|
108
|
+
// so at least it won't get any bigger.
|
109
|
+
switch (buffers[i]) {
|
110
|
+
case 'textNode':
|
111
|
+
closeText(parser)
|
112
|
+
break
|
113
|
+
|
114
|
+
case 'cdata':
|
115
|
+
emitNode(parser, 'oncdata', parser.cdata)
|
116
|
+
parser.cdata = ''
|
117
|
+
break
|
118
|
+
|
119
|
+
case 'script':
|
120
|
+
emitNode(parser, 'onscript', parser.script)
|
121
|
+
parser.script = ''
|
122
|
+
break
|
123
|
+
|
124
|
+
default:
|
125
|
+
error(parser, 'Max buffer length exceeded: ' + buffers[i])
|
126
|
+
}
|
127
|
+
}
|
128
|
+
maxActual = Math.max(maxActual, len)
|
129
|
+
}
|
130
|
+
// schedule the next check for the earliest possible buffer overrun.
|
131
|
+
var m = sax.MAX_BUFFER_LENGTH - maxActual
|
132
|
+
parser.bufferCheckPosition = m + parser.position
|
133
|
+
}
|
134
|
+
|
135
|
+
function clearBuffers (parser) {
|
136
|
+
for (var i = 0, l = buffers.length; i < l; i++) {
|
137
|
+
parser[buffers[i]] = ''
|
138
|
+
}
|
139
|
+
}
|
140
|
+
|
141
|
+
function flushBuffers (parser) {
|
142
|
+
closeText(parser)
|
143
|
+
if (parser.cdata !== '') {
|
144
|
+
emitNode(parser, 'oncdata', parser.cdata)
|
145
|
+
parser.cdata = ''
|
146
|
+
}
|
147
|
+
if (parser.script !== '') {
|
148
|
+
emitNode(parser, 'onscript', parser.script)
|
149
|
+
parser.script = ''
|
150
|
+
}
|
151
|
+
}
|
152
|
+
|
153
|
+
SAXParser.prototype = {
|
154
|
+
end: function () { end(this) },
|
155
|
+
write: write,
|
156
|
+
resume: function () { this.error = null; return this },
|
157
|
+
close: function () { return this.write(null) },
|
158
|
+
flush: function () { flushBuffers(this) }
|
159
|
+
}
|
160
|
+
|
161
|
+
var Stream
|
162
|
+
try {
|
163
|
+
Stream = require('stream').Stream
|
164
|
+
} catch (ex) {
|
165
|
+
Stream = function () {}
|
166
|
+
}
|
167
|
+
|
168
|
+
var streamWraps = sax.EVENTS.filter(function (ev) {
|
169
|
+
return ev !== 'error' && ev !== 'end'
|
170
|
+
})
|
171
|
+
|
172
|
+
function createStream (strict, opt) {
|
173
|
+
return new SAXStream(strict, opt)
|
174
|
+
}
|
175
|
+
|
176
|
+
function SAXStream (strict, opt) {
|
177
|
+
if (!(this instanceof SAXStream)) {
|
178
|
+
return new SAXStream(strict, opt)
|
179
|
+
}
|
180
|
+
|
181
|
+
Stream.apply(this)
|
182
|
+
|
183
|
+
this._parser = new SAXParser(strict, opt)
|
184
|
+
this.writable = true
|
185
|
+
this.readable = true
|
186
|
+
|
187
|
+
var me = this
|
188
|
+
|
189
|
+
this._parser.onend = function () {
|
190
|
+
me.emit('end')
|
191
|
+
}
|
192
|
+
|
193
|
+
this._parser.onerror = function (er) {
|
194
|
+
me.emit('error', er)
|
195
|
+
|
196
|
+
// if didn't throw, then means error was handled.
|
197
|
+
// go ahead and clear error, so we can write again.
|
198
|
+
me._parser.error = null
|
199
|
+
}
|
200
|
+
|
201
|
+
this._decoder = null
|
202
|
+
|
203
|
+
streamWraps.forEach(function (ev) {
|
204
|
+
Object.defineProperty(me, 'on' + ev, {
|
205
|
+
get: function () {
|
206
|
+
return me._parser['on' + ev]
|
207
|
+
},
|
208
|
+
set: function (h) {
|
209
|
+
if (!h) {
|
210
|
+
me.removeAllListeners(ev)
|
211
|
+
me._parser['on' + ev] = h
|
212
|
+
return h
|
213
|
+
}
|
214
|
+
me.on(ev, h)
|
215
|
+
},
|
216
|
+
enumerable: true,
|
217
|
+
configurable: false
|
218
|
+
})
|
219
|
+
})
|
220
|
+
}
|
221
|
+
|
222
|
+
SAXStream.prototype = Object.create(Stream.prototype, {
|
223
|
+
constructor: {
|
224
|
+
value: SAXStream
|
225
|
+
}
|
226
|
+
})
|
227
|
+
|
228
|
+
SAXStream.prototype.write = function (data) {
|
229
|
+
if (typeof Buffer === 'function' &&
|
230
|
+
typeof Buffer.isBuffer === 'function' &&
|
231
|
+
Buffer.isBuffer(data)) {
|
232
|
+
if (!this._decoder) {
|
233
|
+
var SD = require('string_decoder').StringDecoder
|
234
|
+
this._decoder = new SD('utf8')
|
235
|
+
}
|
236
|
+
data = this._decoder.write(data)
|
237
|
+
}
|
238
|
+
|
239
|
+
this._parser.write(data.toString())
|
240
|
+
this.emit('data', data)
|
241
|
+
return true
|
242
|
+
}
|
243
|
+
|
244
|
+
SAXStream.prototype.end = function (chunk) {
|
245
|
+
if (chunk && chunk.length) {
|
246
|
+
this.write(chunk)
|
247
|
+
}
|
248
|
+
this._parser.end()
|
249
|
+
return true
|
250
|
+
}
|
251
|
+
|
252
|
+
SAXStream.prototype.on = function (ev, handler) {
|
253
|
+
var me = this
|
254
|
+
if (!me._parser['on' + ev] && streamWraps.indexOf(ev) !== -1) {
|
255
|
+
me._parser['on' + ev] = function () {
|
256
|
+
var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments)
|
257
|
+
args.splice(0, 0, ev)
|
258
|
+
me.emit.apply(me, args)
|
259
|
+
}
|
260
|
+
}
|
261
|
+
|
262
|
+
return Stream.prototype.on.call(me, ev, handler)
|
263
|
+
}
|
264
|
+
|
265
|
+
// character classes and tokens
|
266
|
+
var whitespace = '\r\n\t '
|
267
|
+
|
268
|
+
// this really needs to be replaced with character classes.
|
269
|
+
// XML allows all manner of ridiculous numbers and digits.
|
270
|
+
var number = '0124356789'
|
271
|
+
var letter = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
272
|
+
|
273
|
+
// (Letter | "_" | ":")
|
274
|
+
var quote = '\'"'
|
275
|
+
var attribEnd = whitespace + '>'
|
276
|
+
var CDATA = '[CDATA['
|
277
|
+
var DOCTYPE = 'DOCTYPE'
|
278
|
+
var XML_NAMESPACE = 'http://www.w3.org/XML/1998/namespace'
|
279
|
+
var XMLNS_NAMESPACE = 'http://www.w3.org/2000/xmlns/'
|
280
|
+
var rootNS = { xml: XML_NAMESPACE, xmlns: XMLNS_NAMESPACE }
|
281
|
+
|
282
|
+
// turn all the string character sets into character class objects.
|
283
|
+
whitespace = charClass(whitespace)
|
284
|
+
number = charClass(number)
|
285
|
+
letter = charClass(letter)
|
286
|
+
|
287
|
+
// http://www.w3.org/TR/REC-xml/#NT-NameStartChar
|
288
|
+
// This implementation works on strings, a single character at a time
|
289
|
+
// as such, it cannot ever support astral-plane characters (10000-EFFFF)
|
290
|
+
// without a significant breaking change to either this parser, or the
|
291
|
+
// JavaScript language. Implementation of an emoji-capable xml parser
|
292
|
+
// is left as an exercise for the reader.
|
293
|
+
var nameStart = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/
|
294
|
+
|
295
|
+
var nameBody = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/
|
296
|
+
|
297
|
+
var entityStart = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/
|
298
|
+
var entityBody = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/
|
299
|
+
|
300
|
+
quote = charClass(quote)
|
301
|
+
attribEnd = charClass(attribEnd)
|
302
|
+
|
303
|
+
function charClass (str) {
|
304
|
+
return str.split('').reduce(function (s, c) {
|
305
|
+
s[c] = true
|
306
|
+
return s
|
307
|
+
}, {})
|
308
|
+
}
|
309
|
+
|
310
|
+
function isRegExp (c) {
|
311
|
+
return Object.prototype.toString.call(c) === '[object RegExp]'
|
312
|
+
}
|
313
|
+
|
314
|
+
function is (charclass, c) {
|
315
|
+
return isRegExp(charclass) ? !!c.match(charclass) : charclass[c]
|
316
|
+
}
|
317
|
+
|
318
|
+
function not (charclass, c) {
|
319
|
+
return !is(charclass, c)
|
320
|
+
}
|
321
|
+
|
322
|
+
var S = 0
|
323
|
+
sax.STATE = {
|
324
|
+
BEGIN: S++, // leading byte order mark or whitespace
|
325
|
+
BEGIN_WHITESPACE: S++, // leading whitespace
|
326
|
+
TEXT: S++, // general stuff
|
327
|
+
TEXT_ENTITY: S++, // & and such.
|
328
|
+
OPEN_WAKA: S++, // <
|
329
|
+
SGML_DECL: S++, // <!BLARG
|
330
|
+
SGML_DECL_QUOTED: S++, // <!BLARG foo "bar
|
331
|
+
DOCTYPE: S++, // <!DOCTYPE
|
332
|
+
DOCTYPE_QUOTED: S++, // <!DOCTYPE "//blah
|
333
|
+
DOCTYPE_DTD: S++, // <!DOCTYPE "//blah" [ ...
|
334
|
+
DOCTYPE_DTD_QUOTED: S++, // <!DOCTYPE "//blah" [ "foo
|
335
|
+
COMMENT_STARTING: S++, // <!-
|
336
|
+
COMMENT: S++, // <!--
|
337
|
+
COMMENT_ENDING: S++, // <!-- blah -
|
338
|
+
COMMENT_ENDED: S++, // <!-- blah --
|
339
|
+
CDATA: S++, // <![CDATA[ something
|
340
|
+
CDATA_ENDING: S++, // ]
|
341
|
+
CDATA_ENDING_2: S++, // ]]
|
342
|
+
PROC_INST: S++, // <?hi
|
343
|
+
PROC_INST_BODY: S++, // <?hi there
|
344
|
+
PROC_INST_ENDING: S++, // <?hi "there" ?
|
345
|
+
OPEN_TAG: S++, // <strong
|
346
|
+
OPEN_TAG_SLASH: S++, // <strong /
|
347
|
+
ATTRIB: S++, // <a
|
348
|
+
ATTRIB_NAME: S++, // <a foo
|
349
|
+
ATTRIB_NAME_SAW_WHITE: S++, // <a foo _
|
350
|
+
ATTRIB_VALUE: S++, // <a foo=
|
351
|
+
ATTRIB_VALUE_QUOTED: S++, // <a foo="bar
|
352
|
+
ATTRIB_VALUE_CLOSED: S++, // <a foo="bar"
|
353
|
+
ATTRIB_VALUE_UNQUOTED: S++, // <a foo=bar
|
354
|
+
ATTRIB_VALUE_ENTITY_Q: S++, // <foo bar="""
|
355
|
+
ATTRIB_VALUE_ENTITY_U: S++, // <foo bar="
|
356
|
+
CLOSE_TAG: S++, // </a
|
357
|
+
CLOSE_TAG_SAW_WHITE: S++, // </a >
|
358
|
+
SCRIPT: S++, // <script> ...
|
359
|
+
SCRIPT_ENDING: S++ // <script> ... <
|
360
|
+
}
|
361
|
+
|
362
|
+
sax.XML_ENTITIES = {
|
363
|
+
'amp': '&',
|
364
|
+
'gt': '>',
|
365
|
+
'lt': '<',
|
366
|
+
'quot': '"',
|
367
|
+
'apos': "'"
|
368
|
+
}
|
369
|
+
|
370
|
+
sax.ENTITIES = {
|
371
|
+
'amp': '&',
|
372
|
+
'gt': '>',
|
373
|
+
'lt': '<',
|
374
|
+
'quot': '"',
|
375
|
+
'apos': "'",
|
376
|
+
'AElig': 198,
|
377
|
+
'Aacute': 193,
|
378
|
+
'Acirc': 194,
|
379
|
+
'Agrave': 192,
|
380
|
+
'Aring': 197,
|
381
|
+
'Atilde': 195,
|
382
|
+
'Auml': 196,
|
383
|
+
'Ccedil': 199,
|
384
|
+
'ETH': 208,
|
385
|
+
'Eacute': 201,
|
386
|
+
'Ecirc': 202,
|
387
|
+
'Egrave': 200,
|
388
|
+
'Euml': 203,
|
389
|
+
'Iacute': 205,
|
390
|
+
'Icirc': 206,
|
391
|
+
'Igrave': 204,
|
392
|
+
'Iuml': 207,
|
393
|
+
'Ntilde': 209,
|
394
|
+
'Oacute': 211,
|
395
|
+
'Ocirc': 212,
|
396
|
+
'Ograve': 210,
|
397
|
+
'Oslash': 216,
|
398
|
+
'Otilde': 213,
|
399
|
+
'Ouml': 214,
|
400
|
+
'THORN': 222,
|
401
|
+
'Uacute': 218,
|
402
|
+
'Ucirc': 219,
|
403
|
+
'Ugrave': 217,
|
404
|
+
'Uuml': 220,
|
405
|
+
'Yacute': 221,
|
406
|
+
'aacute': 225,
|
407
|
+
'acirc': 226,
|
408
|
+
'aelig': 230,
|
409
|
+
'agrave': 224,
|
410
|
+
'aring': 229,
|
411
|
+
'atilde': 227,
|
412
|
+
'auml': 228,
|
413
|
+
'ccedil': 231,
|
414
|
+
'eacute': 233,
|
415
|
+
'ecirc': 234,
|
416
|
+
'egrave': 232,
|
417
|
+
'eth': 240,
|
418
|
+
'euml': 235,
|
419
|
+
'iacute': 237,
|
420
|
+
'icirc': 238,
|
421
|
+
'igrave': 236,
|
422
|
+
'iuml': 239,
|
423
|
+
'ntilde': 241,
|
424
|
+
'oacute': 243,
|
425
|
+
'ocirc': 244,
|
426
|
+
'ograve': 242,
|
427
|
+
'oslash': 248,
|
428
|
+
'otilde': 245,
|
429
|
+
'ouml': 246,
|
430
|
+
'szlig': 223,
|
431
|
+
'thorn': 254,
|
432
|
+
'uacute': 250,
|
433
|
+
'ucirc': 251,
|
434
|
+
'ugrave': 249,
|
435
|
+
'uuml': 252,
|
436
|
+
'yacute': 253,
|
437
|
+
'yuml': 255,
|
438
|
+
'copy': 169,
|
439
|
+
'reg': 174,
|
440
|
+
'nbsp': 160,
|
441
|
+
'iexcl': 161,
|
442
|
+
'cent': 162,
|
443
|
+
'pound': 163,
|
444
|
+
'curren': 164,
|
445
|
+
'yen': 165,
|
446
|
+
'brvbar': 166,
|
447
|
+
'sect': 167,
|
448
|
+
'uml': 168,
|
449
|
+
'ordf': 170,
|
450
|
+
'laquo': 171,
|
451
|
+
'not': 172,
|
452
|
+
'shy': 173,
|
453
|
+
'macr': 175,
|
454
|
+
'deg': 176,
|
455
|
+
'plusmn': 177,
|
456
|
+
'sup1': 185,
|
457
|
+
'sup2': 178,
|
458
|
+
'sup3': 179,
|
459
|
+
'acute': 180,
|
460
|
+
'micro': 181,
|
461
|
+
'para': 182,
|
462
|
+
'middot': 183,
|
463
|
+
'cedil': 184,
|
464
|
+
'ordm': 186,
|
465
|
+
'raquo': 187,
|
466
|
+
'frac14': 188,
|
467
|
+
'frac12': 189,
|
468
|
+
'frac34': 190,
|
469
|
+
'iquest': 191,
|
470
|
+
'times': 215,
|
471
|
+
'divide': 247,
|
472
|
+
'OElig': 338,
|
473
|
+
'oelig': 339,
|
474
|
+
'Scaron': 352,
|
475
|
+
'scaron': 353,
|
476
|
+
'Yuml': 376,
|
477
|
+
'fnof': 402,
|
478
|
+
'circ': 710,
|
479
|
+
'tilde': 732,
|
480
|
+
'Alpha': 913,
|
481
|
+
'Beta': 914,
|
482
|
+
'Gamma': 915,
|
483
|
+
'Delta': 916,
|
484
|
+
'Epsilon': 917,
|
485
|
+
'Zeta': 918,
|
486
|
+
'Eta': 919,
|
487
|
+
'Theta': 920,
|
488
|
+
'Iota': 921,
|
489
|
+
'Kappa': 922,
|
490
|
+
'Lambda': 923,
|
491
|
+
'Mu': 924,
|
492
|
+
'Nu': 925,
|
493
|
+
'Xi': 926,
|
494
|
+
'Omicron': 927,
|
495
|
+
'Pi': 928,
|
496
|
+
'Rho': 929,
|
497
|
+
'Sigma': 931,
|
498
|
+
'Tau': 932,
|
499
|
+
'Upsilon': 933,
|
500
|
+
'Phi': 934,
|
501
|
+
'Chi': 935,
|
502
|
+
'Psi': 936,
|
503
|
+
'Omega': 937,
|
504
|
+
'alpha': 945,
|
505
|
+
'beta': 946,
|
506
|
+
'gamma': 947,
|
507
|
+
'delta': 948,
|
508
|
+
'epsilon': 949,
|
509
|
+
'zeta': 950,
|
510
|
+
'eta': 951,
|
511
|
+
'theta': 952,
|
512
|
+
'iota': 953,
|
513
|
+
'kappa': 954,
|
514
|
+
'lambda': 955,
|
515
|
+
'mu': 956,
|
516
|
+
'nu': 957,
|
517
|
+
'xi': 958,
|
518
|
+
'omicron': 959,
|
519
|
+
'pi': 960,
|
520
|
+
'rho': 961,
|
521
|
+
'sigmaf': 962,
|
522
|
+
'sigma': 963,
|
523
|
+
'tau': 964,
|
524
|
+
'upsilon': 965,
|
525
|
+
'phi': 966,
|
526
|
+
'chi': 967,
|
527
|
+
'psi': 968,
|
528
|
+
'omega': 969,
|
529
|
+
'thetasym': 977,
|
530
|
+
'upsih': 978,
|
531
|
+
'piv': 982,
|
532
|
+
'ensp': 8194,
|
533
|
+
'emsp': 8195,
|
534
|
+
'thinsp': 8201,
|
535
|
+
'zwnj': 8204,
|
536
|
+
'zwj': 8205,
|
537
|
+
'lrm': 8206,
|
538
|
+
'rlm': 8207,
|
539
|
+
'ndash': 8211,
|
540
|
+
'mdash': 8212,
|
541
|
+
'lsquo': 8216,
|
542
|
+
'rsquo': 8217,
|
543
|
+
'sbquo': 8218,
|
544
|
+
'ldquo': 8220,
|
545
|
+
'rdquo': 8221,
|
546
|
+
'bdquo': 8222,
|
547
|
+
'dagger': 8224,
|
548
|
+
'Dagger': 8225,
|
549
|
+
'bull': 8226,
|
550
|
+
'hellip': 8230,
|
551
|
+
'permil': 8240,
|
552
|
+
'prime': 8242,
|
553
|
+
'Prime': 8243,
|
554
|
+
'lsaquo': 8249,
|
555
|
+
'rsaquo': 8250,
|
556
|
+
'oline': 8254,
|
557
|
+
'frasl': 8260,
|
558
|
+
'euro': 8364,
|
559
|
+
'image': 8465,
|
560
|
+
'weierp': 8472,
|
561
|
+
'real': 8476,
|
562
|
+
'trade': 8482,
|
563
|
+
'alefsym': 8501,
|
564
|
+
'larr': 8592,
|
565
|
+
'uarr': 8593,
|
566
|
+
'rarr': 8594,
|
567
|
+
'darr': 8595,
|
568
|
+
'harr': 8596,
|
569
|
+
'crarr': 8629,
|
570
|
+
'lArr': 8656,
|
571
|
+
'uArr': 8657,
|
572
|
+
'rArr': 8658,
|
573
|
+
'dArr': 8659,
|
574
|
+
'hArr': 8660,
|
575
|
+
'forall': 8704,
|
576
|
+
'part': 8706,
|
577
|
+
'exist': 8707,
|
578
|
+
'empty': 8709,
|
579
|
+
'nabla': 8711,
|
580
|
+
'isin': 8712,
|
581
|
+
'notin': 8713,
|
582
|
+
'ni': 8715,
|
583
|
+
'prod': 8719,
|
584
|
+
'sum': 8721,
|
585
|
+
'minus': 8722,
|
586
|
+
'lowast': 8727,
|
587
|
+
'radic': 8730,
|
588
|
+
'prop': 8733,
|
589
|
+
'infin': 8734,
|
590
|
+
'ang': 8736,
|
591
|
+
'and': 8743,
|
592
|
+
'or': 8744,
|
593
|
+
'cap': 8745,
|
594
|
+
'cup': 8746,
|
595
|
+
'int': 8747,
|
596
|
+
'there4': 8756,
|
597
|
+
'sim': 8764,
|
598
|
+
'cong': 8773,
|
599
|
+
'asymp': 8776,
|
600
|
+
'ne': 8800,
|
601
|
+
'equiv': 8801,
|
602
|
+
'le': 8804,
|
603
|
+
'ge': 8805,
|
604
|
+
'sub': 8834,
|
605
|
+
'sup': 8835,
|
606
|
+
'nsub': 8836,
|
607
|
+
'sube': 8838,
|
608
|
+
'supe': 8839,
|
609
|
+
'oplus': 8853,
|
610
|
+
'otimes': 8855,
|
611
|
+
'perp': 8869,
|
612
|
+
'sdot': 8901,
|
613
|
+
'lceil': 8968,
|
614
|
+
'rceil': 8969,
|
615
|
+
'lfloor': 8970,
|
616
|
+
'rfloor': 8971,
|
617
|
+
'lang': 9001,
|
618
|
+
'rang': 9002,
|
619
|
+
'loz': 9674,
|
620
|
+
'spades': 9824,
|
621
|
+
'clubs': 9827,
|
622
|
+
'hearts': 9829,
|
623
|
+
'diams': 9830
|
624
|
+
}
|
625
|
+
|
626
|
+
Object.keys(sax.ENTITIES).forEach(function (key) {
|
627
|
+
var e = sax.ENTITIES[key]
|
628
|
+
var s = typeof e === 'number' ? String.fromCharCode(e) : e
|
629
|
+
sax.ENTITIES[key] = s
|
630
|
+
})
|
631
|
+
|
632
|
+
for (var s in sax.STATE) {
|
633
|
+
sax.STATE[sax.STATE[s]] = s
|
634
|
+
}
|
635
|
+
|
636
|
+
// shorthand
|
637
|
+
S = sax.STATE
|
638
|
+
|
639
|
+
function emit (parser, event, data) {
|
640
|
+
parser[event] && parser[event](data)
|
641
|
+
}
|
642
|
+
|
643
|
+
function emitNode (parser, nodeType, data) {
|
644
|
+
if (parser.textNode) closeText(parser)
|
645
|
+
emit(parser, nodeType, data)
|
646
|
+
}
|
647
|
+
|
648
|
+
function closeText (parser) {
|
649
|
+
parser.textNode = textopts(parser.opt, parser.textNode)
|
650
|
+
if (parser.textNode) emit(parser, 'ontext', parser.textNode)
|
651
|
+
parser.textNode = ''
|
652
|
+
}
|
653
|
+
|
654
|
+
function textopts (opt, text) {
|
655
|
+
if (opt.trim) text = text.trim()
|
656
|
+
if (opt.normalize) text = text.replace(/\s+/g, ' ')
|
657
|
+
return text
|
658
|
+
}
|
659
|
+
|
660
|
+
function error (parser, er) {
|
661
|
+
closeText(parser)
|
662
|
+
if (parser.trackPosition) {
|
663
|
+
er += '\nLine: ' + parser.line +
|
664
|
+
'\nColumn: ' + parser.column +
|
665
|
+
'\nChar: ' + parser.c
|
666
|
+
}
|
667
|
+
er = new Error(er)
|
668
|
+
parser.error = er
|
669
|
+
emit(parser, 'onerror', er)
|
670
|
+
return parser
|
671
|
+
}
|
672
|
+
|
673
|
+
function end (parser) {
|
674
|
+
if (parser.sawRoot && !parser.closedRoot) strictFail(parser, 'Unclosed root tag')
|
675
|
+
if ((parser.state !== S.BEGIN) &&
|
676
|
+
(parser.state !== S.BEGIN_WHITESPACE) &&
|
677
|
+
(parser.state !== S.TEXT)) {
|
678
|
+
error(parser, 'Unexpected end')
|
679
|
+
}
|
680
|
+
closeText(parser)
|
681
|
+
parser.c = ''
|
682
|
+
parser.closed = true
|
683
|
+
emit(parser, 'onend')
|
684
|
+
SAXParser.call(parser, parser.strict, parser.opt)
|
685
|
+
return parser
|
686
|
+
}
|
687
|
+
|
688
|
+
function strictFail (parser, message) {
|
689
|
+
if (typeof parser !== 'object' || !(parser instanceof SAXParser)) {
|
690
|
+
throw new Error('bad call to strictFail')
|
691
|
+
}
|
692
|
+
if (parser.strict) {
|
693
|
+
error(parser, message)
|
694
|
+
}
|
695
|
+
}
|
696
|
+
|
697
|
+
function newTag (parser) {
|
698
|
+
if (!parser.strict) parser.tagName = parser.tagName[parser.looseCase]()
|
699
|
+
var parent = parser.tags[parser.tags.length - 1] || parser
|
700
|
+
var tag = parser.tag = { name: parser.tagName, attributes: {} }
|
701
|
+
|
702
|
+
// will be overridden if tag contails an xmlns="foo" or xmlns:foo="bar"
|
703
|
+
if (parser.opt.xmlns) {
|
704
|
+
tag.ns = parent.ns
|
705
|
+
}
|
706
|
+
parser.attribList.length = 0
|
707
|
+
emitNode(parser, 'onopentagstart', tag)
|
708
|
+
}
|
709
|
+
|
710
|
+
function qname (name, attribute) {
|
711
|
+
var i = name.indexOf(':')
|
712
|
+
var qualName = i < 0 ? [ '', name ] : name.split(':')
|
713
|
+
var prefix = qualName[0]
|
714
|
+
var local = qualName[1]
|
715
|
+
|
716
|
+
// <x "xmlns"="http://foo">
|
717
|
+
if (attribute && name === 'xmlns') {
|
718
|
+
prefix = 'xmlns'
|
719
|
+
local = ''
|
720
|
+
}
|
721
|
+
|
722
|
+
return { prefix: prefix, local: local }
|
723
|
+
}
|
724
|
+
|
725
|
+
function attrib (parser) {
|
726
|
+
if (!parser.strict) {
|
727
|
+
parser.attribName = parser.attribName[parser.looseCase]()
|
728
|
+
}
|
729
|
+
|
730
|
+
if (parser.attribList.indexOf(parser.attribName) !== -1 ||
|
731
|
+
parser.tag.attributes.hasOwnProperty(parser.attribName)) {
|
732
|
+
parser.attribName = parser.attribValue = ''
|
733
|
+
return
|
734
|
+
}
|
735
|
+
|
736
|
+
if (parser.opt.xmlns) {
|
737
|
+
var qn = qname(parser.attribName, true)
|
738
|
+
var prefix = qn.prefix
|
739
|
+
var local = qn.local
|
740
|
+
|
741
|
+
if (prefix === 'xmlns') {
|
742
|
+
// namespace binding attribute. push the binding into scope
|
743
|
+
if (local === 'xml' && parser.attribValue !== XML_NAMESPACE) {
|
744
|
+
strictFail(parser,
|
745
|
+
'xml: prefix must be bound to ' + XML_NAMESPACE + '\n' +
|
746
|
+
'Actual: ' + parser.attribValue)
|
747
|
+
} else if (local === 'xmlns' && parser.attribValue !== XMLNS_NAMESPACE) {
|
748
|
+
strictFail(parser,
|
749
|
+
'xmlns: prefix must be bound to ' + XMLNS_NAMESPACE + '\n' +
|
750
|
+
'Actual: ' + parser.attribValue)
|
751
|
+
} else {
|
752
|
+
var tag = parser.tag
|
753
|
+
var parent = parser.tags[parser.tags.length - 1] || parser
|
754
|
+
if (tag.ns === parent.ns) {
|
755
|
+
tag.ns = Object.create(parent.ns)
|
756
|
+
}
|
757
|
+
tag.ns[local] = parser.attribValue
|
758
|
+
}
|
759
|
+
}
|
760
|
+
|
761
|
+
// defer onattribute events until all attributes have been seen
|
762
|
+
// so any new bindings can take effect. preserve attribute order
|
763
|
+
// so deferred events can be emitted in document order
|
764
|
+
parser.attribList.push([parser.attribName, parser.attribValue])
|
765
|
+
} else {
|
766
|
+
// in non-xmlns mode, we can emit the event right away
|
767
|
+
parser.tag.attributes[parser.attribName] = parser.attribValue
|
768
|
+
emitNode(parser, 'onattribute', {
|
769
|
+
name: parser.attribName,
|
770
|
+
value: parser.attribValue
|
771
|
+
})
|
772
|
+
}
|
773
|
+
|
774
|
+
parser.attribName = parser.attribValue = ''
|
775
|
+
}
|
776
|
+
|
777
|
+
function openTag (parser, selfClosing) {
|
778
|
+
if (parser.opt.xmlns) {
|
779
|
+
// emit namespace binding events
|
780
|
+
var tag = parser.tag
|
781
|
+
|
782
|
+
// add namespace info to tag
|
783
|
+
var qn = qname(parser.tagName)
|
784
|
+
tag.prefix = qn.prefix
|
785
|
+
tag.local = qn.local
|
786
|
+
tag.uri = tag.ns[qn.prefix] || ''
|
787
|
+
|
788
|
+
if (tag.prefix && !tag.uri) {
|
789
|
+
strictFail(parser, 'Unbound namespace prefix: ' +
|
790
|
+
JSON.stringify(parser.tagName))
|
791
|
+
tag.uri = qn.prefix
|
792
|
+
}
|
793
|
+
|
794
|
+
var parent = parser.tags[parser.tags.length - 1] || parser
|
795
|
+
if (tag.ns && parent.ns !== tag.ns) {
|
796
|
+
Object.keys(tag.ns).forEach(function (p) {
|
797
|
+
emitNode(parser, 'onopennamespace', {
|
798
|
+
prefix: p,
|
799
|
+
uri: tag.ns[p]
|
800
|
+
})
|
801
|
+
})
|
802
|
+
}
|
803
|
+
|
804
|
+
// handle deferred onattribute events
|
805
|
+
// Note: do not apply default ns to attributes:
|
806
|
+
// http://www.w3.org/TR/REC-xml-names/#defaulting
|
807
|
+
for (var i = 0, l = parser.attribList.length; i < l; i++) {
|
808
|
+
var nv = parser.attribList[i]
|
809
|
+
var name = nv[0]
|
810
|
+
var value = nv[1]
|
811
|
+
var qualName = qname(name, true)
|
812
|
+
var prefix = qualName.prefix
|
813
|
+
var local = qualName.local
|
814
|
+
var uri = prefix === '' ? '' : (tag.ns[prefix] || '')
|
815
|
+
var a = {
|
816
|
+
name: name,
|
817
|
+
value: value,
|
818
|
+
prefix: prefix,
|
819
|
+
local: local,
|
820
|
+
uri: uri
|
821
|
+
}
|
822
|
+
|
823
|
+
// if there's any attributes with an undefined namespace,
|
824
|
+
// then fail on them now.
|
825
|
+
if (prefix && prefix !== 'xmlns' && !uri) {
|
826
|
+
strictFail(parser, 'Unbound namespace prefix: ' +
|
827
|
+
JSON.stringify(prefix))
|
828
|
+
a.uri = prefix
|
829
|
+
}
|
830
|
+
parser.tag.attributes[name] = a
|
831
|
+
emitNode(parser, 'onattribute', a)
|
832
|
+
}
|
833
|
+
parser.attribList.length = 0
|
834
|
+
}
|
835
|
+
|
836
|
+
parser.tag.isSelfClosing = !!selfClosing
|
837
|
+
|
838
|
+
// process the tag
|
839
|
+
parser.sawRoot = true
|
840
|
+
parser.tags.push(parser.tag)
|
841
|
+
emitNode(parser, 'onopentag', parser.tag)
|
842
|
+
if (!selfClosing) {
|
843
|
+
// special case for <script> in non-strict mode.
|
844
|
+
if (!parser.noscript && parser.tagName.toLowerCase() === 'script') {
|
845
|
+
parser.state = S.SCRIPT
|
846
|
+
} else {
|
847
|
+
parser.state = S.TEXT
|
848
|
+
}
|
849
|
+
parser.tag = null
|
850
|
+
parser.tagName = ''
|
851
|
+
}
|
852
|
+
parser.attribName = parser.attribValue = ''
|
853
|
+
parser.attribList.length = 0
|
854
|
+
}
|
855
|
+
|
856
|
+
function closeTag (parser) {
|
857
|
+
if (!parser.tagName) {
|
858
|
+
strictFail(parser, 'Weird empty close tag.')
|
859
|
+
parser.textNode += '</>'
|
860
|
+
parser.state = S.TEXT
|
861
|
+
return
|
862
|
+
}
|
863
|
+
|
864
|
+
if (parser.script) {
|
865
|
+
if (parser.tagName !== 'script') {
|
866
|
+
parser.script += '</' + parser.tagName + '>'
|
867
|
+
parser.tagName = ''
|
868
|
+
parser.state = S.SCRIPT
|
869
|
+
return
|
870
|
+
}
|
871
|
+
emitNode(parser, 'onscript', parser.script)
|
872
|
+
parser.script = ''
|
873
|
+
}
|
874
|
+
|
875
|
+
// first make sure that the closing tag actually exists.
|
876
|
+
// <a><b></c></b></a> will close everything, otherwise.
|
877
|
+
var t = parser.tags.length
|
878
|
+
var tagName = parser.tagName
|
879
|
+
if (!parser.strict) {
|
880
|
+
tagName = tagName[parser.looseCase]()
|
881
|
+
}
|
882
|
+
var closeTo = tagName
|
883
|
+
while (t--) {
|
884
|
+
var close = parser.tags[t]
|
885
|
+
if (close.name !== closeTo) {
|
886
|
+
// fail the first time in strict mode
|
887
|
+
strictFail(parser, 'Unexpected close tag')
|
888
|
+
} else {
|
889
|
+
break
|
890
|
+
}
|
891
|
+
}
|
892
|
+
|
893
|
+
// didn't find it. we already failed for strict, so just abort.
|
894
|
+
if (t < 0) {
|
895
|
+
strictFail(parser, 'Unmatched closing tag: ' + parser.tagName)
|
896
|
+
parser.textNode += '</' + parser.tagName + '>'
|
897
|
+
parser.state = S.TEXT
|
898
|
+
return
|
899
|
+
}
|
900
|
+
parser.tagName = tagName
|
901
|
+
var s = parser.tags.length
|
902
|
+
while (s-- > t) {
|
903
|
+
var tag = parser.tag = parser.tags.pop()
|
904
|
+
parser.tagName = parser.tag.name
|
905
|
+
emitNode(parser, 'onclosetag', parser.tagName)
|
906
|
+
|
907
|
+
var x = {}
|
908
|
+
for (var i in tag.ns) {
|
909
|
+
x[i] = tag.ns[i]
|
910
|
+
}
|
911
|
+
|
912
|
+
var parent = parser.tags[parser.tags.length - 1] || parser
|
913
|
+
if (parser.opt.xmlns && tag.ns !== parent.ns) {
|
914
|
+
// remove namespace bindings introduced by tag
|
915
|
+
Object.keys(tag.ns).forEach(function (p) {
|
916
|
+
var n = tag.ns[p]
|
917
|
+
emitNode(parser, 'onclosenamespace', { prefix: p, uri: n })
|
918
|
+
})
|
919
|
+
}
|
920
|
+
}
|
921
|
+
if (t === 0) parser.closedRoot = true
|
922
|
+
parser.tagName = parser.attribValue = parser.attribName = ''
|
923
|
+
parser.attribList.length = 0
|
924
|
+
parser.state = S.TEXT
|
925
|
+
}
|
926
|
+
|
927
|
+
function parseEntity (parser) {
|
928
|
+
var entity = parser.entity
|
929
|
+
var entityLC = entity.toLowerCase()
|
930
|
+
var num
|
931
|
+
var numStr = ''
|
932
|
+
|
933
|
+
if (parser.ENTITIES[entity]) {
|
934
|
+
return parser.ENTITIES[entity]
|
935
|
+
}
|
936
|
+
if (parser.ENTITIES[entityLC]) {
|
937
|
+
return parser.ENTITIES[entityLC]
|
938
|
+
}
|
939
|
+
entity = entityLC
|
940
|
+
if (entity.charAt(0) === '#') {
|
941
|
+
if (entity.charAt(1) === 'x') {
|
942
|
+
entity = entity.slice(2)
|
943
|
+
num = parseInt(entity, 16)
|
944
|
+
numStr = num.toString(16)
|
945
|
+
} else {
|
946
|
+
entity = entity.slice(1)
|
947
|
+
num = parseInt(entity, 10)
|
948
|
+
numStr = num.toString(10)
|
949
|
+
}
|
950
|
+
}
|
951
|
+
entity = entity.replace(/^0+/, '')
|
952
|
+
if (numStr.toLowerCase() !== entity) {
|
953
|
+
strictFail(parser, 'Invalid character entity')
|
954
|
+
return '&' + parser.entity + ';'
|
955
|
+
}
|
956
|
+
|
957
|
+
return String.fromCodePoint(num)
|
958
|
+
}
|
959
|
+
|
960
|
+
function beginWhiteSpace (parser, c) {
|
961
|
+
if (c === '<') {
|
962
|
+
parser.state = S.OPEN_WAKA
|
963
|
+
parser.startTagPosition = parser.position
|
964
|
+
} else if (not(whitespace, c)) {
|
965
|
+
// have to process this as a text node.
|
966
|
+
// weird, but happens.
|
967
|
+
strictFail(parser, 'Non-whitespace before first tag.')
|
968
|
+
parser.textNode = c
|
969
|
+
parser.state = S.TEXT
|
970
|
+
}
|
971
|
+
}
|
972
|
+
|
973
|
+
function charAt (chunk, i) {
|
974
|
+
var result = ''
|
975
|
+
if (i < chunk.length) {
|
976
|
+
result = chunk.charAt(i)
|
977
|
+
}
|
978
|
+
return result
|
979
|
+
}
|
980
|
+
|
981
|
+
function write (chunk) {
|
982
|
+
var parser = this
|
983
|
+
if (this.error) {
|
984
|
+
throw this.error
|
985
|
+
}
|
986
|
+
if (parser.closed) {
|
987
|
+
return error(parser,
|
988
|
+
'Cannot write after close. Assign an onready handler.')
|
989
|
+
}
|
990
|
+
if (chunk === null) {
|
991
|
+
return end(parser)
|
992
|
+
}
|
993
|
+
if (typeof chunk === 'object') {
|
994
|
+
chunk = chunk.toString()
|
995
|
+
}
|
996
|
+
var i = 0
|
997
|
+
var c = ''
|
998
|
+
while (true) {
|
999
|
+
c = charAt(chunk, i++)
|
1000
|
+
parser.c = c
|
1001
|
+
if (!c) {
|
1002
|
+
break
|
1003
|
+
}
|
1004
|
+
if (parser.trackPosition) {
|
1005
|
+
parser.position++
|
1006
|
+
if (c === '\n') {
|
1007
|
+
parser.line++
|
1008
|
+
parser.column = 0
|
1009
|
+
} else {
|
1010
|
+
parser.column++
|
1011
|
+
}
|
1012
|
+
}
|
1013
|
+
switch (parser.state) {
|
1014
|
+
case S.BEGIN:
|
1015
|
+
parser.state = S.BEGIN_WHITESPACE
|
1016
|
+
if (c === '\uFEFF') {
|
1017
|
+
continue
|
1018
|
+
}
|
1019
|
+
beginWhiteSpace(parser, c)
|
1020
|
+
continue
|
1021
|
+
|
1022
|
+
case S.BEGIN_WHITESPACE:
|
1023
|
+
beginWhiteSpace(parser, c)
|
1024
|
+
continue
|
1025
|
+
|
1026
|
+
case S.TEXT:
|
1027
|
+
if (parser.sawRoot && !parser.closedRoot) {
|
1028
|
+
var starti = i - 1
|
1029
|
+
while (c && c !== '<' && c !== '&') {
|
1030
|
+
c = charAt(chunk, i++)
|
1031
|
+
if (c && parser.trackPosition) {
|
1032
|
+
parser.position++
|
1033
|
+
if (c === '\n') {
|
1034
|
+
parser.line++
|
1035
|
+
parser.column = 0
|
1036
|
+
} else {
|
1037
|
+
parser.column++
|
1038
|
+
}
|
1039
|
+
}
|
1040
|
+
}
|
1041
|
+
parser.textNode += chunk.substring(starti, i - 1)
|
1042
|
+
}
|
1043
|
+
if (c === '<' && !(parser.sawRoot && parser.closedRoot && !parser.strict)) {
|
1044
|
+
parser.state = S.OPEN_WAKA
|
1045
|
+
parser.startTagPosition = parser.position
|
1046
|
+
} else {
|
1047
|
+
if (not(whitespace, c) && (!parser.sawRoot || parser.closedRoot)) {
|
1048
|
+
strictFail(parser, 'Text data outside of root node.')
|
1049
|
+
}
|
1050
|
+
if (c === '&') {
|
1051
|
+
parser.state = S.TEXT_ENTITY
|
1052
|
+
} else {
|
1053
|
+
parser.textNode += c
|
1054
|
+
}
|
1055
|
+
}
|
1056
|
+
continue
|
1057
|
+
|
1058
|
+
case S.SCRIPT:
|
1059
|
+
// only non-strict
|
1060
|
+
if (c === '<') {
|
1061
|
+
parser.state = S.SCRIPT_ENDING
|
1062
|
+
} else {
|
1063
|
+
parser.script += c
|
1064
|
+
}
|
1065
|
+
continue
|
1066
|
+
|
1067
|
+
case S.SCRIPT_ENDING:
|
1068
|
+
if (c === '/') {
|
1069
|
+
parser.state = S.CLOSE_TAG
|
1070
|
+
} else {
|
1071
|
+
parser.script += '<' + c
|
1072
|
+
parser.state = S.SCRIPT
|
1073
|
+
}
|
1074
|
+
continue
|
1075
|
+
|
1076
|
+
case S.OPEN_WAKA:
|
1077
|
+
// either a /, ?, !, or text is coming next.
|
1078
|
+
if (c === '!') {
|
1079
|
+
parser.state = S.SGML_DECL
|
1080
|
+
parser.sgmlDecl = ''
|
1081
|
+
} else if (is(whitespace, c)) {
|
1082
|
+
// wait for it...
|
1083
|
+
} else if (is(nameStart, c)) {
|
1084
|
+
parser.state = S.OPEN_TAG
|
1085
|
+
parser.tagName = c
|
1086
|
+
} else if (c === '/') {
|
1087
|
+
parser.state = S.CLOSE_TAG
|
1088
|
+
parser.tagName = ''
|
1089
|
+
} else if (c === '?') {
|
1090
|
+
parser.state = S.PROC_INST
|
1091
|
+
parser.procInstName = parser.procInstBody = ''
|
1092
|
+
} else {
|
1093
|
+
strictFail(parser, 'Unencoded <')
|
1094
|
+
// if there was some whitespace, then add that in.
|
1095
|
+
if (parser.startTagPosition + 1 < parser.position) {
|
1096
|
+
var pad = parser.position - parser.startTagPosition
|
1097
|
+
c = new Array(pad).join(' ') + c
|
1098
|
+
}
|
1099
|
+
parser.textNode += '<' + c
|
1100
|
+
parser.state = S.TEXT
|
1101
|
+
}
|
1102
|
+
continue
|
1103
|
+
|
1104
|
+
case S.SGML_DECL:
|
1105
|
+
if ((parser.sgmlDecl + c).toUpperCase() === CDATA) {
|
1106
|
+
emitNode(parser, 'onopencdata')
|
1107
|
+
parser.state = S.CDATA
|
1108
|
+
parser.sgmlDecl = ''
|
1109
|
+
parser.cdata = ''
|
1110
|
+
} else if (parser.sgmlDecl + c === '--') {
|
1111
|
+
parser.state = S.COMMENT
|
1112
|
+
parser.comment = ''
|
1113
|
+
parser.sgmlDecl = ''
|
1114
|
+
} else if ((parser.sgmlDecl + c).toUpperCase() === DOCTYPE) {
|
1115
|
+
parser.state = S.DOCTYPE
|
1116
|
+
if (parser.doctype || parser.sawRoot) {
|
1117
|
+
strictFail(parser,
|
1118
|
+
'Inappropriately located doctype declaration')
|
1119
|
+
}
|
1120
|
+
parser.doctype = ''
|
1121
|
+
parser.sgmlDecl = ''
|
1122
|
+
} else if (c === '>') {
|
1123
|
+
emitNode(parser, 'onsgmldeclaration', parser.sgmlDecl)
|
1124
|
+
parser.sgmlDecl = ''
|
1125
|
+
parser.state = S.TEXT
|
1126
|
+
} else if (is(quote, c)) {
|
1127
|
+
parser.state = S.SGML_DECL_QUOTED
|
1128
|
+
parser.sgmlDecl += c
|
1129
|
+
} else {
|
1130
|
+
parser.sgmlDecl += c
|
1131
|
+
}
|
1132
|
+
continue
|
1133
|
+
|
1134
|
+
case S.SGML_DECL_QUOTED:
|
1135
|
+
if (c === parser.q) {
|
1136
|
+
parser.state = S.SGML_DECL
|
1137
|
+
parser.q = ''
|
1138
|
+
}
|
1139
|
+
parser.sgmlDecl += c
|
1140
|
+
continue
|
1141
|
+
|
1142
|
+
case S.DOCTYPE:
|
1143
|
+
if (c === '>') {
|
1144
|
+
parser.state = S.TEXT
|
1145
|
+
emitNode(parser, 'ondoctype', parser.doctype)
|
1146
|
+
parser.doctype = true // just remember that we saw it.
|
1147
|
+
} else {
|
1148
|
+
parser.doctype += c
|
1149
|
+
if (c === '[') {
|
1150
|
+
parser.state = S.DOCTYPE_DTD
|
1151
|
+
} else if (is(quote, c)) {
|
1152
|
+
parser.state = S.DOCTYPE_QUOTED
|
1153
|
+
parser.q = c
|
1154
|
+
}
|
1155
|
+
}
|
1156
|
+
continue
|
1157
|
+
|
1158
|
+
case S.DOCTYPE_QUOTED:
|
1159
|
+
parser.doctype += c
|
1160
|
+
if (c === parser.q) {
|
1161
|
+
parser.q = ''
|
1162
|
+
parser.state = S.DOCTYPE
|
1163
|
+
}
|
1164
|
+
continue
|
1165
|
+
|
1166
|
+
case S.DOCTYPE_DTD:
|
1167
|
+
parser.doctype += c
|
1168
|
+
if (c === ']') {
|
1169
|
+
parser.state = S.DOCTYPE
|
1170
|
+
} else if (is(quote, c)) {
|
1171
|
+
parser.state = S.DOCTYPE_DTD_QUOTED
|
1172
|
+
parser.q = c
|
1173
|
+
}
|
1174
|
+
continue
|
1175
|
+
|
1176
|
+
case S.DOCTYPE_DTD_QUOTED:
|
1177
|
+
parser.doctype += c
|
1178
|
+
if (c === parser.q) {
|
1179
|
+
parser.state = S.DOCTYPE_DTD
|
1180
|
+
parser.q = ''
|
1181
|
+
}
|
1182
|
+
continue
|
1183
|
+
|
1184
|
+
case S.COMMENT:
|
1185
|
+
if (c === '-') {
|
1186
|
+
parser.state = S.COMMENT_ENDING
|
1187
|
+
} else {
|
1188
|
+
parser.comment += c
|
1189
|
+
}
|
1190
|
+
continue
|
1191
|
+
|
1192
|
+
case S.COMMENT_ENDING:
|
1193
|
+
if (c === '-') {
|
1194
|
+
parser.state = S.COMMENT_ENDED
|
1195
|
+
parser.comment = textopts(parser.opt, parser.comment)
|
1196
|
+
if (parser.comment) {
|
1197
|
+
emitNode(parser, 'oncomment', parser.comment)
|
1198
|
+
}
|
1199
|
+
parser.comment = ''
|
1200
|
+
} else {
|
1201
|
+
parser.comment += '-' + c
|
1202
|
+
parser.state = S.COMMENT
|
1203
|
+
}
|
1204
|
+
continue
|
1205
|
+
|
1206
|
+
case S.COMMENT_ENDED:
|
1207
|
+
if (c !== '>') {
|
1208
|
+
strictFail(parser, 'Malformed comment')
|
1209
|
+
// allow <!-- blah -- bloo --> in non-strict mode,
|
1210
|
+
// which is a comment of " blah -- bloo "
|
1211
|
+
parser.comment += '--' + c
|
1212
|
+
parser.state = S.COMMENT
|
1213
|
+
} else {
|
1214
|
+
parser.state = S.TEXT
|
1215
|
+
}
|
1216
|
+
continue
|
1217
|
+
|
1218
|
+
case S.CDATA:
|
1219
|
+
if (c === ']') {
|
1220
|
+
parser.state = S.CDATA_ENDING
|
1221
|
+
} else {
|
1222
|
+
parser.cdata += c
|
1223
|
+
}
|
1224
|
+
continue
|
1225
|
+
|
1226
|
+
case S.CDATA_ENDING:
|
1227
|
+
if (c === ']') {
|
1228
|
+
parser.state = S.CDATA_ENDING_2
|
1229
|
+
} else {
|
1230
|
+
parser.cdata += ']' + c
|
1231
|
+
parser.state = S.CDATA
|
1232
|
+
}
|
1233
|
+
continue
|
1234
|
+
|
1235
|
+
case S.CDATA_ENDING_2:
|
1236
|
+
if (c === '>') {
|
1237
|
+
if (parser.cdata) {
|
1238
|
+
emitNode(parser, 'oncdata', parser.cdata)
|
1239
|
+
}
|
1240
|
+
emitNode(parser, 'onclosecdata')
|
1241
|
+
parser.cdata = ''
|
1242
|
+
parser.state = S.TEXT
|
1243
|
+
} else if (c === ']') {
|
1244
|
+
parser.cdata += ']'
|
1245
|
+
} else {
|
1246
|
+
parser.cdata += ']]' + c
|
1247
|
+
parser.state = S.CDATA
|
1248
|
+
}
|
1249
|
+
continue
|
1250
|
+
|
1251
|
+
case S.PROC_INST:
|
1252
|
+
if (c === '?') {
|
1253
|
+
parser.state = S.PROC_INST_ENDING
|
1254
|
+
} else if (is(whitespace, c)) {
|
1255
|
+
parser.state = S.PROC_INST_BODY
|
1256
|
+
} else {
|
1257
|
+
parser.procInstName += c
|
1258
|
+
}
|
1259
|
+
continue
|
1260
|
+
|
1261
|
+
case S.PROC_INST_BODY:
|
1262
|
+
if (!parser.procInstBody && is(whitespace, c)) {
|
1263
|
+
continue
|
1264
|
+
} else if (c === '?') {
|
1265
|
+
parser.state = S.PROC_INST_ENDING
|
1266
|
+
} else {
|
1267
|
+
parser.procInstBody += c
|
1268
|
+
}
|
1269
|
+
continue
|
1270
|
+
|
1271
|
+
case S.PROC_INST_ENDING:
|
1272
|
+
if (c === '>') {
|
1273
|
+
emitNode(parser, 'onprocessinginstruction', {
|
1274
|
+
name: parser.procInstName,
|
1275
|
+
body: parser.procInstBody
|
1276
|
+
})
|
1277
|
+
parser.procInstName = parser.procInstBody = ''
|
1278
|
+
parser.state = S.TEXT
|
1279
|
+
} else {
|
1280
|
+
parser.procInstBody += '?' + c
|
1281
|
+
parser.state = S.PROC_INST_BODY
|
1282
|
+
}
|
1283
|
+
continue
|
1284
|
+
|
1285
|
+
case S.OPEN_TAG:
|
1286
|
+
if (is(nameBody, c)) {
|
1287
|
+
parser.tagName += c
|
1288
|
+
} else {
|
1289
|
+
newTag(parser)
|
1290
|
+
if (c === '>') {
|
1291
|
+
openTag(parser)
|
1292
|
+
} else if (c === '/') {
|
1293
|
+
parser.state = S.OPEN_TAG_SLASH
|
1294
|
+
} else {
|
1295
|
+
if (not(whitespace, c)) {
|
1296
|
+
strictFail(parser, 'Invalid character in tag name')
|
1297
|
+
}
|
1298
|
+
parser.state = S.ATTRIB
|
1299
|
+
}
|
1300
|
+
}
|
1301
|
+
continue
|
1302
|
+
|
1303
|
+
case S.OPEN_TAG_SLASH:
|
1304
|
+
if (c === '>') {
|
1305
|
+
openTag(parser, true)
|
1306
|
+
closeTag(parser)
|
1307
|
+
} else {
|
1308
|
+
strictFail(parser, 'Forward-slash in opening tag not followed by >')
|
1309
|
+
parser.state = S.ATTRIB
|
1310
|
+
}
|
1311
|
+
continue
|
1312
|
+
|
1313
|
+
case S.ATTRIB:
|
1314
|
+
// haven't read the attribute name yet.
|
1315
|
+
if (is(whitespace, c)) {
|
1316
|
+
continue
|
1317
|
+
} else if (c === '>') {
|
1318
|
+
openTag(parser)
|
1319
|
+
} else if (c === '/') {
|
1320
|
+
parser.state = S.OPEN_TAG_SLASH
|
1321
|
+
} else if (is(nameStart, c)) {
|
1322
|
+
parser.attribName = c
|
1323
|
+
parser.attribValue = ''
|
1324
|
+
parser.state = S.ATTRIB_NAME
|
1325
|
+
} else {
|
1326
|
+
strictFail(parser, 'Invalid attribute name')
|
1327
|
+
}
|
1328
|
+
continue
|
1329
|
+
|
1330
|
+
case S.ATTRIB_NAME:
|
1331
|
+
if (c === '=') {
|
1332
|
+
parser.state = S.ATTRIB_VALUE
|
1333
|
+
} else if (c === '>') {
|
1334
|
+
strictFail(parser, 'Attribute without value')
|
1335
|
+
parser.attribValue = parser.attribName
|
1336
|
+
attrib(parser)
|
1337
|
+
openTag(parser)
|
1338
|
+
} else if (is(whitespace, c)) {
|
1339
|
+
parser.state = S.ATTRIB_NAME_SAW_WHITE
|
1340
|
+
} else if (is(nameBody, c)) {
|
1341
|
+
parser.attribName += c
|
1342
|
+
} else {
|
1343
|
+
strictFail(parser, 'Invalid attribute name')
|
1344
|
+
}
|
1345
|
+
continue
|
1346
|
+
|
1347
|
+
case S.ATTRIB_NAME_SAW_WHITE:
|
1348
|
+
if (c === '=') {
|
1349
|
+
parser.state = S.ATTRIB_VALUE
|
1350
|
+
} else if (is(whitespace, c)) {
|
1351
|
+
continue
|
1352
|
+
} else {
|
1353
|
+
strictFail(parser, 'Attribute without value')
|
1354
|
+
parser.tag.attributes[parser.attribName] = ''
|
1355
|
+
parser.attribValue = ''
|
1356
|
+
emitNode(parser, 'onattribute', {
|
1357
|
+
name: parser.attribName,
|
1358
|
+
value: ''
|
1359
|
+
})
|
1360
|
+
parser.attribName = ''
|
1361
|
+
if (c === '>') {
|
1362
|
+
openTag(parser)
|
1363
|
+
} else if (is(nameStart, c)) {
|
1364
|
+
parser.attribName = c
|
1365
|
+
parser.state = S.ATTRIB_NAME
|
1366
|
+
} else {
|
1367
|
+
strictFail(parser, 'Invalid attribute name')
|
1368
|
+
parser.state = S.ATTRIB
|
1369
|
+
}
|
1370
|
+
}
|
1371
|
+
continue
|
1372
|
+
|
1373
|
+
case S.ATTRIB_VALUE:
|
1374
|
+
if (is(whitespace, c)) {
|
1375
|
+
continue
|
1376
|
+
} else if (is(quote, c)) {
|
1377
|
+
parser.q = c
|
1378
|
+
parser.state = S.ATTRIB_VALUE_QUOTED
|
1379
|
+
} else {
|
1380
|
+
strictFail(parser, 'Unquoted attribute value')
|
1381
|
+
parser.state = S.ATTRIB_VALUE_UNQUOTED
|
1382
|
+
parser.attribValue = c
|
1383
|
+
}
|
1384
|
+
continue
|
1385
|
+
|
1386
|
+
case S.ATTRIB_VALUE_QUOTED:
|
1387
|
+
if (c !== parser.q) {
|
1388
|
+
if (c === '&') {
|
1389
|
+
parser.state = S.ATTRIB_VALUE_ENTITY_Q
|
1390
|
+
} else {
|
1391
|
+
parser.attribValue += c
|
1392
|
+
}
|
1393
|
+
continue
|
1394
|
+
}
|
1395
|
+
attrib(parser)
|
1396
|
+
parser.q = ''
|
1397
|
+
parser.state = S.ATTRIB_VALUE_CLOSED
|
1398
|
+
continue
|
1399
|
+
|
1400
|
+
case S.ATTRIB_VALUE_CLOSED:
|
1401
|
+
if (is(whitespace, c)) {
|
1402
|
+
parser.state = S.ATTRIB
|
1403
|
+
} else if (c === '>') {
|
1404
|
+
openTag(parser)
|
1405
|
+
} else if (c === '/') {
|
1406
|
+
parser.state = S.OPEN_TAG_SLASH
|
1407
|
+
} else if (is(nameStart, c)) {
|
1408
|
+
strictFail(parser, 'No whitespace between attributes')
|
1409
|
+
parser.attribName = c
|
1410
|
+
parser.attribValue = ''
|
1411
|
+
parser.state = S.ATTRIB_NAME
|
1412
|
+
} else {
|
1413
|
+
strictFail(parser, 'Invalid attribute name')
|
1414
|
+
}
|
1415
|
+
continue
|
1416
|
+
|
1417
|
+
case S.ATTRIB_VALUE_UNQUOTED:
|
1418
|
+
if (not(attribEnd, c)) {
|
1419
|
+
if (c === '&') {
|
1420
|
+
parser.state = S.ATTRIB_VALUE_ENTITY_U
|
1421
|
+
} else {
|
1422
|
+
parser.attribValue += c
|
1423
|
+
}
|
1424
|
+
continue
|
1425
|
+
}
|
1426
|
+
attrib(parser)
|
1427
|
+
if (c === '>') {
|
1428
|
+
openTag(parser)
|
1429
|
+
} else {
|
1430
|
+
parser.state = S.ATTRIB
|
1431
|
+
}
|
1432
|
+
continue
|
1433
|
+
|
1434
|
+
case S.CLOSE_TAG:
|
1435
|
+
if (!parser.tagName) {
|
1436
|
+
if (is(whitespace, c)) {
|
1437
|
+
continue
|
1438
|
+
} else if (not(nameStart, c)) {
|
1439
|
+
if (parser.script) {
|
1440
|
+
parser.script += '</' + c
|
1441
|
+
parser.state = S.SCRIPT
|
1442
|
+
} else {
|
1443
|
+
strictFail(parser, 'Invalid tagname in closing tag.')
|
1444
|
+
}
|
1445
|
+
} else {
|
1446
|
+
parser.tagName = c
|
1447
|
+
}
|
1448
|
+
} else if (c === '>') {
|
1449
|
+
closeTag(parser)
|
1450
|
+
} else if (is(nameBody, c)) {
|
1451
|
+
parser.tagName += c
|
1452
|
+
} else if (parser.script) {
|
1453
|
+
parser.script += '</' + parser.tagName
|
1454
|
+
parser.tagName = ''
|
1455
|
+
parser.state = S.SCRIPT
|
1456
|
+
} else {
|
1457
|
+
if (not(whitespace, c)) {
|
1458
|
+
strictFail(parser, 'Invalid tagname in closing tag')
|
1459
|
+
}
|
1460
|
+
parser.state = S.CLOSE_TAG_SAW_WHITE
|
1461
|
+
}
|
1462
|
+
continue
|
1463
|
+
|
1464
|
+
case S.CLOSE_TAG_SAW_WHITE:
|
1465
|
+
if (is(whitespace, c)) {
|
1466
|
+
continue
|
1467
|
+
}
|
1468
|
+
if (c === '>') {
|
1469
|
+
closeTag(parser)
|
1470
|
+
} else {
|
1471
|
+
strictFail(parser, 'Invalid characters in closing tag')
|
1472
|
+
}
|
1473
|
+
continue
|
1474
|
+
|
1475
|
+
case S.TEXT_ENTITY:
|
1476
|
+
case S.ATTRIB_VALUE_ENTITY_Q:
|
1477
|
+
case S.ATTRIB_VALUE_ENTITY_U:
|
1478
|
+
var returnState
|
1479
|
+
var buffer
|
1480
|
+
switch (parser.state) {
|
1481
|
+
case S.TEXT_ENTITY:
|
1482
|
+
returnState = S.TEXT
|
1483
|
+
buffer = 'textNode'
|
1484
|
+
break
|
1485
|
+
|
1486
|
+
case S.ATTRIB_VALUE_ENTITY_Q:
|
1487
|
+
returnState = S.ATTRIB_VALUE_QUOTED
|
1488
|
+
buffer = 'attribValue'
|
1489
|
+
break
|
1490
|
+
|
1491
|
+
case S.ATTRIB_VALUE_ENTITY_U:
|
1492
|
+
returnState = S.ATTRIB_VALUE_UNQUOTED
|
1493
|
+
buffer = 'attribValue'
|
1494
|
+
break
|
1495
|
+
}
|
1496
|
+
|
1497
|
+
if (c === ';') {
|
1498
|
+
parser[buffer] += parseEntity(parser)
|
1499
|
+
parser.entity = ''
|
1500
|
+
parser.state = returnState
|
1501
|
+
} else if (is(parser.entity.length ? entityBody : entityStart, c)) {
|
1502
|
+
parser.entity += c
|
1503
|
+
} else {
|
1504
|
+
strictFail(parser, 'Invalid character in entity name')
|
1505
|
+
parser[buffer] += '&' + parser.entity + c
|
1506
|
+
parser.entity = ''
|
1507
|
+
parser.state = returnState
|
1508
|
+
}
|
1509
|
+
|
1510
|
+
continue
|
1511
|
+
|
1512
|
+
default:
|
1513
|
+
throw new Error(parser, 'Unknown state: ' + parser.state)
|
1514
|
+
}
|
1515
|
+
} // while
|
1516
|
+
|
1517
|
+
if (parser.position >= parser.bufferCheckPosition) {
|
1518
|
+
checkBufferLength(parser)
|
1519
|
+
}
|
1520
|
+
return parser
|
1521
|
+
}
|
1522
|
+
|
1523
|
+
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
|
1524
|
+
if (!String.fromCodePoint) {
|
1525
|
+
(function () {
|
1526
|
+
var stringFromCharCode = String.fromCharCode
|
1527
|
+
var floor = Math.floor
|
1528
|
+
var fromCodePoint = function () {
|
1529
|
+
var MAX_SIZE = 0x4000
|
1530
|
+
var codeUnits = []
|
1531
|
+
var highSurrogate
|
1532
|
+
var lowSurrogate
|
1533
|
+
var index = -1
|
1534
|
+
var length = arguments.length
|
1535
|
+
if (!length) {
|
1536
|
+
return ''
|
1537
|
+
}
|
1538
|
+
var result = ''
|
1539
|
+
while (++index < length) {
|
1540
|
+
var codePoint = Number(arguments[index])
|
1541
|
+
if (
|
1542
|
+
!isFinite(codePoint) || // `NaN`, `+Infinity`, or `-Infinity`
|
1543
|
+
codePoint < 0 || // not a valid Unicode code point
|
1544
|
+
codePoint > 0x10FFFF || // not a valid Unicode code point
|
1545
|
+
floor(codePoint) !== codePoint // not an integer
|
1546
|
+
) {
|
1547
|
+
throw RangeError('Invalid code point: ' + codePoint)
|
1548
|
+
}
|
1549
|
+
if (codePoint <= 0xFFFF) { // BMP code point
|
1550
|
+
codeUnits.push(codePoint)
|
1551
|
+
} else { // Astral code point; split in surrogate halves
|
1552
|
+
// http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
|
1553
|
+
codePoint -= 0x10000
|
1554
|
+
highSurrogate = (codePoint >> 10) + 0xD800
|
1555
|
+
lowSurrogate = (codePoint % 0x400) + 0xDC00
|
1556
|
+
codeUnits.push(highSurrogate, lowSurrogate)
|
1557
|
+
}
|
1558
|
+
if (index + 1 === length || codeUnits.length > MAX_SIZE) {
|
1559
|
+
result += stringFromCharCode.apply(null, codeUnits)
|
1560
|
+
codeUnits.length = 0
|
1561
|
+
}
|
1562
|
+
}
|
1563
|
+
return result
|
1564
|
+
}
|
1565
|
+
if (Object.defineProperty) {
|
1566
|
+
Object.defineProperty(String, 'fromCodePoint', {
|
1567
|
+
value: fromCodePoint,
|
1568
|
+
configurable: true,
|
1569
|
+
writable: true
|
1570
|
+
})
|
1571
|
+
} else {
|
1572
|
+
String.fromCodePoint = fromCodePoint
|
1573
|
+
}
|
1574
|
+
}())
|
1575
|
+
}
|
1576
|
+
})(typeof exports === 'undefined' ? this.sax = {} : exports)
|