@processmaker/screen-builder 3.8.3 → 3.8.4

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.
@@ -353,7 +353,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
353
353
  }`},"keyframe-block-list":{syntax:"<keyframe-block>+"},"keyframe-selector":{syntax:"from | to | <percentage>"},"leader()":{syntax:"leader( <leader-type> )"},"leader-type":{syntax:"dotted | solid | space | <string>"},"length-percentage":{syntax:"<length> | <percentage>"},"line-names":{syntax:"'[' <custom-ident>* ']'"},"line-name-list":{syntax:"[ <line-names> | <name-repeat> ]+"},"line-style":{syntax:"none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset"},"line-width":{syntax:"<length> | thin | medium | thick"},"linear-color-hint":{syntax:"<length-percentage>"},"linear-color-stop":{syntax:"<color> <color-stop-length>?"},"linear-gradient()":{syntax:"linear-gradient( [ <angle> | to <side-or-corner> ]? , <color-stop-list> )"},"mask-layer":{syntax:"<mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> || <geometry-box> || [ <geometry-box> | no-clip ] || <compositing-operator> || <masking-mode>"},"mask-position":{syntax:"[ <length-percentage> | left | center | right ] [ <length-percentage> | top | center | bottom ]?"},"mask-reference":{syntax:"none | <image> | <mask-source>"},"mask-source":{syntax:"<url>"},"masking-mode":{syntax:"alpha | luminance | match-source"},"matrix()":{syntax:"matrix( <number>#{6} )"},"matrix3d()":{syntax:"matrix3d( <number>#{16} )"},"max()":{syntax:"max( <calc-sum># )"},"media-and":{syntax:"<media-in-parens> [ and <media-in-parens> ]+"},"media-condition":{syntax:"<media-not> | <media-and> | <media-or> | <media-in-parens>"},"media-condition-without-or":{syntax:"<media-not> | <media-and> | <media-in-parens>"},"media-feature":{syntax:"( [ <mf-plain> | <mf-boolean> | <mf-range> ] )"},"media-in-parens":{syntax:"( <media-condition> ) | <media-feature> | <general-enclosed>"},"media-not":{syntax:"not <media-in-parens>"},"media-or":{syntax:"<media-in-parens> [ or <media-in-parens> ]+"},"media-query":{syntax:"<media-condition> | [ not | only ]? <media-type> [ and <media-condition-without-or> ]?"},"media-query-list":{syntax:"<media-query>#"},"media-type":{syntax:"<ident>"},"mf-boolean":{syntax:"<mf-name>"},"mf-name":{syntax:"<ident>"},"mf-plain":{syntax:"<mf-name> : <mf-value>"},"mf-range":{syntax:`<mf-name> [ '<' | '>' ]? '='? <mf-value>
354
354
  | <mf-value> [ '<' | '>' ]? '='? <mf-name>
355
355
  | <mf-value> '<' '='? <mf-name> '<' '='? <mf-value>
356
- | <mf-value> '>' '='? <mf-name> '>' '='? <mf-value>`},"mf-value":{syntax:"<number> | <dimension> | <ident> | <ratio>"},"min()":{syntax:"min( <calc-sum># )"},"minmax()":{syntax:"minmax( [ <length> | <percentage> | min-content | max-content | auto ] , [ <length> | <percentage> | <flex> | min-content | max-content | auto ] )"},"named-color":{syntax:"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"},"namespace-prefix":{syntax:"<ident>"},"ns-prefix":{syntax:"[ <ident-token> | '*' ]? '|'"},"number-percentage":{syntax:"<number> | <percentage>"},"numeric-figure-values":{syntax:"[ lining-nums | oldstyle-nums ]"},"numeric-fraction-values":{syntax:"[ diagonal-fractions | stacked-fractions ]"},"numeric-spacing-values":{syntax:"[ proportional-nums | tabular-nums ]"},nth:{syntax:"<an-plus-b> | even | odd"},"opacity()":{syntax:"opacity( [ <number-percentage> ] )"},"overflow-position":{syntax:"unsafe | safe"},"outline-radius":{syntax:"<length> | <percentage>"},"page-body":{syntax:"<declaration>? [ ; <page-body> ]? | <page-margin-box> <page-body>"},"page-margin-box":{syntax:"<page-margin-box-type> '{' <declaration-list> '}'"},"page-margin-box-type":{syntax:"@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":{syntax:"[ <page-selector># ]?"},"page-selector":{syntax:"<pseudo-page>+ | <ident> <pseudo-page>*"},"path()":{syntax:"path( [ <fill-rule>, ]? <string> )"},"paint()":{syntax:"paint( <ident>, <declaration-value>? )"},"perspective()":{syntax:"perspective( <length> )"},"polygon()":{syntax:"polygon( <fill-rule>? , [ <length-percentage> <length-percentage> ]# )"},position:{syntax:"[ [ left | center | right ] || [ top | center | bottom ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]? | [ [ left | right ] <length-percentage> ] && [ [ top | bottom ] <length-percentage> ] ]"},"pseudo-class-selector":{syntax:"':' <ident-token> | ':' <function-token> <any-value> ')'"},"pseudo-element-selector":{syntax:"':' <pseudo-class-selector>"},"pseudo-page":{syntax:": [ left | right | first | blank ]"},quote:{syntax:"open-quote | close-quote | no-open-quote | no-close-quote"},"radial-gradient()":{syntax:"radial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list> )"},"relative-selector":{syntax:"<combinator>? <complex-selector>"},"relative-selector-list":{syntax:"<relative-selector>#"},"relative-size":{syntax:"larger | smaller"},"repeat-style":{syntax:"repeat-x | repeat-y | [ repeat | space | round | no-repeat ]{1,2}"},"repeating-linear-gradient()":{syntax:"repeating-linear-gradient( [ <angle> | to <side-or-corner> ]? , <color-stop-list> )"},"repeating-radial-gradient()":{syntax:"repeating-radial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list> )"},"rgb()":{syntax:"rgb( <percentage>{3} [ / <alpha-value> ]? ) | rgb( <number>{3} [ / <alpha-value> ]? ) | rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? )"},"rgba()":{syntax:"rgba( <percentage>{3} [ / <alpha-value> ]? ) | rgba( <number>{3} [ / <alpha-value> ]? ) | rgba( <percentage>#{3} , <alpha-value>? ) | rgba( <number>#{3} , <alpha-value>? )"},"rotate()":{syntax:"rotate( [ <angle> | <zero> ] )"},"rotate3d()":{syntax:"rotate3d( <number> , <number> , <number> , [ <angle> | <zero> ] )"},"rotateX()":{syntax:"rotateX( [ <angle> | <zero> ] )"},"rotateY()":{syntax:"rotateY( [ <angle> | <zero> ] )"},"rotateZ()":{syntax:"rotateZ( [ <angle> | <zero> ] )"},"saturate()":{syntax:"saturate( <number-percentage> )"},"scale()":{syntax:"scale( <number> , <number>? )"},"scale3d()":{syntax:"scale3d( <number> , <number> , <number> )"},"scaleX()":{syntax:"scaleX( <number> )"},"scaleY()":{syntax:"scaleY( <number> )"},"scaleZ()":{syntax:"scaleZ( <number> )"},"self-position":{syntax:"center | start | end | self-start | self-end | flex-start | flex-end"},"shape-radius":{syntax:"<length-percentage> | closest-side | farthest-side"},"skew()":{syntax:"skew( [ <angle> | <zero> ] , [ <angle> | <zero> ]? )"},"skewX()":{syntax:"skewX( [ <angle> | <zero> ] )"},"skewY()":{syntax:"skewY( [ <angle> | <zero> ] )"},"sepia()":{syntax:"sepia( <number-percentage> )"},shadow:{syntax:"inset? && <length>{2,4} && <color>?"},"shadow-t":{syntax:"[ <length>{2,3} && <color>? ]"},shape:{syntax:"rect(<top>, <right>, <bottom>, <left>)"},"shape-box":{syntax:"<box> | margin-box"},"side-or-corner":{syntax:"[ left | right ] || [ top | bottom ]"},"single-animation":{syntax:"<time> || <timing-function> || <time> || <single-animation-iteration-count> || <single-animation-direction> || <single-animation-fill-mode> || <single-animation-play-state> || [ none | <keyframes-name> ]"},"single-animation-direction":{syntax:"normal | reverse | alternate | alternate-reverse"},"single-animation-fill-mode":{syntax:"none | forwards | backwards | both"},"single-animation-iteration-count":{syntax:"infinite | <number>"},"single-animation-play-state":{syntax:"running | paused"},"single-transition":{syntax:"[ none | <single-transition-property> ] || <time> || <timing-function> || <time>"},"single-transition-property":{syntax:"all | <custom-ident>"},size:{syntax:"closest-side | farthest-side | closest-corner | farthest-corner | <length> | <length-percentage>{2}"},"step-position":{syntax:"jump-start | jump-end | jump-none | jump-both | start | end"},"step-timing-function":{syntax:"step-start | step-end | steps(<integer>[, <step-position>]?)"},"subclass-selector":{syntax:"<id-selector> | <class-selector> | <attribute-selector> | <pseudo-class-selector>"},"supports-condition":{syntax:"not <supports-in-parens> | <supports-in-parens> [ and <supports-in-parens> ]* | <supports-in-parens> [ or <supports-in-parens> ]*"},"supports-in-parens":{syntax:"( <supports-condition> ) | <supports-feature> | <general-enclosed>"},"supports-feature":{syntax:"<supports-decl> | <supports-selector-fn>"},"supports-decl":{syntax:"( <declaration> )"},"supports-selector-fn":{syntax:"selector( <complex-selector> )"},symbol:{syntax:"<string> | <image> | <custom-ident>"},target:{syntax:"<target-counter()> | <target-counters()> | <target-text()>"},"target-counter()":{syntax:"target-counter( [ <string> | <url> ] , <custom-ident> , <counter-style>? )"},"target-counters()":{syntax:"target-counters( [ <string> | <url> ] , <custom-ident> , <string> , <counter-style>? )"},"target-text()":{syntax:"target-text( [ <string> | <url> ] , [ content | before | after | first-letter ]? )"},"time-percentage":{syntax:"<time> | <percentage>"},"timing-function":{syntax:"linear | <cubic-bezier-timing-function> | <step-timing-function>"},"track-breadth":{syntax:"<length-percentage> | <flex> | min-content | max-content | auto"},"track-list":{syntax:"[ <line-names>? [ <track-size> | <track-repeat> ] ]+ <line-names>?"},"track-repeat":{syntax:"repeat( [ <positive-integer> ] , [ <line-names>? <track-size> ]+ <line-names>? )"},"track-size":{syntax:"<track-breadth> | minmax( <inflexible-breadth> , <track-breadth> ) | fit-content( [ <length> | <percentage> ] )"},"transform-function":{syntax:"<matrix()> | <translate()> | <translateX()> | <translateY()> | <scale()> | <scaleX()> | <scaleY()> | <rotate()> | <skew()> | <skewX()> | <skewY()> | <matrix3d()> | <translate3d()> | <translateZ()> | <scale3d()> | <scaleZ()> | <rotate3d()> | <rotateX()> | <rotateY()> | <rotateZ()> | <perspective()>"},"transform-list":{syntax:"<transform-function>+"},"translate()":{syntax:"translate( <length-percentage> , <length-percentage>? )"},"translate3d()":{syntax:"translate3d( <length-percentage> , <length-percentage> , <length> )"},"translateX()":{syntax:"translateX( <length-percentage> )"},"translateY()":{syntax:"translateY( <length-percentage> )"},"translateZ()":{syntax:"translateZ( <length> )"},"type-or-unit":{syntax:"string | color | url | integer | number | length | angle | time | frequency | cap | ch | em | ex | ic | lh | rlh | rem | vb | vi | vw | vh | vmin | vmax | mm | Q | cm | in | pt | pc | px | deg | grad | rad | turn | ms | s | Hz | kHz | %"},"type-selector":{syntax:"<wq-name> | <ns-prefix>? '*'"},"var()":{syntax:"var( <custom-property-name> , <declaration-value>? )"},"viewport-length":{syntax:"auto | <length-percentage>"},"wq-name":{syntax:"<ns-prefix>? <ident-token>"}},_q={atrules:{charset:{prelude:"<string>"},"font-face":{descriptors:{"unicode-range":{comment:"replaces <unicode-range>, an old production name",syntax:"<urange>#"}}}},properties:{"-moz-background-clip":{comment:"deprecated syntax in old Firefox, https://developer.mozilla.org/en/docs/Web/CSS/background-clip",syntax:"padding | border"},"-moz-border-radius-bottomleft":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-left-radius",syntax:"<'border-bottom-left-radius'>"},"-moz-border-radius-bottomright":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius",syntax:"<'border-bottom-right-radius'>"},"-moz-border-radius-topleft":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-left-radius",syntax:"<'border-top-left-radius'>"},"-moz-border-radius-topright":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius",syntax:"<'border-bottom-right-radius'>"},"-moz-control-character-visibility":{comment:"firefox specific keywords, https://bugzilla.mozilla.org/show_bug.cgi?id=947588",syntax:"visible | hidden"},"-moz-osx-font-smoothing":{comment:"misssed old syntax https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth",syntax:"auto | grayscale"},"-moz-user-select":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/user-select",syntax:"none | text | all | -moz-none"},"-ms-flex-align":{comment:"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-align",syntax:"start | end | center | baseline | stretch"},"-ms-flex-item-align":{comment:"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-align",syntax:"auto | start | end | center | baseline | stretch"},"-ms-flex-line-pack":{comment:"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-line-pack",syntax:"start | end | center | justify | distribute | stretch"},"-ms-flex-negative":{comment:"misssed old syntax implemented in IE; TODO: find references for comfirmation",syntax:"<'flex-shrink'>"},"-ms-flex-pack":{comment:"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-pack",syntax:"start | end | center | justify | distribute"},"-ms-flex-order":{comment:"misssed old syntax implemented in IE; https://msdn.microsoft.com/en-us/library/jj127303(v=vs.85).aspx",syntax:"<integer>"},"-ms-flex-positive":{comment:"misssed old syntax implemented in IE; TODO: find references for comfirmation",syntax:"<'flex-grow'>"},"-ms-flex-preferred-size":{comment:"misssed old syntax implemented in IE; TODO: find references for comfirmation",syntax:"<'flex-basis'>"},"-ms-interpolation-mode":{comment:"https://msdn.microsoft.com/en-us/library/ff521095(v=vs.85).aspx",syntax:"nearest-neighbor | bicubic"},"-ms-grid-column-align":{comment:"add this property first since it uses as fallback for flexbox, https://msdn.microsoft.com/en-us/library/windows/apps/hh466338.aspx",syntax:"start | end | center | stretch"},"-ms-grid-row-align":{comment:"add this property first since it uses as fallback for flexbox, https://msdn.microsoft.com/en-us/library/windows/apps/hh466348.aspx",syntax:"start | end | center | stretch"},"-ms-hyphenate-limit-last":{comment:"misssed old syntax implemented in IE; https://www.w3.org/TR/css-text-4/#hyphenate-line-limits",syntax:"none | always | column | page | spread"},"-webkit-appearance":{comment:"webkit specific keywords",references:["http://css-infos.net/property/-webkit-appearance"],syntax:"none | button | button-bevel | caps-lock-indicator | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbargripper-horizontal | scrollbargripper-vertical | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | -apple-pay-button"},"-webkit-background-clip":{comment:"https://developer.mozilla.org/en/docs/Web/CSS/background-clip",syntax:"[ <box> | border | padding | content | text ]#"},"-webkit-column-break-after":{comment:"added, http://help.dottoro.com/lcrthhhv.php",syntax:"always | auto | avoid"},"-webkit-column-break-before":{comment:"added, http://help.dottoro.com/lcxquvkf.php",syntax:"always | auto | avoid"},"-webkit-column-break-inside":{comment:"added, http://help.dottoro.com/lclhnthl.php",syntax:"always | auto | avoid"},"-webkit-font-smoothing":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth",syntax:"auto | none | antialiased | subpixel-antialiased"},"-webkit-mask-box-image":{comment:"missed; https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-mask-box-image",syntax:"[ <url> | <gradient> | none ] [ <length-percentage>{4} <-webkit-mask-box-repeat>{2} ]?"},"-webkit-print-color-adjust":{comment:"missed",references:["https://developer.mozilla.org/en/docs/Web/CSS/-webkit-print-color-adjust"],syntax:"economy | exact"},"-webkit-text-security":{comment:"missed; http://help.dottoro.com/lcbkewgt.php",syntax:"none | circle | disc | square"},"-webkit-user-drag":{comment:"missed; http://help.dottoro.com/lcbixvwm.php",syntax:"none | element | auto"},"-webkit-user-select":{comment:"auto is supported by old webkit, https://developer.mozilla.org/en-US/docs/Web/CSS/user-select",syntax:"auto | none | text | all"},"alignment-baseline":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#AlignmentBaselineProperty"],syntax:"auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical"},"baseline-shift":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#BaselineShiftProperty"],syntax:"baseline | sub | super | <svg-length>"},behavior:{comment:"added old IE property https://msdn.microsoft.com/en-us/library/ms530723(v=vs.85).aspx",syntax:"<url>+"},"clip-rule":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/masking.html#ClipRuleProperty"],syntax:"nonzero | evenodd"},cue:{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<'cue-before'> <'cue-after'>?"},"cue-after":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<url> <decibel>? | none"},"cue-before":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<url> <decibel>? | none"},cursor:{comment:"added legacy keywords: hand, -webkit-grab. -webkit-grabbing, -webkit-zoom-in, -webkit-zoom-out, -moz-grab, -moz-grabbing, -moz-zoom-in, -moz-zoom-out",references:["https://www.sitepoint.com/css3-cursor-styles/"],syntax:"[ [ <url> [ <x> <y> ]? , ]* [ auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | grab | grabbing | hand | -webkit-grab | -webkit-grabbing | -webkit-zoom-in | -webkit-zoom-out | -moz-grab | -moz-grabbing | -moz-zoom-in | -moz-zoom-out ] ]"},display:{comment:"extended with -ms-flexbox",syntax:"| <-non-standard-display>"},position:{comment:"extended with -webkit-sticky",syntax:"| -webkit-sticky"},"dominant-baseline":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#DominantBaselineProperty"],syntax:"auto | use-script | no-change | reset-size | ideographic | alphabetic | hanging | mathematical | central | middle | text-after-edge | text-before-edge"},"image-rendering":{comment:"extended with <-non-standard-image-rendering>, added SVG keywords optimizeSpeed and optimizeQuality",references:["https://developer.mozilla.org/en/docs/Web/CSS/image-rendering","https://www.w3.org/TR/SVG/painting.html#ImageRenderingProperty"],syntax:"| optimizeSpeed | optimizeQuality | <-non-standard-image-rendering>"},fill:{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#FillProperty"],syntax:"<paint>"},"fill-opacity":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#FillProperty"],syntax:"<number-zero-one>"},"fill-rule":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#FillProperty"],syntax:"nonzero | evenodd"},filter:{comment:"extend with IE legacy syntaxes",syntax:"| <-ms-filter-function-list>"},"glyph-orientation-horizontal":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#GlyphOrientationHorizontalProperty"],syntax:"<angle>"},"glyph-orientation-vertical":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#GlyphOrientationVerticalProperty"],syntax:"<angle>"},kerning:{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#KerningProperty"],syntax:"auto | <svg-length>"},"letter-spacing":{comment:"fix syntax <length> -> <length-percentage>",references:["https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/letter-spacing"],syntax:"normal | <length-percentage>"},marker:{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],syntax:"none | <url>"},"marker-end":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],syntax:"none | <url>"},"marker-mid":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],syntax:"none | <url>"},"marker-start":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],syntax:"none | <url>"},"max-width":{comment:"fix auto -> none (https://github.com/mdn/data/pull/431); extend by non-standard width keywords https://developer.mozilla.org/en-US/docs/Web/CSS/max-width",syntax:"none | <length-percentage> | min-content | max-content | fit-content(<length-percentage>) | <-non-standard-width>"},width:{comment:"per spec fit-content should be a function, however browsers are supporting it as a keyword (https://github.com/csstree/stylelint-validator/issues/29)",syntax:"| fit-content | -moz-fit-content | -webkit-fit-content"},"min-width":{comment:"extend by non-standard width keywords https://developer.mozilla.org/en-US/docs/Web/CSS/width",syntax:"auto | <length-percentage> | min-content | max-content | fit-content(<length-percentage>) | <-non-standard-width>"},overflow:{comment:"extend by vendor keywords https://developer.mozilla.org/en-US/docs/Web/CSS/overflow",syntax:"| <-non-standard-overflow>"},pause:{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<'pause-before'> <'pause-after'>?"},"pause-after":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<time> | none | x-weak | weak | medium | strong | x-strong"},"pause-before":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<time> | none | x-weak | weak | medium | strong | x-strong"},rest:{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<'rest-before'> <'rest-after'>?"},"rest-after":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<time> | none | x-weak | weak | medium | strong | x-strong"},"rest-before":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<time> | none | x-weak | weak | medium | strong | x-strong"},"shape-rendering":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#ShapeRenderingPropert"],syntax:"auto | optimizeSpeed | crispEdges | geometricPrecision"},src:{comment:"added @font-face's src property https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/src",syntax:"[ <url> [ format( <string># ) ]? | local( <family-name> ) ]#"},speak:{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"auto | none | normal"},"speak-as":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"normal | spell-out || digits || [ literal-punctuation | no-punctuation ]"},stroke:{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<paint>"},"stroke-dasharray":{comment:"added SVG property; a list of comma and/or white space separated <length>s and <percentage>s",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"none | [ <svg-length>+ ]#"},"stroke-dashoffset":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<svg-length>"},"stroke-linecap":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"butt | round | square"},"stroke-linejoin":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"miter | round | bevel"},"stroke-miterlimit":{comment:"added SVG property (<miterlimit> = <number-one-or-greater>) ",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<number-one-or-greater>"},"stroke-opacity":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<number-zero-one>"},"stroke-width":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<svg-length>"},"text-anchor":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#TextAlignmentProperties"],syntax:"start | middle | end"},"unicode-bidi":{comment:"added prefixed keywords https://developer.mozilla.org/en-US/docs/Web/CSS/unicode-bidi",syntax:"| -moz-isolate | -moz-isolate-override | -moz-plaintext | -webkit-isolate | -webkit-isolate-override | -webkit-plaintext"},"unicode-range":{comment:"added missed property https://developer.mozilla.org/en-US/docs/Web/CSS/%40font-face/unicode-range",syntax:"<urange>#"},"voice-balance":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<number> | left | center | right | leftwards | rightwards"},"voice-duration":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"auto | <time>"},"voice-family":{comment:"<name> -> <family-name>, https://www.w3.org/TR/css3-speech/#property-index",syntax:"[ [ <family-name> | <generic-voice> ] , ]* [ <family-name> | <generic-voice> ] | preserve"},"voice-pitch":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<frequency> && absolute | [ [ x-low | low | medium | high | x-high ] || [ <frequency> | <semitones> | <percentage> ] ]"},"voice-range":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<frequency> && absolute | [ [ x-low | low | medium | high | x-high ] || [ <frequency> | <semitones> | <percentage> ] ]"},"voice-rate":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"[ normal | x-slow | slow | medium | fast | x-fast ] || <percentage>"},"voice-stress":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"normal | strong | moderate | none | reduced"},"voice-volume":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"silent | [ [ x-soft | soft | medium | loud | x-loud ] || <decibel> ]"},"writing-mode":{comment:"extend with SVG keywords",syntax:"| <svg-writing-mode>"}},syntaxes:{"-legacy-gradient":{comment:"added collection of legacy gradient syntaxes",syntax:"<-webkit-gradient()> | <-legacy-linear-gradient> | <-legacy-repeating-linear-gradient> | <-legacy-radial-gradient> | <-legacy-repeating-radial-gradient>"},"-legacy-linear-gradient":{comment:"like standard syntax but w/o `to` keyword https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient",syntax:"-moz-linear-gradient( <-legacy-linear-gradient-arguments> ) | -webkit-linear-gradient( <-legacy-linear-gradient-arguments> ) | -o-linear-gradient( <-legacy-linear-gradient-arguments> )"},"-legacy-repeating-linear-gradient":{comment:"like standard syntax but w/o `to` keyword https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient",syntax:"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> ) | -webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> ) | -o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )"},"-legacy-linear-gradient-arguments":{comment:"like standard syntax but w/o `to` keyword https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient",syntax:"[ <angle> | <side-or-corner> ]? , <color-stop-list>"},"-legacy-radial-gradient":{comment:"deprecated syntax that implemented by some browsers https://www.w3.org/TR/2011/WD-css3-images-20110908/#radial-gradients",syntax:"-moz-radial-gradient( <-legacy-radial-gradient-arguments> ) | -webkit-radial-gradient( <-legacy-radial-gradient-arguments> ) | -o-radial-gradient( <-legacy-radial-gradient-arguments> )"},"-legacy-repeating-radial-gradient":{comment:"deprecated syntax that implemented by some browsers https://www.w3.org/TR/2011/WD-css3-images-20110908/#radial-gradients",syntax:"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> ) | -webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> ) | -o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )"},"-legacy-radial-gradient-arguments":{comment:"deprecated syntax that implemented by some browsers https://www.w3.org/TR/2011/WD-css3-images-20110908/#radial-gradients",syntax:"[ <position> , ]? [ [ [ <-legacy-radial-gradient-shape> || <-legacy-radial-gradient-size> ] | [ <length> | <percentage> ]{2} ] , ]? <color-stop-list>"},"-legacy-radial-gradient-size":{comment:"before a standard it contains 2 extra keywords (`contain` and `cover`) https://www.w3.org/TR/2011/WD-css3-images-20110908/#ltsize",syntax:"closest-side | closest-corner | farthest-side | farthest-corner | contain | cover"},"-legacy-radial-gradient-shape":{comment:"define to double sure it doesn't extends in future https://www.w3.org/TR/2011/WD-css3-images-20110908/#ltshape",syntax:"circle | ellipse"},"-non-standard-font":{comment:"non standard fonts",references:["https://webkit.org/blog/3709/using-the-system-font-in-web-content/"],syntax:"-apple-system-body | -apple-system-headline | -apple-system-subheadline | -apple-system-caption1 | -apple-system-caption2 | -apple-system-footnote | -apple-system-short-body | -apple-system-short-headline | -apple-system-short-subheadline | -apple-system-short-caption1 | -apple-system-short-footnote | -apple-system-tall-body"},"-non-standard-color":{comment:"non standard colors",references:["http://cssdot.ru/%D0%A1%D0%BF%D1%80%D0%B0%D0%B2%D0%BE%D1%87%D0%BD%D0%B8%D0%BA_CSS/color-i305.html","https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Mozilla_Color_Preference_Extensions"],syntax:"-moz-ButtonDefault | -moz-ButtonHoverFace | -moz-ButtonHoverText | -moz-CellHighlight | -moz-CellHighlightText | -moz-Combobox | -moz-ComboboxText | -moz-Dialog | -moz-DialogText | -moz-dragtargetzone | -moz-EvenTreeRow | -moz-Field | -moz-FieldText | -moz-html-CellHighlight | -moz-html-CellHighlightText | -moz-mac-accentdarkestshadow | -moz-mac-accentdarkshadow | -moz-mac-accentface | -moz-mac-accentlightesthighlight | -moz-mac-accentlightshadow | -moz-mac-accentregularhighlight | -moz-mac-accentregularshadow | -moz-mac-chrome-active | -moz-mac-chrome-inactive | -moz-mac-focusring | -moz-mac-menuselect | -moz-mac-menushadow | -moz-mac-menutextselect | -moz-MenuHover | -moz-MenuHoverText | -moz-MenuBarText | -moz-MenuBarHoverText | -moz-nativehyperlinktext | -moz-OddTreeRow | -moz-win-communicationstext | -moz-win-mediatext | -moz-activehyperlinktext | -moz-default-background-color | -moz-default-color | -moz-hyperlinktext | -moz-visitedhyperlinktext | -webkit-activelink | -webkit-focus-ring-color | -webkit-link | -webkit-text"},"-non-standard-image-rendering":{comment:"non-standard keywords http://phrogz.net/tmp/canvas_image_zoom.html",syntax:"optimize-contrast | -moz-crisp-edges | -o-crisp-edges | -webkit-optimize-contrast"},"-non-standard-overflow":{comment:"non-standard keywords https://developer.mozilla.org/en-US/docs/Web/CSS/overflow",syntax:"-moz-scrollbars-none | -moz-scrollbars-horizontal | -moz-scrollbars-vertical | -moz-hidden-unscrollable"},"-non-standard-width":{comment:"non-standard keywords https://developer.mozilla.org/en-US/docs/Web/CSS/width",syntax:"fill-available | min-intrinsic | intrinsic | -moz-available | -moz-fit-content | -moz-min-content | -moz-max-content | -webkit-min-content | -webkit-max-content"},"-webkit-gradient()":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/ - TODO: simplify when after match algorithm improvement ( [, point, radius | , point] -> [, radius]? , point )",syntax:"-webkit-gradient( <-webkit-gradient-type>, <-webkit-gradient-point> [, <-webkit-gradient-point> | , <-webkit-gradient-radius>, <-webkit-gradient-point> ] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )"},"-webkit-gradient-color-stop":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/",syntax:"from( <color> ) | color-stop( [ <number-zero-one> | <percentage> ] , <color> ) | to( <color> )"},"-webkit-gradient-point":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/",syntax:"[ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]"},"-webkit-gradient-radius":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/",syntax:"<length> | <percentage>"},"-webkit-gradient-type":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/",syntax:"linear | radial"},"-webkit-mask-box-repeat":{comment:"missed; https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-mask-box-image",syntax:"repeat | stretch | round"},"-webkit-mask-clip-style":{comment:"missed; there is no enough information about `-webkit-mask-clip` property, but looks like all those keywords are working",syntax:"border | border-box | padding | padding-box | content | content-box | text"},"-ms-filter-function-list":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter",syntax:"<-ms-filter-function>+"},"-ms-filter-function":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter",syntax:"<-ms-filter-function-progid> | <-ms-filter-function-legacy>"},"-ms-filter-function-progid":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter",syntax:"'progid:' [ <ident-token> '.' ]* [ <ident-token> | <function-token> <any-value>? ) ]"},"-ms-filter-function-legacy":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter",syntax:"<ident-token> | <function-token> <any-value>? )"},"-ms-filter":{syntax:"<string>"},age:{comment:"https://www.w3.org/TR/css3-speech/#voice-family",syntax:"child | young | old"},"attr-name":{syntax:"<wq-name>"},"attr-fallback":{syntax:"<any-value>"},"border-radius":{comment:"missed, https://drafts.csswg.org/css-backgrounds-3/#the-border-radius",syntax:"<length-percentage>{1,2}"},bottom:{comment:"missed; not sure we should add it, but no others except `shape` is using it so it's ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect",syntax:"<length> | auto"},"content-list":{comment:"missed -> https://drafts.csswg.org/css-content/#typedef-content-list (document-url, <target> and leader() is omitted util stabilization)",syntax:"[ <string> | contents | <image> | <quote> | <target> | <leader()> | <attr()> | counter( <ident>, <'list-style-type'>? ) ]+"},"element()":{comment:"https://drafts.csswg.org/css-gcpm/#element-syntax & https://drafts.csswg.org/css-images-4/#element-notation",syntax:"element( <custom-ident> , [ first | start | last | first-except ]? ) | element( <id-selector> )"},"generic-voice":{comment:"https://www.w3.org/TR/css3-speech/#voice-family",syntax:"[ <age>? <gender> <integer>? ]"},gender:{comment:"https://www.w3.org/TR/css3-speech/#voice-family",syntax:"male | female | neutral"},"generic-family":{comment:"added -apple-system",references:["https://webkit.org/blog/3709/using-the-system-font-in-web-content/"],syntax:"| -apple-system"},gradient:{comment:"added legacy syntaxes support",syntax:"| <-legacy-gradient>"},left:{comment:"missed; not sure we should add it, but no others except `shape` is using it so it's ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect",syntax:"<length> | auto"},"mask-image":{comment:"missed; https://drafts.fxtf.org/css-masking-1/#the-mask-image",syntax:"<mask-reference>#"},"name-repeat":{comment:"missed, and looks like obsolete, keep it as is since other property syntaxes should be changed too; https://www.w3.org/TR/2015/WD-css-grid-1-20150917/#typedef-name-repeat",syntax:"repeat( [ <positive-integer> | auto-fill ], <line-names>+)"},"named-color":{comment:"added non standard color names",syntax:"| <-non-standard-color>"},paint:{comment:"used by SVG https://www.w3.org/TR/SVG/painting.html#SpecifyingPaint",syntax:"none | <color> | <url> [ none | <color> ]? | context-fill | context-stroke"},"page-size":{comment:"https://www.w3.org/TR/css-page-3/#typedef-page-size-page-size",syntax:"A5 | A4 | A3 | B5 | B4 | JIS-B5 | JIS-B4 | letter | legal | ledger"},ratio:{comment:"missed, https://drafts.csswg.org/mediaqueries-4/#typedef-ratio",syntax:"<integer> / <integer>"},right:{comment:"missed; not sure we should add it, but no others except `shape` is using it so it's ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect",syntax:"<length> | auto"},shape:{comment:"missed spaces in function body and add backwards compatible syntax",syntax:"rect( <top>, <right>, <bottom>, <left> ) | rect( <top> <right> <bottom> <left> )"},"svg-length":{comment:"All coordinates and lengths in SVG can be specified with or without a unit identifier",references:["https://www.w3.org/TR/SVG11/coords.html#Units"],syntax:"<percentage> | <length> | <number>"},"svg-writing-mode":{comment:"SVG specific keywords (deprecated for CSS)",references:["https://developer.mozilla.org/en/docs/Web/CSS/writing-mode","https://www.w3.org/TR/SVG/text.html#WritingModeProperty"],syntax:"lr-tb | rl-tb | tb-rl | lr | rl | tb"},top:{comment:"missed; not sure we should add it, but no others except `shape` is using it so it's ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect",syntax:"<length> | auto"},"track-group":{comment:"used by old grid-columns and grid-rows syntax v0",syntax:"'(' [ <string>* <track-minmax> <string>* ]+ ')' [ '[' <positive-integer> ']' ]? | <track-minmax>"},"track-list-v0":{comment:"used by old grid-columns and grid-rows syntax v0",syntax:"[ <string>* <track-group> <string>* ]+ | none"},"track-minmax":{comment:"used by old grid-columns and grid-rows syntax v0",syntax:"minmax( <track-breadth> , <track-breadth> ) | auto | <track-breadth> | fit-content"},x:{comment:"missed; not sure we should add it, but no others except `cursor` is using it so it's ok for now; https://drafts.csswg.org/css-ui-3/#cursor",syntax:"<number>"},y:{comment:"missed; not sure we should add it, but no others except `cursor` is using so it's ok for now; https://drafts.csswg.org/css-ui-3/#cursor",syntax:"<number>"},declaration:{comment:"missed, restored by https://drafts.csswg.org/css-syntax",syntax:"<ident-token> : <declaration-value>? [ '!' important ]?"},"declaration-list":{comment:"missed, restored by https://drafts.csswg.org/css-syntax",syntax:"[ <declaration>? ';' ]* <declaration>?"},url:{comment:"https://drafts.csswg.org/css-values-4/#urls",syntax:"url( <string> <url-modifier>* ) | <url-token>"},"url-modifier":{comment:"https://drafts.csswg.org/css-values-4/#typedef-url-modifier",syntax:"<ident> | <function-token> <any-value> )"},"number-zero-one":{syntax:"<number [0,1]>"},"number-one-or-greater":{syntax:"<number [1,∞]>"},"positive-integer":{syntax:"<integer [0,∞]>"},"-non-standard-display":{syntax:"-ms-inline-flexbox | -ms-grid | -ms-inline-grid | -webkit-flex | -webkit-inline-flex | -webkit-box | -webkit-inline-box | -moz-inline-stack | -moz-box | -moz-inline-box"}}},$q=Yq,eW=Zq,tW=Kq,Jf=_q,Nx=/^\s*\|\s*/;function rW(t){const e=Object.create(null);for(const r in t){const i=t[r];let a=null;if(i.descriptors){a=Object.create(null);for(const n in i.descriptors)a[n]=i.descriptors[n].syntax}e[r.substr(1)]={prelude:i.syntax.trim().match(/^@\S+\s+([^;\{]*)/)[1].trim()||null,descriptors:a}}return e}function Uf(t,e){const r={};for(const i in t)r[i]=t[i].syntax||t[i];for(const i in e)i in t?e[i].syntax?r[i]=Nx.test(e[i].syntax)?r[i]+" "+e[i].syntax.trim():e[i].syntax:delete r[i]:e[i].syntax&&(r[i]=e[i].syntax.replace(Nx,""));return r}function Lx(t){const e={};for(const r in t)e[r]=t[r].syntax;return e}function iW(t,e){const r={};for(const i in t){const a=e[i]&&e[i].descriptors||null;r[i]={prelude:i in e&&"prelude"in e[i]?e[i].prelude:t[i].prelude||null,descriptors:t[i].descriptors?Uf(t[i].descriptors,a||{}):a&&Lx(a)}}for(const i in e)hasOwnProperty.call(t,i)||(r[i]={prelude:e[i].prelude||null,descriptors:e[i].descriptors&&Lx(e[i].descriptors)});return r}var aW={types:Uf(tW,Jf.syntaxes),atrules:iW(rW($q),Jf.atrules),properties:Uf(eW,Jf.properties)},Fx=ce.cmpChar,Bx=ce.isDigit,bs=ce.TYPE,Rx=bs.WhiteSpace,Hx=bs.Comment,Gf=bs.Ident,ri=bs.Number,nW=bs.Dimension,jr=43,Vt=45,du=110,Ki=!0,sW=!1;function fu(t,e){var r=this.scanner.tokenStart+t,i=this.scanner.source.charCodeAt(r);for((i===jr||i===Vt)&&(e&&this.error("Number sign is not allowed"),r++);r<this.scanner.tokenEnd;r++)Bx(this.scanner.source.charCodeAt(r))||this.error("Integer is expected",r)}function Ga(t){return fu.call(this,0,t)}function yi(t,e){if(!Fx(this.scanner.source,this.scanner.tokenStart+t,e)){var r="";switch(e){case du:r="N is expected";break;case Vt:r="HyphenMinus is expected";break}this.error(r,this.scanner.tokenStart+t)}}function Qf(){for(var t=0,e=0,r=this.scanner.tokenType;r===Rx||r===Hx;)r=this.scanner.lookupType(++t);if(r!==ri)if(this.scanner.isDelim(jr,t)||this.scanner.isDelim(Vt,t)){e=this.scanner.isDelim(jr,t)?jr:Vt;do r=this.scanner.lookupType(++t);while(r===Rx||r===Hx);r!==ri&&(this.scanner.skip(t),Ga.call(this,Ki))}else return null;return t>0&&this.scanner.skip(t),e===0&&(r=this.scanner.source.charCodeAt(this.scanner.tokenStart),r!==jr&&r!==Vt&&this.error("Number sign is expected")),Ga.call(this,e!==0),e===Vt?"-"+this.consume(ri):this.consume(ri)}var oW={name:"AnPlusB",structure:{a:[String,null],b:[String,null]},parse:function(){var t=this.scanner.tokenStart,e=null,r=null;if(this.scanner.tokenType===ri)Ga.call(this,sW),r=this.consume(ri);else if(this.scanner.tokenType===Gf&&Fx(this.scanner.source,this.scanner.tokenStart,Vt))switch(e="-1",yi.call(this,1,du),this.scanner.getTokenLength()){case 2:this.scanner.next(),r=Qf.call(this);break;case 3:yi.call(this,2,Vt),this.scanner.next(),this.scanner.skipSC(),Ga.call(this,Ki),r="-"+this.consume(ri);break;default:yi.call(this,2,Vt),fu.call(this,3,Ki),this.scanner.next(),r=this.scanner.substrToCursor(t+2)}else if(this.scanner.tokenType===Gf||this.scanner.isDelim(jr)&&this.scanner.lookupType(1)===Gf){var i=0;switch(e="1",this.scanner.isDelim(jr)&&(i=1,this.scanner.next()),yi.call(this,0,du),this.scanner.getTokenLength()){case 1:this.scanner.next(),r=Qf.call(this);break;case 2:yi.call(this,1,Vt),this.scanner.next(),this.scanner.skipSC(),Ga.call(this,Ki),r="-"+this.consume(ri);break;default:yi.call(this,1,Vt),fu.call(this,2,Ki),this.scanner.next(),r=this.scanner.substrToCursor(t+i+1)}}else if(this.scanner.tokenType===nW){for(var a=this.scanner.source.charCodeAt(this.scanner.tokenStart),i=a===jr||a===Vt,n=this.scanner.tokenStart+i;n<this.scanner.tokenEnd&&Bx(this.scanner.source.charCodeAt(n));n++);n===this.scanner.tokenStart+i&&this.error("Integer is expected",this.scanner.tokenStart+i),yi.call(this,n-this.scanner.tokenStart,du),e=this.scanner.source.substring(t,n),n+1===this.scanner.tokenEnd?(this.scanner.next(),r=Qf.call(this)):(yi.call(this,n-this.scanner.tokenStart+1,Vt),n+2===this.scanner.tokenEnd?(this.scanner.next(),this.scanner.skipSC(),Ga.call(this,Ki),r="-"+this.consume(ri)):(fu.call(this,n-this.scanner.tokenStart+2,Ki),this.scanner.next(),r=this.scanner.substrToCursor(n+1)))}else this.error();return e!==null&&e.charCodeAt(0)===jr&&(e=e.substr(1)),r!==null&&r.charCodeAt(0)===jr&&(r=r.substr(1)),{type:"AnPlusB",loc:this.getLocation(t,this.scanner.tokenStart),a:e,b:r}},generate:function(t){var e=t.a!==null&&t.a!==void 0,r=t.b!==null&&t.b!==void 0;e?(this.chunk(t.a==="+1"?"+n":t.a==="1"?"n":t.a==="-1"?"-n":t.a+"n"),r&&(r=String(t.b),r.charAt(0)==="-"||r.charAt(0)==="+"?(this.chunk(r.charAt(0)),this.chunk(r.substr(1))):(this.chunk("+"),this.chunk(r)))):this.chunk(String(t.b))}},lW=ce,pu=lW.TYPE,uW=pu.WhiteSpace,Yf=pu.Semicolon,Vx=pu.LeftCurlyBracket,cW=pu.Delim,dW=33;function fW(){return this.scanner.tokenIndex>0&&this.scanner.lookupType(-1)===uW?this.scanner.tokenIndex>1?this.scanner.getTokenStart(this.scanner.tokenIndex-1):this.scanner.firstCharOffset:this.scanner.tokenStart}function qx(){return 0}function pW(t){return t===Vx?1:0}function hW(t){return t===Vx||t===Yf?1:0}function mW(t,e,r){return t===cW&&e.charCodeAt(r)===dW||t===Yf?1:0}function vW(t){return t===Yf?2:0}var _i={name:"Raw",structure:{value:String},parse:function(t,e,r){var i=this.scanner.getTokenStart(t),a;return this.scanner.skip(this.scanner.getRawLength(t,e||qx)),r&&this.scanner.tokenStart>i?a=fW.call(this):a=this.scanner.tokenStart,{type:"Raw",loc:this.getLocation(i,a),value:this.scanner.source.substring(i,a)}},generate:function(t){this.chunk(t.value)},mode:{default:qx,leftCurlyBracket:pW,leftCurlyBracketOrSemicolon:hW,exclamationMarkOrSemicolon:mW,semicolonIncluded:vW}},hu=ce.TYPE,gW=_i.mode,Wx=hu.AtKeyword,Xx=hu.Semicolon,Zf=hu.LeftCurlyBracket,bW=hu.RightCurlyBracket;function Jx(t){return this.Raw(t,gW.leftCurlyBracketOrSemicolon,!0)}function yW(){for(var t=1,e;e=this.scanner.lookupType(t);t++){if(e===bW)return!0;if(e===Zf||e===Wx)return!1}return!1}var xW={name:"Atrule",structure:{name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]},parse:function(){var t=this.scanner.tokenStart,e,r,i=null,a=null;switch(this.eat(Wx),e=this.scanner.substrToCursor(t+1),r=e.toLowerCase(),this.scanner.skipSC(),this.scanner.eof===!1&&this.scanner.tokenType!==Zf&&this.scanner.tokenType!==Xx&&(this.parseAtrulePrelude?(i=this.parseWithFallback(this.AtrulePrelude.bind(this,e),Jx),i.type==="AtrulePrelude"&&i.children.head===null&&(i=null)):i=Jx.call(this,this.scanner.tokenIndex),this.scanner.skipSC()),this.scanner.tokenType){case Xx:this.scanner.next();break;case Zf:this.atrule.hasOwnProperty(r)&&typeof this.atrule[r].block=="function"?a=this.atrule[r].block.call(this):a=this.Block(yW.call(this));break}return{type:"Atrule",loc:this.getLocation(t,this.scanner.tokenStart),name:e,prelude:i,block:a}},generate:function(t){this.chunk("@"),this.chunk(t.name),t.prelude!==null&&(this.chunk(" "),this.node(t.prelude)),t.block?this.node(t.block):this.chunk(";")},walkContext:"atrule"},Ux=ce.TYPE,wW=Ux.Semicolon,PW=Ux.LeftCurlyBracket,SW={name:"AtrulePrelude",structure:{children:[[]]},parse:function(t){var e=null;return t!==null&&(t=t.toLowerCase()),this.scanner.skipSC(),this.atrule.hasOwnProperty(t)&&typeof this.atrule[t].prelude=="function"?e=this.atrule[t].prelude.call(this):e=this.readSequence(this.scope.AtrulePrelude),this.scanner.skipSC(),this.scanner.eof!==!0&&this.scanner.tokenType!==PW&&this.scanner.tokenType!==wW&&this.error("Semicolon or block is expected"),e===null&&(e=this.createList()),{type:"AtrulePrelude",loc:this.getLocationFromList(e),children:e}},generate:function(t){this.children(t)},walkContext:"atrulePrelude"},ys=ce.TYPE,xs=ys.Ident,CW=ys.String,kW=ys.Colon,TW=ys.LeftSquareBracket,Gx=ys.RightSquareBracket,MW=36,Qx=42,mu=61,DW=94,Kf=124,AW=126;function OW(){this.scanner.eof&&this.error("Unexpected end of input");var t=this.scanner.tokenStart,e=!1,r=!0;return this.scanner.isDelim(Qx)?(e=!0,r=!1,this.scanner.next()):this.scanner.isDelim(Kf)||this.eat(xs),this.scanner.isDelim(Kf)?this.scanner.source.charCodeAt(this.scanner.tokenStart+1)!==mu?(this.scanner.next(),this.eat(xs)):e&&this.error("Identifier is expected",this.scanner.tokenEnd):e&&this.error("Vertical line is expected"),r&&this.scanner.tokenType===kW&&(this.scanner.next(),this.eat(xs)),{type:"Identifier",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t)}}function zW(){var t=this.scanner.tokenStart,e=this.scanner.source.charCodeAt(t);return e!==mu&&e!==AW&&e!==DW&&e!==MW&&e!==Qx&&e!==Kf&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.scanner.next(),e!==mu&&(this.scanner.isDelim(mu)||this.error("Equal sign is expected"),this.scanner.next()),this.scanner.substrToCursor(t)}var EW={name:"AttributeSelector",structure:{name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]},parse:function(){var t=this.scanner.tokenStart,e,r=null,i=null,a=null;return this.eat(TW),this.scanner.skipSC(),e=OW.call(this),this.scanner.skipSC(),this.scanner.tokenType!==Gx&&(this.scanner.tokenType!==xs&&(r=zW.call(this),this.scanner.skipSC(),i=this.scanner.tokenType===CW?this.String():this.Identifier(),this.scanner.skipSC()),this.scanner.tokenType===xs&&(a=this.scanner.getTokenValue(),this.scanner.next(),this.scanner.skipSC())),this.eat(Gx),{type:"AttributeSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:e,matcher:r,value:i,flags:a}},generate:function(t){var e=" ";this.chunk("["),this.node(t.name),t.matcher!==null&&(this.chunk(t.matcher),t.value!==null&&(this.node(t.value),t.value.type==="String"&&(e=""))),t.flags!==null&&(this.chunk(e),this.chunk(t.flags)),this.chunk("]")}},Qa=ce.TYPE,jW=_i.mode,IW=Qa.WhiteSpace,NW=Qa.Comment,Yx=Qa.Semicolon,LW=Qa.AtKeyword,FW=Qa.LeftCurlyBracket,Zx=Qa.RightCurlyBracket;function Kx(t){return this.Raw(t,null,!0)}function BW(){return this.parseWithFallback(this.Rule,Kx)}function _x(t){return this.Raw(t,jW.semicolonIncluded,!0)}function RW(){if(this.scanner.tokenType===Yx)return _x.call(this,this.scanner.tokenIndex);var t=this.parseWithFallback(this.Declaration,_x);return this.scanner.tokenType===Yx&&this.scanner.next(),t}var HW={name:"Block",structure:{children:[["Atrule","Rule","Declaration"]]},parse:function(t){var e=t?RW:BW,r=this.scanner.tokenStart,i=this.createList();this.eat(FW);e:for(;!this.scanner.eof;)switch(this.scanner.tokenType){case Zx:break e;case IW:case NW:this.scanner.next();break;case LW:i.push(this.parseWithFallback(this.Atrule,Kx));break;default:i.push(e.call(this))}return this.scanner.eof||this.eat(Zx),{type:"Block",loc:this.getLocation(r,this.scanner.tokenStart),children:i}},generate:function(t){this.chunk("{"),this.children(t,function(e){e.type==="Declaration"&&this.chunk(";")}),this.chunk("}")},walkContext:"block"},$x=ce.TYPE,VW=$x.LeftSquareBracket,qW=$x.RightSquareBracket,WW={name:"Brackets",structure:{children:[[]]},parse:function(t,e){var r=this.scanner.tokenStart,i=null;return this.eat(VW),i=t.call(this,e),this.scanner.eof||this.eat(qW),{type:"Brackets",loc:this.getLocation(r,this.scanner.tokenStart),children:i}},generate:function(t){this.chunk("["),this.children(t),this.chunk("]")}},XW=ce.TYPE.CDC,JW={name:"CDC",structure:[],parse:function(){var t=this.scanner.tokenStart;return this.eat(XW),{type:"CDC",loc:this.getLocation(t,this.scanner.tokenStart)}},generate:function(){this.chunk("-->")}},UW=ce.TYPE.CDO,GW={name:"CDO",structure:[],parse:function(){var t=this.scanner.tokenStart;return this.eat(UW),{type:"CDO",loc:this.getLocation(t,this.scanner.tokenStart)}},generate:function(){this.chunk("<!--")}},QW=ce.TYPE,YW=QW.Ident,ZW=46,KW={name:"ClassSelector",structure:{name:String},parse:function(){return this.scanner.isDelim(ZW)||this.error("Full stop is expected"),this.scanner.next(),{type:"ClassSelector",loc:this.getLocation(this.scanner.tokenStart-1,this.scanner.tokenEnd),name:this.consume(YW)}},generate:function(t){this.chunk("."),this.chunk(t.name)}},_W=ce.TYPE,$W=_W.Ident,eX=43,ew=47,tX=62,rX=126,iX={name:"Combinator",structure:{name:String},parse:function(){var t=this.scanner.tokenStart,e=this.scanner.source.charCodeAt(this.scanner.tokenStart);switch(e){case tX:case eX:case rX:this.scanner.next();break;case ew:this.scanner.next(),(this.scanner.tokenType!==$W||this.scanner.lookupValue(0,"deep")===!1)&&this.error("Identifier `deep` is expected"),this.scanner.next(),this.scanner.isDelim(ew)||this.error("Solidus is expected"),this.scanner.next();break;default:this.error("Combinator is expected")}return{type:"Combinator",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.name)}},aX=ce.TYPE,nX=aX.Comment,sX=42,oX=47,lX={name:"Comment",structure:{value:String},parse:function(){var t=this.scanner.tokenStart,e=this.scanner.tokenEnd;return this.eat(nX),e-t+2>=2&&this.scanner.source.charCodeAt(e-2)===sX&&this.scanner.source.charCodeAt(e-1)===oX&&(e-=2),{type:"Comment",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.source.substring(t+2,e)}},generate:function(t){this.chunk("/*"),this.chunk(t.value),this.chunk("*/")}},uX=af.isCustomProperty,Ya=ce.TYPE,tw=_i.mode,rw=Ya.Ident,iw=Ya.Hash,cX=Ya.Colon,aw=Ya.Semicolon,nw=Ya.Delim,dX=Ya.WhiteSpace,sw=33,fX=35,pX=36,hX=38,mX=42,vX=43,ow=47;function gX(t){return this.Raw(t,tw.exclamationMarkOrSemicolon,!0)}function bX(t){return this.Raw(t,tw.exclamationMarkOrSemicolon,!1)}function yX(){var t=this.scanner.tokenIndex,e=this.Value();return e.type!=="Raw"&&this.scanner.eof===!1&&this.scanner.tokenType!==aw&&this.scanner.isDelim(sw)===!1&&this.scanner.isBalanceEdge(t)===!1&&this.error(),e}var xX={name:"Declaration",structure:{important:[Boolean,String],property:String,value:["Value","Raw"]},parse:function(){var t=this.scanner.tokenStart,e=this.scanner.tokenIndex,r=wX.call(this),i=uX(r),a=i?this.parseCustomProperty:this.parseValue,n=i?bX:gX,s=!1,o;this.scanner.skipSC(),this.eat(cX);const u=this.scanner.tokenIndex;if(i||this.scanner.skipSC(),a?o=this.parseWithFallback(yX,n):o=n.call(this,this.scanner.tokenIndex),i&&o.type==="Value"&&o.children.isEmpty()){for(let l=u-this.scanner.tokenIndex;l<=0;l++)if(this.scanner.lookupType(l)===dX){o.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.scanner.isDelim(sw)&&(s=PX.call(this),this.scanner.skipSC()),this.scanner.eof===!1&&this.scanner.tokenType!==aw&&this.scanner.isBalanceEdge(e)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.scanner.tokenStart),important:s,property:r,value:o}},generate:function(t){this.chunk(t.property),this.chunk(":"),this.node(t.value),t.important&&this.chunk(t.important===!0?"!important":"!"+t.important)},walkContext:"declaration"};function wX(){var t=this.scanner.tokenStart;if(this.scanner.tokenType===nw)switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case mX:case pX:case vX:case fX:case hX:this.scanner.next();break;case ow:this.scanner.next(),this.scanner.isDelim(ow)&&this.scanner.next();break}return this.scanner.tokenType===iw?this.eat(iw):this.eat(rw),this.scanner.substrToCursor(t)}function PX(){this.eat(nw),this.scanner.skipSC();var t=this.consume(rw);return t==="important"?!0:t}var _f=ce.TYPE,SX=_i.mode,CX=_f.WhiteSpace,kX=_f.Comment,TX=_f.Semicolon;function MX(t){return this.Raw(t,SX.semicolonIncluded,!0)}var DX={name:"DeclarationList",structure:{children:[["Declaration"]]},parse:function(){for(var t=this.createList();!this.scanner.eof;)switch(this.scanner.tokenType){case CX:case kX:case TX:this.scanner.next();break;default:t.push(this.parseWithFallback(this.Declaration,MX))}return{type:"DeclarationList",loc:this.getLocationFromList(t),children:t}},generate:function(t){this.children(t,function(e){e.type==="Declaration"&&this.chunk(";")})}},AX=rs.consumeNumber,OX=ce.TYPE,zX=OX.Dimension,EX={name:"Dimension",structure:{value:String,unit:String},parse:function(){var t=this.scanner.tokenStart,e=AX(this.scanner.source,t);return this.eat(zX),{type:"Dimension",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.source.substring(t,e),unit:this.scanner.source.substring(e,this.scanner.tokenStart)}},generate:function(t){this.chunk(t.value),this.chunk(t.unit)}},jX=ce.TYPE,IX=jX.RightParenthesis,NX={name:"Function",structure:{name:String,children:[[]]},parse:function(t,e){var r=this.scanner.tokenStart,i=this.consumeFunctionName(),a=i.toLowerCase(),n;return n=e.hasOwnProperty(a)?e[a].call(this,e):t.call(this,e),this.scanner.eof||this.eat(IX),{type:"Function",loc:this.getLocation(r,this.scanner.tokenStart),name:i,children:n}},generate:function(t){this.chunk(t.name),this.chunk("("),this.children(t),this.chunk(")")},walkContext:"function"},LX=ce.TYPE,FX=LX.Hash,BX={name:"Hash",structure:{value:String},parse:function(){var t=this.scanner.tokenStart;return this.eat(FX),{type:"Hash",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.substrToCursor(t+1)}},generate:function(t){this.chunk("#"),this.chunk(t.value)}},RX=ce.TYPE,HX=RX.Ident,VX={name:"Identifier",structure:{name:String},parse:function(){return{type:"Identifier",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),name:this.consume(HX)}},generate:function(t){this.chunk(t.name)}},qX=ce.TYPE,WX=qX.Hash,XX={name:"IdSelector",structure:{name:String},parse:function(){var t=this.scanner.tokenStart;return this.eat(WX),{type:"IdSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t+1)}},generate:function(t){this.chunk("#"),this.chunk(t.name)}},$i=ce.TYPE,lw=$i.Ident,JX=$i.Number,UX=$i.Dimension,GX=$i.LeftParenthesis,uw=$i.RightParenthesis,QX=$i.Colon,YX=$i.Delim,ZX={name:"MediaFeature",structure:{name:String,value:["Identifier","Number","Dimension","Ratio",null]},parse:function(){var t=this.scanner.tokenStart,e,r=null;if(this.eat(GX),this.scanner.skipSC(),e=this.consume(lw),this.scanner.skipSC(),this.scanner.tokenType!==uw){switch(this.eat(QX),this.scanner.skipSC(),this.scanner.tokenType){case JX:this.lookupNonWSType(1)===YX?r=this.Ratio():r=this.Number();break;case UX:r=this.Dimension();break;case lw:r=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.scanner.skipSC()}return this.eat(uw),{type:"MediaFeature",loc:this.getLocation(t,this.scanner.tokenStart),name:e,value:r}},generate:function(t){this.chunk("("),this.chunk(t.name),t.value!==null&&(this.chunk(":"),this.node(t.value)),this.chunk(")")}},vu=ce.TYPE,KX=vu.WhiteSpace,_X=vu.Comment,$X=vu.Ident,eJ=vu.LeftParenthesis,tJ={name:"MediaQuery",structure:{children:[["Identifier","MediaFeature","WhiteSpace"]]},parse:function(){this.scanner.skipSC();var t=this.createList(),e=null,r=null;e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case _X:this.scanner.next();continue;case KX:r=this.WhiteSpace();continue;case $X:e=this.Identifier();break;case eJ:e=this.MediaFeature();break;default:break e}r!==null&&(t.push(r),r=null),t.push(e)}return e===null&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(t),children:t}},generate:function(t){this.children(t)}},rJ=ce.TYPE.Comma,iJ={name:"MediaQueryList",structure:{children:[["MediaQuery"]]},parse:function(t){var e=this.createList();for(this.scanner.skipSC();!this.scanner.eof&&(e.push(this.MediaQuery(t)),this.scanner.tokenType===rJ);)this.scanner.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}},generate:function(t){this.children(t,function(){this.chunk(",")})}},aJ={name:"Nth",structure:{nth:["AnPlusB","Identifier"],selector:["SelectorList",null]},parse:function(t){this.scanner.skipSC();var e=this.scanner.tokenStart,r=e,i=null,a;return this.scanner.lookupValue(0,"odd")||this.scanner.lookupValue(0,"even")?a=this.Identifier():a=this.AnPlusB(),this.scanner.skipSC(),t&&this.scanner.lookupValue(0,"of")?(this.scanner.next(),i=this.SelectorList(),this.needPositions&&(r=this.getLastListNode(i.children).loc.end.offset)):this.needPositions&&(r=a.loc.end.offset),{type:"Nth",loc:this.getLocation(e,r),nth:a,selector:i}},generate:function(t){this.node(t.nth),t.selector!==null&&(this.chunk(" of "),this.node(t.selector))}},nJ=ce.TYPE.Number,sJ={name:"Number",structure:{value:String},parse:function(){return{type:"Number",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(nJ)}},generate:function(t){this.chunk(t.value)}},oJ={name:"Operator",structure:{value:String},parse:function(){var t=this.scanner.tokenStart;return this.scanner.next(),{type:"Operator",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.value)}},cw=ce.TYPE,lJ=cw.LeftParenthesis,uJ=cw.RightParenthesis,cJ={name:"Parentheses",structure:{children:[[]]},parse:function(t,e){var r=this.scanner.tokenStart,i=null;return this.eat(lJ),i=t.call(this,e),this.scanner.eof||this.eat(uJ),{type:"Parentheses",loc:this.getLocation(r,this.scanner.tokenStart),children:i}},generate:function(t){this.chunk("("),this.children(t),this.chunk(")")}},dJ=rs.consumeNumber,fJ=ce.TYPE,pJ=fJ.Percentage,hJ={name:"Percentage",structure:{value:String},parse:function(){var t=this.scanner.tokenStart,e=dJ(this.scanner.source,t);return this.eat(pJ),{type:"Percentage",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.source.substring(t,e)}},generate:function(t){this.chunk(t.value),this.chunk("%")}},gu=ce.TYPE,mJ=gu.Ident,vJ=gu.Function,gJ=gu.Colon,bJ=gu.RightParenthesis,yJ={name:"PseudoClassSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var t=this.scanner.tokenStart,e=null,r,i;return this.eat(gJ),this.scanner.tokenType===vJ?(r=this.consumeFunctionName(),i=r.toLowerCase(),this.pseudo.hasOwnProperty(i)?(this.scanner.skipSC(),e=this.pseudo[i].call(this),this.scanner.skipSC()):(e=this.createList(),e.push(this.Raw(this.scanner.tokenIndex,null,!1))),this.eat(bJ)):r=this.consume(mJ),{type:"PseudoClassSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:r,children:e}},generate:function(t){this.chunk(":"),this.chunk(t.name),t.children!==null&&(this.chunk("("),this.children(t),this.chunk(")"))},walkContext:"function"},bu=ce.TYPE,xJ=bu.Ident,wJ=bu.Function,dw=bu.Colon,PJ=bu.RightParenthesis,SJ={name:"PseudoElementSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var t=this.scanner.tokenStart,e=null,r,i;return this.eat(dw),this.eat(dw),this.scanner.tokenType===wJ?(r=this.consumeFunctionName(),i=r.toLowerCase(),this.pseudo.hasOwnProperty(i)?(this.scanner.skipSC(),e=this.pseudo[i].call(this),this.scanner.skipSC()):(e=this.createList(),e.push(this.Raw(this.scanner.tokenIndex,null,!1))),this.eat(PJ)):r=this.consume(xJ),{type:"PseudoElementSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:r,children:e}},generate:function(t){this.chunk("::"),this.chunk(t.name),t.children!==null&&(this.chunk("("),this.children(t),this.chunk(")"))},walkContext:"function"},CJ=ce.isDigit,fw=ce.TYPE,kJ=fw.Number,TJ=fw.Delim,MJ=47,DJ=46;function pw(){this.scanner.skipWS();for(var t=this.consume(kJ),e=0;e<t.length;e++){var r=t.charCodeAt(e);!CJ(r)&&r!==DJ&&this.error("Unsigned number is expected",this.scanner.tokenStart-t.length+e)}return Number(t)===0&&this.error("Zero number is not allowed",this.scanner.tokenStart-t.length),t}var AJ={name:"Ratio",structure:{left:String,right:String},parse:function(){var t=this.scanner.tokenStart,e=pw.call(this),r;return this.scanner.skipWS(),this.scanner.isDelim(MJ)||this.error("Solidus is expected"),this.eat(TJ),r=pw.call(this),{type:"Ratio",loc:this.getLocation(t,this.scanner.tokenStart),left:e,right:r}},generate:function(t){this.chunk(t.left),this.chunk("/"),this.chunk(t.right)}},OJ=ce.TYPE,zJ=_i.mode,EJ=OJ.LeftCurlyBracket;function hw(t){return this.Raw(t,zJ.leftCurlyBracket,!0)}function jJ(){var t=this.SelectorList();return t.type!=="Raw"&&this.scanner.eof===!1&&this.scanner.tokenType!==EJ&&this.error(),t}var IJ={name:"Rule",structure:{prelude:["SelectorList","Raw"],block:["Block"]},parse:function(){var t=this.scanner.tokenIndex,e=this.scanner.tokenStart,r,i;return this.parseRulePrelude?r=this.parseWithFallback(jJ,hw):r=hw.call(this,t),i=this.Block(!0),{type:"Rule",loc:this.getLocation(e,this.scanner.tokenStart),prelude:r,block:i}},generate:function(t){this.node(t.prelude),this.node(t.block)},walkContext:"rule"},NJ={name:"Selector",structure:{children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]},parse:function(){var t=this.readSequence(this.scope.Selector);return this.getFirstListNode(t)===null&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(t),children:t}},generate:function(t){this.children(t)}},LJ=ce.TYPE,FJ=LJ.Comma,BJ={name:"SelectorList",structure:{children:[["Selector","Raw"]]},parse:function(){for(var t=this.createList();!this.scanner.eof;){if(t.push(this.Selector()),this.scanner.tokenType===FJ){this.scanner.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(t),children:t}},generate:function(t){this.children(t,function(){this.chunk(",")})},walkContext:"selector"},RJ=ce.TYPE.String,HJ={name:"String",structure:{value:String},parse:function(){return{type:"String",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(RJ)}},generate:function(t){this.chunk(t.value)}},ws=ce.TYPE,VJ=ws.WhiteSpace,qJ=ws.Comment,WJ=ws.AtKeyword,XJ=ws.CDO,JJ=ws.CDC,UJ=33;function mw(t){return this.Raw(t,null,!1)}var GJ={name:"StyleSheet",structure:{children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]},parse:function(){for(var t=this.scanner.tokenStart,e=this.createList(),r;!this.scanner.eof;){switch(this.scanner.tokenType){case VJ:this.scanner.next();continue;case qJ:if(this.scanner.source.charCodeAt(this.scanner.tokenStart+2)!==UJ){this.scanner.next();continue}r=this.Comment();break;case XJ:r=this.CDO();break;case JJ:r=this.CDC();break;case WJ:r=this.parseWithFallback(this.Atrule,mw);break;default:r=this.parseWithFallback(this.Rule,mw)}e.push(r)}return{type:"StyleSheet",loc:this.getLocation(t,this.scanner.tokenStart),children:e}},generate:function(t){this.children(t)},walkContext:"stylesheet"},QJ=ce.TYPE,YJ=QJ.Ident,ZJ=42,vw=124;function $f(){this.scanner.tokenType!==YJ&&this.scanner.isDelim(ZJ)===!1&&this.error("Identifier or asterisk is expected"),this.scanner.next()}var KJ={name:"TypeSelector",structure:{name:String},parse:function(){var t=this.scanner.tokenStart;return this.scanner.isDelim(vw)?(this.scanner.next(),$f.call(this)):($f.call(this),this.scanner.isDelim(vw)&&(this.scanner.next(),$f.call(this))),{type:"TypeSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.name)}},_J=ce.isHexDigit,gw=ce.cmpChar,ep=ce.TYPE,$J=ce.NAME,eU=ep.Ident,bw=ep.Number,yw=ep.Dimension,yu=43,xw=45,tp=63,tU=117;function Ps(t,e){for(var r=this.scanner.tokenStart+t,i=0;r<this.scanner.tokenEnd;r++){var a=this.scanner.source.charCodeAt(r);if(a===xw&&e&&i!==0)return Ps.call(this,t+i+1,!1)===0&&this.error(),-1;_J(a)||this.error(e&&i!==0?"HyphenMinus"+(i<6?" or hex digit":"")+" is expected":i<6?"Hex digit is expected":"Unexpected input",r),++i>6&&this.error("Too many hex digits",r)}return this.scanner.next(),i}function xu(t){for(var e=0;this.scanner.isDelim(tp);)++e>t&&this.error("Too many question marks"),this.scanner.next()}function rp(t){this.scanner.source.charCodeAt(this.scanner.tokenStart)!==t&&this.error($J[t]+" is expected")}function rU(){var t=0;if(this.scanner.isDelim(yu)){if(this.scanner.next(),this.scanner.tokenType===eU){t=Ps.call(this,0,!0),t>0&&xu.call(this,6-t);return}if(this.scanner.isDelim(tp)){this.scanner.next(),xu.call(this,5);return}this.error("Hex digit or question mark is expected");return}if(this.scanner.tokenType===bw){if(rp.call(this,yu),t=Ps.call(this,1,!0),this.scanner.isDelim(tp)){xu.call(this,6-t);return}if(this.scanner.tokenType===yw||this.scanner.tokenType===bw){rp.call(this,xw),Ps.call(this,1,!1);return}return}if(this.scanner.tokenType===yw){rp.call(this,yu),t=Ps.call(this,1,!0),t>0&&xu.call(this,6-t);return}this.error()}var iU={name:"UnicodeRange",structure:{value:String},parse:function(){var t=this.scanner.tokenStart;return gw(this.scanner.source,t,tU)||this.error("U is expected"),gw(this.scanner.source,t+1,yu)||this.error("Plus sign is expected"),this.scanner.next(),rU.call(this),{type:"UnicodeRange",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.value)}},ww=ce.isWhiteSpace,aU=ce.cmpStr,ip=ce.TYPE,Pw=ip.Function,Sw=ip.Url,nU=ip.RightParenthesis,sU={name:"Url",structure:{value:["String","Raw"]},parse:function(){var t=this.scanner.tokenStart,e;switch(this.scanner.tokenType){case Sw:for(var r=t+4,i=this.scanner.tokenEnd-1;r<i&&ww(this.scanner.source.charCodeAt(r));)r++;for(;r<i&&ww(this.scanner.source.charCodeAt(i-1));)i--;e={type:"Raw",loc:this.getLocation(r,i),value:this.scanner.source.substring(r,i)},this.eat(Sw);break;case Pw:aU(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(Pw),this.scanner.skipSC(),e=this.String(),this.scanner.skipSC(),this.eat(nU);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(t,this.scanner.tokenStart),value:e}},generate:function(t){this.chunk("url"),this.chunk("("),this.node(t.value),this.chunk(")")}},oU={name:"Value",structure:{children:[[]]},parse:function(){var t=this.scanner.tokenStart,e=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(t,this.scanner.tokenStart),children:e}},generate:function(t){this.children(t)}},lU=ce.TYPE.WhiteSpace,uU=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),cU={name:"WhiteSpace",structure:{value:String},parse:function(){return this.eat(lU),uU},generate:function(t){this.chunk(t.value)}},ap={AnPlusB:oW,Atrule:xW,AtrulePrelude:SW,AttributeSelector:EW,Block:HW,Brackets:WW,CDC:JW,CDO:GW,ClassSelector:KW,Combinator:iX,Comment:lX,Declaration:xX,DeclarationList:DX,Dimension:EX,Function:NX,Hash:BX,Identifier:VX,IdSelector:XX,MediaFeature:ZX,MediaQuery:tJ,MediaQueryList:iJ,Nth:aJ,Number:sJ,Operator:oJ,Parentheses:cJ,Percentage:hJ,PseudoClassSelector:yJ,PseudoElementSelector:SJ,Ratio:AJ,Raw:_i,Rule:IJ,Selector:NJ,SelectorList:BJ,String:HJ,StyleSheet:GJ,TypeSelector:KJ,UnicodeRange:iU,Url:sU,Value:oU,WhiteSpace:cU},np=aW,dU={generic:!0,types:np.types,atrules:np.atrules,properties:np.properties,node:ap},Cw=ce.cmpChar,fU=ce.cmpStr,ir=ce.TYPE,pU=ir.Ident,hU=ir.String,mU=ir.Number,vU=ir.Function,gU=ir.Url,bU=ir.Hash,yU=ir.Dimension,xU=ir.Percentage,wU=ir.LeftParenthesis,PU=ir.LeftSquareBracket,SU=ir.Comma,CU=ir.Delim,kU=35,TU=42,kw=43,MU=45,DU=47,AU=117,Tw=function(e){switch(this.scanner.tokenType){case bU:return this.Hash();case SU:return e.space=null,e.ignoreWSAfter=!0,this.Operator();case wU:return this.Parentheses(this.readSequence,e.recognizer);case PU:return this.Brackets(this.readSequence,e.recognizer);case hU:return this.String();case yU:return this.Dimension();case xU:return this.Percentage();case mU:return this.Number();case vU:return fU(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case gU:return this.Url();case pU:return Cw(this.scanner.source,this.scanner.tokenStart,AU)&&Cw(this.scanner.source,this.scanner.tokenStart+1,kw)?this.UnicodeRange():this.Identifier();case CU:var r=this.scanner.source.charCodeAt(this.scanner.tokenStart);if(r===DU||r===TU||r===kw||r===MU)return this.Operator();r===kU&&this.error("Hex or identifier is expected",this.scanner.tokenStart+1);break}},OU={getNode:Tw},xi=ce.TYPE,zU=xi.Delim,EU=xi.Ident,jU=xi.Dimension,IU=xi.Percentage,NU=xi.Number,LU=xi.Hash,Mw=xi.Colon,FU=xi.LeftSquareBracket,BU=35,RU=42,HU=43,VU=47,Dw=46,qU=62,WU=124,XU=126;function JU(t){switch(this.scanner.tokenType){case FU:return this.AttributeSelector();case LU:return this.IdSelector();case Mw:return this.scanner.lookupType(1)===Mw?this.PseudoElementSelector():this.PseudoClassSelector();case EU:return this.TypeSelector();case NU:case IU:return this.Percentage();case jU:this.scanner.source.charCodeAt(this.scanner.tokenStart)===Dw&&this.error("Identifier is expected",this.scanner.tokenStart+1);break;case zU:var e=this.scanner.source.charCodeAt(this.scanner.tokenStart);switch(e){case HU:case qU:case XU:return t.space=null,t.ignoreWSAfter=!0,this.Combinator();case VU:return this.Combinator();case Dw:return this.ClassSelector();case RU:case WU:return this.TypeSelector();case BU:return this.IdSelector()}break}}var UU={getNode:JU},GU=function(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))},Aw=ce.TYPE,QU=_i.mode,YU=Aw.Comma,ZU=Aw.WhiteSpace,KU=function(){var t=this.createList();if(this.scanner.skipSC(),t.push(this.Identifier()),this.scanner.skipSC(),this.scanner.tokenType===YU){t.push(this.Operator());const e=this.scanner.tokenIndex,r=this.parseCustomProperty?this.Value(null):this.Raw(this.scanner.tokenIndex,QU.exclamationMarkOrSemicolon,!1);if(r.type==="Value"&&r.children.isEmpty()){for(let i=e-this.scanner.tokenIndex;i<=0;i++)if(this.scanner.lookupType(i)===ZU){r.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}t.push(r)}return t},_U={getNode:Tw,expression:GU,var:KU},$U={AtrulePrelude:OU,Selector:UU,Value:_U},eG={parse:{prelude:null,block:function(){return this.Block(!0)}}},Ss=ce.TYPE,tG=Ss.String,rG=Ss.Ident,iG=Ss.Url,aG=Ss.Function,nG=Ss.LeftParenthesis,sG={parse:{prelude:function(){var t=this.createList();switch(this.scanner.skipSC(),this.scanner.tokenType){case tG:t.push(this.String());break;case iG:case aG:t.push(this.Url());break;default:this.error("String or url() is expected")}return(this.lookupNonWSType(0)===rG||this.lookupNonWSType(0)===nG)&&(t.push(this.WhiteSpace()),t.push(this.MediaQueryList())),t},block:null}},oG={parse:{prelude:function(){return this.createSingleNodeList(this.MediaQueryList())},block:function(){return this.Block(!1)}}},lG={parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}}},Za=ce.TYPE,uG=Za.WhiteSpace,cG=Za.Comment,Ow=Za.Ident,dG=Za.Function,fG=Za.Colon,pG=Za.LeftParenthesis;function hG(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))}function mG(){return this.scanner.skipSC(),this.scanner.tokenType===Ow&&this.lookupNonWSType(1)===fG?this.createSingleNodeList(this.Declaration()):zw.call(this)}function zw(){var t=this.createList(),e=null,r;this.scanner.skipSC();e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case uG:e=this.WhiteSpace();continue;case cG:this.scanner.next();continue;case dG:r=this.Function(hG,this.scope.AtrulePrelude);break;case Ow:r=this.Identifier();break;case pG:r=this.Parentheses(mG,this.scope.AtrulePrelude);break;default:break e}e!==null&&(t.push(e),e=null),t.push(r)}return t}var vG={parse:{prelude:function(){var t=zw.call(this);return this.getFirstListNode(t)===null&&this.error("Condition is expected"),t},block:function(){return this.Block(!1)}}},gG={"font-face":eG,import:sG,media:oG,page:lG,supports:vG},bG={parse:function(){return this.createSingleNodeList(this.Identifier())}},yG={parse:function(){return this.createSingleNodeList(this.SelectorList())}},xG={parse:function(){return this.createSingleNodeList(this.Identifier())}},Ew={parse:function(){return this.createSingleNodeList(this.SelectorList())}},wG=Ew,PG=Ew,SG=!0,jw={parse:function(){return this.createSingleNodeList(this.Nth(SG))}},CG=jw,kG=jw,TG=!1,Iw={parse:function(){return this.createSingleNodeList(this.Nth(TG))}},MG=Iw,DG=Iw,AG={parse:function(){return this.createSingleNodeList(this.Selector())}},OG={dir:bG,has:yG,lang:xG,matches:wG,not:PG,"nth-child":CG,"nth-last-child":kG,"nth-last-of-type":MG,"nth-of-type":DG,slotted:AG},zG={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude:function(t){return this.AtrulePrelude(t.atrule?String(t.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block:function(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},scope:$U,atrule:gG,pseudo:OG,node:ap},EG={node:ap};const jG={name:"css-tree",version:"1.1.3",description:"A tool set for CSS: fast detailed parser (CSS → AST), walker (AST traversal), generator (AST → CSS) and lexer (validation and matching) based on specs and browser implementations",author:"Roman Dvornov <rdvornov@gmail.com> (https://github.com/lahmatiy)",license:"MIT",repository:"csstree/csstree",keywords:["css","ast","tokenizer","parser","walker","lexer","generator","utils","syntax","validation"],main:"lib/index.js",unpkg:"dist/csstree.min.js",jsdelivr:"dist/csstree.min.js",scripts:{build:"rollup --config",lint:"eslint data lib scripts test && node scripts/review-syntax-patch --lint && node scripts/update-docs --lint","lint-and-test":"npm run lint && npm test","update:docs":"node scripts/update-docs","review:syntax-patch":"node scripts/review-syntax-patch",test:"mocha --reporter progress",coverage:"nyc npm test",travis:"nyc npm run lint-and-test && npm run coveralls",coveralls:"nyc report --reporter=text-lcov | coveralls",prepublishOnly:"npm run build",hydrogen:"node --trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces --redirect-code-traces-to=code.asm --trace_hydrogen_file=code.cfg --print-opt-code bin/parse --stat -o /dev/null"},dependencies:{"mdn-data":"2.0.14","source-map":"^0.6.1"},devDependencies:{"@rollup/plugin-commonjs":"^11.0.2","@rollup/plugin-json":"^4.0.2","@rollup/plugin-node-resolve":"^7.1.1",coveralls:"^3.0.9",eslint:"^6.8.0","json-to-ast":"^2.1.0",mocha:"^6.2.3",nyc:"^14.1.1",rollup:"^1.32.1","rollup-plugin-terser":"^5.3.0"},engines:{node:">=8.0.0"},files:["data","dist","lib"]};function IG(){for(var t={},e=0;e<arguments.length;e++){var r=arguments[e];for(var i in r)t[i]=r[i]}return t}Xd.exports=jb.create(IG(dU,zG,EG)),Xd.exports.version=jG.version;var NG=Xd.exports,ea=NG,Nw={exports:{}};(function(t){(function(e,r){t.exports?t.exports=r():e.Scrollparent=r()})(Tt,function(){function e(i){var a=getComputedStyle(i,null).getPropertyValue("overflow");return a.indexOf("scroll")>-1||a.indexOf("auto")>-1}function r(i){if(i instanceof HTMLElement||i instanceof SVGElement){for(var a=i.parentNode;a.parentNode;){if(e(a))return a;a=a.parentNode}return document.scrollingElement||document.documentElement}}return r})})(Nw);var LG=Nw.exports;const FG=nr(LG),BG={name:"custom-css-output",render(t){return t("style",this.$slots.default)}},wu=[{code:"AFN",name:"Afghanistan Afghani",format:"####.##",symbol:""},{code:"ALL",name:"Albanian Lek",format:"####.##",symbol:""},{code:"DZD",name:"Algerian Dinar",format:"####.##",symbol:"دج (Arabic) or DA (Latin)"},{code:"AOA",name:"Angolan Kwanza",format:"####.##",symbol:"Kz"},{code:"ARS",name:"Argentine Peso",format:"#.###,##",symbol:""},{code:"AMD",name:"Armenian Dram",format:"#,###.##",symbol:"֏"},{code:"AWG",name:"Aruban Guilder",format:"#,###.##",symbol:""},{code:"AUD",name:"Australian Dollar",format:"# ###.##",symbol:""},{code:"AZN",name:"Azerbaijanian Manat",format:"####.##",symbol:""},{code:"BSD",name:"Bahamian Dollar",format:"#,###.##",symbol:""},{code:"BHD",name:"Bahraini Dinar",format:"#,###.###",symbol:".د.ب (Arabic) or BD (Latin"},{code:"BDT",name:"Bangladesh Taka",format:"#,###.##",symbol:"৳"},{code:"BBD",name:"Barbados Dollar",format:"####.##",symbol:""},{code:"BYN",name:"Belarussian Ruble",format:"####",symbol:""},{code:"BZD",name:"Belize Dollar",format:"#,###.##",symbol:""},{code:"BMD",name:"Bermudian Dollar",format:"#,###.##",symbol:""},{code:"BTN",name:"Bhutan Ngultrum",format:"####.##",symbol:"Nu"},{code:"BOB",name:"Bolivia, Boliviano",format:"#,###.##",symbol:""},{code:"BAM",name:"Bosnia and Herzegovina, Convertible Marks",format:"#,###.##",symbol:""},{code:"BWP",name:"Botswana, Pula",format:"#,###.##",symbol:""},{code:"BRL",name:"Brazilian Real",format:"#.###,##",symbol:""},{code:"BND",name:"Brunei Dollar",format:"#,###.##",symbol:""},{code:"BGN",name:"Bulgarian Lev",format:"####.##",symbol:""},{code:"BIF",name:"Burundi Franc",format:"####",symbol:"FBu"},{code:"KHR",name:"Cambodia, Riel",format:"####.##",symbol:""},{code:"CAD",name:"Canadian Dollar",format:"#,###.##",symbol:""},{code:"CVE",name:"Cape Verde Escudo",format:"####.##",symbol:""},{code:"KYD",name:"Cayman Islands Dollar",format:"#,###.##",symbol:""},{code:"XPF",name:"CFP Franc",format:"####",symbol:"₣"},{code:"CLP",name:"Chilean Peso",format:"#.###",symbol:""},{code:"CNY",name:"China Yuan Renminbi",format:"#,###.##",symbol:""},{code:"COP",name:"Colombian Peso",format:"#.###,##",symbol:""},{code:"KMF",name:"Comoro Franc",format:"####",symbol:"CF"},{code:"CRC",name:"Costa Rican Colon",format:"#.###,##",symbol:""},{code:"HRK",name:"Croatian Kuna",format:"#.###,##",symbol:""},{code:"CUP",name:"Cuban Peso",format:"#,###.##",symbol:""},{code:"CZK",name:"Czech Koruna",format:"#.###,##",symbol:""},{code:"DKK",name:"Danish Krone",format:"#.###,##",symbol:""},{code:"DJF",name:"Djibouti Franc",format:"####",symbol:"Fdj"},{code:"DOP",name:"Dominican Peso",format:"#,###.##",symbol:""},{code:"XCD",name:"East Caribbean Dollar",format:"#,###.##",symbol:""},{code:"EGP",name:"Egyptian Pound",format:"#,###.##",symbol:""},{code:"SVC",name:"El Salvador Colon",format:"#,###.##",symbol:""},{code:"ERN",name:"Eritrea Nakfa",format:"####.##",symbol:"Nkf (Latin script) ናቕፋ (Ge'ez script) ناكفا (Arabic script)"},{code:"ETB",name:"Ethiopian Birr",format:"####.##",symbol:"Br (Latin Script) ብር (Ethiopic Script)"},{code:"EUR",name:"Euro",format:"#,###.##",symbol:""},{code:"FKP",name:"Falkland Islands Pound",format:"####.##",symbol:""},{code:"FJD",name:"Fiji Dollar",format:"####.##",symbol:""},{code:"CDF",name:"Congolais Franc",format:"####.##",symbol:"FC"},{code:"GMD",name:"Gambia Dalasi",format:"####.##",symbol:"D"},{code:"GEL",name:"Georgia Lari",format:"####.##",symbol:"ლ (Lasi) of the Georgian script"},{code:"GHC",name:"Ghana Cedi",format:"#,###.##",symbol:""},{code:"GIP",name:"Gibraltar Pound",format:"#,###.##",symbol:""},{code:"GTQ",name:"Guatemala, Quetzal",format:"#,###.##",symbol:""},{code:"GWP",name:"Guinea-Bissau Peso",format:"####.##",symbol:"$ or COL$"},{code:"GYD",name:"Guyana Dollar",format:"####.##",symbol:""},{code:"HTG",name:"Haitian Gourde",format:"####.##",symbol:"G"},{code:"HNL",name:"Honduran Lempira",format:"#,###.##",symbol:""},{code:"HKD",name:"Hong Kong Dollar",format:"#,###.##",symbol:""},{code:"HUF",name:"Hungary Forint",format:"#.###",symbol:""},{code:"ISK",name:"Iceland Krona",format:"#.###",symbol:""},{code:"INR",name:"Indian Rupee",format:"#,###.##",symbol:"₹"},{code:"IDR",name:"Indonesian Rupiah",format:"#.###,##",symbol:""},{code:"IRR",name:"Iranian Rial",format:"#,###.##",symbol:""},{code:"IQD",name:"Iraqi Dinar",format:"####.###",symbol:"ع.د"},{code:"JMD",name:"Jamaican Dollar",format:"#,###.##",symbol:""},{code:"JPY",name:"Japanese Yen",format:"#,###",symbol:""},{code:"JOD",name:"Jordanian Dinar",format:"#,###.###",symbol:"د.ا"},{code:"KZT",name:"Kazakhstan Tenge",format:"####.##",symbol:""},{code:"KES",name:"Kenyan Shilling",format:"#,###.##",symbol:"KES"},{code:"KWD",name:"Kuwaiti Dinar",format:"#,###.###",symbol:"د.ك or KD"},{code:"KGS",name:"Kyrgyzstan Som",format:"####.##",symbol:""},{code:"LAK",name:"Laos, Kip",format:"####.##",symbol:""},{code:"LVL",name:"Latvian Lats",format:"#,###.##",symbol:"Ls"},{code:"LBP",name:"Lebanese Pound",format:"# ###",symbol:""},{code:"LSL",name:"Lesotho Loti",format:"####.##",symbol:"L (singular) or M (plural)"},{code:"LRD",name:"Liberian Dollar",format:"####.##",symbol:""},{code:"LYD",name:"Libyan Dinar",format:"####.###",symbol:"LD and ل.د"},{code:"LTL",name:"Lithuanian Litas",format:"# ###,##",symbol:"Lt"},{code:"MOP",name:"Macao Pataca",format:"####.##",symbol:"MOP$"},{code:"MKD",name:"Macedonia, Denar",format:"#,###.##",symbol:""},{code:"MGA",name:"Malagasy Ariary",format:"####",symbol:"Ar"},{code:"MWK",name:"Malawi Kwacha",format:"####.##",symbol:"MK"},{code:"MYR",name:"Malaysian Ringgit",format:"#,###.##",symbol:""},{code:"MVR",name:"Maldives Rufiyaa",format:"####.##",symbol:"Rf"},{code:"MTL",name:"Maltese Lira",format:"#,###.##",symbol:"₤ and Lm"},{code:"MRO",name:"Mauritanian Ouguiya",format:"####.##",symbol:"UM"},{code:"MUR",name:"Mauritius Rupee",format:"#,###",symbol:""},{code:"MXN",name:"Mexican Peso",format:"#,###.##",symbol:""},{code:"MDL",name:"Moldovan Leu",format:"####.##",symbol:"L"},{code:"MNT",name:"Mongolian Tugrik",format:"####.##",symbol:""},{code:"MAD",name:"Moroccan Dirham",format:"####.##",symbol:"MAD"},{code:"MZM",name:"Mozambique Metical",format:"#.###,##",symbol:""},{code:"MMK",name:"Myanmar Kyat",format:"####.##",symbol:"K"},{code:"NAD",name:"Namibian Dollar",format:"####.##",symbol:""},{code:"NPR",name:"Nepalese Rupee",format:"#,###.##",symbol:""},{code:"ANG",name:"Netherlands Antillian Guilder",format:"#.###,##",symbol:""},{code:"ILS",name:"New Israeli Shekel",format:"#,###.##",symbol:""},{code:"TWD",name:"New Taiwan Dollar",format:"####.##",symbol:""},{code:"TRY",name:"New Turkish Lira",format:"#,###.##",symbol:"₺"},{code:"NZD",name:"New Zealand Dollar",format:"#,###.##",symbol:""},{code:"NIO",name:"Nicaragua, Cordoba Oro",format:"####.##",symbol:""},{code:"NGN",name:"Nigeria, Naira",format:"#,###.##",symbol:""},{code:"KPW",name:"North Korean Won",format:"####.##",symbol:""},{code:"NOK",name:"Norwegian Krone",format:"#.###,##",symbol:""},{code:"PKR",name:"Pakistan Rupee",format:"#,###.##",symbol:""},{code:"PAB",name:"Panama Balboa",format:"####.##",symbol:""},{code:"PGK",name:"Papua New Guinea Kina",format:"####.##",symbol:"K"},{code:"PYG",name:"Paraguay Guarani",format:"####",symbol:""},{code:"PEN",name:"Peru Nuevo Sol",format:"#,###.##",symbol:""},{code:"UYU",name:"Uruguay Peso",format:"#.###,##",symbol:""},{code:"PHP",name:"Philippine Peso",format:"#,###.##",symbol:""},{code:"PLN",name:"Poland Zloty",format:"# ###,##",symbol:""},{code:"GBP",name:"United Kingdom Pound Sterling",format:"#,###.##",symbol:""},{code:"QAR",name:"Qatari Rial",format:"####.##",symbol:""},{code:"OMR",name:"Rial Omani",format:"#,###.###",symbol:"ر.ع."},{code:"RON",name:"Romania, New Leu",format:"#.###,##",symbol:""},{code:"RUB",name:"Russian Ruble",format:"#.###,##",symbol:""},{code:"RWF",name:"Rwanda Franc",format:"####",symbol:"FRw"},{code:"SHP",name:"Saint Helena Pound",format:"####.##",symbol:""},{code:"WST",name:"Samoa Tala",format:"####.##",symbol:"SAT"},{code:"STN",name:"Sao Tome and Principe Dobra",format:"####.##",symbol:"Db"},{code:"SAR",name:"Saudi Riyal",format:"#,###.##",symbol:""},{code:"RSD",name:"Serbian Dinar",format:"####.##",symbol:""},{code:"SCR",name:"Seychelles Rupee",format:"####.##",symbol:""},{code:"SLL",name:"Sierra Leone Leone",format:"####.##",symbol:"Le"},{code:"SGD",name:"Singapore Dollar",format:"#,###.##",symbol:""},{code:"SKK",name:"Slovak Koruna",format:"# ###,##",symbol:"Sk"},{code:"SIT",name:"Slovenia Tolar",format:"#.###,##",symbol:"SlT"},{code:"SBD",name:"Solomon Islands Dollar",format:"####.##",symbol:""},{code:"SOS",name:"Somali Shilling",format:"####.##",symbol:""},{code:"ZAR",name:"South Africa Rand",format:"# ###.##",symbol:""},{code:"KRW",name:"South Korea Won",format:"#,###",symbol:""},{code:"LKR",name:"Sri Lanka Rupee",format:"####.##",symbol:""},{code:"SDD",name:"Sudanese Dinar",format:"####.##",symbol:"LSd"},{code:"SRD",name:"Surinam Dollar",format:"####.##",symbol:"$"},{code:"SZL",name:"Swaziland Lilangeni",format:"#, ###.##",symbol:"L (singular) or E (plural)"},{code:"SEK",name:"Swedish Krona",format:"# ###,##",symbol:""},{code:"CHF",name:"Swiss Franc",format:"#'###.##",symbol:""},{code:"SYP",name:"Syrian Pound",format:"####.##",symbol:""},{code:"TZS",name:"Tanzanian Shilling",format:"#,###.##",symbol:"TSh"},{code:"THB",name:"Thailand, Baht",format:"#,###.##",symbol:""},{code:"TOP",name:"Tongan Paanga",format:"#,###.##",symbol:"T$"},{code:"TTD",name:"Trinidad and Tobago Dollar",format:"####.##",symbol:""},{code:"TND",name:"Tunisian Dinar",format:"####.###",symbol:"د.ت (Tunisian Arabic) or DT (Latin)"},{code:"TMT",name:"Turkmenistani New Manat",format:"####.##",symbol:"T"},{code:"AED",name:"UAE Dirham",format:"#,###.##",symbol:"د.إ"},{code:"UGX",name:"Uganda Shilling",format:"####.##",symbol:"USh"},{code:"UAH",name:"Ukraine Hryvnia",format:"# ###,##",symbol:""},{code:"CLF",name:"Unidad de Fomento",format:"####.##",symbol:"CLF"},{code:"USD",name:"US Dollar",format:"#,###.##",symbol:"$"},{code:"UZS",name:"Uzbekistan Sum",format:"####.##",symbol:""},{code:"VUV",name:"Vanuatu Vatu",format:"#,###",symbol:"VT"},{code:"VES",name:"Venezuela Bolivares Fuertes",format:"#.###,##",symbol:""},{code:"VND",name:"Viet Nam Dong",format:"#.###",symbol:""},{code:"YER",name:"Yemeni Rial",format:"####.##",symbol:""},{code:"ZMK",name:"Zambian Kwacha",format:"####.##",symbol:"ZK"},{code:"ZWD",name:"Zimbabwe Dollar",format:"# ###.##",symbol:""}],RG=Object.freeze(Object.defineProperty({__proto__:null,default:wu},Symbol.toStringTag,{value:"Module"}));function Lw(t){return t.component!=="FormMultiColumn"?t:t.items.flatMap(Lw)}function HG(t){return t.flatMap(e=>e.items).flatMap(Lw)}Bt.register("custom-same",function(t,e){let r;const i=t;return e.includes(".")?r=e.split(".").reduce((a,n)=>a[n],this.validator.input):r=this.validator._flattenObject(this.validator.input)[e],r===i},"The :attribute and :custom-same fields must match."),Bt.register("after",function(t,e){const r=Cr(t).toISOString(),i=Cr(e).toISOString();return r>i},"The :attribute must be after :after."),Bt.register("after_or_equal",function(t,e){const r=Cr(t).toISOString(),i=Cr(e).toISOString();return r>=i},"The :attribute must be equal or after :after_or_equal."),Bt.register("before",function(t,e){const r=Cr(t).toISOString(),i=Cr(e).toISOString();return r<i},"The :attribute must be before :before."),Bt.register("before_or_equal",function(t,e){const r=Cr(t).toISOString(),i=Cr(e).toISOString();return r<=i},"The :attribute must be equal or before :before_or_equal."),Bt.register("custom_date",function(t){let e="MM/DD/YYYY";return typeof window.ProcessMaker<"u"&&window.ProcessMaker.user&&window.ProcessMaker.user.datetime_format&&(e=window.ProcessMaker.user.datetime_format.replace(/[\sHh:msaAzZ]/g,"")),Cr(t,[e,Cr.ISO_8601],!0).isValid()},"The :attribute must be a valid date.");function VG(t,e){const r={},i={int:"integer",boolean:"boolean",string:"string",datetime:"custom-datetime",date:"custom-date",float:"regex:/^[+-]?\\d+(\\.\\d+)?$/",currency:"regex:/^[+-]?\\d+(\\.\\d+)?$/",array:"array",percentage:"regex:/^[+-]?\\d+(\\.\\d+)?$/",password:"string"};return r.validator=null,r.config=t,r.data=e,r.elements={},r.rules={},r.getDataAndRules=a=>{a.forEach(n=>{if(n){if(Array.isArray(n)&&r.getDataAndRules(n),n.items&&(n.component==="FormLoop"?r.ruleFormLoop(n.config.name,n.items):r.getDataAndRules(n.items)),n.component==="FormNestedScreen"){const s=G.get(window,`nestedScreens.id_${n.config.screen}`);s&&r.getDataAndRules(s)}n.config&&n.config.name&&n.config.validation&&r.addRule(n.config.name,n.config.validation),n.component==="FormInput"&&n.config&&n.config.name&&n.config.dataFormat&&r.addRuleFormat(n.config.name,n.config.dataFormat)}})},r.addRule=(a,n)=>{const s=[];typeof n=="string"?s.push(n):n.forEach(o=>{s.push(o.value)}),r.rules[a]=s},r.addRuleFormat=(a,n)=>{r.rules[a]||(r.rules[a]=[]),r.rules[a].push(i[n])},r.ruleFormLoop=(a,n)=>{n.forEach(s=>{Array.isArray(s)&&r.ruleFormLoop(a,s),s.items&&(s.component==="FormLoop"?r.ruleFormLoop(`${a}.*.${s.config.name}`,s.items):r.ruleFormLoop(a,s.items)),s.config&&s.config.name&&s.config.validation&&(Array.isArray(s.config.validation)&&s.config.validation.forEach(o=>{if(!o.value.includes(":"))return;const u=o.value.split(":")[0];let l=o.value.split(":")[1],c;if(u.includes("required_")||u.includes("same")){if(l.includes("_parent"))l=l.split("_parent.").pop(),c=`${u}:${l}`;else if(!l.includes(","))c=`${u}:${a}.*.${l}`;else{l=l.split(",")[0];const d=o.value.split(":")[1].split(",")[1];c=`${u}:${a}.*.${l},${d}`}o.value=c}}),r.addRule(`${a}.*.${s.config.name}`,s.config.validation)),s.component==="FormInput"&&s.config&&s.config.name&&s.config.dataFormat&&r.addRuleFormat(`${a}.*.${s.config.name}`,s.config.dataFormat)})},r.getValidator=()=>{r.getDataAndRules(r.config),r.validator=new Bt(r.data,r.rules)},r.getErrors=()=>r.failed()?r.validator.errors.errors:{},r.failed=()=>(r.getValidator(),r.validator.fails()),r}const qG={props:["value"],data(){return{display:"running",errorMessage:"",showMessage:!1,variables:[]}},computed:{message(){return this.$t("{{variable}} running.",{variable:this.variables.join(", ")})}},methods:{error(t){this.display="error",this.errorMessage=t},show(t){this.variables.indexOf(t)===-1&&this.variables.push(t),this.display="running",this.errorMessage="",this.showMessage=!1,this.$refs.modal.show()},hide(t){t===-1&&this.variables.splice(0);const e=this.variables.indexOf(t);e>-1&&this.variables.splice(e,1),this.variables.length===0&&this.$refs.modal.hide()}}};var WG=function(){var e=this,r=e._self._c;return r("b-modal",{ref:"modal",attrs:{size:"lg",id:"watchers-synchronous",title:"","hide-header":"","no-close-on-esc":"","hide-header-close":"","no-close-on-backdrop":""}},[e.display==="running"?r("div",{staticClass:"container text-center"},[r("div",{staticClass:"icon-container m-4"},[r("svg",{staticClass:"lds-gear",attrs:{width:"50%",height:"50%",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[r("g",{attrs:{transform:"translate(50 50)"}},[r("g",{attrs:{transform:"rotate(248.825)"}},[r("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0;360",keyTimes:"0;1",dur:"4.7s",repeatCount:"indefinite"}}),r("path",{attrs:{d:"M37.43995192304605 -6.5 L47.43995192304605 -6.5 L47.43995192304605 6.5 L37.43995192304605 6.5 A38 38 0 0 1 35.67394948182593 13.090810836924174 L35.67394948182593 13.090810836924174 L44.33420351967032 18.090810836924174 L37.83420351967032 29.34914108612188 L29.17394948182593 24.34914108612188 A38 38 0 0 1 24.34914108612188 29.17394948182593 L24.34914108612188 29.17394948182593 L29.34914108612188 37.83420351967032 L18.090810836924184 44.33420351967032 L13.090810836924183 35.67394948182593 A38 38 0 0 1 6.5 37.43995192304605 L6.5 37.43995192304605 L6.500000000000001 47.43995192304605 L-6.499999999999995 47.43995192304606 L-6.499999999999996 37.43995192304606 A38 38 0 0 1 -13.09081083692417 35.67394948182593 L-13.09081083692417 35.67394948182593 L-18.09081083692417 44.33420351967032 L-29.34914108612187 37.834203519670325 L-24.349141086121872 29.173949481825936 A38 38 0 0 1 -29.17394948182592 24.34914108612189 L-29.17394948182592 24.34914108612189 L-37.83420351967031 29.349141086121893 L-44.33420351967031 18.0908108369242 L-35.67394948182592 13.090810836924193 A38 38 0 0 1 -37.43995192304605 6.5000000000000036 L-37.43995192304605 6.5000000000000036 L-47.43995192304605 6.500000000000004 L-47.43995192304606 -6.499999999999993 L-37.43995192304606 -6.499999999999994 A38 38 0 0 1 -35.67394948182593 -13.090810836924167 L-35.67394948182593 -13.090810836924167 L-44.33420351967032 -18.090810836924163 L-37.834203519670325 -29.34914108612187 L-29.173949481825936 -24.34914108612187 A38 38 0 0 1 -24.349141086121893 -29.17394948182592 L-24.349141086121893 -29.17394948182592 L-29.349141086121897 -37.834203519670304 L-18.0908108369242 -44.334203519670304 L-13.090810836924195 -35.67394948182592 A38 38 0 0 1 -6.500000000000005 -37.43995192304605 L-6.500000000000005 -37.43995192304605 L-6.500000000000007 -47.43995192304605 L6.49999999999999 -47.43995192304606 L6.499999999999992 -37.43995192304606 A38 38 0 0 1 13.090810836924149 -35.67394948182594 L13.090810836924149 -35.67394948182594 L18.090810836924142 -44.33420351967033 L29.349141086121847 -37.83420351967034 L24.349141086121854 -29.17394948182595 A38 38 0 0 1 29.17394948182592 -24.349141086121893 L29.17394948182592 -24.349141086121893 L37.834203519670304 -29.349141086121897 L44.334203519670304 -18.0908108369242 L35.67394948182592 -13.090810836924197 A38 38 0 0 1 37.43995192304605 -6.500000000000007 M0 -20A20 20 0 1 0 0 20 A20 20 0 1 0 0 -20"}})],1)])])]),r("h3",{staticClass:"display-6"},[e._v(e._s(e.message))]),r("p",{staticClass:"lead"},[e._v(e._s(e.$t("This window will automatically close when complete.")))])]):r("div",{staticClass:"container text-center"},[r("div",{staticClass:"icon-container m-4"},[r("i",{staticClass:"fas fa-sad-tear fa-10x"})]),r("h3",{staticClass:"display-6"},[e._v(e._s(e.$t("Something has gone wrong.")))]),r("p",{staticClass:"lead"},[e._v(e._s(e.$t("Unfortunately this screen has had an issue. We've notified the administrator."))+" "),r("a",{attrs:{href:"javascript:void(0)","data-cy":"watchers-show-error-message"},on:{click:function(i){e.showMessage=!e.showMessage}}},[r("i",{staticClass:"fas fa-info-circle"})])]),e.showMessage?r("small",{staticClass:"text-danger text-left small"},[e._v(e._s(e.errorMessage))]):e._e()]),r("div",{staticClass:"w-100 text-right",attrs:{slot:"modal-footer"},slot:"modal-footer"},[e.display==="error"?r("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"},on:{click:function(i){return e.hide(-1)}}},[e._v(e._s(e.$t("Close")))]):e._e()])])},XG=[],JG=ie(qG,WG,XG,!1,null,null,null,null);const Fw=JG.exports,UG={props:{value:Object}};var GG=function(){var e=this,r=e._self._c;return r("b-alert",{ref:"alert",attrs:{variant:"danger",dismissible:""},model:{value:e.value.show,callback:function(i){e.$set(e.value,"show",i)},expression:"value.show"}},[r("b",[e._v(" "+e._s(e.value.error)+" ")]),r("ul",e._l(e.value.errors,function(i,a){return r("li",{key:`error-${a}`},[e._v(e._s(i))])}),0)])},QG=[],YG=ie(UG,GG,QG,!1,null,null,null,null);const sp=YG.exports,Iie="",ZG={name:"ScreenRenderer",components:{WatchersSynchronous:Fw,ScreenRendererError:sp},mixins:[Sb,gc],props:{loopContext:{type:String,default:""},taskdraft:Object},data(){return{currentDefinition:null,codigo:"",displayAsyncLoading:!1}},watch:{definition:{deep:!0,handler(t){G.isEmpty(t.config)||this.rebuildScreen(t)}}},mounted(){this.currentDefinition=G.cloneDeep(this.definition),this.component=this.buildComponent(this.currentDefinition)},methods:{rebuildScreen(t){G.isEqual(t,this.currentDefinition)||(this.currentDefinition=G.cloneDeep(t),this.component=this.buildComponent(this.currentDefinition))},onAsyncWatcherOn(){this.displayAsyncLoading=typeof this._parent>"u"},onAsyncWatcherOff(){this.displayAsyncLoading=!1},getCurrentPage(){return this.$refs.component.getCurrentPage()},setCurrentPage(t){this.$emit("updatedPage"),this.$refs.component.setCurrentPage(t)},afterSubmit(){this.$emit("after-submit",...arguments)}}};var KG=function(){var i;var e=this,r=e._self._c;return r("b-container",{attrs:{fluid:""}},[e.displayAsyncLoading?r("div",{ref:"watchersAsynchronous",staticClass:"alert alert-light",attrs:{role:"alert"}},[r("svg",{staticClass:"lds-gear",attrs:{width:"20px",height:"20px",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[r("g",{attrs:{transform:"translate(50 50)"}},[r("g",{attrs:{transform:"rotate(248.825)"}},[r("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0;360",keyTimes:"0;1",dur:"4.7s",repeatCount:"indefinite"}}),r("path",{attrs:{d:"M37.43995192304605 -6.5 L47.43995192304605 -6.5 L47.43995192304605 6.5 L37.43995192304605 6.5 A38 38 0 0 1 35.67394948182593 13.090810836924174 L35.67394948182593 13.090810836924174 L44.33420351967032 18.090810836924174 L37.83420351967032 29.34914108612188 L29.17394948182593 24.34914108612188 A38 38 0 0 1 24.34914108612188 29.17394948182593 L24.34914108612188 29.17394948182593 L29.34914108612188 37.83420351967032 L18.090810836924184 44.33420351967032 L13.090810836924183 35.67394948182593 A38 38 0 0 1 6.5 37.43995192304605 L6.5 37.43995192304605 L6.500000000000001 47.43995192304605 L-6.499999999999995 47.43995192304606 L-6.499999999999996 37.43995192304606 A38 38 0 0 1 -13.09081083692417 35.67394948182593 L-13.09081083692417 35.67394948182593 L-18.09081083692417 44.33420351967032 L-29.34914108612187 37.834203519670325 L-24.349141086121872 29.173949481825936 A38 38 0 0 1 -29.17394948182592 24.34914108612189 L-29.17394948182592 24.34914108612189 L-37.83420351967031 29.349141086121893 L-44.33420351967031 18.0908108369242 L-35.67394948182592 13.090810836924193 A38 38 0 0 1 -37.43995192304605 6.5000000000000036 L-37.43995192304605 6.5000000000000036 L-47.43995192304605 6.500000000000004 L-47.43995192304606 -6.499999999999993 L-37.43995192304606 -6.499999999999994 A38 38 0 0 1 -35.67394948182593 -13.090810836924167 L-35.67394948182593 -13.090810836924167 L-44.33420351967032 -18.090810836924163 L-37.834203519670325 -29.34914108612187 L-29.173949481825936 -24.34914108612187 A38 38 0 0 1 -24.349141086121893 -29.17394948182592 L-24.349141086121893 -29.17394948182592 L-29.349141086121897 -37.834203519670304 L-18.0908108369242 -44.334203519670304 L-13.090810836924195 -35.67394948182592 A38 38 0 0 1 -6.500000000000005 -37.43995192304605 L-6.500000000000005 -37.43995192304605 L-6.500000000000007 -47.43995192304605 L6.49999999999999 -47.43995192304606 L6.499999999999992 -37.43995192304606 A38 38 0 0 1 13.090810836924149 -35.67394948182594 L13.090810836924149 -35.67394948182594 L18.090810836924142 -44.33420351967033 L29.349141086121847 -37.83420351967034 L24.349141086121854 -29.17394948182595 A38 38 0 0 1 29.17394948182592 -24.349141086121893 L29.17394948182592 -24.349141086121893 L37.834203519670304 -29.349141086121897 L44.334203519670304 -18.0908108369242 L35.67394948182592 -13.090810836924197 A38 38 0 0 1 37.43995192304605 -6.500000000000007 M0 -20A20 20 0 1 0 0 20 A20 20 0 1 0 0 -20"}})],1)])]),e._v(" "+e._s(e.$t("Loading..."))+" ")]):e._e(),r(e.component,{ref:"component",tag:"component",attrs:{vdata:e.value,_parent:e._parent||((i=e.value)==null?void 0:i._parent),"_initial-page":e.currentPage,taskdraft:e.taskdraft},on:{"after-submit":e.afterSubmit,submit:e.submit,asyncWatcherTriggered:e.onAsyncWatcherOn,asyncWatcherCompleted:e.onAsyncWatcherOff}}),e.showErrors&&e.building.error?r("screen-renderer-error",{model:{value:e.building,callback:function(a){e.building=a},expression:"building"}}):e._e(),r("watchers-synchronous",{ref:"watchersSynchronous"})],1)},_G=[],$G=ie(ZG,KG,_G,!1,null,null,null,null);const Bw=$G.exports,Nie="",eQ={name:"VueFormRenderer",components:{ScreenRenderer:Bw,CustomCssOutput:BG},mixins:[gc,zh],model:{prop:"data",event:"update"},props:["config","data","_parent","page","computed","customCss","mode","watchers","isLoop","ancestorScreens","loopContext","showErrors","testScreenDefinition","deviceScreen","taskdraft"],data(){return{definition:{config:this.config,computed:this.computed,customCss:this.customCss,watchers:this.watchers,isMobile:!1},formSubmitErrorClass:"",watchers_config:{api:{execute:null,execution:null}},customCssWrapped:"",customFunctions:{formatCurrency(){const t=(e,r)=>{const i=wu.find(n=>n.code===r),a={alias:"currency"};if(i){const n=i.format.match(/[.,]/g);n.length===0?n.push("","."):n.length===1&&n.push(n[0]==="."?",":"."),a.digits=(i.format.split(n[1])[1]||"").length,a.radixPoint=n[1],a.groupSeparator=n[0],a.prefix=`${i.symbol} `,a.suffix=` ${i.code}`}return Ob.format(e,a)};return function(e){const r=JSON.parse(`[${e}]`);return t(G.get(this,r[0]),r[1])}}},scrollable:null,containerObserver:null}},computed:{containerClass(){return this.parentScreen?`screen-${this.parentScreen}`:"custom-css-scope"},cssDevice(){return{"--mobile-width":Oh}},containerDeviceClass(){return this.deviceScreen==="mobile"?"container-mobile":"container-desktop"}},watch:{customCss(t){this.definition.customCss=t,this.parseCss()},config:{deep:!0,handler(t){this.definition.config=t,this.$nextTick(()=>{this.registerCustomFunctions()})}},data:{deep:!0,handler(){this.$emit("update",this.data);const t=this.getMainScreen();t&&this.validate(t)}},computed:{deep:!0,handler(t){this.definition.computed=t}},watchers:{deep:!0,handler(t){this.definition.watchers=t}}},created(){this.parseCss=G.debounce(this.parseCss,500,{leading:!0}),this.containerObserver=new ResizeObserver(this.onContainerObserver)},mounted(){this.registerCustomFunctions(),window.ProcessMaker&&window.ProcessMaker.EventBus&&window.ProcessMaker.EventBus.$emit("screen-renderer-init",this),this.scrollable=FG(this.$el),this.containerObserver.observe(this.$refs.formRendererContainer),this.$store.dispatch("clipboardModule/initializeClipboard")},methods:{...It.mapActions("globalErrorsModule",["validate","hasSubmitted","showValidationOnLoad","restartValidation"]),getMainScreen(){return this.$refs.renderer&&this.$refs.renderer.$refs.component},countElements(t){const e={config:t};return this.$refs.renderer.countElements(e)},checkForRecordList(t,e){return t.forEach(r=>{r.items&&this.checkForRecordList(r.items,e),r.component==="FormRecordList"&&this.removeRecordListForms(r,e)}),e},removeRecordListForms(t,e){const r=t.config.form;return delete e[r],e},checkForNestedScreenErrors(t){if(t.$options._componentTag==="FormNestedScreen")return t.errors()},isValid(){const t=HG(this.definition.config),e=G.cloneDeep(this.definition.config);return this.checkForRecordList(t,e),this.dataTypeValidator=VG(e,this.data),this.errors=this.dataTypeValidator.getErrors(),this.errors&&(this.formSubmitErrorClass="invalid-form-submission"),G.size(this.errors)===0},registerCustomFunctions(t=this){t.registerCustomFunction instanceof Function&&Object.keys(this.customFunctions).forEach(e=>{t.registerCustomFunction(e,this.customFunctions[e])}),t.$children instanceof Array&&t.$children.forEach(e=>this.registerCustomFunctions(e))},afterSubmit(){this.$emit("after-submit",...arguments)},submit(t,e=!1,r=null){this.$emit("submit",this.data,e,r)},parseCss(){const t=`.${this.containerClass}`;try{const e=ea.parse(this.customCss,{onParseError(a){throw a.formattedMessage}});let r=0;ea.walk(e,function(a,n,s){if(a.type.match(/^.+Selector$/)&&a.name!==t&&s&&(n.prev||(s.prependData({type:"WhiteSpace",loc:null,value:" "}),s.prependData({type:"TypeSelector",loc:null,name:t}))),r>5e3)throw Error("CSS is too long");r+=1});const i=[];ea.walk(e,{visit:"Atrule",enter:(a,n,s)=>{if(!n.prev&&a.name==="media"){const o={minWidth:0,maxWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),rules:[]};ea.walk(a.prelude,{visit:"MediaFeature",enter:u=>{["min-width","max-width"].includes(u.name)&&(o[G.camelCase(u.name)]=parseInt(u.value.value,10),o.rules.length===0&&ea.walk(a.block,{visit:"Rule",enter:l=>{const c=ea.generate(l);o.rules.push(c)}}),i.push(o))}}),s.remove(n)}}}),this.customCssWrapped=ea.generate(e),i.forEach(a=>{const{width:n}=this.$refs.formRendererContainer.getBoundingClientRect();n>=a.minWidth&&n<=a.maxWidth&&(this.customCssWrapped+=a.rules.join(" "))}),this.$emit("css-errors","")}catch(e){this.$emit("css-errors",e)}},getCurrentPage(){return this.$refs.renderer.getCurrentPage()},setCurrentPage(t){this.$emit("update-page-task"),this.$refs.renderer.setCurrentPage(t)},onContainerObserver(t){t[0].target.getBoundingClientRect(),this.parseCss()},saveClipboarToLocalStorage(t){localStorage.setItem("savedClipboard",JSON.stringify(t))}}};var tQ=function(){var i;var e=this,r=e._self._c;return r("div",{ref:"formRendererContainer",class:[e.containerClass,e.containerDeviceClass],style:e.cssDevice,attrs:{id:"vue-form-renderer","data-cy":"screen-renderer-container"}},[r("custom-css-output",[e._v(e._s(e.customCssWrapped))]),r("screen-renderer",{ref:"renderer",staticClass:"p-0",attrs:{value:e.data,_parent:e._parent||((i=e.data)==null?void 0:i._parent),definition:e.definition,"current-page":e.currentPage,"data-cy":"screen-renderer","show-errors":e.showErrors,"test-screen-definition":e.testScreenDefinition||!1,"loop-context":e.loopContext,taskdraft:e.taskdraft},on:{updatePage:e.setCurrentPage,"after-submit":e.afterSubmit,submit:e.submit}})],1)},rQ=[],iQ=ie(eQ,tQ,rQ,!1,null,"fcdcc032",null,null);const wi=iQ.exports,aQ={name:"FormLoop",components:{VueFormRenderer:wi},mixins:[],props:["value","config","transientData","name","mode","formConfig"],data(){return{matrix:[],items:[],additionalItems:0,transientDataCopy:null,parentObjectChanges:[]}},computed:{parentLoopContext(){let t=this.$parent,e=0,r="";for(;!t.loopContext;){if(t=t.$parent,t===this.$root){t=null;break}if(e>100)throw new Error("Loop Error");e++}return t&&(r=t.loopContext),r},rendererConfig(){const{items:t}=this;return[{name:"LoopItem",items:t}]},times(){if(!this.config||!this.config.settings)return[];if(this.config.settings.type==="existing"){const e=G.get(this.transientData,this.name,null);return e?[...e.keys()]:[]}let{times:t}=this.config.settings;try{t=ur.render(t,this.transientData)}catch(e){throw new Error(e)}return t=parseInt(t),Number.isNaN(t)?[]:(t>100&&(t=100),t+=this.additionalItems,[...Array(t).keys()])}},watch:{transientData:{handler(){this.transientDataCopy=G.cloneDeep(this.transientData),this.$delete(this.transientDataCopy,this.name);const t=G.get(this,`transientData.${this.name}`,null);t&&Array.isArray(t)?this.matrix=t:this.matrix=[],this.setupMatrix()},immediate:!0},value:{handler(){this.items=this.value},immediate:!0},matrix:{handler(){G.isEqual(this.$parent.transientData[this.name],this.matrix)||this.$set(this.$parent.transientData,this.name,G.cloneDeep(this.matrix))},deep:!0},times(){this.setupMatrix()},"config.settings.times":{handler(){this.additionalItems=0}}},mounted(){this.$set(this.$parent.transientData,this.name,G.cloneDeep(this.matrix))},methods:{getLoopContext(t){let e=`${this.name}.${t.toString()}`;return this.parentLoopContext!==""&&(e=`${this.parentLoopContext}.${e}`),e},add(){this.config.settings.type==="existing"?this.setMatrixValue(this.matrix.length,{}):this.additionalItems++},remove(){this.config.settings.type==="existing"?this.$delete(this.matrix,this.matrix.length-1):this.additionalItems--},removeConfirm(){const t=this.$t("Are you sure you want to delete this?");window.ProcessMaker.confirmModal(this.$t("Caution!"),t,"",()=>{this.remove()})},setMatrixValue(t,e){const r=G.omit(e,"_parent");this.registerParentVariableChanges(e),this.$set(this.matrix,t,r),this.setChagnedParentVariables()},registerParentVariableChanges(t){t._parent&&Object.keys(t._parent).forEach(e=>{G.isEqual(this.transientDataCopy[e],t._parent[e])||this.parentObjectChanges.push({key:e,value:t._parent[e]})})},setChagnedParentVariables(){this.parentObjectChanges.forEach(t=>{this.$set(this.$parent.transientData,t.key,t.value)}),this.parentObjectChanges=[]},getMatrixValue(t){let e=G.cloneDeep(this.matrix[t]);return e||(e={}),e._parent=G.cloneDeep(this.transientDataCopy),e},setupMatrix(){for(const t of this.times)typeof this.matrix[t]>"u"&&this.setMatrixValue(t,{});this.matrix.length!==this.times.length&&(this.matrix=this.matrix.slice(0,this.times.length))},submit(){this.$emit("submit")}}};var nQ=function(){var e=this,r=e._self._c;return r("div",[e._l(e.times,function(i){return r("form",{key:i,on:{submit:function(a){a.preventDefault()}}},[r("vue-form-renderer",{attrs:{data:e.getMatrixValue(i),config:e.rendererConfig,computed:null,"custom-css":null,watchers:null,"is-loop":!0,"debug-context":"Loop #"+i,mode:e.mode,"loop-context":e.getLoopContext(i),"form-config":e.formConfig},on:{submit:e.submit,pageNavigate:function(a){return e.$emit("pageNavigate",a)},update:function(a){return e.setMatrixValue(i,a)}}})],1)}),e.config.settings.add?r("b-row",{staticClass:"justify-content-md-center"},[r("b-col",{attrs:{md:"auto"}},[r("b-button",{staticClass:"ml-1 mr-1",attrs:{size:"sm",variant:"secondary",title:e.$t("Add Item")},on:{click:e.add}},[r("i",{staticClass:"fas fa-plus"})]),e.times.length>0?r("b-button",{staticClass:"ml-1 mr-1",attrs:{size:"sm",variant:"outline-danger",title:e.$t("Delete Item")},on:{click:e.removeConfirm}},[r("i",{staticClass:"fas fa-minus"})]):e._e()],1)],1):e._e()],2)},sQ=[],oQ=ie(aQ,nQ,sQ,!1,null,null,null,null);const Cs=oQ.exports,Lie="",Pu=typeof window>"u"?global:window,op=[{name:"empty",items:[]}],lQ={components:{VueFormRenderer:wi},props:{name:String,screen:Number,value:null,validationData:null,_parent:null,ancestorScreens:{type:Array,default:()=>[]}},data(){return{localData:{},config:op,computed:[],customCSS:null,watchers:[],screenTitle:null}},computed:{validatedConfig(){return this.config&&this.config[0]?this.config:op},data:{get(){return this.validationData||this.localData},set(t){Object.keys(t).forEach(e=>{this.validationData&&this.$set(this.validationData,e,t[e])})}},placeholder(){return this.screen?"":this.$t("Select a screen to nest")}},methods:{isSubmitButton(t){return t.config&&t.component==="FormButton"&&t.config.event==="submit"},hideSubmitButtons(t){t.forEach(e=>{Array.isArray(e)&&this.hideSubmitButtons(e),e.items&&this.hideSubmitButtons(e.items),this.isSubmitButton(e)&&(e.config.hidden=!0)})},disableForm(t){t.forEach(e=>{Array.isArray(e)&&this.disableForm(e),e.items&&this.disableForm(e.items),e&&e.config&&(e.config.disabled=!0,e.config.readonly=!0,e.config.editable=!1)})},loadScreen(t){this.config=op,this.computed=[],this.customCSS=null,this.watchers=[],this.screenTitle=null,t&&this.$dataProvider.getScreen(t).then(e=>{this.config=e.data.config,this.hideSubmitButtons(this.config),this.computed=e.data.computed,this.customCSS=e.data.custom_css,this.watchers=e.data.watchers,this.screenTitle=e.data.title,this.$attrs.disabled&&this.disableForm(this.config),this.ancestorScreens.includes(this.screenTitle)?Pu.ProcessMaker.alert(`Rendering of nested "${this.screenTitle}" screen was disallowed to prevent loop.`,"warning"):(Pu.nestedScreens||(Pu.nestedScreens={}),Pu.nestedScreens["id_"+t]=this.config,this.$root.$emit("nested-screen-updated"))})},errors(){return this.$refs.nestedScreen.isValid(),this.$refs.nestedScreen.errors}},watch:{screen(t){this.loadScreen(t)}},mounted(){this.loadScreen(this.screen)}};var uQ=function(){var e=this,r=e._self._c;return e.ancestorScreens.includes(e.screenTitle)?e._e():r("vue-form-renderer",{ref:"nestedScreen",staticClass:"form-nested-screen",attrs:{placeholder:e.placeholder,config:e.validatedConfig,"ancestor-screens":[...e.ancestorScreens,e.screenTitle],mode:"preview",computed:e.computed,"custom-css":e.customCSS,watchers:e.watchers,"debug-context":"Nested Screen",_parent:e._parent},on:{"css-errors":function(i){e.cssErrors=i}},model:{value:e.data,callback:function(i){e.data=i},expression:"data"}})},cQ=[],dQ=ie(lQ,uQ,cQ,!1,null,null,null,null);const ks=dQ.exports,Fie="",fQ={name:"MustacheHelper"};var pQ=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"mustache",attrs:{title:e.$t("This field accepts mustache syntax")}},[e._v(" {} ")])},hQ=[],mQ=ie(fQ,pQ,hQ,!1,null,"8cef93f7",null,null);const Pi=mQ.exports,vQ="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE0LjA1MTQgMy43Mzg4OUwxNS40NTc2IDIuMzMyNjVDMTYuMDY3OCAxLjcyMjQ1IDE3LjA1NzIgMS43MjI0NSAxNy42Njc0IDIuMzMyNjVDMTguMjc3NSAyLjk0Mjg0IDE4LjI3NzUgMy45MzIxNiAxNy42Njc0IDQuNTQyMzVMOC44MTg0OSAxMy4zOTEyQzguMzc3OTIgMTMuODMxOCA3LjgzNDUzIDE0LjE1NTYgNy4yMzc0MSAxNC4zMzM1TDUgMTVMNS42NjY0OCAxMi43NjI2QzUuODQ0MzUgMTIuMTY1NSA2LjE2ODIgMTEuNjIyMSA2LjYwODc3IDExLjE4MTVMMTQuMDUxNCAzLjczODg5Wk0xNC4wNTE0IDMuNzM4ODlMMTYuMjUgNS45Mzc0OU0xNSAxMS42NjY3VjE1LjYyNUMxNSAxNi42NjA1IDE0LjE2MDUgMTcuNSAxMy4xMjUgMTcuNUg0LjM3NUMzLjMzOTQ3IDE3LjUgMi41IDE2LjY2MDUgMi41IDE1LjYyNVY2Ljg3NDk5QzIuNSA1LjgzOTQ2IDMuMzM5NDcgNC45OTk5OSA0LjM3NSA0Ljk5OTk5SDguMzMzMzMiIHN0cm9rZT0iIzU5NjM3MiIgc3Ryb2tlLXdpZHRoPSIxLjI1IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==",gQ="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNiAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwLjI4MzcgNi41TDkuOTk1MTkgMTRNNi4wMDQ4MSAxNEw1LjcxNjM1IDYuNU0xNC4wMjMgMy44MjU0N0MxNC4zMDggMy44Njg1MSAxNC41OTIgMy45MTQ1NiAxNC44NzUgMy45NjM1OE0xNC4wMjMgMy44MjU0N0wxMy4xMzMyIDE1LjM5MzhDMTMuMDU4IDE2LjM3MDcgMTIuMjQzNCAxNy4xMjUgMTEuMjYzNyAxNy4xMjVINC43MzYzMUMzLjc1NjU1IDE3LjEyNSAyLjk0MTk4IDE2LjM3MDcgMi44NjY4MyAxNS4zOTM4TDEuOTc2OTYgMy44MjU0N00xNC4wMjMgMy44MjU0N0MxMy4wNjc3IDMuNjgxMiAxMi4xMDEzIDMuNTcwNzEgMTEuMTI1IDMuNDk1MjdNMS4xMjUgMy45NjM1OEMxLjQwNzk4IDMuOTE0NTYgMS42OTE5OCAzLjg2ODUxIDEuOTc2OTYgMy44MjU0N00xLjk3Njk2IDMuODI1NDdDMi45MzIzMSAzLjY4MTIgMy44OTg3NCAzLjU3MDcxIDQuODc1IDMuNDk1MjdNMTEuMTI1IDMuNDk1MjdWMi43MzE4MkMxMS4xMjUgMS43NDkwMiAxMC4zNjYxIDAuOTI4NTI2IDkuMzgzODIgMC44OTcxMDNDOC45MjQzNSAwLjg4MjQwNSA4LjQ2MzA0IDAuODc1IDggMC44NzVDNy41MzY5NiAwLjg3NSA3LjA3NTY1IDAuODgyNDA1IDYuNjE2MTggMC44OTcxMDNDNS42MzM4OCAwLjkyODUyNiA0Ljg3NSAxLjc0OTAyIDQuODc1IDIuNzMxODJWMy40OTUyN00xMS4xMjUgMy40OTUyN0MxMC4wOTM4IDMuNDE1NTggOS4wNTE2NCAzLjM3NSA4IDMuMzc1QzYuOTQ4MzYgMy4zNzUgNS45MDYyIDMuNDE1NTggNC44NzUgMy40OTUyNyIgc3Ryb2tlPSIjNTk2MzcyIiBzdHJva2Utd2lkdGg9IjEuMjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K",Bie="",bQ={key:"__actions",label:"Actions",thClass:"text-right",tdClass:"text-right"},yQ={components:{VueFormRenderer:wi,MustacheHelper:Pi},mixins:[Wd],props:["name","label","fields","value","editable","_config","form","validationData","formConfig","formComputed","formWatchers","_perPage","source","paginationOption","designerMode","bgcolormodern"],data(){return{editFormVersion:0,single:"",plural:"",addItem:{},editItem:{},editIndex:null,currentPage:1,paginatorPage:1,perPageSelectEnabled:!1,perPage:5,lastPage:1,css:{tableClass:"table table-hover table-responsive text-break mb-0 d-table",loadingClass:"loading",detailRowClass:"vuetable-detail-row",handleIcon:"grey sidebar icon",sortableIcon:"fas fa-sort",ascendingIcon:"fas fa-sort-up",descendingIcon:"fas fa-sort-down",ascendingClass:"ascending",descendingClass:"descending",renderIcon(t){return`<i class="${t.join(" ")}"></i>`}},initFormValues:{},currentRowIndex:null,collectionData:{},selectedRow:null,selectedRows:[],selectedIndex:null,rows:[],selectAll:!1,styleMode:"Classic",isPopoverVisible:null,popoverPosition:{top:"0px",left:"0px"}}},computed:{tableClassModern(){if(this.styleMode==="Modern")switch(this.bgcolormodern){case"alert alert-primary":return"record-list-table-primary";case"alert alert-success":return"record-list-table-success";case"alert alert-warning":return"record-list-table-warning";case"alert alert-secondary":return"record-list-table-secondary";default:return"record-list-table-secondary"}return""},indeterminate(){return this.selectedRows.length>0&&this.selectedRows.length<this.tableData.data.length},popupConfig(){const t=[];return t[this.form]=this.formConfig[this.form],t},debug(){return{perPageSelectEnabled:this.perPageSelectEnabled,perPageSelectEnabled2:this.$refs.pagination&&this.$refs.pagination.perPageSelectEnabled}},parentObj(){let t=this.$parent;for(;"transientData"in t.$props;)t=t.$parent;return t},dataManager(){if(this.$refs.vuetable){const t=this.$refs.vuetable.makePagination(this.value.length);return{pagination:t,data:this.value.slice(t.from-1,t.to)}}console.log("refs vuetable not exists")},tableData(){const t=Array.isArray(this.collectionData)&&this.collectionData.length?this.collectionData:Array.isArray(this.value)?this.value:[];this.value&&(this.selectedIndex=this.value.selectedRowIndex);const e=this.paginatorPage-1;this.lastPage=Math.ceil(t.length/this.perPage);const r={total:t.length,per_page:this.perPage,current_page:this.paginatorPage,last_page:this.lastPage,next_page_url:null,prev_page_url:null,from:e,to:t.length,data:t,lastSortConfig:!1};return this.selectedIndex!==null&&this.selectedIndex<r.data.length&&(this.selectedRow=r.data[this.selectedIndex]),Array.isArray(this.value)&&this.value.length>0&&this.rows.length===0&&this.value.forEach(i=>{i.hasOwnProperty("selectedRowsIndex")&&this.selectedRows.push(r.data[i.selectedRowsIndex])}),r},tableFields(){var e,r,i;const t=this.getTableFieldsFromDataSource();return this.editable&&!this.selfReferenced&&t.push(bQ),((e=this.source)==null?void 0:e.sourceOptions)==="Collection"&&(["single-field","single-record"].includes((r=this.source)==null?void 0:r.dataSelectionOptions)&&t.unshift({key:"radio",label:"",sortable:!1}),((i=this.source)==null?void 0:i.dataSelectionOptions)==="multiple-records"&&t.unshift({key:"checkbox",label:"",sortable:!1})),t},selfReferenced(){return this.form&&this.form===this.$parent.currentPage}},watch:{"tableData.total":{deep:!0,handler(t){const e=Math.ceil(t/this.perPage);this.currentPage=this.currentPage>e?e:this.currentPage,this.currentPage=this.currentPage==0?1:this.currentPage}},"validationData.option":{handler(t){var e,r,i,a,n,s,o;((e=this.source)==null?void 0:e.sourceOptions)==="Collection"&&((i=(r=this.source)==null?void 0:r.collectionFields)!=null&&i.pmql)&&this.onCollectionChange((n=(a=this.source)==null?void 0:a.collectionFields)==null?void 0:n.collectionId,(o=(s=this.source)==null?void 0:s.collectionFields)==null?void 0:o.pmql)},immediate:!1}},mounted(){var t,e,r,i,a,n,s;this._perPage&&(this.perPage=this._perPage),this.updateRowDataNamePrefix=G.debounce(this.updateRowDataNamePrefix,100),this.paginationOption!=null&&(this.perPage=this.paginationOption),((t=this.source)==null?void 0:t.sourceOptions)==="Collection"&&this.onCollectionChange((r=(e=this.source)==null?void 0:e.collectionFields)==null?void 0:r.collectionId,(a=(i=this.source)==null?void 0:i.collectionFields)==null?void 0:a.pmql),this.setStyleMode((n=this.designerMode)==null?void 0:n.designerOptions),this.$root.$emit("record-list-option",(s=this.source)==null?void 0:s.sourceOptions)},methods:{togglePopover(t,e,r){if(this.deleteIndex=G.find(this.tableData.data,{row_id:r}),this.isPopoverVisible=this.isPopoverVisible===t?null:t,this.isPopoverVisible!==null){const i=e.target.getBoundingClientRect();this.popoverPosition={top:`${i.bottom+window.scrollY}px`,left:`${i.left+window.scrollX}px`}}},hidePopover(){this.isPopoverVisible=null},popover_remove(){this.remove(),this.hidePopover()},rowClass(t){return this.isRowSelected(t)?"sel-row":""},isRowSelected(t){return this.selectedRows.includes(t)||this.selectedRow===t},setStyleMode(t){this.styleMode=t||"Classic"},selectAllRows(){if(this.allRowsSelected){const t=this.tableData.data.map((e,r)=>({...e,selectedRowsIndex:r}));this.selectedRows=t,this.collectionData=t,this.onMultipleSelectionChange()}else this.selectedRows=[],this.onMultipleSelectionChange()},componentOutput(t){this.$emit("input",t)},onRadioChange(t,e){var i;const r=(this.currentPage-1)*this.perPage+e;if((i=this.source)!=null&&i.singleField){let a=t[this.source.singleField];this.componentOutput(a)}else t={...t,selectedRowIndex:r},this.componentOutput(t)},onMultipleSelectionChange(t){this.collectionData.forEach((e,r)=>{this.selectedRows.forEach(i=>{this.areObjectsEqual(i,e)&&(i.selectedRowsIndex=r)})}),this.componentOutput(this.selectedRows),this.rows.push(t)},areObjectsEqual(t,e){const r=Object.keys(t),i=Object.keys(e);return r.length!==i.length?!1:r.every(a=>t[a]===e[a])},onCollectionChange(t,e){if(!e||e.trim()===""){this.fetchAllRecords(t);return}const r=this.processMustacheInPmql(e);r&&this.fetchRecordsWithPmql(t,r)},processMustacheInPmql(t){if(!t||!t.includes("{{"))return t;try{const e=this.validationData||{};let r=t.replace(/"{{([^}]+)}}"/g,"{{$1}}");return r=ur.render(r,e),this.hasEmptyValues(r)?(this.collectionData=[],null):(r=r.replace(/= ([^"'\s]+)/g,'= "$1"'),r)}catch{return this.collectionData=[],null}},hasEmptyValues(t){return['= ""','= " "',"= null","= undefined"].some(r=>t.includes(r))},isValidPmql(t){return t&&t.trim()!==""&&!t.includes("{{")},fetchAllRecords(t){this.$dataProvider.getCollectionRecordsList(t,{}).then(e=>{const r=e.data;this.changeCollectionColumns(r,this.fields)}).catch(()=>{this.collectionData=[]})},fetchRecordsWithPmql(t,e){if(!this.isValidPmql(e)){this.collectionData=[];return}const r={params:{pmql:e}};this.$dataProvider.getCollectionRecordsList(t,r).then(i=>{const a=i.data;this.changeCollectionColumns(a,this.fields)}).catch(()=>{this.collectionData=[]}),this.$emit("change",this.field)},changeCollectionColumns(t,e){const r=e.optionsList;t.forEach(i=>{let a=i.data,n={};Object.keys(a).forEach(s=>{const o=r.find(u=>u.content===s);o&&(n[o.key]=a[s])}),i.data=n}),this.setCollectionIntoList(t)},setCollectionIntoList(t){const e=[];t.forEach(r=>{if(r.hasOwnProperty("data")){const i=r.data,a={};for(const[n,s]of Object.entries(i))a[n]=s;e.push(a)}}),this.collectionData=e},updateRowDataNamePrefix(){this.setUploadDataNamePrefix(this.currentRowIndex)},emitShownEvent(){window.ProcessMaker.EventBus.$emit("modal-shown")},formatIfDate(t){return ee.dateUtils.formatIfDate(t)},isImage(t,e){const r=G.get(e,t.key);return typeof r=="string"&&r.substr(0,11)==="data:image/"},isWebEntryFile(t,e){const r=G.get(e,t.key),i=/^webentry_.*:*$/;let a=r;return Array.isArray(r)&&(a=r[0].file),i.test(a)},formatIfWebEntryFile(t,e){return G.get(window,"PM4ConfigOverrides.requestFiles",{})[`${t.key}.${e.row_id}`].map(a=>a.file_name).join(", ")},isFiledownload(t){return t.key==="__filedownload"},setUploadDataNamePrefix(t=null){this.currentRowIndex=t;let e=null;t!==null&&this.editItem?e=this.editItem.row_id:this.addItem&&(e=this.addItem.row_id),this.$root.$emit("set-upload-data-name",this,t,e)},getTableFieldsFromDataSource(){var n;const{jsonData:t,key:e,value:r,dataName:i}=this.fields;let a={};return((n=this.source)==null?void 0:n.sourceOptions)==="Collection"?a=s=>({key:s[e||"key"],sortable:!0,label:s[e||"key"],tdClass:"table-column"}):a=s=>({key:s[e||"value"],sortable:!0,label:s[r||"content"],tdClass:"table-column"}),this.getValidFieldData(t,i).map(a)},getValidFieldData(t,e){let r=this.validationData[e];if(t)try{r=JSON.parse(t)}catch{r=[]}return Array.isArray(r)?r:[]},hideInformation(){this.$refs.infoModal.hide()},onPaginationData(t){this.$refs.pagination.setPaginationData(t)},onChangePerPage(t){this.perPage=parseInt(t)},onChangePage(t){t=="next"?this.paginatorPage+=1:t=="prev"?this.paginatorPage-=1:this.paginatorPage=t,this.paginatorPage<=0&&(this.paginatorPage=1),this.paginatorPage>this.lastPage&&(this.paginatorPage=this.lastPage)},showEditForm(t,e){const r=(this.currentPage-1)*this.perPage+t;this.editItem=JSON.parse(JSON.stringify(G.find(this.tableData.data,{row_id:e}))),this.editIndex=r,this.editFormVersion++,this.$nextTick(()=>{this.setUploadDataNamePrefix(r),this.$refs.editModal.show()})},edit(t){if(this.$refs.addRenderer.hasSubmitted(!0),this.$refs.editRenderer.$refs.renderer.$refs.component.$v.vdata.$invalid){t.preventDefault();return}const e=this.tableData.data?JSON.parse(JSON.stringify(this.tableData.data)):[],r=G.findIndex(e,{row_id:this.editItem.row_id});e[r]=JSON.parse(JSON.stringify(this.editItem)),delete e[r]._parent,this.$emit("input",e)},showAddForm(){const t=Math.random().toString(36).substring(2)+Date.now().toString(36);if(this.$set(this.addItem,"row_id",t),this.setUploadDataNamePrefix(),!this.form){this.$refs.infoModal.show();return}this.$refs.addModal.show();const{_parent:e,...r}=this.addItem;this.initFormValues=G.cloneDeep(r)},handleHideAddModal(){this.addItem=this.initFormValues,this.$refs.addRenderer.hasSubmitted(!1)},async handleOk(t){if(this.$refs.addRenderer.hasSubmitted(!0),t.preventDefault(),this.$refs.addRenderer.$refs.renderer.$refs.component.$v.vdata.$invalid)return;const e=this.value?JSON.parse(JSON.stringify(this.value)):[],r=JSON.parse(JSON.stringify({...this.addItem,_parent:void 0}));delete r._parent,e[e.length]=r,this.$emit("input",e),this.addItem={},this.$nextTick(()=>{this.$refs.addModal.hide()})},showDeleteConfirmation(t,e){this.deleteIndex=G.find(this.tableData.data,{row_id:e}),this.$refs.deleteModal.show()},downloadFile(t,e,r){const i=this.$root.task.request_data._request.id,a=`${this.name}.${r}.${e}`;window.ProcessMaker.apiClient.get(`requests/${i}/files?name=${a}`).then(n=>{const s=n.data;if(s&&s.data&&s.data.length){const o=s.data[0];this.downloadRecordListFile(o,i)}})},downloadRecordListFile(t,e){window.ProcessMaker.apiClient({baseURL:"/",url:`/request/${e}/files/${t.id}`,method:"GET",responseType:"blob"}).then(r=>{const i=window.URL.createObjectURL(new Blob([r.data])),a=document.createElement("a");a.href=i,a.setAttribute("download",t.file_name),document.body.appendChild(a),a.click()})},remove(){const t=this.tableData.data?JSON.parse(JSON.stringify(this.tableData.data)):[],e=this.deleteIndex;G.remove(t,{row_id:this.deleteIndex.row_id}),this.$emit("input",t),this.$root.$emit("removed-record",this,e)}}};var xQ=function(){var e=this,r=e._self._c;return r("div",{staticClass:"data-table overflow-auto"},[r("div",{staticClass:"row mb-2 ml-0 mr-0"},[r("div",{staticClass:"col"},[r("h4",[e._v(e._s(e.label))])]),e.styleMode==="Classic"?r("div",{staticClass:"col text-right"},[e.editable&&!e.selfReferenced?r("button",{staticClass:"btn btn-primary",attrs:{"data-cy":"add-row"},on:{click:e.showAddForm}},[e._v(" "+e._s(e.$t("Add"))+" ")]):e._e()]):e._e()]),!e.value&&!e.tableData.data?r("div",[e._v(" "+e._s(e.$t("This record list is empty or contains no data."))+" ")]):[r("b-table",{ref:"vuetable",class:e.tableClassModern,attrs:{"per-page":e.perPage,"data-manager":e.dataManager,fields:e.tableFields,items:e.tableData.data,"sort-compare-options":{numeric:!1},"sort-null-last":!0,"sort-icon-left":"",css:e.css,"empty-text":e.$t("No Data Available"),"current-page":e.currentPage,"data-cy":"table","tbody-tr-class":e.rowClass},scopedSlots:e._u([{key:"head(checkbox)",fn:function(i){return[r("b-form-checkbox",{attrs:{indeterminate:e.indeterminate,"aria-label":"Select All"},on:{change:e.selectAllRows},model:{value:e.allRowsSelected,callback:function(a){e.allRowsSelected=a},expression:"allRowsSelected"}})]}},{key:"cell(checkbox)",fn:function({index:i,item:a}){return[r("b-form-checkbox",{attrs:{value:a},on:{change:function(n){return e.onMultipleSelectionChange(i)}},model:{value:e.selectedRows,callback:function(n){e.selectedRows=n},expression:"selectedRows"}})]}},{key:"cell(radio)",fn:function({index:i,item:a}){return[r("b-form-radio",{attrs:{value:a},on:{change:function(n){return e.onRadioChange(a,i)}},model:{value:e.selectedRow,callback:function(n){e.selectedRow=n},expression:"selectedRow"}})]}},{key:"cell()",fn:function({index:i,field:a,item:n}){return[e.isFiledownload(a,n)?[r("span",{attrs:{href:"#"},on:{click:function(s){return e.downloadFile(n,a.key,i)}}},[e._v(e._s(e.mustache(a.key,n)))])]:e.isImage(a,n)?[r("img",{staticStyle:{},attrs:{src:e.mustache(a.key,n)}})]:e.isWebEntryFile(a,n)?[e._v(" "+e._s(e.formatIfWebEntryFile(a,n))+" ")]:[e._v(" "+e._s(e.formatIfDate(e.mustache(a.key,n)))+" ")]]}},{key:"cell(__actions)",fn:function({index:i,item:a}){return[r("div",{staticClass:"actions"},[r("div",{staticClass:"btn-group btn-group-sm",attrs:{role:"group","aria-label":"Actions"}},[r("button",{class:{btn:!0,"btn-primary":e.styleMode==="Classic"},attrs:{title:e.$t("Edit"),"data-cy":"edit-row"},on:{click:function(n){return e.showEditForm(i,a.row_id)}}},[e.styleMode==="Classic"?r("i",{staticClass:"fas fa-edit"}):r("img",{attrs:{src:vQ,alt:"edit"}})]),r("button",{ref:"deleteButton",class:{btn:!0,"btn-danger":e.styleMode==="Classic"},attrs:{title:e.$t("Delete"),"data-cy":"remove-row",popover:"manual"},on:{click:function(n){e.styleMode==="Modern"?e.togglePopover(i,n,a.row_id):e.showDeleteConfirmation(i,a.row_id)}}},[e.styleMode==="Classic"?r("i",{staticClass:"fas fa-trash-alt"}):r("img",{attrs:{src:gQ,alt:"delete"}})]),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isPopoverVisible===i,expression:"isPopoverVisible === index"}],staticClass:"popover-content"},[r("p",[e._v("Are you sure you want to delete it?")]),r("button",{staticClass:"btn btn-light",on:{click:e.hidePopover}},[e._v("CANCEL")]),r("button",{staticClass:"btn btn-danger",on:{click:function(n){return e.popover_remove()}}},[e._v("DELETE")])])])])]}}])}),r("div",{staticClass:"d-flex justify-content-between align-items-center"},[r("div",{staticClass:"col text-left"},[e.tableData.total>e.perPage&&e.perPage!==0?r("b-pagination",{attrs:{"data-cy":"table-pagination","total-rows":e.tableData.total,"per-page":e.perPage,"aria-label":e.$t("Pagination"),"aria-controls":"vuetable"},on:{change:e.onChangePage},model:{value:e.currentPage,callback:function(i){e.currentPage=i},expression:"currentPage"}}):e._e()],1),e.styleMode==="Modern"?r("div",{staticClass:"col text-right"},[e.editable&&!e.selfReferenced?r("button",{staticClass:"btn btn-link text-primary class-button-modern",attrs:{"data-cy":"add-row"},on:{click:e.showAddForm}},[r("span",{staticClass:"mr-1"},[e._v("+")]),e._v(" "+e._s(e.$t("Add"))+" ")]):e._e()]):e._e()])],e.editable&&!e.selfReferenced?r("b-modal",{ref:"addModal",attrs:{static:!0,size:"lg","ok-title":e.$t("Ok"),"cancel-title":e.$t("Cancel"),title:e.$t("Add"),"header-close-content":"&times;","data-cy":"modal-add"},on:{ok:e.handleOk,hidden:e.handleHideAddModal,shown:e.emitShownEvent}},[r("vue-form-renderer",{key:Array.isArray(e.value)?e.value.length:0,ref:"addRenderer",attrs:{page:0,config:e.popupConfig,"current-page":e.form,computed:e.formComputed,watchers:e.formWatchers,"debug-context":"Record List Add",_parent:e.validationData},on:{update:e.updateRowDataNamePrefix},model:{value:e.addItem,callback:function(i){e.addItem=i},expression:"addItem"}})],1):e._e(),e.editable&&!e.selfReferenced?r("b-modal",{ref:"editModal",attrs:{static:!0,size:"lg","ok-title":e.$t("Save"),"cancel-title":e.$t("Cancel"),title:e.$t("Edit Record"),"header-close-content":"&times;","data-cy":"modal-edit"},on:{ok:e.edit,hidden:function(i){return e.$refs.addRenderer.hasSubmitted(!1)},shown:e.emitShownEvent}},[r("vue-form-renderer",{key:e.editFormVersion,ref:"editRenderer",attrs:{page:0,config:e.popupConfig,"current-page":e.form,computed:e.formComputed,watchers:e.formWatchers,"debug-context":"Record List Edit",_parent:e.validationData},on:{update:e.updateRowDataNamePrefix},model:{value:e.editItem,callback:function(i){e.editItem=i},expression:"editItem"}})],1):e._e(),e.editable&&!e.selfReferenced?r("b-modal",{ref:"deleteModal",attrs:{size:"lg","ok-title":e.$t("Delete"),"cancel-title":e.$t("Cancel"),title:e.$t("Delete Record"),"header-close-content":"&times;","data-cy":"modal-remove"},on:{ok:e.remove}},[r("p",[e._v(e._s(e.$t("Are you sure you want to remove this record?")))])]):e._e(),e.editable&&!e.selfReferenced?r("b-modal",{ref:"infoModal",attrs:{size:"sm","ok-title":e.$t("OK"),title:e.$t("Information form"),"header-close-content":"&times;","ok-only":"","data-cy":"modal-not-assigned"},on:{ok:e.hideInformation}},[r("p",[e._v(e._s(e.$t("The form to be displayed is not assigned.")))])]):e._e(),e.editable&&e.selfReferenced?r("div",{staticClass:"alert alert-danger"},[e._v(" "+e._s(e.$t("The Record List control is not allowed to reference other controls on its own page to add or edit records. Specify a secondary page with controls to enter records."))+" ")]):e._e()],2)},wQ=[],PQ=ie(yQ,xQ,wQ,!1,null,null,null,null);const Su=PQ.exports,SQ={name:"FormRecordListStatic",components:{},mixins:[Wd],props:["label","fields","value","editable","_config","form"],mounted(){},methods:{formatIfDate(t){return ee.formatIfDate(t)}}};var CQ=function(){var e=this,r=e._self._c;return r("div",{staticClass:"record-list"},[r("h4",[e._v(e._s(e.$t(e.label)))]),r("table",[r("thead",[r("tr",e._l(e.fields,function(i,a){return r("th",{key:a},[e._v(" "+e._s(i.content)+" ")])}),0)]),r("tbody",e._l(e.value,function(i,a){return r("tr",{key:a},e._l(e.fields,function(n,s){return r("td",{key:s},[e._v(" "+e._s(e.formatIfDate(e.mustache(n.value,i)))+" ")])}),0)}),0)])])},kQ=[],TQ=ie(SQ,CQ,kQ,!1,null,null,null,null);const Rw=TQ.exports,MQ={props:["label","fontSize","fontWeight","textAlign","verticalAlign","validationData","color","name"],computed:{styles(){return{fontSize:this.fontSize,fontWeight:this.fontWeight,textAlign:this.textAlign,verticalAlign:this.verticalAlign,color:this.color}},rendered(){if(!this.validationData)return this.label;try{return ur.render(this.label,this.validationData)}catch{return this.label}}}};var DQ=function(){var e=this,r=e._self._c;return r("div",{staticClass:"form-group"},[r("div",{style:e.styles,domProps:{innerHTML:e._s(e.rendered)}})])},AQ=[],OQ=ie(MQ,DQ,AQ,!1,null,null,null,null);const Cu=OQ.exports,zQ={};var EQ=function(){var e=this,r=e._self._c;return r("div",{staticClass:"row"},[e._t("default")],2)},jQ=[],IQ=ie(zQ,EQ,jQ,!1,null,null,null,null);const lp=IQ.exports,NQ="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ2IiBoZWlnaHQ9IjE1MyIgdmlld0JveD0iMCAwIDE0NiAxNTMiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xMTUuMDAxIDMzLjQ5OTZDMTE1LjAwMSA0MC4xMjczIDEyMC4zNzQgNDUuNSAxMjcuMDAxIDQ1LjVDMTMzLjYyOCA0NS41IDEzOS4wMDEgNDAuMTI3MyAxMzkuMDAxIDMzLjQ5OTZDMTM5LjAwMSAyNi44NzI3IDEzMy42MjggMjEuNSAxMjcuMDAxIDIxLjVDMTIwLjM3NCAyMS41IDExNS4wMDEgMjYuODcyNyAxMTUuMDAxIDMzLjQ5OTZaIiBmaWxsPSIjN0NEMEIwIi8+CjxwYXRoIGQ9Ik0xMjcuOTA3IDI2LjkzMjNMMTI5LjEwOCAzMC42MzA0SDEzMi45OThDMTMzLjYwMyAzMC42MzA0IDEzMy44NTYgMzEuNDA1MyAxMzMuMzY1IDMxLjc2MjFMMTMwLjIxOSAzNC4wNDc0TDEzMS40MjEgMzcuNzQ2NEMxMzEuNjA4IDM4LjMyMTkgMTMwLjk0OSAzOC44MDA3IDEzMC40NTkgMzguNDQ1N0wxMjcuMzEyIDM2LjE1ODdMMTI0LjE2NiAzOC40NDU3QzEyMy42NzcgMzguODAwNyAxMjMuMDE3IDM4LjMyMTkgMTIzLjIwNCAzNy43NDY0TDEyNC40MDYgMzQuMDQ3NEwxMjEuMjYgMzEuNzYyMUMxMjAuNzcgMzEuNDA1MyAxMjEuMDIyIDMwLjYzMDQgMTIxLjYyNyAzMC42MzA0SDEyNS41MTZMMTI2LjcxOCAyNi45MzIzQzEyNi45MDYgMjYuMzU1OSAxMjcuNzIgMjYuMzU1OSAxMjcuOTA3IDI2LjkzMjNaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNODIuMzQ5MSAwLjc5Mjk2OUM3OS44NTk3IDguMjYwOTcgNzQuMTkwNCA5LjA5MDI5IDc0LjE5MDQgOS4wOTAyOUM3NC4xOTA0IDkuMDkwMjkgNzkuODU5NyA5LjkyMDk3IDgyLjM0OTEgMTcuMzg3NkM4NC44Mzg0IDkuOTIwOTcgOTAuNTA3OCA5LjA5MDI5IDkwLjUwNzggOS4wOTAyOUM5MC41MDc4IDkuMDkwMjkgODQuODM4NCA4LjI2MDk3IDgyLjM0OTEgMC43OTI5NjlaIiBmaWxsPSIjREVFRkZBIi8+CjxwYXRoIGQ9Ik00OS4zNTA0IDEzNS43OTNDNDYuODU5OCAxNDMuMjYxIDQxLjE5MDQgMTQ0LjA5IDQxLjE5MDQgMTQ0LjA5QzQxLjE5MDQgMTQ0LjA5IDQ2Ljg1OTggMTQ0LjkyIDQ5LjM1MDQgMTUyLjM4OEM1MS44Mzg0IDE0NC45MiA1Ny41MDkxIDE0NC4wOSA1Ny41MDkxIDE0NC4wOUM1Ny41MDkxIDE0NC4wOSA1MS44Mzg0IDE0My4yNjEgNDkuMzUwNCAxMzUuNzkzWiIgZmlsbD0iI0RFRUZGQSIvPgo8cGF0aCBkPSJNMTM5LjkwMiA5My43OTNDMTM4LjE1OCA5OS4wMjEgMTM0LjE5IDk5LjYwMjMgMTM0LjE5IDk5LjYwMjNDMTM0LjE5IDk5LjYwMjMgMTM4LjE1OCAxMDAuMTgyIDEzOS45MDIgMTA1LjQwOUMxNDEuNjQ1IDEwMC4xODIgMTQ1LjYxMyA5OS42MDIzIDE0NS42MTMgOTkuNjAyM0MxNDUuNjEzIDk5LjYwMjMgMTQxLjY0NSA5OS4wMjEgMTM5LjkwMiA5My43OTNaIiBmaWxsPSIjREVFRkZBIi8+CjxwYXRoIGQ9Ik04LjkwMTEyIDMwLjc5M0M3LjE1OTc5IDM2LjAxOTYgMy4xOTA0MyAzNi42MDEgMy4xOTA0MyAzNi42MDFDMy4xOTA0MyAzNi42MDEgNy4xNTk3OSAzNy4xODEgOC45MDExMiA0Mi40MDc2QzEwLjY0MzggMzcuMTgxIDE0LjYxMzEgMzYuNjAxIDE0LjYxMzEgMzYuNjAxQzE0LjYxMzEgMzYuNjAxIDEwLjY0MzggMzYuMDE5NiA4LjkwMTEyIDMwLjc5M1oiIGZpbGw9IiNERUVGRkEiLz4KPHBhdGggZD0iTTEyMS45NTYgNzUuNjcwMkMxMjEuOTU2IDEwNC44NzYgOTguMjc4NSAxMjguNTUzIDY5LjA3MzIgMTI4LjU1M0MzOS44Njc5IDEyOC41NTMgMTYuMTkwNCAxMDQuODc2IDE2LjE5MDQgNzUuNjcwMkMxNi4xOTA0IDQ2LjQ2NDkgMzkuODY3OSAyMi43OTMgNjkuMDczMiAyMi43OTNDOTguMjc4NSAyMi43OTMgMTIxLjk1NiA0Ni40NjQ5IDEyMS45NTYgNzUuNjcwMloiIGZpbGw9IiNERUVGRkEiLz4KPHBhdGggZD0iTTQ3LjYzNjQgODEuOTYyNUw2My4yNDYzIDkzLjM2ODdDNjQuNzg5NyA5NC40OTYyIDY2Ljk1NyA5NC4yMDA3IDY4LjEzOTMgOTIuNjk1NUw5MS42OTA4IDYyLjc4NDFDOTIuOTA1OCA2MS4yMzUxIDkyLjY0MzEgNTkuMDAyMSA5MS4wOTQxIDU3Ljc4N0M4OS41NTA3IDU2LjU3MTkgODcuMzE3NiA1Ni44MzQ3IDg2LjEwMjYgNTguMzc4MUw2NC42NzQ3IDg1LjYwMjFMNTEuODM0NiA3Ni4yMTU1QzUwLjI0NzMgNzUuMDYwNiA0OC4wMTk2IDc1LjQwNTUgNDYuODU5MiA3Ni45OTI3QzQ1LjcwNDQgNzguNTc5OSA0Ni4wNDkyIDgwLjgwMjEgNDcuNjM2NCA4MS45NjI1WiIgZmlsbD0iIzREODJDNiIvPgo8cGF0aCBkPSJNMC40MDAzOTEgMTI1Ljc1QzAuNDAwMzkxIDEzMy42MiA2Ljc4MDM5IDE0MCAxNC42NTEgMTQwQzIyLjUyMjUgMTQwIDI4LjkwMzQgMTMzLjYyIDI4LjkwMzQgMTI1Ljc1QzI4LjkwMzQgMTE3Ljg3OSAyMi41MjI1IDExMS41IDE0LjY1MSAxMTEuNUM2Ljc4MDM5IDExMS41IDAuNDAwMzkxIDExNy44NzkgMC40MDAzOTEgMTI1Ljc1WiIgZmlsbD0iIzc3QTlGMiIvPgo8cGF0aCBkPSJNMTYuMzE4NyAxMzAuMzI5QzE0LjE2MjUgMTMwLjM2NiAxMS45Nzk0IDEzMC4zOTUgOS45OTY5NSAxMzAuMjU4QzkuMzY5ODggMTMwLjIxNSA4LjgyNyAxMjkuMjE3IDkuNTg5MzQgMTI4LjkwM0M5LjI2ODY0IDEyOC43MzggOC45NDM1IDEyOC41NzkgOC44MDM3NSAxMjguMjE5QzguNjcxMTcgMTI3Ljg4IDguODI5NyAxMjcuNDE3IDkuMTg1MzQgMTI3LjMzQzguNDM3MzMgMTI3LjUxNCA4LjE0MjYxIDEyNi4zMjggOC43MjU3OCAxMjUuOTQ1QzguNDE2NzMgMTI1LjY4MiA4LjE1OTY1IDEyNS4zMzUgOC4wOTUxNSAxMjQuOTM1QzguMDI5NzUgMTI0LjUzNCA4LjE5MzY4IDEyNC4wODIgOC41NTAyMiAxMjMuODg4QzguNzg0MDMgMTIzLjc2MSA5LjA2MDg0IDEyMy43NTcgOS4zMjY4OSAxMjMuNzU1QzEwLjIyMzYgMTIzLjc0OCAxMS4xMjAzIDEyMy43NDEgMTIuMDE3IDEyMy43MzRDMTEuNzc0MiAxMjIuMzMyIDExLjcwMDggMTIwLjgwMyAxMi40MTM4IDExOS41NzFDMTIuNjI4OCAxMTkuMTk5IDEzLjIwNTggMTE4Ljc1NSAxMy42NjM1IDExOS4wNEMxNC4wOTI2IDExOS4zMDggMTMuOTc0MyAxMTkuOTczIDEzLjk1MTkgMTIwLjM5M0MxMy44NjMzIDEyMi4xMzggMTQuODU1OSAxMjMuODkzIDE2LjM5NzYgMTI0LjcxNUMxNi4zOTc2IDEyNC43MTUgMTYuMjk1NCAxMjguNDMzIDE2LjMxODcgMTMwLjMyOVoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xNy4xMDI1IDEzMC4zMTVIMjAuMzYxNVYxMjQuNzA3SDE3LjEwMjVWMTMwLjMxNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=",Rie="",LQ={props:["title","link","url"],data(){return{linkText:`View All ${this.link}`}},methods:{openLink(){window.open(this.url,"_blank")}}};var FQ=function(){var e=this,r=e._self._c;return r("div",{staticClass:"container content"},[r("img",{attrs:{src:NQ,alt:"empty table"}}),r("span",{staticClass:"title"},[e._v(" "+e._s(e.$t(e.title))+" ")]),e.url!==""?r("b-link",{on:{click:function(i){return e.openLink()}}},[e._v(" "+e._s(e.$t(e.linkText))+" ")]):e._e()],1)},BQ=[],RQ=ie(LQ,FQ,BQ,!1,null,"7665402d",null,null);const up=RQ.exports,HQ="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE2IDQuOEwxLjA2NjY3IDAuMzIwMDAzVjBIMFYxMC42NjY3VjE1LjczMzNIMS4wNjY2N1YxMC4yNjY3TDE2IDQuOFoiIGZpbGw9IiM1NTYyNzEiLz4KPC9zdmc+Cg==",Hie="",VQ=xn(),qQ={components:{formEmpty:up,Recommendations:t=>{var e;t(((e=window.SharedComponents)==null?void 0:e.Recommendations)||{template:"<span></span>"})}},mixins:[VQ,bc],data(){var t,e;return{countInProgress:"0",countOverdue:"0",countResponse:"0",fields:[],data:[],tableData:[],orderBy:"ID",order_direction:"DESC",status:"",showTable:!0,tableHeaders:[],pmqlSearch:"",sortOrder:[{field:"ID",sortField:"ID",direction:"DESC"}],advancedFilter:"",tasksPreview:((t=window.SharedComponents)==null?void 0:t.TasksHome)||{},taskTooltip:((e=window.SharedComponents)==null?void 0:e.TaskTooltip)||{},rowPosition:{},ellipsisShow:!1,isTooltipVisible:!1,disableRuleTooltip:!1,hiderTimer:null}},computed:{noDataUrl(){var t,e;return`${(e=(t=window.ProcessMaker)==null?void 0:t.app)==null?void 0:e.url}/tasks`}},mounted(){this.setupColumns(),this.pmql=`(user_id = ${ProcessMaker.user.id}) AND (status = "In Progress")`,this.fetch(),this.$root.$on("dropdownSelectionTask",this.fetchData),this.$root.$on("searchTask",this.fetchSearch)},methods:{getSortParam(){return this.sortOrder instanceof Array&&this.sortOrder.length>0?`&order_by=${this.sortOrder[0].sortField}&order_direction=${this.sortOrder[0].direction}`:""},fetch(){Vue.nextTick(()=>{let t="",e="";this.pmql!==void 0&&(t=this.pmql),this.pmqlSearch&&(t=`${t} AND ${this.pmqlSearch}`),this.filterDropdowns!==void 0&&(e=this.filterDropdowns);let{filter:r}=this,i="";r&&r.length&&(r.isPMQL()?(t=`(${t}) and (${r})`,r=""):i=`&user_id=${window.ProcessMaker.user.id}&filter=${r}&statusfilter=ACTIVE,CLOSED`),this.previousFilter!==r&&(this.page=1),this.previousFilter=r,this.previousPmql!==t&&(this.page=1),this.previousPmql=t;const a=[];ProcessMaker.apiClient.get(`tasks?page=${this.page}&include=process,processRequest,processRequest.user,user,data&pmql=${encodeURIComponent(t)}
356
+ | <mf-value> '>' '='? <mf-name> '>' '='? <mf-value>`},"mf-value":{syntax:"<number> | <dimension> | <ident> | <ratio>"},"min()":{syntax:"min( <calc-sum># )"},"minmax()":{syntax:"minmax( [ <length> | <percentage> | min-content | max-content | auto ] , [ <length> | <percentage> | <flex> | min-content | max-content | auto ] )"},"named-color":{syntax:"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"},"namespace-prefix":{syntax:"<ident>"},"ns-prefix":{syntax:"[ <ident-token> | '*' ]? '|'"},"number-percentage":{syntax:"<number> | <percentage>"},"numeric-figure-values":{syntax:"[ lining-nums | oldstyle-nums ]"},"numeric-fraction-values":{syntax:"[ diagonal-fractions | stacked-fractions ]"},"numeric-spacing-values":{syntax:"[ proportional-nums | tabular-nums ]"},nth:{syntax:"<an-plus-b> | even | odd"},"opacity()":{syntax:"opacity( [ <number-percentage> ] )"},"overflow-position":{syntax:"unsafe | safe"},"outline-radius":{syntax:"<length> | <percentage>"},"page-body":{syntax:"<declaration>? [ ; <page-body> ]? | <page-margin-box> <page-body>"},"page-margin-box":{syntax:"<page-margin-box-type> '{' <declaration-list> '}'"},"page-margin-box-type":{syntax:"@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":{syntax:"[ <page-selector># ]?"},"page-selector":{syntax:"<pseudo-page>+ | <ident> <pseudo-page>*"},"path()":{syntax:"path( [ <fill-rule>, ]? <string> )"},"paint()":{syntax:"paint( <ident>, <declaration-value>? )"},"perspective()":{syntax:"perspective( <length> )"},"polygon()":{syntax:"polygon( <fill-rule>? , [ <length-percentage> <length-percentage> ]# )"},position:{syntax:"[ [ left | center | right ] || [ top | center | bottom ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]? | [ [ left | right ] <length-percentage> ] && [ [ top | bottom ] <length-percentage> ] ]"},"pseudo-class-selector":{syntax:"':' <ident-token> | ':' <function-token> <any-value> ')'"},"pseudo-element-selector":{syntax:"':' <pseudo-class-selector>"},"pseudo-page":{syntax:": [ left | right | first | blank ]"},quote:{syntax:"open-quote | close-quote | no-open-quote | no-close-quote"},"radial-gradient()":{syntax:"radial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list> )"},"relative-selector":{syntax:"<combinator>? <complex-selector>"},"relative-selector-list":{syntax:"<relative-selector>#"},"relative-size":{syntax:"larger | smaller"},"repeat-style":{syntax:"repeat-x | repeat-y | [ repeat | space | round | no-repeat ]{1,2}"},"repeating-linear-gradient()":{syntax:"repeating-linear-gradient( [ <angle> | to <side-or-corner> ]? , <color-stop-list> )"},"repeating-radial-gradient()":{syntax:"repeating-radial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list> )"},"rgb()":{syntax:"rgb( <percentage>{3} [ / <alpha-value> ]? ) | rgb( <number>{3} [ / <alpha-value> ]? ) | rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? )"},"rgba()":{syntax:"rgba( <percentage>{3} [ / <alpha-value> ]? ) | rgba( <number>{3} [ / <alpha-value> ]? ) | rgba( <percentage>#{3} , <alpha-value>? ) | rgba( <number>#{3} , <alpha-value>? )"},"rotate()":{syntax:"rotate( [ <angle> | <zero> ] )"},"rotate3d()":{syntax:"rotate3d( <number> , <number> , <number> , [ <angle> | <zero> ] )"},"rotateX()":{syntax:"rotateX( [ <angle> | <zero> ] )"},"rotateY()":{syntax:"rotateY( [ <angle> | <zero> ] )"},"rotateZ()":{syntax:"rotateZ( [ <angle> | <zero> ] )"},"saturate()":{syntax:"saturate( <number-percentage> )"},"scale()":{syntax:"scale( <number> , <number>? )"},"scale3d()":{syntax:"scale3d( <number> , <number> , <number> )"},"scaleX()":{syntax:"scaleX( <number> )"},"scaleY()":{syntax:"scaleY( <number> )"},"scaleZ()":{syntax:"scaleZ( <number> )"},"self-position":{syntax:"center | start | end | self-start | self-end | flex-start | flex-end"},"shape-radius":{syntax:"<length-percentage> | closest-side | farthest-side"},"skew()":{syntax:"skew( [ <angle> | <zero> ] , [ <angle> | <zero> ]? )"},"skewX()":{syntax:"skewX( [ <angle> | <zero> ] )"},"skewY()":{syntax:"skewY( [ <angle> | <zero> ] )"},"sepia()":{syntax:"sepia( <number-percentage> )"},shadow:{syntax:"inset? && <length>{2,4} && <color>?"},"shadow-t":{syntax:"[ <length>{2,3} && <color>? ]"},shape:{syntax:"rect(<top>, <right>, <bottom>, <left>)"},"shape-box":{syntax:"<box> | margin-box"},"side-or-corner":{syntax:"[ left | right ] || [ top | bottom ]"},"single-animation":{syntax:"<time> || <timing-function> || <time> || <single-animation-iteration-count> || <single-animation-direction> || <single-animation-fill-mode> || <single-animation-play-state> || [ none | <keyframes-name> ]"},"single-animation-direction":{syntax:"normal | reverse | alternate | alternate-reverse"},"single-animation-fill-mode":{syntax:"none | forwards | backwards | both"},"single-animation-iteration-count":{syntax:"infinite | <number>"},"single-animation-play-state":{syntax:"running | paused"},"single-transition":{syntax:"[ none | <single-transition-property> ] || <time> || <timing-function> || <time>"},"single-transition-property":{syntax:"all | <custom-ident>"},size:{syntax:"closest-side | farthest-side | closest-corner | farthest-corner | <length> | <length-percentage>{2}"},"step-position":{syntax:"jump-start | jump-end | jump-none | jump-both | start | end"},"step-timing-function":{syntax:"step-start | step-end | steps(<integer>[, <step-position>]?)"},"subclass-selector":{syntax:"<id-selector> | <class-selector> | <attribute-selector> | <pseudo-class-selector>"},"supports-condition":{syntax:"not <supports-in-parens> | <supports-in-parens> [ and <supports-in-parens> ]* | <supports-in-parens> [ or <supports-in-parens> ]*"},"supports-in-parens":{syntax:"( <supports-condition> ) | <supports-feature> | <general-enclosed>"},"supports-feature":{syntax:"<supports-decl> | <supports-selector-fn>"},"supports-decl":{syntax:"( <declaration> )"},"supports-selector-fn":{syntax:"selector( <complex-selector> )"},symbol:{syntax:"<string> | <image> | <custom-ident>"},target:{syntax:"<target-counter()> | <target-counters()> | <target-text()>"},"target-counter()":{syntax:"target-counter( [ <string> | <url> ] , <custom-ident> , <counter-style>? )"},"target-counters()":{syntax:"target-counters( [ <string> | <url> ] , <custom-ident> , <string> , <counter-style>? )"},"target-text()":{syntax:"target-text( [ <string> | <url> ] , [ content | before | after | first-letter ]? )"},"time-percentage":{syntax:"<time> | <percentage>"},"timing-function":{syntax:"linear | <cubic-bezier-timing-function> | <step-timing-function>"},"track-breadth":{syntax:"<length-percentage> | <flex> | min-content | max-content | auto"},"track-list":{syntax:"[ <line-names>? [ <track-size> | <track-repeat> ] ]+ <line-names>?"},"track-repeat":{syntax:"repeat( [ <positive-integer> ] , [ <line-names>? <track-size> ]+ <line-names>? )"},"track-size":{syntax:"<track-breadth> | minmax( <inflexible-breadth> , <track-breadth> ) | fit-content( [ <length> | <percentage> ] )"},"transform-function":{syntax:"<matrix()> | <translate()> | <translateX()> | <translateY()> | <scale()> | <scaleX()> | <scaleY()> | <rotate()> | <skew()> | <skewX()> | <skewY()> | <matrix3d()> | <translate3d()> | <translateZ()> | <scale3d()> | <scaleZ()> | <rotate3d()> | <rotateX()> | <rotateY()> | <rotateZ()> | <perspective()>"},"transform-list":{syntax:"<transform-function>+"},"translate()":{syntax:"translate( <length-percentage> , <length-percentage>? )"},"translate3d()":{syntax:"translate3d( <length-percentage> , <length-percentage> , <length> )"},"translateX()":{syntax:"translateX( <length-percentage> )"},"translateY()":{syntax:"translateY( <length-percentage> )"},"translateZ()":{syntax:"translateZ( <length> )"},"type-or-unit":{syntax:"string | color | url | integer | number | length | angle | time | frequency | cap | ch | em | ex | ic | lh | rlh | rem | vb | vi | vw | vh | vmin | vmax | mm | Q | cm | in | pt | pc | px | deg | grad | rad | turn | ms | s | Hz | kHz | %"},"type-selector":{syntax:"<wq-name> | <ns-prefix>? '*'"},"var()":{syntax:"var( <custom-property-name> , <declaration-value>? )"},"viewport-length":{syntax:"auto | <length-percentage>"},"wq-name":{syntax:"<ns-prefix>? <ident-token>"}},_q={atrules:{charset:{prelude:"<string>"},"font-face":{descriptors:{"unicode-range":{comment:"replaces <unicode-range>, an old production name",syntax:"<urange>#"}}}},properties:{"-moz-background-clip":{comment:"deprecated syntax in old Firefox, https://developer.mozilla.org/en/docs/Web/CSS/background-clip",syntax:"padding | border"},"-moz-border-radius-bottomleft":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-left-radius",syntax:"<'border-bottom-left-radius'>"},"-moz-border-radius-bottomright":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius",syntax:"<'border-bottom-right-radius'>"},"-moz-border-radius-topleft":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-left-radius",syntax:"<'border-top-left-radius'>"},"-moz-border-radius-topright":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius",syntax:"<'border-bottom-right-radius'>"},"-moz-control-character-visibility":{comment:"firefox specific keywords, https://bugzilla.mozilla.org/show_bug.cgi?id=947588",syntax:"visible | hidden"},"-moz-osx-font-smoothing":{comment:"misssed old syntax https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth",syntax:"auto | grayscale"},"-moz-user-select":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/user-select",syntax:"none | text | all | -moz-none"},"-ms-flex-align":{comment:"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-align",syntax:"start | end | center | baseline | stretch"},"-ms-flex-item-align":{comment:"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-align",syntax:"auto | start | end | center | baseline | stretch"},"-ms-flex-line-pack":{comment:"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-line-pack",syntax:"start | end | center | justify | distribute | stretch"},"-ms-flex-negative":{comment:"misssed old syntax implemented in IE; TODO: find references for comfirmation",syntax:"<'flex-shrink'>"},"-ms-flex-pack":{comment:"misssed old syntax implemented in IE, https://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flex-pack",syntax:"start | end | center | justify | distribute"},"-ms-flex-order":{comment:"misssed old syntax implemented in IE; https://msdn.microsoft.com/en-us/library/jj127303(v=vs.85).aspx",syntax:"<integer>"},"-ms-flex-positive":{comment:"misssed old syntax implemented in IE; TODO: find references for comfirmation",syntax:"<'flex-grow'>"},"-ms-flex-preferred-size":{comment:"misssed old syntax implemented in IE; TODO: find references for comfirmation",syntax:"<'flex-basis'>"},"-ms-interpolation-mode":{comment:"https://msdn.microsoft.com/en-us/library/ff521095(v=vs.85).aspx",syntax:"nearest-neighbor | bicubic"},"-ms-grid-column-align":{comment:"add this property first since it uses as fallback for flexbox, https://msdn.microsoft.com/en-us/library/windows/apps/hh466338.aspx",syntax:"start | end | center | stretch"},"-ms-grid-row-align":{comment:"add this property first since it uses as fallback for flexbox, https://msdn.microsoft.com/en-us/library/windows/apps/hh466348.aspx",syntax:"start | end | center | stretch"},"-ms-hyphenate-limit-last":{comment:"misssed old syntax implemented in IE; https://www.w3.org/TR/css-text-4/#hyphenate-line-limits",syntax:"none | always | column | page | spread"},"-webkit-appearance":{comment:"webkit specific keywords",references:["http://css-infos.net/property/-webkit-appearance"],syntax:"none | button | button-bevel | caps-lock-indicator | caret | checkbox | default-button | inner-spin-button | listbox | listitem | media-controls-background | media-controls-fullscreen-background | media-current-time-display | media-enter-fullscreen-button | media-exit-fullscreen-button | media-fullscreen-button | media-mute-button | media-overlay-play-button | media-play-button | media-seek-back-button | media-seek-forward-button | media-slider | media-sliderthumb | media-time-remaining-display | media-toggle-closed-captions-button | media-volume-slider | media-volume-slider-container | media-volume-sliderthumb | menulist | menulist-button | menulist-text | menulist-textfield | meter | progress-bar | progress-bar-value | push-button | radio | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbargripper-horizontal | scrollbargripper-vertical | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | searchfield-cancel-button | searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical | square-button | textarea | textfield | -apple-pay-button"},"-webkit-background-clip":{comment:"https://developer.mozilla.org/en/docs/Web/CSS/background-clip",syntax:"[ <box> | border | padding | content | text ]#"},"-webkit-column-break-after":{comment:"added, http://help.dottoro.com/lcrthhhv.php",syntax:"always | auto | avoid"},"-webkit-column-break-before":{comment:"added, http://help.dottoro.com/lcxquvkf.php",syntax:"always | auto | avoid"},"-webkit-column-break-inside":{comment:"added, http://help.dottoro.com/lclhnthl.php",syntax:"always | auto | avoid"},"-webkit-font-smoothing":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth",syntax:"auto | none | antialiased | subpixel-antialiased"},"-webkit-mask-box-image":{comment:"missed; https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-mask-box-image",syntax:"[ <url> | <gradient> | none ] [ <length-percentage>{4} <-webkit-mask-box-repeat>{2} ]?"},"-webkit-print-color-adjust":{comment:"missed",references:["https://developer.mozilla.org/en/docs/Web/CSS/-webkit-print-color-adjust"],syntax:"economy | exact"},"-webkit-text-security":{comment:"missed; http://help.dottoro.com/lcbkewgt.php",syntax:"none | circle | disc | square"},"-webkit-user-drag":{comment:"missed; http://help.dottoro.com/lcbixvwm.php",syntax:"none | element | auto"},"-webkit-user-select":{comment:"auto is supported by old webkit, https://developer.mozilla.org/en-US/docs/Web/CSS/user-select",syntax:"auto | none | text | all"},"alignment-baseline":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#AlignmentBaselineProperty"],syntax:"auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical"},"baseline-shift":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#BaselineShiftProperty"],syntax:"baseline | sub | super | <svg-length>"},behavior:{comment:"added old IE property https://msdn.microsoft.com/en-us/library/ms530723(v=vs.85).aspx",syntax:"<url>+"},"clip-rule":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/masking.html#ClipRuleProperty"],syntax:"nonzero | evenodd"},cue:{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<'cue-before'> <'cue-after'>?"},"cue-after":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<url> <decibel>? | none"},"cue-before":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<url> <decibel>? | none"},cursor:{comment:"added legacy keywords: hand, -webkit-grab. -webkit-grabbing, -webkit-zoom-in, -webkit-zoom-out, -moz-grab, -moz-grabbing, -moz-zoom-in, -moz-zoom-out",references:["https://www.sitepoint.com/css3-cursor-styles/"],syntax:"[ [ <url> [ <x> <y> ]? , ]* [ auto | default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | grab | grabbing | hand | -webkit-grab | -webkit-grabbing | -webkit-zoom-in | -webkit-zoom-out | -moz-grab | -moz-grabbing | -moz-zoom-in | -moz-zoom-out ] ]"},display:{comment:"extended with -ms-flexbox",syntax:"| <-non-standard-display>"},position:{comment:"extended with -webkit-sticky",syntax:"| -webkit-sticky"},"dominant-baseline":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#DominantBaselineProperty"],syntax:"auto | use-script | no-change | reset-size | ideographic | alphabetic | hanging | mathematical | central | middle | text-after-edge | text-before-edge"},"image-rendering":{comment:"extended with <-non-standard-image-rendering>, added SVG keywords optimizeSpeed and optimizeQuality",references:["https://developer.mozilla.org/en/docs/Web/CSS/image-rendering","https://www.w3.org/TR/SVG/painting.html#ImageRenderingProperty"],syntax:"| optimizeSpeed | optimizeQuality | <-non-standard-image-rendering>"},fill:{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#FillProperty"],syntax:"<paint>"},"fill-opacity":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#FillProperty"],syntax:"<number-zero-one>"},"fill-rule":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#FillProperty"],syntax:"nonzero | evenodd"},filter:{comment:"extend with IE legacy syntaxes",syntax:"| <-ms-filter-function-list>"},"glyph-orientation-horizontal":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#GlyphOrientationHorizontalProperty"],syntax:"<angle>"},"glyph-orientation-vertical":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#GlyphOrientationVerticalProperty"],syntax:"<angle>"},kerning:{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#KerningProperty"],syntax:"auto | <svg-length>"},"letter-spacing":{comment:"fix syntax <length> -> <length-percentage>",references:["https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/letter-spacing"],syntax:"normal | <length-percentage>"},marker:{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],syntax:"none | <url>"},"marker-end":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],syntax:"none | <url>"},"marker-mid":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],syntax:"none | <url>"},"marker-start":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#MarkerProperties"],syntax:"none | <url>"},"max-width":{comment:"fix auto -> none (https://github.com/mdn/data/pull/431); extend by non-standard width keywords https://developer.mozilla.org/en-US/docs/Web/CSS/max-width",syntax:"none | <length-percentage> | min-content | max-content | fit-content(<length-percentage>) | <-non-standard-width>"},width:{comment:"per spec fit-content should be a function, however browsers are supporting it as a keyword (https://github.com/csstree/stylelint-validator/issues/29)",syntax:"| fit-content | -moz-fit-content | -webkit-fit-content"},"min-width":{comment:"extend by non-standard width keywords https://developer.mozilla.org/en-US/docs/Web/CSS/width",syntax:"auto | <length-percentage> | min-content | max-content | fit-content(<length-percentage>) | <-non-standard-width>"},overflow:{comment:"extend by vendor keywords https://developer.mozilla.org/en-US/docs/Web/CSS/overflow",syntax:"| <-non-standard-overflow>"},pause:{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<'pause-before'> <'pause-after'>?"},"pause-after":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<time> | none | x-weak | weak | medium | strong | x-strong"},"pause-before":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<time> | none | x-weak | weak | medium | strong | x-strong"},rest:{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<'rest-before'> <'rest-after'>?"},"rest-after":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<time> | none | x-weak | weak | medium | strong | x-strong"},"rest-before":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<time> | none | x-weak | weak | medium | strong | x-strong"},"shape-rendering":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#ShapeRenderingPropert"],syntax:"auto | optimizeSpeed | crispEdges | geometricPrecision"},src:{comment:"added @font-face's src property https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/src",syntax:"[ <url> [ format( <string># ) ]? | local( <family-name> ) ]#"},speak:{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"auto | none | normal"},"speak-as":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"normal | spell-out || digits || [ literal-punctuation | no-punctuation ]"},stroke:{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<paint>"},"stroke-dasharray":{comment:"added SVG property; a list of comma and/or white space separated <length>s and <percentage>s",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"none | [ <svg-length>+ ]#"},"stroke-dashoffset":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<svg-length>"},"stroke-linecap":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"butt | round | square"},"stroke-linejoin":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"miter | round | bevel"},"stroke-miterlimit":{comment:"added SVG property (<miterlimit> = <number-one-or-greater>) ",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<number-one-or-greater>"},"stroke-opacity":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<number-zero-one>"},"stroke-width":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/painting.html#StrokeProperties"],syntax:"<svg-length>"},"text-anchor":{comment:"added SVG property",references:["https://www.w3.org/TR/SVG/text.html#TextAlignmentProperties"],syntax:"start | middle | end"},"unicode-bidi":{comment:"added prefixed keywords https://developer.mozilla.org/en-US/docs/Web/CSS/unicode-bidi",syntax:"| -moz-isolate | -moz-isolate-override | -moz-plaintext | -webkit-isolate | -webkit-isolate-override | -webkit-plaintext"},"unicode-range":{comment:"added missed property https://developer.mozilla.org/en-US/docs/Web/CSS/%40font-face/unicode-range",syntax:"<urange>#"},"voice-balance":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<number> | left | center | right | leftwards | rightwards"},"voice-duration":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"auto | <time>"},"voice-family":{comment:"<name> -> <family-name>, https://www.w3.org/TR/css3-speech/#property-index",syntax:"[ [ <family-name> | <generic-voice> ] , ]* [ <family-name> | <generic-voice> ] | preserve"},"voice-pitch":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<frequency> && absolute | [ [ x-low | low | medium | high | x-high ] || [ <frequency> | <semitones> | <percentage> ] ]"},"voice-range":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"<frequency> && absolute | [ [ x-low | low | medium | high | x-high ] || [ <frequency> | <semitones> | <percentage> ] ]"},"voice-rate":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"[ normal | x-slow | slow | medium | fast | x-fast ] || <percentage>"},"voice-stress":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"normal | strong | moderate | none | reduced"},"voice-volume":{comment:"https://www.w3.org/TR/css3-speech/#property-index",syntax:"silent | [ [ x-soft | soft | medium | loud | x-loud ] || <decibel> ]"},"writing-mode":{comment:"extend with SVG keywords",syntax:"| <svg-writing-mode>"}},syntaxes:{"-legacy-gradient":{comment:"added collection of legacy gradient syntaxes",syntax:"<-webkit-gradient()> | <-legacy-linear-gradient> | <-legacy-repeating-linear-gradient> | <-legacy-radial-gradient> | <-legacy-repeating-radial-gradient>"},"-legacy-linear-gradient":{comment:"like standard syntax but w/o `to` keyword https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient",syntax:"-moz-linear-gradient( <-legacy-linear-gradient-arguments> ) | -webkit-linear-gradient( <-legacy-linear-gradient-arguments> ) | -o-linear-gradient( <-legacy-linear-gradient-arguments> )"},"-legacy-repeating-linear-gradient":{comment:"like standard syntax but w/o `to` keyword https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient",syntax:"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> ) | -webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> ) | -o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )"},"-legacy-linear-gradient-arguments":{comment:"like standard syntax but w/o `to` keyword https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient",syntax:"[ <angle> | <side-or-corner> ]? , <color-stop-list>"},"-legacy-radial-gradient":{comment:"deprecated syntax that implemented by some browsers https://www.w3.org/TR/2011/WD-css3-images-20110908/#radial-gradients",syntax:"-moz-radial-gradient( <-legacy-radial-gradient-arguments> ) | -webkit-radial-gradient( <-legacy-radial-gradient-arguments> ) | -o-radial-gradient( <-legacy-radial-gradient-arguments> )"},"-legacy-repeating-radial-gradient":{comment:"deprecated syntax that implemented by some browsers https://www.w3.org/TR/2011/WD-css3-images-20110908/#radial-gradients",syntax:"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> ) | -webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> ) | -o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )"},"-legacy-radial-gradient-arguments":{comment:"deprecated syntax that implemented by some browsers https://www.w3.org/TR/2011/WD-css3-images-20110908/#radial-gradients",syntax:"[ <position> , ]? [ [ [ <-legacy-radial-gradient-shape> || <-legacy-radial-gradient-size> ] | [ <length> | <percentage> ]{2} ] , ]? <color-stop-list>"},"-legacy-radial-gradient-size":{comment:"before a standard it contains 2 extra keywords (`contain` and `cover`) https://www.w3.org/TR/2011/WD-css3-images-20110908/#ltsize",syntax:"closest-side | closest-corner | farthest-side | farthest-corner | contain | cover"},"-legacy-radial-gradient-shape":{comment:"define to double sure it doesn't extends in future https://www.w3.org/TR/2011/WD-css3-images-20110908/#ltshape",syntax:"circle | ellipse"},"-non-standard-font":{comment:"non standard fonts",references:["https://webkit.org/blog/3709/using-the-system-font-in-web-content/"],syntax:"-apple-system-body | -apple-system-headline | -apple-system-subheadline | -apple-system-caption1 | -apple-system-caption2 | -apple-system-footnote | -apple-system-short-body | -apple-system-short-headline | -apple-system-short-subheadline | -apple-system-short-caption1 | -apple-system-short-footnote | -apple-system-tall-body"},"-non-standard-color":{comment:"non standard colors",references:["http://cssdot.ru/%D0%A1%D0%BF%D1%80%D0%B0%D0%B2%D0%BE%D1%87%D0%BD%D0%B8%D0%BA_CSS/color-i305.html","https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Mozilla_Color_Preference_Extensions"],syntax:"-moz-ButtonDefault | -moz-ButtonHoverFace | -moz-ButtonHoverText | -moz-CellHighlight | -moz-CellHighlightText | -moz-Combobox | -moz-ComboboxText | -moz-Dialog | -moz-DialogText | -moz-dragtargetzone | -moz-EvenTreeRow | -moz-Field | -moz-FieldText | -moz-html-CellHighlight | -moz-html-CellHighlightText | -moz-mac-accentdarkestshadow | -moz-mac-accentdarkshadow | -moz-mac-accentface | -moz-mac-accentlightesthighlight | -moz-mac-accentlightshadow | -moz-mac-accentregularhighlight | -moz-mac-accentregularshadow | -moz-mac-chrome-active | -moz-mac-chrome-inactive | -moz-mac-focusring | -moz-mac-menuselect | -moz-mac-menushadow | -moz-mac-menutextselect | -moz-MenuHover | -moz-MenuHoverText | -moz-MenuBarText | -moz-MenuBarHoverText | -moz-nativehyperlinktext | -moz-OddTreeRow | -moz-win-communicationstext | -moz-win-mediatext | -moz-activehyperlinktext | -moz-default-background-color | -moz-default-color | -moz-hyperlinktext | -moz-visitedhyperlinktext | -webkit-activelink | -webkit-focus-ring-color | -webkit-link | -webkit-text"},"-non-standard-image-rendering":{comment:"non-standard keywords http://phrogz.net/tmp/canvas_image_zoom.html",syntax:"optimize-contrast | -moz-crisp-edges | -o-crisp-edges | -webkit-optimize-contrast"},"-non-standard-overflow":{comment:"non-standard keywords https://developer.mozilla.org/en-US/docs/Web/CSS/overflow",syntax:"-moz-scrollbars-none | -moz-scrollbars-horizontal | -moz-scrollbars-vertical | -moz-hidden-unscrollable"},"-non-standard-width":{comment:"non-standard keywords https://developer.mozilla.org/en-US/docs/Web/CSS/width",syntax:"fill-available | min-intrinsic | intrinsic | -moz-available | -moz-fit-content | -moz-min-content | -moz-max-content | -webkit-min-content | -webkit-max-content"},"-webkit-gradient()":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/ - TODO: simplify when after match algorithm improvement ( [, point, radius | , point] -> [, radius]? , point )",syntax:"-webkit-gradient( <-webkit-gradient-type>, <-webkit-gradient-point> [, <-webkit-gradient-point> | , <-webkit-gradient-radius>, <-webkit-gradient-point> ] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )"},"-webkit-gradient-color-stop":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/",syntax:"from( <color> ) | color-stop( [ <number-zero-one> | <percentage> ] , <color> ) | to( <color> )"},"-webkit-gradient-point":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/",syntax:"[ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]"},"-webkit-gradient-radius":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/",syntax:"<length> | <percentage>"},"-webkit-gradient-type":{comment:"first Apple proposal gradient syntax https://webkit.org/blog/175/introducing-css-gradients/",syntax:"linear | radial"},"-webkit-mask-box-repeat":{comment:"missed; https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-mask-box-image",syntax:"repeat | stretch | round"},"-webkit-mask-clip-style":{comment:"missed; there is no enough information about `-webkit-mask-clip` property, but looks like all those keywords are working",syntax:"border | border-box | padding | padding-box | content | content-box | text"},"-ms-filter-function-list":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter",syntax:"<-ms-filter-function>+"},"-ms-filter-function":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter",syntax:"<-ms-filter-function-progid> | <-ms-filter-function-legacy>"},"-ms-filter-function-progid":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter",syntax:"'progid:' [ <ident-token> '.' ]* [ <ident-token> | <function-token> <any-value>? ) ]"},"-ms-filter-function-legacy":{comment:"https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-filter",syntax:"<ident-token> | <function-token> <any-value>? )"},"-ms-filter":{syntax:"<string>"},age:{comment:"https://www.w3.org/TR/css3-speech/#voice-family",syntax:"child | young | old"},"attr-name":{syntax:"<wq-name>"},"attr-fallback":{syntax:"<any-value>"},"border-radius":{comment:"missed, https://drafts.csswg.org/css-backgrounds-3/#the-border-radius",syntax:"<length-percentage>{1,2}"},bottom:{comment:"missed; not sure we should add it, but no others except `shape` is using it so it's ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect",syntax:"<length> | auto"},"content-list":{comment:"missed -> https://drafts.csswg.org/css-content/#typedef-content-list (document-url, <target> and leader() is omitted util stabilization)",syntax:"[ <string> | contents | <image> | <quote> | <target> | <leader()> | <attr()> | counter( <ident>, <'list-style-type'>? ) ]+"},"element()":{comment:"https://drafts.csswg.org/css-gcpm/#element-syntax & https://drafts.csswg.org/css-images-4/#element-notation",syntax:"element( <custom-ident> , [ first | start | last | first-except ]? ) | element( <id-selector> )"},"generic-voice":{comment:"https://www.w3.org/TR/css3-speech/#voice-family",syntax:"[ <age>? <gender> <integer>? ]"},gender:{comment:"https://www.w3.org/TR/css3-speech/#voice-family",syntax:"male | female | neutral"},"generic-family":{comment:"added -apple-system",references:["https://webkit.org/blog/3709/using-the-system-font-in-web-content/"],syntax:"| -apple-system"},gradient:{comment:"added legacy syntaxes support",syntax:"| <-legacy-gradient>"},left:{comment:"missed; not sure we should add it, but no others except `shape` is using it so it's ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect",syntax:"<length> | auto"},"mask-image":{comment:"missed; https://drafts.fxtf.org/css-masking-1/#the-mask-image",syntax:"<mask-reference>#"},"name-repeat":{comment:"missed, and looks like obsolete, keep it as is since other property syntaxes should be changed too; https://www.w3.org/TR/2015/WD-css-grid-1-20150917/#typedef-name-repeat",syntax:"repeat( [ <positive-integer> | auto-fill ], <line-names>+)"},"named-color":{comment:"added non standard color names",syntax:"| <-non-standard-color>"},paint:{comment:"used by SVG https://www.w3.org/TR/SVG/painting.html#SpecifyingPaint",syntax:"none | <color> | <url> [ none | <color> ]? | context-fill | context-stroke"},"page-size":{comment:"https://www.w3.org/TR/css-page-3/#typedef-page-size-page-size",syntax:"A5 | A4 | A3 | B5 | B4 | JIS-B5 | JIS-B4 | letter | legal | ledger"},ratio:{comment:"missed, https://drafts.csswg.org/mediaqueries-4/#typedef-ratio",syntax:"<integer> / <integer>"},right:{comment:"missed; not sure we should add it, but no others except `shape` is using it so it's ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect",syntax:"<length> | auto"},shape:{comment:"missed spaces in function body and add backwards compatible syntax",syntax:"rect( <top>, <right>, <bottom>, <left> ) | rect( <top> <right> <bottom> <left> )"},"svg-length":{comment:"All coordinates and lengths in SVG can be specified with or without a unit identifier",references:["https://www.w3.org/TR/SVG11/coords.html#Units"],syntax:"<percentage> | <length> | <number>"},"svg-writing-mode":{comment:"SVG specific keywords (deprecated for CSS)",references:["https://developer.mozilla.org/en/docs/Web/CSS/writing-mode","https://www.w3.org/TR/SVG/text.html#WritingModeProperty"],syntax:"lr-tb | rl-tb | tb-rl | lr | rl | tb"},top:{comment:"missed; not sure we should add it, but no others except `shape` is using it so it's ok for now; https://drafts.fxtf.org/css-masking-1/#funcdef-clip-rect",syntax:"<length> | auto"},"track-group":{comment:"used by old grid-columns and grid-rows syntax v0",syntax:"'(' [ <string>* <track-minmax> <string>* ]+ ')' [ '[' <positive-integer> ']' ]? | <track-minmax>"},"track-list-v0":{comment:"used by old grid-columns and grid-rows syntax v0",syntax:"[ <string>* <track-group> <string>* ]+ | none"},"track-minmax":{comment:"used by old grid-columns and grid-rows syntax v0",syntax:"minmax( <track-breadth> , <track-breadth> ) | auto | <track-breadth> | fit-content"},x:{comment:"missed; not sure we should add it, but no others except `cursor` is using it so it's ok for now; https://drafts.csswg.org/css-ui-3/#cursor",syntax:"<number>"},y:{comment:"missed; not sure we should add it, but no others except `cursor` is using so it's ok for now; https://drafts.csswg.org/css-ui-3/#cursor",syntax:"<number>"},declaration:{comment:"missed, restored by https://drafts.csswg.org/css-syntax",syntax:"<ident-token> : <declaration-value>? [ '!' important ]?"},"declaration-list":{comment:"missed, restored by https://drafts.csswg.org/css-syntax",syntax:"[ <declaration>? ';' ]* <declaration>?"},url:{comment:"https://drafts.csswg.org/css-values-4/#urls",syntax:"url( <string> <url-modifier>* ) | <url-token>"},"url-modifier":{comment:"https://drafts.csswg.org/css-values-4/#typedef-url-modifier",syntax:"<ident> | <function-token> <any-value> )"},"number-zero-one":{syntax:"<number [0,1]>"},"number-one-or-greater":{syntax:"<number [1,∞]>"},"positive-integer":{syntax:"<integer [0,∞]>"},"-non-standard-display":{syntax:"-ms-inline-flexbox | -ms-grid | -ms-inline-grid | -webkit-flex | -webkit-inline-flex | -webkit-box | -webkit-inline-box | -moz-inline-stack | -moz-box | -moz-inline-box"}}},$q=Yq,eW=Zq,tW=Kq,Jf=_q,Nx=/^\s*\|\s*/;function rW(t){const e=Object.create(null);for(const r in t){const i=t[r];let a=null;if(i.descriptors){a=Object.create(null);for(const n in i.descriptors)a[n]=i.descriptors[n].syntax}e[r.substr(1)]={prelude:i.syntax.trim().match(/^@\S+\s+([^;\{]*)/)[1].trim()||null,descriptors:a}}return e}function Uf(t,e){const r={};for(const i in t)r[i]=t[i].syntax||t[i];for(const i in e)i in t?e[i].syntax?r[i]=Nx.test(e[i].syntax)?r[i]+" "+e[i].syntax.trim():e[i].syntax:delete r[i]:e[i].syntax&&(r[i]=e[i].syntax.replace(Nx,""));return r}function Lx(t){const e={};for(const r in t)e[r]=t[r].syntax;return e}function iW(t,e){const r={};for(const i in t){const a=e[i]&&e[i].descriptors||null;r[i]={prelude:i in e&&"prelude"in e[i]?e[i].prelude:t[i].prelude||null,descriptors:t[i].descriptors?Uf(t[i].descriptors,a||{}):a&&Lx(a)}}for(const i in e)hasOwnProperty.call(t,i)||(r[i]={prelude:e[i].prelude||null,descriptors:e[i].descriptors&&Lx(e[i].descriptors)});return r}var aW={types:Uf(tW,Jf.syntaxes),atrules:iW(rW($q),Jf.atrules),properties:Uf(eW,Jf.properties)},Fx=ce.cmpChar,Bx=ce.isDigit,bs=ce.TYPE,Rx=bs.WhiteSpace,Hx=bs.Comment,Gf=bs.Ident,ri=bs.Number,nW=bs.Dimension,jr=43,Vt=45,du=110,Ki=!0,sW=!1;function fu(t,e){var r=this.scanner.tokenStart+t,i=this.scanner.source.charCodeAt(r);for((i===jr||i===Vt)&&(e&&this.error("Number sign is not allowed"),r++);r<this.scanner.tokenEnd;r++)Bx(this.scanner.source.charCodeAt(r))||this.error("Integer is expected",r)}function Ga(t){return fu.call(this,0,t)}function yi(t,e){if(!Fx(this.scanner.source,this.scanner.tokenStart+t,e)){var r="";switch(e){case du:r="N is expected";break;case Vt:r="HyphenMinus is expected";break}this.error(r,this.scanner.tokenStart+t)}}function Qf(){for(var t=0,e=0,r=this.scanner.tokenType;r===Rx||r===Hx;)r=this.scanner.lookupType(++t);if(r!==ri)if(this.scanner.isDelim(jr,t)||this.scanner.isDelim(Vt,t)){e=this.scanner.isDelim(jr,t)?jr:Vt;do r=this.scanner.lookupType(++t);while(r===Rx||r===Hx);r!==ri&&(this.scanner.skip(t),Ga.call(this,Ki))}else return null;return t>0&&this.scanner.skip(t),e===0&&(r=this.scanner.source.charCodeAt(this.scanner.tokenStart),r!==jr&&r!==Vt&&this.error("Number sign is expected")),Ga.call(this,e!==0),e===Vt?"-"+this.consume(ri):this.consume(ri)}var oW={name:"AnPlusB",structure:{a:[String,null],b:[String,null]},parse:function(){var t=this.scanner.tokenStart,e=null,r=null;if(this.scanner.tokenType===ri)Ga.call(this,sW),r=this.consume(ri);else if(this.scanner.tokenType===Gf&&Fx(this.scanner.source,this.scanner.tokenStart,Vt))switch(e="-1",yi.call(this,1,du),this.scanner.getTokenLength()){case 2:this.scanner.next(),r=Qf.call(this);break;case 3:yi.call(this,2,Vt),this.scanner.next(),this.scanner.skipSC(),Ga.call(this,Ki),r="-"+this.consume(ri);break;default:yi.call(this,2,Vt),fu.call(this,3,Ki),this.scanner.next(),r=this.scanner.substrToCursor(t+2)}else if(this.scanner.tokenType===Gf||this.scanner.isDelim(jr)&&this.scanner.lookupType(1)===Gf){var i=0;switch(e="1",this.scanner.isDelim(jr)&&(i=1,this.scanner.next()),yi.call(this,0,du),this.scanner.getTokenLength()){case 1:this.scanner.next(),r=Qf.call(this);break;case 2:yi.call(this,1,Vt),this.scanner.next(),this.scanner.skipSC(),Ga.call(this,Ki),r="-"+this.consume(ri);break;default:yi.call(this,1,Vt),fu.call(this,2,Ki),this.scanner.next(),r=this.scanner.substrToCursor(t+i+1)}}else if(this.scanner.tokenType===nW){for(var a=this.scanner.source.charCodeAt(this.scanner.tokenStart),i=a===jr||a===Vt,n=this.scanner.tokenStart+i;n<this.scanner.tokenEnd&&Bx(this.scanner.source.charCodeAt(n));n++);n===this.scanner.tokenStart+i&&this.error("Integer is expected",this.scanner.tokenStart+i),yi.call(this,n-this.scanner.tokenStart,du),e=this.scanner.source.substring(t,n),n+1===this.scanner.tokenEnd?(this.scanner.next(),r=Qf.call(this)):(yi.call(this,n-this.scanner.tokenStart+1,Vt),n+2===this.scanner.tokenEnd?(this.scanner.next(),this.scanner.skipSC(),Ga.call(this,Ki),r="-"+this.consume(ri)):(fu.call(this,n-this.scanner.tokenStart+2,Ki),this.scanner.next(),r=this.scanner.substrToCursor(n+1)))}else this.error();return e!==null&&e.charCodeAt(0)===jr&&(e=e.substr(1)),r!==null&&r.charCodeAt(0)===jr&&(r=r.substr(1)),{type:"AnPlusB",loc:this.getLocation(t,this.scanner.tokenStart),a:e,b:r}},generate:function(t){var e=t.a!==null&&t.a!==void 0,r=t.b!==null&&t.b!==void 0;e?(this.chunk(t.a==="+1"?"+n":t.a==="1"?"n":t.a==="-1"?"-n":t.a+"n"),r&&(r=String(t.b),r.charAt(0)==="-"||r.charAt(0)==="+"?(this.chunk(r.charAt(0)),this.chunk(r.substr(1))):(this.chunk("+"),this.chunk(r)))):this.chunk(String(t.b))}},lW=ce,pu=lW.TYPE,uW=pu.WhiteSpace,Yf=pu.Semicolon,Vx=pu.LeftCurlyBracket,cW=pu.Delim,dW=33;function fW(){return this.scanner.tokenIndex>0&&this.scanner.lookupType(-1)===uW?this.scanner.tokenIndex>1?this.scanner.getTokenStart(this.scanner.tokenIndex-1):this.scanner.firstCharOffset:this.scanner.tokenStart}function qx(){return 0}function pW(t){return t===Vx?1:0}function hW(t){return t===Vx||t===Yf?1:0}function mW(t,e,r){return t===cW&&e.charCodeAt(r)===dW||t===Yf?1:0}function vW(t){return t===Yf?2:0}var _i={name:"Raw",structure:{value:String},parse:function(t,e,r){var i=this.scanner.getTokenStart(t),a;return this.scanner.skip(this.scanner.getRawLength(t,e||qx)),r&&this.scanner.tokenStart>i?a=fW.call(this):a=this.scanner.tokenStart,{type:"Raw",loc:this.getLocation(i,a),value:this.scanner.source.substring(i,a)}},generate:function(t){this.chunk(t.value)},mode:{default:qx,leftCurlyBracket:pW,leftCurlyBracketOrSemicolon:hW,exclamationMarkOrSemicolon:mW,semicolonIncluded:vW}},hu=ce.TYPE,gW=_i.mode,Wx=hu.AtKeyword,Xx=hu.Semicolon,Zf=hu.LeftCurlyBracket,bW=hu.RightCurlyBracket;function Jx(t){return this.Raw(t,gW.leftCurlyBracketOrSemicolon,!0)}function yW(){for(var t=1,e;e=this.scanner.lookupType(t);t++){if(e===bW)return!0;if(e===Zf||e===Wx)return!1}return!1}var xW={name:"Atrule",structure:{name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]},parse:function(){var t=this.scanner.tokenStart,e,r,i=null,a=null;switch(this.eat(Wx),e=this.scanner.substrToCursor(t+1),r=e.toLowerCase(),this.scanner.skipSC(),this.scanner.eof===!1&&this.scanner.tokenType!==Zf&&this.scanner.tokenType!==Xx&&(this.parseAtrulePrelude?(i=this.parseWithFallback(this.AtrulePrelude.bind(this,e),Jx),i.type==="AtrulePrelude"&&i.children.head===null&&(i=null)):i=Jx.call(this,this.scanner.tokenIndex),this.scanner.skipSC()),this.scanner.tokenType){case Xx:this.scanner.next();break;case Zf:this.atrule.hasOwnProperty(r)&&typeof this.atrule[r].block=="function"?a=this.atrule[r].block.call(this):a=this.Block(yW.call(this));break}return{type:"Atrule",loc:this.getLocation(t,this.scanner.tokenStart),name:e,prelude:i,block:a}},generate:function(t){this.chunk("@"),this.chunk(t.name),t.prelude!==null&&(this.chunk(" "),this.node(t.prelude)),t.block?this.node(t.block):this.chunk(";")},walkContext:"atrule"},Ux=ce.TYPE,wW=Ux.Semicolon,PW=Ux.LeftCurlyBracket,SW={name:"AtrulePrelude",structure:{children:[[]]},parse:function(t){var e=null;return t!==null&&(t=t.toLowerCase()),this.scanner.skipSC(),this.atrule.hasOwnProperty(t)&&typeof this.atrule[t].prelude=="function"?e=this.atrule[t].prelude.call(this):e=this.readSequence(this.scope.AtrulePrelude),this.scanner.skipSC(),this.scanner.eof!==!0&&this.scanner.tokenType!==PW&&this.scanner.tokenType!==wW&&this.error("Semicolon or block is expected"),e===null&&(e=this.createList()),{type:"AtrulePrelude",loc:this.getLocationFromList(e),children:e}},generate:function(t){this.children(t)},walkContext:"atrulePrelude"},ys=ce.TYPE,xs=ys.Ident,CW=ys.String,kW=ys.Colon,TW=ys.LeftSquareBracket,Gx=ys.RightSquareBracket,MW=36,Qx=42,mu=61,DW=94,Kf=124,AW=126;function OW(){this.scanner.eof&&this.error("Unexpected end of input");var t=this.scanner.tokenStart,e=!1,r=!0;return this.scanner.isDelim(Qx)?(e=!0,r=!1,this.scanner.next()):this.scanner.isDelim(Kf)||this.eat(xs),this.scanner.isDelim(Kf)?this.scanner.source.charCodeAt(this.scanner.tokenStart+1)!==mu?(this.scanner.next(),this.eat(xs)):e&&this.error("Identifier is expected",this.scanner.tokenEnd):e&&this.error("Vertical line is expected"),r&&this.scanner.tokenType===kW&&(this.scanner.next(),this.eat(xs)),{type:"Identifier",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t)}}function zW(){var t=this.scanner.tokenStart,e=this.scanner.source.charCodeAt(t);return e!==mu&&e!==AW&&e!==DW&&e!==MW&&e!==Qx&&e!==Kf&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.scanner.next(),e!==mu&&(this.scanner.isDelim(mu)||this.error("Equal sign is expected"),this.scanner.next()),this.scanner.substrToCursor(t)}var EW={name:"AttributeSelector",structure:{name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]},parse:function(){var t=this.scanner.tokenStart,e,r=null,i=null,a=null;return this.eat(TW),this.scanner.skipSC(),e=OW.call(this),this.scanner.skipSC(),this.scanner.tokenType!==Gx&&(this.scanner.tokenType!==xs&&(r=zW.call(this),this.scanner.skipSC(),i=this.scanner.tokenType===CW?this.String():this.Identifier(),this.scanner.skipSC()),this.scanner.tokenType===xs&&(a=this.scanner.getTokenValue(),this.scanner.next(),this.scanner.skipSC())),this.eat(Gx),{type:"AttributeSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:e,matcher:r,value:i,flags:a}},generate:function(t){var e=" ";this.chunk("["),this.node(t.name),t.matcher!==null&&(this.chunk(t.matcher),t.value!==null&&(this.node(t.value),t.value.type==="String"&&(e=""))),t.flags!==null&&(this.chunk(e),this.chunk(t.flags)),this.chunk("]")}},Qa=ce.TYPE,jW=_i.mode,IW=Qa.WhiteSpace,NW=Qa.Comment,Yx=Qa.Semicolon,LW=Qa.AtKeyword,FW=Qa.LeftCurlyBracket,Zx=Qa.RightCurlyBracket;function Kx(t){return this.Raw(t,null,!0)}function BW(){return this.parseWithFallback(this.Rule,Kx)}function _x(t){return this.Raw(t,jW.semicolonIncluded,!0)}function RW(){if(this.scanner.tokenType===Yx)return _x.call(this,this.scanner.tokenIndex);var t=this.parseWithFallback(this.Declaration,_x);return this.scanner.tokenType===Yx&&this.scanner.next(),t}var HW={name:"Block",structure:{children:[["Atrule","Rule","Declaration"]]},parse:function(t){var e=t?RW:BW,r=this.scanner.tokenStart,i=this.createList();this.eat(FW);e:for(;!this.scanner.eof;)switch(this.scanner.tokenType){case Zx:break e;case IW:case NW:this.scanner.next();break;case LW:i.push(this.parseWithFallback(this.Atrule,Kx));break;default:i.push(e.call(this))}return this.scanner.eof||this.eat(Zx),{type:"Block",loc:this.getLocation(r,this.scanner.tokenStart),children:i}},generate:function(t){this.chunk("{"),this.children(t,function(e){e.type==="Declaration"&&this.chunk(";")}),this.chunk("}")},walkContext:"block"},$x=ce.TYPE,VW=$x.LeftSquareBracket,qW=$x.RightSquareBracket,WW={name:"Brackets",structure:{children:[[]]},parse:function(t,e){var r=this.scanner.tokenStart,i=null;return this.eat(VW),i=t.call(this,e),this.scanner.eof||this.eat(qW),{type:"Brackets",loc:this.getLocation(r,this.scanner.tokenStart),children:i}},generate:function(t){this.chunk("["),this.children(t),this.chunk("]")}},XW=ce.TYPE.CDC,JW={name:"CDC",structure:[],parse:function(){var t=this.scanner.tokenStart;return this.eat(XW),{type:"CDC",loc:this.getLocation(t,this.scanner.tokenStart)}},generate:function(){this.chunk("-->")}},UW=ce.TYPE.CDO,GW={name:"CDO",structure:[],parse:function(){var t=this.scanner.tokenStart;return this.eat(UW),{type:"CDO",loc:this.getLocation(t,this.scanner.tokenStart)}},generate:function(){this.chunk("<!--")}},QW=ce.TYPE,YW=QW.Ident,ZW=46,KW={name:"ClassSelector",structure:{name:String},parse:function(){return this.scanner.isDelim(ZW)||this.error("Full stop is expected"),this.scanner.next(),{type:"ClassSelector",loc:this.getLocation(this.scanner.tokenStart-1,this.scanner.tokenEnd),name:this.consume(YW)}},generate:function(t){this.chunk("."),this.chunk(t.name)}},_W=ce.TYPE,$W=_W.Ident,eX=43,ew=47,tX=62,rX=126,iX={name:"Combinator",structure:{name:String},parse:function(){var t=this.scanner.tokenStart,e=this.scanner.source.charCodeAt(this.scanner.tokenStart);switch(e){case tX:case eX:case rX:this.scanner.next();break;case ew:this.scanner.next(),(this.scanner.tokenType!==$W||this.scanner.lookupValue(0,"deep")===!1)&&this.error("Identifier `deep` is expected"),this.scanner.next(),this.scanner.isDelim(ew)||this.error("Solidus is expected"),this.scanner.next();break;default:this.error("Combinator is expected")}return{type:"Combinator",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.name)}},aX=ce.TYPE,nX=aX.Comment,sX=42,oX=47,lX={name:"Comment",structure:{value:String},parse:function(){var t=this.scanner.tokenStart,e=this.scanner.tokenEnd;return this.eat(nX),e-t+2>=2&&this.scanner.source.charCodeAt(e-2)===sX&&this.scanner.source.charCodeAt(e-1)===oX&&(e-=2),{type:"Comment",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.source.substring(t+2,e)}},generate:function(t){this.chunk("/*"),this.chunk(t.value),this.chunk("*/")}},uX=af.isCustomProperty,Ya=ce.TYPE,tw=_i.mode,rw=Ya.Ident,iw=Ya.Hash,cX=Ya.Colon,aw=Ya.Semicolon,nw=Ya.Delim,dX=Ya.WhiteSpace,sw=33,fX=35,pX=36,hX=38,mX=42,vX=43,ow=47;function gX(t){return this.Raw(t,tw.exclamationMarkOrSemicolon,!0)}function bX(t){return this.Raw(t,tw.exclamationMarkOrSemicolon,!1)}function yX(){var t=this.scanner.tokenIndex,e=this.Value();return e.type!=="Raw"&&this.scanner.eof===!1&&this.scanner.tokenType!==aw&&this.scanner.isDelim(sw)===!1&&this.scanner.isBalanceEdge(t)===!1&&this.error(),e}var xX={name:"Declaration",structure:{important:[Boolean,String],property:String,value:["Value","Raw"]},parse:function(){var t=this.scanner.tokenStart,e=this.scanner.tokenIndex,r=wX.call(this),i=uX(r),a=i?this.parseCustomProperty:this.parseValue,n=i?bX:gX,s=!1,o;this.scanner.skipSC(),this.eat(cX);const u=this.scanner.tokenIndex;if(i||this.scanner.skipSC(),a?o=this.parseWithFallback(yX,n):o=n.call(this,this.scanner.tokenIndex),i&&o.type==="Value"&&o.children.isEmpty()){for(let l=u-this.scanner.tokenIndex;l<=0;l++)if(this.scanner.lookupType(l)===dX){o.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.scanner.isDelim(sw)&&(s=PX.call(this),this.scanner.skipSC()),this.scanner.eof===!1&&this.scanner.tokenType!==aw&&this.scanner.isBalanceEdge(e)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.scanner.tokenStart),important:s,property:r,value:o}},generate:function(t){this.chunk(t.property),this.chunk(":"),this.node(t.value),t.important&&this.chunk(t.important===!0?"!important":"!"+t.important)},walkContext:"declaration"};function wX(){var t=this.scanner.tokenStart;if(this.scanner.tokenType===nw)switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case mX:case pX:case vX:case fX:case hX:this.scanner.next();break;case ow:this.scanner.next(),this.scanner.isDelim(ow)&&this.scanner.next();break}return this.scanner.tokenType===iw?this.eat(iw):this.eat(rw),this.scanner.substrToCursor(t)}function PX(){this.eat(nw),this.scanner.skipSC();var t=this.consume(rw);return t==="important"?!0:t}var _f=ce.TYPE,SX=_i.mode,CX=_f.WhiteSpace,kX=_f.Comment,TX=_f.Semicolon;function MX(t){return this.Raw(t,SX.semicolonIncluded,!0)}var DX={name:"DeclarationList",structure:{children:[["Declaration"]]},parse:function(){for(var t=this.createList();!this.scanner.eof;)switch(this.scanner.tokenType){case CX:case kX:case TX:this.scanner.next();break;default:t.push(this.parseWithFallback(this.Declaration,MX))}return{type:"DeclarationList",loc:this.getLocationFromList(t),children:t}},generate:function(t){this.children(t,function(e){e.type==="Declaration"&&this.chunk(";")})}},AX=rs.consumeNumber,OX=ce.TYPE,zX=OX.Dimension,EX={name:"Dimension",structure:{value:String,unit:String},parse:function(){var t=this.scanner.tokenStart,e=AX(this.scanner.source,t);return this.eat(zX),{type:"Dimension",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.source.substring(t,e),unit:this.scanner.source.substring(e,this.scanner.tokenStart)}},generate:function(t){this.chunk(t.value),this.chunk(t.unit)}},jX=ce.TYPE,IX=jX.RightParenthesis,NX={name:"Function",structure:{name:String,children:[[]]},parse:function(t,e){var r=this.scanner.tokenStart,i=this.consumeFunctionName(),a=i.toLowerCase(),n;return n=e.hasOwnProperty(a)?e[a].call(this,e):t.call(this,e),this.scanner.eof||this.eat(IX),{type:"Function",loc:this.getLocation(r,this.scanner.tokenStart),name:i,children:n}},generate:function(t){this.chunk(t.name),this.chunk("("),this.children(t),this.chunk(")")},walkContext:"function"},LX=ce.TYPE,FX=LX.Hash,BX={name:"Hash",structure:{value:String},parse:function(){var t=this.scanner.tokenStart;return this.eat(FX),{type:"Hash",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.substrToCursor(t+1)}},generate:function(t){this.chunk("#"),this.chunk(t.value)}},RX=ce.TYPE,HX=RX.Ident,VX={name:"Identifier",structure:{name:String},parse:function(){return{type:"Identifier",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),name:this.consume(HX)}},generate:function(t){this.chunk(t.name)}},qX=ce.TYPE,WX=qX.Hash,XX={name:"IdSelector",structure:{name:String},parse:function(){var t=this.scanner.tokenStart;return this.eat(WX),{type:"IdSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t+1)}},generate:function(t){this.chunk("#"),this.chunk(t.name)}},$i=ce.TYPE,lw=$i.Ident,JX=$i.Number,UX=$i.Dimension,GX=$i.LeftParenthesis,uw=$i.RightParenthesis,QX=$i.Colon,YX=$i.Delim,ZX={name:"MediaFeature",structure:{name:String,value:["Identifier","Number","Dimension","Ratio",null]},parse:function(){var t=this.scanner.tokenStart,e,r=null;if(this.eat(GX),this.scanner.skipSC(),e=this.consume(lw),this.scanner.skipSC(),this.scanner.tokenType!==uw){switch(this.eat(QX),this.scanner.skipSC(),this.scanner.tokenType){case JX:this.lookupNonWSType(1)===YX?r=this.Ratio():r=this.Number();break;case UX:r=this.Dimension();break;case lw:r=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.scanner.skipSC()}return this.eat(uw),{type:"MediaFeature",loc:this.getLocation(t,this.scanner.tokenStart),name:e,value:r}},generate:function(t){this.chunk("("),this.chunk(t.name),t.value!==null&&(this.chunk(":"),this.node(t.value)),this.chunk(")")}},vu=ce.TYPE,KX=vu.WhiteSpace,_X=vu.Comment,$X=vu.Ident,eJ=vu.LeftParenthesis,tJ={name:"MediaQuery",structure:{children:[["Identifier","MediaFeature","WhiteSpace"]]},parse:function(){this.scanner.skipSC();var t=this.createList(),e=null,r=null;e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case _X:this.scanner.next();continue;case KX:r=this.WhiteSpace();continue;case $X:e=this.Identifier();break;case eJ:e=this.MediaFeature();break;default:break e}r!==null&&(t.push(r),r=null),t.push(e)}return e===null&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(t),children:t}},generate:function(t){this.children(t)}},rJ=ce.TYPE.Comma,iJ={name:"MediaQueryList",structure:{children:[["MediaQuery"]]},parse:function(t){var e=this.createList();for(this.scanner.skipSC();!this.scanner.eof&&(e.push(this.MediaQuery(t)),this.scanner.tokenType===rJ);)this.scanner.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}},generate:function(t){this.children(t,function(){this.chunk(",")})}},aJ={name:"Nth",structure:{nth:["AnPlusB","Identifier"],selector:["SelectorList",null]},parse:function(t){this.scanner.skipSC();var e=this.scanner.tokenStart,r=e,i=null,a;return this.scanner.lookupValue(0,"odd")||this.scanner.lookupValue(0,"even")?a=this.Identifier():a=this.AnPlusB(),this.scanner.skipSC(),t&&this.scanner.lookupValue(0,"of")?(this.scanner.next(),i=this.SelectorList(),this.needPositions&&(r=this.getLastListNode(i.children).loc.end.offset)):this.needPositions&&(r=a.loc.end.offset),{type:"Nth",loc:this.getLocation(e,r),nth:a,selector:i}},generate:function(t){this.node(t.nth),t.selector!==null&&(this.chunk(" of "),this.node(t.selector))}},nJ=ce.TYPE.Number,sJ={name:"Number",structure:{value:String},parse:function(){return{type:"Number",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(nJ)}},generate:function(t){this.chunk(t.value)}},oJ={name:"Operator",structure:{value:String},parse:function(){var t=this.scanner.tokenStart;return this.scanner.next(),{type:"Operator",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.value)}},cw=ce.TYPE,lJ=cw.LeftParenthesis,uJ=cw.RightParenthesis,cJ={name:"Parentheses",structure:{children:[[]]},parse:function(t,e){var r=this.scanner.tokenStart,i=null;return this.eat(lJ),i=t.call(this,e),this.scanner.eof||this.eat(uJ),{type:"Parentheses",loc:this.getLocation(r,this.scanner.tokenStart),children:i}},generate:function(t){this.chunk("("),this.children(t),this.chunk(")")}},dJ=rs.consumeNumber,fJ=ce.TYPE,pJ=fJ.Percentage,hJ={name:"Percentage",structure:{value:String},parse:function(){var t=this.scanner.tokenStart,e=dJ(this.scanner.source,t);return this.eat(pJ),{type:"Percentage",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.source.substring(t,e)}},generate:function(t){this.chunk(t.value),this.chunk("%")}},gu=ce.TYPE,mJ=gu.Ident,vJ=gu.Function,gJ=gu.Colon,bJ=gu.RightParenthesis,yJ={name:"PseudoClassSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var t=this.scanner.tokenStart,e=null,r,i;return this.eat(gJ),this.scanner.tokenType===vJ?(r=this.consumeFunctionName(),i=r.toLowerCase(),this.pseudo.hasOwnProperty(i)?(this.scanner.skipSC(),e=this.pseudo[i].call(this),this.scanner.skipSC()):(e=this.createList(),e.push(this.Raw(this.scanner.tokenIndex,null,!1))),this.eat(bJ)):r=this.consume(mJ),{type:"PseudoClassSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:r,children:e}},generate:function(t){this.chunk(":"),this.chunk(t.name),t.children!==null&&(this.chunk("("),this.children(t),this.chunk(")"))},walkContext:"function"},bu=ce.TYPE,xJ=bu.Ident,wJ=bu.Function,dw=bu.Colon,PJ=bu.RightParenthesis,SJ={name:"PseudoElementSelector",structure:{name:String,children:[["Raw"],null]},parse:function(){var t=this.scanner.tokenStart,e=null,r,i;return this.eat(dw),this.eat(dw),this.scanner.tokenType===wJ?(r=this.consumeFunctionName(),i=r.toLowerCase(),this.pseudo.hasOwnProperty(i)?(this.scanner.skipSC(),e=this.pseudo[i].call(this),this.scanner.skipSC()):(e=this.createList(),e.push(this.Raw(this.scanner.tokenIndex,null,!1))),this.eat(PJ)):r=this.consume(xJ),{type:"PseudoElementSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:r,children:e}},generate:function(t){this.chunk("::"),this.chunk(t.name),t.children!==null&&(this.chunk("("),this.children(t),this.chunk(")"))},walkContext:"function"},CJ=ce.isDigit,fw=ce.TYPE,kJ=fw.Number,TJ=fw.Delim,MJ=47,DJ=46;function pw(){this.scanner.skipWS();for(var t=this.consume(kJ),e=0;e<t.length;e++){var r=t.charCodeAt(e);!CJ(r)&&r!==DJ&&this.error("Unsigned number is expected",this.scanner.tokenStart-t.length+e)}return Number(t)===0&&this.error("Zero number is not allowed",this.scanner.tokenStart-t.length),t}var AJ={name:"Ratio",structure:{left:String,right:String},parse:function(){var t=this.scanner.tokenStart,e=pw.call(this),r;return this.scanner.skipWS(),this.scanner.isDelim(MJ)||this.error("Solidus is expected"),this.eat(TJ),r=pw.call(this),{type:"Ratio",loc:this.getLocation(t,this.scanner.tokenStart),left:e,right:r}},generate:function(t){this.chunk(t.left),this.chunk("/"),this.chunk(t.right)}},OJ=ce.TYPE,zJ=_i.mode,EJ=OJ.LeftCurlyBracket;function hw(t){return this.Raw(t,zJ.leftCurlyBracket,!0)}function jJ(){var t=this.SelectorList();return t.type!=="Raw"&&this.scanner.eof===!1&&this.scanner.tokenType!==EJ&&this.error(),t}var IJ={name:"Rule",structure:{prelude:["SelectorList","Raw"],block:["Block"]},parse:function(){var t=this.scanner.tokenIndex,e=this.scanner.tokenStart,r,i;return this.parseRulePrelude?r=this.parseWithFallback(jJ,hw):r=hw.call(this,t),i=this.Block(!0),{type:"Rule",loc:this.getLocation(e,this.scanner.tokenStart),prelude:r,block:i}},generate:function(t){this.node(t.prelude),this.node(t.block)},walkContext:"rule"},NJ={name:"Selector",structure:{children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]},parse:function(){var t=this.readSequence(this.scope.Selector);return this.getFirstListNode(t)===null&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(t),children:t}},generate:function(t){this.children(t)}},LJ=ce.TYPE,FJ=LJ.Comma,BJ={name:"SelectorList",structure:{children:[["Selector","Raw"]]},parse:function(){for(var t=this.createList();!this.scanner.eof;){if(t.push(this.Selector()),this.scanner.tokenType===FJ){this.scanner.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(t),children:t}},generate:function(t){this.children(t,function(){this.chunk(",")})},walkContext:"selector"},RJ=ce.TYPE.String,HJ={name:"String",structure:{value:String},parse:function(){return{type:"String",loc:this.getLocation(this.scanner.tokenStart,this.scanner.tokenEnd),value:this.consume(RJ)}},generate:function(t){this.chunk(t.value)}},ws=ce.TYPE,VJ=ws.WhiteSpace,qJ=ws.Comment,WJ=ws.AtKeyword,XJ=ws.CDO,JJ=ws.CDC,UJ=33;function mw(t){return this.Raw(t,null,!1)}var GJ={name:"StyleSheet",structure:{children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]},parse:function(){for(var t=this.scanner.tokenStart,e=this.createList(),r;!this.scanner.eof;){switch(this.scanner.tokenType){case VJ:this.scanner.next();continue;case qJ:if(this.scanner.source.charCodeAt(this.scanner.tokenStart+2)!==UJ){this.scanner.next();continue}r=this.Comment();break;case XJ:r=this.CDO();break;case JJ:r=this.CDC();break;case WJ:r=this.parseWithFallback(this.Atrule,mw);break;default:r=this.parseWithFallback(this.Rule,mw)}e.push(r)}return{type:"StyleSheet",loc:this.getLocation(t,this.scanner.tokenStart),children:e}},generate:function(t){this.children(t)},walkContext:"stylesheet"},QJ=ce.TYPE,YJ=QJ.Ident,ZJ=42,vw=124;function $f(){this.scanner.tokenType!==YJ&&this.scanner.isDelim(ZJ)===!1&&this.error("Identifier or asterisk is expected"),this.scanner.next()}var KJ={name:"TypeSelector",structure:{name:String},parse:function(){var t=this.scanner.tokenStart;return this.scanner.isDelim(vw)?(this.scanner.next(),$f.call(this)):($f.call(this),this.scanner.isDelim(vw)&&(this.scanner.next(),$f.call(this))),{type:"TypeSelector",loc:this.getLocation(t,this.scanner.tokenStart),name:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.name)}},_J=ce.isHexDigit,gw=ce.cmpChar,ep=ce.TYPE,$J=ce.NAME,eU=ep.Ident,bw=ep.Number,yw=ep.Dimension,yu=43,xw=45,tp=63,tU=117;function Ps(t,e){for(var r=this.scanner.tokenStart+t,i=0;r<this.scanner.tokenEnd;r++){var a=this.scanner.source.charCodeAt(r);if(a===xw&&e&&i!==0)return Ps.call(this,t+i+1,!1)===0&&this.error(),-1;_J(a)||this.error(e&&i!==0?"HyphenMinus"+(i<6?" or hex digit":"")+" is expected":i<6?"Hex digit is expected":"Unexpected input",r),++i>6&&this.error("Too many hex digits",r)}return this.scanner.next(),i}function xu(t){for(var e=0;this.scanner.isDelim(tp);)++e>t&&this.error("Too many question marks"),this.scanner.next()}function rp(t){this.scanner.source.charCodeAt(this.scanner.tokenStart)!==t&&this.error($J[t]+" is expected")}function rU(){var t=0;if(this.scanner.isDelim(yu)){if(this.scanner.next(),this.scanner.tokenType===eU){t=Ps.call(this,0,!0),t>0&&xu.call(this,6-t);return}if(this.scanner.isDelim(tp)){this.scanner.next(),xu.call(this,5);return}this.error("Hex digit or question mark is expected");return}if(this.scanner.tokenType===bw){if(rp.call(this,yu),t=Ps.call(this,1,!0),this.scanner.isDelim(tp)){xu.call(this,6-t);return}if(this.scanner.tokenType===yw||this.scanner.tokenType===bw){rp.call(this,xw),Ps.call(this,1,!1);return}return}if(this.scanner.tokenType===yw){rp.call(this,yu),t=Ps.call(this,1,!0),t>0&&xu.call(this,6-t);return}this.error()}var iU={name:"UnicodeRange",structure:{value:String},parse:function(){var t=this.scanner.tokenStart;return gw(this.scanner.source,t,tU)||this.error("U is expected"),gw(this.scanner.source,t+1,yu)||this.error("Plus sign is expected"),this.scanner.next(),rU.call(this),{type:"UnicodeRange",loc:this.getLocation(t,this.scanner.tokenStart),value:this.scanner.substrToCursor(t)}},generate:function(t){this.chunk(t.value)}},ww=ce.isWhiteSpace,aU=ce.cmpStr,ip=ce.TYPE,Pw=ip.Function,Sw=ip.Url,nU=ip.RightParenthesis,sU={name:"Url",structure:{value:["String","Raw"]},parse:function(){var t=this.scanner.tokenStart,e;switch(this.scanner.tokenType){case Sw:for(var r=t+4,i=this.scanner.tokenEnd-1;r<i&&ww(this.scanner.source.charCodeAt(r));)r++;for(;r<i&&ww(this.scanner.source.charCodeAt(i-1));)i--;e={type:"Raw",loc:this.getLocation(r,i),value:this.scanner.source.substring(r,i)},this.eat(Sw);break;case Pw:aU(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(Pw),this.scanner.skipSC(),e=this.String(),this.scanner.skipSC(),this.eat(nU);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(t,this.scanner.tokenStart),value:e}},generate:function(t){this.chunk("url"),this.chunk("("),this.node(t.value),this.chunk(")")}},oU={name:"Value",structure:{children:[[]]},parse:function(){var t=this.scanner.tokenStart,e=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(t,this.scanner.tokenStart),children:e}},generate:function(t){this.children(t)}},lU=ce.TYPE.WhiteSpace,uU=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),cU={name:"WhiteSpace",structure:{value:String},parse:function(){return this.eat(lU),uU},generate:function(t){this.chunk(t.value)}},ap={AnPlusB:oW,Atrule:xW,AtrulePrelude:SW,AttributeSelector:EW,Block:HW,Brackets:WW,CDC:JW,CDO:GW,ClassSelector:KW,Combinator:iX,Comment:lX,Declaration:xX,DeclarationList:DX,Dimension:EX,Function:NX,Hash:BX,Identifier:VX,IdSelector:XX,MediaFeature:ZX,MediaQuery:tJ,MediaQueryList:iJ,Nth:aJ,Number:sJ,Operator:oJ,Parentheses:cJ,Percentage:hJ,PseudoClassSelector:yJ,PseudoElementSelector:SJ,Ratio:AJ,Raw:_i,Rule:IJ,Selector:NJ,SelectorList:BJ,String:HJ,StyleSheet:GJ,TypeSelector:KJ,UnicodeRange:iU,Url:sU,Value:oU,WhiteSpace:cU},np=aW,dU={generic:!0,types:np.types,atrules:np.atrules,properties:np.properties,node:ap},Cw=ce.cmpChar,fU=ce.cmpStr,ir=ce.TYPE,pU=ir.Ident,hU=ir.String,mU=ir.Number,vU=ir.Function,gU=ir.Url,bU=ir.Hash,yU=ir.Dimension,xU=ir.Percentage,wU=ir.LeftParenthesis,PU=ir.LeftSquareBracket,SU=ir.Comma,CU=ir.Delim,kU=35,TU=42,kw=43,MU=45,DU=47,AU=117,Tw=function(e){switch(this.scanner.tokenType){case bU:return this.Hash();case SU:return e.space=null,e.ignoreWSAfter=!0,this.Operator();case wU:return this.Parentheses(this.readSequence,e.recognizer);case PU:return this.Brackets(this.readSequence,e.recognizer);case hU:return this.String();case yU:return this.Dimension();case xU:return this.Percentage();case mU:return this.Number();case vU:return fU(this.scanner.source,this.scanner.tokenStart,this.scanner.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case gU:return this.Url();case pU:return Cw(this.scanner.source,this.scanner.tokenStart,AU)&&Cw(this.scanner.source,this.scanner.tokenStart+1,kw)?this.UnicodeRange():this.Identifier();case CU:var r=this.scanner.source.charCodeAt(this.scanner.tokenStart);if(r===DU||r===TU||r===kw||r===MU)return this.Operator();r===kU&&this.error("Hex or identifier is expected",this.scanner.tokenStart+1);break}},OU={getNode:Tw},xi=ce.TYPE,zU=xi.Delim,EU=xi.Ident,jU=xi.Dimension,IU=xi.Percentage,NU=xi.Number,LU=xi.Hash,Mw=xi.Colon,FU=xi.LeftSquareBracket,BU=35,RU=42,HU=43,VU=47,Dw=46,qU=62,WU=124,XU=126;function JU(t){switch(this.scanner.tokenType){case FU:return this.AttributeSelector();case LU:return this.IdSelector();case Mw:return this.scanner.lookupType(1)===Mw?this.PseudoElementSelector():this.PseudoClassSelector();case EU:return this.TypeSelector();case NU:case IU:return this.Percentage();case jU:this.scanner.source.charCodeAt(this.scanner.tokenStart)===Dw&&this.error("Identifier is expected",this.scanner.tokenStart+1);break;case zU:var e=this.scanner.source.charCodeAt(this.scanner.tokenStart);switch(e){case HU:case qU:case XU:return t.space=null,t.ignoreWSAfter=!0,this.Combinator();case VU:return this.Combinator();case Dw:return this.ClassSelector();case RU:case WU:return this.TypeSelector();case BU:return this.IdSelector()}break}}var UU={getNode:JU},GU=function(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))},Aw=ce.TYPE,QU=_i.mode,YU=Aw.Comma,ZU=Aw.WhiteSpace,KU=function(){var t=this.createList();if(this.scanner.skipSC(),t.push(this.Identifier()),this.scanner.skipSC(),this.scanner.tokenType===YU){t.push(this.Operator());const e=this.scanner.tokenIndex,r=this.parseCustomProperty?this.Value(null):this.Raw(this.scanner.tokenIndex,QU.exclamationMarkOrSemicolon,!1);if(r.type==="Value"&&r.children.isEmpty()){for(let i=e-this.scanner.tokenIndex;i<=0;i++)if(this.scanner.lookupType(i)===ZU){r.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}t.push(r)}return t},_U={getNode:Tw,expression:GU,var:KU},$U={AtrulePrelude:OU,Selector:UU,Value:_U},eG={parse:{prelude:null,block:function(){return this.Block(!0)}}},Ss=ce.TYPE,tG=Ss.String,rG=Ss.Ident,iG=Ss.Url,aG=Ss.Function,nG=Ss.LeftParenthesis,sG={parse:{prelude:function(){var t=this.createList();switch(this.scanner.skipSC(),this.scanner.tokenType){case tG:t.push(this.String());break;case iG:case aG:t.push(this.Url());break;default:this.error("String or url() is expected")}return(this.lookupNonWSType(0)===rG||this.lookupNonWSType(0)===nG)&&(t.push(this.WhiteSpace()),t.push(this.MediaQueryList())),t},block:null}},oG={parse:{prelude:function(){return this.createSingleNodeList(this.MediaQueryList())},block:function(){return this.Block(!1)}}},lG={parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}}},Za=ce.TYPE,uG=Za.WhiteSpace,cG=Za.Comment,Ow=Za.Ident,dG=Za.Function,fG=Za.Colon,pG=Za.LeftParenthesis;function hG(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))}function mG(){return this.scanner.skipSC(),this.scanner.tokenType===Ow&&this.lookupNonWSType(1)===fG?this.createSingleNodeList(this.Declaration()):zw.call(this)}function zw(){var t=this.createList(),e=null,r;this.scanner.skipSC();e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case uG:e=this.WhiteSpace();continue;case cG:this.scanner.next();continue;case dG:r=this.Function(hG,this.scope.AtrulePrelude);break;case Ow:r=this.Identifier();break;case pG:r=this.Parentheses(mG,this.scope.AtrulePrelude);break;default:break e}e!==null&&(t.push(e),e=null),t.push(r)}return t}var vG={parse:{prelude:function(){var t=zw.call(this);return this.getFirstListNode(t)===null&&this.error("Condition is expected"),t},block:function(){return this.Block(!1)}}},gG={"font-face":eG,import:sG,media:oG,page:lG,supports:vG},bG={parse:function(){return this.createSingleNodeList(this.Identifier())}},yG={parse:function(){return this.createSingleNodeList(this.SelectorList())}},xG={parse:function(){return this.createSingleNodeList(this.Identifier())}},Ew={parse:function(){return this.createSingleNodeList(this.SelectorList())}},wG=Ew,PG=Ew,SG=!0,jw={parse:function(){return this.createSingleNodeList(this.Nth(SG))}},CG=jw,kG=jw,TG=!1,Iw={parse:function(){return this.createSingleNodeList(this.Nth(TG))}},MG=Iw,DG=Iw,AG={parse:function(){return this.createSingleNodeList(this.Selector())}},OG={dir:bG,has:yG,lang:xG,matches:wG,not:PG,"nth-child":CG,"nth-last-child":kG,"nth-last-of-type":MG,"nth-of-type":DG,slotted:AG},zG={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude:function(t){return this.AtrulePrelude(t.atrule?String(t.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block:function(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},scope:$U,atrule:gG,pseudo:OG,node:ap},EG={node:ap};const jG={name:"css-tree",version:"1.1.3",description:"A tool set for CSS: fast detailed parser (CSS → AST), walker (AST traversal), generator (AST → CSS) and lexer (validation and matching) based on specs and browser implementations",author:"Roman Dvornov <rdvornov@gmail.com> (https://github.com/lahmatiy)",license:"MIT",repository:"csstree/csstree",keywords:["css","ast","tokenizer","parser","walker","lexer","generator","utils","syntax","validation"],main:"lib/index.js",unpkg:"dist/csstree.min.js",jsdelivr:"dist/csstree.min.js",scripts:{build:"rollup --config",lint:"eslint data lib scripts test && node scripts/review-syntax-patch --lint && node scripts/update-docs --lint","lint-and-test":"npm run lint && npm test","update:docs":"node scripts/update-docs","review:syntax-patch":"node scripts/review-syntax-patch",test:"mocha --reporter progress",coverage:"nyc npm test",travis:"nyc npm run lint-and-test && npm run coveralls",coveralls:"nyc report --reporter=text-lcov | coveralls",prepublishOnly:"npm run build",hydrogen:"node --trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces --redirect-code-traces-to=code.asm --trace_hydrogen_file=code.cfg --print-opt-code bin/parse --stat -o /dev/null"},dependencies:{"mdn-data":"2.0.14","source-map":"^0.6.1"},devDependencies:{"@rollup/plugin-commonjs":"^11.0.2","@rollup/plugin-json":"^4.0.2","@rollup/plugin-node-resolve":"^7.1.1",coveralls:"^3.0.9",eslint:"^6.8.0","json-to-ast":"^2.1.0",mocha:"^6.2.3",nyc:"^14.1.1",rollup:"^1.32.1","rollup-plugin-terser":"^5.3.0"},engines:{node:">=8.0.0"},files:["data","dist","lib"]};function IG(){for(var t={},e=0;e<arguments.length;e++){var r=arguments[e];for(var i in r)t[i]=r[i]}return t}Xd.exports=jb.create(IG(dU,zG,EG)),Xd.exports.version=jG.version;var NG=Xd.exports,ea=NG,Nw={exports:{}};(function(t){(function(e,r){t.exports?t.exports=r():e.Scrollparent=r()})(Tt,function(){function e(i){var a=getComputedStyle(i,null).getPropertyValue("overflow");return a.indexOf("scroll")>-1||a.indexOf("auto")>-1}function r(i){if(i instanceof HTMLElement||i instanceof SVGElement){for(var a=i.parentNode;a.parentNode;){if(e(a))return a;a=a.parentNode}return document.scrollingElement||document.documentElement}}return r})})(Nw);var LG=Nw.exports;const FG=nr(LG),BG={name:"custom-css-output",render(t){return t("style",this.$slots.default)}},wu=[{code:"AFN",name:"Afghanistan Afghani",format:"####.##",symbol:""},{code:"ALL",name:"Albanian Lek",format:"####.##",symbol:""},{code:"DZD",name:"Algerian Dinar",format:"####.##",symbol:"دج (Arabic) or DA (Latin)"},{code:"AOA",name:"Angolan Kwanza",format:"####.##",symbol:"Kz"},{code:"ARS",name:"Argentine Peso",format:"#.###,##",symbol:""},{code:"AMD",name:"Armenian Dram",format:"#,###.##",symbol:"֏"},{code:"AWG",name:"Aruban Guilder",format:"#,###.##",symbol:""},{code:"AUD",name:"Australian Dollar",format:"# ###.##",symbol:""},{code:"AZN",name:"Azerbaijanian Manat",format:"####.##",symbol:""},{code:"BSD",name:"Bahamian Dollar",format:"#,###.##",symbol:""},{code:"BHD",name:"Bahraini Dinar",format:"#,###.###",symbol:".د.ب (Arabic) or BD (Latin"},{code:"BDT",name:"Bangladesh Taka",format:"#,###.##",symbol:"৳"},{code:"BBD",name:"Barbados Dollar",format:"####.##",symbol:""},{code:"BYN",name:"Belarussian Ruble",format:"####",symbol:""},{code:"BZD",name:"Belize Dollar",format:"#,###.##",symbol:""},{code:"BMD",name:"Bermudian Dollar",format:"#,###.##",symbol:""},{code:"BTN",name:"Bhutan Ngultrum",format:"####.##",symbol:"Nu"},{code:"BOB",name:"Bolivia, Boliviano",format:"#,###.##",symbol:""},{code:"BAM",name:"Bosnia and Herzegovina, Convertible Marks",format:"#,###.##",symbol:""},{code:"BWP",name:"Botswana, Pula",format:"#,###.##",symbol:""},{code:"BRL",name:"Brazilian Real",format:"#.###,##",symbol:""},{code:"BND",name:"Brunei Dollar",format:"#,###.##",symbol:""},{code:"BGN",name:"Bulgarian Lev",format:"####.##",symbol:""},{code:"BIF",name:"Burundi Franc",format:"####",symbol:"FBu"},{code:"KHR",name:"Cambodia, Riel",format:"####.##",symbol:""},{code:"CAD",name:"Canadian Dollar",format:"#,###.##",symbol:""},{code:"CVE",name:"Cape Verde Escudo",format:"####.##",symbol:""},{code:"KYD",name:"Cayman Islands Dollar",format:"#,###.##",symbol:""},{code:"XPF",name:"CFP Franc",format:"####",symbol:"₣"},{code:"CLP",name:"Chilean Peso",format:"#.###",symbol:""},{code:"CNY",name:"China Yuan Renminbi",format:"#,###.##",symbol:""},{code:"COP",name:"Colombian Peso",format:"#.###,##",symbol:""},{code:"KMF",name:"Comoro Franc",format:"####",symbol:"CF"},{code:"CRC",name:"Costa Rican Colon",format:"#.###,##",symbol:""},{code:"HRK",name:"Croatian Kuna",format:"#.###,##",symbol:""},{code:"CUP",name:"Cuban Peso",format:"#,###.##",symbol:""},{code:"CZK",name:"Czech Koruna",format:"#.###,##",symbol:""},{code:"DKK",name:"Danish Krone",format:"#.###,##",symbol:""},{code:"DJF",name:"Djibouti Franc",format:"####",symbol:"Fdj"},{code:"DOP",name:"Dominican Peso",format:"#,###.##",symbol:""},{code:"XCD",name:"East Caribbean Dollar",format:"#,###.##",symbol:""},{code:"EGP",name:"Egyptian Pound",format:"#,###.##",symbol:""},{code:"SVC",name:"El Salvador Colon",format:"#,###.##",symbol:""},{code:"ERN",name:"Eritrea Nakfa",format:"####.##",symbol:"Nkf (Latin script) ናቕፋ (Ge'ez script) ناكفا (Arabic script)"},{code:"ETB",name:"Ethiopian Birr",format:"####.##",symbol:"Br (Latin Script) ብር (Ethiopic Script)"},{code:"EUR",name:"Euro",format:"#,###.##",symbol:""},{code:"FKP",name:"Falkland Islands Pound",format:"####.##",symbol:""},{code:"FJD",name:"Fiji Dollar",format:"####.##",symbol:""},{code:"CDF",name:"Congolais Franc",format:"####.##",symbol:"FC"},{code:"GMD",name:"Gambia Dalasi",format:"####.##",symbol:"D"},{code:"GEL",name:"Georgia Lari",format:"####.##",symbol:"ლ (Lasi) of the Georgian script"},{code:"GHC",name:"Ghana Cedi",format:"#,###.##",symbol:""},{code:"GIP",name:"Gibraltar Pound",format:"#,###.##",symbol:""},{code:"GTQ",name:"Guatemala, Quetzal",format:"#,###.##",symbol:""},{code:"GWP",name:"Guinea-Bissau Peso",format:"####.##",symbol:"$ or COL$"},{code:"GYD",name:"Guyana Dollar",format:"####.##",symbol:""},{code:"HTG",name:"Haitian Gourde",format:"####.##",symbol:"G"},{code:"HNL",name:"Honduran Lempira",format:"#,###.##",symbol:""},{code:"HKD",name:"Hong Kong Dollar",format:"#,###.##",symbol:""},{code:"HUF",name:"Hungary Forint",format:"#.###",symbol:""},{code:"ISK",name:"Iceland Krona",format:"#.###",symbol:""},{code:"INR",name:"Indian Rupee",format:"#,###.##",symbol:"₹"},{code:"IDR",name:"Indonesian Rupiah",format:"#.###,##",symbol:""},{code:"IRR",name:"Iranian Rial",format:"#,###.##",symbol:""},{code:"IQD",name:"Iraqi Dinar",format:"####.###",symbol:"ع.د"},{code:"JMD",name:"Jamaican Dollar",format:"#,###.##",symbol:""},{code:"JPY",name:"Japanese Yen",format:"#,###",symbol:""},{code:"JOD",name:"Jordanian Dinar",format:"#,###.###",symbol:"د.ا"},{code:"KZT",name:"Kazakhstan Tenge",format:"####.##",symbol:""},{code:"KES",name:"Kenyan Shilling",format:"#,###.##",symbol:"KES"},{code:"KWD",name:"Kuwaiti Dinar",format:"#,###.###",symbol:"د.ك or KD"},{code:"KGS",name:"Kyrgyzstan Som",format:"####.##",symbol:""},{code:"LAK",name:"Laos, Kip",format:"####.##",symbol:""},{code:"LVL",name:"Latvian Lats",format:"#,###.##",symbol:"Ls"},{code:"LBP",name:"Lebanese Pound",format:"# ###",symbol:""},{code:"LSL",name:"Lesotho Loti",format:"####.##",symbol:"L (singular) or M (plural)"},{code:"LRD",name:"Liberian Dollar",format:"####.##",symbol:""},{code:"LYD",name:"Libyan Dinar",format:"####.###",symbol:"LD and ل.د"},{code:"LTL",name:"Lithuanian Litas",format:"# ###,##",symbol:"Lt"},{code:"MOP",name:"Macao Pataca",format:"####.##",symbol:"MOP$"},{code:"MKD",name:"Macedonia, Denar",format:"#,###.##",symbol:""},{code:"MGA",name:"Malagasy Ariary",format:"####",symbol:"Ar"},{code:"MWK",name:"Malawi Kwacha",format:"####.##",symbol:"MK"},{code:"MYR",name:"Malaysian Ringgit",format:"#,###.##",symbol:""},{code:"MVR",name:"Maldives Rufiyaa",format:"####.##",symbol:"Rf"},{code:"MTL",name:"Maltese Lira",format:"#,###.##",symbol:"₤ and Lm"},{code:"MRO",name:"Mauritanian Ouguiya",format:"####.##",symbol:"UM"},{code:"MUR",name:"Mauritius Rupee",format:"#,###",symbol:""},{code:"MXN",name:"Mexican Peso",format:"#,###.##",symbol:""},{code:"MDL",name:"Moldovan Leu",format:"####.##",symbol:"L"},{code:"MNT",name:"Mongolian Tugrik",format:"####.##",symbol:""},{code:"MAD",name:"Moroccan Dirham",format:"####.##",symbol:"MAD"},{code:"MZM",name:"Mozambique Metical",format:"#.###,##",symbol:""},{code:"MMK",name:"Myanmar Kyat",format:"####.##",symbol:"K"},{code:"NAD",name:"Namibian Dollar",format:"####.##",symbol:""},{code:"NPR",name:"Nepalese Rupee",format:"#,###.##",symbol:""},{code:"ANG",name:"Netherlands Antillian Guilder",format:"#.###,##",symbol:""},{code:"ILS",name:"New Israeli Shekel",format:"#,###.##",symbol:""},{code:"TWD",name:"New Taiwan Dollar",format:"####.##",symbol:""},{code:"TRY",name:"New Turkish Lira",format:"#,###.##",symbol:"₺"},{code:"NZD",name:"New Zealand Dollar",format:"#,###.##",symbol:""},{code:"NIO",name:"Nicaragua, Cordoba Oro",format:"####.##",symbol:""},{code:"NGN",name:"Nigeria, Naira",format:"#,###.##",symbol:""},{code:"KPW",name:"North Korean Won",format:"####.##",symbol:""},{code:"NOK",name:"Norwegian Krone",format:"#.###,##",symbol:""},{code:"PKR",name:"Pakistan Rupee",format:"#,###.##",symbol:""},{code:"PAB",name:"Panama Balboa",format:"####.##",symbol:""},{code:"PGK",name:"Papua New Guinea Kina",format:"####.##",symbol:"K"},{code:"PYG",name:"Paraguay Guarani",format:"####",symbol:""},{code:"PEN",name:"Peru Nuevo Sol",format:"#,###.##",symbol:""},{code:"UYU",name:"Uruguay Peso",format:"#.###,##",symbol:""},{code:"PHP",name:"Philippine Peso",format:"#,###.##",symbol:""},{code:"PLN",name:"Poland Zloty",format:"# ###,##",symbol:""},{code:"GBP",name:"United Kingdom Pound Sterling",format:"#,###.##",symbol:""},{code:"QAR",name:"Qatari Rial",format:"####.##",symbol:""},{code:"OMR",name:"Rial Omani",format:"#,###.###",symbol:"ر.ع."},{code:"RON",name:"Romania, New Leu",format:"#.###,##",symbol:""},{code:"RUB",name:"Russian Ruble",format:"#.###,##",symbol:""},{code:"RWF",name:"Rwanda Franc",format:"####",symbol:"FRw"},{code:"SHP",name:"Saint Helena Pound",format:"####.##",symbol:""},{code:"WST",name:"Samoa Tala",format:"####.##",symbol:"SAT"},{code:"STN",name:"Sao Tome and Principe Dobra",format:"####.##",symbol:"Db"},{code:"SAR",name:"Saudi Riyal",format:"#,###.##",symbol:""},{code:"RSD",name:"Serbian Dinar",format:"####.##",symbol:""},{code:"SCR",name:"Seychelles Rupee",format:"####.##",symbol:""},{code:"SLL",name:"Sierra Leone Leone",format:"####.##",symbol:"Le"},{code:"SGD",name:"Singapore Dollar",format:"#,###.##",symbol:""},{code:"SKK",name:"Slovak Koruna",format:"# ###,##",symbol:"Sk"},{code:"SIT",name:"Slovenia Tolar",format:"#.###,##",symbol:"SlT"},{code:"SBD",name:"Solomon Islands Dollar",format:"####.##",symbol:""},{code:"SOS",name:"Somali Shilling",format:"####.##",symbol:""},{code:"ZAR",name:"South Africa Rand",format:"# ###.##",symbol:""},{code:"KRW",name:"South Korea Won",format:"#,###",symbol:""},{code:"LKR",name:"Sri Lanka Rupee",format:"####.##",symbol:""},{code:"SDD",name:"Sudanese Dinar",format:"####.##",symbol:"LSd"},{code:"SRD",name:"Surinam Dollar",format:"####.##",symbol:"$"},{code:"SZL",name:"Swaziland Lilangeni",format:"#, ###.##",symbol:"L (singular) or E (plural)"},{code:"SEK",name:"Swedish Krona",format:"# ###,##",symbol:""},{code:"CHF",name:"Swiss Franc",format:"#'###.##",symbol:""},{code:"SYP",name:"Syrian Pound",format:"####.##",symbol:""},{code:"TZS",name:"Tanzanian Shilling",format:"#,###.##",symbol:"TSh"},{code:"THB",name:"Thailand, Baht",format:"#,###.##",symbol:""},{code:"TOP",name:"Tongan Paanga",format:"#,###.##",symbol:"T$"},{code:"TTD",name:"Trinidad and Tobago Dollar",format:"####.##",symbol:""},{code:"TND",name:"Tunisian Dinar",format:"####.###",symbol:"د.ت (Tunisian Arabic) or DT (Latin)"},{code:"TMT",name:"Turkmenistani New Manat",format:"####.##",symbol:"T"},{code:"AED",name:"UAE Dirham",format:"#,###.##",symbol:"د.إ"},{code:"UGX",name:"Uganda Shilling",format:"####.##",symbol:"USh"},{code:"UAH",name:"Ukraine Hryvnia",format:"# ###,##",symbol:""},{code:"CLF",name:"Unidad de Fomento",format:"####.##",symbol:"CLF"},{code:"USD",name:"US Dollar",format:"#,###.##",symbol:"$"},{code:"UZS",name:"Uzbekistan Sum",format:"####.##",symbol:""},{code:"VUV",name:"Vanuatu Vatu",format:"#,###",symbol:"VT"},{code:"VES",name:"Venezuela Bolivares Fuertes",format:"#.###,##",symbol:""},{code:"VND",name:"Viet Nam Dong",format:"#.###",symbol:""},{code:"YER",name:"Yemeni Rial",format:"####.##",symbol:""},{code:"ZMK",name:"Zambian Kwacha",format:"####.##",symbol:"ZK"},{code:"ZWD",name:"Zimbabwe Dollar",format:"# ###.##",symbol:""}],RG=Object.freeze(Object.defineProperty({__proto__:null,default:wu},Symbol.toStringTag,{value:"Module"}));function Lw(t){return t.component!=="FormMultiColumn"?t:t.items.flatMap(Lw)}function HG(t){return t.flatMap(e=>e.items).flatMap(Lw)}Bt.register("custom-same",function(t,e){let r;const i=t;return e.includes(".")?r=e.split(".").reduce((a,n)=>a[n],this.validator.input):r=this.validator._flattenObject(this.validator.input)[e],r===i},"The :attribute and :custom-same fields must match."),Bt.register("after",function(t,e){const r=Cr(t).toISOString(),i=Cr(e).toISOString();return r>i},"The :attribute must be after :after."),Bt.register("after_or_equal",function(t,e){const r=Cr(t).toISOString(),i=Cr(e).toISOString();return r>=i},"The :attribute must be equal or after :after_or_equal."),Bt.register("before",function(t,e){const r=Cr(t).toISOString(),i=Cr(e).toISOString();return r<i},"The :attribute must be before :before."),Bt.register("before_or_equal",function(t,e){const r=Cr(t).toISOString(),i=Cr(e).toISOString();return r<=i},"The :attribute must be equal or before :before_or_equal."),Bt.register("custom_date",function(t){let e="MM/DD/YYYY";return typeof window.ProcessMaker<"u"&&window.ProcessMaker.user&&window.ProcessMaker.user.datetime_format&&(e=window.ProcessMaker.user.datetime_format.replace(/[\sHh:msaAzZ]/g,"")),Cr(t,[e,Cr.ISO_8601],!0).isValid()},"The :attribute must be a valid date.");function VG(t,e){const r={},i={int:"integer",boolean:"boolean",string:"string",datetime:"custom-datetime",date:"custom-date",float:"regex:/^[+-]?\\d+(\\.\\d+)?$/",currency:"regex:/^[+-]?\\d+(\\.\\d+)?$/",array:"array",percentage:"regex:/^[+-]?\\d+(\\.\\d+)?$/",password:"string"};return r.validator=null,r.config=t,r.data=e,r.elements={},r.rules={},r.getDataAndRules=a=>{a.forEach(n=>{if(n){if(Array.isArray(n)&&r.getDataAndRules(n),n.items&&(n.component==="FormLoop"?r.ruleFormLoop(n.config.name,n.items):r.getDataAndRules(n.items)),n.component==="FormNestedScreen"){const s=G.get(window,`nestedScreens.id_${n.config.screen}`);s&&r.getDataAndRules(s)}n.config&&n.config.name&&n.config.validation&&r.addRule(n.config.name,n.config.validation),n.component==="FormInput"&&n.config&&n.config.name&&n.config.dataFormat&&r.addRuleFormat(n.config.name,n.config.dataFormat)}})},r.addRule=(a,n)=>{const s=[];typeof n=="string"?s.push(n):n.forEach(o=>{s.push(o.value)}),r.rules[a]=s},r.addRuleFormat=(a,n)=>{r.rules[a]||(r.rules[a]=[]),r.rules[a].push(i[n])},r.ruleFormLoop=(a,n)=>{n.forEach(s=>{Array.isArray(s)&&r.ruleFormLoop(a,s),s.items&&(s.component==="FormLoop"?r.ruleFormLoop(`${a}.*.${s.config.name}`,s.items):r.ruleFormLoop(a,s.items)),s.config&&s.config.name&&s.config.validation&&(Array.isArray(s.config.validation)&&s.config.validation.forEach(o=>{if(!o.value.includes(":"))return;const u=o.value.split(":")[0];let l=o.value.split(":")[1],c;if(u.includes("required_")||u.includes("same")){if(l.includes("_parent"))l=l.split("_parent.").pop(),c=`${u}:${l}`;else if(!l.includes(","))c=`${u}:${a}.*.${l}`;else{l=l.split(",")[0];const d=o.value.split(":")[1].split(",")[1];c=`${u}:${a}.*.${l},${d}`}o.value=c}}),r.addRule(`${a}.*.${s.config.name}`,s.config.validation)),s.component==="FormInput"&&s.config&&s.config.name&&s.config.dataFormat&&r.addRuleFormat(`${a}.*.${s.config.name}`,s.config.dataFormat)})},r.getValidator=()=>{r.getDataAndRules(r.config),r.validator=new Bt(r.data,r.rules)},r.getErrors=()=>r.failed()?r.validator.errors.errors:{},r.failed=()=>(r.getValidator(),r.validator.fails()),r}const qG={props:["value"],data(){return{display:"running",errorMessage:"",showMessage:!1,variables:[]}},computed:{message(){return this.$t("{{variable}} running.",{variable:this.variables.join(", ")})}},methods:{error(t){this.display="error",this.errorMessage=t},show(t){this.variables.indexOf(t)===-1&&this.variables.push(t),this.display="running",this.errorMessage="",this.showMessage=!1,this.$refs.modal.show()},hide(t){t===-1&&this.variables.splice(0);const e=this.variables.indexOf(t);e>-1&&this.variables.splice(e,1),this.variables.length===0&&this.$refs.modal.hide()}}};var WG=function(){var e=this,r=e._self._c;return r("b-modal",{ref:"modal",attrs:{size:"lg",id:"watchers-synchronous",title:"","hide-header":"","no-close-on-esc":"","hide-header-close":"","no-close-on-backdrop":""}},[e.display==="running"?r("div",{staticClass:"container text-center"},[r("div",{staticClass:"icon-container m-4"},[r("svg",{staticClass:"lds-gear",attrs:{width:"50%",height:"50%",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[r("g",{attrs:{transform:"translate(50 50)"}},[r("g",{attrs:{transform:"rotate(248.825)"}},[r("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0;360",keyTimes:"0;1",dur:"4.7s",repeatCount:"indefinite"}}),r("path",{attrs:{d:"M37.43995192304605 -6.5 L47.43995192304605 -6.5 L47.43995192304605 6.5 L37.43995192304605 6.5 A38 38 0 0 1 35.67394948182593 13.090810836924174 L35.67394948182593 13.090810836924174 L44.33420351967032 18.090810836924174 L37.83420351967032 29.34914108612188 L29.17394948182593 24.34914108612188 A38 38 0 0 1 24.34914108612188 29.17394948182593 L24.34914108612188 29.17394948182593 L29.34914108612188 37.83420351967032 L18.090810836924184 44.33420351967032 L13.090810836924183 35.67394948182593 A38 38 0 0 1 6.5 37.43995192304605 L6.5 37.43995192304605 L6.500000000000001 47.43995192304605 L-6.499999999999995 47.43995192304606 L-6.499999999999996 37.43995192304606 A38 38 0 0 1 -13.09081083692417 35.67394948182593 L-13.09081083692417 35.67394948182593 L-18.09081083692417 44.33420351967032 L-29.34914108612187 37.834203519670325 L-24.349141086121872 29.173949481825936 A38 38 0 0 1 -29.17394948182592 24.34914108612189 L-29.17394948182592 24.34914108612189 L-37.83420351967031 29.349141086121893 L-44.33420351967031 18.0908108369242 L-35.67394948182592 13.090810836924193 A38 38 0 0 1 -37.43995192304605 6.5000000000000036 L-37.43995192304605 6.5000000000000036 L-47.43995192304605 6.500000000000004 L-47.43995192304606 -6.499999999999993 L-37.43995192304606 -6.499999999999994 A38 38 0 0 1 -35.67394948182593 -13.090810836924167 L-35.67394948182593 -13.090810836924167 L-44.33420351967032 -18.090810836924163 L-37.834203519670325 -29.34914108612187 L-29.173949481825936 -24.34914108612187 A38 38 0 0 1 -24.349141086121893 -29.17394948182592 L-24.349141086121893 -29.17394948182592 L-29.349141086121897 -37.834203519670304 L-18.0908108369242 -44.334203519670304 L-13.090810836924195 -35.67394948182592 A38 38 0 0 1 -6.500000000000005 -37.43995192304605 L-6.500000000000005 -37.43995192304605 L-6.500000000000007 -47.43995192304605 L6.49999999999999 -47.43995192304606 L6.499999999999992 -37.43995192304606 A38 38 0 0 1 13.090810836924149 -35.67394948182594 L13.090810836924149 -35.67394948182594 L18.090810836924142 -44.33420351967033 L29.349141086121847 -37.83420351967034 L24.349141086121854 -29.17394948182595 A38 38 0 0 1 29.17394948182592 -24.349141086121893 L29.17394948182592 -24.349141086121893 L37.834203519670304 -29.349141086121897 L44.334203519670304 -18.0908108369242 L35.67394948182592 -13.090810836924197 A38 38 0 0 1 37.43995192304605 -6.500000000000007 M0 -20A20 20 0 1 0 0 20 A20 20 0 1 0 0 -20"}})],1)])])]),r("h3",{staticClass:"display-6"},[e._v(e._s(e.message))]),r("p",{staticClass:"lead"},[e._v(e._s(e.$t("This window will automatically close when complete.")))])]):r("div",{staticClass:"container text-center"},[r("div",{staticClass:"icon-container m-4"},[r("i",{staticClass:"fas fa-sad-tear fa-10x"})]),r("h3",{staticClass:"display-6"},[e._v(e._s(e.$t("Something has gone wrong.")))]),r("p",{staticClass:"lead"},[e._v(e._s(e.$t("Unfortunately this screen has had an issue. We've notified the administrator."))+" "),r("a",{attrs:{href:"javascript:void(0)","data-cy":"watchers-show-error-message"},on:{click:function(i){e.showMessage=!e.showMessage}}},[r("i",{staticClass:"fas fa-info-circle"})])]),e.showMessage?r("small",{staticClass:"text-danger text-left small"},[e._v(e._s(e.errorMessage))]):e._e()]),r("div",{staticClass:"w-100 text-right",attrs:{slot:"modal-footer"},slot:"modal-footer"},[e.display==="error"?r("button",{staticClass:"btn btn-outline-secondary",attrs:{type:"button"},on:{click:function(i){return e.hide(-1)}}},[e._v(e._s(e.$t("Close")))]):e._e()])])},XG=[],JG=ie(qG,WG,XG,!1,null,null,null,null);const Fw=JG.exports,UG={props:{value:Object}};var GG=function(){var e=this,r=e._self._c;return r("b-alert",{ref:"alert",attrs:{variant:"danger",dismissible:""},model:{value:e.value.show,callback:function(i){e.$set(e.value,"show",i)},expression:"value.show"}},[r("b",[e._v(" "+e._s(e.value.error)+" ")]),r("ul",e._l(e.value.errors,function(i,a){return r("li",{key:`error-${a}`},[e._v(e._s(i))])}),0)])},QG=[],YG=ie(UG,GG,QG,!1,null,null,null,null);const sp=YG.exports,Iie="",ZG={name:"ScreenRenderer",components:{WatchersSynchronous:Fw,ScreenRendererError:sp},mixins:[Sb,gc],props:{loopContext:{type:String,default:""},taskdraft:Object},data(){return{currentDefinition:null,codigo:"",displayAsyncLoading:!1}},watch:{definition:{deep:!0,handler(t){G.isEmpty(t.config)||this.rebuildScreen(t)}}},mounted(){this.currentDefinition=G.cloneDeep(this.definition),this.component=this.buildComponent(this.currentDefinition)},methods:{rebuildScreen(t){G.isEqual(t,this.currentDefinition)||(this.currentDefinition=G.cloneDeep(t),this.component=this.buildComponent(this.currentDefinition))},onAsyncWatcherOn(){this.displayAsyncLoading=typeof this._parent>"u"},onAsyncWatcherOff(){this.displayAsyncLoading=!1},getCurrentPage(){return this.$refs.component.getCurrentPage()},setCurrentPage(t){this.$emit("updatedPage"),this.$refs.component.setCurrentPage(t)},afterSubmit(){this.$emit("after-submit",...arguments)}}};var KG=function(){var i;var e=this,r=e._self._c;return r("b-container",{attrs:{fluid:""}},[e.displayAsyncLoading?r("div",{ref:"watchersAsynchronous",staticClass:"alert alert-light",attrs:{role:"alert"}},[r("svg",{staticClass:"lds-gear",attrs:{width:"20px",height:"20px",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"}},[r("g",{attrs:{transform:"translate(50 50)"}},[r("g",{attrs:{transform:"rotate(248.825)"}},[r("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0;360",keyTimes:"0;1",dur:"4.7s",repeatCount:"indefinite"}}),r("path",{attrs:{d:"M37.43995192304605 -6.5 L47.43995192304605 -6.5 L47.43995192304605 6.5 L37.43995192304605 6.5 A38 38 0 0 1 35.67394948182593 13.090810836924174 L35.67394948182593 13.090810836924174 L44.33420351967032 18.090810836924174 L37.83420351967032 29.34914108612188 L29.17394948182593 24.34914108612188 A38 38 0 0 1 24.34914108612188 29.17394948182593 L24.34914108612188 29.17394948182593 L29.34914108612188 37.83420351967032 L18.090810836924184 44.33420351967032 L13.090810836924183 35.67394948182593 A38 38 0 0 1 6.5 37.43995192304605 L6.5 37.43995192304605 L6.500000000000001 47.43995192304605 L-6.499999999999995 47.43995192304606 L-6.499999999999996 37.43995192304606 A38 38 0 0 1 -13.09081083692417 35.67394948182593 L-13.09081083692417 35.67394948182593 L-18.09081083692417 44.33420351967032 L-29.34914108612187 37.834203519670325 L-24.349141086121872 29.173949481825936 A38 38 0 0 1 -29.17394948182592 24.34914108612189 L-29.17394948182592 24.34914108612189 L-37.83420351967031 29.349141086121893 L-44.33420351967031 18.0908108369242 L-35.67394948182592 13.090810836924193 A38 38 0 0 1 -37.43995192304605 6.5000000000000036 L-37.43995192304605 6.5000000000000036 L-47.43995192304605 6.500000000000004 L-47.43995192304606 -6.499999999999993 L-37.43995192304606 -6.499999999999994 A38 38 0 0 1 -35.67394948182593 -13.090810836924167 L-35.67394948182593 -13.090810836924167 L-44.33420351967032 -18.090810836924163 L-37.834203519670325 -29.34914108612187 L-29.173949481825936 -24.34914108612187 A38 38 0 0 1 -24.349141086121893 -29.17394948182592 L-24.349141086121893 -29.17394948182592 L-29.349141086121897 -37.834203519670304 L-18.0908108369242 -44.334203519670304 L-13.090810836924195 -35.67394948182592 A38 38 0 0 1 -6.500000000000005 -37.43995192304605 L-6.500000000000005 -37.43995192304605 L-6.500000000000007 -47.43995192304605 L6.49999999999999 -47.43995192304606 L6.499999999999992 -37.43995192304606 A38 38 0 0 1 13.090810836924149 -35.67394948182594 L13.090810836924149 -35.67394948182594 L18.090810836924142 -44.33420351967033 L29.349141086121847 -37.83420351967034 L24.349141086121854 -29.17394948182595 A38 38 0 0 1 29.17394948182592 -24.349141086121893 L29.17394948182592 -24.349141086121893 L37.834203519670304 -29.349141086121897 L44.334203519670304 -18.0908108369242 L35.67394948182592 -13.090810836924197 A38 38 0 0 1 37.43995192304605 -6.500000000000007 M0 -20A20 20 0 1 0 0 20 A20 20 0 1 0 0 -20"}})],1)])]),e._v(" "+e._s(e.$t("Loading..."))+" ")]):e._e(),r(e.component,{ref:"component",tag:"component",attrs:{vdata:e.value,_parent:e._parent||((i=e.value)==null?void 0:i._parent),"_initial-page":e.currentPage,taskdraft:e.taskdraft},on:{"after-submit":e.afterSubmit,submit:e.submit,asyncWatcherTriggered:e.onAsyncWatcherOn,asyncWatcherCompleted:e.onAsyncWatcherOff}}),e.showErrors&&e.building.error?r("screen-renderer-error",{model:{value:e.building,callback:function(a){e.building=a},expression:"building"}}):e._e(),r("watchers-synchronous",{ref:"watchersSynchronous"})],1)},_G=[],$G=ie(ZG,KG,_G,!1,null,null,null,null);const Bw=$G.exports,Nie="",eQ={name:"VueFormRenderer",components:{ScreenRenderer:Bw,CustomCssOutput:BG},mixins:[gc,zh],model:{prop:"data",event:"update"},props:["config","data","_parent","page","computed","customCss","mode","watchers","isLoop","ancestorScreens","loopContext","showErrors","testScreenDefinition","deviceScreen","taskdraft"],data(){return{definition:{config:this.config,computed:this.computed,customCss:this.customCss,watchers:this.watchers,isMobile:!1},formSubmitErrorClass:"",watchers_config:{api:{execute:null,execution:null}},customCssWrapped:"",customFunctions:{formatCurrency(){const t=(e,r)=>{const i=wu.find(n=>n.code===r),a={alias:"currency"};if(i){const n=i.format.match(/[.,]/g);n.length===0?n.push("","."):n.length===1&&n.push(n[0]==="."?",":"."),a.digits=(i.format.split(n[1])[1]||"").length,a.radixPoint=n[1],a.groupSeparator=n[0],a.prefix=`${i.symbol} `,a.suffix=` ${i.code}`}return Ob.format(e,a)};return function(e){const r=JSON.parse(`[${e}]`);return t(G.get(this,r[0]),r[1])}}},scrollable:null,containerObserver:null}},computed:{containerClass(){return this.parentScreen?`screen-${this.parentScreen}`:"custom-css-scope"},cssDevice(){return{"--mobile-width":Oh}},containerDeviceClass(){return this.deviceScreen==="mobile"?"container-mobile":"container-desktop"}},watch:{customCss(t){this.definition.customCss=t,this.parseCss()},config:{deep:!0,handler(t){this.definition.config=t,this.$nextTick(()=>{this.registerCustomFunctions()})}},data:{deep:!0,handler(){this.$emit("update",this.data);const t=this.getMainScreen();t&&this.validate(t)}},computed:{deep:!0,handler(t){this.definition.computed=t}},watchers:{deep:!0,handler(t){this.definition.watchers=t}}},created(){this.parseCss=G.debounce(this.parseCss,500,{leading:!0}),this.containerObserver=new ResizeObserver(this.onContainerObserver)},mounted(){this.registerCustomFunctions(),window.ProcessMaker&&window.ProcessMaker.EventBus&&window.ProcessMaker.EventBus.$emit("screen-renderer-init",this),this.scrollable=FG(this.$el),this.containerObserver.observe(this.$refs.formRendererContainer),this.$store.dispatch("clipboardModule/initializeClipboard")},methods:{...It.mapActions("globalErrorsModule",["validate","hasSubmitted","showValidationOnLoad","restartValidation"]),getMainScreen(){return this.$refs.renderer&&this.$refs.renderer.$refs.component},countElements(t){const e={config:t};return this.$refs.renderer.countElements(e)},checkForRecordList(t,e){return t.forEach(r=>{r.items&&this.checkForRecordList(r.items,e),r.component==="FormRecordList"&&this.removeRecordListForms(r,e)}),e},removeRecordListForms(t,e){const r=t.config.form;return delete e[r],e},checkForNestedScreenErrors(t){if(t.$options._componentTag==="FormNestedScreen")return t.errors()},isValid(){const t=HG(this.definition.config),e=G.cloneDeep(this.definition.config);return this.checkForRecordList(t,e),this.dataTypeValidator=VG(e,this.data),this.errors=this.dataTypeValidator.getErrors(),this.errors&&(this.formSubmitErrorClass="invalid-form-submission"),G.size(this.errors)===0},registerCustomFunctions(t=this){t.registerCustomFunction instanceof Function&&Object.keys(this.customFunctions).forEach(e=>{t.registerCustomFunction(e,this.customFunctions[e])}),t.$children instanceof Array&&t.$children.forEach(e=>this.registerCustomFunctions(e))},afterSubmit(){this.$emit("after-submit",...arguments)},submit(t,e=!1,r=null){this.$emit("submit",this.data,e,r)},parseCss(){const t=`.${this.containerClass}`;try{const e=ea.parse(this.customCss,{onParseError(a){throw a.formattedMessage}});let r=0;ea.walk(e,function(a,n,s){if(a.type.match(/^.+Selector$/)&&a.name!==t&&s&&(n.prev||(s.prependData({type:"WhiteSpace",loc:null,value:" "}),s.prependData({type:"TypeSelector",loc:null,name:t}))),r>5e3)throw Error("CSS is too long");r+=1});const i=[];ea.walk(e,{visit:"Atrule",enter:(a,n,s)=>{if(!n.prev&&a.name==="media"){const o={minWidth:0,maxWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),rules:[]};ea.walk(a.prelude,{visit:"MediaFeature",enter:u=>{["min-width","max-width"].includes(u.name)&&(o[G.camelCase(u.name)]=parseInt(u.value.value,10),o.rules.length===0&&ea.walk(a.block,{visit:"Rule",enter:l=>{const c=ea.generate(l);o.rules.push(c)}}),i.push(o))}}),s.remove(n)}}}),this.customCssWrapped=ea.generate(e),i.forEach(a=>{const{width:n}=this.$refs.formRendererContainer.getBoundingClientRect();n>=a.minWidth&&n<=a.maxWidth&&(this.customCssWrapped+=a.rules.join(" "))}),this.$emit("css-errors","")}catch(e){this.$emit("css-errors",e)}},getCurrentPage(){return this.$refs.renderer.getCurrentPage()},setCurrentPage(t){this.$emit("update-page-task"),this.$refs.renderer.setCurrentPage(t)},onContainerObserver(t){t[0].target.getBoundingClientRect(),this.parseCss()},saveClipboarToLocalStorage(t){localStorage.setItem("savedClipboard",JSON.stringify(t))}}};var tQ=function(){var i;var e=this,r=e._self._c;return r("div",{ref:"formRendererContainer",class:[e.containerClass,e.containerDeviceClass],style:e.cssDevice,attrs:{id:"vue-form-renderer","data-cy":"screen-renderer-container"}},[r("custom-css-output",[e._v(e._s(e.customCssWrapped))]),r("screen-renderer",{ref:"renderer",staticClass:"p-0",attrs:{value:e.data,_parent:e._parent||((i=e.data)==null?void 0:i._parent),definition:e.definition,"current-page":e.currentPage,"data-cy":"screen-renderer","show-errors":e.showErrors,"test-screen-definition":e.testScreenDefinition||!1,"loop-context":e.loopContext,taskdraft:e.taskdraft},on:{updatePage:e.setCurrentPage,"after-submit":e.afterSubmit,submit:e.submit}})],1)},rQ=[],iQ=ie(eQ,tQ,rQ,!1,null,"fcdcc032",null,null);const wi=iQ.exports,aQ={name:"FormLoop",components:{VueFormRenderer:wi},mixins:[],props:["value","config","transientData","name","mode","formConfig"],data(){return{matrix:[],items:[],additionalItems:0,transientDataCopy:null,parentObjectChanges:[]}},computed:{parentLoopContext(){let t=this.$parent,e=0,r="";for(;!t.loopContext;){if(t=t.$parent,t===this.$root){t=null;break}if(e>100)throw new Error("Loop Error");e++}return t&&(r=t.loopContext),r},rendererConfig(){const{items:t}=this;return[{name:"LoopItem",items:t}]},times(){if(!this.config||!this.config.settings)return[];if(this.config.settings.type==="existing"){const e=G.get(this.transientData,this.name,null);return e?[...e.keys()]:[]}let{times:t}=this.config.settings;try{t=ur.render(t,this.transientData)}catch(e){throw new Error(e)}return t=parseInt(t),Number.isNaN(t)?[]:(t>100&&(t=100),t+=this.additionalItems,[...Array(t).keys()])}},watch:{transientData:{handler(){this.transientDataCopy=G.cloneDeep(this.transientData),this.$delete(this.transientDataCopy,this.name);const t=G.get(this,`transientData.${this.name}`,null);t&&Array.isArray(t)?this.matrix=t:this.matrix=[],this.setupMatrix()},immediate:!0},value:{handler(){this.items=this.value},immediate:!0},matrix:{handler(){G.isEqual(this.$parent.transientData[this.name],this.matrix)||this.$set(this.$parent.transientData,this.name,G.cloneDeep(this.matrix))},deep:!0},times(){this.setupMatrix()},"config.settings.times":{handler(){this.additionalItems=0}}},mounted(){this.$set(this.$parent.transientData,this.name,G.cloneDeep(this.matrix))},methods:{getLoopContext(t){let e=`${this.name}.${t.toString()}`;return this.parentLoopContext!==""&&(e=`${this.parentLoopContext}.${e}`),e},add(){this.config.settings.type==="existing"?this.setMatrixValue(this.matrix.length,{}):this.additionalItems++},remove(){this.config.settings.type==="existing"?this.$delete(this.matrix,this.matrix.length-1):this.additionalItems--},removeConfirm(){const t=this.$t("Are you sure you want to delete this?");window.ProcessMaker.confirmModal(this.$t("Caution!"),t,"",()=>{this.remove()})},setMatrixValue(t,e){const r=G.omit(e,"_parent");this.registerParentVariableChanges(e),this.$set(this.matrix,t,r),this.setChagnedParentVariables()},registerParentVariableChanges(t){t._parent&&Object.keys(t._parent).forEach(e=>{G.isEqual(this.transientDataCopy[e],t._parent[e])||this.parentObjectChanges.push({key:e,value:t._parent[e]})})},setChagnedParentVariables(){this.parentObjectChanges.forEach(t=>{this.$set(this.$parent.transientData,t.key,t.value)}),this.parentObjectChanges=[]},getMatrixValue(t){let e=G.cloneDeep(this.matrix[t]);return e||(e={}),e._parent=G.cloneDeep(this.transientDataCopy),e},setupMatrix(){for(const t of this.times)typeof this.matrix[t]>"u"&&this.setMatrixValue(t,{});this.matrix.length!==this.times.length&&(this.matrix=this.matrix.slice(0,this.times.length))},submit(){this.$emit("submit")}}};var nQ=function(){var e=this,r=e._self._c;return r("div",[e._l(e.times,function(i){return r("form",{key:i,on:{submit:function(a){a.preventDefault()}}},[r("vue-form-renderer",{attrs:{data:e.getMatrixValue(i),config:e.rendererConfig,computed:null,"custom-css":null,watchers:null,"is-loop":!0,"debug-context":"Loop #"+i,mode:e.mode,"loop-context":e.getLoopContext(i),"form-config":e.formConfig},on:{submit:e.submit,pageNavigate:function(a){return e.$emit("pageNavigate",a)},update:function(a){return e.setMatrixValue(i,a)}}})],1)}),e.config.settings.add?r("b-row",{staticClass:"justify-content-md-center"},[r("b-col",{attrs:{md:"auto"}},[r("b-button",{staticClass:"ml-1 mr-1",attrs:{size:"sm",variant:"secondary",title:e.$t("Add Item")},on:{click:e.add}},[r("i",{staticClass:"fas fa-plus"})]),e.times.length>0?r("b-button",{staticClass:"ml-1 mr-1",attrs:{size:"sm",variant:"outline-danger",title:e.$t("Delete Item")},on:{click:e.removeConfirm}},[r("i",{staticClass:"fas fa-minus"})]):e._e()],1)],1):e._e()],2)},sQ=[],oQ=ie(aQ,nQ,sQ,!1,null,null,null,null);const Cs=oQ.exports,Lie="",Pu=typeof window>"u"?global:window,op=[{name:"empty",items:[]}],lQ={components:{VueFormRenderer:wi},props:{name:String,screen:Number,value:null,validationData:null,_parent:null,ancestorScreens:{type:Array,default:()=>[]}},data(){return{localData:{},config:op,computed:[],customCSS:null,watchers:[],screenTitle:null}},computed:{validatedConfig(){return this.config&&this.config[0]?this.config:op},data:{get(){return this.validationData||this.localData},set(t){Object.keys(t).forEach(e=>{this.validationData&&this.$set(this.validationData,e,t[e])})}},placeholder(){return this.screen?"":this.$t("Select a screen to nest")}},methods:{isSubmitButton(t){return t.config&&t.component==="FormButton"&&t.config.event==="submit"},hideSubmitButtons(t){t.forEach(e=>{Array.isArray(e)&&this.hideSubmitButtons(e),e.items&&this.hideSubmitButtons(e.items),this.isSubmitButton(e)&&(e.config.hidden=!0)})},disableForm(t){t.forEach(e=>{Array.isArray(e)&&this.disableForm(e),e.items&&this.disableForm(e.items),e&&e.config&&(e.config.disabled=!0,e.config.readonly=!0,e.config.editable=!1)})},loadScreen(t){this.config=op,this.computed=[],this.customCSS=null,this.watchers=[],this.screenTitle=null,t&&this.$dataProvider.getScreen(t).then(e=>{this.config=e.data.config,this.hideSubmitButtons(this.config),this.computed=e.data.computed,this.customCSS=e.data.custom_css,this.watchers=e.data.watchers,this.screenTitle=e.data.title,this.$attrs.disabled&&this.disableForm(this.config),this.ancestorScreens.includes(this.screenTitle)?Pu.ProcessMaker.alert(`Rendering of nested "${this.screenTitle}" screen was disallowed to prevent loop.`,"warning"):(Pu.nestedScreens||(Pu.nestedScreens={}),Pu.nestedScreens["id_"+t]=this.config,this.$root.$emit("nested-screen-updated"))})},errors(){return this.$refs.nestedScreen.isValid(),this.$refs.nestedScreen.errors}},watch:{screen(t){this.loadScreen(t)}},mounted(){this.loadScreen(this.screen)}};var uQ=function(){var e=this,r=e._self._c;return e.ancestorScreens.includes(e.screenTitle)?e._e():r("vue-form-renderer",{ref:"nestedScreen",staticClass:"form-nested-screen",attrs:{placeholder:e.placeholder,config:e.validatedConfig,"ancestor-screens":[...e.ancestorScreens,e.screenTitle],mode:"preview",computed:e.computed,"custom-css":e.customCSS,watchers:e.watchers,"debug-context":"Nested Screen",_parent:e._parent},on:{"css-errors":function(i){e.cssErrors=i}},model:{value:e.data,callback:function(i){e.data=i},expression:"data"}})},cQ=[],dQ=ie(lQ,uQ,cQ,!1,null,null,null,null);const ks=dQ.exports,Fie="",fQ={name:"MustacheHelper"};var pQ=function(){var e=this,r=e._self._c;return r("div",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"mustache",attrs:{title:e.$t("This field accepts mustache syntax")}},[e._v(" {} ")])},hQ=[],mQ=ie(fQ,pQ,hQ,!1,null,"8cef93f7",null,null);const Pi=mQ.exports,vQ="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE0LjA1MTQgMy43Mzg4OUwxNS40NTc2IDIuMzMyNjVDMTYuMDY3OCAxLjcyMjQ1IDE3LjA1NzIgMS43MjI0NSAxNy42Njc0IDIuMzMyNjVDMTguMjc3NSAyLjk0Mjg0IDE4LjI3NzUgMy45MzIxNiAxNy42Njc0IDQuNTQyMzVMOC44MTg0OSAxMy4zOTEyQzguMzc3OTIgMTMuODMxOCA3LjgzNDUzIDE0LjE1NTYgNy4yMzc0MSAxNC4zMzM1TDUgMTVMNS42NjY0OCAxMi43NjI2QzUuODQ0MzUgMTIuMTY1NSA2LjE2ODIgMTEuNjIyMSA2LjYwODc3IDExLjE4MTVMMTQuMDUxNCAzLjczODg5Wk0xNC4wNTE0IDMuNzM4ODlMMTYuMjUgNS45Mzc0OU0xNSAxMS42NjY3VjE1LjYyNUMxNSAxNi42NjA1IDE0LjE2MDUgMTcuNSAxMy4xMjUgMTcuNUg0LjM3NUMzLjMzOTQ3IDE3LjUgMi41IDE2LjY2MDUgMi41IDE1LjYyNVY2Ljg3NDk5QzIuNSA1LjgzOTQ2IDMuMzM5NDcgNC45OTk5OSA0LjM3NSA0Ljk5OTk5SDguMzMzMzMiIHN0cm9rZT0iIzU5NjM3MiIgc3Ryb2tlLXdpZHRoPSIxLjI1IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==",gQ="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxNiAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwLjI4MzcgNi41TDkuOTk1MTkgMTRNNi4wMDQ4MSAxNEw1LjcxNjM1IDYuNU0xNC4wMjMgMy44MjU0N0MxNC4zMDggMy44Njg1MSAxNC41OTIgMy45MTQ1NiAxNC44NzUgMy45NjM1OE0xNC4wMjMgMy44MjU0N0wxMy4xMzMyIDE1LjM5MzhDMTMuMDU4IDE2LjM3MDcgMTIuMjQzNCAxNy4xMjUgMTEuMjYzNyAxNy4xMjVINC43MzYzMUMzLjc1NjU1IDE3LjEyNSAyLjk0MTk4IDE2LjM3MDcgMi44NjY4MyAxNS4zOTM4TDEuOTc2OTYgMy44MjU0N00xNC4wMjMgMy44MjU0N0MxMy4wNjc3IDMuNjgxMiAxMi4xMDEzIDMuNTcwNzEgMTEuMTI1IDMuNDk1MjdNMS4xMjUgMy45NjM1OEMxLjQwNzk4IDMuOTE0NTYgMS42OTE5OCAzLjg2ODUxIDEuOTc2OTYgMy44MjU0N00xLjk3Njk2IDMuODI1NDdDMi45MzIzMSAzLjY4MTIgMy44OTg3NCAzLjU3MDcxIDQuODc1IDMuNDk1MjdNMTEuMTI1IDMuNDk1MjdWMi43MzE4MkMxMS4xMjUgMS43NDkwMiAxMC4zNjYxIDAuOTI4NTI2IDkuMzgzODIgMC44OTcxMDNDOC45MjQzNSAwLjg4MjQwNSA4LjQ2MzA0IDAuODc1IDggMC44NzVDNy41MzY5NiAwLjg3NSA3LjA3NTY1IDAuODgyNDA1IDYuNjE2MTggMC44OTcxMDNDNS42MzM4OCAwLjkyODUyNiA0Ljg3NSAxLjc0OTAyIDQuODc1IDIuNzMxODJWMy40OTUyN00xMS4xMjUgMy40OTUyN0MxMC4wOTM4IDMuNDE1NTggOS4wNTE2NCAzLjM3NSA4IDMuMzc1QzYuOTQ4MzYgMy4zNzUgNS45MDYyIDMuNDE1NTggNC44NzUgMy40OTUyNyIgc3Ryb2tlPSIjNTk2MzcyIiBzdHJva2Utd2lkdGg9IjEuMjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K",Bie="",bQ={key:"__actions",label:"Actions",thClass:"text-right",tdClass:"text-right"},yQ={components:{VueFormRenderer:wi,MustacheHelper:Pi},mixins:[Wd],props:["name","label","fields","value","editable","_config","form","validationData","formConfig","formComputed","formWatchers","_perPage","source","paginationOption","designerMode","bgcolormodern"],data(){return{editFormVersion:0,single:"",plural:"",addItem:{},editItem:{},editIndex:null,currentPage:1,paginatorPage:1,perPageSelectEnabled:!1,perPage:5,lastPage:1,css:{tableClass:"table table-hover table-responsive text-break mb-0 d-table",loadingClass:"loading",detailRowClass:"vuetable-detail-row",handleIcon:"grey sidebar icon",sortableIcon:"fas fa-sort",ascendingIcon:"fas fa-sort-up",descendingIcon:"fas fa-sort-down",ascendingClass:"ascending",descendingClass:"descending",renderIcon(t){return`<i class="${t.join(" ")}"></i>`}},initFormValues:{},currentRowIndex:null,collectionData:{},selectedRow:null,selectedRows:[],selectedIndex:null,rows:[],selectAll:!1,styleMode:"Classic",isPopoverVisible:null,popoverPosition:{top:"0px",left:"0px"}}},computed:{tableClassModern(){if(this.styleMode==="Modern")switch(this.bgcolormodern){case"alert alert-primary":return"record-list-table-primary";case"alert alert-success":return"record-list-table-success";case"alert alert-warning":return"record-list-table-warning";case"alert alert-secondary":return"record-list-table-secondary";default:return"record-list-table-secondary"}return""},indeterminate(){return this.selectedRows.length>0&&this.selectedRows.length<this.tableData.data.length},popupConfig(){const t=[];return t[this.form]=this.formConfig[this.form],t},debug(){return{perPageSelectEnabled:this.perPageSelectEnabled,perPageSelectEnabled2:this.$refs.pagination&&this.$refs.pagination.perPageSelectEnabled}},parentObj(){let t=this.$parent;for(;"transientData"in t.$props;)t=t.$parent;return t},dataManager(){if(this.$refs.vuetable){const t=this.$refs.vuetable.makePagination(this.value.length);return{pagination:t,data:this.value.slice(t.from-1,t.to)}}console.log("refs vuetable not exists")},tableData(){const t=Array.isArray(this.collectionData)&&this.collectionData.length?this.collectionData:Array.isArray(this.value)?this.value:[];this.value&&(this.selectedIndex=this.value.selectedRowIndex);const e=this.paginatorPage-1;this.lastPage=Math.ceil(t.length/this.perPage);const r={total:t.length,per_page:this.perPage,current_page:this.paginatorPage,last_page:this.lastPage,next_page_url:null,prev_page_url:null,from:e,to:t.length,data:t,lastSortConfig:!1};return this.selectedIndex!==null&&this.selectedIndex<r.data.length&&(this.selectedRow=r.data[this.selectedIndex]),Array.isArray(this.value)&&this.value.length>0&&this.rows.length===0&&this.value.forEach(i=>{i.hasOwnProperty("selectedRowsIndex")&&this.selectedRows.push(r.data[i.selectedRowsIndex])}),r},tableFields(){var e,r,i;const t=this.getTableFieldsFromDataSource();return this.editable&&!this.selfReferenced&&t.push(bQ),((e=this.source)==null?void 0:e.sourceOptions)==="Collection"&&(["single-field","single-record"].includes((r=this.source)==null?void 0:r.dataSelectionOptions)&&t.unshift({key:"radio",label:"",sortable:!1}),((i=this.source)==null?void 0:i.dataSelectionOptions)==="multiple-records"&&t.unshift({key:"checkbox",label:"",sortable:!1})),t},selfReferenced(){return this.form&&this.form===this.$parent.currentPage}},watch:{"tableData.total":{deep:!0,handler(t){const e=Math.ceil(t/this.perPage);this.currentPage=this.currentPage>e?e:this.currentPage,this.currentPage=this.currentPage==0?1:this.currentPage}},validationData:{handler(t,e){var r,i,a,n,s,o,u;((r=this.source)==null?void 0:r.sourceOptions)==="Collection"&&((a=(i=this.source)==null?void 0:i.collectionFields)!=null&&a.pmql)&&this.onCollectionChange((s=(n=this.source)==null?void 0:n.collectionFields)==null?void 0:s.collectionId,(u=(o=this.source)==null?void 0:o.collectionFields)==null?void 0:u.pmql)},deep:!0,immediate:!1}},mounted(){var t,e,r,i,a,n,s;this._perPage&&(this.perPage=this._perPage),this.updateRowDataNamePrefix=G.debounce(this.updateRowDataNamePrefix,100),this.paginationOption!=null&&(this.perPage=this.paginationOption),((t=this.source)==null?void 0:t.sourceOptions)==="Collection"&&this.onCollectionChange((r=(e=this.source)==null?void 0:e.collectionFields)==null?void 0:r.collectionId,(a=(i=this.source)==null?void 0:i.collectionFields)==null?void 0:a.pmql),this.setStyleMode((n=this.designerMode)==null?void 0:n.designerOptions),this.$root.$emit("record-list-option",(s=this.source)==null?void 0:s.sourceOptions)},methods:{togglePopover(t,e,r){if(this.deleteIndex=G.find(this.tableData.data,{row_id:r}),this.isPopoverVisible=this.isPopoverVisible===t?null:t,this.isPopoverVisible!==null){const i=e.target.getBoundingClientRect();this.popoverPosition={top:`${i.bottom+window.scrollY}px`,left:`${i.left+window.scrollX}px`}}},hidePopover(){this.isPopoverVisible=null},popover_remove(){this.remove(),this.hidePopover()},rowClass(t){return this.isRowSelected(t)?"sel-row":""},isRowSelected(t){return this.selectedRows.includes(t)||this.selectedRow===t},setStyleMode(t){this.styleMode=t||"Classic"},selectAllRows(){if(this.allRowsSelected){const t=this.tableData.data.map((e,r)=>({...e,selectedRowsIndex:r}));this.selectedRows=t,this.collectionData=t,this.onMultipleSelectionChange()}else this.selectedRows=[],this.onMultipleSelectionChange()},componentOutput(t){this.$emit("input",t)},onRadioChange(t,e){var i;const r=(this.currentPage-1)*this.perPage+e;if((i=this.source)!=null&&i.singleField){let a=t[this.source.singleField];this.componentOutput(a)}else t={...t,selectedRowIndex:r},this.componentOutput(t)},onMultipleSelectionChange(t){this.collectionData.forEach((e,r)=>{this.selectedRows.forEach(i=>{this.areObjectsEqual(i,e)&&(i.selectedRowsIndex=r)})}),this.componentOutput(this.selectedRows),this.rows.push(t)},areObjectsEqual(t,e){const r=Object.keys(t),i=Object.keys(e);return r.length!==i.length?!1:r.every(a=>t[a]===e[a])},onCollectionChange(t,e){if(!e||e.trim()===""){this.fetchAllRecords(t);return}const r=this.processMustacheInPmql(e);r&&this.fetchRecordsWithPmql(t,r)},processMustacheInPmql(t){if(!t||!t.includes("{{"))return t;try{const e=this.validationData||{};let r=ur.render(t,e);return this.hasEmptyValues(r)?(this.collectionData=[],null):(r=r.replace(/= ([^"'\s][^"']*[^"'\s]|[^"'\s]+)(?=\s|$)/g,'= "$1"'),r)}catch{return this.collectionData=[],null}},hasEmptyValues(t){return['= ""','= " "',"= null","= undefined"].some(r=>t.includes(r))},isValidPmql(t){return t&&t.trim()!==""&&!t.includes("{{")},fetchAllRecords(t){this.$dataProvider.getCollectionRecordsList(t,{}).then(e=>{const r=e.data;this.changeCollectionColumns(r,this.fields)}).catch(()=>{this.collectionData=[]})},fetchRecordsWithPmql(t,e){if(!this.isValidPmql(e)){this.collectionData=[];return}const r={params:{pmql:e}};this.$dataProvider.getCollectionRecordsList(t,r).then(i=>{const a=i.data;this.changeCollectionColumns(a,this.fields)}).catch(()=>{this.collectionData=[]}),this.$emit("change",this.field)},changeCollectionColumns(t,e){const r=e.optionsList;t.forEach(i=>{let a=i.data,n={};Object.keys(a).forEach(s=>{const o=r.find(u=>u.content===s);o&&(n[o.key]=a[s])}),i.data=n}),this.setCollectionIntoList(t)},setCollectionIntoList(t){const e=[];t.forEach(r=>{if(r.hasOwnProperty("data")){const i=r.data,a={};for(const[n,s]of Object.entries(i))a[n]=s;e.push(a)}}),this.collectionData=e},updateRowDataNamePrefix(){this.setUploadDataNamePrefix(this.currentRowIndex)},emitShownEvent(){window.ProcessMaker.EventBus.$emit("modal-shown")},formatIfDate(t){return ee.dateUtils.formatIfDate(t)},isImage(t,e){const r=G.get(e,t.key);return typeof r=="string"&&r.substr(0,11)==="data:image/"},isWebEntryFile(t,e){const r=G.get(e,t.key),i=/^webentry_.*:*$/;let a=r;return Array.isArray(r)&&(a=r[0].file),i.test(a)},formatIfWebEntryFile(t,e){return G.get(window,"PM4ConfigOverrides.requestFiles",{})[`${t.key}.${e.row_id}`].map(a=>a.file_name).join(", ")},isFiledownload(t){return t.key==="__filedownload"},setUploadDataNamePrefix(t=null){this.currentRowIndex=t;let e=null;t!==null&&this.editItem?e=this.editItem.row_id:this.addItem&&(e=this.addItem.row_id),this.$root.$emit("set-upload-data-name",this,t,e)},getTableFieldsFromDataSource(){var n;const{jsonData:t,key:e,value:r,dataName:i}=this.fields;let a={};return((n=this.source)==null?void 0:n.sourceOptions)==="Collection"?a=s=>({key:s[e||"key"],sortable:!0,label:s[e||"key"],tdClass:"table-column"}):a=s=>({key:s[e||"value"],sortable:!0,label:s[r||"content"],tdClass:"table-column"}),this.getValidFieldData(t,i).map(a)},getValidFieldData(t,e){let r=this.validationData[e];if(t)try{r=JSON.parse(t)}catch{r=[]}return Array.isArray(r)?r:[]},hideInformation(){this.$refs.infoModal.hide()},onPaginationData(t){this.$refs.pagination.setPaginationData(t)},onChangePerPage(t){this.perPage=parseInt(t)},onChangePage(t){t=="next"?this.paginatorPage+=1:t=="prev"?this.paginatorPage-=1:this.paginatorPage=t,this.paginatorPage<=0&&(this.paginatorPage=1),this.paginatorPage>this.lastPage&&(this.paginatorPage=this.lastPage)},showEditForm(t,e){const r=(this.currentPage-1)*this.perPage+t;this.editItem=JSON.parse(JSON.stringify(G.find(this.tableData.data,{row_id:e}))),this.editIndex=r,this.editFormVersion++,this.$nextTick(()=>{this.setUploadDataNamePrefix(r),this.$refs.editModal.show()})},edit(t){if(this.$refs.addRenderer.hasSubmitted(!0),this.$refs.editRenderer.$refs.renderer.$refs.component.$v.vdata.$invalid){t.preventDefault();return}const e=this.tableData.data?JSON.parse(JSON.stringify(this.tableData.data)):[],r=G.findIndex(e,{row_id:this.editItem.row_id});e[r]=JSON.parse(JSON.stringify(this.editItem)),delete e[r]._parent,this.$emit("input",e)},showAddForm(){const t=Math.random().toString(36).substring(2)+Date.now().toString(36);if(this.$set(this.addItem,"row_id",t),this.setUploadDataNamePrefix(),!this.form){this.$refs.infoModal.show();return}this.$refs.addModal.show();const{_parent:e,...r}=this.addItem;this.initFormValues=G.cloneDeep(r)},handleHideAddModal(){this.addItem=this.initFormValues,this.$refs.addRenderer.hasSubmitted(!1)},async handleOk(t){if(this.$refs.addRenderer.hasSubmitted(!0),t.preventDefault(),this.$refs.addRenderer.$refs.renderer.$refs.component.$v.vdata.$invalid)return;const e=this.value?JSON.parse(JSON.stringify(this.value)):[],r=JSON.parse(JSON.stringify({...this.addItem,_parent:void 0}));delete r._parent,e[e.length]=r,this.$emit("input",e),this.addItem={},this.$nextTick(()=>{this.$refs.addModal.hide()})},showDeleteConfirmation(t,e){this.deleteIndex=G.find(this.tableData.data,{row_id:e}),this.$refs.deleteModal.show()},downloadFile(t,e,r){const i=this.$root.task.request_data._request.id,a=`${this.name}.${r}.${e}`;window.ProcessMaker.apiClient.get(`requests/${i}/files?name=${a}`).then(n=>{const s=n.data;if(s&&s.data&&s.data.length){const o=s.data[0];this.downloadRecordListFile(o,i)}})},downloadRecordListFile(t,e){window.ProcessMaker.apiClient({baseURL:"/",url:`/request/${e}/files/${t.id}`,method:"GET",responseType:"blob"}).then(r=>{const i=window.URL.createObjectURL(new Blob([r.data])),a=document.createElement("a");a.href=i,a.setAttribute("download",t.file_name),document.body.appendChild(a),a.click()})},remove(){const t=this.tableData.data?JSON.parse(JSON.stringify(this.tableData.data)):[],e=this.deleteIndex;G.remove(t,{row_id:this.deleteIndex.row_id}),this.$emit("input",t),this.$root.$emit("removed-record",this,e)}}};var xQ=function(){var e=this,r=e._self._c;return r("div",{staticClass:"data-table overflow-auto"},[r("div",{staticClass:"row mb-2 ml-0 mr-0"},[r("div",{staticClass:"col"},[r("h4",[e._v(e._s(e.label))])]),e.styleMode==="Classic"?r("div",{staticClass:"col text-right"},[e.editable&&!e.selfReferenced?r("button",{staticClass:"btn btn-primary",attrs:{"data-cy":"add-row"},on:{click:e.showAddForm}},[e._v(" "+e._s(e.$t("Add"))+" ")]):e._e()]):e._e()]),!e.value&&!e.tableData.data?r("div",[e._v(" "+e._s(e.$t("This record list is empty or contains no data."))+" ")]):[r("b-table",{ref:"vuetable",class:e.tableClassModern,attrs:{"per-page":e.perPage,"data-manager":e.dataManager,fields:e.tableFields,items:e.tableData.data,"sort-compare-options":{numeric:!1},"sort-null-last":!0,"sort-icon-left":"",css:e.css,"empty-text":e.$t("No Data Available"),"current-page":e.currentPage,"data-cy":"table","tbody-tr-class":e.rowClass},scopedSlots:e._u([{key:"head(checkbox)",fn:function(i){return[r("b-form-checkbox",{attrs:{indeterminate:e.indeterminate,"aria-label":"Select All"},on:{change:e.selectAllRows},model:{value:e.allRowsSelected,callback:function(a){e.allRowsSelected=a},expression:"allRowsSelected"}})]}},{key:"cell(checkbox)",fn:function({index:i,item:a}){return[r("b-form-checkbox",{attrs:{value:a},on:{change:function(n){return e.onMultipleSelectionChange(i)}},model:{value:e.selectedRows,callback:function(n){e.selectedRows=n},expression:"selectedRows"}})]}},{key:"cell(radio)",fn:function({index:i,item:a}){return[r("b-form-radio",{attrs:{value:a},on:{change:function(n){return e.onRadioChange(a,i)}},model:{value:e.selectedRow,callback:function(n){e.selectedRow=n},expression:"selectedRow"}})]}},{key:"cell()",fn:function({index:i,field:a,item:n}){return[e.isFiledownload(a,n)?[r("span",{attrs:{href:"#"},on:{click:function(s){return e.downloadFile(n,a.key,i)}}},[e._v(e._s(e.mustache(a.key,n)))])]:e.isImage(a,n)?[r("img",{staticStyle:{},attrs:{src:e.mustache(a.key,n)}})]:e.isWebEntryFile(a,n)?[e._v(" "+e._s(e.formatIfWebEntryFile(a,n))+" ")]:[e._v(" "+e._s(e.formatIfDate(e.mustache(a.key,n)))+" ")]]}},{key:"cell(__actions)",fn:function({index:i,item:a}){return[r("div",{staticClass:"actions"},[r("div",{staticClass:"btn-group btn-group-sm",attrs:{role:"group","aria-label":"Actions"}},[r("button",{class:{btn:!0,"btn-primary":e.styleMode==="Classic"},attrs:{title:e.$t("Edit"),"data-cy":"edit-row"},on:{click:function(n){return e.showEditForm(i,a.row_id)}}},[e.styleMode==="Classic"?r("i",{staticClass:"fas fa-edit"}):r("img",{attrs:{src:vQ,alt:"edit"}})]),r("button",{ref:"deleteButton",class:{btn:!0,"btn-danger":e.styleMode==="Classic"},attrs:{title:e.$t("Delete"),"data-cy":"remove-row",popover:"manual"},on:{click:function(n){e.styleMode==="Modern"?e.togglePopover(i,n,a.row_id):e.showDeleteConfirmation(i,a.row_id)}}},[e.styleMode==="Classic"?r("i",{staticClass:"fas fa-trash-alt"}):r("img",{attrs:{src:gQ,alt:"delete"}})]),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isPopoverVisible===i,expression:"isPopoverVisible === index"}],staticClass:"popover-content"},[r("p",[e._v("Are you sure you want to delete it?")]),r("button",{staticClass:"btn btn-light",on:{click:e.hidePopover}},[e._v("CANCEL")]),r("button",{staticClass:"btn btn-danger",on:{click:function(n){return e.popover_remove()}}},[e._v("DELETE")])])])])]}}])}),r("div",{staticClass:"d-flex justify-content-between align-items-center"},[r("div",{staticClass:"col text-left"},[e.tableData.total>e.perPage&&e.perPage!==0?r("b-pagination",{attrs:{"data-cy":"table-pagination","total-rows":e.tableData.total,"per-page":e.perPage,"aria-label":e.$t("Pagination"),"aria-controls":"vuetable"},on:{change:e.onChangePage},model:{value:e.currentPage,callback:function(i){e.currentPage=i},expression:"currentPage"}}):e._e()],1),e.styleMode==="Modern"?r("div",{staticClass:"col text-right"},[e.editable&&!e.selfReferenced?r("button",{staticClass:"btn btn-link text-primary class-button-modern",attrs:{"data-cy":"add-row"},on:{click:e.showAddForm}},[r("span",{staticClass:"mr-1"},[e._v("+")]),e._v(" "+e._s(e.$t("Add"))+" ")]):e._e()]):e._e()])],e.editable&&!e.selfReferenced?r("b-modal",{ref:"addModal",attrs:{static:!0,size:"lg","ok-title":e.$t("Ok"),"cancel-title":e.$t("Cancel"),title:e.$t("Add"),"header-close-content":"&times;","data-cy":"modal-add"},on:{ok:e.handleOk,hidden:e.handleHideAddModal,shown:e.emitShownEvent}},[r("vue-form-renderer",{key:Array.isArray(e.value)?e.value.length:0,ref:"addRenderer",attrs:{page:0,config:e.popupConfig,"current-page":e.form,computed:e.formComputed,watchers:e.formWatchers,"debug-context":"Record List Add",_parent:e.validationData},on:{update:e.updateRowDataNamePrefix},model:{value:e.addItem,callback:function(i){e.addItem=i},expression:"addItem"}})],1):e._e(),e.editable&&!e.selfReferenced?r("b-modal",{ref:"editModal",attrs:{static:!0,size:"lg","ok-title":e.$t("Save"),"cancel-title":e.$t("Cancel"),title:e.$t("Edit Record"),"header-close-content":"&times;","data-cy":"modal-edit"},on:{ok:e.edit,hidden:function(i){return e.$refs.addRenderer.hasSubmitted(!1)},shown:e.emitShownEvent}},[r("vue-form-renderer",{key:e.editFormVersion,ref:"editRenderer",attrs:{page:0,config:e.popupConfig,"current-page":e.form,computed:e.formComputed,watchers:e.formWatchers,"debug-context":"Record List Edit",_parent:e.validationData},on:{update:e.updateRowDataNamePrefix},model:{value:e.editItem,callback:function(i){e.editItem=i},expression:"editItem"}})],1):e._e(),e.editable&&!e.selfReferenced?r("b-modal",{ref:"deleteModal",attrs:{size:"lg","ok-title":e.$t("Delete"),"cancel-title":e.$t("Cancel"),title:e.$t("Delete Record"),"header-close-content":"&times;","data-cy":"modal-remove"},on:{ok:e.remove}},[r("p",[e._v(e._s(e.$t("Are you sure you want to remove this record?")))])]):e._e(),e.editable&&!e.selfReferenced?r("b-modal",{ref:"infoModal",attrs:{size:"sm","ok-title":e.$t("OK"),title:e.$t("Information form"),"header-close-content":"&times;","ok-only":"","data-cy":"modal-not-assigned"},on:{ok:e.hideInformation}},[r("p",[e._v(e._s(e.$t("The form to be displayed is not assigned.")))])]):e._e(),e.editable&&e.selfReferenced?r("div",{staticClass:"alert alert-danger"},[e._v(" "+e._s(e.$t("The Record List control is not allowed to reference other controls on its own page to add or edit records. Specify a secondary page with controls to enter records."))+" ")]):e._e()],2)},wQ=[],PQ=ie(yQ,xQ,wQ,!1,null,null,null,null);const Su=PQ.exports,SQ={name:"FormRecordListStatic",components:{},mixins:[Wd],props:["label","fields","value","editable","_config","form"],mounted(){},methods:{formatIfDate(t){return ee.formatIfDate(t)}}};var CQ=function(){var e=this,r=e._self._c;return r("div",{staticClass:"record-list"},[r("h4",[e._v(e._s(e.$t(e.label)))]),r("table",[r("thead",[r("tr",e._l(e.fields,function(i,a){return r("th",{key:a},[e._v(" "+e._s(i.content)+" ")])}),0)]),r("tbody",e._l(e.value,function(i,a){return r("tr",{key:a},e._l(e.fields,function(n,s){return r("td",{key:s},[e._v(" "+e._s(e.formatIfDate(e.mustache(n.value,i)))+" ")])}),0)}),0)])])},kQ=[],TQ=ie(SQ,CQ,kQ,!1,null,null,null,null);const Rw=TQ.exports,MQ={props:["label","fontSize","fontWeight","textAlign","verticalAlign","validationData","color","name"],computed:{styles(){return{fontSize:this.fontSize,fontWeight:this.fontWeight,textAlign:this.textAlign,verticalAlign:this.verticalAlign,color:this.color}},rendered(){if(!this.validationData)return this.label;try{return ur.render(this.label,this.validationData)}catch{return this.label}}}};var DQ=function(){var e=this,r=e._self._c;return r("div",{staticClass:"form-group"},[r("div",{style:e.styles,domProps:{innerHTML:e._s(e.rendered)}})])},AQ=[],OQ=ie(MQ,DQ,AQ,!1,null,null,null,null);const Cu=OQ.exports,zQ={};var EQ=function(){var e=this,r=e._self._c;return r("div",{staticClass:"row"},[e._t("default")],2)},jQ=[],IQ=ie(zQ,EQ,jQ,!1,null,null,null,null);const lp=IQ.exports,NQ="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ2IiBoZWlnaHQ9IjE1MyIgdmlld0JveD0iMCAwIDE0NiAxNTMiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xMTUuMDAxIDMzLjQ5OTZDMTE1LjAwMSA0MC4xMjczIDEyMC4zNzQgNDUuNSAxMjcuMDAxIDQ1LjVDMTMzLjYyOCA0NS41IDEzOS4wMDEgNDAuMTI3MyAxMzkuMDAxIDMzLjQ5OTZDMTM5LjAwMSAyNi44NzI3IDEzMy42MjggMjEuNSAxMjcuMDAxIDIxLjVDMTIwLjM3NCAyMS41IDExNS4wMDEgMjYuODcyNyAxMTUuMDAxIDMzLjQ5OTZaIiBmaWxsPSIjN0NEMEIwIi8+CjxwYXRoIGQ9Ik0xMjcuOTA3IDI2LjkzMjNMMTI5LjEwOCAzMC42MzA0SDEzMi45OThDMTMzLjYwMyAzMC42MzA0IDEzMy44NTYgMzEuNDA1MyAxMzMuMzY1IDMxLjc2MjFMMTMwLjIxOSAzNC4wNDc0TDEzMS40MjEgMzcuNzQ2NEMxMzEuNjA4IDM4LjMyMTkgMTMwLjk0OSAzOC44MDA3IDEzMC40NTkgMzguNDQ1N0wxMjcuMzEyIDM2LjE1ODdMMTI0LjE2NiAzOC40NDU3QzEyMy42NzcgMzguODAwNyAxMjMuMDE3IDM4LjMyMTkgMTIzLjIwNCAzNy43NDY0TDEyNC40MDYgMzQuMDQ3NEwxMjEuMjYgMzEuNzYyMUMxMjAuNzcgMzEuNDA1MyAxMjEuMDIyIDMwLjYzMDQgMTIxLjYyNyAzMC42MzA0SDEyNS41MTZMMTI2LjcxOCAyNi45MzIzQzEyNi45MDYgMjYuMzU1OSAxMjcuNzIgMjYuMzU1OSAxMjcuOTA3IDI2LjkzMjNaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNODIuMzQ5MSAwLjc5Mjk2OUM3OS44NTk3IDguMjYwOTcgNzQuMTkwNCA5LjA5MDI5IDc0LjE5MDQgOS4wOTAyOUM3NC4xOTA0IDkuMDkwMjkgNzkuODU5NyA5LjkyMDk3IDgyLjM0OTEgMTcuMzg3NkM4NC44Mzg0IDkuOTIwOTcgOTAuNTA3OCA5LjA5MDI5IDkwLjUwNzggOS4wOTAyOUM5MC41MDc4IDkuMDkwMjkgODQuODM4NCA4LjI2MDk3IDgyLjM0OTEgMC43OTI5NjlaIiBmaWxsPSIjREVFRkZBIi8+CjxwYXRoIGQ9Ik00OS4zNTA0IDEzNS43OTNDNDYuODU5OCAxNDMuMjYxIDQxLjE5MDQgMTQ0LjA5IDQxLjE5MDQgMTQ0LjA5QzQxLjE5MDQgMTQ0LjA5IDQ2Ljg1OTggMTQ0LjkyIDQ5LjM1MDQgMTUyLjM4OEM1MS44Mzg0IDE0NC45MiA1Ny41MDkxIDE0NC4wOSA1Ny41MDkxIDE0NC4wOUM1Ny41MDkxIDE0NC4wOSA1MS44Mzg0IDE0My4yNjEgNDkuMzUwNCAxMzUuNzkzWiIgZmlsbD0iI0RFRUZGQSIvPgo8cGF0aCBkPSJNMTM5LjkwMiA5My43OTNDMTM4LjE1OCA5OS4wMjEgMTM0LjE5IDk5LjYwMjMgMTM0LjE5IDk5LjYwMjNDMTM0LjE5IDk5LjYwMjMgMTM4LjE1OCAxMDAuMTgyIDEzOS45MDIgMTA1LjQwOUMxNDEuNjQ1IDEwMC4xODIgMTQ1LjYxMyA5OS42MDIzIDE0NS42MTMgOTkuNjAyM0MxNDUuNjEzIDk5LjYwMjMgMTQxLjY0NSA5OS4wMjEgMTM5LjkwMiA5My43OTNaIiBmaWxsPSIjREVFRkZBIi8+CjxwYXRoIGQ9Ik04LjkwMTEyIDMwLjc5M0M3LjE1OTc5IDM2LjAxOTYgMy4xOTA0MyAzNi42MDEgMy4xOTA0MyAzNi42MDFDMy4xOTA0MyAzNi42MDEgNy4xNTk3OSAzNy4xODEgOC45MDExMiA0Mi40MDc2QzEwLjY0MzggMzcuMTgxIDE0LjYxMzEgMzYuNjAxIDE0LjYxMzEgMzYuNjAxQzE0LjYxMzEgMzYuNjAxIDEwLjY0MzggMzYuMDE5NiA4LjkwMTEyIDMwLjc5M1oiIGZpbGw9IiNERUVGRkEiLz4KPHBhdGggZD0iTTEyMS45NTYgNzUuNjcwMkMxMjEuOTU2IDEwNC44NzYgOTguMjc4NSAxMjguNTUzIDY5LjA3MzIgMTI4LjU1M0MzOS44Njc5IDEyOC41NTMgMTYuMTkwNCAxMDQuODc2IDE2LjE5MDQgNzUuNjcwMkMxNi4xOTA0IDQ2LjQ2NDkgMzkuODY3OSAyMi43OTMgNjkuMDczMiAyMi43OTNDOTguMjc4NSAyMi43OTMgMTIxLjk1NiA0Ni40NjQ5IDEyMS45NTYgNzUuNjcwMloiIGZpbGw9IiNERUVGRkEiLz4KPHBhdGggZD0iTTQ3LjYzNjQgODEuOTYyNUw2My4yNDYzIDkzLjM2ODdDNjQuNzg5NyA5NC40OTYyIDY2Ljk1NyA5NC4yMDA3IDY4LjEzOTMgOTIuNjk1NUw5MS42OTA4IDYyLjc4NDFDOTIuOTA1OCA2MS4yMzUxIDkyLjY0MzEgNTkuMDAyMSA5MS4wOTQxIDU3Ljc4N0M4OS41NTA3IDU2LjU3MTkgODcuMzE3NiA1Ni44MzQ3IDg2LjEwMjYgNTguMzc4MUw2NC42NzQ3IDg1LjYwMjFMNTEuODM0NiA3Ni4yMTU1QzUwLjI0NzMgNzUuMDYwNiA0OC4wMTk2IDc1LjQwNTUgNDYuODU5MiA3Ni45OTI3QzQ1LjcwNDQgNzguNTc5OSA0Ni4wNDkyIDgwLjgwMjEgNDcuNjM2NCA4MS45NjI1WiIgZmlsbD0iIzREODJDNiIvPgo8cGF0aCBkPSJNMC40MDAzOTEgMTI1Ljc1QzAuNDAwMzkxIDEzMy42MiA2Ljc4MDM5IDE0MCAxNC42NTEgMTQwQzIyLjUyMjUgMTQwIDI4LjkwMzQgMTMzLjYyIDI4LjkwMzQgMTI1Ljc1QzI4LjkwMzQgMTE3Ljg3OSAyMi41MjI1IDExMS41IDE0LjY1MSAxMTEuNUM2Ljc4MDM5IDExMS41IDAuNDAwMzkxIDExNy44NzkgMC40MDAzOTEgMTI1Ljc1WiIgZmlsbD0iIzc3QTlGMiIvPgo8cGF0aCBkPSJNMTYuMzE4NyAxMzAuMzI5QzE0LjE2MjUgMTMwLjM2NiAxMS45Nzk0IDEzMC4zOTUgOS45OTY5NSAxMzAuMjU4QzkuMzY5ODggMTMwLjIxNSA4LjgyNyAxMjkuMjE3IDkuNTg5MzQgMTI4LjkwM0M5LjI2ODY0IDEyOC43MzggOC45NDM1IDEyOC41NzkgOC44MDM3NSAxMjguMjE5QzguNjcxMTcgMTI3Ljg4IDguODI5NyAxMjcuNDE3IDkuMTg1MzQgMTI3LjMzQzguNDM3MzMgMTI3LjUxNCA4LjE0MjYxIDEyNi4zMjggOC43MjU3OCAxMjUuOTQ1QzguNDE2NzMgMTI1LjY4MiA4LjE1OTY1IDEyNS4zMzUgOC4wOTUxNSAxMjQuOTM1QzguMDI5NzUgMTI0LjUzNCA4LjE5MzY4IDEyNC4wODIgOC41NTAyMiAxMjMuODg4QzguNzg0MDMgMTIzLjc2MSA5LjA2MDg0IDEyMy43NTcgOS4zMjY4OSAxMjMuNzU1QzEwLjIyMzYgMTIzLjc0OCAxMS4xMjAzIDEyMy43NDEgMTIuMDE3IDEyMy43MzRDMTEuNzc0MiAxMjIuMzMyIDExLjcwMDggMTIwLjgwMyAxMi40MTM4IDExOS41NzFDMTIuNjI4OCAxMTkuMTk5IDEzLjIwNTggMTE4Ljc1NSAxMy42NjM1IDExOS4wNEMxNC4wOTI2IDExOS4zMDggMTMuOTc0MyAxMTkuOTczIDEzLjk1MTkgMTIwLjM5M0MxMy44NjMzIDEyMi4xMzggMTQuODU1OSAxMjMuODkzIDE2LjM5NzYgMTI0LjcxNUMxNi4zOTc2IDEyNC43MTUgMTYuMjk1NCAxMjguNDMzIDE2LjMxODcgMTMwLjMyOVoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xNy4xMDI1IDEzMC4zMTVIMjAuMzYxNVYxMjQuNzA3SDE3LjEwMjVWMTMwLjMxNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=",Rie="",LQ={props:["title","link","url"],data(){return{linkText:`View All ${this.link}`}},methods:{openLink(){window.open(this.url,"_blank")}}};var FQ=function(){var e=this,r=e._self._c;return r("div",{staticClass:"container content"},[r("img",{attrs:{src:NQ,alt:"empty table"}}),r("span",{staticClass:"title"},[e._v(" "+e._s(e.$t(e.title))+" ")]),e.url!==""?r("b-link",{on:{click:function(i){return e.openLink()}}},[e._v(" "+e._s(e.$t(e.linkText))+" ")]):e._e()],1)},BQ=[],RQ=ie(LQ,FQ,BQ,!1,null,"7665402d",null,null);const up=RQ.exports,HQ="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE2IDQuOEwxLjA2NjY3IDAuMzIwMDAzVjBIMFYxMC42NjY3VjE1LjczMzNIMS4wNjY2N1YxMC4yNjY3TDE2IDQuOFoiIGZpbGw9IiM1NTYyNzEiLz4KPC9zdmc+Cg==",Hie="",VQ=xn(),qQ={components:{formEmpty:up,Recommendations:t=>{var e;t(((e=window.SharedComponents)==null?void 0:e.Recommendations)||{template:"<span></span>"})}},mixins:[VQ,bc],data(){var t,e;return{countInProgress:"0",countOverdue:"0",countResponse:"0",fields:[],data:[],tableData:[],orderBy:"ID",order_direction:"DESC",status:"",showTable:!0,tableHeaders:[],pmqlSearch:"",sortOrder:[{field:"ID",sortField:"ID",direction:"DESC"}],advancedFilter:"",tasksPreview:((t=window.SharedComponents)==null?void 0:t.TasksHome)||{},taskTooltip:((e=window.SharedComponents)==null?void 0:e.TaskTooltip)||{},rowPosition:{},ellipsisShow:!1,isTooltipVisible:!1,disableRuleTooltip:!1,hiderTimer:null}},computed:{noDataUrl(){var t,e;return`${(e=(t=window.ProcessMaker)==null?void 0:t.app)==null?void 0:e.url}/tasks`}},mounted(){this.setupColumns(),this.pmql=`(user_id = ${ProcessMaker.user.id}) AND (status = "In Progress")`,this.fetch(),this.$root.$on("dropdownSelectionTask",this.fetchData),this.$root.$on("searchTask",this.fetchSearch)},methods:{getSortParam(){return this.sortOrder instanceof Array&&this.sortOrder.length>0?`&order_by=${this.sortOrder[0].sortField}&order_direction=${this.sortOrder[0].direction}`:""},fetch(){Vue.nextTick(()=>{let t="",e="";this.pmql!==void 0&&(t=this.pmql),this.pmqlSearch&&(t=`${t} AND ${this.pmqlSearch}`),this.filterDropdowns!==void 0&&(e=this.filterDropdowns);let{filter:r}=this,i="";r&&r.length&&(r.isPMQL()?(t=`(${t}) and (${r})`,r=""):i=`&user_id=${window.ProcessMaker.user.id}&filter=${r}&statusfilter=ACTIVE,CLOSED`),this.previousFilter!==r&&(this.page=1),this.previousFilter=r,this.previousPmql!==t&&(this.page=1),this.previousPmql=t;const a=[];ProcessMaker.apiClient.get(`tasks?page=${this.page}&include=process,processRequest,processRequest.user,user,data&pmql=${encodeURIComponent(t)}
357
357
  &per_page=${this.perPage}
358
358
  ${i}
359
359
  ${this.getSortParam()}