mirror of
https://github.com/danog/telegram-tt.git
synced 2024-12-15 02:37:17 +01:00
1 line
3.3 KiB
Plaintext
1 line
3.3 KiB
Plaintext
{"version":3,"file":"7125.57c858da5d4ff67e8141.js","mappings":"sFAgGAA,EAAOC,QAxFP,SAAcC,GACZ,MACMC,EAAU,oBAEVC,EAAS,CACbC,UAAW,YACXC,MALYJ,EAAKK,MAKJC,OAAO,IAHF,wBAGoB,cACtCC,OAAQ,CAAEC,SAAU,CAClB,CACEL,UAAW,cACXC,MAAO,KACPK,UAAW,EACXF,OAAQ,CACNG,IAAK,IACLD,UAAW,OAKbE,EAAmB,CACvBT,EACA,CACEE,MAAO,SACPG,OAAQ,CACNK,YAAa,GACbC,gBAAgB,KAKtB,MAAO,CACLC,KAAM,OACNC,QAAS,CAAE,SACXC,QAAS,KACTR,SAAU,CAER,CACEJ,MAAO,OAASH,EAAU,WAC1BS,IAAK,IACLF,SAAU,CACR,CACEL,UAAW,OACXC,MAAOH,GAET,CACEE,UAAW,SACXC,MAAO,iBAGXG,OAAQ,CACNG,IAAK,OACLM,QAAS,KACTR,SAAUG,IAId,CACEP,MAAO,oBAAsBH,EAAU,KACvCS,IAAK,IACLF,SAAU,CACR,CACEL,UAAW,SACXC,MAAO,IACPM,IAAK,IACLO,cAAc,EACdC,YAAY,GAEd,CACEf,UAAW,OACXC,MAAOH,GAET,CACEE,UAAW,UACXC,MAAO,WAGXG,OAAQ,CACNG,IAAK,OACLM,QAAS,KACTR,SAAUG,IAIdX,EAAKmB,QAAQjB,EAAQ,CAAEO,UAAW","sources":["webpack://telegram-t/./node_modules/highlight.js/lib/languages/http.js"],"sourcesContent":["/*\nLanguage: HTTP\nDescription: HTTP request and response headers with automatic body highlighting\nAuthor: Ivan Sagalaev <maniac@softwaremaniacs.org>\nCategory: protocols, web\nWebsite: https://developer.mozilla.org/en-US/docs/Web/HTTP/Overview\n*/\n\nfunction http(hljs) {\n const regex = hljs.regex;\n const VERSION = 'HTTP/(2|1\\\\.[01])';\n const HEADER_NAME = /[A-Za-z][A-Za-z0-9-]*/;\n const HEADER = {\n className: 'attribute',\n begin: regex.concat('^', HEADER_NAME, '(?=\\\\:\\\\s)'),\n starts: { contains: [\n {\n className: \"punctuation\",\n begin: /: /,\n relevance: 0,\n starts: {\n end: '$',\n relevance: 0\n }\n }\n ] }\n };\n const HEADERS_AND_BODY = [\n HEADER,\n {\n begin: '\\\\n\\\\n',\n starts: {\n subLanguage: [],\n endsWithParent: true\n }\n }\n ];\n\n return {\n name: 'HTTP',\n aliases: [ 'https' ],\n illegal: /\\S/,\n contains: [\n // response\n {\n begin: '^(?=' + VERSION + \" \\\\d{3})\",\n end: /$/,\n contains: [\n {\n className: \"meta\",\n begin: VERSION\n },\n {\n className: 'number',\n begin: '\\\\b\\\\d{3}\\\\b'\n }\n ],\n starts: {\n end: /\\b\\B/,\n illegal: /\\S/,\n contains: HEADERS_AND_BODY\n }\n },\n // request\n {\n begin: '(?=^[A-Z]+ (.*?) ' + VERSION + '$)',\n end: /$/,\n contains: [\n {\n className: 'string',\n begin: ' ',\n end: ' ',\n excludeBegin: true,\n excludeEnd: true\n },\n {\n className: \"meta\",\n begin: VERSION\n },\n {\n className: 'keyword',\n begin: '[A-Z]+'\n }\n ],\n starts: {\n end: /\\b\\B/,\n illegal: /\\S/,\n contains: HEADERS_AND_BODY\n }\n },\n // to allow headers to work even without a preamble\n hljs.inherit(HEADER, { relevance: 0 })\n ]\n };\n}\n\nmodule.exports = http;\n"],"names":["module","exports","hljs","VERSION","HEADER","className","begin","regex","concat","starts","contains","relevance","end","HEADERS_AND_BODY","subLanguage","endsWithParent","name","aliases","illegal","excludeBegin","excludeEnd","inherit"],"sourceRoot":""} |