-
Notifications
You must be signed in to change notification settings - Fork 1
/
src_assets_js_prettify_js.5a00cea0be5ff076.js
2 lines (2 loc) · 14.6 KB
/
src_assets_js_prettify_js.5a00cea0be5ff076.js
1
2
(self.webpackChunksite=self.webpackChunksite||[]).push([["src_assets_js_prettify_js"],{312:()=>{window.PR_SHOULD_USE_CONTINUATION=!0,function(){function j(t,u,p,a,v){p&&(a(t={h:t,l:1,j:null,m:null,a:p,c:null,i:u,g:null}),v.push.apply(v,t.g))}function k(t){for(var a=void 0,u=t.firstChild;u;u=u.nextSibling){var p=u.nodeType;a=1===p?a?t:u:3===p&&B.test(u.nodeValue)?t:a}return a===t?void 0:a}function R(t,u){var v,a={};!function(){for(var y=t.concat(u),m=[],o={},n=0,d=y.length;n<d;++n){var S=y[n],b=S[3];if(b)for(var e=b.length;0<=--e;)a[b.charAt(e)]=S;o.hasOwnProperty(b=""+(S=S[1]))||(m.push(S),o[b]=null)}m.push(/[\0-\uffff]/),v=function G(t){function u(e){var f=e.charCodeAt(0);if(92!==f)return f;var s=e.charAt(1);return(f=S[s])?f:"0"<=s&&"7">=s?parseInt(e.substring(1),8):"u"===s||"x"===s?parseInt(e.substring(2),16):e.charCodeAt(1)}function p(e){return 32>e?(16>e?"\\x0":"\\x")+e.toString(16):"\\"===(e=String.fromCharCode(e))||"-"===e||"]"===e||"^"===e?"\\"+e:e}function a(e){var f=e.substring(1,e.length-1).match(/\\u[0-9A-Fa-f]{4}|\\x[0-9A-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\s\S]|-|[^-\\]/g);e=[];var c=["["];(s="^"===f[0])&&c.push("^");for(var s=s?1:0,l=f.length;s<l;++s)if(/\\[bdsw]/i.test(i=f[s]))c.push(i);else{var r,i=u(i);s+2<l&&"-"===f[s+1]?(r=u(f[s+2]),s+=2):r=i,e.push([i,r]),65>r||122<i||(65>r||90<i||e.push([32|Math.max(65,i),32|Math.min(r,90)]),97>r||122<i||e.push([-33&Math.max(97,i),-33&Math.min(r,122)]))}for(e.sort(function(h,g){return h[0]-g[0]||g[1]-h[1]}),f=[],l=[],s=0;s<e.length;++s)(i=e[s])[0]<=l[1]+1?l[1]=Math.max(l[1],i[1]):f.push(l=i);for(s=0;s<f.length;++s)c.push(p((i=f[s])[0])),i[1]>i[0]&&(i[1]+1>i[0]&&c.push("-"),c.push(p(i[1])));return c.push("]"),c.join("")}function v(e){for(var f=e.source.match(/(?:\[(?:[^\x5C\x5D]|\\[\s\S])*\]|\\u[A-Fa-f0-9]{4}|\\x[A-Fa-f0-9]{2}|\\[0-9]+|\\[^ux0-9]|\(\?[:!=]|[\(\)\^]|[^\x5B\x5C\(\)\^]+)/g),s=f.length,c=[],l=0,i=0;l<s;++l){var r=f[l];"("===r?++i:"\\"===r.charAt(0)&&(r=+r.substring(1))&&(r<=i?c[r]=-1:f[l]=p(r))}for(l=1;l<c.length;++l)-1===c[l]&&(c[l]=++x);for(i=l=0;l<s;++l)"("===(r=f[l])?c[++i]||(f[l]="(?:"):"\\"===r.charAt(0)&&(r=+r.substring(1))&&r<=i&&(f[l]="\\"+c[r]);for(l=0;l<s;++l)"^"===f[l]&&"^"!==f[l+1]&&(f[l]="");if(e.ignoreCase&&y)for(l=0;l<s;++l)e=(r=f[l]).charAt(0),2<=r.length&&"["===e?f[l]=a(r):"\\"!==e&&(f[l]=r.replace(/[a-zA-Z]/g,function(h){return h=h.charCodeAt(0),"["+String.fromCharCode(-33&h,32|h)+"]"}));return f.join("")}for(var x=0,y=!1,m=!1,o=0,n=t.length;o<n;++o){var d=t[o];if(d.ignoreCase)m=!0;else if(/[a-z]/i.test(d.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){y=!0,m=!1;break}}var S={b:8,t:9,n:10,v:11,f:12,r:13},b=[];for(o=0,n=t.length;o<n;++o){if((d=t[o]).global||d.multiline)throw Error(""+d);b.push("(?:"+v(d)+")")}return new RegExp(b.join("|"),m?"gi":"g")}(m)}();var x=u.length;return function p(y){for(var m=y.i,o=y.h,n=[m,"pln"],d=0,S=y.a.match(v)||[],b={},e=0,f=S.length;e<f;++e){var i,s=S[e],c=b[s],l=void 0;if("string"==typeof c)i=!1;else{var r=a[s.charAt(0)];if(r)l=s.match(r[1]),c=r[0];else{for(i=0;i<x;++i)if(l=s.match((r=u[i])[1])){c=r[0];break}l||(c="pln")}!(i=5<=c.length&&"lang-"===c.substring(0,5))||l&&"string"==typeof l[1]||(i=!1,c="src"),i||(b[s]=c)}if(r=d,d+=s.length,i){var h=s.indexOf(i=l[1]),g=h+i.length;l[2]&&(h=(g=s.length-l[2].length)-i.length),c=c.substring(5),j(o,m+r,s.substring(0,h),p,n),j(o,m+r+h,i,M(c,i),n),j(o,m+r+g,s.substring(g),p,n)}else n.push(m+r,c)}y.g=n}}function T(t){var u=[],p=[];u.push(t.tripleQuotedStrings?["str",/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""]:t.multiLineStrings?["str",/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]:["str",/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"]),t.verbatimStrings&&p.push(["str",/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var a=t.hashComments;if(a&&(t.cStyleComments?(u.push(1<a?["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]:["com",/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),p.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):u.push(["com",/^#[^\r\n]*/,null,"#"])),t.cStyleComments&&(p.push(["com",/^\/\/[^\r\n]*/,null]),p.push(["com",/^\/\*[\s\S]*?(?:\*\/|$)/,null])),a=t.regexLiterals){var v=(a=1<a?"":"\n\r")?".":"[\\S\\s]";p.push(["lang-regex",RegExp("^(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*(/(?=[^/*"+a+"])(?:[^/\\x5B\\x5C"+a+"]|\\x5C"+v+"|\\x5B(?:[^\\x5C\\x5D"+a+"]|\\x5C"+v+")*(?:\\x5D|$))+/)")])}return(a=t.types)&&p.push(["typ",a]),(a=(""+t.keywords).replace(/^ | $/g,"")).length&&p.push(["kwd",new RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),null]),u.push(["pln",/^\s+/,null," \r\n\t\xa0"]),a="^.[^\\s\\w.$@'\"`/\\\\]*",t.regexLiterals&&(a+="(?!s*/)"),p.push(["lit",/^@[a-z_$][a-z_$@0-9]*/i,null],["typ",/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],["pln",/^[a-z_$][a-z_$@0-9]*/i,null],["lit",/^(?:0x[a-f0-9]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+\-]?\d+)?)[a-z]*/i,null,"0123456789"],["pln",/^\\[\s\S]?/,null],["pun",new RegExp(a),null]),R(u,p)}function O(t,u,p){function a(e){var f=e.nodeType;if(1!=f||x.test(e.className)){if((3==f||4==f)&&p){var s=e.nodeValue,c=s.match(y);c&&(f=s.substring(0,c.index),e.nodeValue=f,(s=s.substring(c.index+c[0].length))&&e.parentNode.insertBefore(m.createTextNode(s),e.nextSibling),v(e),f||e.parentNode.removeChild(e))}}else if("br"===e.nodeName)v(e),e.parentNode&&e.parentNode.removeChild(e);else for(e=e.firstChild;e;e=e.nextSibling)a(e)}function v(e){for(;!e.nextSibling;)if(!(e=e.parentNode))return;e=function f(c,l){var i=l?c.cloneNode(!1):c;if(r=c.parentNode){var r=f(r,1),h=c.nextSibling;r.appendChild(i);for(var g=h;g;g=h)h=g.nextSibling,r.appendChild(g)}return i}(e.nextSibling,0);for(var s;(s=e.parentNode)&&1===s.nodeType;)e=s;n.push(e)}for(var x=/(?:^|\s)nocode(?:\s|$)/,y=/\r\n?|\n/,m=t.ownerDocument,o=m.createElement("li");t.firstChild;)o.appendChild(t.firstChild);for(var n=[o],d=0;d<n.length;++d)a(n[d]);u===(0|u)&&n[0].setAttribute("value",u);var S=m.createElement("ol");S.className="linenums",u=Math.max(0,u-1|0)||0,d=0;for(var b=n.length;d<b;++d)(o=n[d]).className="L"+(d+u)%10,o.firstChild||o.appendChild(m.createTextNode("\xa0")),S.appendChild(o);t.appendChild(S)}function _(t,u){for(var p=u.length;0<=--p;){var a=u[p];I.hasOwnProperty(a)?E.console&&console.warn("cannot override language handler %s",a):I[a]=t}}function M(t,u){return t&&I.hasOwnProperty(t)||(t=/^\s*</.test(u)?"default-markup":"default-code"),I[t]}function D(t){var u=t.j;try{var x=function Q(t,u){var a=/(?:^|\s)nocode(?:\s|$)/,v=[],x=0,y=[],m=0;return function p(o){var n=o.nodeType;if(1==n){if(!a.test(o.className)){for(n=o.firstChild;n;n=n.nextSibling)p(n);("br"===(n=o.nodeName.toLowerCase())||"li"===n)&&(v[m]="\n",y[m<<1]=x++,y[m++<<1|1]=o)}}else(3==n||4==n)&&(n=o.nodeValue).length&&(n=u?n.replace(/\r\n?/g,"\n"):n.replace(/[ \t\r\n]+/g," "),v[m]=n,y[m<<1]=x,x+=n.length,y[m++<<1|1]=o)}(t),{a:v.join("").replace(/\n$/,""),c:y}}(t.h,t.l);t.a=o=x.a,t.c=x.c,t.i=0,M(u,o)(t);var b,e,p=(p=/\bMSIE\s(\d+)/.exec(navigator.userAgent))&&8>=+p[1],a=(u=/\n/g,t.a),v=a.length,y=(x=0,t.c),m=y.length,o=0,n=t.g,d=n.length,S=0;for(n[d]=v,e=b=0;e<d;)n[e]!==n[e+2]?(n[b++]=n[e++],n[b++]=n[e++]):e+=2;for(d=b,e=b=0;e<d;){for(var f=n[e],s=n[e+1],c=e+2;c+2<=d&&n[c+1]===s;)c+=2;n[b++]=f,n[b++]=s,e=c}n.length=b;var l=t.h;t="",l&&(t=l.style.display,l.style.display="none");try{for(;o<m;){var g,i=y[o+2]||v,r=n[S+2]||v,h=(c=Math.min(i,r),y[o+1]);if(1!==h.nodeType&&(g=a.substring(x,c))){p&&(g=g.replace(u,"\r")),h.nodeValue=g;var N=h.ownerDocument,w=N.createElement("span");w.className=n[S+1];var P=h.parentNode;P.replaceChild(w,h),w.appendChild(h),x<i&&(y[o+1]=h=N.createTextNode(a.substring(c,i)),P.insertBefore(h,w.nextSibling))}(x=c)>=i&&(o+=2),x>=r&&(S+=2)}}finally{l&&(l.style.display=t)}}catch(C){E.console&&console.log(C&&C.stack||C)}}var A,$,E=window,U=[A=[[$=["break,continue,do,else,for,if,return,while"],"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],V=[A,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],F=[$,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],H=[$,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],z=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,B=/\S/,Y=T({keywords:[L=[A,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],V,U,A=[A,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",F,H,$=[$,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"]],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),I={};_(Y,["default-code"]),_(R([],[["pln",/^[^<?]+/],["dec",/^<!\w[^>]*(?:>|$)/],["com",/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),"default-markup htm html mxml xhtml xml xsl".split(" ")),_(R([["pln",/^[\s]+/,null," \t\r\n"],["atv",/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],["pun",/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),_(R([],[["atv",/^[\s\S]+/]]),["uq.val"]),_(T({keywords:L,hashComments:!0,cStyleComments:!0,types:z}),"c cc cpp cxx cyc m".split(" ")),_(T({keywords:"null,true,false"}),["json"]),_(T({keywords:V,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:z}),["cs"]),_(T({keywords:U,cStyleComments:!0}),["java"]),_(T({keywords:$,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),_(T({keywords:F,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),_(T({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),_(T({keywords:H,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),_(T({keywords:A,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),_(T({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),_(R([],[["str",/^[\s\S]+/]]),["regex"]);var L,Z=E.PR={createSimpleLexer:R,registerLangHandler:_,sourceDecorator:T,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:E.prettyPrintOne=function(t,u,p){p=p||!1,u=u||null;var a=document.createElement("div");return a.innerHTML="<pre>"+t+"</pre>",a=a.firstChild,p&&O(a,p,!0),D({j:u,m:p,h:a,l:1,a:null,i:null,c:null,g:null}),a.innerHTML},prettyPrint:E.prettyPrint=function(t,u){for(var a=(o=u||document.body).ownerDocument||document,o=[o.getElementsByTagName("pre"),o.getElementsByTagName("code"),o.getElementsByTagName("xmp")],v=[],x=0;x<o.length;++x)for(var y=0,m=o[x].length;y<m;++y)v.push(o[x][y]);o=null;var n=Date;n.now||(n={now:function(){return+new Date}});var d=0,S=/\blang(?:uage)?-([\w.]+)(?!\S)/,b=/\bprettyprint\b/,e=/\bprettyprinted\b/,f=/pre|xmp/i,s=/^code$/i,c=/^(?:pre|code|xmp)$/i,l={};!function p(){for(var i=E.PR_SHOULD_USE_CONTINUATION?n.now()+250:1/0;d<v.length&&n.now()<i;d++){for(var r=v[d],h=l,g=r;(g=g.previousSibling)&&((w=(7===(N=g.nodeType)||8===N)&&g.nodeValue)?/^\??prettify\b/.test(w):3===N&&!/\S/.test(g.nodeValue));)if(w){h={},w.replace(/\b(\w+)=([\w:.%+-]+)/g,function(J,K,W){h[K]=W});break}if(g=r.className,(h!==l||b.test(g))&&!e.test(g)){for(N=!1,w=r.parentNode;w;w=w.parentNode)if(c.test(w.tagName)&&w.className&&b.test(w.className)){N=!0;break}if(!N){var N,P;if(r.className+=" prettyprinted",(N=h.lang)||(!(N=g.match(S))&&(P=k(r))&&s.test(P.tagName)&&(N=P.className.match(S)),N&&(N=N[1])),f.test(r.tagName))w=1;else var C=a.defaultView,w=(w=(w=r.currentStyle)?w.whiteSpace:C&&C.getComputedStyle?C.getComputedStyle(r,null).getPropertyValue("white-space"):0)&&"pre"===w.substring(0,3);(C="true"===(C=h.linenums)||+C)||(C=!!(C=g.match(/\blinenums\b(?::(\d+))?/))&&(!C[1]||!C[1].length||+C[1])),C&&O(r,C,w),D({j:N,h:r,m:C,l:w,a:null,i:null,c:null,g:null})}}}d<v.length?E.setTimeout(p,250):"function"==typeof t&&t()}()}};"function"==typeof(L=E.define)&&L.amd&&L("google-code-prettify",[],function(){return Z})}()}}]);
//# sourceMappingURL=src_assets_js_prettify_js.5a00cea0be5ff076.js.map