mirror of
https://github.com/danog/telegram-tt.git
synced 2024-12-02 17:48:34 +01:00
1 line
14 KiB
Plaintext
1 line
14 KiB
Plaintext
{"version":3,"file":"5588.56e673e74137435b5023.js","mappings":"sFA4eAA,EAAOC,QApeP,SAAcC,GACZ,MAAMC,EAAQD,EAAKC,MA8RbC,EAAgB,CACpB,YACA,kBACA,sBACA,OACA,gBACA,kBACA,WACA,iBACA,cACA,oBACA,wBACA,SACA,aACA,YACA,iBACA,qBACA,iBACA,cACA,UACA,QACA,mBACA,SACA,aACA,iBACA,iBACA,YACA,cACA,WACA,oBACA,WACA,YACA,WACA,oBACA,eACA,wBACA,oBACA,kBACA,cACA,oBACA,eACA,iBACA,qBACA,yBACA,SACA,gBACA,mBACA,uBACA,iBACA,SACA,gBACA,UACA,cACA,kBACA,WACA,wBACA,0BACA,cACA,aACA,YACA,UACA,YACA,UACA,SACA,WAGIC,EAAgBH,EAAKI,QACzB,OACA,OACA,CACEC,UAAW,EACXC,SAAU,CACR,CACEC,MAAO,SACPC,MAAO,sBAMTC,EAAU,CACdF,MAAO,OACPG,MAAO,aACPC,IAAK,IACLL,SAAU,CACR,CACEE,MAAO,iBACPD,MAAO,UAETP,EAAKY,sBAIHC,EAAoB,CACxB,QACA,QACA,SACA,cAGF,MAAO,CACLC,KAAM,OACNC,QAAS,CAAE,aACXC,SAAU,CACRC,SAAUjB,EAAKkB,SACfC,MAtYW,CACb,YACA,QACA,OACA,aACA,aACA,cACA,aAgYEC,KAlXU,CACZ,QACA,UACA,MACA,OACA,SACA,UACA,mBACA,UACA,cACA,aACA,SACA,0BACA,yBACA,iBACA,gBACA,QAmWEC,QA9Xe,CACjB,MACA,KACA,KACA,OACA,QACA,QACA,WACA,UAuXEC,SAzVc,CAChB,MACA,aACA,MACA,OACA,QACA,WACA,iBACA,wBACA,eACA,aACA,aACA,OACA,QACA,OACA,QACA,QACA,oBACA,qBACA,kBACA,2BACA,QACA,OACA,OACA,WACA,qBACA,SACA,MACA,OACA,sBACA,mBACA,OACA,MACA,OACA,eACA,YACA,gBACA,gBACA,gBACA,0BACA,sBACA,iBACA,cACA,cACA,qBACA,oBACA,WACA,UACA,OACA,WACA,cACA,WACA,kBACA,mBACA,MACA,OACA,MACA,OACA,QACA,OACA,oBACA,OACA,QACA,MACA,OACA,OACA,OACA,UACA,UACA,sBACA,WACA,SACA,WACA,OACA,wBACA,eACA,QACA,kBACA,WACA,WACA,eACA,gBACA,sBACA,oBACA,qBACA,MACA,UACA,cACA,YACA,WACA,aACA,UACA,cACA,SACA,SACA,aACA,cACA,QACA,UACA,QACA,SACA,kBACA,sBACA,uBACA,mBACA,UACA,YACA,MACA,QACA,YACA,kBACA,QACA,YACA,kBACA,eACA,wBACA,gBACA,qBACA,UACA,iCACA,uBACA,cACA,cACA,QACA,oBACA,WACA,aACA,sBACA,eACA,MACA,mBACA,uBACA,oBACA,wBACA,OACA,MACA,6BACA,8BACA,eACA,oCACA,oBACA,OACA,eACA,eACA,YACA,gBACA,sBACA,UACA,cACA,WACA,eACA,WACA,eACA,gBACA,oBACA,qBACA,iBACA,aACA,iBACA,kBACA,cACA,UACA,QACA,oBACA,MACA,QACA,OACA,OACA,OACA,OACA,YACA,YACA,YACA,iBACA,gBACA,WACA,OACA,aACA,SACA,YACA,aACA,iBACA,aACA,UACA,mBACA,QACA,MACA,OACA,mBACA,gBACA,4BACA,KACA,UACA,MACA,kBACA,OACA,OACA,UACA,WACA,YACA,mBACA,oBACA,OACA,SACA,mBACA,OACA,UACA,UACA,MACA,QACA,QACA,4BACA,OACA,MACA,OACA,SACA,aACA,SACA,cACA,cACA,aACA,YACA,gBACA,YACA,QACA,sBACA,kBACA,WACA,QACA,kBACA,WACA,cACA,kBACA,qBAkHAhB,SAAU,CACRN,EAAKY,oBACLH,EACAT,EAAKuB,kBACLpB,EACA,CACEI,MAAO,WACPC,MAAO,kCACPH,UAAW,GAEb,CACEG,MAAOP,EAAMuB,OAAO,UAAWvB,EAAMwB,UAAUZ,GAAoB,QACnEG,SAAUH,GAEZ,CACEN,MAAO,UACPC,MAAO,sBAET,CAEEA,MAAO,CACL,OACAP,EAAMwB,UAAUvB,GAChB,WACA,iBAEFK,MAAO,CACL,EAAG,WACH,EAAG,YAGP,CAEEA,MAAO,WACPS,SAAUd,EACVQ,MAAOT,EAAMuB,OAAO,MAAOvB,EAAMwB,UAAUvB,GAAgB,8DAE7D,CAEEQ,MAAO,CACL,IACA,MACAT,EAAMuB,OAAOvB,EAAMwB,UAAUvB,GAAgB,oBAE/CK,MAAO,CAAE,EAAG,aAEd,CAEEG,MAAO,CACL,IACA,wBACA,YAAcT,EAAMwB,UAAUvB,GAAiB,QAEjDK,MAAO,CAAE,EAAG,mBAEd,CAEEA,MAAO,iBACPG,MAAO,gEAET,CACEH,MAAO,SACPC,MAAOP,EAAMuB,OAQX,8DAGA,sCAEFnB,UAAW,GAEb,CACEE,MAAO,SACPG,MAAO,IACPC,IAAK","sources":["webpack://telegram-t/./node_modules/highlight.js/lib/languages/stan.js"],"sourcesContent":["/*\nLanguage: Stan\nDescription: The Stan probabilistic programming language\nAuthor: Sean Pinkney <sean.pinkney@gmail.com>\nWebsite: http://mc-stan.org/\nCategory: scientific\n*/\n\nfunction stan(hljs) {\n const regex = hljs.regex;\n // variable names cannot conflict with block identifiers\n const BLOCKS = [\n 'functions',\n 'model',\n 'data',\n 'parameters',\n 'quantities',\n 'transformed',\n 'generated'\n ];\n\n const STATEMENTS = [\n 'for',\n 'in',\n 'if',\n 'else',\n 'while',\n 'break',\n 'continue',\n 'return'\n ];\n\n const TYPES = [\n 'array',\n 'complex',\n 'int',\n 'real',\n 'vector',\n 'ordered',\n 'positive_ordered',\n 'simplex',\n 'unit_vector',\n 'row_vector',\n 'matrix',\n 'cholesky_factor_corr|10',\n 'cholesky_factor_cov|10',\n 'corr_matrix|10',\n 'cov_matrix|10',\n 'void'\n ];\n\n // to get the functions list\n // clone the [stan-docs repo](https://github.com/stan-dev/docs)\n // then cd into it and run this bash script https://gist.github.com/joshgoebel/dcd33f82d4059a907c986049893843cf\n //\n // the output files are\n // distributions_quoted.txt\n // functions_quoted.txt\n\n const FUNCTIONS = [\n 'Phi',\n 'Phi_approx',\n 'abs',\n 'acos',\n 'acosh',\n 'add_diag',\n 'algebra_solver',\n 'algebra_solver_newton',\n 'append_array',\n 'append_col',\n 'append_row',\n 'asin',\n 'asinh',\n 'atan',\n 'atan2',\n 'atanh',\n 'bessel_first_kind',\n 'bessel_second_kind',\n 'binary_log_loss',\n 'binomial_coefficient_log',\n 'block',\n 'cbrt',\n 'ceil',\n 'chol2inv',\n 'cholesky_decompose',\n 'choose',\n 'col',\n 'cols',\n 'columns_dot_product',\n 'columns_dot_self',\n 'conj',\n 'cos',\n 'cosh',\n 'cov_exp_quad',\n 'crossprod',\n 'csr_extract_u',\n 'csr_extract_v',\n 'csr_extract_w',\n 'csr_matrix_times_vector',\n 'csr_to_dense_matrix',\n 'cumulative_sum',\n 'determinant',\n 'diag_matrix',\n 'diag_post_multiply',\n 'diag_pre_multiply',\n 'diagonal',\n 'digamma',\n 'dims',\n 'distance',\n 'dot_product',\n 'dot_self',\n 'eigenvalues_sym',\n 'eigenvectors_sym',\n 'erf',\n 'erfc',\n 'exp',\n 'exp2',\n 'expm1',\n 'fabs',\n 'falling_factorial',\n 'fdim',\n 'floor',\n 'fma',\n 'fmax',\n 'fmin',\n 'fmod',\n 'gamma_p',\n 'gamma_q',\n 'generalized_inverse',\n 'get_imag',\n 'get_lp',\n 'get_real',\n 'head',\n 'hmm_hidden_state_prob',\n 'hmm_marginal',\n 'hypot',\n 'identity_matrix',\n 'inc_beta',\n 'int_step',\n 'integrate_1d',\n 'integrate_ode',\n 'integrate_ode_adams',\n 'integrate_ode_bdf',\n 'integrate_ode_rk45',\n 'inv',\n 'inv_Phi',\n 'inv_cloglog',\n 'inv_logit',\n 'inv_sqrt',\n 'inv_square',\n 'inverse',\n 'inverse_spd',\n 'is_inf',\n 'is_nan',\n 'lambert_w0',\n 'lambert_wm1',\n 'lbeta',\n 'lchoose',\n 'ldexp',\n 'lgamma',\n 'linspaced_array',\n 'linspaced_int_array',\n 'linspaced_row_vector',\n 'linspaced_vector',\n 'lmgamma',\n 'lmultiply',\n 'log',\n 'log1m',\n 'log1m_exp',\n 'log1m_inv_logit',\n 'log1p',\n 'log1p_exp',\n 'log_determinant',\n 'log_diff_exp',\n 'log_falling_factorial',\n 'log_inv_logit',\n 'log_inv_logit_diff',\n 'log_mix',\n 'log_modified_bessel_first_kind',\n 'log_rising_factorial',\n 'log_softmax',\n 'log_sum_exp',\n 'logit',\n 'machine_precision',\n 'map_rect',\n 'matrix_exp',\n 'matrix_exp_multiply',\n 'matrix_power',\n 'max',\n 'mdivide_left_spd',\n 'mdivide_left_tri_low',\n 'mdivide_right_spd',\n 'mdivide_right_tri_low',\n 'mean',\n 'min',\n 'modified_bessel_first_kind',\n 'modified_bessel_second_kind',\n 'multiply_log',\n 'multiply_lower_tri_self_transpose',\n 'negative_infinity',\n 'norm',\n 'not_a_number',\n 'num_elements',\n 'ode_adams',\n 'ode_adams_tol',\n 'ode_adjoint_tol_ctl',\n 'ode_bdf',\n 'ode_bdf_tol',\n 'ode_ckrk',\n 'ode_ckrk_tol',\n 'ode_rk45',\n 'ode_rk45_tol',\n 'one_hot_array',\n 'one_hot_int_array',\n 'one_hot_row_vector',\n 'one_hot_vector',\n 'ones_array',\n 'ones_int_array',\n 'ones_row_vector',\n 'ones_vector',\n 'owens_t',\n 'polar',\n 'positive_infinity',\n 'pow',\n 'print',\n 'prod',\n 'proj',\n 'qr_Q',\n 'qr_R',\n 'qr_thin_Q',\n 'qr_thin_R',\n 'quad_form',\n 'quad_form_diag',\n 'quad_form_sym',\n 'quantile',\n 'rank',\n 'reduce_sum',\n 'reject',\n 'rep_array',\n 'rep_matrix',\n 'rep_row_vector',\n 'rep_vector',\n 'reverse',\n 'rising_factorial',\n 'round',\n 'row',\n 'rows',\n 'rows_dot_product',\n 'rows_dot_self',\n 'scale_matrix_exp_multiply',\n 'sd',\n 'segment',\n 'sin',\n 'singular_values',\n 'sinh',\n 'size',\n 'softmax',\n 'sort_asc',\n 'sort_desc',\n 'sort_indices_asc',\n 'sort_indices_desc',\n 'sqrt',\n 'square',\n 'squared_distance',\n 'step',\n 'sub_col',\n 'sub_row',\n 'sum',\n 'svd_U',\n 'svd_V',\n 'symmetrize_from_lower_tri',\n 'tail',\n 'tan',\n 'tanh',\n 'target',\n 'tcrossprod',\n 'tgamma',\n 'to_array_1d',\n 'to_array_2d',\n 'to_complex',\n 'to_matrix',\n 'to_row_vector',\n 'to_vector',\n 'trace',\n 'trace_gen_quad_form',\n 'trace_quad_form',\n 'trigamma',\n 'trunc',\n 'uniform_simplex',\n 'variance',\n 'zeros_array',\n 'zeros_int_array',\n 'zeros_row_vector'\n ];\n\n const DISTRIBUTIONS = [\n 'bernoulli',\n 'bernoulli_logit',\n 'bernoulli_logit_glm',\n 'beta',\n 'beta_binomial',\n 'beta_proportion',\n 'binomial',\n 'binomial_logit',\n 'categorical',\n 'categorical_logit',\n 'categorical_logit_glm',\n 'cauchy',\n 'chi_square',\n 'dirichlet',\n 'discrete_range',\n 'double_exponential',\n 'exp_mod_normal',\n 'exponential',\n 'frechet',\n 'gamma',\n 'gaussian_dlm_obs',\n 'gumbel',\n 'hmm_latent',\n 'hypergeometric',\n 'inv_chi_square',\n 'inv_gamma',\n 'inv_wishart',\n 'lkj_corr',\n 'lkj_corr_cholesky',\n 'logistic',\n 'lognormal',\n 'multi_gp',\n 'multi_gp_cholesky',\n 'multi_normal',\n 'multi_normal_cholesky',\n 'multi_normal_prec',\n 'multi_student_t',\n 'multinomial',\n 'multinomial_logit',\n 'neg_binomial',\n 'neg_binomial_2',\n 'neg_binomial_2_log',\n 'neg_binomial_2_log_glm',\n 'normal',\n 'normal_id_glm',\n 'ordered_logistic',\n 'ordered_logistic_glm',\n 'ordered_probit',\n 'pareto',\n 'pareto_type_2',\n 'poisson',\n 'poisson_log',\n 'poisson_log_glm',\n 'rayleigh',\n 'scaled_inv_chi_square',\n 'skew_double_exponential',\n 'skew_normal',\n 'std_normal',\n 'student_t',\n 'uniform',\n 'von_mises',\n 'weibull',\n 'wiener',\n 'wishart'\n ];\n\n const BLOCK_COMMENT = hljs.COMMENT(\n /\\/\\*/,\n /\\*\\//,\n {\n relevance: 0,\n contains: [\n {\n scope: 'doctag',\n match: /@(return|param)/\n }\n ]\n }\n );\n\n const INCLUDE = {\n scope: 'meta',\n begin: /#include\\b/,\n end: /$/,\n contains: [\n {\n match: /[a-z][a-z-._]+/,\n scope: 'string'\n },\n hljs.C_LINE_COMMENT_MODE\n ]\n };\n\n const RANGE_CONSTRAINTS = [\n \"lower\",\n \"upper\",\n \"offset\",\n \"multiplier\"\n ];\n\n return {\n name: 'Stan',\n aliases: [ 'stanfuncs' ],\n keywords: {\n $pattern: hljs.IDENT_RE,\n title: BLOCKS,\n type: TYPES,\n keyword: STATEMENTS,\n built_in: FUNCTIONS\n },\n contains: [\n hljs.C_LINE_COMMENT_MODE,\n INCLUDE,\n hljs.HASH_COMMENT_MODE,\n BLOCK_COMMENT,\n {\n scope: 'built_in',\n match: /\\s(pi|e|sqrt2|log2|log10)(?=\\()/,\n relevance: 0\n },\n {\n match: regex.concat(/[<,]\\s*/, regex.either(...RANGE_CONSTRAINTS), /\\s*=/),\n keywords: RANGE_CONSTRAINTS\n },\n {\n scope: 'keyword',\n match: /\\btarget(?=\\s*\\+=)/,\n },\n {\n // highlights the 'T' in T[,] for only Stan language distributrions\n match: [\n /~\\s*/,\n regex.either(...DISTRIBUTIONS),\n /(?:\\(\\))/,\n /\\s*T(?=\\s*\\[)/\n ],\n scope: {\n 2: \"built_in\",\n 4: \"keyword\"\n }\n },\n {\n // highlights distributions that end with special endings\n scope: 'built_in',\n keywords: DISTRIBUTIONS,\n begin: regex.concat(/\\w*/, regex.either(...DISTRIBUTIONS), /(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\\s*[\\(.*\\)])/)\n },\n {\n // highlights distributions after ~\n begin: [\n /~/,\n /\\s*/,\n regex.concat(regex.either(...DISTRIBUTIONS), /(?=\\s*[\\(.*\\)])/)\n ],\n scope: { 3: \"built_in\" }\n },\n {\n // highlights user defined distributions after ~\n begin: [\n /~/,\n /\\s*\\w+(?=\\s*[\\(.*\\)])/,\n '(?!.*/\\b(' + regex.either(...DISTRIBUTIONS) + ')\\b)'\n ],\n scope: { 2: \"title.function\" }\n },\n {\n // highlights user defined distributions with special endings\n scope: 'title.function',\n begin: /\\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\\s*[\\(.*\\)])/\n },\n {\n scope: 'number',\n match: regex.concat(\n // Comes from @RunDevelopment accessed 11/29/2021 at\n // https://github.com/PrismJS/prism/blob/c53ad2e65b7193ab4f03a1797506a54bbb33d5a2/components/prism-stan.js#L56\n\n // start of big noncapture group which\n // 1. gets numbers that are by themselves\n // 2. numbers that are separated by _\n // 3. numbers that are separted by .\n /(?:\\b\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\B\\.\\d+(?:_\\d+)*)/,\n // grabs scientific notation\n // grabs complex numbers with i\n /(?:[eE][+-]?\\d+(?:_\\d+)*)?i?(?!\\w)/\n ),\n relevance: 0\n },\n {\n scope: 'string',\n begin: /\"/,\n end: /\"/\n }\n ]\n };\n}\n\nmodule.exports = stan;\n"],"names":["module","exports","hljs","regex","DISTRIBUTIONS","BLOCK_COMMENT","COMMENT","relevance","contains","scope","match","INCLUDE","begin","end","C_LINE_COMMENT_MODE","RANGE_CONSTRAINTS","name","aliases","keywords","$pattern","IDENT_RE","title","type","keyword","built_in","HASH_COMMENT_MODE","concat","either"],"sourceRoot":""} |