/* Copyright (c) 2006, Ivan Sagalaev. All rights reserved. SPDX-License-Identifier: BSD-3-Clause */ 'use strict';const MODES$$module$third_party$javascript$highlightjs$src$languages$lib$css_shared=hljs=>{return{IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[hljs.APOS_STRING_MODE,hljs.QUOTE_STRING_MODE]}}}; const TAGS$$module$third_party$javascript$highlightjs$src$languages$lib$css_shared=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary", "sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"]; const MEDIA_FEATURES$$module$third_party$javascript$highlightjs$src$languages$lib$css_shared=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update", "width","min-width","max-width","min-height","max-height"]; const PSEUDO_CLASSES$$module$third_party$javascript$highlightjs$src$languages$lib$css_shared=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col", "nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"];const PSEUDO_ELEMENTS$$module$third_party$javascript$highlightjs$src$languages$lib$css_shared=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"]; const ATTRIBUTES$$module$third_party$javascript$highlightjs$src$languages$lib$css_shared=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat", "background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing", "border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset", "cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial", "justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x", "overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform", "transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse();const PSEUDO_SELECTORS$$module$third_party$javascript$highlightjs$src$languages$lib$css_shared=PSEUDO_CLASSES$$module$third_party$javascript$highlightjs$src$languages$lib$css_shared.concat(PSEUDO_ELEMENTS$$module$third_party$javascript$highlightjs$src$languages$lib$css_shared); var module$third_party$javascript$highlightjs$src$languages$lib$css_shared={};module$third_party$javascript$highlightjs$src$languages$lib$css_shared.ATTRIBUTES=ATTRIBUTES$$module$third_party$javascript$highlightjs$src$languages$lib$css_shared;module$third_party$javascript$highlightjs$src$languages$lib$css_shared.MEDIA_FEATURES=MEDIA_FEATURES$$module$third_party$javascript$highlightjs$src$languages$lib$css_shared;module$third_party$javascript$highlightjs$src$languages$lib$css_shared.MODES=MODES$$module$third_party$javascript$highlightjs$src$languages$lib$css_shared; module$third_party$javascript$highlightjs$src$languages$lib$css_shared.PSEUDO_CLASSES=PSEUDO_CLASSES$$module$third_party$javascript$highlightjs$src$languages$lib$css_shared;module$third_party$javascript$highlightjs$src$languages$lib$css_shared.PSEUDO_ELEMENTS=PSEUDO_ELEMENTS$$module$third_party$javascript$highlightjs$src$languages$lib$css_shared;module$third_party$javascript$highlightjs$src$languages$lib$css_shared.PSEUDO_SELECTORS=PSEUDO_SELECTORS$$module$third_party$javascript$highlightjs$src$languages$lib$css_shared; module$third_party$javascript$highlightjs$src$languages$lib$css_shared.TAGS=TAGS$$module$third_party$javascript$highlightjs$src$languages$lib$css_shared;function escape$$module$third_party$javascript$highlightjs$src$lib$regex(value){return new RegExp(value.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function source$$module$third_party$javascript$highlightjs$src$lib$regex(re){if(!re)return null;if(typeof re==="string")return re;return re.source}function lookahead$$module$third_party$javascript$highlightjs$src$lib$regex(re){return concat$$module$third_party$javascript$highlightjs$src$lib$regex("(?=",re,")")} function anyNumberOfTimes$$module$third_party$javascript$highlightjs$src$lib$regex(re){return concat$$module$third_party$javascript$highlightjs$src$lib$regex("(",re,")*")}function optional$$module$third_party$javascript$highlightjs$src$lib$regex(re){return concat$$module$third_party$javascript$highlightjs$src$lib$regex("(",re,")?")} function concat$$module$third_party$javascript$highlightjs$src$lib$regex(...args){const joined=args.map(x=>{return source$$module$third_party$javascript$highlightjs$src$lib$regex(x)}).join("");return joined}function either$$module$third_party$javascript$highlightjs$src$lib$regex(...args){const joined="("+args.map(x=>{return source$$module$third_party$javascript$highlightjs$src$lib$regex(x)}).join("|")+")";return joined} function countMatchGroups$$module$third_party$javascript$highlightjs$src$lib$regex(re){return(new RegExp(re.toString()+"|")).exec("").length-1}function startsWith$$module$third_party$javascript$highlightjs$src$lib$regex(re,lexeme){const match=re&&re.exec(lexeme);return match&&match.index===0} function join$$module$third_party$javascript$highlightjs$src$lib$regex(regexps,separator="|"){const backreferenceRe=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;let numCaptures=0;let ret="";for(let i=0;i0)ret=ret+separator;ret=ret+"(";for(;re.length>0;){const match=backreferenceRe.exec(re);if(match==null){ret=ret+re;break}ret=ret+re.substring(0, match.index);re=re.substring(match.index+match[0].length);if(match[0][0]==="\\"&&match[1])ret=ret+("\\"+String(Number(match[1])+offset));else{ret=ret+match[0];if(match[0]==="(")numCaptures++}}ret=ret+")"}return ret}var module$third_party$javascript$highlightjs$src$lib$regex={};module$third_party$javascript$highlightjs$src$lib$regex.anyNumberOfTimes=anyNumberOfTimes$$module$third_party$javascript$highlightjs$src$lib$regex;module$third_party$javascript$highlightjs$src$lib$regex.concat=concat$$module$third_party$javascript$highlightjs$src$lib$regex; module$third_party$javascript$highlightjs$src$lib$regex.countMatchGroups=countMatchGroups$$module$third_party$javascript$highlightjs$src$lib$regex;module$third_party$javascript$highlightjs$src$lib$regex.either=either$$module$third_party$javascript$highlightjs$src$lib$regex;module$third_party$javascript$highlightjs$src$lib$regex.escape=escape$$module$third_party$javascript$highlightjs$src$lib$regex;module$third_party$javascript$highlightjs$src$lib$regex.join=join$$module$third_party$javascript$highlightjs$src$lib$regex; module$third_party$javascript$highlightjs$src$lib$regex.lookahead=lookahead$$module$third_party$javascript$highlightjs$src$lib$regex;module$third_party$javascript$highlightjs$src$lib$regex.optional=optional$$module$third_party$javascript$highlightjs$src$lib$regex;module$third_party$javascript$highlightjs$src$lib$regex.source=source$$module$third_party$javascript$highlightjs$src$lib$regex;module$third_party$javascript$highlightjs$src$lib$regex.startsWith=startsWith$$module$third_party$javascript$highlightjs$src$lib$regex;var $jscompDefaultExport$$module$third_party$javascript$highlightjs$src$languages$css=function(hljs){const modes=MODES$$module$third_party$javascript$highlightjs$src$languages$lib$css_shared(hljs);const FUNCTION_DISPATCH={className:"built_in",begin:/[\w-]+(?=\()/};const VENDOR_PREFIX={begin:/-(webkit|moz|ms|o)-(?=[a-z])/};const AT_MODIFIERS="and or not only";const AT_PROPERTY_RE=/@-?\w[\w]*(-\w+)*/;const IDENT_RE="[a-zA-Z-][a-zA-Z0-9_-]*";const STRINGS=[hljs.APOS_STRING_MODE,hljs.QUOTE_STRING_MODE]; return{name:"CSS",case_insensitive:true,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[hljs.C_BLOCK_COMMENT_MODE,VENDOR_PREFIX,hljs.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+IDENT_RE,relevance:0},modes.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+PSEUDO_CLASSES$$module$third_party$javascript$highlightjs$src$languages$lib$css_shared.join("|")+ ")"},{begin:"::("+PSEUDO_ELEMENTS$$module$third_party$javascript$highlightjs$src$languages$lib$css_shared.join("|")+")"}]},{className:"attribute",begin:"\\b("+ATTRIBUTES$$module$third_party$javascript$highlightjs$src$languages$lib$css_shared.join("|")+")\\b"},{begin:":",end:"[;}]",contains:[modes.HEXCOLOR,modes.IMPORTANT,hljs.CSS_NUMBER_MODE,...STRINGS,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[{className:"string",begin:/[^)]/,endsWithParent:true,excludeEnd:true}]}, FUNCTION_DISPATCH]},{begin:lookahead$$module$third_party$javascript$highlightjs$src$lib$regex(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:AT_PROPERTY_RE},{begin:/\s/,endsWithParent:true,excludeEnd:true,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:AT_MODIFIERS,attribute:MEDIA_FEATURES$$module$third_party$javascript$highlightjs$src$languages$lib$css_shared.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...STRINGS,hljs.CSS_NUMBER_MODE]}]},{className:"selector-tag", begin:"\\b("+TAGS$$module$third_party$javascript$highlightjs$src$languages$lib$css_shared.join("|")+")\\b"}]}};var module$third_party$javascript$highlightjs$src$languages$css={};module$third_party$javascript$highlightjs$src$languages$css.default=$jscompDefaultExport$$module$third_party$javascript$highlightjs$src$languages$css;globalThis.hljs_css=$jscompDefaultExport$$module$third_party$javascript$highlightjs$src$languages$css;var module$third_party$javascript$highlightjs$export_shims$export_css={};