/* * The MIT License (MIT) * Copyright (C) 2016-2019 by Roman Dvornov * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ // Project page: https://github.com/csstree/csstree /* eslint-disable no-cond-assign */ /* eslint-disable no-unused-vars */ /* eslint-disable no-redeclare */ /* global singlefile csstree module define window global self require */ this.singlefile.lib.vendor.cssTree = this.singlefile.lib.vendor.cssTree || (() => { (function (f) { if (typeof exports === "object" && typeof module !== "undefined") { module.exports = f(); } else if (typeof define === "function" && define.amd) { define([], f); } else { var g; if (typeof window !== "undefined") { g = window; } else if (typeof global !== "undefined") { g = global; } else if (typeof self !== "undefined") { g = self; } else { g = this; } g.csstree = f(); } })(function () { var define, module, exports; return (function () { function r(e, n, t) { function o(i, f) { if (!n[i]) { if (!e[i]) { var c = "function" == typeof require && require; if (!f && c) return c(i, !0); if (u) return u(i, !0); var a = new Error("Cannot find module '" + i + "'"); throw a.code = "MODULE_NOT_FOUND", a; } var p = n[i] = { exports: {} }; e[i][0].call(p.exports, function (r) { var n = e[i][1][r]; return o(n || r); }, p, p.exports, r, e, n, t); } return n[i].exports; } for (var u = "function" == typeof require && require, i = 0; i < t.length; i++)o(t[i]); return o; } return r; })()({ 1: [function (require, module, exports) { module.exports = { "generic": true, "types": { "absolute-size": "xx-small | x-small | small | medium | large | x-large | xx-large", "alpha-value": " | ", "angle-percentage": " | ", "angular-color-hint": "", "angular-color-stop": " && ?", "angular-color-stop-list": "[ [, ]? ]# , ", "animateable-feature": "scroll-position | contents | ", "attachment": "scroll | fixed | local", "attr()": "attr( ? [, ]? )", "attr-matcher": "[ '~' | '|' | '^' | '$' | '*' ]? '='", "attr-modifier": "i | s", "attribute-selector": "'[' ']' | '[' [ | ] ? ']'", "auto-repeat": "repeat( [ auto-fill | auto-fit ] , [ ? ]+ ? )", "auto-track-list": "[ ? [ | ] ]* ? [ ? [ | ] ]* ?", "baseline-position": "[ first | last ]? baseline", "basic-shape": " | | | ", "bg-image": "none | ", "bg-layer": " || [ / ]? || || || || ", "bg-position": "[ [ left | center | right | top | bottom | ] | [ left | center | right | ] [ top | center | bottom | ] | [ center | [ left | right ] ? ] && [ center | [ top | bottom ] ? ] ]", "bg-size": "[ | auto ]{1,2} | cover | contain", "blur()": "blur( )", "blend-mode": "normal | multiply | screen | overlay | darken | lighten | color-dodge | color-burn | hard-light | soft-light | difference | exclusion | hue | saturation | color | luminosity", "box": "border-box | padding-box | content-box", "brightness()": "brightness( )", "calc()": "calc( )", "calc-sum": " [ [ '+' | '-' ] ]*", "calc-product": " [ '*' | '/' ]*", "calc-value": " | | | ( )", "cf-final-image": " | ", "cf-mixing-image": "? && ", "circle()": "circle( [ ]? [ at ]? )", "clamp()": "clamp( #{3} )", "class-selector": "'.' ", "clip-source": "", "color": " | | | | | | currentcolor | ", "color-stop": " | ", "color-stop-angle": "{1,2}", "color-stop-length": "{1,2}", "color-stop-list": "[ [, ]? ]# , ", "combinator": "'>' | '+' | '~' | [ '||' ]", "common-lig-values": "[ common-ligatures | no-common-ligatures ]", "compat": "searchfield | textarea | push-button | button-bevel | slider-horizontal | checkbox | radio | square-button | menulist | menulist-button | listbox | meter | progress-bar", "composite-style": "clear | copy | source-over | source-in | source-out | source-atop | destination-over | destination-in | destination-out | destination-atop | xor", "compositing-operator": "add | subtract | intersect | exclude", "compound-selector": "[ ? * [ * ]* ]!", "compound-selector-list": "#", "complex-selector": " [ ? ]*", "complex-selector-list": "#", "conic-gradient()": "conic-gradient( [ from ]? [ at ]? , )", "contextual-alt-values": "[ contextual | no-contextual ]", "content-distribution": "space-between | space-around | space-evenly | stretch", "content-list": "[ | contents | | | | counter( , <'list-style-type'>? ) ]+", "content-position": "center | start | end | flex-start | flex-end", "content-replacement": "", "contrast()": "contrast( [ ] )", "counter()": "counter( , [ | none ]? )", "counter-style": " | symbols( )", "counter-style-name": "", "counters()": "counters( , , [ | none ]? )", "cross-fade()": "cross-fade( , ? )", "cubic-bezier-timing-function": "ease | ease-in | ease-out | ease-in-out | cubic-bezier( , , , )", "deprecated-system-color": "ActiveBorder | ActiveCaption | AppWorkspace | Background | ButtonFace | ButtonHighlight | ButtonShadow | ButtonText | CaptionText | GrayText | Highlight | HighlightText | InactiveBorder | InactiveCaption | InactiveCaptionText | InfoBackground | InfoText | Menu | MenuText | Scrollbar | ThreeDDarkShadow | ThreeDFace | ThreeDHighlight | ThreeDLightShadow | ThreeDShadow | Window | WindowFrame | WindowText", "discretionary-lig-values": "[ discretionary-ligatures | no-discretionary-ligatures ]", "display-box": "contents | none", "display-inside": "flow | flow-root | table | flex | grid | ruby", "display-internal": "table-row-group | table-header-group | table-footer-group | table-row | table-cell | table-column-group | table-column | table-caption | ruby-base | ruby-text | ruby-base-container | ruby-text-container", "display-legacy": "inline-block | inline-list-item | inline-table | inline-flex | inline-grid", "display-listitem": "? && [ flow | flow-root ]? && list-item", "display-outside": "block | inline | run-in", "drop-shadow()": "drop-shadow( {2,3} ? )", "east-asian-variant-values": "[ jis78 | jis83 | jis90 | jis04 | simplified | traditional ]", "east-asian-width-values": "[ full-width | proportional-width ]", "element()": "element( )", "ellipse()": "ellipse( [ {2} ]? [ at ]? )", "ending-shape": "circle | ellipse", "env()": "env( , ? )", "explicit-track-list": "[ ? ]+ ?", "family-name": " | +", "feature-tag-value": " [ | on | off ]?", "feature-type": "@stylistic | @historical-forms | @styleset | @character-variant | @swash | @ornaments | @annotation", "feature-value-block": " '{' '}'", "feature-value-block-list": "+", "feature-value-declaration": " : + ;", "feature-value-declaration-list": "", "feature-value-name": "", "fill-rule": "nonzero | evenodd", "filter-function": " | | | | | | | | | ", "filter-function-list": "[ | ]+", "final-bg-layer": "<'background-color'> || || [ / ]? || || || || ", "fit-content()": "fit-content( [ | ] )", "fixed-breadth": "", "fixed-repeat": "repeat( [ ] , [ ? ]+ ? )", "fixed-size": " | minmax( , ) | minmax( , )", "font-stretch-absolute": "normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded | ", "font-variant-css21": "[ normal | small-caps ]", "font-weight-absolute": "normal | bold | ", "frequency-percentage": " | ", "general-enclosed": "[ ) ] | ( )", "generic-family": "serif | sans-serif | cursive | fantasy | monospace | -apple-system", "generic-name": "serif | sans-serif | cursive | fantasy | monospace", "geometry-box": " | fill-box | stroke-box | view-box", "gradient": " | | | | | <-legacy-gradient>", "grayscale()": "grayscale( )", "grid-line": "auto | | [ && ? ] | [ span && [ || ] ]", "historical-lig-values": "[ historical-ligatures | no-historical-ligatures ]", "hsl()": "hsl( [ / ]? ) | hsl( , , , ? )", "hsla()": "hsla( [ / ]? ) | hsla( , , , ? )", "hue": " | ", "hue-rotate()": "hue-rotate( )", "image": " | | | | | ", "image()": "image( ? [ ? , ? ]! )", "image-set()": "image-set( # )", "image-set-option": "[ | ] ", "image-src": " | ", "image-tags": "ltr | rtl", "inflexible-breadth": " | | min-content | max-content | auto", "inset()": "inset( {1,4} [ round <'border-radius'> ]? )", "invert()": "invert( )", "keyframes-name": " | ", "keyframe-block": "# { }", "keyframe-block-list": "+", "keyframe-selector": "from | to | ", "leader()": "leader( )", "leader-type": "dotted | solid | space | ", "length-percentage": " | ", "line-names": "'[' * ']'", "line-name-list": "[ | ]+", "line-style": "none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset", "line-width": " | thin | medium | thick", "linear-color-hint": "", "linear-color-stop": " ?", "linear-gradient()": "linear-gradient( [ | to ]? , )", "mask-layer": " || [ / ]? || || || [ | no-clip ] || || ", "mask-position": "[ | left | center | right ] [ | top | center | bottom ]?", "mask-reference": "none | | ", "mask-source": "", "masking-mode": "alpha | luminance | match-source", "matrix()": "matrix( #{6} )", "matrix3d()": "matrix3d( #{16} )", "max()": "max( # )", "media-and": " [ and ]+", "media-condition": " | | | ", "media-condition-without-or": " | | ", "media-feature": "( [ | | ] )", "media-in-parens": "( ) | | ", "media-not": "not ", "media-or": " [ or ]+", "media-query": " | [ not | only ]? [ and ]?", "media-query-list": "#", "media-type": "", "mf-boolean": "", "mf-name": "", "mf-plain": " : ", "mf-range": " [ '<' | '>' ]? '='? | [ '<' | '>' ]? '='? | '<' '='? '<' '='? | '>' '='? '>' '='? ", "mf-value": " | | | ", "min()": "min( # )", "minmax()": "minmax( [ | | | min-content | max-content | auto ] , [ | | | min-content | max-content | auto ] )", "named-color": "transparent | aliceblue | antiquewhite | aqua | aquamarine | azure | beige | bisque | black | blanchedalmond | blue | blueviolet | brown | burlywood | cadetblue | chartreuse | chocolate | coral | cornflowerblue | cornsilk | crimson | cyan | darkblue | darkcyan | darkgoldenrod | darkgray | darkgreen | darkgrey | darkkhaki | darkmagenta | darkolivegreen | darkorange | darkorchid | darkred | darksalmon | darkseagreen | darkslateblue | darkslategray | darkslategrey | darkturquoise | darkviolet | deeppink | deepskyblue | dimgray | dimgrey | dodgerblue | firebrick | floralwhite | forestgreen | fuchsia | gainsboro | ghostwhite | gold | goldenrod | gray | green | greenyellow | grey | honeydew | hotpink | indianred | indigo | ivory | khaki | lavender | lavenderblush | lawngreen | lemonchiffon | lightblue | lightcoral | lightcyan | lightgoldenrodyellow | lightgray | lightgreen | lightgrey | lightpink | lightsalmon | lightseagreen | lightskyblue | lightslategray | lightslategrey | lightsteelblue | lightyellow | lime | limegreen | linen | magenta | maroon | mediumaquamarine | mediumblue | mediumorchid | mediumpurple | mediumseagreen | mediumslateblue | mediumspringgreen | mediumturquoise | mediumvioletred | midnightblue | mintcream | mistyrose | moccasin | navajowhite | navy | oldlace | olive | olivedrab | orange | orangered | orchid | palegoldenrod | palegreen | paleturquoise | palevioletred | papayawhip | peachpuff | peru | pink | plum | powderblue | purple | rebeccapurple | red | rosybrown | royalblue | saddlebrown | salmon | sandybrown | seagreen | seashell | sienna | silver | skyblue | slateblue | slategray | slategrey | snow | springgreen | steelblue | tan | teal | thistle | tomato | turquoise | violet | wheat | white | whitesmoke | yellow | yellowgreen | <-non-standard-color>", "namespace-prefix": "", "ns-prefix": "[ | '*' ]? '|'", "number-percentage": " | ", "numeric-figure-values": "[ lining-nums | oldstyle-nums ]", "numeric-fraction-values": "[ diagonal-fractions | stacked-fractions ]", "numeric-spacing-values": "[ proportional-nums | tabular-nums ]", "nth": " | even | odd", "opacity()": "opacity( [ ] )", "overflow-position": "unsafe | safe", "outline-radius": " | ", "page-body": "? [ ; ]? | ", "page-margin-box": " '{' '}'", "page-margin-box-type": "@top-left-corner | @top-left | @top-center | @top-right | @top-right-corner | @bottom-left-corner | @bottom-left | @bottom-center | @bottom-right | @bottom-right-corner | @left-top | @left-middle | @left-bottom | @right-top | @right-middle | @right-bottom", "page-selector-list": "[ # ]?", "page-selector": "+ | *", "perspective()": "perspective( )", "polygon()": "polygon( ? , [ ]# )", "position": "[ [ left | center | right ] || [ top | center | bottom ] | [ left | center | right | ] [ top | center | bottom | ]? | [ [ left | right ] ] && [ [ top | bottom ] ] ]", "pseudo-class-selector": "':' | ':' ')'", "pseudo-element-selector": "':' ", "pseudo-page": ": [ left | right | first | blank ]", "quote": "open-quote | close-quote | no-open-quote | no-close-quote", "radial-gradient()": "radial-gradient( [ || ]? [ at ]? , )", "relative-selector": "? ", "relative-selector-list": "#", "relative-size": "larger | smaller", "repeat-style": "repeat-x | repeat-y | [ repeat | space | round | no-repeat ]{1,2}", "repeating-linear-gradient()": "repeating-linear-gradient( [ | to ]? , )", "repeating-radial-gradient()": "repeating-radial-gradient( [ || ]? [ at ]? , )", "rgb()": "rgb( {3} [ / ]? ) | rgb( {3} [ / ]? ) | rgb( #{3} , ? ) | rgb( #{3} , ? )", "rgba()": "rgba( {3} [ / ]? ) | rgba( {3} [ / ]? ) | rgba( #{3} , ? ) | rgba( #{3} , ? )", "rotate()": "rotate( [ | ] )", "rotate3d()": "rotate3d( , , , [ | ] )", "rotateX()": "rotateX( [ | ] )", "rotateY()": "rotateY( [ | ] )", "rotateZ()": "rotateZ( [ | ] )", "saturate()": "saturate( )", "scale()": "scale( , ? )", "scale3d()": "scale3d( , , )", "scaleX()": "scaleX( )", "scaleY()": "scaleY( )", "scaleZ()": "scaleZ( )", "self-position": "center | start | end | self-start | self-end | flex-start | flex-end", "shape-radius": " | closest-side | farthest-side", "skew()": "skew( [ | ] , [ | ]? )", "skewX()": "skewX( [ | ] )", "skewY()": "skewY( [ | ] )", "sepia()": "sepia( )", "shadow": "inset? && {2,4} && ?", "shadow-t": "[ {2,3} && ? ]", "shape": "rect( , , , ) | rect( )", "shape-box": " | margin-box", "side-or-corner": "[ left | right ] || [ top | bottom ]", "single-animation": "