mirror of
https://github.com/danog/telegram-tt.git
synced 2024-12-12 00:59:52 +01:00
1 line
9.5 KiB
Plaintext
1 line
9.5 KiB
Plaintext
{"version":3,"file":"958.c56f02be3f4f5db2aedf.js","mappings":"qFAiQAA,EAAOC,QAxPP,SAAoBC,GAClB,MAAMC,EAAQD,EAAKC,MACbC,EAAY,CAChBC,SAAU,WACVC,SAAU,CACR,SACA,WACA,aACA,YACA,SACA,WACA,OACA,UACA,MACA,OACA,KACA,KACA,QACA,UACA,MACA,MACA,SACA,MACA,SACA,UACA,eACA,SACA,WACA,WACA,UACA,SACA,OACA,OACA,UAoBEC,EAA0B,kBAC1BC,EAAiB,wCAEjBC,EAASN,EAAMO,OALU,aACA,aAO7BH,EACAC,GAGIG,EAAmBR,EAAMS,OAC7BT,EAAMU,SAAS,cACfJ,EACAN,EAAMW,iBAAiBX,EAAMS,OAXF,UAazBH,KAKEM,EAAmBZ,EAAMS,OAC7B,IACAL,EAAyB,IACzBC,EACA,UAGIQ,EAAiC,CAAEC,MAAON,GAE1CO,EAAmBhB,EAAKiB,QAAQH,EAAgC,CAAEI,SA7CvD,CACff,SAAU,WACVgB,QAAS,CACP,OACA,QACA,YACA,WAyCEC,EAAiB,CACrBL,MAAO,KACPM,IAAK,MAIDC,EAAO,CAEXC,UAAW,OACXR,MAAOF,EACPW,UAAW,EACXC,OAAQ,CACNV,MAAO,IACPM,IAAK,IACLI,OAAQ,CAAEC,SAAU,CAClB1B,EAAK2B,YACL3B,EAAK4B,kBACL5B,EAAK6B,iBACLb,EACAI,MAiBAU,EAAoB,CACxBJ,SAAU,CACR1B,EAAK2B,YACL3B,EAAK4B,kBACL5B,EAAK6B,iBAhBY,CAEnBd,MAAO,UACPG,SAAU,CAAEa,QAAS,MACrBV,IAAK,KACLK,SAAU,CACR,CAEEX,MAAO,SAUTO,EACAN,EACAI,GAEFY,WAAW,GAMPC,EAA0BjC,EAAKiB,QAAQH,EAAgC,CAC3ES,UAAW,OACXL,SAAUhB,EACVuB,OAAQzB,EAAKiB,QAAQa,EAAmB,CAAET,IAAK,SAGjDD,EAAeM,SAAW,CAAEO,GAE5B,MAAMC,EAAkClC,EAAKiB,QAAQH,EAAgC,CACnFI,SAAUhB,EACVqB,UAAW,OACXE,OAAQzB,EAAKiB,QAAQa,EAAmB,CAAET,IAAK,WAG3Cc,EAAkCnC,EAAKiB,QAAQH,EAAgC,CACnFI,SAAUhB,EACVqB,UAAW,SAGPa,EAA0BpC,EAAKiB,QAAQH,EAAgC,CAC3ES,UAAW,OACXL,SAAUhB,EACVuB,OAAQzB,EAAKiB,QAAQa,EAAmB,CAAET,IAAK,WAYjD,MAAO,CACLgB,KAAM,aACNC,QAAS,CACP,MACA,WACA,kBACA,YAEFC,kBAAkB,EAClBC,YAAa,MACbd,SAAU,CAnBsC,CAChDX,MAAO,SACP0B,MAAM,GAEiD,CACvD1B,MAAO,eACP0B,MAAM,GAgBJzC,EAAK0C,QAAQ,UAAW,UACxB1C,EAAK0C,QAAQ,QAAS,QACtB,CAEEnB,UAAW,eACXR,MAAO,iBACPM,IAAK,WACLK,SAAU,CAAEQ,GACZT,OAAQ,CACNJ,IAAK,aACLW,WAAW,EACXQ,YAAa,QAGjB,CAEEjB,UAAW,eACXR,MAAO,aACPM,IAAK,WACLK,SAAU,CAAES,IAEd,CAEEZ,UAAW,eACXR,MAAO,QACPM,IAAK,OACLK,SAAU,CAAEQ,IAEd,CACEX,UAAW,eACXR,MAAO,mBACPM,IAAK,OACLH,SAAU,QAEZ,CACEK,UAAW,eACXR,MAAO,kBACPM,IAAK,OACLH,SAAU,WAEZ,CAEEK,UAAW,eACXR,MAAO,SACPM,IAAK,OACLK,SAAU,CAAES,IAEd,CAEEZ,UAAW,oBACXR,MAAO,SACPM,IAAK,SACLK,SAAU,CAAEU,IAEd,CAEEb,UAAW,oBACXR,MAAO,OACPM,IAAK,OACLK,SAAU,CAAEU","sources":["webpack://telegram-t/./node_modules/highlight.js/lib/languages/handlebars.js"],"sourcesContent":["/*\nLanguage: Handlebars\nRequires: xml.js\nAuthor: Robin Ward <robin.ward@gmail.com>\nDescription: Matcher for Handlebars as well as EmberJS additions.\nWebsite: https://handlebarsjs.com\nCategory: template\n*/\n\nfunction handlebars(hljs) {\n const regex = hljs.regex;\n const BUILT_INS = {\n $pattern: /[\\w.\\/]+/,\n built_in: [\n 'action',\n 'bindattr',\n 'collection',\n 'component',\n 'concat',\n 'debugger',\n 'each',\n 'each-in',\n 'get',\n 'hash',\n 'if',\n 'in',\n 'input',\n 'link-to',\n 'loc',\n 'log',\n 'lookup',\n 'mut',\n 'outlet',\n 'partial',\n 'query-params',\n 'render',\n 'template',\n 'textarea',\n 'unbound',\n 'unless',\n 'view',\n 'with',\n 'yield'\n ]\n };\n\n const LITERALS = {\n $pattern: /[\\w.\\/]+/,\n literal: [\n 'true',\n 'false',\n 'undefined',\n 'null'\n ]\n };\n\n // as defined in https://handlebarsjs.com/guide/expressions.html#literal-segments\n // this regex matches literal segments like ' abc ' or [ abc ] as well as helpers and paths\n // like a/b, ./abc/cde, and abc.bcd\n\n const DOUBLE_QUOTED_ID_REGEX = /\"\"|\"[^\"]+\"/;\n const SINGLE_QUOTED_ID_REGEX = /''|'[^']+'/;\n const BRACKET_QUOTED_ID_REGEX = /\\[\\]|\\[[^\\]]+\\]/;\n const PLAIN_ID_REGEX = /[^\\s!\"#%&'()*+,.\\/;<=>@\\[\\\\\\]^`{|}~]+/;\n const PATH_DELIMITER_REGEX = /(\\.|\\/)/;\n const ANY_ID = regex.either(\n DOUBLE_QUOTED_ID_REGEX,\n SINGLE_QUOTED_ID_REGEX,\n BRACKET_QUOTED_ID_REGEX,\n PLAIN_ID_REGEX\n );\n\n const IDENTIFIER_REGEX = regex.concat(\n regex.optional(/\\.|\\.\\/|\\//), // relative or absolute path\n ANY_ID,\n regex.anyNumberOfTimes(regex.concat(\n PATH_DELIMITER_REGEX,\n ANY_ID\n ))\n );\n\n // identifier followed by a equal-sign (without the equal sign)\n const HASH_PARAM_REGEX = regex.concat(\n '(',\n BRACKET_QUOTED_ID_REGEX, '|',\n PLAIN_ID_REGEX,\n ')(?==)'\n );\n\n const HELPER_NAME_OR_PATH_EXPRESSION = { begin: IDENTIFIER_REGEX };\n\n const HELPER_PARAMETER = hljs.inherit(HELPER_NAME_OR_PATH_EXPRESSION, { keywords: LITERALS });\n\n const SUB_EXPRESSION = {\n begin: /\\(/,\n end: /\\)/\n // the \"contains\" is added below when all necessary sub-modes are defined\n };\n\n const HASH = {\n // fka \"attribute-assignment\", parameters of the form 'key=value'\n className: 'attr',\n begin: HASH_PARAM_REGEX,\n relevance: 0,\n starts: {\n begin: /=/,\n end: /=/,\n starts: { contains: [\n hljs.NUMBER_MODE,\n hljs.QUOTE_STRING_MODE,\n hljs.APOS_STRING_MODE,\n HELPER_PARAMETER,\n SUB_EXPRESSION\n ] }\n }\n };\n\n const BLOCK_PARAMS = {\n // parameters of the form '{{#with x as | y |}}...{{/with}}'\n begin: /as\\s+\\|/,\n keywords: { keyword: 'as' },\n end: /\\|/,\n contains: [\n {\n // define sub-mode in order to prevent highlighting of block-parameter named \"as\"\n begin: /\\w+/ }\n ]\n };\n\n const HELPER_PARAMETERS = {\n contains: [\n hljs.NUMBER_MODE,\n hljs.QUOTE_STRING_MODE,\n hljs.APOS_STRING_MODE,\n BLOCK_PARAMS,\n HASH,\n HELPER_PARAMETER,\n SUB_EXPRESSION\n ],\n returnEnd: true\n // the property \"end\" is defined through inheritance when the mode is used. If depends\n // on the surrounding mode, but \"endsWithParent\" does not work here (i.e. it includes the\n // end-token of the surrounding mode)\n };\n\n const SUB_EXPRESSION_CONTENTS = hljs.inherit(HELPER_NAME_OR_PATH_EXPRESSION, {\n className: 'name',\n keywords: BUILT_INS,\n starts: hljs.inherit(HELPER_PARAMETERS, { end: /\\)/ })\n });\n\n SUB_EXPRESSION.contains = [ SUB_EXPRESSION_CONTENTS ];\n\n const OPENING_BLOCK_MUSTACHE_CONTENTS = hljs.inherit(HELPER_NAME_OR_PATH_EXPRESSION, {\n keywords: BUILT_INS,\n className: 'name',\n starts: hljs.inherit(HELPER_PARAMETERS, { end: /\\}\\}/ })\n });\n\n const CLOSING_BLOCK_MUSTACHE_CONTENTS = hljs.inherit(HELPER_NAME_OR_PATH_EXPRESSION, {\n keywords: BUILT_INS,\n className: 'name'\n });\n\n const BASIC_MUSTACHE_CONTENTS = hljs.inherit(HELPER_NAME_OR_PATH_EXPRESSION, {\n className: 'name',\n keywords: BUILT_INS,\n starts: hljs.inherit(HELPER_PARAMETERS, { end: /\\}\\}/ })\n });\n\n const ESCAPE_MUSTACHE_WITH_PRECEEDING_BACKSLASH = {\n begin: /\\\\\\{\\{/,\n skip: true\n };\n const PREVENT_ESCAPE_WITH_ANOTHER_PRECEEDING_BACKSLASH = {\n begin: /\\\\\\\\(?=\\{\\{)/,\n skip: true\n };\n\n return {\n name: 'Handlebars',\n aliases: [\n 'hbs',\n 'html.hbs',\n 'html.handlebars',\n 'htmlbars'\n ],\n case_insensitive: true,\n subLanguage: 'xml',\n contains: [\n ESCAPE_MUSTACHE_WITH_PRECEEDING_BACKSLASH,\n PREVENT_ESCAPE_WITH_ANOTHER_PRECEEDING_BACKSLASH,\n hljs.COMMENT(/\\{\\{!--/, /--\\}\\}/),\n hljs.COMMENT(/\\{\\{!/, /\\}\\}/),\n {\n // open raw block \"{{{{raw}}}} content not evaluated {{{{/raw}}}}\"\n className: 'template-tag',\n begin: /\\{\\{\\{\\{(?!\\/)/,\n end: /\\}\\}\\}\\}/,\n contains: [ OPENING_BLOCK_MUSTACHE_CONTENTS ],\n starts: {\n end: /\\{\\{\\{\\{\\//,\n returnEnd: true,\n subLanguage: 'xml'\n }\n },\n {\n // close raw block\n className: 'template-tag',\n begin: /\\{\\{\\{\\{\\//,\n end: /\\}\\}\\}\\}/,\n contains: [ CLOSING_BLOCK_MUSTACHE_CONTENTS ]\n },\n {\n // open block statement\n className: 'template-tag',\n begin: /\\{\\{#/,\n end: /\\}\\}/,\n contains: [ OPENING_BLOCK_MUSTACHE_CONTENTS ]\n },\n {\n className: 'template-tag',\n begin: /\\{\\{(?=else\\}\\})/,\n end: /\\}\\}/,\n keywords: 'else'\n },\n {\n className: 'template-tag',\n begin: /\\{\\{(?=else if)/,\n end: /\\}\\}/,\n keywords: 'else if'\n },\n {\n // closing block statement\n className: 'template-tag',\n begin: /\\{\\{\\//,\n end: /\\}\\}/,\n contains: [ CLOSING_BLOCK_MUSTACHE_CONTENTS ]\n },\n {\n // template variable or helper-call that is NOT html-escaped\n className: 'template-variable',\n begin: /\\{\\{\\{/,\n end: /\\}\\}\\}/,\n contains: [ BASIC_MUSTACHE_CONTENTS ]\n },\n {\n // template variable or helper-call that is html-escaped\n className: 'template-variable',\n begin: /\\{\\{/,\n end: /\\}\\}/,\n contains: [ BASIC_MUSTACHE_CONTENTS ]\n }\n ]\n };\n}\n\nmodule.exports = handlebars;\n"],"names":["module","exports","hljs","regex","BUILT_INS","$pattern","built_in","BRACKET_QUOTED_ID_REGEX","PLAIN_ID_REGEX","ANY_ID","either","IDENTIFIER_REGEX","concat","optional","anyNumberOfTimes","HASH_PARAM_REGEX","HELPER_NAME_OR_PATH_EXPRESSION","begin","HELPER_PARAMETER","inherit","keywords","literal","SUB_EXPRESSION","end","HASH","className","relevance","starts","contains","NUMBER_MODE","QUOTE_STRING_MODE","APOS_STRING_MODE","HELPER_PARAMETERS","keyword","returnEnd","SUB_EXPRESSION_CONTENTS","OPENING_BLOCK_MUSTACHE_CONTENTS","CLOSING_BLOCK_MUSTACHE_CONTENTS","BASIC_MUSTACHE_CONTENTS","name","aliases","case_insensitive","subLanguage","skip","COMMENT"],"sourceRoot":""} |