mirror of
https://github.com/jaywcjlove/wxmp.git
synced 2026-01-10 15:28:47 +08:00
2 lines
23 KiB
JavaScript
2 lines
23 KiB
JavaScript
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3632,8437],{3632:(t,e,r)=>{r.d(e,{pug:()=>l});var n=r(8437),i={"{":"}","(":")","[":"]"};function a(t){if("object"!=typeof t)return t;let e={};for(let r in t){let n=t[r];e[r]=n instanceof Array?n.slice():n}return e}class o{constructor(t){this.indentUnit=t,this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=n.Q2.startState(t),this.restOfLine="",this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag="",this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue="",this.indentOf=1/0,this.indentToken=""}copy(){var t=new o(this.indentUnit);return t.javaScriptLine=this.javaScriptLine,t.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,t.javaScriptArguments=this.javaScriptArguments,t.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,t.isInterpolating=this.isInterpolating,t.interpolationNesting=this.interpolationNesting,t.jsState=(n.Q2.copyState||a)(this.jsState),t.restOfLine=this.restOfLine,t.isIncludeFiltered=this.isIncludeFiltered,t.isEach=this.isEach,t.lastTag=this.lastTag,t.isAttrs=this.isAttrs,t.attrsNest=this.attrsNest.slice(),t.inAttributeName=this.inAttributeName,t.attributeIsType=this.attributeIsType,t.attrValue=this.attrValue,t.indentOf=this.indentOf,t.indentToken=this.indentToken,t}}function s(t,e){if(t.match("#{"))return e.isInterpolating=!0,e.interpolationNesting=0,"punctuation"}function u(t,e){if(t.match(/^:([\w\-]+)/))return f(t,e),"atom"}function c(t,e){if(e.isAttrs){if(i[t.peek()]&&e.attrsNest.push(i[t.peek()]),e.attrsNest[e.attrsNest.length-1]===t.peek())e.attrsNest.pop();else if(t.eat(")"))return e.isAttrs=!1,"punctuation";if(e.inAttributeName&&t.match(/^[^=,\)!]+/))return"="!==t.peek()&&"!"!==t.peek()||(e.inAttributeName=!1,e.jsState=n.Q2.startState(2),"script"===e.lastTag&&"type"===t.current().trim().toLowerCase()?e.attributeIsType=!0:e.attributeIsType=!1),"attribute";var r=n.Q2.token(t,e.jsState);if(0===e.attrsNest.length&&("string"===r||"variable"===r||"keyword"===r))try{return Function("","var x "+e.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),e.inAttributeName=!0,e.attrValue="",t.backUp(t.current().length),c(t,e)}catch(a){}return e.attrValue+=t.current(),r||!0}}function f(t,e){e.indentOf=t.indentation(),e.indentToken="string"}const l={startState:function(t){return new o(t)},copyState:function(t){return t.copy()},token:function(t,e){var r=function(t,e){if(t.sol()&&(e.restOfLine=""),e.restOfLine){t.skipToEnd();var r=e.restOfLine;return e.restOfLine="",r}}(t,e)||function(t,e){if(e.isInterpolating){if("}"===t.peek()){if(e.interpolationNesting--,e.interpolationNesting<0)return t.next(),e.isInterpolating=!1,"punctuation"}else"{"===t.peek()&&e.interpolationNesting++;return n.Q2.token(t,e.jsState)||!0}}(t,e)||function(t,e){if(e.isIncludeFiltered){var r=u(t,e);return e.isIncludeFiltered=!1,e.restOfLine="string",r}}(t,e)||function(t,e){if(e.isEach){if(t.match(/^ in\b/))return e.javaScriptLine=!0,e.isEach=!1,"keyword";if(t.sol()||t.eol())e.isEach=!1;else if(t.next()){for(;!t.match(/^ in\b/,!1)&&t.next(););return"variable"}}}(t,e)||c(t,e)||function(t,e){if(t.sol()&&(e.javaScriptLine=!1,e.javaScriptLineExcludesColon=!1),e.javaScriptLine){if(e.javaScriptLineExcludesColon&&":"===t.peek())return e.javaScriptLine=!1,void(e.javaScriptLineExcludesColon=!1);var r=n.Q2.token(t,e.jsState);return t.eol()&&(e.javaScriptLine=!1),r||!0}}(t,e)||function(t,e){if(e.javaScriptArguments)return 0===e.javaScriptArgumentsDepth&&"("!==t.peek()?void(e.javaScriptArguments=!1):("("===t.peek()?e.javaScriptArgumentsDepth++:")"===t.peek()&&e.javaScriptArgumentsDepth--,0===e.javaScriptArgumentsDepth?void(e.javaScriptArguments=!1):n.Q2.token(t,e.jsState)||!0)}(t,e)||function(t,e){if(e.mixinCallAfter)return e.mixinCallAfter=!1,t.match(/^\( *[-\w]+ *=/,!1)||(e.javaScriptArguments=!0,e.javaScriptArgumentsDepth=0),!0}(t,e)||function(t){if(t.match(/^yield\b/))return"keyword"}(t)||function(t){if(t.match(/^(?:doctype) *([^\n]+)?/))return"meta"}(t)||s(t,e)||function(t,e){if(t.match(/^case\b/))return e.javaScriptLine=!0,"keyword"}(t,e)||function(t,e){if(t.match(/^when\b/))return e.javaScriptLine=!0,e.javaScriptLineExcludesColon=!0,"keyword"}(t,e)||function(t){if(t.match(/^default\b/))return"keyword"}(t)||function(t,e){if(t.match(/^extends?\b/))return e.restOfLine="string","keyword"}(t,e)||function(t,e){if(t.match(/^append\b/))return e.restOfLine="variable","keyword"}(t,e)||function(t,e){if(t.match(/^prepend\b/))return e.restOfLine="variable","keyword"}(t,e)||function(t,e){if(t.match(/^block\b *(?:(prepend|append)\b)?/))return e.restOfLine="variable","keyword"}(t,e)||function(t,e){if(t.match(/^include\b/))return e.restOfLine="string","keyword"}(t,e)||function(t,e){if(t.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&t.match("include"))return e.isIncludeFiltered=!0,"keyword"}(t,e)||function(t,e){if(t.match(/^mixin\b/))return e.javaScriptLine=!0,"keyword"}(t,e)||function(t,e){return t.match(/^\+([-\w]+)/)?(t.match(/^\( *[-\w]+ *=/,!1)||(e.javaScriptArguments=!0,e.javaScriptArgumentsDepth=0),"variable"):t.match("+#{",!1)?(t.next(),e.mixinCallAfter=!0,s(t,e)):void 0}(t,e)||function(t,e){if(t.match(/^(if|unless|else if|else)\b/))return e.javaScriptLine=!0,"keyword"}(t,e)||function(t,e){if(t.match(/^(- *)?(each|for)\b/))return e.isEach=!0,"keyword"}(t,e)||function(t,e){if(t.match(/^while\b/))return e.javaScriptLine=!0,"keyword"}(t,e)||function(t,e){var r;if(r=t.match(/^(\w(?:[-:\w]*\w)?)\/?/))return e.lastTag=r[1].toLowerCase(),"tag"}(t,e)||u(t,e)||function(t,e){if(t.match(/^(!?=|-)/))return e.javaScriptLine=!0,"punctuation"}(t,e)||function(t){if(t.match(/^#([\w-]+)/))return"builtin"}(t)||function(t){if(t.match(/^\.([\w-]+)/))return"className"}(t)||function(t,e){if("("==t.peek())return t.next(),e.isAttrs=!0,e.attrsNest=[],e.inAttributeName=!0,e.attrValue="",e.attributeIsType=!1,"punctuation"}(t,e)||function(t,e){if(t.match(/^&attributes\b/))return e.javaScriptArguments=!0,e.javaScriptArgumentsDepth=0,"keyword"}(t,e)||function(t){if(t.sol()&&t.eatSpace())return"indent"}(t)||function(t,e){return t.match(/^(?:\| ?| )([^\n]+)/)?"string":t.match(/^(<[^\n]*)/,!1)?(f(t,e),t.skipToEnd(),e.indentToken):void 0}(t,e)||function(t,e){if(t.match(/^ *\/\/(-)?([^\n]*)/))return e.indentOf=t.indentation(),e.indentToken="comment","comment"}(t,e)||function(t){if(t.match(/^: */))return"colon"}(t)||function(t,e){if(t.eat("."))return f(t,e),"dot"}(t,e)||function(t){return t.next(),null}(t);return!0===r?null:r}}},8437:(t,e,r)=>{function n(t){var e,r,n=t.statementIndent,i=t.jsonld,a=t.json||i,o=t.typescript,s=t.wordCharacters||/[\w$\xa1-\uffff]/,u=function(){function t(t){return{type:t,style:"keyword"}}var e=t("keyword a"),r=t("keyword b"),n=t("keyword c"),i=t("keyword d"),a=t("operator"),o={type:"atom",style:"atom"};return{if:t("if"),while:e,with:e,else:r,do:r,try:r,finally:r,return:i,break:i,continue:i,new:t("new"),delete:n,void:n,throw:n,debugger:t("debugger"),var:t("var"),const:t("var"),let:t("var"),function:t("function"),catch:t("catch"),for:t("for"),switch:t("switch"),case:t("case"),default:t("default"),in:a,typeof:a,instanceof:a,true:o,false:o,null:o,undefined:o,NaN:o,Infinity:o,this:t("this"),class:t("class"),super:t("atom"),yield:n,export:t("export"),import:t("import"),extends:n,await:n}}(),c=/[+\-*&%=<>!?|~^@]/,f=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function l(t,n,i){return e=t,r=i,n}function d(t,e){var r,n=t.next();if('"'==n||"'"==n)return e.tokenize=(r=n,function(t,e){var n,a=!1;if(i&&"@"==t.peek()&&t.match(f))return e.tokenize=d,l("jsonld-keyword","meta");for(;null!=(n=t.next())&&(n!=r||a);)a=!a&&"\\"==n;return a||(e.tokenize=d),l("string","string")}),e.tokenize(t,e);if("."==n&&t.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return l("number","number");if("."==n&&t.match(".."))return l("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return l(n);if("="==n&&t.eat(">"))return l("=>","operator");if("0"==n&&t.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return l("number","number");if(/\d/.test(n))return t.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),l("number","number");if("/"==n)return t.eat("*")?(e.tokenize=p,p(t,e)):t.eat("/")?(t.skipToEnd(),l("comment","comment")):function(t,e,r){return e.tokenize==d&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(e.lastType)||"quasi"==e.lastType&&/\{\s*$/.test(t.string.slice(0,t.pos-(r||0)))}(t,e,1)?(function(t){for(var e,r=!1,n=!1;null!=(e=t.next());){if(!r){if("/"==e&&!n)return;"["==e?n=!0:n&&"]"==e&&(n=!1)}r=!r&&"\\"==e}}(t),t.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),l("regexp","string.special")):(t.eat("="),l("operator","operator",t.current()));if("`"==n)return e.tokenize=m,m(t,e);if("#"==n&&"!"==t.peek())return t.skipToEnd(),l("meta","meta");if("#"==n&&t.eatWhile(s))return l("variable","property");if("<"==n&&t.match("!--")||"-"==n&&t.match("->")&&!/\S/.test(t.string.slice(0,t.start)))return t.skipToEnd(),l("comment","comment");if(c.test(n))return">"==n&&e.lexical&&">"==e.lexical.type||(t.eat("=")?"!"!=n&&"="!=n||t.eat("="):/[<>*+\-|&?]/.test(n)&&(t.eat(n),">"==n&&t.eat(n))),"?"==n&&t.eat(".")?l("."):l("operator","operator",t.current());if(s.test(n)){t.eatWhile(s);var a=t.current();if("."!=e.lastType){if(u.propertyIsEnumerable(a)){var o=u[a];return l(o.type,o.style,a)}if("async"==a&&t.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return l("async","keyword",a)}return l("variable","variable",a)}}function p(t,e){for(var r,n=!1;r=t.next();){if("/"==r&&n){e.tokenize=d;break}n="*"==r}return l("comment","comment")}function m(t,e){for(var r,n=!1;null!=(r=t.next());){if(!n&&("`"==r||"$"==r&&t.eat("{"))){e.tokenize=d;break}n=!n&&"\\"==r}return l("quasi","string.special",t.current())}function v(t,e){e.fatArrowAt&&(e.fatArrowAt=null);var r=t.string.indexOf("=>",t.start);if(!(r<0)){if(o){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(t.string.slice(t.start,r));n&&(r=n.index)}for(var i=0,a=!1,u=r-1;u>=0;--u){var c=t.string.charAt(u),f="([{}])".indexOf(c);if(f>=0&&f<3){if(!i){++u;break}if(0==--i){"("==c&&(a=!0);break}}else if(f>=3&&f<6)++i;else if(s.test(c))a=!0;else if(/["'\/`]/.test(c))for(;;--u){if(0==u)return;if(t.string.charAt(u-1)==c&&"\\"!=t.string.charAt(u-2)){u--;break}}else if(a&&!i){++u;break}}a&&!i&&(e.fatArrowAt=u)}}var k={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function h(t,e,r,n,i,a){this.indented=t,this.column=e,this.type=r,this.prev=i,this.info=a,null!=n&&(this.align=n)}function y(t,e){for(var r=t.localVars;r;r=r.next)if(r.name==e)return!0;for(var n=t.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==e)return!0}var b={state:null,column:null,marked:null,cc:null};function w(){for(var t=arguments.length-1;t>=0;t--)b.cc.push(arguments[t])}function g(){return w.apply(null,arguments),!0}function x(t,e){for(var r=e;r;r=r.next)if(r.name==t)return!0;return!1}function j(e){var r=b.state;if(b.marked="def",r.context)if("var"==r.lexical.info&&r.context&&r.context.block){var n=S(e,r.context);if(null!=n)return void(r.context=n)}else if(!x(e,r.localVars))return void(r.localVars=new T(e,r.localVars));t.globalVars&&!x(e,r.globalVars)&&(r.globalVars=new T(e,r.globalVars))}function S(t,e){if(e){if(e.block){var r=S(t,e.prev);return r?r==e.prev?e:new L(r,e.vars,!0):null}return x(t,e.vars)?e:new L(e.prev,new T(t,e.vars),!1)}return null}function A(t){return"public"==t||"private"==t||"protected"==t||"abstract"==t||"readonly"==t}function L(t,e,r){this.prev=t,this.vars=e,this.block=r}function T(t,e){this.name=t,this.next=e}var N=new T("this",new T("arguments",null));function V(){b.state.context=new L(b.state.context,b.state.localVars,!1),b.state.localVars=N}function O(){b.state.context=new L(b.state.context,b.state.localVars,!0),b.state.localVars=null}function I(){b.state.localVars=b.state.context.vars,b.state.context=b.state.context.prev}function E(t,e){var r=function(){var r=b.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var i=r.lexical;i&&")"==i.type&&i.align;i=i.prev)n=i.indented;r.lexical=new h(n,b.stream.column(),t,null,r.lexical,e)};return r.lex=!0,r}function z(){var t=b.state;t.lexical.prev&&(")"==t.lexical.type&&(t.indented=t.lexical.indented),t.lexical=t.lexical.prev)}function C(t){return function e(r){return r==t?g():";"==t||"}"==r||")"==r||"]"==r?w():g(e)}}function $(t,e){return"var"==t?g(E("vardef",e),bt,C(";"),z):"keyword a"==t?g(E("form"),_,$,z):"keyword b"==t?g(E("form"),$,z):"keyword d"==t?b.stream.match(/^\s*$/,!1)?g():g(E("stat"),U,C(";"),z):"debugger"==t?g(C(";")):"{"==t?g(E("}"),O,nt,z,I):";"==t?g():"if"==t?("else"==b.state.lexical.info&&b.state.cc[b.state.cc.length-1]==z&&b.state.cc.pop()(),g(E("form"),_,$,z,At)):"function"==t?g(Vt):"for"==t?g(E("form"),O,Lt,$,I,z):"class"==t||o&&"interface"==e?(b.marked="keyword",g(E("form","class"==t?t:e),Ct,z)):"variable"==t?o&&"declare"==e?(b.marked="keyword",g($)):o&&("module"==e||"enum"==e||"type"==e)&&b.stream.match(/^\s*\w/,!1)?(b.marked="keyword","enum"==e?g(Gt):"type"==e?g(It,C("operator"),ut,C(";")):g(E("form"),wt,C("{"),E("}"),nt,z,z)):o&&"namespace"==e?(b.marked="keyword",g(E("form"),F,$,z)):o&&"abstract"==e?(b.marked="keyword",g($)):g(E("stat"),M):"switch"==t?g(E("form"),_,C("{"),E("}","switch"),O,nt,z,z,I):"case"==t?g(F,C(":")):"default"==t?g(C(":")):"catch"==t?g(E("form"),V,D,$,z,I):"export"==t?g(E("stat"),Qt,z):"import"==t?g(E("stat"),qt,z):"async"==t?g($):"@"==e?g(F,$):w(E("stat"),F,C(";"),z)}function D(t){if("("==t)return g(Et,C(")"))}function F(t,e){return q(t,e,!1)}function Q(t,e){return q(t,e,!0)}function _(t){return"("!=t?w():g(E(")"),U,C(")"),z)}function q(t,e,r){if(b.state.fatArrowAt==b.stream.start){var n=r?H:G;if("("==t)return g(V,E(")"),et(Et,")"),z,C("=>"),n,I);if("variable"==t)return w(V,wt,C("=>"),n,I)}var i=r?W:P;return k.hasOwnProperty(t)?g(i):"function"==t?g(Vt,i):"class"==t||o&&"interface"==e?(b.marked="keyword",g(E("form"),zt,z)):"keyword c"==t||"async"==t?g(r?Q:F):"("==t?g(E(")"),U,C(")"),z,i):"operator"==t||"spread"==t?g(r?Q:F):"["==t?g(E("]"),Zt,z,i):"{"==t?rt(X,"}",null,i):"quasi"==t?w(B,i):"new"==t?g(function(t){return function(e){return"."==e?g(t?K:J):"variable"==e&&o?g(kt,t?W:P):w(t?Q:F)}}(r)):g()}function U(t){return t.match(/[;\}\)\],]/)?w():w(F)}function P(t,e){return","==t?g(U):W(t,e,!1)}function W(t,e,r){var n=0==r?P:W,i=0==r?F:Q;return"=>"==t?g(V,r?H:G,I):"operator"==t?/\+\+|--/.test(e)||o&&"!"==e?g(n):o&&"<"==e&&b.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?g(E(">"),et(ut,">"),z,n):"?"==e?g(F,C(":"),i):g(i):"quasi"==t?w(B,n):";"!=t?"("==t?rt(Q,")","call",n):"."==t?g(R,n):"["==t?g(E("]"),U,C("]"),z,n):o&&"as"==e?(b.marked="keyword",g(ut,n)):"regexp"==t?(b.state.lastType=b.marked="operator",b.stream.backUp(b.stream.pos-b.stream.start-1),g(i)):void 0:void 0}function B(t,e){return"quasi"!=t?w():"${"!=e.slice(e.length-2)?g(B):g(U,Z)}function Z(t){if("}"==t)return b.marked="string.special",b.state.tokenize=m,g(B)}function G(t){return v(b.stream,b.state),w("{"==t?$:F)}function H(t){return v(b.stream,b.state),w("{"==t?$:Q)}function J(t,e){if("target"==e)return b.marked="keyword",g(P)}function K(t,e){if("target"==e)return b.marked="keyword",g(W)}function M(t){return":"==t?g(z,$):w(P,C(";"),z)}function R(t){if("variable"==t)return b.marked="property",g()}function X(t,e){return"async"==t?(b.marked="property",g(X)):"variable"==t||"keyword"==b.style?(b.marked="property","get"==e||"set"==e?g(Y):(o&&b.state.fatArrowAt==b.stream.start&&(r=b.stream.match(/^\s*:\s*/,!1))&&(b.state.fatArrowAt=b.stream.pos+r[0].length),g(tt))):"number"==t||"string"==t?(b.marked=i?"property":b.style+" property",g(tt)):"jsonld-keyword"==t?g(tt):o&&A(e)?(b.marked="keyword",g(X)):"["==t?g(F,it,C("]"),tt):"spread"==t?g(Q,tt):"*"==e?(b.marked="keyword",g(X)):":"==t?w(tt):void 0;var r}function Y(t){return"variable"!=t?w(tt):(b.marked="property",g(Vt))}function tt(t){return":"==t?g(Q):"("==t?w(Vt):void 0}function et(t,e,r){function n(i,a){if(r?r.indexOf(i)>-1:","==i){var o=b.state.lexical;return"call"==o.info&&(o.pos=(o.pos||0)+1),g(function(r,n){return r==e||n==e?w():w(t)},n)}return i==e||a==e?g():r&&r.indexOf(";")>-1?w(t):g(C(e))}return function(r,i){return r==e||i==e?g():w(t,n)}}function rt(t,e,r){for(var n=3;n<arguments.length;n++)b.cc.push(arguments[n]);return g(E(e,r),et(t,e),z)}function nt(t){return"}"==t?g():w($,nt)}function it(t,e){if(o){if(":"==t)return g(ut);if("?"==e)return g(it)}}function at(t,e){if(o&&(":"==t||"in"==e))return g(ut)}function ot(t){if(o&&":"==t)return b.stream.match(/^\s*\w+\s+is\b/,!1)?g(F,st,ut):g(ut)}function st(t,e){if("is"==e)return b.marked="keyword",g()}function ut(t,e){return"keyof"==e||"typeof"==e||"infer"==e||"readonly"==e?(b.marked="keyword",g("typeof"==e?Q:ut)):"variable"==t||"void"==e?(b.marked="type",g(vt)):"|"==e||"&"==e?g(ut):"string"==t||"number"==t||"atom"==t?g(vt):"["==t?g(E("]"),et(ut,"]",","),z,vt):"{"==t?g(E("}"),ft,z,vt):"("==t?g(et(mt,")"),ct,vt):"<"==t?g(et(ut,">"),ut):"quasi"==t?w(dt,vt):void 0}function ct(t){if("=>"==t)return g(ut)}function ft(t){return t.match(/[\}\)\]]/)?g():","==t||";"==t?g(ft):w(lt,ft)}function lt(t,e){return"variable"==t||"keyword"==b.style?(b.marked="property",g(lt)):"?"==e||"number"==t||"string"==t?g(lt):":"==t?g(ut):"["==t?g(C("variable"),at,C("]"),lt):"("==t?w(Ot,lt):t.match(/[;\}\)\],]/)?void 0:g()}function dt(t,e){return"quasi"!=t?w():"${"!=e.slice(e.length-2)?g(dt):g(ut,pt)}function pt(t){if("}"==t)return b.marked="string.special",b.state.tokenize=m,g(dt)}function mt(t,e){return"variable"==t&&b.stream.match(/^\s*[?:]/,!1)||"?"==e?g(mt):":"==t?g(ut):"spread"==t?g(mt):w(ut)}function vt(t,e){return"<"==e?g(E(">"),et(ut,">"),z,vt):"|"==e||"."==t||"&"==e?g(ut):"["==t?g(ut,C("]"),vt):"extends"==e||"implements"==e?(b.marked="keyword",g(ut)):"?"==e?g(ut,C(":"),ut):void 0}function kt(t,e){if("<"==e)return g(E(">"),et(ut,">"),z,vt)}function ht(){return w(ut,yt)}function yt(t,e){if("="==e)return g(ut)}function bt(t,e){return"enum"==e?(b.marked="keyword",g(Gt)):w(wt,it,jt,St)}function wt(t,e){return o&&A(e)?(b.marked="keyword",g(wt)):"variable"==t?(j(e),g()):"spread"==t?g(wt):"["==t?rt(xt,"]"):"{"==t?rt(gt,"}"):void 0}function gt(t,e){return"variable"!=t||b.stream.match(/^\s*:/,!1)?("variable"==t&&(b.marked="property"),"spread"==t?g(wt):"}"==t?w():"["==t?g(F,C("]"),C(":"),gt):g(C(":"),wt,jt)):(j(e),g(jt))}function xt(){return w(wt,jt)}function jt(t,e){if("="==e)return g(Q)}function St(t){if(","==t)return g(bt)}function At(t,e){if("keyword b"==t&&"else"==e)return g(E("form","else"),$,z)}function Lt(t,e){return"await"==e?g(Lt):"("==t?g(E(")"),Tt,z):void 0}function Tt(t){return"var"==t?g(bt,Nt):"variable"==t?g(Nt):w(Nt)}function Nt(t,e){return")"==t?g():";"==t?g(Nt):"in"==e||"of"==e?(b.marked="keyword",g(F,Nt)):w(F,Nt)}function Vt(t,e){return"*"==e?(b.marked="keyword",g(Vt)):"variable"==t?(j(e),g(Vt)):"("==t?g(V,E(")"),et(Et,")"),z,ot,$,I):o&&"<"==e?g(E(">"),et(ht,">"),z,Vt):void 0}function Ot(t,e){return"*"==e?(b.marked="keyword",g(Ot)):"variable"==t?(j(e),g(Ot)):"("==t?g(V,E(")"),et(Et,")"),z,ot,I):o&&"<"==e?g(E(">"),et(ht,">"),z,Ot):void 0}function It(t,e){return"keyword"==t||"variable"==t?(b.marked="type",g(It)):"<"==e?g(E(">"),et(ht,">"),z):void 0}function Et(t,e){return"@"==e&&g(F,Et),"spread"==t?g(Et):o&&A(e)?(b.marked="keyword",g(Et)):o&&"this"==t?g(it,jt):w(wt,it,jt)}function zt(t,e){return"variable"==t?Ct(t,e):$t(t,e)}function Ct(t,e){if("variable"==t)return j(e),g($t)}function $t(t,e){return"<"==e?g(E(">"),et(ht,">"),z,$t):"extends"==e||"implements"==e||o&&","==t?("implements"==e&&(b.marked="keyword"),g(o?ut:F,$t)):"{"==t?g(E("}"),Dt,z):void 0}function Dt(t,e){return"async"==t||"variable"==t&&("static"==e||"get"==e||"set"==e||o&&A(e))&&b.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1)?(b.marked="keyword",g(Dt)):"variable"==t||"keyword"==b.style?(b.marked="property",g(Ft,Dt)):"number"==t||"string"==t?g(Ft,Dt):"["==t?g(F,it,C("]"),Ft,Dt):"*"==e?(b.marked="keyword",g(Dt)):o&&"("==t?w(Ot,Dt):";"==t||","==t?g(Dt):"}"==t?g():"@"==e?g(F,Dt):void 0}function Ft(t,e){if("!"==e||"?"==e)return g(Ft);if(":"==t)return g(ut,jt);if("="==e)return g(Q);var r=b.state.lexical.prev;return w(r&&"interface"==r.info?Ot:Vt)}function Qt(t,e){return"*"==e?(b.marked="keyword",g(Bt,C(";"))):"default"==e?(b.marked="keyword",g(F,C(";"))):"{"==t?g(et(_t,"}"),Bt,C(";")):w($)}function _t(t,e){return"as"==e?(b.marked="keyword",g(C("variable"))):"variable"==t?w(Q,_t):void 0}function qt(t){return"string"==t?g():"("==t?w(F):"."==t?w(P):w(Ut,Pt,Bt)}function Ut(t,e){return"{"==t?rt(Ut,"}"):("variable"==t&&j(e),"*"==e&&(b.marked="keyword"),g(Wt))}function Pt(t){if(","==t)return g(Ut,Pt)}function Wt(t,e){if("as"==e)return b.marked="keyword",g(Ut)}function Bt(t,e){if("from"==e)return b.marked="keyword",g(F)}function Zt(t){return"]"==t?g():w(et(Q,"]"))}function Gt(){return w(E("form"),wt,C("{"),E("}"),et(Ht,"}"),z,z)}function Ht(){return w(wt,jt)}return V.lex=O.lex=!0,I.lex=!0,z.lex=!0,{name:t.name,startState:function(e){var r={tokenize:d,lastType:"sof",cc:[],lexical:new h(-e,0,"block",!1),localVars:t.localVars,context:t.localVars&&new L(null,null,!1),indented:0};return t.globalVars&&"object"==typeof t.globalVars&&(r.globalVars=t.globalVars),r},token:function(t,n){if(t.sol()&&(n.lexical.hasOwnProperty("align")||(n.lexical.align=!1),n.indented=t.indentation(),v(t,n)),n.tokenize!=p&&t.eatSpace())return null;var i=n.tokenize(t,n);return"comment"==e?i:(n.lastType="operator"!=e||"++"!=r&&"--"!=r?e:"incdec",function(t,e,r,n,i){var o=t.cc;for(b.state=t,b.stream=i,b.marked=null,b.cc=o,b.style=e,t.lexical.hasOwnProperty("align")||(t.lexical.align=!0);;)if((o.length?o.pop():a?F:$)(r,n)){for(;o.length&&o[o.length-1].lex;)o.pop()();return b.marked?b.marked:"variable"==r&&y(t,n)?"variableName.local":e}}(n,i,e,r,t))},indent:function(e,r,i){if(e.tokenize==p||e.tokenize==m)return null;if(e.tokenize!=d)return 0;var a,o=r&&r.charAt(0),s=e.lexical;if(!/^\s*else\b/.test(r))for(var u=e.cc.length-1;u>=0;--u){var f=e.cc[u];if(f==z)s=s.prev;else if(f!=At&&f!=I)break}for(;("stat"==s.type||"form"==s.type)&&("}"==o||(a=e.cc[e.cc.length-1])&&(a==P||a==W)&&!/^[,\.=+\-*:?[\(]/.test(r));)s=s.prev;n&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var l=s.type,v=o==l;return"vardef"==l?s.indented+("operator"==e.lastType||","==e.lastType?s.info.length+1:0):"form"==l&&"{"==o?s.indented:"form"==l?s.indented+i.unit:"stat"==l?s.indented+(function(t,e){return"operator"==t.lastType||","==t.lastType||c.test(e.charAt(0))||/[,.]/.test(e.charAt(0))}(e,r)?n||i.unit:0):"switch"!=s.info||v||0==t.doubleIndentSwitch?s.align?s.column+(v?0:1):s.indented+(v?0:i.unit):s.indented+(/^(?:case|default)\b/.test(r)?i.unit:2*i.unit)},languageData:{indentOnInput:/^\s*(?:case .*?:|default:|\{|\})$/,commentTokens:a?void 0:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]},wordChars:"$"}}}r.d(e,{Q2:()=>i,jsonld:()=>a});const i=n({name:"javascript"}),a=(n({name:"json",json:!0}),n({name:"json",jsonld:!0}));n({name:"typescript",typescript:!0})}}]);
|
|
//# sourceMappingURL=3632.fd8e068e.chunk.js.map
|