diffprism 0.22.1 → 0.22.2
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.
package/dist/bin.js
CHANGED
|
@@ -832,7 +832,7 @@ async function serverStop() {
|
|
|
832
832
|
|
|
833
833
|
// cli/src/index.ts
|
|
834
834
|
var program = new Command();
|
|
835
|
-
program.name("diffprism").description("Local-first code review tool for agent-generated changes").version(true ? "0.22.
|
|
835
|
+
program.name("diffprism").description("Local-first code review tool for agent-generated changes").version(true ? "0.22.2" : "0.0.0-dev");
|
|
836
836
|
program.command("review [ref]").description("Open a browser-based diff review").option("--staged", "Review staged changes").option("--unstaged", "Review unstaged changes").option("-t, --title <title>", "Review title").option("--dev", "Use Vite dev server with HMR instead of static files").action(review);
|
|
837
837
|
program.command("start [ref]").description("Set up DiffPrism and start watching for changes").option("--staged", "Watch staged changes").option("--unstaged", "Watch unstaged changes").option("-t, --title <title>", "Review title").option("--interval <ms>", "Poll interval in milliseconds (default: 1000)").option("--dev", "Use Vite dev server with HMR instead of static files").option("--global", "Install skill globally (~/.claude/skills/)").option("--force", "Overwrite existing configuration files").action(start);
|
|
838
838
|
program.command("watch [ref]").description("Start a persistent diff watcher with live-updating browser UI").option("--staged", "Watch staged changes").option("--unstaged", "Watch unstaged changes").option("-t, --title <title>", "Review title").option("--interval <ms>", "Poll interval in milliseconds (default: 1000)").option("--dev", "Use Vite dev server with HMR instead of static files").action(watch);
|
package/dist/mcp-server.js
CHANGED
|
@@ -76,7 +76,7 @@ async function reviewViaGlobalServer(serverInfo, diffRef, options) {
|
|
|
76
76
|
async function startMcpServer() {
|
|
77
77
|
const server = new McpServer({
|
|
78
78
|
name: "diffprism",
|
|
79
|
-
version: true ? "0.22.
|
|
79
|
+
version: true ? "0.22.2" : "0.0.0-dev"
|
|
80
80
|
});
|
|
81
81
|
server.tool(
|
|
82
82
|
"open_review",
|
package/package.json
CHANGED
|
@@ -266,4 +266,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
266
266
|
`],o=0;o<this.diffs.length;o++){switch(this.diffs[o][0]){case 1:r="+";break;case-1:r="-";break;case 0:r=" "}s[o+1]=r+encodeURI(this.diffs[o][1])+`
|
|
267
267
|
`}return s.join("").replace(/%20/g," ")},l.exports=u,l.exports.diff_match_patch=u,l.exports.DIFF_DELETE=-1,l.exports.DIFF_INSERT=1,l.exports.DIFF_EQUAL=0}));go.DIFF_EQUAL;go.DIFF_DELETE;go.DIFF_INSERT;var XS=["enhancers"],ZS=function(l){var u,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=r.enhancers,o=s===void 0?[]:s,f=nt(zS(l,$n(r,XS)),2),d=f[0],p=f[1],h=[kp(d),kp(p)],m=(u=[h[0],h[1]],o.reduce((function(C,D){return D(C)}),u)),v=nt(m,2),S=v[0],x=v[1],_=[S.map(zp),x.map(zp)],O=_[1];return{old:_[0].map((function(C){var D;return(D=C.children)!==null&&D!==void 0?D:[]})),new:O.map((function(C){var D;return(D=C.children)!==null&&D!==void 0?D:[]}))}};nn.displayName="clike";nn.aliases=[];function nn(l){l.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}Sr.displayName="c";Sr.aliases=[];function Sr(l){l.register(nn),l.languages.c=l.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),l.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),l.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},l.languages.c.string],char:l.languages.c.char,comment:l.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:l.languages.c}}}}),l.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete l.languages.c.boolean}si.displayName="cpp";si.aliases=[];function si(l){l.register(Sr),(function(u){var r=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,s=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return r.source});u.languages.cpp=u.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return r.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:r,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),u.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return s})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),u.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:u.languages.cpp}}}}),u.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),u.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:u.languages.extend("cpp",{})}}),u.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},u.languages.cpp["base-clause"])})(l)}ho.displayName="arduino";ho.aliases=["ino"];function ho(l){l.register(si),l.languages.arduino=l.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),l.languages.ino=l.languages.arduino}po.displayName="bash";po.aliases=["sh","shell"];function po(l){(function(u){var r="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",s={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},o={bash:s,environment:{pattern:RegExp("\\$"+r),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+r),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};u.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+r),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:o},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:s}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:o},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:o.entity}}],environment:{pattern:RegExp("\\$?"+r),alias:"constant"},variable:o.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},s.inside=u.languages.bash;for(var f=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],d=o.variable[1].inside,p=0;p<f.length;p++)d[f[p]]=u.languages.bash[f[p]];u.languages.sh=u.languages.bash,u.languages.shell=u.languages.bash})(l)}mo.displayName="csharp";mo.aliases=["cs","dotnet"];function mo(l){l.register(nn),(function(u){function r(fe,A){return fe.replace(/<<(\d+)>>/g,function(H,J){return"(?:"+A[+J]+")"})}function s(fe,A,H){return RegExp(r(fe,A),"")}function o(fe,A){for(var H=0;H<A;H++)fe=fe.replace(/<<self>>/g,function(){return"(?:"+fe+")"});return fe.replace(/<<self>>/g,"[^\\s\\S]")}var f={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function d(fe){return"\\b(?:"+fe.trim().replace(/ /g,"|")+")\\b"}var p=d(f.typeDeclaration),h=RegExp(d(f.type+" "+f.typeDeclaration+" "+f.contextual+" "+f.other)),m=d(f.typeDeclaration+" "+f.contextual+" "+f.other),v=d(f.type+" "+f.typeDeclaration+" "+f.other),S=o(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),x=o(/\((?:[^()]|<<self>>)*\)/.source,2),_=/@?\b[A-Za-z_]\w*\b/.source,O=r(/<<0>>(?:\s*<<1>>)?/.source,[_,S]),C=r(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[m,O]),D=/\[\s*(?:,\s*)*\]/.source,B=r(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[C,D]),j=r(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[S,x,D]),T=r(/\(<<0>>+(?:,<<0>>+)+\)/.source,[j]),Y=r(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[T,C,D]),Z={keyword:h,punctuation:/[<>()?,.:[\]]/},$=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,I=/"(?:\\.|[^\\"\r\n])*"/.source,X=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;u.languages.csharp=u.languages.extend("clike",{string:[{pattern:s(/(^|[^$\\])<<0>>/.source,[X]),lookbehind:!0,greedy:!0},{pattern:s(/(^|[^@$\\])<<0>>/.source,[I]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:s(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[C]),lookbehind:!0,inside:Z},{pattern:s(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[_,Y]),lookbehind:!0,inside:Z},{pattern:s(/(\busing\s+)<<0>>(?=\s*=)/.source,[_]),lookbehind:!0},{pattern:s(/(\b<<0>>\s+)<<1>>/.source,[p,O]),lookbehind:!0,inside:Z},{pattern:s(/(\bcatch\s*\(\s*)<<0>>/.source,[C]),lookbehind:!0,inside:Z},{pattern:s(/(\bwhere\s+)<<0>>/.source,[_]),lookbehind:!0},{pattern:s(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[B]),lookbehind:!0,inside:Z},{pattern:s(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[Y,v,_]),inside:Z}],keyword:h,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),u.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),u.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:s(/([(,]\s*)<<0>>(?=\s*:)/.source,[_]),lookbehind:!0,alias:"punctuation"}}),u.languages.insertBefore("csharp","class-name",{namespace:{pattern:s(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[_]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:s(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[x]),lookbehind:!0,alias:"class-name",inside:Z},"return-type":{pattern:s(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[Y,C]),inside:Z,alias:"class-name"},"constructor-invocation":{pattern:s(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[Y]),lookbehind:!0,inside:Z,alias:"class-name"},"generic-method":{pattern:s(/<<0>>\s*<<1>>(?=\s*\()/.source,[_,S]),inside:{function:s(/^<<0>>/.source,[_]),generic:{pattern:RegExp(S),alias:"class-name",inside:Z}}},"type-list":{pattern:s(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[p,O,_,Y,h.source,x,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:s(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[O,x]),lookbehind:!0,greedy:!0,inside:u.languages.csharp},keyword:h,"class-name":{pattern:RegExp(Y),greedy:!0,inside:Z},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var K=I+"|"+$,F=r(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[K]),P=o(r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[F]),2),se=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,W=r(/<<0>>(?:\s*\(<<1>>*\))?/.source,[C,P]);u.languages.insertBefore("csharp","class-name",{attribute:{pattern:s(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[se,W]),lookbehind:!0,greedy:!0,inside:{target:{pattern:s(/^<<0>>(?=\s*:)/.source,[se]),alias:"keyword"},"attribute-arguments":{pattern:s(/\(<<0>>*\)/.source,[P]),inside:u.languages.csharp},"class-name":{pattern:RegExp(C),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var be=/:[^}\r\n]+/.source,Oe=o(r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[F]),2),L=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Oe,be]),Q=o(r(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[K]),2),le=r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Q,be]);function Ee(fe,A){return{interpolation:{pattern:s(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[fe]),lookbehind:!0,inside:{"format-string":{pattern:s(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[A,be]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:u.languages.csharp}}},string:/[\s\S]+/}}u.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:s(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:Ee(L,Oe)},{pattern:s(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[le]),lookbehind:!0,greedy:!0,inside:Ee(le,Q)}],char:{pattern:RegExp($),greedy:!0}}),u.languages.dotnet=u.languages.cs=u.languages.csharp})(l)}Er.displayName="markup";Er.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function Er(l){l.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},l.languages.markup.tag.inside["attr-value"].inside.entity=l.languages.markup.entity,l.languages.markup.doctype.inside["internal-subset"].inside=l.languages.markup,l.hooks.add("wrap",function(u){u.type==="entity"&&(u.attributes.title=u.content.value.replace(/&/,"&"))}),Object.defineProperty(l.languages.markup.tag,"addInlined",{value:function(r,s){var o={};o["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:l.languages[s]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var f={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};f["language-"+s]={pattern:/[\s\S]+/,inside:l.languages[s]};var d={};d[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:f},l.languages.insertBefore("markup","cdata",d)}}),Object.defineProperty(l.languages.markup.tag,"addAttribute",{value:function(u,r){l.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+u+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:l.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),l.languages.html=l.languages.markup,l.languages.mathml=l.languages.markup,l.languages.svg=l.languages.markup,l.languages.xml=l.languages.extend("markup",{}),l.languages.ssml=l.languages.xml,l.languages.atom=l.languages.xml,l.languages.rss=l.languages.xml}hl.displayName="css";hl.aliases=[];function hl(l){(function(u){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;u.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+r.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},u.languages.css.atrule.inside.rest=u.languages.css;var s=u.languages.markup;s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))})(l)}yo.displayName="diff";yo.aliases=[];function yo(l){(function(u){u.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var r={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(r).forEach(function(s){var o=r[s],f=[];/^\w+$/.test(s)||f.push(/\w+/.exec(s)[0]),s==="diff"&&f.push("bold"),u.languages.diff[s]={pattern:RegExp("^(?:["+o+`].*(?:\r
|
|
268
268
|
?|
|
|
269
|
-
|(?![\\s\\S])))+`,"m"),alias:f,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(s)[0]}}}}),Object.defineProperty(u.languages.diff,"PREFIXES",{value:r})})(l)}bo.displayName="go";bo.aliases=[];function bo(l){l.register(nn),l.languages.go=l.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),l.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete l.languages.go["class-name"]}vo.displayName="ini";vo.aliases=[];function vo(l){l.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}So.displayName="java";So.aliases=[];function So(l){l.register(nn),(function(u){var r=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,s=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(/(^|[^\w.])/.source+s+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};u.languages.java=u.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[o,{pattern:RegExp(/(^|[^\w.])/.source+s+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:o.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+s+/[A-Z]\w*\b/.source),lookbehind:!0,inside:o.inside}],keyword:r,function:[u.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),u.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),u.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":o,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+s+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:o.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+s+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:o.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return r.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(l)}Eo.displayName="regex";Eo.aliases=[];function Eo(l){(function(u){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},s=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,o={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},f={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},d="(?:[^\\\\-]|"+s.source+")",p=RegExp(d+"-"+d),h={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};u.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:p,inside:{escape:s,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":f,escape:s}},"special-escape":r,"char-set":o,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":h}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:s,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":h}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(l)}ci.displayName="javascript";ci.aliases=["js"];function ci(l){l.register(nn),l.languages.javascript=l.languages.extend("clike",{"class-name":[l.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),l.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,l.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:l.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:l.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:l.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:l.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:l.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),l.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:l.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),l.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),l.languages.markup&&(l.languages.markup.tag.addInlined("script","javascript"),l.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),l.languages.js=l.languages.javascript}xo.displayName="json";xo.aliases=["webmanifest"];function xo(l){l.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},l.languages.webmanifest=l.languages.json}Ao.displayName="kotlin";Ao.aliases=["kt","kts"];function Ao(l){l.register(nn),(function(u){u.languages.kotlin=u.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete u.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:u.languages.kotlin}};u.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete u.languages.kotlin.string,u.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),u.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),u.languages.kt=u.languages.kotlin,u.languages.kts=u.languages.kotlin})(l)}To.displayName="less";To.aliases=[];function To(l){l.register(hl),l.languages.less=l.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),l.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}No.displayName="lua";No.aliases=[];function No(l){l.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}_o.displayName="makefile";_o.aliases=[];function _o(l){l.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}wo.displayName="yaml";wo.aliases=["yml"];function wo(l){(function(u){var r=/[*&][^\s[\]{},]+/,s=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+s.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+s.source+")?)",f=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),d=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function p(h,m){m=(m||"").replace(/m/g,"")+"m";var v=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<value>>/g,function(){return h});return RegExp(v,m)}u.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return o})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<key>>/g,function(){return"(?:"+f+"|"+d+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:p(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:p(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:p(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:p(d),lookbehind:!0,greedy:!0},number:{pattern:p(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:s,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},u.languages.yml=u.languages.yaml})(l)}Oo.displayName="markdown";Oo.aliases=["md"];function Oo(l){l.register(Er),(function(u){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function s(p){return p=p.replace(/<inner>/g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+p+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,f=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),d=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;u.languages.markdown=u.languages.extend("markup",{}),u.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:u.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+f+d+"(?:"+f+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+f+d+")(?:"+f+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:u.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+f+")"+d+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+f+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:u.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:s(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:s(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:s(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:s(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(p){["url","bold","italic","strike","code-snippet"].forEach(function(h){p!==h&&(u.languages.markdown[p].inside.content.inside[h]=u.languages.markdown[h])})}),u.hooks.add("after-tokenize",function(p){if(p.language!=="markdown"&&p.language!=="md")return;function h(m){if(!(!m||typeof m=="string"))for(var v=0,S=m.length;v<S;v++){var x=m[v];if(x.type!=="code"){h(x.content);continue}var _=x.content[1],O=x.content[3];if(_&&O&&_.type==="code-language"&&O.type==="code-block"&&typeof _.content=="string"){var C=_.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");C=(/[a-z][\w-]*/i.exec(C)||[""])[0].toLowerCase();var D="language-"+C;O.alias?typeof O.alias=="string"?O.alias=[O.alias,D]:O.alias.push(D):O.alias=[D]}}}h(p.tokens)}),u.hooks.add("wrap",function(p){if(p.type==="code-block"){for(var h="",m=0,v=p.classes.length;m<v;m++){var S=p.classes[m],x=/language-(.+)/.exec(S);if(x){h=x[1];break}}var _=u.languages[h];if(_)p.content=u.highlight(p.content.value,_,h);else if(h&&h!=="none"&&u.plugins.autoloader){var O="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);p.attributes.id=O,u.plugins.autoloader.loadLanguages(h,function(){var C=document.getElementById(O);C&&(C.innerHTML=u.highlight(C.textContent,u.languages[h],h))})}}}),RegExp(u.languages.markup.tag.pattern.source,"gi"),u.languages.md=u.languages.markdown})(l)}Co.displayName="objectivec";Co.aliases=["objc"];function Co(l){l.register(Sr),l.languages.objectivec=l.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete l.languages.objectivec["class-name"],l.languages.objc=l.languages.objectivec}Ro.displayName="perl";Ro.aliases=[];function Ro(l){(function(u){var r=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;u.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,r+/\s*/.source+r].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(l)}oi.displayName="markup-templating";oi.aliases=[];function oi(l){l.register(Er),(function(u){function r(s,o){return"___"+s.toUpperCase()+o+"___"}Object.defineProperties(u.languages["markup-templating"]={},{buildPlaceholders:{value:function(s,o,f,d){if(s.language===o){var p=s.tokenStack=[];s.code=s.code.replace(f,function(h){if(typeof d=="function"&&!d(h))return h;for(var m=p.length,v;s.code.indexOf(v=r(o,m))!==-1;)++m;return p[m]=h,v}),s.grammar=u.languages.markup}}},tokenizePlaceholders:{value:function(s,o){if(s.language!==o||!s.tokenStack)return;s.grammar=u.languages[o];var f=0,d=Object.keys(s.tokenStack);function p(h){for(var m=0;m<h.length&&!(f>=d.length);m++){var v=h[m];if(typeof v=="string"||v.content&&typeof v.content=="string"){var S=d[f],x=s.tokenStack[S],_=typeof v=="string"?v:v.content,O=r(o,S),C=_.indexOf(O);if(C>-1){++f;var D=_.substring(0,C),B=new u.Token(o,u.tokenize(x,s.grammar),"language-"+o,x),j=_.substring(C+O.length),T=[];D&&T.push.apply(T,p([D])),T.push(B),j&&T.push.apply(T,p([j])),typeof v=="string"?h.splice.apply(h,[m,1].concat(T)):v.content=T}}else v.content&&p(v.content)}return h}p(s.tokens)}}})})(l)}Mo.displayName="php";Mo.aliases=[];function Mo(l){l.register(oi),(function(u){var r=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,s=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],o=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,f=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,d=/[{}\[\](),:;]/;u.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:r,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:s,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:o,operator:f,punctuation:d};var p={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:u.languages.php},h=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:p}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:p}}];u.languages.insertBefore("php","variable",{string:h,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:r,string:h,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:s,number:o,operator:f,punctuation:d}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),u.hooks.add("before-tokenize",function(m){if(/<\?/.test(m.code)){var v=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;u.languages["markup-templating"].buildPlaceholders(m,"php",v)}}),u.hooks.add("after-tokenize",function(m){u.languages["markup-templating"].tokenizePlaceholders(m,"php")})})(l)}Do.displayName="python";Do.aliases=["py"];function Do(l){l.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},l.languages.python["string-interpolation"].inside.interpolation.inside.rest=l.languages.python,l.languages.py=l.languages.python}ko.displayName="r";ko.aliases=[];function ko(l){l.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}zo.displayName="ruby";zo.aliases=["rb"];function zo(l){l.register(nn),(function(u){u.languages.ruby=u.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),u.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var r={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:u.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete u.languages.ruby.function;var s="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",o=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;u.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+s+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+o),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+o+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),u.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+s),greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+s),greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete u.languages.ruby.string,u.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),u.languages.rb=u.languages.ruby})(l)}jo.displayName="rust";jo.aliases=[];function jo(l){(function(u){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,s=0;s<2;s++)r=r.replace(/<self>/g,function(){return r});r=r.replace(/<self>/g,function(){return/[^\s\S]/.source}),u.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},u.languages.rust["closure-params"].inside.rest=u.languages.rust,u.languages.rust.attribute.inside.string=u.languages.rust.string})(l)}Lo.displayName="sass";Lo.aliases=[];function Lo(l){l.register(hl),(function(u){u.languages.sass=u.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),u.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete u.languages.sass.atrule;var r=/\$[-\w]+|#\{\$[-\w]+\}/,s=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];u.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:r,operator:s}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:r,operator:s,important:u.languages.sass.important}}}),delete u.languages.sass.property,delete u.languages.sass.important,u.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(l)}Uo.displayName="scss";Uo.aliases=[];function Uo(l){l.register(hl),l.languages.scss=l.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),l.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),l.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),l.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),l.languages.scss.atrule.inside.rest=l.languages.scss}Bo.displayName="sql";Bo.aliases=[];function Bo(l){l.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}Ho.displayName="swift";Ho.aliases=[];function Ho(l){l.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},l.languages.swift["string-literal"].forEach(function(u){u.inside.interpolation.inside=l.languages.swift})}Go.displayName="typescript";Go.aliases=["ts"];function Go(l){l.register(ci),(function(u){u.languages.typescript=u.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),u.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete u.languages.typescript.parameter,delete u.languages.typescript["literal-property"];var r=u.languages.extend("typescript",{});delete r["class-name"],u.languages.typescript["class-name"].inside=r,u.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),u.languages.ts=u.languages.typescript})(l)}fi.displayName="basic";fi.aliases=[];function fi(l){l.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}Yo.displayName="vbnet";Yo.aliases=[];function Yo(l){l.register(fi),l.languages.vbnet=l.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}class xr{constructor(u,r,s){this.property=u,this.normal=r,s&&(this.space=s)}}xr.prototype.property={};xr.prototype.normal={};xr.prototype.space=null;function R0(l,u){const r={},s={};let o=-1;for(;++o<l.length;)Object.assign(r,l[o].property),Object.assign(s,l[o].normal);return new xr(r,s,u)}function br(l){return l.toLowerCase()}class qt{constructor(u,r){this.property=u,this.attribute=r}}qt.prototype.space=null;qt.prototype.boolean=!1;qt.prototype.booleanish=!1;qt.prototype.overloadedBoolean=!1;qt.prototype.number=!1;qt.prototype.commaSeparated=!1;qt.prototype.spaceSeparated=!1;qt.prototype.commaOrSpaceSeparated=!1;qt.prototype.mustUseProperty=!1;qt.prototype.defined=!1;let IS=0;const ge=Ea(),Je=Ea(),M0=Ea(),V=Ea(),Le=Ea(),fl=Ea(),Ot=Ea();function Ea(){return 2**++IS}const Fc=Object.freeze(Object.defineProperty({__proto__:null,boolean:ge,booleanish:Je,commaOrSpaceSeparated:Ot,commaSeparated:fl,number:V,overloadedBoolean:M0,spaceSeparated:Le},Symbol.toStringTag,{value:"Module"})),Bc=Object.keys(Fc);class qo extends qt{constructor(u,r,s,o){let f=-1;if(super(u,r),jp(this,"space",o),typeof s=="number")for(;++f<Bc.length;){const d=Bc[f];jp(this,Bc[f],(s&Fc[d])===Fc[d])}}}qo.prototype.defined=!0;function jp(l,u,r){r&&(l[u]=r)}const VS={}.hasOwnProperty;function pl(l){const u={},r={};let s;for(s in l.properties)if(VS.call(l.properties,s)){const o=l.properties[s],f=new qo(s,l.transform(l.attributes||{},s),o,l.space);l.mustUseProperty&&l.mustUseProperty.includes(s)&&(f.mustUseProperty=!0),u[s]=f,r[br(s)]=s,r[br(f.attribute)]=s}return new xr(u,r,l.space)}const D0=pl({space:"xlink",transform(l,u){return"xlink:"+u.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),k0=pl({space:"xml",transform(l,u){return"xml:"+u.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function z0(l,u){return u in l?l[u]:u}function j0(l,u){return z0(l,u.toLowerCase())}const L0=pl({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:j0,properties:{xmlns:null,xmlnsXLink:null}}),U0=pl({transform(l,u){return u==="role"?u:"aria-"+u.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Je,ariaAutoComplete:null,ariaBusy:Je,ariaChecked:Je,ariaColCount:V,ariaColIndex:V,ariaColSpan:V,ariaControls:Le,ariaCurrent:null,ariaDescribedBy:Le,ariaDetails:null,ariaDisabled:Je,ariaDropEffect:Le,ariaErrorMessage:null,ariaExpanded:Je,ariaFlowTo:Le,ariaGrabbed:Je,ariaHasPopup:null,ariaHidden:Je,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Le,ariaLevel:V,ariaLive:null,ariaModal:Je,ariaMultiLine:Je,ariaMultiSelectable:Je,ariaOrientation:null,ariaOwns:Le,ariaPlaceholder:null,ariaPosInSet:V,ariaPressed:Je,ariaReadOnly:Je,ariaRelevant:null,ariaRequired:Je,ariaRoleDescription:Le,ariaRowCount:V,ariaRowIndex:V,ariaRowSpan:V,ariaSelected:Je,ariaSetSize:V,ariaSort:null,ariaValueMax:V,ariaValueMin:V,ariaValueNow:V,ariaValueText:null,role:null}}),KS=pl({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:j0,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:fl,acceptCharset:Le,accessKey:Le,action:null,allow:null,allowFullScreen:ge,allowPaymentRequest:ge,allowUserMedia:ge,alt:null,as:null,async:ge,autoCapitalize:null,autoComplete:Le,autoFocus:ge,autoPlay:ge,blocking:Le,capture:null,charSet:null,checked:ge,cite:null,className:Le,cols:V,colSpan:null,content:null,contentEditable:Je,controls:ge,controlsList:Le,coords:V|fl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ge,defer:ge,dir:null,dirName:null,disabled:ge,download:M0,draggable:Je,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ge,formTarget:null,headers:Le,height:V,hidden:ge,high:V,href:null,hrefLang:null,htmlFor:Le,httpEquiv:Le,id:null,imageSizes:null,imageSrcSet:null,inert:ge,inputMode:null,integrity:null,is:null,isMap:ge,itemId:null,itemProp:Le,itemRef:Le,itemScope:ge,itemType:Le,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ge,low:V,manifest:null,max:null,maxLength:V,media:null,method:null,min:null,minLength:V,multiple:ge,muted:ge,name:null,nonce:null,noModule:ge,noValidate:ge,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ge,optimum:V,pattern:null,ping:Le,placeholder:null,playsInline:ge,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ge,referrerPolicy:null,rel:Le,required:ge,reversed:ge,rows:V,rowSpan:V,sandbox:Le,scope:null,scoped:ge,seamless:ge,selected:ge,shadowRootClonable:ge,shadowRootDelegatesFocus:ge,shadowRootMode:null,shape:null,size:V,sizes:null,slot:null,span:V,spellCheck:Je,src:null,srcDoc:null,srcLang:null,srcSet:null,start:V,step:null,style:null,tabIndex:V,target:null,title:null,translate:null,type:null,typeMustMatch:ge,useMap:null,value:Je,width:V,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Le,axis:null,background:null,bgColor:null,border:V,borderColor:null,bottomMargin:V,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ge,declare:ge,event:null,face:null,frame:null,frameBorder:null,hSpace:V,leftMargin:V,link:null,longDesc:null,lowSrc:null,marginHeight:V,marginWidth:V,noResize:ge,noHref:ge,noShade:ge,noWrap:ge,object:null,profile:null,prompt:null,rev:null,rightMargin:V,rules:null,scheme:null,scrolling:Je,standby:null,summary:null,text:null,topMargin:V,valueType:null,version:null,vAlign:null,vLink:null,vSpace:V,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ge,disableRemotePlayback:ge,prefix:null,property:null,results:V,security:null,unselectable:null}}),FS=pl({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:z0,properties:{about:Ot,accentHeight:V,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:V,amplitude:V,arabicForm:null,ascent:V,attributeName:null,attributeType:null,azimuth:V,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:V,by:null,calcMode:null,capHeight:V,className:Le,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:V,diffuseConstant:V,direction:null,display:null,dur:null,divisor:V,dominantBaseline:null,download:ge,dx:null,dy:null,edgeMode:null,editable:null,elevation:V,enableBackground:null,end:null,event:null,exponent:V,externalResourcesRequired:null,fill:null,fillOpacity:V,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:fl,g2:fl,glyphName:fl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:V,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:V,horizOriginX:V,horizOriginY:V,id:null,ideographic:V,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:V,k:V,k1:V,k2:V,k3:V,k4:V,kernelMatrix:Ot,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:V,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:V,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:V,overlineThickness:V,paintOrder:null,panose1:null,path:null,pathLength:V,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Le,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:V,pointsAtY:V,pointsAtZ:V,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ot,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ot,rev:Ot,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ot,requiredFeatures:Ot,requiredFonts:Ot,requiredFormats:Ot,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:V,specularExponent:V,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:V,strikethroughThickness:V,string:null,stroke:null,strokeDashArray:Ot,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:V,strokeOpacity:V,strokeWidth:null,style:null,surfaceScale:V,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ot,tabIndex:V,tableValues:null,target:null,targetX:V,targetY:V,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ot,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:V,underlineThickness:V,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:V,values:null,vAlphabetic:V,vMathematical:V,vectorEffect:null,vHanging:V,vIdeographic:V,version:null,vertAdvY:V,vertOriginX:V,vertOriginY:V,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:V,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),QS=/^data[-\w.:]+$/i,Lp=/-[a-z]/g,$S=/[A-Z]/g;function JS(l,u){const r=br(u);let s=u,o=qt;if(r in l.normal)return l.property[l.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&QS.test(u)){if(u.charAt(4)==="-"){const f=u.slice(5).replace(Lp,PS);s="data"+f.charAt(0).toUpperCase()+f.slice(1)}else{const f=u.slice(4);if(!Lp.test(f)){let d=f.replace($S,WS);d.charAt(0)!=="-"&&(d="-"+d),u="data"+d}}o=qo}return new o(s,u)}function WS(l){return"-"+l.toLowerCase()}function PS(l){return l.charAt(1).toUpperCase()}const eE=R0([k0,D0,L0,U0,KS],"html");R0([k0,D0,L0,U0,FS],"svg");const Up=/[#.]/g;function tE(l,u){const r=l||"",s={};let o=0,f,d;for(;o<r.length;){Up.lastIndex=o;const p=Up.exec(r),h=r.slice(o,p?p.index:r.length);h&&(f?f==="#"?s.id=h:Array.isArray(s.className)?s.className.push(h):s.className=[h]:d=h,o+=h.length),p&&(f=p[0],o++)}return{type:"element",tagName:d||u||"div",properties:s,children:[]}}function Bp(l){const u=String(l||"").trim();return u?u.split(/[ \t\n\r\f]+/g):[]}function Hp(l){const u=[],r=String(l||"");let s=r.indexOf(","),o=0,f=!1;for(;!f;){s===-1&&(s=r.length,f=!0);const d=r.slice(o,s).trim();(d||!f)&&u.push(d),o=s+1,s=r.indexOf(",",o)}return u}const nE=new Set(["menu","submit","reset","button"]),B0={}.hasOwnProperty;function aE(l,u,r){return(function(o,f,...d){let p=-1,h;if(o==null)h={type:"root",children:[]},d.unshift(f);else if(h=tE(o,u),h.tagName=h.tagName.toLowerCase(),lE(f,h.tagName)){let m;for(m in f)B0.call(f,m)&&rE(l,h.properties,m,f[m])}else d.unshift(f);for(;++p<d.length;)Qc(h.children,d[p]);return h.type==="element"&&h.tagName==="template"&&(h.content={type:"root",children:h.children},h.children=[]),h})}function lE(l,u){return l==null||typeof l!="object"||Array.isArray(l)?!1:u==="input"||!l.type||typeof l.type!="string"?!0:"children"in l&&Array.isArray(l.children)?!1:u==="button"?nE.has(l.type.toLowerCase()):!("value"in l)}function rE(l,u,r,s){const o=JS(l,r);let f=-1,d;if(s!=null){if(typeof s=="number"){if(Number.isNaN(s))return;d=s}else typeof s=="boolean"?d=s:typeof s=="string"?o.spaceSeparated?d=Bp(s):o.commaSeparated?d=Hp(s):o.commaOrSpaceSeparated?d=Bp(Hp(s).join(" ")):d=Gp(o,o.property,s):Array.isArray(s)?d=s.concat():d=o.property==="style"?uE(s):String(s);if(Array.isArray(d)){const p=[];for(;++f<d.length;)p[f]=Gp(o,o.property,d[f]);d=p}o.property==="className"&&Array.isArray(u.className)&&(d=u.className.concat(d)),u[o.property]=d}}function Qc(l,u){let r=-1;if(u!=null)if(typeof u=="string"||typeof u=="number")l.push({type:"text",value:String(u)});else if(Array.isArray(u))for(;++r<u.length;)Qc(l,u[r]);else if(typeof u=="object"&&"type"in u)u.type==="root"?Qc(l,u.children):l.push(u);else throw new Error("Expected node, nodes, or string, got `"+u+"`")}function Gp(l,u,r){if(typeof r=="string"){if(l.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((l.boolean||l.overloadedBoolean)&&(r===""||br(r)===br(u)))return!0}return r}function uE(l){const u=[];let r;for(r in l)B0.call(l,r)&&u.push([r,l[r]].join(": "));return u.join("; ")}const iE=aE(eE,"div"),sE=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Yp={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function H0(l){const u=typeof l=="string"?l.charCodeAt(0):l;return u>=48&&u<=57}function cE(l){const u=typeof l=="string"?l.charCodeAt(0):l;return u>=97&&u<=102||u>=65&&u<=70||u>=48&&u<=57}function oE(l){const u=typeof l=="string"?l.charCodeAt(0):l;return u>=97&&u<=122||u>=65&&u<=90}function qp(l){return oE(l)||H0(l)}const Xp=document.createElement("i");function Zp(l){const u="&"+l+";";Xp.innerHTML=u;const r=Xp.textContent;return r.charCodeAt(r.length-1)===59&&l!=="semi"||r===u?!1:r}const fE=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function dE(l,u){const r={},s=typeof r.additional=="string"?r.additional.charCodeAt(0):r.additional,o=[];let f=0,d=-1,p="",h,m;r.position&&("start"in r.position||"indent"in r.position?(m=r.position.indent,h=r.position.start):h=r.position);let v=(h?h.line:0)||1,S=(h?h.column:0)||1,x=O(),_;for(f--;++f<=l.length;)if(_===10&&(S=(m?m[d]:0)||1),_=l.charCodeAt(f),_===38){const B=l.charCodeAt(f+1);if(B===9||B===10||B===12||B===32||B===38||B===60||Number.isNaN(B)||s&&B===s){p+=String.fromCharCode(_),S++;continue}const j=f+1;let T=j,Y=j,Z;if(B===35){Y=++T;const W=l.charCodeAt(Y);W===88||W===120?(Z="hexadecimal",Y=++T):Z="decimal"}else Z="named";let $="",I="",X="";const K=Z==="named"?qp:Z==="decimal"?H0:cE;for(Y--;++Y<=l.length;){const W=l.charCodeAt(Y);if(!K(W))break;X+=String.fromCharCode(W),Z==="named"&&sE.includes(X)&&($=X,I=Zp(X))}let F=l.charCodeAt(Y)===59;if(F){Y++;const W=Z==="named"?Zp(X):!1;W&&($=X,I=W)}let P=1+Y-j,se="";if(!(!F&&r.nonTerminated===!1))if(!X)Z!=="named"&&C(4,P);else if(Z==="named"){if(F&&!I)C(5,1);else if($!==X&&(Y=T+$.length,P=1+Y-T,F=!1),!F){const W=$?1:3;if(r.attribute){const be=l.charCodeAt(Y);be===61?(C(W,P),I=""):qp(be)?I="":C(W,P)}else C(W,P)}se=I}else{F||C(2,P);let W=Number.parseInt(X,Z==="hexadecimal"?16:10);if(gE(W))C(7,P),se="�";else if(W in Yp)C(6,P),se=Yp[W];else{let be="";hE(W)&&C(6,P),W>65535&&(W-=65536,be+=String.fromCharCode(W>>>10|55296),W=56320|W&1023),se=be+String.fromCharCode(W)}}if(se){D(),x=O(),f=Y-1,S+=Y-j+1,o.push(se);const W=O();W.offset++,r.reference&&r.reference.call(r.referenceContext||void 0,se,{start:x,end:W},l.slice(j-1,Y)),x=W}else X=l.slice(j-1,Y),p+=X,S+=X.length,f=Y-1}else _===10&&(v++,d++,S=0),Number.isNaN(_)?D():(p+=String.fromCharCode(_),S++);return o.join("");function O(){return{line:v,column:S,offset:f+((h?h.offset:0)||0)}}function C(B,j){let T;r.warning&&(T=O(),T.column+=j,T.offset+=j,r.warning.call(r.warningContext||void 0,fE[B],T,B))}function D(){p&&(o.push(p),r.text&&r.text.call(r.textContext||void 0,p,{start:x,end:O()}),p="")}}function gE(l){return l>=55296&&l<=57343||l>1114111}function hE(l){return l>=1&&l<=8||l===11||l>=13&&l<=31||l>=127&&l<=159||l>=64976&&l<=65007||(l&65535)===65535||(l&65535)===65534}var pE=0,Ku={},tt={util:{type:function(l){return Object.prototype.toString.call(l).slice(8,-1)},objId:function(l){return l.__id||Object.defineProperty(l,"__id",{value:++pE}),l.__id},clone:function l(u,r){r=r||{};var s,o;switch(tt.util.type(u)){case"Object":if(o=tt.util.objId(u),r[o])return r[o];s={},r[o]=s;for(var f in u)u.hasOwnProperty(f)&&(s[f]=l(u[f],r));return s;case"Array":return o=tt.util.objId(u),r[o]?r[o]:(s=[],r[o]=s,u.forEach(function(d,p){s[p]=l(d,r)}),s);default:return u}}},languages:{plain:Ku,plaintext:Ku,text:Ku,txt:Ku,extend:function(l,u){var r=tt.util.clone(tt.languages[l]);for(var s in u)r[s]=u[s];return r},insertBefore:function(l,u,r,s){s=s||tt.languages;var o=s[l],f={};for(var d in o)if(o.hasOwnProperty(d)){if(d==u)for(var p in r)r.hasOwnProperty(p)&&(f[p]=r[p]);r.hasOwnProperty(d)||(f[d]=o[d])}var h=s[l];return s[l]=f,tt.languages.DFS(tt.languages,function(m,v){v===h&&m!=l&&(this[m]=f)}),f},DFS:function l(u,r,s,o){o=o||{};var f=tt.util.objId;for(var d in u)if(u.hasOwnProperty(d)){r.call(u,d,u[d],s||d);var p=u[d],h=tt.util.type(p);h==="Object"&&!o[f(p)]?(o[f(p)]=!0,l(p,r,null,o)):h==="Array"&&!o[f(p)]&&(o[f(p)]=!0,l(p,r,d,o))}}},plugins:{},highlight:function(l,u,r){var s={code:l,grammar:u,language:r};if(tt.hooks.run("before-tokenize",s),!s.grammar)throw new Error('The language "'+s.language+'" has no grammar.');return s.tokens=tt.tokenize(s.code,s.grammar),tt.hooks.run("after-tokenize",s),hr.stringify(tt.util.encode(s.tokens),s.language)},tokenize:function(l,u){var r=u.rest;if(r){for(var s in r)u[s]=r[s];delete u.rest}var o=new mE;return $u(o,o.head,l),G0(l,o,u,o.head,0),bE(o)},hooks:{all:{},add:function(l,u){var r=tt.hooks.all;r[l]=r[l]||[],r[l].push(u)},run:function(l,u){var r=tt.hooks.all[l];if(!(!r||!r.length))for(var s=0,o;o=r[s++];)o(u)}},Token:hr};function hr(l,u,r,s){this.type=l,this.content=u,this.alias=r,this.length=(s||"").length|0}function Ip(l,u,r,s){l.lastIndex=u;var o=l.exec(r);if(o&&s&&o[1]){var f=o[1].length;o.index+=f,o[0]=o[0].slice(f)}return o}function G0(l,u,r,s,o,f){for(var d in r)if(!(!r.hasOwnProperty(d)||!r[d])){var p=r[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var m=p[h],v=m.inside,S=!!m.lookbehind,x=!!m.greedy,_=m.alias;if(x&&!m.pattern.global){var O=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,O+"g")}for(var C=m.pattern||m,D=s.next,B=o;D!==u.tail&&!(f&&B>=f.reach);B+=D.value.length,D=D.next){var j=D.value;if(u.length>l.length)return;if(!(j instanceof hr)){var T=1,Y;if(x){if(Y=Ip(C,B,l,S),!Y||Y.index>=l.length)break;var X=Y.index,Z=Y.index+Y[0].length,$=B;for($+=D.value.length;X>=$;)D=D.next,$+=D.value.length;if($-=D.value.length,B=$,D.value instanceof hr)continue;for(var I=D;I!==u.tail&&($<Z||typeof I.value=="string");I=I.next)T++,$+=I.value.length;T--,j=l.slice(B,$),Y.index-=B}else if(Y=Ip(C,0,j,S),!Y)continue;var X=Y.index,K=Y[0],F=j.slice(0,X),P=j.slice(X+K.length),se=B+j.length;f&&se>f.reach&&(f.reach=se);var W=D.prev;F&&(W=$u(u,W,F),B+=F.length),yE(u,W,T);var be=new hr(d,v?tt.tokenize(K,v):K,_,K);if(D=$u(u,W,be),P&&$u(u,D,P),T>1){var Oe={cause:d+","+h,reach:se};G0(l,u,r,D.prev,B,Oe),f&&Oe.reach>f.reach&&(f.reach=Oe.reach)}}}}}}function mE(){var l={value:null,prev:null,next:null},u={value:null,prev:l,next:null};l.next=u,this.head=l,this.tail=u,this.length=0}function $u(l,u,r){var s=u.next,o={value:r,prev:u,next:s};return u.next=o,s.prev=o,l.length++,o}function yE(l,u,r){for(var s=u.next,o=0;o<r&&s!==l.tail;o++)s=s.next;u.next=s,s.prev=u,l.length-=o}function bE(l){for(var u=[],r=l.head.next;r!==l.tail;)u.push(r.value),r=r.next;return u}const Y0=tt,ml={}.hasOwnProperty;function q0(){}q0.prototype=Y0;const ue=new q0;ue.highlight=vE;ue.register=SE;ue.alias=EE;ue.registered=xE;ue.listLanguages=AE;ue.util.encode=TE;ue.Token.stringify=$c;function vE(l,u){if(typeof l!="string")throw new TypeError("Expected `string` for `value`, got `"+l+"`");let r,s;if(u&&typeof u=="object")r=u;else{if(s=u,typeof s!="string")throw new TypeError("Expected `string` for `name`, got `"+s+"`");if(ml.call(ue.languages,s))r=ue.languages[s];else throw new Error("Unknown language: `"+s+"` is not registered")}return{type:"root",children:Y0.highlight.call(ue,l,r,s)}}function SE(l){if(typeof l!="function"||!l.displayName)throw new Error("Expected `function` for `syntax`, got `"+l+"`");ml.call(ue.languages,l.displayName)||l(ue)}function EE(l,u){const r=ue.languages;let s={};typeof l=="string"?u&&(s[l]=u):s=l;let o;for(o in s)if(ml.call(s,o)){const f=s[o],d=typeof f=="string"?[f]:f;let p=-1;for(;++p<d.length;)r[d[p]]=r[o]}}function xE(l){if(typeof l!="string")throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+l+"`");return ml.call(ue.languages,l)}function AE(){const l=ue.languages,u=[];let r;for(r in l)ml.call(l,r)&&typeof l[r]=="object"&&u.push(r);return u}function $c(l,u){if(typeof l=="string")return{type:"text",value:l};if(Array.isArray(l)){const s=[];let o=-1;for(;++o<l.length;)l[o]!==null&&l[o]!==void 0&&l[o]!==""&&s.push($c(l[o],u));return s}const r={attributes:{},classes:["token",l.type],content:$c(l.content,u),language:u,tag:"span",type:l.type};return l.alias&&r.classes.push(...typeof l.alias=="string"?[l.alias]:l.alias),ue.hooks.run("wrap",r),iE(r.tag+"."+r.classes.join("."),NE(r.attributes),r.content)}function TE(l){return l}function NE(l){let u;for(u in l)ml.call(l,u)&&(l[u]=dE(l[u]));return l}ue.register(nn);ue.register(Sr);ue.register(si);ue.register(ho);ue.register(po);ue.register(mo);ue.register(Er);ue.register(hl);ue.register(yo);ue.register(bo);ue.register(vo);ue.register(So);ue.register(Eo);ue.register(ci);ue.register(xo);ue.register(Ao);ue.register(To);ue.register(No);ue.register(_o);ue.register(wo);ue.register(Oo);ue.register(Co);ue.register(Ro);ue.register(oi);ue.register(Mo);ue.register(Do);ue.register(ko);ue.register(zo);ue.register(jo);ue.register(Lo);ue.register(Uo);ue.register(Bo);ue.register(Ho);ue.register(Go);ue.register(fi);ue.register(Yo);const _E=[{value:"suggestion",label:"Suggestion"},{value:"must_fix",label:"Must Fix"},{value:"question",label:"Question"},{value:"nitpick",label:"Nitpick"}];function Jc({onSave:l,onCancel:u,initialBody:r="",initialType:s="suggestion"}){const[o,f]=ae.useState(r),[d,p]=ae.useState(s),h=ae.useRef(null);ae.useEffect(()=>{var v;(v=h.current)==null||v.focus()},[]);function m(v){(v.metaKey||v.ctrlKey)&&v.key==="Enter"?(v.preventDefault(),o.trim()&&l(o.trim(),d)):v.key==="Escape"&&(v.preventDefault(),u())}return y.jsxs("div",{className:"p-3 space-y-2",onKeyDown:m,children:[y.jsx("textarea",{ref:h,value:o,onChange:v=>f(v.target.value),placeholder:"Write a comment...",rows:3,className:"w-full bg-background border border-border rounded px-3 py-2 text-text-primary text-sm placeholder:text-text-secondary/50 resize-none focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent"}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("select",{value:d,onChange:v=>p(v.target.value),className:"bg-background border border-border rounded px-2 py-1.5 text-text-primary text-xs focus:outline-none focus:ring-1 focus:ring-accent cursor-pointer",children:_E.map(v=>y.jsx("option",{value:v.value,children:v.label},v.value))}),y.jsx("div",{className:"flex-1"}),y.jsx("button",{onClick:u,className:"px-3 py-1.5 text-xs text-text-secondary hover:text-text-primary transition-colors cursor-pointer",children:"Cancel"}),y.jsx("button",{onClick:()=>o.trim()&&l(o.trim(),d),disabled:!o.trim(),className:"px-3 py-1.5 text-xs font-medium rounded bg-accent/20 text-accent border border-accent/30 hover:bg-accent/30 disabled:opacity-40 disabled:cursor-not-allowed transition-colors cursor-pointer",children:"Save"})]})]})}const wE={must_fix:"bg-red-100 dark:bg-red-600/20 text-red-700 dark:text-red-400 border-red-300 dark:border-red-500/30",suggestion:"bg-yellow-100 dark:bg-yellow-600/20 text-yellow-700 dark:text-yellow-400 border-yellow-300 dark:border-yellow-500/30",question:"bg-blue-100 dark:bg-blue-600/20 text-blue-700 dark:text-blue-400 border-blue-300 dark:border-blue-500/30",nitpick:"bg-gray-100 dark:bg-gray-600/20 text-gray-600 dark:text-gray-400 border-gray-300 dark:border-gray-500/30"},OE={must_fix:"Must Fix",suggestion:"Suggestion",question:"Question",nitpick:"Nitpick"};function CE({comments:l,isFormOpen:u,file:r,line:s,onAdd:o,onUpdate:f,onDelete:d,onOpenForm:p,onCloseForm:h}){const[m,v]=ae.useState(null);return y.jsxs("div",{className:"border-t border-border bg-surface",children:[l.map(({comment:S,index:x})=>m===x?y.jsx(Jc,{initialBody:S.body,initialType:S.type,onSave:(_,O)=>{f(x,_,O),v(null)},onCancel:()=>v(null)},x):y.jsxs("div",{className:"px-3 py-2 border-b border-border/50 group/comment",children:[y.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[y.jsx("span",{className:`text-[10px] font-bold px-1.5 py-0.5 rounded border ${wE[S.type]}`,children:OE[S.type]}),y.jsxs("span",{className:"text-text-secondary text-[10px] font-mono",children:[r,":",s]}),y.jsx("div",{className:"flex-1"}),y.jsx("button",{onClick:()=>v(x),className:"opacity-0 group-hover/comment:opacity-100 p-0.5 text-text-secondary hover:text-text-primary transition-all cursor-pointer",title:"Edit comment",children:y.jsx(Zb,{className:"w-3 h-3"})}),y.jsx("button",{onClick:()=>d(x),className:"opacity-0 group-hover/comment:opacity-100 p-0.5 text-text-secondary hover:text-red-700 dark:hover:text-red-400 transition-all cursor-pointer",title:"Delete comment",children:y.jsx(Qb,{className:"w-3 h-3"})})]}),y.jsx("p",{className:"text-text-primary text-sm whitespace-pre-wrap",children:S.body})]},x)),u&&m===null&&y.jsx(Jc,{onSave:(S,x)=>{o(S,x),h()},onCancel:h}),!u&&l.length>0&&m===null&&y.jsxs("button",{onClick:p,className:"flex items-center gap-1 px-3 py-1.5 text-xs text-text-secondary hover:text-accent transition-colors cursor-pointer",children:[y.jsx(Ib,{className:"w-3 h-3"}),"Add comment"]})]})}function RE(){const{theme:l,toggleTheme:u}=xn();return y.jsx("button",{onClick:u,className:"p-1.5 rounded text-text-secondary hover:text-text-primary transition-colors cursor-pointer",title:`Switch to ${l==="dark"?"light":"dark"} mode`,children:l==="dark"?y.jsx(Fb,{className:"w-4 h-4"}):y.jsx(Xb,{className:"w-4 h-4"})})}const Vp={highlight(l,u){return ue.highlight(l,u).children},registered(l){return ue.registered(l)}};function ME(l){return{typescript:"typescript",ts:"typescript",tsx:"tsx",javascript:"javascript",js:"javascript",jsx:"jsx",json:"json",css:"css",html:"markup",xml:"markup",markdown:"markdown",md:"markdown",python:"python",py:"python",rust:"rust",rs:"rust",go:"go",java:"java",c:"c",cpp:"cpp","c++":"cpp",csharp:"csharp","c#":"csharp",ruby:"ruby",rb:"ruby",php:"php",shell:"bash",bash:"bash",sh:"bash",yaml:"yaml",yml:"yaml",toml:"toml",sql:"sql",graphql:"graphql",scss:"scss",sass:"sass",less:"less",swift:"swift",kotlin:"kotlin",scala:"scala",lua:"lua",r:"r",perl:"perl",diff:"diff"}[l.toLowerCase()]??null}function Wc(l){return ba(l)||Ft(l)?l.lineNumber:ya(l)?l.newLineNumber:0}function DE(l,u){const r={};for(const s of l)for(const o of s.changes){const f=Wc(o),d=`${u}:${f}`;r[d]||(r[d]=Gt(o))}return r}function kE(l,u,r=0){const s=/^diff --git /gm,o=[];let f;for(;(f=s.exec(l))!==null;)o.push(f.index);let d=0;for(let p=0;p<o.length;p++){const h=o[p],m=p+1<o.length?o[p+1]:l.length,v=l.slice(h,m);if(v.includes(`a/${u}`)||v.includes(`b/${u}`)){if(d===r)return v;d++}}return null}function zE(){const{diffSet:l,rawDiff:u,selectedFile:r,viewMode:s,setViewMode:o,comments:f,activeCommentKey:d,addComment:p,updateComment:h,deleteComment:m,setActiveCommentKey:v,toggleHotkeyGuide:S}=xn(),x=ae.useMemo(()=>!l||!r?null:l.files.find(X=>en(X)===r)??null,[l,r]),_=ae.useMemo(()=>{if(!u||!r||!l)return null;const X=np(r);let K=0;for(const F of l.files){if(en(F)===r)break;F.path===X&&K++}return kE(u,X,K)},[u,r,l]),O=ae.useMemo(()=>{if(!_)return[];try{return cv(_)}catch{return[]}},[_]),C=ae.useMemo(()=>{if(O.length===0||!x)return;const X=ME(x.language);if(X){try{if(!Vp.registered(X))return}catch{return}try{const K={refractor:Vp,highlight:!0,language:X};return ZS(O[0].hunks,K)}catch{return}}},[O,x,s]),D=ae.useMemo(()=>O.length===0||!r?{}:DE(O[0].hunks,r),[O,r]),B=ae.useMemo(()=>{if(O.length===0)return{};const X={};for(const K of O[0].hunks)for(const F of K.changes)X[Gt(F)]=Wc(F);return X},[O]),j=ae.useMemo(()=>r?f.map((X,K)=>({comment:X,index:K})).filter(X=>X.comment.file===r):[],[f,r]),T=ae.useMemo(()=>({onClick({change:X}){if(!X)return;const K=Gt(X);v(d===K?null:K)}}),[d,v]),Y=ae.useCallback(({change:X,inHoverState:K,renderDefault:F})=>{Gt(X);const P=Wc(X),se=r&&j.some(W=>W.comment.line===P);return K?y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"diff-gutter-add-comment",children:"+"}),F()]}):se?y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"diff-comment-indicator"}),F()]}):F()},[r,j]),Z=ae.useMemo(()=>{if(!r)return{};const X={},K=new Map;for(const F of j){const P=F.comment.line;K.has(P)||K.set(P,[]),K.get(P).push(F)}for(const[F,P]of K){const se=D[`${r}:${F}`];se&&(X[se]=y.jsx(CE,{comments:P,isFormOpen:d===se,file:r,line:F,onAdd:(W,be)=>{p({file:r,line:F,body:W,type:be})},onUpdate:(W,be,Oe)=>{h(W,{file:r,line:F,body:be,type:Oe})},onDelete:m,onOpenForm:()=>v(se),onCloseForm:()=>v(null)}))}if(d&&!X[d]){const F=B[d];F!==void 0&&(X[d]=y.jsx("div",{className:"border-t border-border bg-surface",children:y.jsx(Jc,{onSave:(P,se)=>{p({file:r,line:F,body:P,type:se}),v(null)},onCancel:()=>v(null)})}))}return X},[r,j,d,D,B,p,h,m,v]);if(!r||!l)return y.jsx("div",{className:"flex-1 flex items-center justify-center bg-background",children:y.jsxs("div",{className:"text-center",children:[y.jsx(Wu,{className:"w-12 h-12 text-text-secondary/40 mx-auto mb-3"}),y.jsx("p",{className:"text-text-secondary text-sm",children:"Select a file to view changes"})]})});const $=np(r);if(x!=null&&x.binary)return y.jsxs("div",{className:"flex-1 flex flex-col bg-background",children:[y.jsx(Hc,{path:$,stage:x==null?void 0:x.stage}),y.jsx("div",{className:"flex-1 flex items-center justify-center",children:y.jsx("div",{className:"text-center",children:y.jsx("p",{className:"text-text-secondary text-sm",children:"Binary file — cannot display diff"})})})]});if(O.length===0)return y.jsxs("div",{className:"flex-1 flex flex-col bg-background",children:[y.jsx(Hc,{path:$,stage:x==null?void 0:x.stage}),y.jsx("div",{className:"flex-1 flex items-center justify-center",children:y.jsx("div",{className:"text-center",children:y.jsx("p",{className:"text-text-secondary text-sm",children:"No diff content available for this file"})})})]});const I=O[0];return y.jsxs("div",{className:"flex-1 flex flex-col bg-background min-h-0",children:[y.jsx(Hc,{path:$,stage:x==null?void 0:x.stage,additions:x==null?void 0:x.additions,deletions:x==null?void 0:x.deletions,viewMode:s,onViewModeChange:o,onToggleHotkeyGuide:S}),y.jsx("div",{className:"flex-1 overflow-auto",children:y.jsx(ES,{viewType:s,diffType:I.type,hunks:I.hunks,tokens:C,widgets:Z,gutterEvents:T,renderGutter:Y,children:X=>X.map(K=>y.jsx(_0,{hunk:K},K.content))})})]})}function Hc({path:l,stage:u,additions:r,deletions:s,viewMode:o,onViewModeChange:f,onToggleHotkeyGuide:d}){return y.jsxs("div",{className:"flex items-center gap-3 px-4 py-2.5 bg-surface border-b border-border flex-shrink-0",children:[y.jsx(Wu,{className:"w-4 h-4 text-text-secondary flex-shrink-0"}),y.jsx("span",{className:"text-text-primary text-sm font-mono truncate",children:l}),u&&y.jsx("span",{className:`text-[10px] font-semibold px-1.5 py-0.5 rounded border ${u==="staged"?"bg-green-600/20 text-green-400 border-green-500/30":"bg-yellow-600/20 text-yellow-400 border-yellow-500/30"}`,children:u==="staged"?"Staged":"Unstaged"}),y.jsxs("div",{className:"flex items-center gap-2 ml-auto flex-shrink-0",children:[r!==void 0&&r>0&&y.jsxs("span",{className:"text-green-700 dark:text-green-400 text-xs font-mono",children:["+",r]}),s!==void 0&&s>0&&y.jsxs("span",{className:"text-red-700 dark:text-red-400 text-xs font-mono",children:["-",s]}),o&&f&&y.jsxs("div",{className:"flex items-center rounded border border-border ml-2",children:[y.jsx("button",{onClick:()=>f("unified"),className:`p-1 ${o==="unified"?"bg-text-primary/10 text-text-primary":"text-text-secondary hover:text-text-primary"}`,title:"Unified view",children:y.jsx(Kb,{className:"w-3.5 h-3.5"})}),y.jsx("button",{onClick:()=>f("split"),className:`p-1 ${o==="split"?"bg-text-primary/10 text-text-primary":"text-text-secondary hover:text-text-primary"}`,title:"Split view",children:y.jsx(Hb,{className:"w-3.5 h-3.5"})})]}),d&&y.jsx("button",{onClick:d,className:"p-1.5 rounded text-text-secondary hover:text-text-primary transition-colors cursor-pointer",title:"Keyboard shortcuts (?)",children:y.jsx(Lb,{className:"w-4 h-4"})}),y.jsx(RE,{})]})]})}function jE({onSubmit:l,onDismiss:u,isWatchMode:r,watchSubmitted:s,hasUnreviewedChanges:o}){const[f,d]=ae.useState(""),{diffSet:p,fileStatuses:h,comments:m}=xn(),v=(p==null?void 0:p.files.reduce((O,C)=>O+C.additions,0))??0,S=(p==null?void 0:p.files.reduce((O,C)=>O+C.deletions,0))??0,x=(p==null?void 0:p.files.length)??0;function _(O){const C=Object.values(h).some(D=>D!=="unreviewed");l({decision:O,comments:m,fileStatuses:C?h:void 0,summary:f.trim()||void 0})}return r&&s&&!o?y.jsx("div",{className:"bg-surface border-t border-border px-4 py-3 flex-shrink-0",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx(ap,{className:"w-4 h-4 text-green-700 dark:text-green-400"}),y.jsx("span",{className:"text-sm text-green-700 dark:text-green-400 font-medium",children:"Review submitted"}),y.jsxs("span",{className:"relative flex h-2 w-2 ml-2",children:[y.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"}),y.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-green-500"})]}),y.jsx("span",{className:"text-xs text-text-secondary",children:"Watching for changes..."})]})}):y.jsxs("div",{className:"bg-surface border-t border-border px-4 py-3 flex-shrink-0",children:[r&&s&&o&&y.jsxs("div",{className:"flex items-center gap-2 mb-3 text-xs text-accent",children:[y.jsxs("span",{className:"relative flex h-2 w-2",children:[y.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-blue-400 opacity-75"}),y.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-blue-500"})]}),"New changes detected"]}),y.jsxs("div",{className:"flex items-center gap-4 mb-3",children:[y.jsxs("span",{className:"text-text-secondary text-xs",children:[x," file",x!==1?"s":""," changed"]}),v>0&&y.jsxs("span",{className:"text-green-700 dark:text-green-400 text-xs font-mono",children:["+",v]}),S>0&&y.jsxs("span",{className:"text-red-700 dark:text-red-400 text-xs font-mono",children:["-",S]}),m.length>0&&y.jsxs("span",{className:"flex items-center gap-1 text-accent text-xs",children:[y.jsx(ip,{className:"w-3 h-3"}),m.length," comment",m.length!==1?"s":""]})]}),y.jsx("textarea",{value:f,onChange:O=>d(O.target.value),placeholder:"Leave a summary comment (optional)...",rows:3,className:"w-full bg-background border border-border rounded-lg px-3 py-2 text-text-primary text-sm placeholder:text-text-secondary/50 resize-none focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent mb-3"}),y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsxs("button",{onClick:()=>_("approved"),className:"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors bg-green-100 dark:bg-green-600/20 text-green-700 dark:text-green-400 border border-green-300 dark:border-green-500/30 hover:bg-green-200 dark:hover:bg-green-600/30 hover:border-green-400 dark:hover:border-green-500/50 cursor-pointer",children:[y.jsx(ap,{className:"w-4 h-4"}),"Approve"]}),y.jsxs("button",{onClick:()=>_("changes_requested"),className:"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors bg-red-100 dark:bg-red-600/20 text-red-700 dark:text-red-400 border border-red-300 dark:border-red-500/30 hover:bg-red-200 dark:hover:bg-red-600/30 hover:border-red-400 dark:hover:border-red-500/50 cursor-pointer",children:[y.jsx(Wp,{className:"w-4 h-4"}),"Request Changes"]}),y.jsxs("button",{onClick:()=>_("approved_with_comments"),className:"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors bg-blue-100 dark:bg-blue-600/20 text-blue-700 dark:text-blue-400 border border-blue-300 dark:border-blue-500/30 hover:bg-blue-200 dark:hover:bg-blue-600/30 hover:border-blue-400 dark:hover:border-blue-500/50 cursor-pointer",children:[y.jsx(ip,{className:"w-4 h-4"}),"Approve with Comments"]}),u&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"w-px h-6 bg-border"}),y.jsxs("button",{onClick:u,className:"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors bg-gray-100 dark:bg-gray-600/20 text-gray-700 dark:text-gray-400 border border-gray-300 dark:border-gray-500/30 hover:bg-gray-200 dark:hover:bg-gray-600/30 hover:border-gray-400 dark:hover:border-gray-500/50 cursor-pointer",children:[y.jsx(Ub,{className:"w-4 h-4"}),"Dismiss"]})]})]})]})}const LE=navigator.platform.toUpperCase().includes("MAC"),UE=LE?"⌘":"Ctrl",BE=[{keys:["j","↓"],action:"Next file"},{keys:["k","↑"],action:"Previous file"},{keys:["s"],action:"Cycle file status"},{keys:[`${UE} + Enter`],action:"Save comment"},{keys:["Esc"],action:"Cancel comment / Close guide"},{keys:["?"],action:"Toggle this guide"}];function HE(){const{showHotkeyGuide:l,toggleHotkeyGuide:u}=xn();return ae.useEffect(()=>{if(!l)return;function r(s){(s.key==="Escape"||s.key==="?")&&(s.preventDefault(),s.stopPropagation(),u())}return document.addEventListener("keydown",r,!0),()=>document.removeEventListener("keydown",r,!0)},[l,u]),l?y.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:u,children:y.jsxs("div",{className:"bg-surface border border-border rounded-lg shadow-xl p-6 max-w-sm w-full mx-4",onClick:r=>r.stopPropagation(),children:[y.jsx("h2",{className:"text-text-primary text-sm font-semibold mb-4",children:"Keyboard Shortcuts"}),y.jsx("div",{className:"space-y-2",children:BE.map(r=>y.jsxs("div",{className:"flex items-center justify-between gap-4",children:[y.jsx("span",{className:"text-text-secondary text-sm",children:r.action}),y.jsx("div",{className:"flex items-center gap-1.5",children:r.keys.map((s,o)=>y.jsxs("span",{className:"flex items-center gap-1.5",children:[o>0&&y.jsx("span",{className:"text-text-secondary/50 text-xs",children:"/"}),y.jsx("kbd",{className:"px-1.5 py-0.5 text-xs font-mono rounded border border-border bg-background text-text-primary",children:s})]},s))})]},r.action))})]})}):null}function GE({onSubmit:l,onDismiss:u,isWatchMode:r,watchSubmitted:s,hasUnreviewedChanges:o}){return y.jsxs("div",{className:"h-screen flex flex-col bg-background",children:[y.jsx($b,{}),y.jsx(Jb,{}),y.jsxs("div",{className:"flex flex-1 min-h-0",children:[y.jsx("div",{className:"w-[280px] flex-shrink-0",children:y.jsx(av,{})}),y.jsx(zE,{})]}),y.jsx(jE,{onSubmit:l,onDismiss:u,isWatchMode:r,watchSubmitted:s,hasUnreviewedChanges:o}),y.jsx(HE,{})]})}function YE(l){return new Date(l).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function Kp(l){const u=l.split("/");return u[u.length-1]||l}function qE(l){const{status:u,decision:r}=l;return u==="pending"?y.jsx("span",{className:"inline-flex items-center px-1.5 py-0.5 text-[10px] font-medium rounded bg-yellow-600/20 text-yellow-400 border border-yellow-500/30",children:"Pending"}):u==="in_review"?y.jsx("span",{className:"inline-flex items-center px-1.5 py-0.5 text-[10px] font-medium rounded bg-accent/20 text-accent border border-accent/30",children:"In Review"}):r==="changes_requested"?y.jsx("span",{className:"inline-flex items-center px-1.5 py-0.5 text-[10px] font-medium rounded bg-red-600/20 text-red-400 border border-red-500/30",children:"Changes Requested"}):r==="approved"||r==="approved_with_comments"?y.jsx("span",{className:"inline-flex items-center px-1.5 py-0.5 text-[10px] font-medium rounded bg-green-600/20 text-green-400 border border-green-500/30",children:"Approved"}):r==="dismissed"?y.jsx("span",{className:"inline-flex items-center px-1.5 py-0.5 text-[10px] font-medium rounded bg-gray-600/20 text-gray-400 border border-gray-500/30",children:"Dismissed"}):y.jsx("span",{className:"inline-flex items-center px-1.5 py-0.5 text-[10px] font-medium rounded bg-green-600/20 text-green-400 border border-green-500/30",children:"Submitted"})}function XE({sessions:l,activeSessionId:u,onSelect:r,onClose:s}){return l.length===0?y.jsx("div",{className:"flex flex-col h-full bg-background",children:y.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center text-center px-8",children:[y.jsx("div",{className:"w-12 h-12 rounded-full bg-surface border border-border flex items-center justify-center mb-4",children:y.jsx(Wu,{className:"w-6 h-6 text-text-secondary"})}),y.jsx("h2",{className:"text-text-primary text-lg font-semibold mb-2",children:"No reviews yet"}),y.jsxs("p",{className:"text-text-secondary text-sm max-w-xs",children:["Reviews from Claude Code sessions will appear here when they use the"," ",y.jsx("code",{className:"text-accent text-xs",children:"open_review"})," tool."]})]})}):y.jsxs("div",{className:"flex flex-col h-full bg-background",children:[y.jsxs("div",{className:"px-6 py-4 border-b border-border",children:[y.jsx("h2",{className:"text-text-primary text-sm font-semibold",children:"Review Sessions"}),y.jsxs("span",{className:"text-text-secondary text-xs",children:[l.length," session",l.length!==1?"s":""]})]}),y.jsx("div",{className:"flex-1 overflow-y-auto p-4 space-y-2",children:l.map(o=>{const f=o.id===u;return y.jsxs("div",{className:`relative w-full text-left px-4 py-3 rounded-lg border transition-colors cursor-pointer ${f?"bg-accent/10 border-accent/40":"bg-surface border-border hover:border-text-secondary/30"}`,onClick:()=>r(o.id),role:"button",tabIndex:0,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&r(o.id)},children:[s&&y.jsx("button",{onClick:d=>{d.stopPropagation(),s(o.id)},className:"absolute top-2 right-2 p-1 rounded hover:bg-border/50 text-text-secondary hover:text-text-primary transition-colors",title:"Dismiss session",children:y.jsx(Wp,{className:"w-3.5 h-3.5"})}),y.jsxs("div",{className:"flex items-center justify-between mb-1.5 pr-6",children:[y.jsxs("div",{className:"flex items-center gap-2 min-w-0 mr-2",children:[o.hasNewChanges&&y.jsx(Vb,{className:"w-3 h-3 text-accent flex-shrink-0 animate-pulse"}),y.jsx("span",{className:"text-text-primary text-sm font-medium truncate",children:o.title||Kp(o.projectPath)})]}),qE(o)]}),y.jsxs("div",{className:"flex items-center gap-3 mb-1.5",children:[o.branch&&y.jsxs("span",{className:"flex items-center gap-1 text-text-secondary text-xs",children:[y.jsx(Jp,{className:"w-3 h-3"}),o.branch]}),y.jsx("span",{className:"text-text-secondary text-xs truncate",children:Kp(o.projectPath)})]}),y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsxs("span",{className:"text-text-secondary text-xs",children:[o.fileCount," file",o.fileCount!==1?"s":""]}),o.additions>0&&y.jsxs("span",{className:"text-green-400 text-xs font-mono",children:["+",o.additions]}),o.deletions>0&&y.jsxs("span",{className:"text-red-400 text-xs font-mono",children:["-",o.deletions]}),y.jsxs("span",{className:"flex items-center gap-1 text-text-secondary text-xs ml-auto",children:[y.jsx(Bb,{className:"w-3 h-3"}),YE(o.createdAt)]})]})]},o.id)})})]})}function ZE(){const{sendResult:l,selectSession:u,closeSession:r,connectionStatus:s}=wb(),{diffSet:o,metadata:f,theme:d,isWatchMode:p,watchSubmitted:h,hasUnreviewedChanges:m,setWatchSubmitted:v,isServerMode:S,sessions:x,activeSessionId:_,selectSession:O,removeSession:C,clearReview:D}=xn(),[B,j]=ae.useState(!1),[T,Y]=ae.useState(3);ae.useEffect(()=>{const F=document.documentElement;d==="dark"?F.classList.add("dark"):F.classList.remove("dark")},[d]);function Z(F){l(F),S?D():p?v(!0):j(!0)}function $(){l({decision:"dismissed",comments:[]}),S&&_?(C(_),r(_)):p?v(!0):j(!0)}function I(F){O(F),u(F)}function X(F){C(F),r(F)}const K=ae.useCallback(()=>{window.close()},[]);return ae.useEffect(()=>{if(!B||p||S)return;if(T<=0){K();return}const F=setTimeout(()=>{Y(P=>P-1)},1e3);return()=>clearTimeout(F)},[B,T,K,p,S]),B?y.jsx("div",{className:"h-screen flex items-center justify-center bg-background",children:y.jsxs("div",{className:"text-center",children:[y.jsx("div",{className:"w-16 h-16 rounded-full bg-green-100 dark:bg-green-600/20 border border-green-300 dark:border-green-500/30 flex items-center justify-center mx-auto mb-4",children:y.jsx("svg",{className:"w-8 h-8 text-green-700 dark:text-green-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),y.jsx("h1",{className:"text-text-primary text-xl font-semibold mb-2",children:"Review Submitted"}),y.jsxs("p",{className:"text-text-secondary text-sm",children:["Closing in ",T,"s..."]})]})}):S&&!o?s==="disconnected"?y.jsx("div",{className:"h-screen flex items-center justify-center bg-background",children:y.jsxs("div",{className:"text-center",children:[y.jsx("div",{className:"w-12 h-12 rounded-full bg-red-100 dark:bg-red-600/20 border border-red-300 dark:border-red-500/30 flex items-center justify-center mx-auto mb-4",children:y.jsx("svg",{className:"w-6 h-6 text-red-700 dark:text-red-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),y.jsx("h1",{className:"text-text-primary text-lg font-semibold mb-2",children:"Connection Lost"}),y.jsx("p",{className:"text-text-secondary text-sm",children:"Unable to connect to the DiffPrism server."})]})}):y.jsx(XE,{sessions:x,activeSessionId:_,onSelect:I,onClose:X}):o?y.jsx(GE,{onSubmit:Z,onDismiss:$,isWatchMode:p||S,watchSubmitted:h,hasUnreviewedChanges:m}):y.jsx("div",{className:"h-screen flex items-center justify-center bg-background",children:y.jsx("div",{className:"text-center",children:s==="disconnected"?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"w-12 h-12 rounded-full bg-red-100 dark:bg-red-600/20 border border-red-300 dark:border-red-500/30 flex items-center justify-center mx-auto mb-4",children:y.jsx("svg",{className:"w-6 h-6 text-red-700 dark:text-red-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),y.jsx("h1",{className:"text-text-primary text-lg font-semibold mb-2",children:"Connection Lost"}),y.jsx("p",{className:"text-text-secondary text-sm",children:"Unable to connect to the DiffPrism server. Please check the terminal and try again."})]}):y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"mb-4 flex justify-center",children:y.jsx("div",{className:"w-8 h-8 border-2 border-accent/30 border-t-accent rounded-full animate-spin"})}),y.jsx("h1",{className:"text-text-primary text-lg font-semibold mb-2",children:s==="connecting"?"Connecting...":"Waiting for review data..."}),y.jsx("p",{className:"text-text-secondary text-sm",children:(f==null?void 0:f.title)??"Loading review..."})]})})})}xb.createRoot(document.getElementById("root")).render(y.jsx(ZE,{}));
|
|
269
|
+
|(?![\\s\\S])))+`,"m"),alias:f,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(s)[0]}}}}),Object.defineProperty(u.languages.diff,"PREFIXES",{value:r})})(l)}bo.displayName="go";bo.aliases=[];function bo(l){l.register(nn),l.languages.go=l.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),l.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete l.languages.go["class-name"]}vo.displayName="ini";vo.aliases=[];function vo(l){l.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}So.displayName="java";So.aliases=[];function So(l){l.register(nn),(function(u){var r=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,s=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(/(^|[^\w.])/.source+s+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};u.languages.java=u.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[o,{pattern:RegExp(/(^|[^\w.])/.source+s+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:o.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+s+/[A-Z]\w*\b/.source),lookbehind:!0,inside:o.inside}],keyword:r,function:[u.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),u.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),u.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":o,keyword:r,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+s+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:o.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+s+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:o.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return r.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(l)}Eo.displayName="regex";Eo.aliases=[];function Eo(l){(function(u){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},s=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,o={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},f={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},d="(?:[^\\\\-]|"+s.source+")",p=RegExp(d+"-"+d),h={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};u.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:p,inside:{escape:s,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":f,escape:s}},"special-escape":r,"char-set":o,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":h}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:s,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":h}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(l)}ci.displayName="javascript";ci.aliases=["js"];function ci(l){l.register(nn),l.languages.javascript=l.languages.extend("clike",{"class-name":[l.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),l.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,l.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:l.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:l.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:l.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:l.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:l.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),l.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:l.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),l.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),l.languages.markup&&(l.languages.markup.tag.addInlined("script","javascript"),l.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),l.languages.js=l.languages.javascript}xo.displayName="json";xo.aliases=["webmanifest"];function xo(l){l.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},l.languages.webmanifest=l.languages.json}Ao.displayName="kotlin";Ao.aliases=["kt","kts"];function Ao(l){l.register(nn),(function(u){u.languages.kotlin=u.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete u.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:u.languages.kotlin}};u.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete u.languages.kotlin.string,u.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),u.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),u.languages.kt=u.languages.kotlin,u.languages.kts=u.languages.kotlin})(l)}To.displayName="less";To.aliases=[];function To(l){l.register(hl),l.languages.less=l.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),l.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}No.displayName="lua";No.aliases=[];function No(l){l.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}_o.displayName="makefile";_o.aliases=[];function _o(l){l.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}wo.displayName="yaml";wo.aliases=["yml"];function wo(l){(function(u){var r=/[*&][^\s[\]{},]+/,s=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+s.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+s.source+")?)",f=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),d=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function p(h,m){m=(m||"").replace(/m/g,"")+"m";var v=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<value>>/g,function(){return h});return RegExp(v,m)}u.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return o})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<key>>/g,function(){return"(?:"+f+"|"+d+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:p(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:p(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:p(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:p(d),lookbehind:!0,greedy:!0},number:{pattern:p(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:s,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},u.languages.yml=u.languages.yaml})(l)}Oo.displayName="markdown";Oo.aliases=["md"];function Oo(l){l.register(Er),(function(u){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function s(p){return p=p.replace(/<inner>/g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+p+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,f=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),d=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;u.languages.markdown=u.languages.extend("markup",{}),u.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:u.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+f+d+"(?:"+f+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+f+d+")(?:"+f+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:u.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+f+")"+d+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+f+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:u.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:s(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:s(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:s(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:s(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(p){["url","bold","italic","strike","code-snippet"].forEach(function(h){p!==h&&(u.languages.markdown[p].inside.content.inside[h]=u.languages.markdown[h])})}),u.hooks.add("after-tokenize",function(p){if(p.language!=="markdown"&&p.language!=="md")return;function h(m){if(!(!m||typeof m=="string"))for(var v=0,S=m.length;v<S;v++){var x=m[v];if(x.type!=="code"){h(x.content);continue}var _=x.content[1],O=x.content[3];if(_&&O&&_.type==="code-language"&&O.type==="code-block"&&typeof _.content=="string"){var C=_.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");C=(/[a-z][\w-]*/i.exec(C)||[""])[0].toLowerCase();var D="language-"+C;O.alias?typeof O.alias=="string"?O.alias=[O.alias,D]:O.alias.push(D):O.alias=[D]}}}h(p.tokens)}),u.hooks.add("wrap",function(p){if(p.type==="code-block"){for(var h="",m=0,v=p.classes.length;m<v;m++){var S=p.classes[m],x=/language-(.+)/.exec(S);if(x){h=x[1];break}}var _=u.languages[h];if(_)p.content=u.highlight(p.content.value,_,h);else if(h&&h!=="none"&&u.plugins.autoloader){var O="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);p.attributes.id=O,u.plugins.autoloader.loadLanguages(h,function(){var C=document.getElementById(O);C&&(C.innerHTML=u.highlight(C.textContent,u.languages[h],h))})}}}),RegExp(u.languages.markup.tag.pattern.source,"gi"),u.languages.md=u.languages.markdown})(l)}Co.displayName="objectivec";Co.aliases=["objc"];function Co(l){l.register(Sr),l.languages.objectivec=l.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete l.languages.objectivec["class-name"],l.languages.objc=l.languages.objectivec}Ro.displayName="perl";Ro.aliases=[];function Ro(l){(function(u){var r=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;u.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,r+/\s*/.source+r].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(l)}oi.displayName="markup-templating";oi.aliases=[];function oi(l){l.register(Er),(function(u){function r(s,o){return"___"+s.toUpperCase()+o+"___"}Object.defineProperties(u.languages["markup-templating"]={},{buildPlaceholders:{value:function(s,o,f,d){if(s.language===o){var p=s.tokenStack=[];s.code=s.code.replace(f,function(h){if(typeof d=="function"&&!d(h))return h;for(var m=p.length,v;s.code.indexOf(v=r(o,m))!==-1;)++m;return p[m]=h,v}),s.grammar=u.languages.markup}}},tokenizePlaceholders:{value:function(s,o){if(s.language!==o||!s.tokenStack)return;s.grammar=u.languages[o];var f=0,d=Object.keys(s.tokenStack);function p(h){for(var m=0;m<h.length&&!(f>=d.length);m++){var v=h[m];if(typeof v=="string"||v.content&&typeof v.content=="string"){var S=d[f],x=s.tokenStack[S],_=typeof v=="string"?v:v.content,O=r(o,S),C=_.indexOf(O);if(C>-1){++f;var D=_.substring(0,C),B=new u.Token(o,u.tokenize(x,s.grammar),"language-"+o,x),j=_.substring(C+O.length),T=[];D&&T.push.apply(T,p([D])),T.push(B),j&&T.push.apply(T,p([j])),typeof v=="string"?h.splice.apply(h,[m,1].concat(T)):v.content=T}}else v.content&&p(v.content)}return h}p(s.tokens)}}})})(l)}Mo.displayName="php";Mo.aliases=[];function Mo(l){l.register(oi),(function(u){var r=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,s=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],o=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,f=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,d=/[{}\[\](),:;]/;u.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:r,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:s,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:o,operator:f,punctuation:d};var p={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:u.languages.php},h=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:p}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:p}}];u.languages.insertBefore("php","variable",{string:h,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:r,string:h,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:s,number:o,operator:f,punctuation:d}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),u.hooks.add("before-tokenize",function(m){if(/<\?/.test(m.code)){var v=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;u.languages["markup-templating"].buildPlaceholders(m,"php",v)}}),u.hooks.add("after-tokenize",function(m){u.languages["markup-templating"].tokenizePlaceholders(m,"php")})})(l)}Do.displayName="python";Do.aliases=["py"];function Do(l){l.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},l.languages.python["string-interpolation"].inside.interpolation.inside.rest=l.languages.python,l.languages.py=l.languages.python}ko.displayName="r";ko.aliases=[];function ko(l){l.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}zo.displayName="ruby";zo.aliases=["rb"];function zo(l){l.register(nn),(function(u){u.languages.ruby=u.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),u.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var r={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:u.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete u.languages.ruby.function;var s="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",o=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;u.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+s+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:r,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+o),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+o+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),u.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+s),greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:r,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+s),greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:r,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete u.languages.ruby.string,u.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),u.languages.rb=u.languages.ruby})(l)}jo.displayName="rust";jo.aliases=[];function jo(l){(function(u){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,s=0;s<2;s++)r=r.replace(/<self>/g,function(){return r});r=r.replace(/<self>/g,function(){return/[^\s\S]/.source}),u.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},u.languages.rust["closure-params"].inside.rest=u.languages.rust,u.languages.rust.attribute.inside.string=u.languages.rust.string})(l)}Lo.displayName="sass";Lo.aliases=[];function Lo(l){l.register(hl),(function(u){u.languages.sass=u.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),u.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete u.languages.sass.atrule;var r=/\$[-\w]+|#\{\$[-\w]+\}/,s=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];u.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:r,operator:s}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:r,operator:s,important:u.languages.sass.important}}}),delete u.languages.sass.property,delete u.languages.sass.important,u.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(l)}Uo.displayName="scss";Uo.aliases=[];function Uo(l){l.register(hl),l.languages.scss=l.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),l.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),l.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),l.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),l.languages.scss.atrule.inside.rest=l.languages.scss}Bo.displayName="sql";Bo.aliases=[];function Bo(l){l.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}Ho.displayName="swift";Ho.aliases=[];function Ho(l){l.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},l.languages.swift["string-literal"].forEach(function(u){u.inside.interpolation.inside=l.languages.swift})}Go.displayName="typescript";Go.aliases=["ts"];function Go(l){l.register(ci),(function(u){u.languages.typescript=u.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),u.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete u.languages.typescript.parameter,delete u.languages.typescript["literal-property"];var r=u.languages.extend("typescript",{});delete r["class-name"],u.languages.typescript["class-name"].inside=r,u.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),u.languages.ts=u.languages.typescript})(l)}fi.displayName="basic";fi.aliases=[];function fi(l){l.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}Yo.displayName="vbnet";Yo.aliases=[];function Yo(l){l.register(fi),l.languages.vbnet=l.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}class xr{constructor(u,r,s){this.property=u,this.normal=r,s&&(this.space=s)}}xr.prototype.property={};xr.prototype.normal={};xr.prototype.space=null;function R0(l,u){const r={},s={};let o=-1;for(;++o<l.length;)Object.assign(r,l[o].property),Object.assign(s,l[o].normal);return new xr(r,s,u)}function br(l){return l.toLowerCase()}class qt{constructor(u,r){this.property=u,this.attribute=r}}qt.prototype.space=null;qt.prototype.boolean=!1;qt.prototype.booleanish=!1;qt.prototype.overloadedBoolean=!1;qt.prototype.number=!1;qt.prototype.commaSeparated=!1;qt.prototype.spaceSeparated=!1;qt.prototype.commaOrSpaceSeparated=!1;qt.prototype.mustUseProperty=!1;qt.prototype.defined=!1;let IS=0;const ge=Ea(),Je=Ea(),M0=Ea(),V=Ea(),Le=Ea(),fl=Ea(),Ot=Ea();function Ea(){return 2**++IS}const Fc=Object.freeze(Object.defineProperty({__proto__:null,boolean:ge,booleanish:Je,commaOrSpaceSeparated:Ot,commaSeparated:fl,number:V,overloadedBoolean:M0,spaceSeparated:Le},Symbol.toStringTag,{value:"Module"})),Bc=Object.keys(Fc);class qo extends qt{constructor(u,r,s,o){let f=-1;if(super(u,r),jp(this,"space",o),typeof s=="number")for(;++f<Bc.length;){const d=Bc[f];jp(this,Bc[f],(s&Fc[d])===Fc[d])}}}qo.prototype.defined=!0;function jp(l,u,r){r&&(l[u]=r)}const VS={}.hasOwnProperty;function pl(l){const u={},r={};let s;for(s in l.properties)if(VS.call(l.properties,s)){const o=l.properties[s],f=new qo(s,l.transform(l.attributes||{},s),o,l.space);l.mustUseProperty&&l.mustUseProperty.includes(s)&&(f.mustUseProperty=!0),u[s]=f,r[br(s)]=s,r[br(f.attribute)]=s}return new xr(u,r,l.space)}const D0=pl({space:"xlink",transform(l,u){return"xlink:"+u.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),k0=pl({space:"xml",transform(l,u){return"xml:"+u.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function z0(l,u){return u in l?l[u]:u}function j0(l,u){return z0(l,u.toLowerCase())}const L0=pl({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:j0,properties:{xmlns:null,xmlnsXLink:null}}),U0=pl({transform(l,u){return u==="role"?u:"aria-"+u.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Je,ariaAutoComplete:null,ariaBusy:Je,ariaChecked:Je,ariaColCount:V,ariaColIndex:V,ariaColSpan:V,ariaControls:Le,ariaCurrent:null,ariaDescribedBy:Le,ariaDetails:null,ariaDisabled:Je,ariaDropEffect:Le,ariaErrorMessage:null,ariaExpanded:Je,ariaFlowTo:Le,ariaGrabbed:Je,ariaHasPopup:null,ariaHidden:Je,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Le,ariaLevel:V,ariaLive:null,ariaModal:Je,ariaMultiLine:Je,ariaMultiSelectable:Je,ariaOrientation:null,ariaOwns:Le,ariaPlaceholder:null,ariaPosInSet:V,ariaPressed:Je,ariaReadOnly:Je,ariaRelevant:null,ariaRequired:Je,ariaRoleDescription:Le,ariaRowCount:V,ariaRowIndex:V,ariaRowSpan:V,ariaSelected:Je,ariaSetSize:V,ariaSort:null,ariaValueMax:V,ariaValueMin:V,ariaValueNow:V,ariaValueText:null,role:null}}),KS=pl({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:j0,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:fl,acceptCharset:Le,accessKey:Le,action:null,allow:null,allowFullScreen:ge,allowPaymentRequest:ge,allowUserMedia:ge,alt:null,as:null,async:ge,autoCapitalize:null,autoComplete:Le,autoFocus:ge,autoPlay:ge,blocking:Le,capture:null,charSet:null,checked:ge,cite:null,className:Le,cols:V,colSpan:null,content:null,contentEditable:Je,controls:ge,controlsList:Le,coords:V|fl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ge,defer:ge,dir:null,dirName:null,disabled:ge,download:M0,draggable:Je,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ge,formTarget:null,headers:Le,height:V,hidden:ge,high:V,href:null,hrefLang:null,htmlFor:Le,httpEquiv:Le,id:null,imageSizes:null,imageSrcSet:null,inert:ge,inputMode:null,integrity:null,is:null,isMap:ge,itemId:null,itemProp:Le,itemRef:Le,itemScope:ge,itemType:Le,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ge,low:V,manifest:null,max:null,maxLength:V,media:null,method:null,min:null,minLength:V,multiple:ge,muted:ge,name:null,nonce:null,noModule:ge,noValidate:ge,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ge,optimum:V,pattern:null,ping:Le,placeholder:null,playsInline:ge,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ge,referrerPolicy:null,rel:Le,required:ge,reversed:ge,rows:V,rowSpan:V,sandbox:Le,scope:null,scoped:ge,seamless:ge,selected:ge,shadowRootClonable:ge,shadowRootDelegatesFocus:ge,shadowRootMode:null,shape:null,size:V,sizes:null,slot:null,span:V,spellCheck:Je,src:null,srcDoc:null,srcLang:null,srcSet:null,start:V,step:null,style:null,tabIndex:V,target:null,title:null,translate:null,type:null,typeMustMatch:ge,useMap:null,value:Je,width:V,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Le,axis:null,background:null,bgColor:null,border:V,borderColor:null,bottomMargin:V,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ge,declare:ge,event:null,face:null,frame:null,frameBorder:null,hSpace:V,leftMargin:V,link:null,longDesc:null,lowSrc:null,marginHeight:V,marginWidth:V,noResize:ge,noHref:ge,noShade:ge,noWrap:ge,object:null,profile:null,prompt:null,rev:null,rightMargin:V,rules:null,scheme:null,scrolling:Je,standby:null,summary:null,text:null,topMargin:V,valueType:null,version:null,vAlign:null,vLink:null,vSpace:V,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ge,disableRemotePlayback:ge,prefix:null,property:null,results:V,security:null,unselectable:null}}),FS=pl({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:z0,properties:{about:Ot,accentHeight:V,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:V,amplitude:V,arabicForm:null,ascent:V,attributeName:null,attributeType:null,azimuth:V,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:V,by:null,calcMode:null,capHeight:V,className:Le,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:V,diffuseConstant:V,direction:null,display:null,dur:null,divisor:V,dominantBaseline:null,download:ge,dx:null,dy:null,edgeMode:null,editable:null,elevation:V,enableBackground:null,end:null,event:null,exponent:V,externalResourcesRequired:null,fill:null,fillOpacity:V,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:fl,g2:fl,glyphName:fl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:V,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:V,horizOriginX:V,horizOriginY:V,id:null,ideographic:V,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:V,k:V,k1:V,k2:V,k3:V,k4:V,kernelMatrix:Ot,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:V,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:V,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:V,overlineThickness:V,paintOrder:null,panose1:null,path:null,pathLength:V,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Le,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:V,pointsAtY:V,pointsAtZ:V,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ot,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ot,rev:Ot,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ot,requiredFeatures:Ot,requiredFonts:Ot,requiredFormats:Ot,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:V,specularExponent:V,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:V,strikethroughThickness:V,string:null,stroke:null,strokeDashArray:Ot,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:V,strokeOpacity:V,strokeWidth:null,style:null,surfaceScale:V,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ot,tabIndex:V,tableValues:null,target:null,targetX:V,targetY:V,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ot,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:V,underlineThickness:V,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:V,values:null,vAlphabetic:V,vMathematical:V,vectorEffect:null,vHanging:V,vIdeographic:V,version:null,vertAdvY:V,vertOriginX:V,vertOriginY:V,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:V,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),QS=/^data[-\w.:]+$/i,Lp=/-[a-z]/g,$S=/[A-Z]/g;function JS(l,u){const r=br(u);let s=u,o=qt;if(r in l.normal)return l.property[l.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&QS.test(u)){if(u.charAt(4)==="-"){const f=u.slice(5).replace(Lp,PS);s="data"+f.charAt(0).toUpperCase()+f.slice(1)}else{const f=u.slice(4);if(!Lp.test(f)){let d=f.replace($S,WS);d.charAt(0)!=="-"&&(d="-"+d),u="data"+d}}o=qo}return new o(s,u)}function WS(l){return"-"+l.toLowerCase()}function PS(l){return l.charAt(1).toUpperCase()}const eE=R0([k0,D0,L0,U0,KS],"html");R0([k0,D0,L0,U0,FS],"svg");const Up=/[#.]/g;function tE(l,u){const r=l||"",s={};let o=0,f,d;for(;o<r.length;){Up.lastIndex=o;const p=Up.exec(r),h=r.slice(o,p?p.index:r.length);h&&(f?f==="#"?s.id=h:Array.isArray(s.className)?s.className.push(h):s.className=[h]:d=h,o+=h.length),p&&(f=p[0],o++)}return{type:"element",tagName:d||u||"div",properties:s,children:[]}}function Bp(l){const u=String(l||"").trim();return u?u.split(/[ \t\n\r\f]+/g):[]}function Hp(l){const u=[],r=String(l||"");let s=r.indexOf(","),o=0,f=!1;for(;!f;){s===-1&&(s=r.length,f=!0);const d=r.slice(o,s).trim();(d||!f)&&u.push(d),o=s+1,s=r.indexOf(",",o)}return u}const nE=new Set(["menu","submit","reset","button"]),B0={}.hasOwnProperty;function aE(l,u,r){return(function(o,f,...d){let p=-1,h;if(o==null)h={type:"root",children:[]},d.unshift(f);else if(h=tE(o,u),h.tagName=h.tagName.toLowerCase(),lE(f,h.tagName)){let m;for(m in f)B0.call(f,m)&&rE(l,h.properties,m,f[m])}else d.unshift(f);for(;++p<d.length;)Qc(h.children,d[p]);return h.type==="element"&&h.tagName==="template"&&(h.content={type:"root",children:h.children},h.children=[]),h})}function lE(l,u){return l==null||typeof l!="object"||Array.isArray(l)?!1:u==="input"||!l.type||typeof l.type!="string"?!0:"children"in l&&Array.isArray(l.children)?!1:u==="button"?nE.has(l.type.toLowerCase()):!("value"in l)}function rE(l,u,r,s){const o=JS(l,r);let f=-1,d;if(s!=null){if(typeof s=="number"){if(Number.isNaN(s))return;d=s}else typeof s=="boolean"?d=s:typeof s=="string"?o.spaceSeparated?d=Bp(s):o.commaSeparated?d=Hp(s):o.commaOrSpaceSeparated?d=Bp(Hp(s).join(" ")):d=Gp(o,o.property,s):Array.isArray(s)?d=s.concat():d=o.property==="style"?uE(s):String(s);if(Array.isArray(d)){const p=[];for(;++f<d.length;)p[f]=Gp(o,o.property,d[f]);d=p}o.property==="className"&&Array.isArray(u.className)&&(d=u.className.concat(d)),u[o.property]=d}}function Qc(l,u){let r=-1;if(u!=null)if(typeof u=="string"||typeof u=="number")l.push({type:"text",value:String(u)});else if(Array.isArray(u))for(;++r<u.length;)Qc(l,u[r]);else if(typeof u=="object"&&"type"in u)u.type==="root"?Qc(l,u.children):l.push(u);else throw new Error("Expected node, nodes, or string, got `"+u+"`")}function Gp(l,u,r){if(typeof r=="string"){if(l.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((l.boolean||l.overloadedBoolean)&&(r===""||br(r)===br(u)))return!0}return r}function uE(l){const u=[];let r;for(r in l)B0.call(l,r)&&u.push([r,l[r]].join(": "));return u.join("; ")}const iE=aE(eE,"div"),sE=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Yp={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function H0(l){const u=typeof l=="string"?l.charCodeAt(0):l;return u>=48&&u<=57}function cE(l){const u=typeof l=="string"?l.charCodeAt(0):l;return u>=97&&u<=102||u>=65&&u<=70||u>=48&&u<=57}function oE(l){const u=typeof l=="string"?l.charCodeAt(0):l;return u>=97&&u<=122||u>=65&&u<=90}function qp(l){return oE(l)||H0(l)}const Xp=document.createElement("i");function Zp(l){const u="&"+l+";";Xp.innerHTML=u;const r=Xp.textContent;return r.charCodeAt(r.length-1)===59&&l!=="semi"||r===u?!1:r}const fE=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function dE(l,u){const r={},s=typeof r.additional=="string"?r.additional.charCodeAt(0):r.additional,o=[];let f=0,d=-1,p="",h,m;r.position&&("start"in r.position||"indent"in r.position?(m=r.position.indent,h=r.position.start):h=r.position);let v=(h?h.line:0)||1,S=(h?h.column:0)||1,x=O(),_;for(f--;++f<=l.length;)if(_===10&&(S=(m?m[d]:0)||1),_=l.charCodeAt(f),_===38){const B=l.charCodeAt(f+1);if(B===9||B===10||B===12||B===32||B===38||B===60||Number.isNaN(B)||s&&B===s){p+=String.fromCharCode(_),S++;continue}const j=f+1;let T=j,Y=j,Z;if(B===35){Y=++T;const W=l.charCodeAt(Y);W===88||W===120?(Z="hexadecimal",Y=++T):Z="decimal"}else Z="named";let $="",I="",X="";const K=Z==="named"?qp:Z==="decimal"?H0:cE;for(Y--;++Y<=l.length;){const W=l.charCodeAt(Y);if(!K(W))break;X+=String.fromCharCode(W),Z==="named"&&sE.includes(X)&&($=X,I=Zp(X))}let F=l.charCodeAt(Y)===59;if(F){Y++;const W=Z==="named"?Zp(X):!1;W&&($=X,I=W)}let P=1+Y-j,se="";if(!(!F&&r.nonTerminated===!1))if(!X)Z!=="named"&&C(4,P);else if(Z==="named"){if(F&&!I)C(5,1);else if($!==X&&(Y=T+$.length,P=1+Y-T,F=!1),!F){const W=$?1:3;if(r.attribute){const be=l.charCodeAt(Y);be===61?(C(W,P),I=""):qp(be)?I="":C(W,P)}else C(W,P)}se=I}else{F||C(2,P);let W=Number.parseInt(X,Z==="hexadecimal"?16:10);if(gE(W))C(7,P),se="�";else if(W in Yp)C(6,P),se=Yp[W];else{let be="";hE(W)&&C(6,P),W>65535&&(W-=65536,be+=String.fromCharCode(W>>>10|55296),W=56320|W&1023),se=be+String.fromCharCode(W)}}if(se){D(),x=O(),f=Y-1,S+=Y-j+1,o.push(se);const W=O();W.offset++,r.reference&&r.reference.call(r.referenceContext||void 0,se,{start:x,end:W},l.slice(j-1,Y)),x=W}else X=l.slice(j-1,Y),p+=X,S+=X.length,f=Y-1}else _===10&&(v++,d++,S=0),Number.isNaN(_)?D():(p+=String.fromCharCode(_),S++);return o.join("");function O(){return{line:v,column:S,offset:f+((h?h.offset:0)||0)}}function C(B,j){let T;r.warning&&(T=O(),T.column+=j,T.offset+=j,r.warning.call(r.warningContext||void 0,fE[B],T,B))}function D(){p&&(o.push(p),r.text&&r.text.call(r.textContext||void 0,p,{start:x,end:O()}),p="")}}function gE(l){return l>=55296&&l<=57343||l>1114111}function hE(l){return l>=1&&l<=8||l===11||l>=13&&l<=31||l>=127&&l<=159||l>=64976&&l<=65007||(l&65535)===65535||(l&65535)===65534}var pE=0,Ku={},tt={util:{type:function(l){return Object.prototype.toString.call(l).slice(8,-1)},objId:function(l){return l.__id||Object.defineProperty(l,"__id",{value:++pE}),l.__id},clone:function l(u,r){r=r||{};var s,o;switch(tt.util.type(u)){case"Object":if(o=tt.util.objId(u),r[o])return r[o];s={},r[o]=s;for(var f in u)u.hasOwnProperty(f)&&(s[f]=l(u[f],r));return s;case"Array":return o=tt.util.objId(u),r[o]?r[o]:(s=[],r[o]=s,u.forEach(function(d,p){s[p]=l(d,r)}),s);default:return u}}},languages:{plain:Ku,plaintext:Ku,text:Ku,txt:Ku,extend:function(l,u){var r=tt.util.clone(tt.languages[l]);for(var s in u)r[s]=u[s];return r},insertBefore:function(l,u,r,s){s=s||tt.languages;var o=s[l],f={};for(var d in o)if(o.hasOwnProperty(d)){if(d==u)for(var p in r)r.hasOwnProperty(p)&&(f[p]=r[p]);r.hasOwnProperty(d)||(f[d]=o[d])}var h=s[l];return s[l]=f,tt.languages.DFS(tt.languages,function(m,v){v===h&&m!=l&&(this[m]=f)}),f},DFS:function l(u,r,s,o){o=o||{};var f=tt.util.objId;for(var d in u)if(u.hasOwnProperty(d)){r.call(u,d,u[d],s||d);var p=u[d],h=tt.util.type(p);h==="Object"&&!o[f(p)]?(o[f(p)]=!0,l(p,r,null,o)):h==="Array"&&!o[f(p)]&&(o[f(p)]=!0,l(p,r,d,o))}}},plugins:{},highlight:function(l,u,r){var s={code:l,grammar:u,language:r};if(tt.hooks.run("before-tokenize",s),!s.grammar)throw new Error('The language "'+s.language+'" has no grammar.');return s.tokens=tt.tokenize(s.code,s.grammar),tt.hooks.run("after-tokenize",s),hr.stringify(tt.util.encode(s.tokens),s.language)},tokenize:function(l,u){var r=u.rest;if(r){for(var s in r)u[s]=r[s];delete u.rest}var o=new mE;return $u(o,o.head,l),G0(l,o,u,o.head,0),bE(o)},hooks:{all:{},add:function(l,u){var r=tt.hooks.all;r[l]=r[l]||[],r[l].push(u)},run:function(l,u){var r=tt.hooks.all[l];if(!(!r||!r.length))for(var s=0,o;o=r[s++];)o(u)}},Token:hr};function hr(l,u,r,s){this.type=l,this.content=u,this.alias=r,this.length=(s||"").length|0}function Ip(l,u,r,s){l.lastIndex=u;var o=l.exec(r);if(o&&s&&o[1]){var f=o[1].length;o.index+=f,o[0]=o[0].slice(f)}return o}function G0(l,u,r,s,o,f){for(var d in r)if(!(!r.hasOwnProperty(d)||!r[d])){var p=r[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var m=p[h],v=m.inside,S=!!m.lookbehind,x=!!m.greedy,_=m.alias;if(x&&!m.pattern.global){var O=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,O+"g")}for(var C=m.pattern||m,D=s.next,B=o;D!==u.tail&&!(f&&B>=f.reach);B+=D.value.length,D=D.next){var j=D.value;if(u.length>l.length)return;if(!(j instanceof hr)){var T=1,Y;if(x){if(Y=Ip(C,B,l,S),!Y||Y.index>=l.length)break;var X=Y.index,Z=Y.index+Y[0].length,$=B;for($+=D.value.length;X>=$;)D=D.next,$+=D.value.length;if($-=D.value.length,B=$,D.value instanceof hr)continue;for(var I=D;I!==u.tail&&($<Z||typeof I.value=="string");I=I.next)T++,$+=I.value.length;T--,j=l.slice(B,$),Y.index-=B}else if(Y=Ip(C,0,j,S),!Y)continue;var X=Y.index,K=Y[0],F=j.slice(0,X),P=j.slice(X+K.length),se=B+j.length;f&&se>f.reach&&(f.reach=se);var W=D.prev;F&&(W=$u(u,W,F),B+=F.length),yE(u,W,T);var be=new hr(d,v?tt.tokenize(K,v):K,_,K);if(D=$u(u,W,be),P&&$u(u,D,P),T>1){var Oe={cause:d+","+h,reach:se};G0(l,u,r,D.prev,B,Oe),f&&Oe.reach>f.reach&&(f.reach=Oe.reach)}}}}}}function mE(){var l={value:null,prev:null,next:null},u={value:null,prev:l,next:null};l.next=u,this.head=l,this.tail=u,this.length=0}function $u(l,u,r){var s=u.next,o={value:r,prev:u,next:s};return u.next=o,s.prev=o,l.length++,o}function yE(l,u,r){for(var s=u.next,o=0;o<r&&s!==l.tail;o++)s=s.next;u.next=s,s.prev=u,l.length-=o}function bE(l){for(var u=[],r=l.head.next;r!==l.tail;)u.push(r.value),r=r.next;return u}const Y0=tt,ml={}.hasOwnProperty;function q0(){}q0.prototype=Y0;const ue=new q0;ue.highlight=vE;ue.register=SE;ue.alias=EE;ue.registered=xE;ue.listLanguages=AE;ue.util.encode=TE;ue.Token.stringify=$c;function vE(l,u){if(typeof l!="string")throw new TypeError("Expected `string` for `value`, got `"+l+"`");let r,s;if(u&&typeof u=="object")r=u;else{if(s=u,typeof s!="string")throw new TypeError("Expected `string` for `name`, got `"+s+"`");if(ml.call(ue.languages,s))r=ue.languages[s];else throw new Error("Unknown language: `"+s+"` is not registered")}return{type:"root",children:Y0.highlight.call(ue,l,r,s)}}function SE(l){if(typeof l!="function"||!l.displayName)throw new Error("Expected `function` for `syntax`, got `"+l+"`");ml.call(ue.languages,l.displayName)||l(ue)}function EE(l,u){const r=ue.languages;let s={};typeof l=="string"?u&&(s[l]=u):s=l;let o;for(o in s)if(ml.call(s,o)){const f=s[o],d=typeof f=="string"?[f]:f;let p=-1;for(;++p<d.length;)r[d[p]]=r[o]}}function xE(l){if(typeof l!="string")throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+l+"`");return ml.call(ue.languages,l)}function AE(){const l=ue.languages,u=[];let r;for(r in l)ml.call(l,r)&&typeof l[r]=="object"&&u.push(r);return u}function $c(l,u){if(typeof l=="string")return{type:"text",value:l};if(Array.isArray(l)){const s=[];let o=-1;for(;++o<l.length;)l[o]!==null&&l[o]!==void 0&&l[o]!==""&&s.push($c(l[o],u));return s}const r={attributes:{},classes:["token",l.type],content:$c(l.content,u),language:u,tag:"span",type:l.type};return l.alias&&r.classes.push(...typeof l.alias=="string"?[l.alias]:l.alias),ue.hooks.run("wrap",r),iE(r.tag+"."+r.classes.join("."),NE(r.attributes),r.content)}function TE(l){return l}function NE(l){let u;for(u in l)ml.call(l,u)&&(l[u]=dE(l[u]));return l}ue.register(nn);ue.register(Sr);ue.register(si);ue.register(ho);ue.register(po);ue.register(mo);ue.register(Er);ue.register(hl);ue.register(yo);ue.register(bo);ue.register(vo);ue.register(So);ue.register(Eo);ue.register(ci);ue.register(xo);ue.register(Ao);ue.register(To);ue.register(No);ue.register(_o);ue.register(wo);ue.register(Oo);ue.register(Co);ue.register(Ro);ue.register(oi);ue.register(Mo);ue.register(Do);ue.register(ko);ue.register(zo);ue.register(jo);ue.register(Lo);ue.register(Uo);ue.register(Bo);ue.register(Ho);ue.register(Go);ue.register(fi);ue.register(Yo);const _E=[{value:"suggestion",label:"Suggestion"},{value:"must_fix",label:"Must Fix"},{value:"question",label:"Question"},{value:"nitpick",label:"Nitpick"}];function Jc({onSave:l,onCancel:u,initialBody:r="",initialType:s="suggestion"}){const[o,f]=ae.useState(r),[d,p]=ae.useState(s),h=ae.useRef(null);ae.useEffect(()=>{var v;(v=h.current)==null||v.focus()},[]);function m(v){(v.metaKey||v.ctrlKey)&&v.key==="Enter"?(v.preventDefault(),o.trim()&&l(o.trim(),d)):v.key==="Escape"&&(v.preventDefault(),u())}return y.jsxs("div",{className:"p-3 space-y-2",onKeyDown:m,children:[y.jsx("textarea",{ref:h,value:o,onChange:v=>f(v.target.value),placeholder:"Write a comment...",rows:3,className:"w-full bg-background border border-border rounded px-3 py-2 text-text-primary text-sm placeholder:text-text-secondary/50 resize-none focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent"}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("select",{value:d,onChange:v=>p(v.target.value),className:"bg-background border border-border rounded px-2 py-1.5 text-text-primary text-xs focus:outline-none focus:ring-1 focus:ring-accent cursor-pointer",children:_E.map(v=>y.jsx("option",{value:v.value,children:v.label},v.value))}),y.jsx("div",{className:"flex-1"}),y.jsx("button",{onClick:u,className:"px-3 py-1.5 text-xs text-text-secondary hover:text-text-primary transition-colors cursor-pointer",children:"Cancel"}),y.jsx("button",{onClick:()=>o.trim()&&l(o.trim(),d),disabled:!o.trim(),className:"px-3 py-1.5 text-xs font-medium rounded bg-accent/20 text-accent border border-accent/30 hover:bg-accent/30 disabled:opacity-40 disabled:cursor-not-allowed transition-colors cursor-pointer",children:"Save"})]})]})}const wE={must_fix:"bg-red-100 dark:bg-red-600/20 text-red-700 dark:text-red-400 border-red-300 dark:border-red-500/30",suggestion:"bg-yellow-100 dark:bg-yellow-600/20 text-yellow-700 dark:text-yellow-400 border-yellow-300 dark:border-yellow-500/30",question:"bg-blue-100 dark:bg-blue-600/20 text-blue-700 dark:text-blue-400 border-blue-300 dark:border-blue-500/30",nitpick:"bg-gray-100 dark:bg-gray-600/20 text-gray-600 dark:text-gray-400 border-gray-300 dark:border-gray-500/30"},OE={must_fix:"Must Fix",suggestion:"Suggestion",question:"Question",nitpick:"Nitpick"};function CE({comments:l,isFormOpen:u,file:r,line:s,onAdd:o,onUpdate:f,onDelete:d,onOpenForm:p,onCloseForm:h}){const[m,v]=ae.useState(null);return y.jsxs("div",{className:"border-t border-border bg-surface",children:[l.map(({comment:S,index:x})=>m===x?y.jsx(Jc,{initialBody:S.body,initialType:S.type,onSave:(_,O)=>{f(x,_,O),v(null)},onCancel:()=>v(null)},x):y.jsxs("div",{className:"px-3 py-2 border-b border-border/50 group/comment",children:[y.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[y.jsx("span",{className:`text-[10px] font-bold px-1.5 py-0.5 rounded border ${wE[S.type]}`,children:OE[S.type]}),y.jsxs("span",{className:"text-text-secondary text-[10px] font-mono",children:[r,":",s]}),y.jsx("div",{className:"flex-1"}),y.jsx("button",{onClick:()=>v(x),className:"opacity-0 group-hover/comment:opacity-100 p-0.5 text-text-secondary hover:text-text-primary transition-all cursor-pointer",title:"Edit comment",children:y.jsx(Zb,{className:"w-3 h-3"})}),y.jsx("button",{onClick:()=>d(x),className:"opacity-0 group-hover/comment:opacity-100 p-0.5 text-text-secondary hover:text-red-700 dark:hover:text-red-400 transition-all cursor-pointer",title:"Delete comment",children:y.jsx(Qb,{className:"w-3 h-3"})})]}),y.jsx("p",{className:"text-text-primary text-sm whitespace-pre-wrap",children:S.body})]},x)),u&&m===null&&y.jsx(Jc,{onSave:(S,x)=>{o(S,x),h()},onCancel:h}),!u&&l.length>0&&m===null&&y.jsxs("button",{onClick:p,className:"flex items-center gap-1 px-3 py-1.5 text-xs text-text-secondary hover:text-accent transition-colors cursor-pointer",children:[y.jsx(Ib,{className:"w-3 h-3"}),"Add comment"]})]})}function RE(){const{theme:l,toggleTheme:u}=xn();return y.jsx("button",{onClick:u,className:"p-1.5 rounded text-text-secondary hover:text-text-primary transition-colors cursor-pointer",title:`Switch to ${l==="dark"?"light":"dark"} mode`,children:l==="dark"?y.jsx(Fb,{className:"w-4 h-4"}):y.jsx(Xb,{className:"w-4 h-4"})})}const Vp={highlight(l,u){return ue.highlight(l,u).children},registered(l){return ue.registered(l)}};function ME(l){return{typescript:"typescript",ts:"typescript",tsx:"tsx",javascript:"javascript",js:"javascript",jsx:"jsx",json:"json",css:"css",html:"markup",xml:"markup",markdown:"markdown",md:"markdown",python:"python",py:"python",rust:"rust",rs:"rust",go:"go",java:"java",c:"c",cpp:"cpp","c++":"cpp",csharp:"csharp","c#":"csharp",ruby:"ruby",rb:"ruby",php:"php",shell:"bash",bash:"bash",sh:"bash",yaml:"yaml",yml:"yaml",toml:"toml",sql:"sql",graphql:"graphql",scss:"scss",sass:"sass",less:"less",swift:"swift",kotlin:"kotlin",scala:"scala",lua:"lua",r:"r",perl:"perl",diff:"diff"}[l.toLowerCase()]??null}function Wc(l){return ba(l)||Ft(l)?l.lineNumber:ya(l)?l.newLineNumber:0}function DE(l,u){const r={};for(const s of l)for(const o of s.changes){const f=Wc(o),d=`${u}:${f}`;r[d]||(r[d]=Gt(o))}return r}function kE(l,u,r=0){const s=/^diff --git /gm,o=[];let f;for(;(f=s.exec(l))!==null;)o.push(f.index);let d=0;for(let p=0;p<o.length;p++){const h=o[p],m=p+1<o.length?o[p+1]:l.length,v=l.slice(h,m);if(v.includes(`a/${u}`)||v.includes(`b/${u}`)){if(d===r)return v;d++}}return null}function zE(){const{diffSet:l,rawDiff:u,selectedFile:r,viewMode:s,setViewMode:o,comments:f,activeCommentKey:d,addComment:p,updateComment:h,deleteComment:m,setActiveCommentKey:v,toggleHotkeyGuide:S}=xn(),x=ae.useMemo(()=>!l||!r?null:l.files.find(X=>en(X)===r)??null,[l,r]),_=ae.useMemo(()=>{if(!u||!r||!l)return null;const X=np(r);let K=0;for(const F of l.files){if(en(F)===r)break;F.path===X&&K++}return kE(u,X,K)},[u,r,l]),O=ae.useMemo(()=>{if(!_)return[];try{return cv(_)}catch{return[]}},[_]),C=ae.useMemo(()=>{if(O.length===0||!x)return;const X=ME(x.language);if(X){try{if(!Vp.registered(X))return}catch{return}try{const K={refractor:Vp,highlight:!0,language:X};return ZS(O[0].hunks,K)}catch{return}}},[O,x,s]),D=ae.useMemo(()=>O.length===0||!r?{}:DE(O[0].hunks,r),[O,r]),B=ae.useMemo(()=>{if(O.length===0)return{};const X={};for(const K of O[0].hunks)for(const F of K.changes)X[Gt(F)]=Wc(F);return X},[O]),j=ae.useMemo(()=>r?f.map((X,K)=>({comment:X,index:K})).filter(X=>X.comment.file===r):[],[f,r]),T=ae.useMemo(()=>({onClick({change:X}){if(!X)return;const K=Gt(X);v(d===K?null:K)}}),[d,v]),Y=ae.useCallback(({change:X,inHoverState:K,renderDefault:F})=>{Gt(X);const P=Wc(X),se=r&&j.some(W=>W.comment.line===P);return K?y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"diff-gutter-add-comment",children:"+"}),F()]}):se?y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"diff-comment-indicator"}),F()]}):F()},[r,j]),Z=ae.useMemo(()=>{if(!r)return{};const X={},K=new Map;for(const F of j){const P=F.comment.line;K.has(P)||K.set(P,[]),K.get(P).push(F)}for(const[F,P]of K){const se=D[`${r}:${F}`];se&&(X[se]=y.jsx(CE,{comments:P,isFormOpen:d===se,file:r,line:F,onAdd:(W,be)=>{p({file:r,line:F,body:W,type:be})},onUpdate:(W,be,Oe)=>{h(W,{file:r,line:F,body:be,type:Oe})},onDelete:m,onOpenForm:()=>v(se),onCloseForm:()=>v(null)}))}if(d&&!X[d]){const F=B[d];F!==void 0&&(X[d]=y.jsx("div",{className:"border-t border-border bg-surface",children:y.jsx(Jc,{onSave:(P,se)=>{p({file:r,line:F,body:P,type:se}),v(null)},onCancel:()=>v(null)})}))}return X},[r,j,d,D,B,p,h,m,v]);if(!r||!l)return y.jsx("div",{className:"flex-1 flex items-center justify-center bg-background",children:y.jsxs("div",{className:"text-center",children:[y.jsx(Wu,{className:"w-12 h-12 text-text-secondary/40 mx-auto mb-3"}),y.jsx("p",{className:"text-text-secondary text-sm",children:"Select a file to view changes"})]})});const $=np(r);if(x!=null&&x.binary)return y.jsxs("div",{className:"flex-1 flex flex-col bg-background",children:[y.jsx(Hc,{path:$,stage:x==null?void 0:x.stage}),y.jsx("div",{className:"flex-1 flex items-center justify-center",children:y.jsx("div",{className:"text-center",children:y.jsx("p",{className:"text-text-secondary text-sm",children:"Binary file — cannot display diff"})})})]});if(O.length===0)return y.jsxs("div",{className:"flex-1 flex flex-col bg-background",children:[y.jsx(Hc,{path:$,stage:x==null?void 0:x.stage}),y.jsx("div",{className:"flex-1 flex items-center justify-center",children:y.jsx("div",{className:"text-center",children:y.jsx("p",{className:"text-text-secondary text-sm",children:"No diff content available for this file"})})})]});const I=O[0];return y.jsxs("div",{className:"flex-1 flex flex-col bg-background min-h-0",children:[y.jsx(Hc,{path:$,stage:x==null?void 0:x.stage,additions:x==null?void 0:x.additions,deletions:x==null?void 0:x.deletions,viewMode:s,onViewModeChange:o,onToggleHotkeyGuide:S}),y.jsx("div",{className:"flex-1 overflow-auto",children:y.jsx(ES,{viewType:s,diffType:I.type,hunks:I.hunks,tokens:C,widgets:Z,gutterEvents:T,renderGutter:Y,children:X=>X.map(K=>y.jsx(_0,{hunk:K},K.content))})})]})}function Hc({path:l,stage:u,additions:r,deletions:s,viewMode:o,onViewModeChange:f,onToggleHotkeyGuide:d}){return y.jsxs("div",{className:"flex items-center gap-3 px-4 py-2.5 bg-surface border-b border-border flex-shrink-0",children:[y.jsx(Wu,{className:"w-4 h-4 text-text-secondary flex-shrink-0"}),y.jsx("span",{className:"text-text-primary text-sm font-mono truncate",children:l}),u&&y.jsx("span",{className:`text-[10px] font-semibold px-1.5 py-0.5 rounded border ${u==="staged"?"bg-green-600/20 text-green-400 border-green-500/30":"bg-yellow-600/20 text-yellow-400 border-yellow-500/30"}`,children:u==="staged"?"Staged":"Unstaged"}),y.jsxs("div",{className:"flex items-center gap-2 ml-auto flex-shrink-0",children:[r!==void 0&&r>0&&y.jsxs("span",{className:"text-green-700 dark:text-green-400 text-xs font-mono",children:["+",r]}),s!==void 0&&s>0&&y.jsxs("span",{className:"text-red-700 dark:text-red-400 text-xs font-mono",children:["-",s]}),o&&f&&y.jsxs("div",{className:"flex items-center rounded border border-border ml-2",children:[y.jsx("button",{onClick:()=>f("unified"),className:`p-1 ${o==="unified"?"bg-text-primary/10 text-text-primary":"text-text-secondary hover:text-text-primary"}`,title:"Unified view",children:y.jsx(Kb,{className:"w-3.5 h-3.5"})}),y.jsx("button",{onClick:()=>f("split"),className:`p-1 ${o==="split"?"bg-text-primary/10 text-text-primary":"text-text-secondary hover:text-text-primary"}`,title:"Split view",children:y.jsx(Hb,{className:"w-3.5 h-3.5"})})]}),d&&y.jsx("button",{onClick:d,className:"p-1.5 rounded text-text-secondary hover:text-text-primary transition-colors cursor-pointer",title:"Keyboard shortcuts (?)",children:y.jsx(Lb,{className:"w-4 h-4"})}),y.jsx(RE,{})]})]})}function jE({onSubmit:l,onDismiss:u,isWatchMode:r,watchSubmitted:s,hasUnreviewedChanges:o}){const[f,d]=ae.useState(""),{diffSet:p,fileStatuses:h,comments:m}=xn(),v=(p==null?void 0:p.files.reduce((O,C)=>O+C.additions,0))??0,S=(p==null?void 0:p.files.reduce((O,C)=>O+C.deletions,0))??0,x=(p==null?void 0:p.files.length)??0;function _(O){const C=Object.values(h).some(D=>D!=="unreviewed");l({decision:O,comments:m,fileStatuses:C?h:void 0,summary:f.trim()||void 0})}return r&&s&&!o?y.jsx("div",{className:"bg-surface border-t border-border px-4 py-3 flex-shrink-0",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx(ap,{className:"w-4 h-4 text-green-700 dark:text-green-400"}),y.jsx("span",{className:"text-sm text-green-700 dark:text-green-400 font-medium",children:"Review submitted"}),y.jsxs("span",{className:"relative flex h-2 w-2 ml-2",children:[y.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"}),y.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-green-500"})]}),y.jsx("span",{className:"text-xs text-text-secondary",children:"Watching for changes..."})]})}):y.jsxs("div",{className:"bg-surface border-t border-border px-4 py-3 flex-shrink-0",children:[r&&s&&o&&y.jsxs("div",{className:"flex items-center gap-2 mb-3 text-xs text-accent",children:[y.jsxs("span",{className:"relative flex h-2 w-2",children:[y.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-blue-400 opacity-75"}),y.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-blue-500"})]}),"New changes detected"]}),y.jsxs("div",{className:"flex items-center gap-4 mb-3",children:[y.jsxs("span",{className:"text-text-secondary text-xs",children:[x," file",x!==1?"s":""," changed"]}),v>0&&y.jsxs("span",{className:"text-green-700 dark:text-green-400 text-xs font-mono",children:["+",v]}),S>0&&y.jsxs("span",{className:"text-red-700 dark:text-red-400 text-xs font-mono",children:["-",S]}),m.length>0&&y.jsxs("span",{className:"flex items-center gap-1 text-accent text-xs",children:[y.jsx(ip,{className:"w-3 h-3"}),m.length," comment",m.length!==1?"s":""]})]}),y.jsx("textarea",{value:f,onChange:O=>d(O.target.value),placeholder:"Leave a summary comment (optional)...",rows:3,className:"w-full bg-background border border-border rounded-lg px-3 py-2 text-text-primary text-sm placeholder:text-text-secondary/50 resize-none focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent mb-3"}),y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsxs("button",{onClick:()=>_("approved"),className:"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors bg-green-100 dark:bg-green-600/20 text-green-700 dark:text-green-400 border border-green-300 dark:border-green-500/30 hover:bg-green-200 dark:hover:bg-green-600/30 hover:border-green-400 dark:hover:border-green-500/50 cursor-pointer",children:[y.jsx(ap,{className:"w-4 h-4"}),"Approve"]}),y.jsxs("button",{onClick:()=>_("changes_requested"),className:"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors bg-red-100 dark:bg-red-600/20 text-red-700 dark:text-red-400 border border-red-300 dark:border-red-500/30 hover:bg-red-200 dark:hover:bg-red-600/30 hover:border-red-400 dark:hover:border-red-500/50 cursor-pointer",children:[y.jsx(Wp,{className:"w-4 h-4"}),"Request Changes"]}),y.jsxs("button",{onClick:()=>_("approved_with_comments"),className:"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors bg-blue-100 dark:bg-blue-600/20 text-blue-700 dark:text-blue-400 border border-blue-300 dark:border-blue-500/30 hover:bg-blue-200 dark:hover:bg-blue-600/30 hover:border-blue-400 dark:hover:border-blue-500/50 cursor-pointer",children:[y.jsx(ip,{className:"w-4 h-4"}),"Approve with Comments"]}),u&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"w-px h-6 bg-border"}),y.jsxs("button",{onClick:u,className:"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors bg-gray-100 dark:bg-gray-600/20 text-gray-700 dark:text-gray-400 border border-gray-300 dark:border-gray-500/30 hover:bg-gray-200 dark:hover:bg-gray-600/30 hover:border-gray-400 dark:hover:border-gray-500/50 cursor-pointer",children:[y.jsx(Ub,{className:"w-4 h-4"}),"Dismiss"]})]})]})]})}const LE=navigator.platform.toUpperCase().includes("MAC"),UE=LE?"⌘":"Ctrl",BE=[{keys:["j","↓"],action:"Next file"},{keys:["k","↑"],action:"Previous file"},{keys:["s"],action:"Cycle file status"},{keys:[`${UE} + Enter`],action:"Save comment"},{keys:["Esc"],action:"Cancel comment / Close guide"},{keys:["?"],action:"Toggle this guide"}];function HE(){const{showHotkeyGuide:l,toggleHotkeyGuide:u}=xn();return ae.useEffect(()=>{if(!l)return;function r(s){(s.key==="Escape"||s.key==="?")&&(s.preventDefault(),s.stopPropagation(),u())}return document.addEventListener("keydown",r,!0),()=>document.removeEventListener("keydown",r,!0)},[l,u]),l?y.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:u,children:y.jsxs("div",{className:"bg-surface border border-border rounded-lg shadow-xl p-6 max-w-sm w-full mx-4",onClick:r=>r.stopPropagation(),children:[y.jsx("h2",{className:"text-text-primary text-sm font-semibold mb-4",children:"Keyboard Shortcuts"}),y.jsx("div",{className:"space-y-2",children:BE.map(r=>y.jsxs("div",{className:"flex items-center justify-between gap-4",children:[y.jsx("span",{className:"text-text-secondary text-sm",children:r.action}),y.jsx("div",{className:"flex items-center gap-1.5",children:r.keys.map((s,o)=>y.jsxs("span",{className:"flex items-center gap-1.5",children:[o>0&&y.jsx("span",{className:"text-text-secondary/50 text-xs",children:"/"}),y.jsx("kbd",{className:"px-1.5 py-0.5 text-xs font-mono rounded border border-border bg-background text-text-primary",children:s})]},s))})]},r.action))})]})}):null}function GE({onSubmit:l,onDismiss:u,isWatchMode:r,watchSubmitted:s,hasUnreviewedChanges:o}){return y.jsxs("div",{className:"h-screen flex flex-col bg-background",children:[y.jsx($b,{}),y.jsx(Jb,{}),y.jsxs("div",{className:"flex flex-1 min-h-0",children:[y.jsx("div",{className:"w-[280px] flex-shrink-0",children:y.jsx(av,{})}),y.jsx(zE,{})]}),y.jsx(jE,{onSubmit:l,onDismiss:u,isWatchMode:r,watchSubmitted:s,hasUnreviewedChanges:o}),y.jsx(HE,{})]})}function YE(l){return new Date(l).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function Kp(l){const u=l.split("/");return u[u.length-1]||l}function qE(l){const{status:u,decision:r}=l;return u==="pending"?y.jsx("span",{className:"inline-flex items-center px-1.5 py-0.5 text-[10px] font-medium rounded bg-yellow-600/20 text-yellow-400 border border-yellow-500/30",children:"Pending"}):u==="in_review"?y.jsx("span",{className:"inline-flex items-center px-1.5 py-0.5 text-[10px] font-medium rounded bg-accent/20 text-accent border border-accent/30",children:"In Review"}):r==="changes_requested"?y.jsx("span",{className:"inline-flex items-center px-1.5 py-0.5 text-[10px] font-medium rounded bg-red-600/20 text-red-400 border border-red-500/30",children:"Changes Requested"}):r==="approved"||r==="approved_with_comments"?y.jsx("span",{className:"inline-flex items-center px-1.5 py-0.5 text-[10px] font-medium rounded bg-green-600/20 text-green-400 border border-green-500/30",children:"Approved"}):r==="dismissed"?y.jsx("span",{className:"inline-flex items-center px-1.5 py-0.5 text-[10px] font-medium rounded bg-gray-600/20 text-gray-400 border border-gray-500/30",children:"Dismissed"}):y.jsx("span",{className:"inline-flex items-center px-1.5 py-0.5 text-[10px] font-medium rounded bg-green-600/20 text-green-400 border border-green-500/30",children:"Submitted"})}function XE({sessions:l,activeSessionId:u,onSelect:r,onClose:s}){return l.length===0?y.jsx("div",{className:"flex flex-col h-full bg-background",children:y.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center text-center px-8",children:[y.jsx("div",{className:"w-12 h-12 rounded-full bg-surface border border-border flex items-center justify-center mb-4",children:y.jsx(Wu,{className:"w-6 h-6 text-text-secondary"})}),y.jsx("h2",{className:"text-text-primary text-lg font-semibold mb-2",children:"No reviews yet"}),y.jsxs("p",{className:"text-text-secondary text-sm max-w-xs",children:["Reviews from Claude Code sessions will appear here when they use the"," ",y.jsx("code",{className:"text-accent text-xs",children:"open_review"})," tool."]})]})}):y.jsxs("div",{className:"flex flex-col h-full bg-background",children:[y.jsxs("div",{className:"px-6 py-4 border-b border-border",children:[y.jsx("h2",{className:"text-text-primary text-sm font-semibold",children:"Review Sessions"}),y.jsxs("span",{className:"text-text-secondary text-xs",children:[l.length," session",l.length!==1?"s":""]})]}),y.jsx("div",{className:"flex-1 overflow-y-auto p-4 space-y-2",children:l.map(o=>{const f=o.id===u;return y.jsxs("div",{className:`relative w-full text-left px-4 py-3 rounded-lg border transition-colors cursor-pointer ${f?"bg-accent/10 border-accent/40":"bg-surface border-border hover:border-text-secondary/30"}`,onClick:()=>r(o.id),role:"button",tabIndex:0,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&r(o.id)},children:[s&&y.jsx("button",{onClick:d=>{d.stopPropagation(),s(o.id)},className:"absolute top-2 right-2 p-1 rounded hover:bg-border/50 text-text-secondary hover:text-text-primary transition-colors",title:"Dismiss session",children:y.jsx(Wp,{className:"w-3.5 h-3.5"})}),y.jsxs("div",{className:"flex items-center justify-between mb-1.5 pr-6",children:[y.jsxs("div",{className:"flex items-center gap-2 min-w-0 mr-2",children:[o.hasNewChanges&&y.jsx(Vb,{className:"w-3 h-3 text-accent flex-shrink-0 animate-pulse"}),y.jsx("span",{className:"text-text-primary text-sm font-medium truncate",children:o.title||Kp(o.projectPath)})]}),qE(o)]}),y.jsxs("div",{className:"flex items-center gap-3 mb-1.5",children:[o.branch&&y.jsxs("span",{className:"flex items-center gap-1 text-text-secondary text-xs",children:[y.jsx(Jp,{className:"w-3 h-3"}),o.branch]}),y.jsx("span",{className:"text-text-secondary text-xs truncate",children:Kp(o.projectPath)})]}),y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsxs("span",{className:"text-text-secondary text-xs",children:[o.fileCount," file",o.fileCount!==1?"s":""]}),o.additions>0&&y.jsxs("span",{className:"text-green-400 text-xs font-mono",children:["+",o.additions]}),o.deletions>0&&y.jsxs("span",{className:"text-red-400 text-xs font-mono",children:["-",o.deletions]}),y.jsxs("span",{className:"flex items-center gap-1 text-text-secondary text-xs ml-auto",children:[y.jsx(Bb,{className:"w-3 h-3"}),YE(o.createdAt)]})]})]},o.id)})})]})}function ZE(){const{sendResult:l,selectSession:u,closeSession:r,connectionStatus:s}=wb(),{diffSet:o,metadata:f,theme:d,isWatchMode:p,watchSubmitted:h,hasUnreviewedChanges:m,setWatchSubmitted:v,isServerMode:S,sessions:x,activeSessionId:_,selectSession:O,removeSession:C,clearReview:D}=xn(),[B,j]=ae.useState(!1),[T,Y]=ae.useState(3);ae.useEffect(()=>{const F=document.documentElement;d==="dark"?F.classList.add("dark"):F.classList.remove("dark")},[d]);function Z(F){l(F),S?D():p?v(!0):j(!0)}function $(){l({decision:"dismissed",comments:[]}),S&&_?(C(_),r(_)):p?v(!0):j(!0)}function I(F){O(F),u(F)}function X(F){C(F),r(F)}const K=ae.useCallback(()=>{window.close()},[]);return ae.useEffect(()=>{if(!B||p||S)return;if(T<=0){K();return}const F=setTimeout(()=>{Y(P=>P-1)},1e3);return()=>clearTimeout(F)},[B,T,K,p,S]),B?y.jsx("div",{className:"h-screen flex items-center justify-center bg-background",children:y.jsxs("div",{className:"text-center",children:[y.jsx("div",{className:"w-16 h-16 rounded-full bg-green-100 dark:bg-green-600/20 border border-green-300 dark:border-green-500/30 flex items-center justify-center mx-auto mb-4",children:y.jsx("svg",{className:"w-8 h-8 text-green-700 dark:text-green-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),y.jsx("h1",{className:"text-text-primary text-xl font-semibold mb-2",children:"Review Submitted"}),y.jsxs("p",{className:"text-text-secondary text-sm",children:["Closing in ",T,"s..."]})]})}):S&&!o?s==="disconnected"?y.jsx("div",{className:"h-screen flex items-center justify-center bg-background",children:y.jsxs("div",{className:"text-center",children:[y.jsx("div",{className:"w-12 h-12 rounded-full bg-red-100 dark:bg-red-600/20 border border-red-300 dark:border-red-500/30 flex items-center justify-center mx-auto mb-4",children:y.jsx("svg",{className:"w-6 h-6 text-red-700 dark:text-red-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),y.jsx("h1",{className:"text-text-primary text-lg font-semibold mb-2",children:"Connection Lost"}),y.jsx("p",{className:"text-text-secondary text-sm",children:"Unable to connect to the DiffPrism server."})]})}):y.jsx("div",{className:"h-screen bg-background",children:y.jsx(XE,{sessions:x,activeSessionId:_,onSelect:I,onClose:X})}):o?y.jsx(GE,{onSubmit:Z,onDismiss:$,isWatchMode:p||S,watchSubmitted:h,hasUnreviewedChanges:m}):y.jsx("div",{className:"h-screen flex items-center justify-center bg-background",children:y.jsx("div",{className:"text-center",children:s==="disconnected"?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"w-12 h-12 rounded-full bg-red-100 dark:bg-red-600/20 border border-red-300 dark:border-red-500/30 flex items-center justify-center mx-auto mb-4",children:y.jsx("svg",{className:"w-6 h-6 text-red-700 dark:text-red-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),y.jsx("h1",{className:"text-text-primary text-lg font-semibold mb-2",children:"Connection Lost"}),y.jsx("p",{className:"text-text-secondary text-sm",children:"Unable to connect to the DiffPrism server. Please check the terminal and try again."})]}):y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"mb-4 flex justify-center",children:y.jsx("div",{className:"w-8 h-8 border-2 border-accent/30 border-t-accent rounded-full animate-spin"})}),y.jsx("h1",{className:"text-text-primary text-lg font-semibold mb-2",children:s==="connecting"?"Connecting...":"Waiting for review data..."}),y.jsx("p",{className:"text-text-secondary text-sm",children:(f==null?void 0:f.title)??"Loading review..."})]})})})}xb.createRoot(document.getElementById("root")).render(y.jsx(ZE,{}));
|
package/ui-dist/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
7
7
|
<title>DiffPrism</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-DQfttXFP.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-8f7wgaXb.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body style="background-color: var(--color-background); margin: 0;">
|