From b64aeb82f2f6b171546ebcddad03938aef91faca Mon Sep 17 00:00:00 2001 From: jiawei686 <892001108@qq.com> Date: Thu, 14 Sep 2023 15:42:47 +0800 Subject: [PATCH] chore(release): v0.8.26 --- CHANGELOG.md | 7 + .../cherry-code-block-mermaid-plugin.d.ts | 35 +- .../cherry-code-block-mermaid-plugin.js | 4 +- .../cherry-code-block-plantuml-plugin.d.ts | 9 +- .../cherry-code-block-plantuml-plugin.js | 4 +- dist/cherry-markdown.core.common.d.ts | 6 +- dist/cherry-markdown.core.common.js | 4 +- dist/cherry-markdown.core.d.ts | 6 +- dist/cherry-markdown.core.js | 4 +- dist/cherry-markdown.css | 4951 +- dist/cherry-markdown.d.ts | 6 +- dist/cherry-markdown.engine.core.common.d.ts | 6 +- dist/cherry-markdown.engine.core.common.js | 4 +- dist/cherry-markdown.engine.core.d.ts | 6 +- dist/cherry-markdown.engine.core.esm.d.ts | 6 +- dist/cherry-markdown.engine.core.esm.js | 4 +- dist/cherry-markdown.engine.core.js | 4 +- dist/cherry-markdown.esm.d.ts | 6 +- dist/cherry-markdown.esm.js | 4 +- dist/cherry-markdown.js | 196214 ++++++++++++++- dist/cherry-markdown.js.map | 4 +- dist/cherry-markdown.min.css | 4 +- dist/cherry-markdown.min.d.ts | 6 +- dist/cherry-markdown.min.js | 4 +- dist/fonts/ch-icon.eot | Bin 130 -> 20200 bytes dist/fonts/ch-icon.svg | 273 +- dist/fonts/ch-icon.ttf | Bin 130 -> 20036 bytes dist/fonts/ch-icon.woff | Bin 130 -> 11652 bytes dist/fonts/ch-icon.woff2 | Bin 129 -> 9924 bytes package.json | 2 +- 30 files changed, 201510 insertions(+), 73 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 47cd4692..943f0bba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [0.8.26](https://github.com/Tencent/cherry-markdown/compare/v0.8.25...v0.8.26) (2023-09-14) + + +### Bug Fixes + +* **emphasis:** fix poor performance when matching across lines ([6246d87](https://github.com/Tencent/cherry-markdown/commit/6246d874f5cc7afc87dfa33fa8f7412ee79f3185)) + ### [0.8.25](https://github.com/Tencent/cherry-markdown/compare/v0.8.24...v0.8.25) (2023-09-05) diff --git a/dist/addons/cherry-code-block-mermaid-plugin.d.ts b/dist/addons/cherry-code-block-mermaid-plugin.d.ts index 81473856..7817883c 100644 --- a/dist/addons/cherry-code-block-mermaid-plugin.d.ts +++ b/dist/addons/cherry-code-block-mermaid-plugin.d.ts @@ -1,3 +1,32 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f7e94c0e0790e3a81858a2788b170845f35dbda7a081f4c5ad677482e7b27128 -size 930 +export default class MermaidCodeEngine { + static TYPE: string; + static install(cherryOptions: any, ...args: any[]): void; + constructor(mermaidOptions?: {}); + mermaidAPIRefs: any; + options: { + theme: string; + altFontFamily: string; + fontFamily: string; + themeCSS: string; + flowchart: { + useMaxWidth: boolean; + }; + sequence: { + useMaxWidth: boolean; + }; + startOnLoad: boolean; + logLevel: number; + }; + dom: any; + mermaidCanvas: any; + mountMermaidCanvas($engine: any): void; + /** + * 转换svg为img,如果出错则直出svg + * @param {string} svgCode + * @param {string} graphId + * @returns {string} + */ + convertMermaidSvgToImg(svgCode: string, graphId: string): string; + render(src: any, sign: any, $engine: any, config?: {}): any; + svg2img: any; +} diff --git a/dist/addons/cherry-code-block-mermaid-plugin.js b/dist/addons/cherry-code-block-mermaid-plugin.js index d69cd229..fa591445 100644 --- a/dist/addons/cherry-code-block-mermaid-plugin.js +++ b/dist/addons/cherry-code-block-mermaid-plugin.js @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:83db89a733ecf59476b8b5c629e3b30942371931c4cde47e3388339ac67e3d1b -size 44474 +!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):(t="undefined"!=typeof globalThis?globalThis:t||self).CherryCodeBlockMermaidPlugin=r()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function e(t,r){return t(r={exports:{}},r.exports),r.exports}function n(t){return t&&t.default||t}var o,i,a=function(t){return t&&t.Math===Math&&t},u=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),c=function(t){try{return!!t()}catch(t){return!0}},f=!c((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),s=f,l=Function.prototype,p=l.apply,v=l.call,y="object"==typeof Reflect&&Reflect.apply||(s?v.bind(p):function(){return v.apply(p,arguments)}),d=Function.prototype,h=d.call,b=s&&d.bind.bind(h,h),g=s?b:function(t){return function(){return h.apply(t,arguments)}},m=g,_=m({}.toString),O=m("".slice),w=function(t){return O(_(t),8,-1)},j="object"==typeof document&&document.all,S={all:j,IS_HTMLDDA:void 0===j&&void 0!==j},x=S.all,P=S.IS_HTMLDDA?function(t){return"function"==typeof t||t===x}:function(t){return"function"==typeof t},A=!c((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),T=Function.prototype.call,E=s?T.bind(T):function(){return T.apply(T,arguments)},M={}.propertyIsEnumerable,F=Object.getOwnPropertyDescriptor,I={f:F&&!M.call({1:2},1)?function(t){var r=F(this,t);return!!r&&r.enumerable}:M},L=Object,C=m("".split),k=c((function(){return!L("z").propertyIsEnumerable(0)}))?function(t){return"String"===w(t)?C(t,""):L(t)}:L,D=function(t){return null==t},R=TypeError,z=k,N=function(t){if(D(t))throw R("Can't call method on "+t);return t},B=P,G=S.all,U=S.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:B(t)||t===G}:function(t){return"object"==typeof t?null!==t:B(t)},W={},V=u,$=function(t){return B(t)?t:void 0},H=m({}.isPrototypeOf),K="undefined"!=typeof navigator&&String(navigator.userAgent)||"",q=V.process,J=V.Deno,Y=q&&q.versions||J&&J.version,X=Y&&Y.v8;X&&(i=(o=X.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!i&&K&&(!(o=K.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=K.match(/Chrome\/(\d+)/))&&(i=+o[1]);var Q=i,Z=V.String,tt=!!Object.getOwnPropertySymbols&&!c((function(){var t=Symbol("symbol detection");return!Z(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Q&&Q<41})),rt=tt,et=rt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,nt=function(t,r){return arguments.length<2?$(W[t])||$(V[t]):W[t]&&W[t][r]||V[t]&&V[t][r]},ot=H,it=et,at=Object,ut=it?function(t){return"symbol"==typeof t}:function(t){var r=nt("Symbol");return B(r)&&ot(r.prototype,at(t))},ct=String,ft=function(t){try{return ct(t)}catch(t){return"Object"}},st=TypeError,lt=function(t){if(B(t))return t;throw st(ft(t)+" is not a function")},pt=E,vt=U,yt=TypeError,dt=Object.defineProperty,ht=function(t,r){try{dt(V,t,{value:r,configurable:!0,writable:!0})}catch(e){V[t]=r}return r},bt="__core-js_shared__",gt=V[bt]||ht(bt,{}),mt=gt,_t=e((function(t){(t.exports=function(t,r){return mt[t]||(mt[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.32.1",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),Ot=Object,wt=function(t){return Ot(N(t))},jt=m({}.hasOwnProperty),St=Object.hasOwn||function(t,r){return jt(wt(t),r)},xt=0,Pt=Math.random(),At=m(1..toString),Tt=_t,Et=St,Mt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+At(++xt+Pt,36)},Ft=V.Symbol,It=Tt("wks"),Lt=it?Ft.for||Ft:Ft&&Ft.withoutSetter||Mt,Ct=ut,kt=function(t,r){var e=t[r];return D(e)?void 0:lt(e)},Dt=function(t,r){var e,n;if("string"===r&&B(e=t.toString)&&!vt(n=pt(e,t)))return n;if(B(e=t.valueOf)&&!vt(n=pt(e,t)))return n;if("string"!==r&&B(e=t.toString)&&!vt(n=pt(e,t)))return n;throw yt("Can't convert object to primitive value")},Rt=function(t){return Et(It,t)||(It[t]=rt&&Et(Ft,t)?Ft[t]:Lt("Symbol."+t)),It[t]},zt=TypeError,Nt=Rt("toPrimitive"),Bt=function(t,r){if(!vt(t)||Ct(t))return t;var e,n=kt(t,Nt);if(n){if(void 0===r&&(r="default"),e=pt(n,t,r),!vt(e)||Ct(e))return e;throw zt("Can't convert object to primitive value")}return void 0===r&&(r="number"),Dt(t,r)},Gt=V.document,Ut=vt(Gt)&&vt(Gt.createElement),Wt=A,Vt=function(t){return Ut?Gt.createElement(t):{}},$t=!Wt&&!c((function(){return 7!==Object.defineProperty(Vt("div"),"a",{get:function(){return 7}}).a})),Ht=I,Kt=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},qt=function(t){return z(N(t))},Jt=function(t){var r=Bt(t,"string");return Ct(r)?r:r+""},Yt=$t,Xt=Object.getOwnPropertyDescriptor,Qt={f:Wt?Xt:function(t,r){if(t=qt(t),r=Jt(r),Yt)try{return Xt(t,r)}catch(t){}if(Et(t,r))return Kt(!pt(Ht.f,t,r),t[r])}},Zt=/#|\.prototype\./,tr=function(t,r){var e=er[rr(t)];return e===or||e!==nr&&(B(r)?c(r):!!r)},rr=tr.normalize=function(t){return String(t).replace(Zt,".").toLowerCase()},er=tr.data={},nr=tr.NATIVE="N",or=tr.POLYFILL="P",ir=tr,ar=function(t){if("Function"===w(t))return m(t)},ur=ar(ar.bind),cr=Wt&&c((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),fr=String,sr=TypeError,lr=cr,pr=function(t){if(vt(t))return t;throw sr(fr(t)+" is not an object")},vr=TypeError,yr=Object.defineProperty,dr=Object.getOwnPropertyDescriptor,hr="enumerable",br="configurable",gr="writable",mr={f:Wt?lr?function(t,r,e){if(pr(t),r=Jt(r),pr(e),"function"==typeof t&&"prototype"===r&&"value"in e&&gr in e&&!e[gr]){var n=dr(t,r);n&&n[gr]&&(t[r]=e.value,e={configurable:br in e?e[br]:n[br],enumerable:hr in e?e[hr]:n[hr],writable:!1})}return yr(t,r,e)}:yr:function(t,r,e){if(pr(t),r=Jt(r),pr(e),Yt)try{return yr(t,r,e)}catch(t){}if("get"in e||"set"in e)throw vr("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},_r=y,Or=Qt,wr=ir,jr=function(t,r){return lt(t),void 0===r?t:s?ur(t,r):function(){return t.apply(r,arguments)}},Sr=Wt?function(t,r,e){return mr.f(t,r,Kt(1,e))}:function(t,r,e){return t[r]=e,t},xr=Or.f,Pr=function(t){var r=function(e,n,o){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,o)}return _r(t,this,arguments)};return r.prototype=t.prototype,r},Ar=Math.ceil,Tr=Math.floor,Er=Math.trunc||function(t){var r=+t;return(r>0?Tr:Ar)(r)},Mr=function(t){var r=+t;return r!=r||0===r?0:Er(r)},Fr=Math.max,Ir=Math.min,Lr=Math.min,Cr=function(t){return t>0?Lr(Mr(t),9007199254740991):0},kr=function(t,r){var e=Mr(t);return e<0?Fr(e+r,0):Ir(e,r)},Dr=function(t){return Cr(t.length)},Rr=function(t){return function(r,e,n){var o,i=qt(r),a=Dr(i),u=kr(n,a);if(t&&e!=e){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===e)return t||u||0;return!t&&-1}},zr={includes:Rr(!0),indexOf:Rr(!1)},Nr={},Br=zr.indexOf,Gr=m([].push),Ur=function(t,r){var e,n=qt(t),o=0,i=[];for(e in n)!Et(Nr,e)&&Et(n,e)&&Gr(i,e);for(;r.length>o;)Et(n,e=r[o++])&&(~Br(i,e)||Gr(i,e));return i},Wr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Vr=Object.keys||function(t){return Ur(t,Wr)},$r=function(t,r){var e,n,o,i,a,u,c,f,s,l=t.target,p=t.global,v=t.stat,y=t.proto,d=p?V:v?V[l]:(V[l]||{}).prototype,h=p?W:W[l]||Sr(W,l,{})[l],b=h.prototype;for(i in r)n=!(e=wr(p?i:l+(v?".":"#")+i,t.forced))&&d&&Et(d,i),u=h[i],n&&(c=t.dontCallGetSet?(s=xr(d,i))&&s.value:d[i]),a=n&&c?c:r[i],n&&typeof u==typeof a||(f=t.bind&&n?jr(a,V):t.wrap&&n?Pr(a):y&&B(a)?ar(a):a,(t.sham||a&&a.sham||u&&u.sham)&&Sr(f,"sham",!0),Sr(h,i,f),y&&(Et(W,o=l+"Prototype")||Sr(W,o,{}),Sr(W[o],i,a),t.real&&b&&(e||!b[i])&&Sr(b,i,a)))},Hr=Vr,Kr=c((function(){Hr(1)}));$r({target:"Object",stat:!0,forced:Kr},{keys:function(t){return Hr(wt(t))}});var qr=W.Object.keys,Jr={};Jr[Rt("toStringTag")]="z";var Yr,Xr="[object z]"===String(Jr),Qr=Rt("toStringTag"),Zr=Object,te="Arguments"===w(function(){return arguments}()),re=Xr?w:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=Zr(t),Qr))?e:te?w(r):"Object"===(n=w(r))&&B(r.callee)?"Arguments":n},ee=String,ne=Wt&&!lr?Object.defineProperties:function(t,r){pr(t);for(var e,n=qt(r),o=Hr(r),i=o.length,a=0;i>a;)mr.f(t,e=o[a++],n[e]);return t},oe={f:ne},ie=nt("document","documentElement"),ae=Tt("keys"),ue=oe,ce=ie,fe=function(t){return ae[t]||(ae[t]=Mt(t))},se="prototype",le="script",pe=fe("IE_PROTO"),ve=function(){},ye=function(t){return"<"+le+">"+t+""},de=function(t){t.write(ye("")),t.close();var r=t.parentWindow.Object;return t=null,r},he=function(){try{Yr=new ActiveXObject("htmlfile")}catch(t){}var t,r,e;he="undefined"!=typeof document?document.domain&&Yr?de(Yr):(r=Vt("iframe"),e="java"+le+":",r.style.display="none",ce.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(ye("document.F=Object")),t.close(),t.F):de(Yr);for(var n=Wr.length;n--;)delete he[se][Wr[n]];return he()};Nr[pe]=!0;var be,ge,me,_e=Object.create||function(t,r){var e;return null!==t?(ve[se]=pr(t),e=new ve,ve[se]=null,e[pe]=t):e=he(),void 0===r?e:ue.f(e,r)},Oe=Wr.concat("length","prototype"),we={f:Object.getOwnPropertyNames||function(t){return Ur(t,Oe)}},je=function(t,r,e){var n=Jt(r);n in t?mr.f(t,n,Kt(0,e)):t[n]=e},Se=Array,xe=Math.max,Pe=we,Ae=function(t,r,e){for(var n=Dr(t),o=kr(r,n),i=kr(void 0===e?n:e,n),a=Se(xe(i-o,0)),u=0;og;g++)if((u||g in d)&&(v=h(p=d[g],g,y),t))if(r)_[g]=v;else if(v)switch(t){case 3:return!0;case 5:return p;case 6:return g;case 2:ln(_,p)}else switch(t){case 4:return!1;case 7:ln(_,p)}return i?-1:n||o?o:_}},vn={forEach:pn(0),map:pn(1),filter:pn(2),some:pn(3),every:pn(4),find:pn(5),findIndex:pn(6),filterReject:pn(7)},yn=function(t){if("Symbol"===re(t))throw TypeError("Cannot convert a Symbol value to a string");return ee(t)},dn=_e,hn=Me,bn=Fe,gn=function(t,r,e){return mr.f(t,r,e)},mn=function(t){var r=W.Symbol||(W.Symbol={});Et(r,t)||Le(r,t,{value:Ie.f(t)})},_n=function(){var t=nt("Symbol"),r=t&&t.prototype,e=r&&r.valueOf,n=Rt("toPrimitive");r&&!r[n]&&Ce(r,n,(function(t){return pt(e,this)}),{arity:1})},On=function(t,r,e,n){if(t){var o=e?t:t.prototype;Et(o,Re)||De(o,Re,{configurable:!0,value:r}),n&&!Xr&&Sr(o,"toString",ke)}},wn=$e,jn=vn,Sn=jn.forEach,xn=fe("hidden"),Pn="Symbol",An="prototype",Tn=wn.set,En=wn.getterFor(Pn),Mn=Object[An],Fn=V.Symbol,In=Fn&&Fn[An],Ln=V.TypeError,Cn=V.QObject,kn=Or.f,Dn=mr.f,Rn=hn.f,zn=Ht.f,Nn=m([].push),Bn=Tt("symbols"),Gn=Tt("op-symbols"),Un=Tt("wks"),Wn=!Cn||!Cn[An]||!Cn[An].findChild,Vn=Wt&&c((function(){return 7!==dn(Dn({},"a",{get:function(){return Dn(this,"a",{value:7}).a}})).a}))?function(t,r,e){var n=kn(Mn,r);n&&delete Mn[r],Dn(t,r,e),n&&t!==Mn&&Dn(Mn,r,n)}:Dn,$n=function(t,r){var e=Bn[t]=dn(In);return Tn(e,{type:Pn,tag:t,description:r}),Wt||(e.description=r),e},Hn=function(t,r,e){t===Mn&&Hn(Gn,r,e),pr(t);var n=Jt(r);return pr(e),Et(Bn,n)?(e.enumerable?(Et(t,xn)&&t[xn][n]&&(t[xn][n]=!1),e=dn(e,{enumerable:Kt(0,!1)})):(Et(t,xn)||Dn(t,xn,Kt(1,{})),t[xn][n]=!0),Vn(t,n,e)):Dn(t,n,e)},Kn=function(t,r){pr(t);var e=qt(r),n=Hr(e).concat(Xn(e));return Sn(n,(function(r){Wt&&!pt(qn,e,r)||Hn(t,r,e[r])})),t},qn=function(t){var r=Jt(t),e=pt(zn,this,r);return!(this===Mn&&Et(Bn,r)&&!Et(Gn,r))&&(!(e||!Et(this,r)||!Et(Bn,r)||Et(this,xn)&&this[xn][r])||e)},Jn=function(t,r){var e=qt(t),n=Jt(r);if(e!==Mn||!Et(Bn,n)||Et(Gn,n)){var o=kn(e,n);return!o||!Et(Bn,n)||Et(e,xn)&&e[xn][n]||(o.enumerable=!0),o}},Yn=function(t){var r=Rn(qt(t)),e=[];return Sn(r,(function(t){Et(Bn,t)||Et(Nr,t)||Nn(e,t)})),e},Xn=function(t){var r=t===Mn,e=Rn(r?Gn:qt(t)),n=[];return Sn(e,(function(t){!Et(Bn,t)||r&&!Et(Mn,t)||Nn(n,Bn[t])})),n};rt||(Fn=function(){if(ot(In,this))throw Ln("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?yn(arguments[0]):void 0,r=Mt(t),e=function(t){this===Mn&&pt(e,Gn,t),Et(this,xn)&&Et(this[xn],r)&&(this[xn][r]=!1),Vn(this,r,Kt(1,t))};return Wt&&Wn&&Vn(Mn,r,{configurable:!0,set:e}),$n(r,t)},In=Fn[An],Ce(In,"toString",(function(){return En(this).tag})),Ce(Fn,"withoutSetter",(function(t){return $n(Mt(t),t)})),Ht.f=qn,mr.f=Hn,ue.f=Kn,Or.f=Jn,Pe.f=hn.f=Yn,bn.f=Xn,Ie.f=function(t){return $n(Rt(t),t)},Wt&&gn(In,"description",{configurable:!0,get:function(){return En(this).description}})),$r({global:!0,constructor:!0,wrap:!0,forced:!rt,sham:!rt},{Symbol:Fn}),Sn(Hr(Un),(function(t){mn(t)})),$r({target:Pn,stat:!0,forced:!rt},{useSetter:function(){Wn=!0},useSimple:function(){Wn=!1}}),$r({target:"Object",stat:!0,forced:!rt,sham:!Wt},{create:function(t,r){return void 0===r?dn(t):Kn(dn(t),r)},defineProperty:Hn,defineProperties:Kn,getOwnPropertyDescriptor:Jn}),$r({target:"Object",stat:!0,forced:!rt},{getOwnPropertyNames:Yn}),_n(),On(Fn,Pn),Nr[xn]=!0;var Qn=rt&&!!Symbol.for&&!!Symbol.keyFor,Zn=Tt("string-to-symbol-registry"),to=Tt("symbol-to-string-registry");$r({target:"Symbol",stat:!0,forced:!Qn},{for:function(t){var r=yn(t);if(Et(Zn,r))return Zn[r];var e=nt("Symbol")(r);return Zn[r]=e,to[e]=r,e}});var ro=Tt("symbol-to-string-registry");$r({target:"Symbol",stat:!0,forced:!Qn},{keyFor:function(t){if(!Ct(t))throw TypeError(ft(t)+" is not a symbol");if(Et(ro,t))return ro[t]}});var eo=m([].slice),no=m([].push),oo=eo,io=function(t){if(B(t))return t;if(on(t)){for(var r=t.length,e=[],n=0;n=51||!c((function(){var r=[];return(r.constructor={})[jo]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},xo=jn.filter,Po=So("filter");$r({target:"Array",proto:!0,forced:!Po},{filter:function(t){return xo(this,t,arguments.length>1?arguments[1]:void 0)}});var Ao=function(t){return W[t+"Prototype"]},To=Ao("Array").filter,Eo=Array.prototype,Mo=function(t){var r=t.filter;return t===Eo||ot(Eo,t)&&r===Eo.filter?To:r},Fo=Or.f,Io=!Wt||c((function(){Fo(1)}));$r({target:"Object",stat:!0,forced:Io,sham:!Wt},{getOwnPropertyDescriptor:function(t,r){return Fo(qt(t),r)}});var Lo,Co,ko,Do=e((function(t){var r=W.Object,e=t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)};r.getOwnPropertyDescriptor.sham&&(e.sham=!0)})),Ro=Do,zo=Function.prototype,No=Wt&&Object.getOwnPropertyDescriptor,Bo=Et(zo,"name"),Go={EXISTS:Bo,PROPER:Bo&&"something"===function(){}.name,CONFIGURABLE:Bo&&(!Wt||Wt&&No(zo,"name").configurable)},Uo=!c((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Wo=fe("IE_PROTO"),Vo=Object,$o=Vo.prototype,Ho=Uo?Vo.getPrototypeOf:function(t){var r=wt(t);if(Et(r,Wo))return r[Wo];var e=r.constructor;return B(e)&&r instanceof e?e.prototype:r instanceof Vo?$o:null},Ko=Rt("iterator"),qo=!1;[].keys&&("next"in(ko=[].keys())?(Co=Ho(Ho(ko)))!==Object.prototype&&(Lo=Co):qo=!0);var Jo=!vt(Lo)||c((function(){var t={};return Lo[Ko].call(t)!==t}));Lo=Jo?{}:dn(Lo),B(Lo[Ko])||Ce(Lo,Ko,(function(){return this}));var Yo={IteratorPrototype:Lo,BUGGY_SAFARI_ITERATORS:qo},Xo={},Qo=Yo.IteratorPrototype,Zo=function(){return this},ti=String,ri=TypeError,ei=function(t,r,e){try{return m(lt(Object.getOwnPropertyDescriptor(t,r)[e]))}catch(t){}},ni=function(t){if("object"==typeof t||B(t))return t;throw ri("Can't set "+ti(t)+" as a prototype")},oi=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=ei(Object.prototype,"__proto__","set"))(e,[]),r=e instanceof Array}catch(t){}return function(e,n){return pr(e),ni(n),r?t(e,n):e.__proto__=n,e}}():void 0),ii=function(t,r,e,n){var o=r+" Iterator";return t.prototype=dn(Qo,{next:Kt(+!n,e)}),On(t,o,!1,!0),Xo[o]=Zo,t},ai=oi,ui=Go.PROPER,ci=Yo.BUGGY_SAFARI_ITERATORS,fi=Rt("iterator"),si="keys",li="values",pi="entries",vi=function(){return this},yi=function(){},di=function(t,r,e,n,o,i,a){ii(e,r,n);var u,c,f,s=function(t){if(t===o&&d)return d;if(!ci&&t in v)return v[t];switch(t){case si:case li:case pi:return function(){return new e(this,t)}}return function(){return new e(this)}},l=r+" Iterator",p=!1,v=t.prototype,y=v[fi]||v["@@iterator"]||o&&v[o],d=!ci&&y||s(o),h="Array"===r&&v.entries||y;if(h&&(u=Ho(h.call(new t)))!==Object.prototype&&u.next&&(On(u,l,!0,!0),Xo[l]=vi),ui&&o===li&&y&&y.name!==li&&(p=!0,d=function(){return pt(y,this)}),o)if(c={values:s(li),keys:i?d:s(si),entries:s(pi)},a)for(f in c)(ci||p||!(f in v))&&Ce(v,f,c[f]);else $r({target:r,proto:!0,forced:ci||p},c);return a&&v[fi]!==d&&Ce(v,fi,d,{name:o}),Xo[r]=d,c},hi=function(t,r){return{value:t,done:r}},bi=(mr.f,"Array Iterator"),gi=wn.set,mi=wn.getterFor(bi);di(Array,"Array",(function(t,r){gi(this,{type:bi,target:qt(t),index:0,kind:r})}),(function(){var t=mi(this),r=t.target,e=t.kind,n=t.index++;if(!r||n>=r.length)return t.target=void 0,hi(void 0,!0);switch(e){case"keys":return hi(n,!1);case"values":return hi(r[n],!1)}return hi([n,r[n]],!1)}),"values");Xo.Arguments=Xo.Array;yi(),yi(),yi();var _i={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Oi=Rt("toStringTag");for(var wi in _i){var ji=V[wi],Si=ji&&ji.prototype;Si&&re(Si)!==Oi&&Sr(Si,Oi,wi),Xo[wi]=Xo.Array}var xi=function(t,r){var e=[][t];return!!e&&c((function(){e.call(null,r||function(){return 1},1)}))},Pi=jn.forEach,Ai=xi("forEach")?[].forEach:function(t){return Pi(this,t,arguments.length>1?arguments[1]:void 0)};$r({target:"Array",proto:!0,forced:[].forEach!==Ai},{forEach:Ai});var Ti=Ao("Array").forEach,Ei=Array.prototype,Mi={DOMTokenList:!0,NodeList:!0},Fi=function(t){var r=t.forEach;return t===Ei||ot(Ei,t)&&r===Ei.forEach||Et(Mi,re(t))?Ti:r},Ii=m([].concat),Li=nt("Reflect","ownKeys")||function(t){var r=Pe.f(pr(t)),e=bn.f;return e?Ii(r,e(t)):r},Ci=Li;$r({target:"Object",stat:!0,sham:!Wt},{getOwnPropertyDescriptors:function(t){for(var r,e,n=qt(t),o=Or.f,i=Ci(n),a={},u=0;i.length>u;)void 0!==(e=o(n,r=i[u++]))&&je(a,r,e);return a}});var ki=W.Object.getOwnPropertyDescriptors,Di=ue.f;$r({target:"Object",stat:!0,forced:Object.defineProperties!==Di,sham:!Wt},{defineProperties:Di});var Ri=e((function(t){var r=W.Object,e=t.exports=function(t,e){return r.defineProperties(t,e)};r.defineProperties.sham&&(e.sham=!0)})),zi=Ri,Ni=mr.f;$r({target:"Object",stat:!0,forced:Object.defineProperty!==Ni,sham:!Wt},{defineProperty:Ni});var Bi=e((function(t){var r=W.Object,e=t.exports=function(t,e,n){return r.defineProperty(t,e,n)};r.defineProperty.sham&&(e.sham=!0)})),Gi=Bi,Ui=Gi,Wi=Function,Vi=m([].concat),$i=m([].join),Hi={},Ki=s?Wi.bind:function(t){var r=lt(this),e=r.prototype,n=oo(arguments,1),o=function(){var e=Vi(n,oo(arguments));return this instanceof o?function(t,r,e){if(!Et(Hi,r)){for(var n=[],o=0;o9007199254740991)throw sa("Maximum allowed index exceeded");return t},va=c((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}();$r({target:"Array",proto:!0,arity:1,forced:va},{push:function(t){var r=wt(this),e=Dr(r),n=arguments.length;pa(e+n);for(var o=0;o=51||!c((function(){var t=[];return t[Aa]=!1,t.concat()[0]!==t})),Ea=function(t){if(!vt(t))return!1;var r=t[Aa];return void 0!==r?!!r:on(t)},Ma=!Ta||!So("concat");$r({target:"Array",proto:!0,arity:1,forced:Ma},{concat:function(t){var r,e,n,o,i,a=wt(this),u=sn(a,0),c=0;for(r=-1,n=arguments.length;r=u?t?"":void 0:(n=ru(i,a))<55296||n>56319||a+1===u||(o=ru(i,a+1))<56320||o>57343?t?tu(i,a):n:t?eu(i,a,a+2):o-56320+(n-55296<<10)+65536}},ou={codeAt:nu(!1),charAt:nu(!0)}.charAt,iu="String Iterator",au=wn.set,uu=wn.getterFor(iu);di(String,"String",(function(t){au(this,{type:iu,string:yn(t),index:0})}),(function(){var t,r=uu(this),e=r.string,n=r.index;return n>=e.length?hi(void 0,!0):(t=ou(e,n),r.index+=t.length,hi(t,!1))}));var cu=Ie.f("iterator"),fu=Za,su=cu,lu=e((function(t){function r(e){return t.exports=r="function"==typeof fu&&"symbol"==typeof su?function(t){return typeof t}:function(t){return t&&"function"==typeof fu&&t.constructor===fu&&t!==fu.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}));r(lu),n(Object.freeze({__proto__:null}));var pu=Ie.f("toPrimitive"),vu=e((function(t){var r=lu.default;t.exports=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[pu];if(void 0!==n){var o=n.call(t,e||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}));r(vu);var yu=e((function(t){var r=lu.default;t.exports=function(t){var e=vu(t,"string");return"symbol"===r(e)?e:String(e)},t.exports.__esModule=!0,t.exports.default=t.exports}));r(yu);var du=Pa,hu=e((function(t){function r(t,r){for(var e=0;e-1};var Eu=function(t,r){var e=this.__data__,n=Su(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this};function Mu(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r-1&&t%1==0&&t<=9007199254740991};var of=function(t){return null!=t&&nf(t.length)&&!Yu(t)};var af=function(t){return Jc(t)&&of(t)};var uf=function(){return!1},cf=e((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,o=n&&n.exports===e?zu.Buffer:void 0,i=(o?o.isBuffer:void 0)||uf;t.exports=i})),ff=Function.prototype,sf=Object.prototype,lf=ff.toString,pf=sf.hasOwnProperty,vf=lf.call(Object);var yf=function(t){if(!Jc(t)||"[object Object]"!=qu(t))return!1;var r=$c(t);if(null===r)return!0;var e=pf.call(r,"constructor")&&r.constructor;return"function"==typeof e&&e instanceof e&&lf.call(e)==vf},df={};df["[object Float32Array]"]=df["[object Float64Array]"]=df["[object Int8Array]"]=df["[object Int16Array]"]=df["[object Int32Array]"]=df["[object Uint8Array]"]=df["[object Uint8ClampedArray]"]=df["[object Uint16Array]"]=df["[object Uint32Array]"]=!0,df["[object Arguments]"]=df["[object Array]"]=df["[object ArrayBuffer]"]=df["[object Boolean]"]=df["[object DataView]"]=df["[object Date]"]=df["[object Error]"]=df["[object Function]"]=df["[object Map]"]=df["[object Number]"]=df["[object Object]"]=df["[object RegExp]"]=df["[object Set]"]=df["[object String]"]=df["[object WeakMap]"]=!1;var hf=function(t){return Jc(t)&&nf(t.length)&&!!df[qu(t)]};var bf=function(t){return function(r){return t(r)}},gf=e((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,o=n&&n.exports===e&&Du.process,i=function(){try{var t=n&&n.require&&n.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=i})),mf=gf&&gf.isTypedArray,_f=mf?bf(mf):hf;var Of=function(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]},wf=Object.prototype.hasOwnProperty;var jf=function(t,r,e){var n=t[r];wf.call(t,r)&&ju(n,e)&&(void 0!==e||r in t)||kc(t,r,e)};var Sf=function(t,r,e,n){var o=!e;e||(e={});for(var i=-1,a=r.length;++i-1&&t%1==0&&t0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}},$f=Vf(Uf);var Hf=function(t,r){return $f(Bf(t,r,Rf),t+"")};var Kf=function(t,r,e){if(!Ju(e))return!1;var n=typeof r;return!!("number"==n?of(e)&&Af(r,e.length):"string"==n&&r in e)&&ju(e[r],t)};var qf=function(t){return Hf((function(r,e){var n=-1,o=e.length,i=o>1?e[o-1]:void 0,a=o>2?e[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,a&&Kf(e[0],e[1],a)&&(i=o<3?void 0:i,o=1),r=Object(r);++n0&&void 0!==arguments[0]?arguments[0]:{};xa(this,t),gu(this,"mermaidAPIRefs",null),gu(this,"options",Xf),gu(this,"dom",null),gu(this,"mermaidCanvas",null);var e=r.mermaid,n=r.mermaidAPI;if(!(n||window.mermaidAPI||e&&e.mermaidAPI||window.mermaid&&window.mermaid.mermaidAPI))throw new Error("code-block-mermaid-plugin[init]: Package mermaid or mermaidAPI not found.");this.options=Yf(Yf({},Xf),r||{}),this.mermaidAPIRefs=n||window.mermaidAPI||e.mermaidAPI||window.mermaid.mermaidAPI,delete this.options.mermaid,delete this.options.mermaidAPI,this.mermaidAPIRefs.initialize(this.options)}return bu(t,[{key:"mountMermaidCanvas",value:function(t){this.mermaidCanvas&&document.body.contains(this.mermaidCanvas)||(this.mermaidCanvas=document.createElement("div"),this.mermaidCanvas.style="width:1024px;opacity:0;position:fixed;top:100%;",(t.$cherry.wrapperDom||document.body).appendChild(this.mermaidCanvas))}},{key:"convertMermaidSvgToImg",value:function(t,r){var e,n=new DOMParser,o=function(t){return t.replace("')}}else e=o(t)}catch(r){e=o(t)}return e}},{key:"render",value:function(t,r,e){var n,o,i,a=this,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=r;c||(c=Math.round(1e8*Math.random())),this.mountMermaidCanvas(e);var f=Ou(n="mermaid-".concat(c,"-")).call(n,(new Date).getTime());this.svg2img=null!==(o=null==u?void 0:u.svg2img)&&void 0!==o&&o;try{this.mermaidAPIRefs.render(f,t,(function(t){var r=t.replace(/\s*markerUnits="0"/g,"").replace(/\s*x="NaN"/g,"").replace(/
/g,"
");i=a.convertMermaidSvgToImg(r,f)}),this.mermaidCanvas)}catch(t){return null==t?void 0:t.str}return i}}],[{key:"install",value:function(r){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o0&&n[0]<4?1:+(n[0]+n[1])),!o&&H&&(!(n=H.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=H.match(/Chrome\/(\d+)/))&&(o=+n[1]);var X=o,Q=$.String,Z=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol("symbol detection");return!Q(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&X&&X<41})),tt=Z,rt=tt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,et=function(t,r){return arguments.length<2?W(B[t])||W($[t]):B[t]&&B[t][r]||$[t]&&$[t][r]},nt=V,ot=rt,it=Object,ut=ot?function(t){return"symbol"==typeof t}:function(t){var r=et("Symbol");return N(r)&&nt(r.prototype,it(t))},at=String,ct=function(t){try{return at(t)}catch(t){return"Object"}},ft=TypeError,lt=function(t){if(N(t))return t;throw ft(ct(t)+" is not a function")},st=T,pt=U,vt=TypeError,yt=Object.defineProperty,dt=function(t,r){try{yt($,t,{value:r,configurable:!0,writable:!0})}catch(e){$[t]=r}return r},ht="__core-js_shared__",bt=$[ht]||dt(ht,{}),gt=bt,mt=e((function(t){(t.exports=function(t,r){return gt[t]||(gt[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.32.1",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),_t=Object,wt=function(t){return _t(z(t))},Ot=g({}.hasOwnProperty),jt=Object.hasOwn||function(t,r){return Ot(wt(t),r)},St=0,xt=Math.random(),At=g(1..toString),Pt=mt,Tt=jt,Et=function(t){return"Symbol("+(void 0===t?"":t)+")_"+At(++St+xt,36)},Ct=$.Symbol,Ft=Pt("wks"),Mt=ot?Ct.for||Ct:Ct&&Ct.withoutSetter||Et,Lt=ut,It=function(t,r){var e=t[r];return k(e)?void 0:lt(e)},kt=function(t,r){var e,n;if("string"===r&&N(e=t.toString)&&!pt(n=st(e,t)))return n;if(N(e=t.valueOf)&&!pt(n=st(e,t)))return n;if("string"!==r&&N(e=t.toString)&&!pt(n=st(e,t)))return n;throw vt("Can't convert object to primitive value")},Dt=function(t){return Tt(Ft,t)||(Ft[t]=tt&&Tt(Ct,t)?Ct[t]:Mt("Symbol."+t)),Ft[t]},Rt=TypeError,zt=Dt("toPrimitive"),Nt=function(t,r){if(!pt(t)||Lt(t))return t;var e,n=It(t,zt);if(n){if(void 0===r&&(r="default"),e=st(n,t,r),!pt(e)||Lt(e))return e;throw Rt("Can't convert object to primitive value")}return void 0===r&&(r="number"),kt(t,r)},Gt=$.document,Ut=pt(Gt)&&pt(Gt.createElement),Bt=A,$t=function(t){return Ut?Gt.createElement(t):{}},Wt=!Bt&&!a((function(){return 7!==Object.defineProperty($t("div"),"a",{get:function(){return 7}}).a})),Vt=F,Ht=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},Kt=function(t){return R(z(t))},qt=function(t){var r=Nt(t,"string");return Lt(r)?r:r+""},Jt=Wt,Yt=Object.getOwnPropertyDescriptor,Xt={f:Bt?Yt:function(t,r){if(t=Kt(t),r=qt(r),Jt)try{return Yt(t,r)}catch(t){}if(Tt(t,r))return Ht(!st(Vt.f,t,r),t[r])}},Qt=/#|\.prototype\./,Zt=function(t,r){var e=rr[tr(t)];return e===nr||e!==er&&(N(r)?a(r):!!r)},tr=Zt.normalize=function(t){return String(t).replace(Qt,".").toLowerCase()},rr=Zt.data={},er=Zt.NATIVE="N",nr=Zt.POLYFILL="P",or=Zt,ir=function(t){if("Function"===w(t))return g(t)},ur=ir(ir.bind),ar=Bt&&a((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),cr=String,fr=TypeError,lr=ar,sr=function(t){if(pt(t))return t;throw fr(cr(t)+" is not an object")},pr=TypeError,vr=Object.defineProperty,yr=Object.getOwnPropertyDescriptor,dr="enumerable",hr="configurable",br="writable",gr={f:Bt?lr?function(t,r,e){if(sr(t),r=qt(r),sr(e),"function"==typeof t&&"prototype"===r&&"value"in e&&br in e&&!e[br]){var n=yr(t,r);n&&n[br]&&(t[r]=e.value,e={configurable:hr in e?e[hr]:n[hr],enumerable:dr in e?e[dr]:n[dr],writable:!1})}return vr(t,r,e)}:vr:function(t,r,e){if(sr(t),r=qt(r),sr(e),Jt)try{return vr(t,r,e)}catch(t){}if("get"in e||"set"in e)throw pr("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},mr=v,_r=Xt,wr=or,Or=function(t,r){return lt(t),void 0===r?t:f?ur(t,r):function(){return t.apply(r,arguments)}},jr=Bt?function(t,r,e){return gr.f(t,r,Ht(1,e))}:function(t,r,e){return t[r]=e,t},Sr=_r.f,xr=function(t){var r=function(e,n,o){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,o)}return mr(t,this,arguments)};return r.prototype=t.prototype,r},Ar=Math.ceil,Pr=Math.floor,Tr=Math.trunc||function(t){var r=+t;return(r>0?Pr:Ar)(r)},Er=Tr,Cr=function(t){var r=+t;return r!=r||0===r?0:Er(r)},Fr=Math.max,Mr=Math.min,Lr=Math.min,Ir=function(t){return t>0?Lr(Cr(t),9007199254740991):0},kr=function(t,r){var e=Cr(t);return e<0?Fr(e+r,0):Mr(e,r)},Dr=function(t){return Ir(t.length)},Rr=function(t){return function(r,e,n){var o,i=Kt(r),u=Dr(i),a=kr(n,u);if(t&&e!=e){for(;u>a;)if((o=i[a++])!=o)return!0}else for(;u>a;a++)if((t||a in i)&&i[a]===e)return t||a||0;return!t&&-1}},zr={includes:Rr(!0),indexOf:Rr(!1)},Nr={},Gr=zr.indexOf,Ur=g([].push),Br=function(t,r){var e,n=Kt(t),o=0,i=[];for(e in n)!Tt(Nr,e)&&Tt(n,e)&&Ur(i,e);for(;r.length>o;)Tt(n,e=r[o++])&&(~Gr(i,e)||Ur(i,e));return i},$r=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Wr=Object.keys||function(t){return Br(t,$r)},Vr=function(t,r){var e,n,o,i,u,a,c,f,l,s=t.target,p=t.global,v=t.stat,y=t.proto,d=p?$:v?$[s]:($[s]||{}).prototype,h=p?B:B[s]||jr(B,s,{})[s],b=h.prototype;for(i in r)n=!(e=wr(p?i:s+(v?".":"#")+i,t.forced))&&d&&Tt(d,i),a=h[i],n&&(c=t.dontCallGetSet?(l=Sr(d,i))&&l.value:d[i]),u=n&&c?c:r[i],n&&typeof a==typeof u||(f=t.bind&&n?Or(u,$):t.wrap&&n?xr(u):y&&N(u)?ir(u):u,(t.sham||u&&u.sham||a&&a.sham)&&jr(f,"sham",!0),jr(h,i,f),y&&(Tt(B,o=s+"Prototype")||jr(B,o,{}),jr(B[o],i,u),t.real&&b&&(e||!b[i])&&jr(b,i,u)))},Hr=Wr,Kr=a((function(){Hr(1)}));Vr({target:"Object",stat:!0,forced:Kr},{keys:function(t){return Hr(wt(t))}});var qr=B.Object.keys,Jr={};Jr[Dt("toStringTag")]="z";var Yr,Xr="[object z]"===String(Jr),Qr=Dt("toStringTag"),Zr=Object,te="Arguments"===w(function(){return arguments}()),re=Xr?w:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=Zr(t),Qr))?e:te?w(r):"Object"===(n=w(r))&&N(r.callee)?"Arguments":n},ee=String,ne=Bt&&!lr?Object.defineProperties:function(t,r){sr(t);for(var e,n=Kt(r),o=Hr(r),i=o.length,u=0;i>u;)gr.f(t,e=o[u++],n[e]);return t},oe={f:ne},ie=et("document","documentElement"),ue=Pt("keys"),ae=oe,ce=ie,fe=function(t){return ue[t]||(ue[t]=Et(t))},le="prototype",se="script",pe=fe("IE_PROTO"),ve=function(){},ye=function(t){return"<"+se+">"+t+""},de=function(t){t.write(ye("")),t.close();var r=t.parentWindow.Object;return t=null,r},he=function(){try{Yr=new ActiveXObject("htmlfile")}catch(t){}var t,r,e;he="undefined"!=typeof document?document.domain&&Yr?de(Yr):(r=$t("iframe"),e="java"+se+":",r.style.display="none",ce.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(ye("document.F=Object")),t.close(),t.F):de(Yr);for(var n=$r.length;n--;)delete he[le][$r[n]];return he()};Nr[pe]=!0;var be,ge,me,_e=Object.create||function(t,r){var e;return null!==t?(ve[le]=sr(t),e=new ve,ve[le]=null,e[pe]=t):e=he(),void 0===r?e:ae.f(e,r)},we=$r.concat("length","prototype"),Oe={f:Object.getOwnPropertyNames||function(t){return Br(t,we)}},je=function(t,r,e){var n=qt(r);n in t?gr.f(t,n,Ht(0,e)):t[n]=e},Se=Array,xe=Math.max,Ae=Oe,Pe=function(t,r,e){for(var n=Dr(t),o=kr(r,n),i=kr(void 0===e?n:e,n),u=Se(xe(i-o,0)),a=0;og;g++)if((a||g in d)&&(v=h(p=d[g],g,y),t))if(r)_[g]=v;else if(v)switch(t){case 3:return!0;case 5:return p;case 6:return g;case 2:sn(_,p)}else switch(t){case 4:return!1;case 7:sn(_,p)}return i?-1:n||o?o:_}},vn={forEach:pn(0),map:pn(1),filter:pn(2),some:pn(3),every:pn(4),find:pn(5),findIndex:pn(6),filterReject:pn(7)},yn=function(t){if("Symbol"===re(t))throw TypeError("Cannot convert a Symbol value to a string");return ee(t)},dn=_e,hn=Ce,bn=Fe,gn=function(t,r,e){return gr.f(t,r,e)},mn=function(t){var r=B.Symbol||(B.Symbol={});Tt(r,t)||Le(r,t,{value:Me.f(t)})},_n=function(){var t=et("Symbol"),r=t&&t.prototype,e=r&&r.valueOf,n=Dt("toPrimitive");r&&!r[n]&&Ie(r,n,(function(t){return st(e,this)}),{arity:1})},wn=function(t,r,e,n){if(t){var o=e?t:t.prototype;Tt(o,Re)||De(o,Re,{configurable:!0,value:r}),n&&!Xr&&jr(o,"toString",ke)}},On=Ve,jn=vn,Sn=jn.forEach,xn=fe("hidden"),An="Symbol",Pn="prototype",Tn=On.set,En=On.getterFor(An),Cn=Object[Pn],Fn=$.Symbol,Mn=Fn&&Fn[Pn],Ln=$.TypeError,In=$.QObject,kn=_r.f,Dn=gr.f,Rn=hn.f,zn=Vt.f,Nn=g([].push),Gn=Pt("symbols"),Un=Pt("op-symbols"),Bn=Pt("wks"),$n=!In||!In[Pn]||!In[Pn].findChild,Wn=Bt&&a((function(){return 7!==dn(Dn({},"a",{get:function(){return Dn(this,"a",{value:7}).a}})).a}))?function(t,r,e){var n=kn(Cn,r);n&&delete Cn[r],Dn(t,r,e),n&&t!==Cn&&Dn(Cn,r,n)}:Dn,Vn=function(t,r){var e=Gn[t]=dn(Mn);return Tn(e,{type:An,tag:t,description:r}),Bt||(e.description=r),e},Hn=function(t,r,e){t===Cn&&Hn(Un,r,e),sr(t);var n=qt(r);return sr(e),Tt(Gn,n)?(e.enumerable?(Tt(t,xn)&&t[xn][n]&&(t[xn][n]=!1),e=dn(e,{enumerable:Ht(0,!1)})):(Tt(t,xn)||Dn(t,xn,Ht(1,{})),t[xn][n]=!0),Wn(t,n,e)):Dn(t,n,e)},Kn=function(t,r){sr(t);var e=Kt(r),n=Hr(e).concat(Xn(e));return Sn(n,(function(r){Bt&&!st(qn,e,r)||Hn(t,r,e[r])})),t},qn=function(t){var r=qt(t),e=st(zn,this,r);return!(this===Cn&&Tt(Gn,r)&&!Tt(Un,r))&&(!(e||!Tt(this,r)||!Tt(Gn,r)||Tt(this,xn)&&this[xn][r])||e)},Jn=function(t,r){var e=Kt(t),n=qt(r);if(e!==Cn||!Tt(Gn,n)||Tt(Un,n)){var o=kn(e,n);return!o||!Tt(Gn,n)||Tt(e,xn)&&e[xn][n]||(o.enumerable=!0),o}},Yn=function(t){var r=Rn(Kt(t)),e=[];return Sn(r,(function(t){Tt(Gn,t)||Tt(Nr,t)||Nn(e,t)})),e},Xn=function(t){var r=t===Cn,e=Rn(r?Un:Kt(t)),n=[];return Sn(e,(function(t){!Tt(Gn,t)||r&&!Tt(Cn,t)||Nn(n,Gn[t])})),n};tt||(Fn=function(){if(nt(Mn,this))throw Ln("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?yn(arguments[0]):void 0,r=Et(t),e=function(t){this===Cn&&st(e,Un,t),Tt(this,xn)&&Tt(this[xn],r)&&(this[xn][r]=!1),Wn(this,r,Ht(1,t))};return Bt&&$n&&Wn(Cn,r,{configurable:!0,set:e}),Vn(r,t)},Mn=Fn[Pn],Ie(Mn,"toString",(function(){return En(this).tag})),Ie(Fn,"withoutSetter",(function(t){return Vn(Et(t),t)})),Vt.f=qn,gr.f=Hn,ae.f=Kn,_r.f=Jn,Ae.f=hn.f=Yn,bn.f=Xn,Me.f=function(t){return Vn(Dt(t),t)},Bt&&gn(Mn,"description",{configurable:!0,get:function(){return En(this).description}})),Vr({global:!0,constructor:!0,wrap:!0,forced:!tt,sham:!tt},{Symbol:Fn}),Sn(Hr(Bn),(function(t){mn(t)})),Vr({target:An,stat:!0,forced:!tt},{useSetter:function(){$n=!0},useSimple:function(){$n=!1}}),Vr({target:"Object",stat:!0,forced:!tt,sham:!Bt},{create:function(t,r){return void 0===r?dn(t):Kn(dn(t),r)},defineProperty:Hn,defineProperties:Kn,getOwnPropertyDescriptor:Jn}),Vr({target:"Object",stat:!0,forced:!tt},{getOwnPropertyNames:Yn}),_n(),wn(Fn,An),Nr[xn]=!0;var Qn=tt&&!!Symbol.for&&!!Symbol.keyFor,Zn=Pt("string-to-symbol-registry"),to=Pt("symbol-to-string-registry");Vr({target:"Symbol",stat:!0,forced:!Qn},{for:function(t){var r=yn(t);if(Tt(Zn,r))return Zn[r];var e=et("Symbol")(r);return Zn[r]=e,to[e]=r,e}});var ro=Pt("symbol-to-string-registry");Vr({target:"Symbol",stat:!0,forced:!Qn},{keyFor:function(t){if(!Lt(t))throw TypeError(ct(t)+" is not a symbol");if(Tt(ro,t))return ro[t]}});var eo=g([].slice),no=g([].push),oo=eo,io=function(t){if(N(t))return t;if(on(t)){for(var r=t.length,e=[],n=0;n=51||!a((function(){var r=[];return(r.constructor={})[jo]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},xo=jn.filter,Ao=So("filter");Vr({target:"Array",proto:!0,forced:!Ao},{filter:function(t){return xo(this,t,arguments.length>1?arguments[1]:void 0)}});var Po=function(t){return B[t+"Prototype"]},To=Po("Array").filter,Eo=Array.prototype,Co=function(t){var r=t.filter;return t===Eo||nt(Eo,t)&&r===Eo.filter?To:r},Fo=_r.f,Mo=!Bt||a((function(){Fo(1)}));Vr({target:"Object",stat:!0,forced:Mo,sham:!Bt},{getOwnPropertyDescriptor:function(t,r){return Fo(Kt(t),r)}});var Lo,Io,ko,Do=e((function(t){var r=B.Object,e=t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)};r.getOwnPropertyDescriptor.sham&&(e.sham=!0)})),Ro=Do,zo=Function.prototype,No=Bt&&Object.getOwnPropertyDescriptor,Go=Tt(zo,"name"),Uo={EXISTS:Go,PROPER:Go&&"something"===function(){}.name,CONFIGURABLE:Go&&(!Bt||Bt&&No(zo,"name").configurable)},Bo=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),$o=fe("IE_PROTO"),Wo=Object,Vo=Wo.prototype,Ho=Bo?Wo.getPrototypeOf:function(t){var r=wt(t);if(Tt(r,$o))return r[$o];var e=r.constructor;return N(e)&&r instanceof e?e.prototype:r instanceof Wo?Vo:null},Ko=Dt("iterator"),qo=!1;[].keys&&("next"in(ko=[].keys())?(Io=Ho(Ho(ko)))!==Object.prototype&&(Lo=Io):qo=!0);var Jo=!pt(Lo)||a((function(){var t={};return Lo[Ko].call(t)!==t}));Lo=Jo?{}:dn(Lo),N(Lo[Ko])||Ie(Lo,Ko,(function(){return this}));var Yo={IteratorPrototype:Lo,BUGGY_SAFARI_ITERATORS:qo},Xo={},Qo=Yo.IteratorPrototype,Zo=function(){return this},ti=String,ri=TypeError,ei=function(t,r,e){try{return g(lt(Object.getOwnPropertyDescriptor(t,r)[e]))}catch(t){}},ni=function(t){if("object"==typeof t||N(t))return t;throw ri("Can't set "+ti(t)+" as a prototype")},oi=(Object.setPrototypeOf||"__proto__"in{}&&function(){var t,r=!1,e={};try{(t=ei(Object.prototype,"__proto__","set"))(e,[]),r=e instanceof Array}catch(t){}}(),function(t,r,e,n){var o=r+" Iterator";return t.prototype=dn(Qo,{next:Ht(+!n,e)}),wn(t,o,!1,!0),Xo[o]=Zo,t}),ii=Uo.PROPER,ui=Yo.BUGGY_SAFARI_ITERATORS,ai=Dt("iterator"),ci="keys",fi="values",li="entries",si=function(){return this},pi=function(){},vi=function(t,r,e,n,o,i,u){oi(e,r,n);var a,c,f,l=function(t){if(t===o&&d)return d;if(!ui&&t in v)return v[t];switch(t){case ci:case fi:case li:return function(){return new e(this,t)}}return function(){return new e(this)}},s=r+" Iterator",p=!1,v=t.prototype,y=v[ai]||v["@@iterator"]||o&&v[o],d=!ui&&y||l(o),h="Array"===r&&v.entries||y;if(h&&(a=Ho(h.call(new t)))!==Object.prototype&&a.next&&(wn(a,s,!0,!0),Xo[s]=si),ii&&o===fi&&y&&y.name!==fi&&(p=!0,d=function(){return st(y,this)}),o)if(c={values:l(fi),keys:i?d:l(ci),entries:l(li)},u)for(f in c)(ui||p||!(f in v))&&Ie(v,f,c[f]);else Vr({target:r,proto:!0,forced:ui||p},c);return u&&v[ai]!==d&&Ie(v,ai,d,{name:o}),Xo[r]=d,c},yi=function(t,r){return{value:t,done:r}},di=(gr.f,"Array Iterator"),hi=On.set,bi=On.getterFor(di);vi(Array,"Array",(function(t,r){hi(this,{type:di,target:Kt(t),index:0,kind:r})}),(function(){var t=bi(this),r=t.target,e=t.kind,n=t.index++;if(!r||n>=r.length)return t.target=void 0,yi(void 0,!0);switch(e){case"keys":return yi(n,!1);case"values":return yi(r[n],!1)}return yi([n,r[n]],!1)}),"values");Xo.Arguments=Xo.Array;pi(),pi(),pi();var gi={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},mi=Dt("toStringTag");for(var _i in gi){var wi=$[_i],Oi=wi&&wi.prototype;Oi&&re(Oi)!==mi&&jr(Oi,mi,_i),Xo[_i]=Xo.Array}var ji=function(t,r){var e=[][t];return!!e&&a((function(){e.call(null,r||function(){return 1},1)}))},Si=jn.forEach,xi=ji("forEach")?[].forEach:function(t){return Si(this,t,arguments.length>1?arguments[1]:void 0)};Vr({target:"Array",proto:!0,forced:[].forEach!==xi},{forEach:xi});var Ai=Po("Array").forEach,Pi=Array.prototype,Ti={DOMTokenList:!0,NodeList:!0},Ei=function(t){var r=t.forEach;return t===Pi||nt(Pi,t)&&r===Pi.forEach||Tt(Ti,re(t))?Ai:r},Ci=g([].concat),Fi=et("Reflect","ownKeys")||function(t){var r=Ae.f(sr(t)),e=bn.f;return e?Ci(r,e(t)):r},Mi=Fi;Vr({target:"Object",stat:!0,sham:!Bt},{getOwnPropertyDescriptors:function(t){for(var r,e,n=Kt(t),o=_r.f,i=Mi(n),u={},a=0;i.length>a;)void 0!==(e=o(n,r=i[a++]))&&je(u,r,e);return u}});var Li=B.Object.getOwnPropertyDescriptors,Ii=ae.f;Vr({target:"Object",stat:!0,forced:Object.defineProperties!==Ii,sham:!Bt},{defineProperties:Ii});var ki=e((function(t){var r=B.Object,e=t.exports=function(t,e){return r.defineProperties(t,e)};r.defineProperties.sham&&(e.sham=!0)})),Di=ki,Ri=gr.f;Vr({target:"Object",stat:!0,forced:Object.defineProperty!==Ri,sham:!Bt},{defineProperty:Ri});var zi=e((function(t){var r=B.Object,e=t.exports=function(t,e,n){return r.defineProperty(t,e,n)};r.defineProperty.sham&&(e.sham=!0)})),Ni=zi,Gi=zi,Ui=TypeError,Bi=function(t){if(t>9007199254740991)throw Ui("Maximum allowed index exceeded");return t},$i=Dt("isConcatSpreadable"),Wi=X>=51||!a((function(){var t=[];return t[$i]=!1,t.concat()[0]!==t})),Vi=function(t){if(!pt(t))return!1;var r=t[$i];return void 0!==r?!!r:on(t)},Hi=!Wi||!So("concat");Vr({target:"Array",proto:!0,arity:1,forced:Hi},{concat:function(t){var r,e,n,o,i,u=wt(this),a=ln(u,0),c=0;for(r=-1,n=arguments.length;r=a?t?"":void 0:(n=hu(i,u))<55296||n>56319||u+1===a||(o=hu(i,u+1))<56320||o>57343?t?du(i,u):n:t?bu(i,u,u+2):o-56320+(n-55296<<10)+65536}},mu={codeAt:gu(!1),charAt:gu(!0)}.charAt,_u="String Iterator",wu=On.set,Ou=On.getterFor(_u);vi(String,"String",(function(t){wu(this,{type:_u,string:yn(t),index:0})}),(function(){var t,r=Ou(this),e=r.string,n=r.index;return n>=e.length?yi(void 0,!0):(t=mu(e,n),r.index+=t.length,yi(t,!1))}));var ju=Me.f("iterator"),Su=yu,xu=ju,Au=e((function(t){function r(e){return t.exports=r="function"==typeof Su&&"symbol"==typeof xu?function(t){return typeof t}:function(t){return t&&"function"==typeof Su&&t.constructor===Su&&t!==Su.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}));r(Au);var Pu=Me.f("toPrimitive"),Tu=e((function(t){var r=Au.default;t.exports=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Pu];if(void 0!==n){var o=n.call(t,e||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}));r(Tu);var Eu=e((function(t){var r=Au.default;t.exports=function(t){var e=Tu(t,"string");return"symbol"===r(e)?e:String(e)},t.exports.__esModule=!0,t.exports.default=t.exports}));r(Eu);var Cu=Gi,Fu=r(e((function(t){t.exports=function(t,r,e){return(r=Eu(r))in t?Cu(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t},t.exports.__esModule=!0,t.exports.default=t.exports}))),Mu=r(e((function(t){t.exports=function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports}))),Lu=e((function(t){function r(t,r){for(var e=0;e-1};var Vu=function(t,r){var e=this.__data__,n=Gu(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this};function Hu(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r-1&&t%1==0&&t<=9007199254740991};var _c=function(t){return null!=t&&mc(t.length)&&!pa(t)};var wc=function(t){return sc(t)&&_c(t)};var Oc=function(){return!1},jc=e((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,o=n&&n.exports===e?ta.Buffer:void 0,i=(o?o.isBuffer:void 0)||Oc;t.exports=i})),Sc=Function.prototype,xc=Object.prototype,Ac=Sc.toString,Pc=xc.hasOwnProperty,Tc=Ac.call(Object);var Ec=function(t){if(!sc(t)||"[object Object]"!=la(t))return!1;var r=ac(t);if(null===r)return!0;var e=Pc.call(r,"constructor")&&r.constructor;return"function"==typeof e&&e instanceof e&&Ac.call(e)==Tc},Cc={};Cc["[object Float32Array]"]=Cc["[object Float64Array]"]=Cc["[object Int8Array]"]=Cc["[object Int16Array]"]=Cc["[object Int32Array]"]=Cc["[object Uint8Array]"]=Cc["[object Uint8ClampedArray]"]=Cc["[object Uint16Array]"]=Cc["[object Uint32Array]"]=!0,Cc["[object Arguments]"]=Cc["[object Array]"]=Cc["[object ArrayBuffer]"]=Cc["[object Boolean]"]=Cc["[object DataView]"]=Cc["[object Date]"]=Cc["[object Error]"]=Cc["[object Function]"]=Cc["[object Map]"]=Cc["[object Number]"]=Cc["[object Object]"]=Cc["[object RegExp]"]=Cc["[object Set]"]=Cc["[object String]"]=Cc["[object WeakMap]"]=!1;var Fc=function(t){return sc(t)&&mc(t.length)&&!!Cc[la(t)]};var Mc=function(t){return function(r){return t(r)}},Lc=e((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,o=n&&n.exports===e&&Qu.process,i=function(){try{var t=n&&n.require&&n.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=i})),Ic=Lc&&Lc.isTypedArray,kc=Ic?Mc(Ic):Fc;var Dc=function(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]},Rc=Object.prototype.hasOwnProperty;var zc=function(t,r,e){var n=t[r];Rc.call(t,r)&&Nu(n,e)&&(void 0!==e||r in t)||Xa(t,r,e)};var Nc=function(t,r,e,n){var o=!e;e||(e={});for(var i=-1,u=r.length;++i-1&&t%1==0&&t0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}},af=uf(nf);var cf=function(t,r){return af(rf(t,r,Qc),t+"")};var ff=function(t,r,e){if(!sa(e))return!1;var n=typeof r;return!!("number"==n?_c(e)&&Bc(r,e.length):"string"==n&&r in e)&&Nu(e[r],t)};var lf=function(t){return cf((function(r,e){var n=-1,o=e.length,i=o>1?e[o-1]:void 0,u=o>2?e[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,u&&ff(e[0],e[1],u)&&(i=o<3?void 0:i,o=1),r=Object(r);++n>>0||(wf(_f,e)?16:10))}:bf;Vr({global:!0,forced:parseInt!==Of},{parseInt:Of});var jf=B.parseInt,Sf=function(){var t,r,e,n,o,i,u,a,c,f,l,s,p,v,y,d,h,b,g,m,_,w,O,j,S,x,A,P,T,E,C,F,M,L,I,k,D,R,z,N,G,U,B,$,W,V,H,K,q,J,Y,X,Q,Z,tt,rt=32768,et=0,nt=1,ot=2,it=8192,ut=2*rt,at=3,ct=258,ft=8192,lt=ft,st=8192,pt=st-1,vt=rt-1,yt=0,dt=4096,ht=ct+at+1,bt=rt-ht,gt=1,mt=15,_t=7,wt=29,Ot=256,jt=256,St=Ot+1+wt,xt=30,At=19,Pt=16,Tt=17,Et=18,Ct=2*St+1,Ft=jf((13+at-1)/at),Mt=null;function Lt(){this.fc=0,this.dl=0}function It(){this.dyn_tree=null,this.static_tree=null,this.extra_bits=null,this.extra_base=0,this.elems=0,this.max_length=0,this.max_code=0}function kt(t,r,e,n){this.good_length=t,this.max_lazy=r,this.nice_length=e,this.max_chain=n}function Dt(){this.next=null,this.len=0,this.ptr=new Array(it),this.off=0}var Rt=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],zt=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Nt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Gt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ut=[new kt(0,0,0,0),new kt(4,4,8,4),new kt(4,5,16,8),new kt(4,6,32,32),new kt(4,4,16,16),new kt(8,16,32,32),new kt(8,16,128,128),new kt(8,32,128,256),new kt(32,128,258,1024),new kt(32,258,258,4096)];function Bt(r){r.next=t,t=r}function $t(t){return l[rt+t]}function Wt(t,r){return l[rt+t]=r}function Vt(n){Mt[i+o++]=n,i+o==it&&function(){if(0!=o){var n,u;for(null!=t?(a=t,t=t.next):a=new Dt,a.next=null,a.len=a.off=0,n=a,null==r?r=e=n:e=e.next=n,n.len=o-i,u=0;u>>8):(Vt(255&t),Vt(t>>>8))}function Kt(){y=(y<>7)])}function Yt(t,r,e){return t[r].fcbt?_-bt:yt,c=_+ct,f=a[o+i-1],s=a[o+i];m>=P&&(n>>=2);do{if(a[(r=t)+i]==s&&a[r+i-1]==f&&a[r]==a[o]&&a[++r]==a[o+1]){o+=2,r++;do{}while(a[++o]==a[++r]&&a[++o]==a[++r]&&a[++o]==a[++r]&&a[++o]==a[++r]&&a[++o]==a[++r]&&a[++o]==a[++r]&&a[++o]==a[++r]&&a[++o]==a[++r]&&oi){if(w=t,i=e,e>=ct)break;f=a[o+i-1],s=a[o+i]}}}while((t=l[t&vt])>u&&0!=--n);return i}function Zt(){var t,r,e=ut-j-_;if(-1==e)e--;else if(_>=rt+bt){for(t=0;t=rt?r-rt:yt);for(t=0;t=rt?r-rt:yt;e+=rt}O||((t=Xt(a,_+j,e))<=0?O=!0:j+=t)}function tr(){O||(s=0,p=0,function(){var t,r,e,n,o;if(0!=F[0].dl)return;for(L.dyn_tree=T,L.static_tree=C,L.extra_bits=Rt,L.extra_base=Ot+1,L.elems=St,L.max_length=mt,L.max_code=0,I.dyn_tree=E,I.static_tree=F,I.extra_bits=zt,I.extra_base=0,I.elems=xt,I.max_length=mt,I.max_code=0,k.dyn_tree=M,k.static_tree=null,k.extra_bits=Nt,k.extra_base=0,k.elems=At,k.max_length=_t,k.max_code=0,e=0,n=0;n>=7;nj&&(g=j),g>=at)if(t=lr(_-w,g-at),j-=g,g<=x){g--;do{_++,Kt()}while(0!=--g);_++}else _+=g,g=0,y=((y=255&a[_])<j&&(g=j),g==at&&_-w>dt&&g--),m>=at&&g<=m){var t;t=lr(_-1-h,m-at),j-=m-1,m-=2;do{_++,Kt()}while(0!=--m);b=0,g=at-1,_++,t&&(fr(0),v=_)}else 0!=b?(lr(0,255&a[_-1])&&(fr(0),v=_),_++,j--):(b=1,_++,j--);for(;jr.len&&(a=r.len),c=0;co-i&&(a=o-i),c=0;c>1;r>=1;r--)or(n,r);do{r=R[gt],R[gt]=R[z--],or(n,gt),e=R[gt],R[--N]=r,R[--N]=e,n[a].fc=n[r].fc+n[e].fc,G[r]>G[e]+1?G[a]=G[r]:G[a]=G[e]+1,n[r].dl=n[e].dl=a,R[gt]=a++,or(n,gt)}while(z>=2);R[--N]=R[gt],function(t){var r,e,n,o,i,u,a=t.dyn_tree,c=t.extra_bits,f=t.extra_base,l=t.max_code,s=t.max_length,p=t.static_tree,v=0;for(o=0;o<=mt;o++)D[o]=0;for(a[R[N]].dl=0,r=N+1;rs&&(o=s,v++),a[e].dl=o,e>l||(D[o]++,i=0,e>=f&&(i=c[e-f]),u=a[e].fc,X+=u*(o+i),null!=p&&(Q+=u*(p[e].dl+i)));if(0!=v){do{for(o=s-1;0==D[o];)o--;D[o]--,D[o+1]+=2,D[s]--,v-=2}while(v>0);for(o=s;0!=o;o--)for(e=D[o];0!=e;)(n=R[--r])>l||(a[n].dl!=o&&(X+=(o-a[n].dl)*a[n].fc,a[n].fc=o),e--)}}(t),ir(n,u)}function ar(t,r){var e,n,o=-1,i=t[0].dl,u=0,a=7,c=4;for(0==i&&(a=138,c=3),t[r+1].dl=65535,e=0;e<=r;e++)n=i,i=t[e+1].dl,++u=3&&0==M[Gt[t]].dl;t--);return X+=3*(t+1)+5+5+4,t}(),(e=Q+3+7>>3)<=(r=X+3+7>>3)&&(r=e),o+4<=r&&v>=0)for(vr((et<<1)+t,3),dr(),Ht(o),Ht(~o),i=0;i2&&0==(4095&H)){var e,n=8*H,o=_-v;for(e=0;e>=3,K>=1}while(upr-r?(Ht(s|=t<>pr-p,p+=r-pr):(s|=t<>=1,e<<=1}while(--r>0);return e>>1}function dr(){p>8?Ht(s):p>0&&Vt(s),s=0,p=0}return function(o,i){var u,s;Z=o,tt=0,void 0===i&&(i=6),function(o){var i;if(o?o<1?o=1:o>9&&(o=9):o=6,A=o,n=!1,O=!1,null==Mt){for(t=r=e=null,Mt=new Array(it),a=new Array(ut),c=new Array(lt),f=new Array(32832),l=new Array(65536),T=new Array(Ct),i=0;i0;){var y=new Array(u);for(s=0;s>4,o=(15&r)<<2|e>>6,i=63&e,u="";return u+=Tf(63&t>>2),u+=Tf(63&n),u+=Tf(63&o),u+=Tf(63&i)}function Tf(t){var r=t;return r<10?String.fromCharCode(48+r):(r-=10)<26?String.fromCharCode(65+r):(r-=26)<26?String.fromCharCode(97+r):0===(r-=26)?"-":1===r?"_":"?"}function Ef(t,r){var e,n=unescape(encodeURIComponent(t));return Ru(e="".concat(r,"/svg/")).call(e,function(t){for(var r="",e=0;e0&&void 0!==arguments[0]?arguments[0]:{};Mu(this,t);this.baseUrl=null!==(r=e.baseUrl)&&void 0!==r?r:"http://www.plantuml.com/plantuml"}return Iu(t,[{key:"render",value:function(t,r){var e,n,o=r;o||(o=Math.round(1e8*Math.random()));var i=Ru(e="plantuml-".concat(o,"-")).call(e,(new Date).getTime());return Ru(n='')}}],[{key:"install",value:function(r,e){var n;lf(r,{engine:{syntax:{codeBlock:{customRenderer:{plantuml:new t(Af(Af({},e),null!==(n=r.engine.syntax.plantuml)&&void 0!==n?n:{}))}}}}})}}]),t}();return Cf})); diff --git a/dist/cherry-markdown.core.common.d.ts b/dist/cherry-markdown.core.common.d.ts index d565ac2c..e0f4da5a 100644 --- a/dist/cherry-markdown.core.common.d.ts +++ b/dist/cherry-markdown.core.common.d.ts @@ -1,3 +1,3 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:94638491176c689c7e489fd6f73482a4e228ffaba22fcbd31992ec4d614be7a9 -size 138 +import Cherry, { MenuHookBase, SyntaxHookBase } from "./types/index.core"; +export { MenuHookBase, SyntaxHookBase }; +export default Cherry; \ No newline at end of file diff --git a/dist/cherry-markdown.core.common.js b/dist/cherry-markdown.core.common.js index 4b96f6fb..78066961 100644 --- a/dist/cherry-markdown.core.common.js +++ b/dist/cherry-markdown.core.common.js @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1dada3506ed45414033ffbcff4f8a9f391993a7d10b47b8c2029a671e80347fc -size 1575295 +"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("jsdom"),t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e,t){return e(t={exports:{}},t.exports),t.exports}function i(e){return e&&e.default||e}var o,a,A=function(e){return e&&e.Math===Math&&e},s=A("object"==typeof globalThis&&globalThis)||A("object"==typeof window&&window)||A("object"==typeof self&&self)||A("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),l=function(e){try{return!!e()}catch(e){return!0}},c=!l((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),u=c,f=Function.prototype,h=f.apply,d=f.call,p="object"==typeof Reflect&&Reflect.apply||(u?d.bind(h):function(){return d.apply(h,arguments)}),g=Function.prototype,m=g.call,v=u&&g.bind.bind(m,m),y=u?v:function(e){return function(){return m.apply(e,arguments)}},b=y({}.toString),w=y("".slice),B=function(e){return w(b(e),8,-1)},T="object"==typeof document&&document.all,C={all:T,IS_HTMLDDA:void 0===T&&void 0!==T},E=C.all,k=C.IS_HTMLDDA?function(e){return"function"==typeof e||e===E}:function(e){return"function"==typeof e},Q=!l((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),x=Function.prototype.call,_=u?x.bind(x):function(){return x.apply(x,arguments)},S={}.propertyIsEnumerable,L=Object.getOwnPropertyDescriptor,F=L&&!S.call({1:2},1)?function(e){var t=L(this,e);return!!t&&t.enumerable}:S,I={f:F},U=Object,H=y("".split),M=l((function(){return!U("z").propertyIsEnumerable(0)}))?function(e){return"String"===B(e)?H(e,""):U(e)}:U,N=function(e){return null==e},O=TypeError,D=M,R=function(e){if(N(e))throw O("Can't call method on "+e);return e},P=k,K=C.all,$=C.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:P(e)||e===K}:function(e){return"object"==typeof e?null!==e:P(e)},G={},X=s,j=function(e){return P(e)?e:void 0},V=y({}.isPrototypeOf),q="undefined"!=typeof navigator&&String(navigator.userAgent)||"",W=X.process,z=X.Deno,J=W&&W.versions||z&&z.version,Y=J&&J.v8;Y&&(a=(o=Y.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!a&&q&&(!(o=q.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=q.match(/Chrome\/(\d+)/))&&(a=+o[1]);var Z=a,ee=X.String,te=!!Object.getOwnPropertySymbols&&!l((function(){var e=Symbol("symbol detection");return!ee(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Z&&Z<41})),ne=te,re=ne&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ie=function(e,t){return arguments.length<2?j(G[e])||j(X[e]):G[e]&&G[e][t]||X[e]&&X[e][t]},oe=V,ae=re,Ae=Object,se=ae?function(e){return"symbol"==typeof e}:function(e){var t=ie("Symbol");return P(t)&&oe(t.prototype,Ae(e))},le=String,ce=function(e){try{return le(e)}catch(e){return"Object"}},ue=TypeError,fe=function(e){if(P(e))return e;throw ue(ce(e)+" is not a function")},he=_,de=$,pe=TypeError,ge=Object.defineProperty,me=function(e,t){try{ge(X,e,{value:t,configurable:!0,writable:!0})}catch(n){X[e]=t}return t},ve="__core-js_shared__",ye=X[ve]||me(ve,{}),be=!0,we=ye,Be=r((function(e){(e.exports=function(e,t){return we[e]||(we[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.32.1",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),Te=Object,Ce=function(e){return Te(R(e))},Ee=y({}.hasOwnProperty),ke=Object.hasOwn||function(e,t){return Ee(Ce(e),t)},Qe=0,xe=Math.random(),_e=y(1..toString),Se=Be,Le=ke,Fe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+_e(++Qe+xe,36)},Ie=X.Symbol,Ue=Se("wks"),He=ae?Ie.for||Ie:Ie&&Ie.withoutSetter||Fe,Me=se,Ne=function(e,t){var n=e[t];return N(n)?void 0:fe(n)},Oe=function(e,t){var n,r;if("string"===t&&P(n=e.toString)&&!de(r=he(n,e)))return r;if(P(n=e.valueOf)&&!de(r=he(n,e)))return r;if("string"!==t&&P(n=e.toString)&&!de(r=he(n,e)))return r;throw pe("Can't convert object to primitive value")},De=function(e){return Le(Ue,e)||(Ue[e]=ne&&Le(Ie,e)?Ie[e]:He("Symbol."+e)),Ue[e]},Re=TypeError,Pe=De("toPrimitive"),Ke=function(e,t){if(!de(e)||Me(e))return e;var n,r=Ne(e,Pe);if(r){if(void 0===t&&(t="default"),n=he(r,e,t),!de(n)||Me(n))return n;throw Re("Can't convert object to primitive value")}return void 0===t&&(t="number"),Oe(e,t)},$e=X.document,Ge=de($e)&&de($e.createElement),Xe=Q,je=function(e){return Ge?$e.createElement(e):{}},Ve=!Xe&&!l((function(){return 7!==Object.defineProperty(je("div"),"a",{get:function(){return 7}}).a})),qe=I,We=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ze=function(e){return D(R(e))},Je=function(e){var t=Ke(e,"string");return Me(t)?t:t+""},Ye=Ve,Ze=Object.getOwnPropertyDescriptor,et={f:Xe?Ze:function(e,t){if(e=ze(e),t=Je(t),Ye)try{return Ze(e,t)}catch(e){}if(Le(e,t))return We(!he(qe.f,e,t),e[t])}},tt=/#|\.prototype\./,nt=function(e,t){var n=it[rt(e)];return n===at||n!==ot&&(P(t)?l(t):!!t)},rt=nt.normalize=function(e){return String(e).replace(tt,".").toLowerCase()},it=nt.data={},ot=nt.NATIVE="N",at=nt.POLYFILL="P",At=nt,st=function(e){if("Function"===B(e))return y(e)},lt=st(st.bind),ct=Xe&&l((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ut=String,ft=TypeError,ht=ct,dt=function(e){if(de(e))return e;throw ft(ut(e)+" is not an object")},pt=TypeError,gt=Object.defineProperty,mt=Object.getOwnPropertyDescriptor,vt="enumerable",yt="configurable",bt="writable",wt={f:Xe?ht?function(e,t,n){if(dt(e),t=Je(t),dt(n),"function"==typeof e&&"prototype"===t&&"value"in n&&bt in n&&!n[bt]){var r=mt(e,t);r&&r[bt]&&(e[t]=n.value,n={configurable:yt in n?n[yt]:r[yt],enumerable:vt in n?n[vt]:r[vt],writable:!1})}return gt(e,t,n)}:gt:function(e,t,n){if(dt(e),t=Je(t),dt(n),Ye)try{return gt(e,t,n)}catch(e){}if("get"in n||"set"in n)throw pt("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Bt=p,Tt=et,Ct=At,Et=function(e,t){return fe(e),void 0===t?e:u?lt(e,t):function(){return e.apply(t,arguments)}},kt=Xe?function(e,t,n){return wt.f(e,t,We(1,n))}:function(e,t,n){return e[t]=n,e},Qt=Tt.f,xt=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return Bt(e,this,arguments)};return t.prototype=e.prototype,t},_t=y([].slice),St=Function,Lt=y([].concat),Ft=y([].join),It={},Ut=u?St.bind:function(e){var t=fe(this),n=t.prototype,r=_t(arguments,1),i=function(){var n=Lt(r,_t(arguments));return this instanceof i?function(e,t,n){if(!Le(It,t)){for(var r=[],i=0;i0?on:rn)(t)},An=function(e){var t=+e;return t!=t||0===t?0:an(t)},sn=Math.max,ln=Math.min,cn=Math.min,un=function(e){return e>0?cn(An(e),9007199254740991):0},fn=function(e,t){var n=An(e);return n<0?sn(n+t,0):ln(n,t)},hn=function(e){return un(e.length)},dn=function(e){return function(t,n,r){var i,o=ze(t),a=hn(o),A=fn(r,a);if(e&&n!=n){for(;a>A;)if((i=o[A++])!=i)return!0}else for(;a>A;A++)if((e||A in o)&&o[A]===n)return e||A||0;return!e&&-1}},pn={includes:dn(!0),indexOf:dn(!1)},gn={},mn=pn.indexOf,vn=y([].push),yn=function(e,t){var n,r=ze(e),i=0,o=[];for(n in r)!Le(gn,n)&&Le(r,n)&&vn(o,n);for(;t.length>i;)Le(r,n=t[i++])&&(~mn(o,n)||vn(o,n));return o},bn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wn=Object.keys||function(e){return yn(e,bn)},Bn=Xe&&!ht?Object.defineProperties:function(e,t){dt(e);for(var n,r=ze(t),i=wn(t),o=i.length,a=0;o>a;)wt.f(e,n=i[a++],r[n]);return e},Tn={f:Bn},Cn=ie("document","documentElement"),En=Se("keys"),kn=Tn,Qn=Cn,xn=function(e){return En[e]||(En[e]=Fe(e))},_n="prototype",Sn="script",Ln=xn("IE_PROTO"),Fn=function(){},In=function(e){return"<"+Sn+">"+e+""},Un=function(e){e.write(In("")),e.close();var t=e.parentWindow.Object;return e=null,t},Hn=function(){try{Zt=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Hn="undefined"!=typeof document?document.domain&&Zt?Un(Zt):(t=je("iframe"),n="java"+Sn+":",t.style.display="none",Qn.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(In("document.F=Object")),e.close(),e.F):Un(Zt);for(var r=bn.length;r--;)delete Hn[_n][bn[r]];return Hn()};gn[Ln]=!0;var Mn=Object.create||function(e,t){var n;return null!==e?(Fn[_n]=dt(e),n=new Fn,Fn[_n]=null,n[Ln]=e):n=Hn(),void 0===t?n:kn.f(n,t)},Nn=function(e,t){var n,r,i,o,a,A,s,l,c,u=e.target,f=e.global,h=e.stat,d=e.proto,p=f?X:h?X[u]:(X[u]||{}).prototype,g=f?G:G[u]||kt(G,u,{})[u],m=g.prototype;for(o in t)r=!(n=Ct(f?o:u+(h?".":"#")+o,e.forced))&&p&&Le(p,o),A=g[o],r&&(s=e.dontCallGetSet?(c=Qt(p,o))&&c.value:p[o]),a=r&&s?s:t[o],r&&typeof A==typeof a||(l=e.bind&&r?Et(a,X):e.wrap&&r?xt(a):d&&P(a)?st(a):a,(e.sham||a&&a.sham||A&&A.sham)&&kt(l,"sham",!0),kt(g,o,l),d&&(Le(G,i=u+"Prototype")||kt(G,i,{}),kt(G[i],o,a),e.real&&m&&(n||!m[o])&&kt(m,o,a)))},On=Ut,Dn=function(e){if(tn(e))return e;throw nn(ce(e)+" is not a constructor")},Rn=Mn,Pn=ie("Reflect","construct"),Kn=Object.prototype,$n=[].push,Gn=l((function(){function e(){}return!(Pn((function(){}),[],e)instanceof e)})),Xn=!l((function(){Pn((function(){}))})),jn=Gn||Xn;Nn({target:"Reflect",stat:!0,forced:jn,sham:jn},{construct:function(e,t){Dn(e),dt(t);var n=arguments.length<3?e:Dn(arguments[2]);if(Xn&&!Gn)return Pn(e,t,n);if(e===n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return Bt($n,r,t),new(Bt(On,e,r))}var i=n.prototype,o=Rn(de(i)?i:Kn),a=Bt(e,o,t);return de(a)?a:o}});var Vn=G.Reflect.construct,qn=Vn,Wn=l((function(){wn(1)}));Nn({target:"Object",stat:!0,forced:Wn},{keys:function(e){return wn(Ce(e))}});var zn,Jn,Yn,Zn=G.Object.keys,er=Zn,tr=String,nr=bn.concat("length","prototype"),rr={f:Object.getOwnPropertyNames||function(e){return yn(e,nr)}},ir=function(e,t,n){var r=Je(t);r in e?wt.f(e,r,We(0,n)):e[r]=n},or=Array,ar=Math.max,Ar=rr,sr=function(e,t,n){for(var r=hn(e),i=fn(t,r),o=fn(void 0===n?r:n,r),a=or(ar(o-i,0)),A=0;iv;v++)if((A||v in p)&&(h=g(f=p[v],v,d),e))if(t)b[v]=h;else if(h)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:Fr(b,f)}else switch(e){case 4:return!1;case 7:Fr(b,f)}return o?-1:r||i?i:b}},Ur={forEach:Ir(0),map:Ir(1),filter:Ir(2),some:Ir(3),every:Ir(4),find:Ir(5),findIndex:Ir(6),filterReject:Ir(7)},Hr=function(e){if("Symbol"===$t(e))throw TypeError("Cannot convert a Symbol value to a string");return tr(e)},Mr=ur,Nr=fr,Or=function(e,t,n){return wt.f(e,t,n)},Dr=function(e){var t=G.Symbol||(G.Symbol={});Le(t,e)||dr(t,e,{value:hr.f(e)})},Rr=function(){var e=ie("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,r=De("toPrimitive");t&&!t[r]&&pr(t,r,(function(e){return he(n,this)}),{arity:1})},Pr=function(e,t,n,r){if(e){var i=n?e:e.prototype;Le(i,vr)||mr(i,vr,{configurable:!0,value:t}),r&&!Mt&&kt(i,"toString",gr)}},Kr=kr,$r=Ur,Gr=$r.forEach,Xr=xn("hidden"),jr="Symbol",Vr="prototype",qr=Kr.set,Wr=Kr.getterFor(jr),zr=Object[Vr],Jr=X.Symbol,Yr=Jr&&Jr[Vr],Zr=X.TypeError,ei=X.QObject,ti=Tt.f,ni=wt.f,ri=Mr.f,ii=qe.f,oi=y([].push),ai=Se("symbols"),Ai=Se("op-symbols"),si=Se("wks"),li=!ei||!ei[Vr]||!ei[Vr].findChild,ci=Xe&&l((function(){return 7!==Rn(ni({},"a",{get:function(){return ni(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=ti(zr,t);r&&delete zr[t],ni(e,t,n),r&&e!==zr&&ni(zr,t,r)}:ni,ui=function(e,t){var n=ai[e]=Rn(Yr);return qr(n,{type:jr,tag:e,description:t}),Xe||(n.description=t),n},fi=function(e,t,n){e===zr&&fi(Ai,t,n),dt(e);var r=Je(t);return dt(n),Le(ai,r)?(n.enumerable?(Le(e,Xr)&&e[Xr][r]&&(e[Xr][r]=!1),n=Rn(n,{enumerable:We(0,!1)})):(Le(e,Xr)||ni(e,Xr,We(1,{})),e[Xr][r]=!0),ci(e,r,n)):ni(e,r,n)},hi=function(e,t){dt(e);var n=ze(t),r=wn(n).concat(mi(n));return Gr(r,(function(t){Xe&&!he(di,n,t)||fi(e,t,n[t])})),e},di=function(e){var t=Je(e),n=he(ii,this,t);return!(this===zr&&Le(ai,t)&&!Le(Ai,t))&&(!(n||!Le(this,t)||!Le(ai,t)||Le(this,Xr)&&this[Xr][t])||n)},pi=function(e,t){var n=ze(e),r=Je(t);if(n!==zr||!Le(ai,r)||Le(Ai,r)){var i=ti(n,r);return!i||!Le(ai,r)||Le(n,Xr)&&n[Xr][r]||(i.enumerable=!0),i}},gi=function(e){var t=ri(ze(e)),n=[];return Gr(t,(function(e){Le(ai,e)||Le(gn,e)||oi(n,e)})),n},mi=function(e){var t=e===zr,n=ri(t?Ai:ze(e)),r=[];return Gr(n,(function(e){!Le(ai,e)||t&&!Le(zr,e)||oi(r,ai[e])})),r};ne||(Yr=(Jr=function(){if(oe(Yr,this))throw Zr("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Hr(arguments[0]):void 0,t=Fe(e),n=function(e){this===zr&&he(n,Ai,e),Le(this,Xr)&&Le(this[Xr],t)&&(this[Xr][t]=!1),ci(this,t,We(1,e))};return Xe&&li&&ci(zr,t,{configurable:!0,set:n}),ui(t,e)})[Vr],pr(Yr,"toString",(function(){return Wr(this).tag})),pr(Jr,"withoutSetter",(function(e){return ui(Fe(e),e)})),qe.f=di,wt.f=fi,kn.f=hi,Tt.f=pi,Ar.f=Mr.f=gi,Nr.f=mi,hr.f=function(e){return ui(De(e),e)},Xe&&Or(Yr,"description",{configurable:!0,get:function(){return Wr(this).description}})),Nn({global:!0,constructor:!0,wrap:!0,forced:!ne,sham:!ne},{Symbol:Jr}),Gr(wn(si),(function(e){Dr(e)})),Nn({target:jr,stat:!0,forced:!ne},{useSetter:function(){li=!0},useSimple:function(){li=!1}}),Nn({target:"Object",stat:!0,forced:!ne,sham:!Xe},{create:function(e,t){return void 0===t?Rn(e):hi(Rn(e),t)},defineProperty:fi,defineProperties:hi,getOwnPropertyDescriptor:pi}),Nn({target:"Object",stat:!0,forced:!ne},{getOwnPropertyNames:gi}),Rr(),Pr(Jr,jr),gn[Xr]=!0;var vi=ne&&!!Symbol.for&&!!Symbol.keyFor,yi=Se("string-to-symbol-registry"),bi=Se("symbol-to-string-registry");Nn({target:"Symbol",stat:!0,forced:!vi},{for:function(e){var t=Hr(e);if(Le(yi,t))return yi[t];var n=ie("Symbol")(t);return yi[t]=n,bi[n]=t,n}});var wi=Se("symbol-to-string-registry");Nn({target:"Symbol",stat:!0,forced:!vi},{keyFor:function(e){if(!Me(e))throw TypeError(ce(e)+" is not a symbol");if(Le(wi,e))return wi[e]}});var Bi=y([].push),Ti=function(e){if(P(e))return e;if(Qr(e)){for(var t=e.length,n=[],r=0;r=51||!l((function(){var t=[];return(t.constructor={})[Pi]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},$i=$r.filter,Gi=Ki("filter");Nn({target:"Array",proto:!0,forced:!Gi},{filter:function(e){return $i(this,e,arguments.length>1?arguments[1]:void 0)}});var Xi=function(e){return G[e+"Prototype"]},ji=Xi("Array").filter,Vi=Array.prototype,qi=function(e){var t=e.filter;return e===Vi||oe(Vi,e)&&t===Vi.filter?ji:t},Wi=qi,zi=Tt.f,Ji=!Xe||l((function(){zi(1)}));Nn({target:"Object",stat:!0,forced:Ji,sham:!Xe},{getOwnPropertyDescriptor:function(e,t){return zi(ze(e),t)}});var Yi,Zi,eo,to=r((function(e){var t=G.Object,n=e.exports=function(e,n){return t.getOwnPropertyDescriptor(e,n)};t.getOwnPropertyDescriptor.sham&&(n.sham=!0)})),no=to,ro=no,io=Function.prototype,oo=Xe&&Object.getOwnPropertyDescriptor,ao=Le(io,"name"),Ao={EXISTS:ao,PROPER:ao&&"something"===function(){}.name,CONFIGURABLE:ao&&(!Xe||Xe&&oo(io,"name").configurable)},so=!l((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),lo=xn("IE_PROTO"),co=Object,uo=co.prototype,fo=so?co.getPrototypeOf:function(e){var t=Ce(e);if(Le(t,lo))return t[lo];var n=t.constructor;return P(n)&&t instanceof n?n.prototype:t instanceof co?uo:null},ho=De("iterator"),po=!1;[].keys&&("next"in(eo=[].keys())?(Zi=fo(fo(eo)))!==Object.prototype&&(Yi=Zi):po=!0);var go=!de(Yi)||l((function(){var e={};return Yi[ho].call(e)!==e}));Yi=go?{}:Rn(Yi),P(Yi[ho])||pr(Yi,ho,(function(){return this}));var mo={IteratorPrototype:Yi,BUGGY_SAFARI_ITERATORS:po},vo={},yo=mo.IteratorPrototype,bo=function(){return this},wo=String,Bo=TypeError,To=function(e,t,n){try{return y(fe(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},Co=function(e){if("object"==typeof e||P(e))return e;throw Bo("Can't set "+wo(e)+" as a prototype")},Eo=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=To(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return dt(n),Co(r),t?e(n,r):n.__proto__=r,n}}():void 0),ko=Ao,Qo=function(e,t,n,r){var i=t+" Iterator";return e.prototype=Rn(yo,{next:We(+!r,n)}),Pr(e,i,!1,!0),vo[i]=bo,e},xo=Eo,_o=ko.PROPER,So=mo.BUGGY_SAFARI_ITERATORS,Lo=De("iterator"),Fo="keys",Io="values",Uo="entries",Ho=function(){return this},Mo=function(){},No=function(e,t,n,r,i,o,a){Qo(n,t,r);var A,s,l,c=function(e){if(e===i&&p)return p;if(!So&&e in h)return h[e];switch(e){case Fo:case Io:case Uo:return function(){return new n(this,e)}}return function(){return new n(this)}},u=t+" Iterator",f=!1,h=e.prototype,d=h[Lo]||h["@@iterator"]||i&&h[i],p=!So&&d||c(i),g="Array"===t&&h.entries||d;if(g&&(A=fo(g.call(new e)))!==Object.prototype&&A.next&&(Pr(A,u,!0,!0),vo[u]=Ho),_o&&i===Io&&d&&d.name!==Io&&(f=!0,p=function(){return he(d,this)}),i)if(s={values:c(Io),keys:o?p:c(Fo),entries:c(Uo)},a)for(l in s)(So||f||!(l in h))&&pr(h,l,s[l]);else Nn({target:t,proto:!0,forced:So||f},s);return a&&h[Lo]!==p&&pr(h,Lo,p,{name:i}),vo[t]=p,s},Oo=function(e,t){return{value:e,done:t}},Do=(wt.f,"Array Iterator"),Ro=Kr.set,Po=Kr.getterFor(Do);No(Array,"Array",(function(e,t){Ro(this,{type:Do,target:ze(e),index:0,kind:t})}),(function(){var e=Po(this),t=e.target,n=e.kind,r=e.index++;if(!t||r>=t.length)return e.target=void 0,Oo(void 0,!0);switch(n){case"keys":return Oo(r,!1);case"values":return Oo(t[r],!1)}return Oo([r,t[r]],!1)}),"values");vo.Arguments=vo.Array;Mo(),Mo(),Mo();var Ko={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},$o=De("toStringTag");for(var Go in Ko){var Xo=X[Go],jo=Xo&&Xo.prototype;jo&&$t(jo)!==$o&&kt(jo,$o,Go),vo[Go]=vo.Array}var Vo=function(e,t){var n=[][e];return!!n&&l((function(){n.call(null,t||function(){return 1},1)}))},qo=$r.forEach,Wo=Vo("forEach")?[].forEach:function(e){return qo(this,e,arguments.length>1?arguments[1]:void 0)};Nn({target:"Array",proto:!0,forced:[].forEach!==Wo},{forEach:Wo});var zo=Xi("Array").forEach,Jo=Array.prototype,Yo={DOMTokenList:!0,NodeList:!0},Zo=function(e){var t=e.forEach;return e===Jo||oe(Jo,e)&&t===Jo.forEach||Le(Yo,$t(e))?zo:t},ea=Zo,ta=y([].concat),na=ie("Reflect","ownKeys")||function(e){var t=Ar.f(dt(e)),n=Nr.f;return n?ta(t,n(e)):t},ra=na;Nn({target:"Object",stat:!0,sham:!Xe},{getOwnPropertyDescriptors:function(e){for(var t,n,r=ze(e),i=Tt.f,o=ra(r),a={},A=0;o.length>A;)void 0!==(n=i(r,t=o[A++]))&&ir(a,t,n);return a}});var ia=G.Object.getOwnPropertyDescriptors,oa=kn.f;Nn({target:"Object",stat:!0,forced:Object.defineProperties!==oa,sham:!Xe},{defineProperties:oa});var aa=r((function(e){var t=G.Object,n=e.exports=function(e,n){return t.defineProperties(e,n)};t.defineProperties.sham&&(n.sham=!0)})),Aa=aa,sa=wt.f;Nn({target:"Object",stat:!0,forced:Object.defineProperty!==sa,sham:!Xe},{defineProperty:sa});var la=r((function(e){var t=G.Object,n=e.exports=function(e,n,r){return t.defineProperty(e,n,r)};t.defineProperty.sham&&(n.sham=!0)})),ca=la;function ua(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var fa=la,ha=fa,da=TypeError,pa=function(e){if(e>9007199254740991)throw da("Maximum allowed index exceeded");return e},ga=De("isConcatSpreadable"),ma=Z>=51||!l((function(){var e=[];return e[ga]=!1,e.concat()[0]!==e})),va=function(e){if(!de(e))return!1;var t=e[ga];return void 0!==t?!!t:Qr(e)},ya=!ma||!Ki("concat");Nn({target:"Array",proto:!0,arity:1,forced:ya},{concat:function(e){var t,n,r,i,o,a=Ce(this),A=Lr(a,0),s=0;for(t=-1,r=arguments.length;t=A?e?"":void 0:(r=Ka(o,a))<55296||r>56319||a+1===A||(i=Ka(o,a+1))<56320||i>57343?e?Pa(o,a):r:e?$a(o,a,a+2):i-56320+(r-55296<<10)+65536}},Xa={codeAt:Ga(!1),charAt:Ga(!0)},ja=Xa.charAt,Va="String Iterator",qa=Kr.set,Wa=Kr.getterFor(Va);No(String,"String",(function(e){qa(this,{type:Va,string:Hr(e),index:0})}),(function(){var e,t=Wa(this),n=t.string,r=t.index;return r>=n.length?Oo(void 0,!0):(e=ja(n,r),t.index+=e.length,Oo(e,!1))}));var za=hr.f("iterator"),Ja=za;function Ya(e){return Ya="function"==typeof Ra&&"symbol"==typeof Ja?function(e){return typeof e}:function(e){return e&&"function"==typeof Ra&&e.constructor===Ra&&e!==Ra.prototype?"symbol":typeof e},Ya(e)}var Za=hr.f("toPrimitive");function eA(e){var t=function(e,t){if("object"!==Ya(e)||null===e)return e;var n=e[Za];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ya(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ya(t)?t:String(t)}function tA(e,t){for(var n=0;nn,a=P(r)?r:FA(r),A=o?_t(arguments,n):[],s=o?function(){Bt(a,this,A)}:a;return t?e(s,i):e(s)}:e},HA=UA(X.setInterval,!0);Nn({global:!0,bind:!0,forced:X.setInterval!==HA},{setInterval:HA});var MA=UA(X.setTimeout,!0);Nn({global:!0,bind:!0,forced:X.setTimeout!==MA},{setTimeout:MA});var NA=G.setTimeout;var OA=function(){this.__data__=[],this.size=0};var DA=function(e,t){return e===t||e!=e&&t!=t};var RA=function(e,t){for(var n=e.length;n--;)if(DA(e[n][0],t))return n;return-1},PA=Array.prototype.splice;var KA=function(e){var t=this.__data__,n=RA(t,e);return!(n<0)&&(n==t.length-1?t.pop():PA.call(t,n,1),--this.size,!0)};var $A=function(e){var t=this.__data__,n=RA(t,e);return n<0?void 0:t[n][1]};var GA=function(e){return RA(this.__data__,e)>-1};var XA=function(e,t){var n=this.__data__,r=RA(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function jA(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991};var bl=function(e){return null!=e&&yl(e.length)&&!fs(e)};var wl=function(e){return fl(e)&&bl(e)};var Bl=function(){return!1},Tl=r((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n?es.Buffer:void 0,o=(i?i.isBuffer:void 0)||Bl;e.exports=o})),Cl=Function.prototype,El=Object.prototype,kl=Cl.toString,Ql=El.hasOwnProperty,xl=kl.call(Object);var _l=function(e){if(!fl(e)||"[object Object]"!=cs(e))return!1;var t=sl(e);if(null===t)return!0;var n=Ql.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&kl.call(n)==xl},Sl={};Sl["[object Float32Array]"]=Sl["[object Float64Array]"]=Sl["[object Int8Array]"]=Sl["[object Int16Array]"]=Sl["[object Int32Array]"]=Sl["[object Uint8Array]"]=Sl["[object Uint8ClampedArray]"]=Sl["[object Uint16Array]"]=Sl["[object Uint32Array]"]=!0,Sl["[object Arguments]"]=Sl["[object Array]"]=Sl["[object ArrayBuffer]"]=Sl["[object Boolean]"]=Sl["[object DataView]"]=Sl["[object Date]"]=Sl["[object Error]"]=Sl["[object Function]"]=Sl["[object Map]"]=Sl["[object Number]"]=Sl["[object Object]"]=Sl["[object RegExp]"]=Sl["[object Set]"]=Sl["[object String]"]=Sl["[object WeakMap]"]=!1;var Ll=function(e){return fl(e)&&yl(e.length)&&!!Sl[cs(e)]};var Fl=function(e){return function(t){return e(t)}},Il=r((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n&&YA.process,o=function(){try{var e=r&&r.require&&r.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=o})),Ul=Il&&Il.isTypedArray,Hl=Ul?Fl(Ul):Ll;var Ml=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Nl=Object.prototype.hasOwnProperty;var Ol=function(e,t,n){var r=e[t];Nl.call(e,t)&&DA(r,n)&&(void 0!==n||t in e)||Js(e,t,n)};var Dl=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(rc);var ac=function(e,t){return oc(tc(e,t,Yl),e+"")};var Ac=function(e,t,n){if(!us(n))return!1;var r=typeof t;return!!("number"==r?bl(n)&&Kl(t,n.length):"string"==r&&t in n)&&DA(n[t],e)};var sc=function(e){return ac((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&Ac(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r1?arguments[1]:void 0;return dc?hc(this,e,t)||0:fc(this,e,t)}});var gc=Xi("Array").indexOf,mc=Array.prototype,vc=function(e){var t=e.indexOf;return e===mc||oe(mc,e)&&t===mc.indexOf?gc:t},yc=vc,bc=yc,wc=Zn;function Bc(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=wc(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(uc){var o=uc(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Tc=Object.assign,Cc=Object.defineProperty,Ec=y([].concat),kc=!Tc||l((function(){if(Xe&&1!==Tc({b:1},Tc(Cc({},"a",{enumerable:!0,get:function(){Cc(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!==Tc({},e)[n]||wn(Tc({},t)).join("")!==r}))?function(e,t){for(var n=Ce(e),r=arguments.length,i=1,o=Nr.f,a=qe.f;r>i;)for(var A,s=D(arguments[i++]),l=o?Ec(wn(s),o(s)):wn(s),c=l.length,u=0;c>u;)A=l[u++],Xe&&!he(a,s,A)||(n[A]=s[A]);return n}:Tc,Qc=kc;Nn({target:"Object",stat:!0,arity:2,forced:Object.assign!==Qc},{assign:Qc});var xc=G.Object.assign,_c=xc,Sc="\t\n\v\f\r                 \u2028\u2029\ufeff",Lc=y("".replace),Fc=RegExp("^["+Sc+"]+"),Ic=RegExp("(^|[^"+Sc+"])["+Sc+"]+$"),Uc=function(e){return function(t){var n=Hr(R(t));return 1&e&&(n=Lc(n,Fc,"")),2&e&&(n=Lc(n,Ic,"$1")),n}},Hc={start:Uc(1),end:Uc(2),trim:Uc(3)},Mc=ko.PROPER,Nc=Hc,Oc=Nc.trim;Nn({target:"String",proto:!0,forced:function(e){return l((function(){return!!Sc[e]()||"​…᠎"!=="​…᠎"[e]()||Mc&&Sc[e].name!==e}))}("trim")},{trim:function(){return Oc(this)}});var Dc=Xi("String").trim,Rc=String.prototype,Pc=function(e){var t=e.trim;return"string"==typeof e||e===Rc||oe(Rc,e)&&t===Rc.trim?Dc:t},Kc=Pc,$c=function(e,t,n){var r,i;dt(e);try{if(!(r=Ne(e,"return"))){if("throw"===t)throw n;return n}r=he(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return dt(r),n},Gc=De("iterator"),Xc=Array.prototype,jc=De("iterator"),Vc=function(e){if(!N(e))return Ne(e,jc)||Ne(e,"@@iterator")||vo[$t(e)]},qc=TypeError,Wc=function(e,t,n,r){try{return r?t(dt(n)[0],n[1]):t(n)}catch(t){$c(e,"throw",t)}},zc=function(e){return void 0!==e&&(vo.Array===e||Xc[Gc]===e)},Jc=function(e,t){var n=arguments.length<2?Vc(e):t;if(fe(n))return dt(he(n,e));throw qc(ce(e)+" is not iterable")},Yc=Array,Zc=De("iterator"),eu=!1;try{var tu=0,nu={next:function(){return{done:!!tu++}},return:function(){eu=!0}};nu[Zc]=function(){return this},Array.from(nu,(function(){throw 2}))}catch(e){}var ru=function(e){var t=Ce(e),n=tn(this),r=arguments.length,i=r>1?arguments[1]:void 0,o=void 0!==i;o&&(i=Et(i,r>2?arguments[2]:void 0));var a,A,s,l,c,u,f=Vc(t),h=0;if(!f||this===Yc&&zc(f))for(a=hn(t),A=n?new this(a):Yc(a);a>h;h++)u=o?i(t[h],h):t[h],ir(A,h,u);else for(c=(l=Jc(t,f)).next,A=n?new this:[];!(s=he(c,l)).done;h++)u=o?Wc(l,i,[s.value,h],!0):s.value,ir(A,h,u);return A.length=h,A},iu=function(e,t){if(!t&&!eu)return!1;var n=!1;try{var r={};r[Zc]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},ou=!iu((function(e){Array.from(e)}));Nn({target:"Array",stat:!0,forced:ou},{from:ru});var au=G.Array.from,Au=au,su=De("match"),lu=function(e){var t;return de(e)&&(void 0!==(t=e[su])?!!t:"RegExp"===B(e))},cu=TypeError,uu=De("match"),fu=function(e){if(lu(e))throw cu("The method doesn't accept regular expressions");return e},hu=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[uu]=!1,"/./"[e](t)}catch(e){}}return!1},du=(Tt.f,st("".startsWith)),pu=st("".slice),gu=Math.min,mu=hu("startsWith");Nn({target:"String",proto:!0,forced:!mu},{startsWith:function(e){var t=Hr(R(this));fu(e);var n=un(gu(arguments.length>1?arguments[1]:void 0,t.length)),r=Hr(e);return du?du(t,r,n):pu(t,n,n+r.length)===r}});var vu=Xi("String").startsWith,yu=String.prototype,bu=function(e){var t=e.startsWith;return"string"==typeof e||e===yu||oe(yu,e)&&t===yu.startsWith?vu:t},wu=bu,Bu=$r.find,Tu="find",Cu=!0;Tu in[]&&Array(1)[Tu]((function(){Cu=!1})),Nn({target:"Array",proto:!0,forced:Cu},{find:function(e){return Bu(this,e,arguments.length>1?arguments[1]:void 0)}}),Mo();var Eu=Xi("Array").find,ku=Array.prototype,Qu=function(e){var t=e.find;return e===ku||oe(ku,e)&&t===ku.find?Eu:t},xu=Qu,_u=r((function(e,t){e.exports=function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,A=a&&(r?document.documentMode||6:+(o||i)[1]),s=!o&&/WebKit\//.test(e),l=s&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\//.test(e),u=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),d=/PhantomJS/.test(e),p=!o&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),g=/Android/.test(e),m=p||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),v=p||/Mac/.test(t),y=/\bCrOS\b/.test(e),b=/win/i.test(t),w=u&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(u=!1,s=!0);var B=v&&(l||u&&(null==w||w<12.11)),T=n||a&&A>=9;function C(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var E,k=function(e,t){var n=e.className,r=C(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function Q(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function x(e,t){return Q(e).appendChild(t)}function _(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=A-o,a+=n-a%n,o=A+1}}p?H=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(H=function(e){try{e.select()}catch(e){}});var D=function(){this.id=null,this.f=null,this.time=0,this.handler=M(this.onTimeout,this)};function R(e,t){for(var n=0;n=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var V=[""];function q(e){for(;V.length<=e;)V.push(W(V)+" ");return V[e]}function W(e){return e[e.length-1]}function z(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){return t?!!(t.source.indexOf("\\w")>-1&&te(e))||t.test(e):te(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ie=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oe(e){return e.charCodeAt(0)>=768&&ie.test(e)}function ae(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function se(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var le=null;function ce(e,t,n){var r;le=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:le=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:le=i)}return null!=r?r:le}var ue=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,A=/[1n]/;function s(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var l="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var c=e.length,u=[],f=0;f-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function me(e,t){var n=pe(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function we(e){e.prototype.on=function(e,t){de(this,e,t)},e.prototype.off=function(e,t){ge(this,e,t)}}function Be(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Te(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ce(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ee(e){Be(e),Te(e)}function ke(e){return e.target||e.srcElement}function Qe(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),v&&e.ctrlKey&&1==t&&(t=3),t}var xe,_e,Se=function(){if(a&&A<9)return!1;var e=_("div");return"draggable"in e||"dragDrop"in e}();function Le(e){if(null==xe){var t=_("span","​");x(e,_("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(xe=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&A<8))}var n=xe?_("span","​"):_("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Fe(e){if(null!=_e)return _e;var t=x(e,document.createTextNode("AخA")),n=E(t,0,1).getBoundingClientRect(),r=E(t,1,2).getBoundingClientRect();return Q(e),!(!n||n.left==n.right)&&(_e=r.right-n.right<3)}var Ie,Ue=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},He=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Me="oncopy"in(Ie=_("div"))||(Ie.setAttribute("oncopy","return;"),"function"==typeof Ie.oncopy),Ne=null;function Oe(e){if(null!=Ne)return Ne;var t=x(e,_("span","x")),n=t.getBoundingClientRect(),r=E(t,0,1).getBoundingClientRect();return Ne=Math.abs(n.left-r.left)>1}var De={},Re={};function Pe(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),De[e]=t}function Ke(e,t){Re[e]=t}function $e(e){if("string"==typeof e&&Re.hasOwnProperty(e))e=Re[e];else if(e&&"string"==typeof e.name&&Re.hasOwnProperty(e.name)){var t=Re[e.name];"string"==typeof t&&(t={name:t}),(e=Z(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return $e("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return $e("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ge(e,t){t=$e(t);var n=De[t.name];if(!n)return Ge(e,"text/plain");var r=n(e,t);if(Xe.hasOwnProperty(t.name)){var i=Xe[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Xe={};function je(e,t){N(t,Xe.hasOwnProperty(e)?Xe[e]:Xe[e]={})}function Ve(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function qe(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function We(e,t,n){return!e.startState||e.startState(t,n)}var ze=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Je(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?ot(n,Je(e,n).text.length):ht(t,Je(e,t.line).text.length)}function ht(e,t){var n=e.ch;return null==n||n>t?ot(e.line,t):n<0?ot(e.line,0):e}function dt(e,t){for(var n=[],r=0;r=this.string.length},ze.prototype.sol=function(){return this.pos==this.lineStart},ze.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ze.prototype.next=function(){if(this.post},ze.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},ze.prototype.skipToEnd=function(){this.pos=this.string.length},ze.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},ze.prototype.backUp=function(e){this.pos-=e},ze.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},ze.prototype.current=function(){return this.string.slice(this.start,this.pos)},ze.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},ze.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},ze.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var pt=function(e,t){this.state=e,this.lookAhead=t},gt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function mt(e,t,n,r){var i=[e.state.modeGen],o={};kt(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,A=function(r){n.baseTokens=i;var A=e.state.overlays[r],s=1,l=0;n.state=!0,kt(e,t.text,A.mode,n,(function(e,t){for(var n=s;le&&i.splice(s,1,e,i[s+1],r),s+=2,l=Math.min(e,r)}if(t)if(A.opaque)i.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;ne.options.maxHighlightLength&&Ve(e.doc.mode,r.state),o=mt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function yt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new gt(r,!0,t);var o=Qt(e,t,n),a=o>r.first&&Je(r,o-1).stateAfter,A=a?gt.fromSaved(r,a,o):new gt(r,We(r.mode),o);return r.iter(o,t,(function(n){bt(e,n.text,A);var r=A.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&rt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}gt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},gt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},gt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},gt.fromSaved=function(e,t,n){return t instanceof pt?new gt(e,Ve(e.mode,t.state),n,t.lookAhead):new gt(e,Ve(e.mode,t),n)},gt.prototype.save=function(e){var t=!1!==e?Ve(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new pt(t,this.maxLookAhead):t};var Tt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Ct(e,t,n,r){var i,o,a=e.doc,A=a.mode,s=Je(a,(t=ft(a,t)).line),l=yt(e,t.line,n),c=new ze(s.text,e.options.tabSize,l);for(r&&(o=[]);(r||c.pose.options.maxHighlightLength?(A=!1,a&&bt(e,t,r,u.pos),u.pos=t.length,s=null):s=Et(Bt(n,u,r.state,f),o),f){var h=f[0].name;h&&(s="m-"+(s?h+" "+s:h))}if(!A||c!=s){for(;la;--A){if(A<=o.first)return o.first;var s=Je(o,A-1),l=s.stateAfter;if(l&&(!n||A+(l instanceof pt?l.lookAhead:0)<=o.modeFrontier))return A;var c=O(s.text,null,e.options.tabSize);(null==i||r>c)&&(i=A-1,r=c)}return i}function xt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=Je(e,r).stateAfter;if(i&&(!(i instanceof pt)||r+i.lookAhead=t:o.to>t);(r||(r=[])).push(new It(a,o.from,A?null:o.to))}}return r}function Ot(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var A=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&A)for(var y=0;y0)){var c=[s,1],u=at(l.from,A.from),f=at(l.to,A.to);(u<0||!a.inclusiveLeft&&!u)&&c.push({from:l.from,to:A.from}),(f>0||!a.inclusiveRight&&!f)&&c.push({from:A.to,to:l.to}),i.splice.apply(i,c),s+=c.length-3}}return i}function Kt(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!n||jt(n,o.marker)<0)&&(n=o.marker)}return n}function Jt(e,t,n,r,i){var o=Je(e,t),a=St&&o.markedSpans;if(a)for(var A=0;A=0&&u<=0||c<=0&&u>=0)&&(c<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?at(l.to,n)>=0:at(l.to,n)>0)||c>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?at(l.from,r)<=0:at(l.from,r)<0)))return!0}}}function Yt(e){for(var t;t=qt(e);)e=t.find(-1,!0).line;return e}function Zt(e){for(var t;t=Wt(e);)e=t.find(1,!0).line;return e}function en(e){for(var t,n;t=Wt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function tn(e,t){var n=Je(e,t),r=Yt(n);return n==r?t:tt(r)}function nn(e,t){if(t>e.lastLine())return t;var n,r=Je(e,t);if(!rn(e,r))return t;for(;n=Wt(r);)r=n.find(1,!0).line;return tt(r)+1}function rn(e,t){var n=St&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var ln=function(e,t,n){this.text=e,$t(this,t),this.height=n?n(this):1};function cn(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Kt(e),$t(e,n);var i=r?r(e):1;i!=e.height&&et(e,i)}function un(e){e.parent=null,Kt(e)}ln.prototype.lineNo=function(){return tt(this)},we(ln);var fn={},hn={};function dn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?hn:fn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function pn(e,t){var n=S("span",null,null,s?"padding-right: .1px":null),r={pre:S("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=mn,Fe(e.display.measure)&&(a=fe(o,e.doc.direction))&&(r.addToken=yn(r.addToken,a)),r.map=[],wn(o,r,vt(e,o,t!=e.display.externalMeasured&&tt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=U(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=U(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Le(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(s){var A=r.content.lastChild;(/\bcm-tab\b/.test(A.className)||A.querySelector&&A.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return me(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=U(r.pre.className,r.textClass||"")),r}function gn(e){var t=_("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function mn(e,t,n,r,i,o,s){if(t){var l,c=e.splitSpaces?vn(t,e.trailingSpace):t,u=e.cm.state.specialChars,f=!1;if(u.test(t)){l=document.createDocumentFragment();for(var h=0;;){u.lastIndex=h;var d=u.exec(t),p=d?d.index-h:t.length-h;if(p){var g=document.createTextNode(c.slice(h,h+p));a&&A<9?l.appendChild(_("span",[g])):l.appendChild(g),e.map.push(e.pos,e.pos+p,g),e.col+=p,e.pos+=p}if(!d)break;h+=p+1;var m=void 0;if("\t"==d[0]){var v=e.cm.options.tabSize,y=v-e.col%v;(m=l.appendChild(_("span",q(y),"cm-tab"))).setAttribute("role","presentation"),m.setAttribute("cm-text","\t"),e.col+=y}else"\r"==d[0]||"\n"==d[0]?((m=l.appendChild(_("span","\r"==d[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",d[0]),e.col+=1):((m=e.cm.options.specialCharPlaceholder(d[0])).setAttribute("cm-text",d[0]),a&&A<9?l.appendChild(_("span",[m])):l.appendChild(m),e.col+=1);e.map.push(e.pos,e.pos+1,m),e.pos++}}else e.col+=t.length,l=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,l),a&&A<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||i||f||o||s){var b=n||"";r&&(b+=r),i&&(b+=i);var w=_("span",[l],b,o);if(s)for(var B in s)s.hasOwnProperty(B)&&"style"!=B&&"class"!=B&&w.setAttribute(B,s[B]);return e.content.appendChild(w)}e.content.appendChild(l)}}function vn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;il&&u.from<=l);f++);if(u.to>=c)return e(n,r,i,o,a,A,s);e(n,r.slice(0,u.to-l),i,o,null,A,s),o=null,r=r.slice(u.to-l),l=u.to}}}function bn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function wn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,A,s,l,c,u,f,h=i.length,d=0,p=1,g="",m=0;;){if(m==d){s=l=c=A="",f=null,u=null,m=1/0;for(var v=[],y=void 0,b=0;bd||B.collapsed&&w.to==d&&w.from==d)){if(null!=w.to&&w.to!=d&&m>w.to&&(m=w.to,l=""),B.className&&(s+=" "+B.className),B.css&&(A=(A?A+";":"")+B.css),B.startStyle&&w.from==d&&(c+=" "+B.startStyle),B.endStyle&&w.to==m&&(y||(y=[])).push(B.endStyle,w.to),B.title&&((f||(f={})).title=B.title),B.attributes)for(var T in B.attributes)(f||(f={}))[T]=B.attributes[T];B.collapsed&&(!u||jt(u.marker,B)<0)&&(u=w)}else w.from>d&&m>w.from&&(m=w.from)}if(y)for(var C=0;C=h)break;for(var k=Math.min(h,m);;){if(g){var Q=d+g.length;if(!u){var x=Q>k?g.slice(0,k-d):g;t.addToken(t,x,a?a+s:s,c,d+x.length==m?l:"",A,f)}if(Q>=k){g=g.slice(k-d),d=k;break}d=Q,c=""}g=i.slice(o,o=n[p++]),a=dn(n[p++],t.cm.options)}}else for(var _=1;_2&&o.push((s.bottom+l.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Yn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;rn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Zn(e,t){var n=tt(t=Yt(t)),r=e.display.externalMeasured=new Bn(e.doc,t,n);r.lineN=n;var i=r.built=pn(e,r);return r.text=i.pre,x(e.display.lineMeasure,i.pre),r}function er(e,t,n,r){return rr(e,nr(e,t),n,r)}function tr(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(i=(o=s-A)-1,t>=s&&(a="right")),null!=i){if(r=e[l+2],A==s&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;l&&e[l-2]==e[l-3]&&e[l-1].insertLeft;)r=e[2+(l-=3)],a="left";if("right"==n&&i==s-A)for(;l=0&&(n=e[i]).left==n.right;i--);return n}function sr(e,t,n,r){var i,o=ar(t.map,n,r),s=o.node,l=o.start,c=o.end,u=o.collapse;if(3==s.nodeType){for(var f=0;f<4;f++){for(;l&&oe(t.line.text.charAt(o.coverStart+l));)--l;for(;o.coverStart+c0&&(u=r="right"),i=e.options.lineWrapping&&(h=s.getClientRects()).length>1?h["right"==r?h.length-1:0]:s.getBoundingClientRect()}if(a&&A<9&&!l&&(!i||!i.left&&!i.right)){var d=s.parentNode.getClientRects()[0];i=d?{left:d.left,right:d.left+Sr(e.display),top:d.top,bottom:d.bottom}:or}for(var p=i.top-t.rect.top,g=i.bottom-t.rect.top,m=(p+g)/2,v=t.view.measure.heights,y=0;y=r.text.length?(s=r.text.length,l="before"):s<=0&&(s=0,l="after"),!A)return a("before"==l?s-1:s,"before"==l);function c(e,t,n){return a(n?e-1:e,1==A[t].level!=n)}var u=ce(A,s,l),f=le,h=c(s,u,"before"==l);return null!=f&&(h.other=c(s,f,"before"!=l)),h}function br(e,t){var n=0;t=ft(e.doc,t),e.options.lineWrapping||(n=Sr(e.display)*t.ch);var r=Je(e.doc,t.line),i=an(r)+Xn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function wr(e,t,n,r,i){var o=ot(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Br(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return wr(r.first,0,null,-1,-1);var i=nt(r,n),o=r.first+r.size-1;if(i>o)return wr(r.first+r.size-1,Je(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Je(r,i);;){var A=kr(e,a,i,t,n),s=zt(a,A.ch+(A.xRel>0||A.outside>0?1:0));if(!s)return A;var l=s.find(1);if(l.line==i)return l;a=Je(r,i=l.line)}}function Tr(e,t,n,r){r-=pr(t);var i=t.text.length,o=Ae((function(t){return rr(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=Ae((function(t){return rr(e,n,t).top>r}),o,i)}}function Cr(e,t,n,r){return n||(n=nr(e,t)),Tr(e,t,n,gr(e,t,rr(e,n,r),"line").top)}function Er(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function kr(e,t,n,r,i){i-=an(t);var o=nr(e,t),a=pr(t),A=0,s=t.text.length,l=!0,c=fe(t,e.doc.direction);if(c){var u=(e.options.lineWrapping?xr:Qr)(e,t,n,o,c,r,i);A=(l=1!=u.level)?u.from:u.to-1,s=l?u.to:u.from-1}var f,h,d=null,p=null,g=Ae((function(t){var n=rr(e,o,t);return n.top+=a,n.bottom+=a,!!Er(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(d=t,p=n),!0)}),A,s),m=!1;if(p){var v=r-p.left=b.bottom?1:0}return wr(n,g=ae(t.text,g,1),h,m,r-f)}function Qr(e,t,n,r,i,o,a){var A=Ae((function(A){var s=i[A],l=1!=s.level;return Er(yr(e,ot(n,l?s.to:s.from,l?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),s=i[A];if(A>0){var l=1!=s.level,c=yr(e,ot(n,l?s.from:s.to,l?"after":"before"),"line",t,r);Er(c,o,a,!0)&&c.top>a&&(s=i[A-1])}return s}function xr(e,t,n,r,i,o,a){var A=Tr(e,t,r,a),s=A.begin,l=A.end;/\s/.test(t.text.charAt(l-1))&&l--;for(var c=null,u=null,f=0;f=l||h.to<=s)){var d=rr(e,r,1!=h.level?Math.min(l,h.to)-1:Math.max(s,h.from)).right,p=dp)&&(c=h,u=p)}}return c||(c=i[i.length-1]),c.froml&&(c={from:c.from,to:l,level:c.level}),c}function _r(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==ir){ir=_("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)ir.appendChild(document.createTextNode("x")),ir.appendChild(_("br"));ir.appendChild(document.createTextNode("x"))}x(e.measure,ir);var n=ir.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),Q(e.measure),n||1}function Sr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=_("span","xxxxxxxxxx"),n=_("pre",[t],"CodeMirror-line-like");x(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Lr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var A=e.display.gutterSpecs[a].className;n[A]=o.offsetLeft+o.clientLeft+i,r[A]=o.clientWidth}return{fixedPos:Fr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Fr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ir(e){var t=_r(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Sr(e.display)-3);return function(i){if(rn(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a0&&(s=Je(e.doc,l.line).text).length==l.ch){var c=O(s,s.length,e.options.tabSize)-s.length;l=ot(l.line,Math.max(0,Math.round((o-Vn(e.display).left)/Sr(e.display))-c))}return l}function Mr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)St&&tn(e.doc,t)i.viewFrom?Dr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Dr(e);else if(t<=i.viewFrom){var o=Rr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Dr(e)}else if(n>=i.viewTo){var a=Rr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Dr(e)}else{var A=Rr(e,t,t,-1),s=Rr(e,n,n+r,1);A&&s?(i.view=i.view.slice(0,A.index).concat(Tn(e,A.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):Dr(e)}var l=i.externalMeasured;l&&(n=i.lineN&&t=r.viewTo)){var o=r.view[Mr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==R(a,n)&&a.push(n)}}}function Dr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Rr(e,t,n,r){var i,o=Mr(e,t),a=e.display.view;if(!St||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var A=e.display.viewFrom,s=0;s0){if(o==a.length-1)return null;i=A+a[o].size-t,o++}else i=A-t;t+=i,n+=i}for(;tn(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function Pr(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=Tn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Tn(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Mr(e,n)))),r.viewTo=n}function Kr(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||A.to().line0?t.blinker=setInterval((function(){e.hasFocus()||Yr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Wr(e){e.state.focused||(e.display.input.focus(),Jr(e))}function zr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Yr(e))}),100)}function Jr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(me(e,"focus",e,t),e.state.focused=!0,I(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),s&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),qr(e))}function Yr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(me(e,"blur",e,t),e.state.focused=!1,k(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Zr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.005||f<-.005)&&(et(i.line,s),ei(i.line),i.rest))for(var h=0;he.display.sizerWidth){var d=Math.ceil(l/Sr(e.display));d>e.display.maxLineLength&&(e.display.maxLineLength=d,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function ei(e){if(e.widgets)for(var t=0;t=a&&(o=nt(t,an(Je(t,s))-e.wrapper.clientHeight),a=s)}return{from:o,to:Math.max(a,o+1)}}function ni(e,t){if(!ve(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!d){var o=_("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Xn(e.display))+"px;\n height: "+(t.bottom-t.top+qn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function ri(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?ot(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?ot(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,A=yr(e,t),s=n&&n!=t?yr(e,n):A,l=oi(e,i={left:Math.min(A.left,s.left),top:Math.min(A.top,s.top)-r,right:Math.max(A.left,s.left),bottom:Math.max(A.bottom,s.bottom)+r}),c=e.doc.scrollTop,u=e.doc.scrollLeft;if(null!=l.scrollTop&&(fi(e,l.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=l.scrollLeft&&(di(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-u)>1&&(a=!0)),!a)break}return i}function ii(e,t){var n=oi(e,t);null!=n.scrollTop&&fi(e,n.scrollTop),null!=n.scrollLeft&&di(e,n.scrollLeft)}function oi(e,t){var n=e.display,r=_r(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=zn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var A=e.doc.height+jn(n),s=t.topA-r;if(t.topi+o){var c=Math.min(t.top,(l?A:t.bottom)-o);c!=i&&(a.scrollTop=c)}var u=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-u,h=Wn(e)-n.gutters.offsetWidth,d=t.right-t.left>h;return d&&(t.right=t.left+h),t.left<10?a.scrollLeft=0:t.lefth+f-3&&(a.scrollLeft=t.right+(d?0:10)-h),a}function ai(e,t){null!=t&&(ci(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Ai(e){ci(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function si(e,t,n){null==t&&null==n||ci(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function li(e,t){ci(e),e.curOp.scrollToPos=t}function ci(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,ui(e,br(e,t.from),br(e,t.to),t.margin))}function ui(e,t,n,r){var i=oi(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});si(e,i.scrollLeft,i.scrollTop)}function fi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||$i(e,{top:t}),hi(e,t,!0),n&&$i(e),Hi(e,100))}function hi(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function di(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Vi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function pi(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+jn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+qn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var gi=function(e,t,n){this.cm=n;var r=this.vert=_("div",[_("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=_("div",[_("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),de(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),de(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&A<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};gi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},gi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},gi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},gi.prototype.zeroWidthHack=function(){var e=v&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new D,this.disableVert=new D},gi.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},gi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var mi=function(){};function vi(e,t){t||(t=pi(e));var n=e.display.barWidth,r=e.display.barHeight;yi(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Zr(e),yi(e,pi(e)),n=e.display.barWidth,r=e.display.barHeight}function yi(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}mi.prototype.update=function(){return{bottom:0,right:0}},mi.prototype.setScrollLeft=function(){},mi.prototype.setScrollTop=function(){},mi.prototype.clear=function(){};var bi={native:gi,null:mi};function wi(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&k(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new bi[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),de(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?di(e,t):fi(e,t)}),e),e.display.scrollbars.addClass&&I(e.display.wrapper,e.display.scrollbars.addClass)}var Bi=0;function Ti(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Bi},En(e.curOp)}function Ci(e){var t=e.curOp;t&&Qn(t,(function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Ni(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Qi(e){e.updatedDisplay=e.mustUpdate&&Pi(e.cm,e.update)}function xi(e){var t=e.cm,n=t.display;e.updatedDisplay&&Zr(t),e.barMeasure=pi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=er(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+qn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Wn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function _i(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=yt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,A=o.text.length>e.options.maxHighlightLength?Ve(t.mode,r.state):null,s=mt(e,o,r,!0);A&&(r.state=A),o.styles=s.styles;var l=o.styleClasses,c=s.classes;c?o.styleClasses=c:l&&(o.styleClasses=null);for(var u=!a||a.length!=o.styles.length||l!=c&&(!l||!c||l.bgClass!=c.bgClass||l.textClass!=c.textClass),f=0;!u&&fn)return Hi(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Li(e,(function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Kr(e))return!1;qi(e)&&(Dr(e),t.dims=Lr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),St&&(o=tn(e.doc,o),a=nn(e.doc,a));var A=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Pr(e,o,a),n.viewOffset=an(Je(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=Kr(e);if(!A&&0==s&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var l=Di(e);return s>4&&(n.lineDiv.style.display="none"),Gi(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Ri(l),Q(n.cursorDiv),Q(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,A&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Hi(e,400)),n.updateLineNumbers=null,!0}function Ki(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Wn(e))r&&(t.visible=ti(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+jn(e.display)-zn(e),n.top)}),t.visible=ti(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Pi(e,t))break;Zr(e);var i=pi(e);$r(e),vi(e,i),ji(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function $i(e,t){var n=new Ni(e,t);if(Pi(e,n)){Zr(e),Ki(e,n);var r=pi(e);$r(e),vi(e,r),ji(e,r),n.finish()}}function Gi(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function A(t){var n=t.nextSibling;return s&&v&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var l=r.view,c=r.viewFrom,u=0;u-1&&(h=!1),Ln(e,f,c,n)),h&&(Q(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(it(e.options,c)))),a=f.node.nextSibling}else{var d=Dn(e,f,c,n);o.insertBefore(d,a)}c+=f.size}for(;a;)a=A(a)}function Xi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function ji(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+qn(e)+"px"}function Vi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Fr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;aA.clientWidth,c=A.scrollHeight>A.clientHeight;if(i&&l||o&&c){if(o&&v&&s)e:for(var f=t.target,h=a.view;f!=A;f=f.parentNode)for(var d=0;d=0&&at(e,r.to())<=0)return n}return-1};var oo=function(e,t){this.anchor=e,this.head=t};function ao(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return at(e.from(),t.from())})),n=R(t,i);for(var o=1;o0:s>=0){var l=ct(A.from(),a.from()),c=lt(A.to(),a.to()),u=A.empty()?a.from()==a.head:A.from()==A.head;o<=n&&--n,t.splice(--o,2,new oo(u?c:l,u?l:c))}}return new io(t,n)}function Ao(e,t){return new io([new oo(e,t||e)],0)}function so(e){return e.text?ot(e.from.line+e.text.length-1,W(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function lo(e,t){if(at(e,t.from)<0)return e;if(at(e,t.to)<=0)return so(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=so(t).ch-t.to.ch),ot(n,r)}function co(e,t){for(var n=[],r=0;r1&&e.remove(A.line+1,d-1),e.insert(A.line+1,m)}_n(e,"change",e,t)}function vo(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),W(e.done)):void 0}function ko(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,A=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>A-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=Eo(i,i.lastOp==r)))a=W(o.changes),0==at(t.from,t.to)&&0==at(t.from,a.to)?a.to=so(t):o.changes.push(To(e,t));else{var s=W(i.done);for(s&&s.ranges||_o(e.sel,i.done),o={changes:[To(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=A,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||me(e,"historyAdded")}function Qo(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function xo(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||Qo(e,o,W(i.done),t))?i.done[i.done.length-1]=t:_o(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Co(i.undone)}function _o(e,t){var n=W(t);n&&n.ranges&&n.equals(e)||t.push(e)}function So(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Lo(e){if(!e)return null;for(var t,n=0;n-1&&(W(A)[u]=l[u],delete l[u])}}}return r}function Ho(e,t,n,r){if(r){var i=e.anchor;if(n){var o=at(t,i)<0;o!=at(n,i)<0?(i=t,t=n):o!=at(t,n)<0&&(t=n)}return new oo(i,t)}return new oo(n||t,t)}function Mo(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Ko(e,new io([Ho(e.sel.primary(),t,n,i)],0),r)}function No(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:A.to>t.ch))){if(i&&(me(s,"beforeCursorEnter"),s.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!s.atomic)continue;if(n){var u=s.find(r<0?1:-1),f=void 0;if((r<0?c:l)&&(u=Wo(e,u,-r,u&&u.line==t.line?o:null)),u&&u.line==t.line&&(f=at(u,n))&&(r<0?f<0:f>0))return Vo(e,u,t,r,i)}var h=s.find(r<0?-1:1);return(r<0?l:c)&&(h=Wo(e,h,r,h.line==t.line?o:null)),h?Vo(e,h,t,r,i):null}}return t}function qo(e,t,n,r,i){var o=r||1,a=Vo(e,t,n,o,i)||!i&&Vo(e,t,n,o,!0)||Vo(e,t,n,-o,i)||!i&&Vo(e,t,n,-o,!0);return a||(e.cantEdit=!0,ot(e.first,0))}function Wo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ft(e,ot(t.line-1)):null:n>0&&t.ch==(r||Je(e,t.line)).text.length?t.line=0;--i)Zo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Zo(e,t)}}function Zo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=at(t.from,t.to)){var n=co(e,t);ko(e,t,n,e.cm?e.cm.curOp.id:NaN),na(e,t,n,Dt(e,t));var r=[];vo(e,(function(e,n){n||-1!=R(r,e.history)||(Aa(e.history,t),r.push(e.history)),na(e,t,null,Dt(e,t))}))}}function ea(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,A="undo"==t?o.done:o.undone,s="undo"==t?o.undone:o.done,l=0;l=0;--h){var d=f(h);if(d)return d.v}}}}function ta(e,t){if(0!=t&&(e.first+=t,e.sel=new io(z(e.sel.ranges,(function(e){return new oo(ot(e.anchor.line+t,e.anchor.ch),ot(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Nr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:ot(o,Je(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ye(e,t.from,t.to),n||(n=co(e,t)),e.cm?ra(e.cm,t,r):mo(e,t,r),$o(e,n,$),e.cantEdit&&qo(e,ot(e.firstLine(),0))&&(e.cantEdit=!1)}}function ra(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,A=!1,s=o.line;e.options.lineWrapping||(s=tt(Yt(Je(r,o.line))),r.iter(s,a.line+1,(function(e){if(e==i.maxLine)return A=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&ye(e),mo(r,t,n,Ir(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,(function(e){var t=An(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,A=!1)})),A&&(e.curOp.updateMaxLine=!0)),xt(r,o.line),Hi(e,400);var l=t.text.length-(a.line-o.line)-1;t.full?Nr(e):o.line!=a.line||1!=t.text.length||go(e.doc,t)?Nr(e,o.line,a.line+1,l):Or(e,o.line,"text");var c=be(e,"changes"),u=be(e,"change");if(u||c){var f={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};u&&_n(e,"change",e,f),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}function ia(e,t,n,r,i){var o;r||(r=n),at(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),Yo(e,{from:n,to:r,text:t,origin:i})}function oa(e,t,n,r){n1||!(this.children[0]instanceof la))){var A=[];this.collapse(A),this.children=[new la(A)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,A=a;A10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=S("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Jt(e,t.line,t,n,o)||t.line!=n.line&&Jt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ft()}o.addToHistory&&ko(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var A,s=t.line,l=e.cm;if(e.iter(s,n.line+1,(function(e){l&&o.collapsed&&!l.options.lineWrapping&&Yt(e)==l.display.maxLine&&(A=!0),o.collapsed&&s!=t.line&&et(e,0),Mt(e,new It(o,s==t.line?t.ch:null,s==n.line?n.ch:null)),++s})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){rn(e,t)&&et(t,0)})),o.clearOnEnter&&de(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Lt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++da,o.atomic=!0),l){if(A&&(l.curOp.updateMaxLine=!0),o.collapsed)Nr(l,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)Or(l,c,"text");o.atomic&&Xo(l.doc),_n(l,"markerAdded",l,o)}return o}pa.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Ti(e),be(this,"clear")){var n=this.find();n&&_n(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=l,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Nr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Xo(e.doc)),e&&_n(e,"markerCleared",e,this,r,i),t&&Ci(e),this.parent&&this.parent.clear()}},pa.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;s--)Yo(this,r[s]);A?Po(this,A):this.cm&&Ai(this.cm)})),undo:Ui((function(){ea(this,"undo")})),redo:Ui((function(){ea(this,"redo")})),undoSelection:Ui((function(){ea(this,"undo",!0)})),redoSelection:Ui((function(){ea(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=ft(this,e),t=ft(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var A=0;A=s.to||null==s.from&&i!=e.line||null!=s.from&&i==t.line&&s.from>=t.ch||n&&!n(s.marker)||r.push(s.marker.parent||s.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n})),ft(this,ot(n,t))},indexFromPos:function(e){var t=(e=ft(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var u=e.dataTransfer.getData("Text");if(u){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),$o(t.doc,Ao(n,n)),f)for(var h=0;h=0;t--)ia(e.doc,"",r[t].from,r[t].to,"+delete");Ai(e)}))}function Va(e,t,n){var r=ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function qa(e,t,n){var r=Va(e,t.ch,n);return null==r?null:new ot(t.line,r,n<0?"after":"before")}function Wa(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=fe(n,t.doc.direction);if(o){var a,A=i<0?W(o):o[0],s=i<0==(1==A.level)?"after":"before";if(A.level>0||"rtl"==t.doc.direction){var l=nr(t,n);a=i<0?n.text.length-1:0;var c=rr(t,l,a).top;a=Ae((function(e){return rr(t,l,e).top==c}),i<0==(1==A.level)?A.from:A.to-1,a),"before"==s&&(a=Va(n,a,1))}else a=i<0?A.to:A.from;return new ot(r,a,s)}}return new ot(r,i<0?n.text.length:0,i<0?"before":"after")}function za(e,t,n,r){var i=fe(t,e.doc.direction);if(!i)return qa(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ce(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&f>=c.begin)){var h=u?"before":"after";return new ot(n.line,f,h)}}var d=function(e,t,r){for(var o=function(e,t){return t?new ot(n.line,s(e,1),"before"):new ot(n.line,e,"after")};e>=0&&e0==(1!=a.level),l=A?r.begin:s(r.end,-1);if(a.from<=l&&l0?c.end:s(c.begin,-1);return null==g||r>0&&g==t.text.length||!(p=d(r>0?0:i.length-1,r,l(g)))?null:p}Oa.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Oa.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Oa.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Oa.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Oa.default=v?Oa.macDefault:Oa.pcDefault;var Ja={selectAll:zo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),$)},killLine:function(e){return ja(e,(function(t){if(t.empty()){var n=Je(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new ot(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ot(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Je(e.doc,i.line-1).text;a&&(i=new ot(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),ot(i.line-1,a.length-1),i,"+transpose"))}n.push(new oo(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Li(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(at((i=A.ranges[i]).from(),t)<0||t.xRel>0)&&(at(i.to(),t)>0||t.xRel<0)?BA(e,r,t,o):CA(e,r,t,o)}function BA(e,t,n,r){var i=e.display,o=!1,l=Fi(e,(function(t){s&&(i.scroller.draggable=!1),e.state.draggingText=!1,ge(i.wrapper.ownerDocument,"mouseup",l),ge(i.wrapper.ownerDocument,"mousemove",c),ge(i.scroller,"dragstart",u),ge(i.scroller,"drop",l),o||(Be(t),r.addNew||Mo(e.doc,n,null,null,r.extend),s&&!f||a&&9==A?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},u=function(){return o=!0};s&&(i.scroller.draggable=!0),e.state.draggingText=l,l.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),de(i.wrapper.ownerDocument,"mouseup",l),de(i.wrapper.ownerDocument,"mousemove",c),de(i.scroller,"dragstart",u),de(i.scroller,"drop",l),zr(e),setTimeout((function(){return i.input.focus()}),20)}function TA(e,t,n){if("char"==n)return new oo(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new oo(ot(t.line,0),ft(e.doc,ot(t.line+1,0)));var r=n(e,t);return new oo(r.from,r.to)}function CA(e,t,n,r){var i=e.display,o=e.doc;Be(t);var a,A,s=o.sel,l=s.ranges;if(r.addNew&&!r.extend?(A=o.sel.contains(n),a=A>-1?l[A]:new oo(n,n)):(a=o.sel.primary(),A=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new oo(n,n)),n=Hr(e,t,!0,!0),A=-1;else{var c=TA(e,n,r.unit);a=r.extend?Ho(a,c.anchor,c.head,r.extend):c}r.addNew?-1==A?(A=l.length,Ko(o,ao(e,l.concat([a]),A),{scroll:!1,origin:"*mouse"})):l.length>1&&l[A].empty()&&"char"==r.unit&&!r.extend?(Ko(o,ao(e,l.slice(0,A).concat(l.slice(A+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):Oo(o,A,a,G):(A=0,Ko(o,new io([a],0),G),s=o.sel);var u=n;function f(t){if(0!=at(u,t))if(u=t,"rectangle"==r.unit){for(var i=[],l=e.options.tabSize,c=O(Je(o,n.line).text,n.ch,l),f=O(Je(o,t.line).text,t.ch,l),h=Math.min(c,f),d=Math.max(c,f),p=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));p<=g;p++){var m=Je(o,p).text,v=j(m,h,l);h==d?i.push(new oo(ot(p,v),ot(p,v))):m.length>v&&i.push(new oo(ot(p,v),ot(p,j(m,d,l))))}i.length||i.push(new oo(n,n)),Ko(o,ao(e,s.ranges.slice(0,A).concat(i),A),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var y,b=a,w=TA(e,t,r.unit),B=b.anchor;at(w.anchor,B)>0?(y=w.head,B=ct(b.from(),w.anchor)):(y=w.anchor,B=lt(b.to(),w.head));var T=s.ranges.slice(0);T[A]=EA(e,new oo(ft(o,B),y)),Ko(o,ao(e,T,A),G)}}var h=i.wrapper.getBoundingClientRect(),d=0;function p(t){var n=++d,a=Hr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=at(a,u)){e.curOp.focus=F(),f(a);var A=ti(i,o);(a.line>=A.to||a.lineh.bottom?20:0;s&&setTimeout(Fi(e,(function(){d==n&&(i.scroller.scrollTop+=s,p(t))})),50)}}function g(t){e.state.selectingText=!1,d=1/0,t&&(Be(t),i.input.focus()),ge(i.wrapper.ownerDocument,"mousemove",m),ge(i.wrapper.ownerDocument,"mouseup",v),o.history.lastSelOrigin=null}var m=Fi(e,(function(e){0!==e.buttons&&Qe(e)?p(e):g(e)})),v=Fi(e,g);e.state.selectingText=v,de(i.wrapper.ownerDocument,"mousemove",m),de(i.wrapper.ownerDocument,"mouseup",v)}function EA(e,t){var n=t.anchor,r=t.head,i=Je(e.doc,n.line);if(0==at(n,r)&&n.sticky==r.sticky)return t;var o=fe(i);if(!o)return t;var a=ce(o,n.ch,n.sticky),A=o[a];if(A.from!=n.ch&&A.to!=n.ch)return t;var s,l=a+(A.from==n.ch==(1!=A.level)?0:1);if(0==l||l==o.length)return t;if(r.line!=n.line)s=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=ce(o,r.ch,r.sticky),u=c-a||(r.ch-n.ch)*(1==A.level?-1:1);s=c==l-1||c==l?u<0:u>0}var f=o[l+(s?-1:0)],h=s==(1==f.level),d=h?f.from:f.to,p=h?"after":"before";return n.ch==d&&n.sticky==p?t:new oo(new ot(n.line,d,p),r)}function kA(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Be(t);var a=e.display,A=a.lineDiv.getBoundingClientRect();if(o>A.bottom||!be(e,n))return Ce(t);o-=A.top-a.viewOffset;for(var s=0;s=i)return me(e,n,e,nt(e.doc,o),e.display.gutterSpecs[s].className,t),Ce(t)}}function QA(e,t){return kA(e,t,"gutterClick",!0)}function xA(e,t){Gn(e.display,t)||_A(e,t)||ve(e,t,"contextmenu")||T||e.display.input.onContextMenu(t)}function _A(e,t){return!!be(e,"gutterContextMenu")&&kA(e,t,"gutterContextMenu",!1)}function SA(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fr(e)}gA.prototype.compare=function(e,t,n){return this.time+pA>e&&0==at(t,this.pos)&&n==this.button};var LA={toString:function(){return"CodeMirror.Init"}},FA={},IA={};function UA(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=LA&&i(e,t,n)}:i)}e.defineOption=n,e.Init=LA,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,ho(e)}),!0),n("indentUnit",2,ho,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){po(e),fr(e),Nr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(ot(r,o))}r++}));for(var i=n.length-1;i>=0;i--)ia(e.doc,t,n[i],ot(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=LA&&e.refresh()})),n("specialCharPlaceholder",gn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",m?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!b),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){SA(e),Ji(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Xa(t),i=n!=LA&&Xa(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,MA,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Wi(t,e.options.lineNumbers),Ji(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Fr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return vi(e)}),!0),n("scrollbarStyle","native",(function(e){wi(e),vi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Wi(e.options.gutters,t),Ji(e)}),!0),n("firstLineNumber",1,Ji,!0),n("lineNumberFormatter",(function(e){return e}),Ji,!0),n("showCursorWhenSelecting",!1,$r,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Yr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,HA),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,$r,!0),n("singleCursorHeightPerLine",!0,$r,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,po,!0),n("addModeClass",!1,po,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,po,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function HA(e,t,n){if(!t!=!(n&&n!=LA)){var r=e.display.dragFunctions,i=t?de:ge;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function MA(e){e.options.lineWrapping?(I(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(k(e.display.wrapper,"CodeMirror-wrap"),sn(e)),Ur(e),Nr(e),fr(e),setTimeout((function(){return vi(e)}),100)}function NA(e,t){var n=this;if(!(this instanceof NA))return new NA(e,t);this.options=t=t?N(t):{},N(FA,t,!1);var r=t.value;"string"==typeof r?r=new Ta(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new NA.inputStyles[t.inputStyle](this),o=this.display=new Yi(e,r,i,t);for(var l in o.wrapper.CodeMirror=this,SA(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),wi(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new D,keySeq:null,specialChars:null},t.autofocus&&!m&&o.input.focus(),a&&A<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),OA(this),La(),Ti(this),this.curOp.forceUpdate=!0,yo(this,r),t.autofocus&&!m||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Jr(n)}),20):Yr(this),IA)IA.hasOwnProperty(l)&&IA[l](this,t[l],LA);qi(this),t.finishInit&&t.finishInit(this);for(var c=0;c400}de(t.scroller,"touchstart",(function(i){if(!ve(e,i)&&!o(i)&&!QA(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),de(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),de(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Gn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||s(r,r.prev)?new oo(a,a):!r.prev.prev||s(r,r.prev.prev)?e.findWordAt(a):new oo(ot(a.line,0),ft(e.doc,ot(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Be(n)}i()})),de(t.scroller,"touchcancel",i),de(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(fi(e,t.scroller.scrollTop),di(e,t.scroller.scrollLeft,!0),me(e,"scroll",e))})),de(t.scroller,"mousewheel",(function(t){return ro(e,t)})),de(t.scroller,"DOMMouseScroll",(function(t){return ro(e,t)})),de(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ve(e,t)||Ee(t)},over:function(t){ve(e,t)||(Qa(e,t),Ee(t))},start:function(t){return ka(e,t)},drop:Fi(e,Ea),leave:function(t){ve(e,t)||xa(e)}};var l=t.input.getField();de(l,"keyup",(function(t){return uA.call(e,t)})),de(l,"keydown",Fi(e,lA)),de(l,"keypress",Fi(e,fA)),de(l,"focus",(function(t){return Jr(e,t)})),de(l,"blur",(function(t){return Yr(e,t)}))}NA.defaults=FA,NA.optionHandlers=IA;var DA=[];function RA(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=yt(e,t).state:n="prev");var a=e.options.tabSize,A=Je(o,t),s=O(A.text,null,a);A.stateAfter&&(A.stateAfter=null);var l,c=A.text.match(/^\s*/)[0];if(r||/\S/.test(A.text)){if("smart"==n&&((l=o.mode.indent(i,A.text.slice(c.length),A.text))==K||l>150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=t>o.first?O(Je(o,t-1).text,null,a):0:"add"==n?l=s+e.options.indentUnit:"subtract"==n?l=s-e.options.indentUnit:"number"==typeof n&&(l=s+n),l=Math.max(0,l);var u="",f=0;if(e.options.indentWithTabs)for(var h=Math.floor(l/a);h;--h)f+=a,u+="\t";if(fa,s=Ue(t),l=null;if(A&&r.ranges.length>1)if(PA&&PA.text.join("\n")==t){if(r.ranges.length%PA.text.length==0){l=[];for(var c=0;c=0;f--){var h=r.ranges[f],d=h.from(),p=h.to();h.empty()&&(n&&n>0?d=ot(d.line,d.ch-n):e.state.overwrite&&!A?p=ot(p.line,Math.min(Je(o,p.line).text.length,p.ch+W(s).length)):A&&PA&&PA.lineWise&&PA.text.join("\n")==s.join("\n")&&(d=p=ot(d.line,0)));var g={from:d,to:p,text:l?l[f%l.length]:s,origin:i||(A?"paste":e.state.cutIncoming>a?"cut":"+input")};Yo(e.doc,g),_n(e,"inputRead",e,g)}t&&!A&&XA(e,t),Ai(e),e.curOp.updateInput<2&&(e.curOp.updateInput=u),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function GA(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Li(t,(function(){return $A(t,n,0,null,"paste")})),!0}function XA(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var A=0;A-1){a=RA(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Je(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=RA(e,i.head.line,"smart"));a&&_n(e,"electricInput",e,i.head.line)}}}function jA(e){for(var t=[],n=[],r=0;rn&&(RA(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Ai(this));else{var o=i.from(),a=i.to(),A=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var s=A;s0&&Oo(this.doc,r,new oo(o,l[r].to()),$)}}})),getTokenAt:function(e,t){return Ct(this,e,t)},getLineTokens:function(e,t){return Ct(this,ot(e),t,!0)},getTokenTypeAt:function(e){e=ft(this.doc,e);var t,n=vt(this,Je(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(e=o,i=!0),r=Je(this.doc,e)}else r=e;return gr(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-an(r):0)},defaultTextHeight:function(){return _r(this.display)},defaultCharWidth:function(){return Sr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display,a=(e=yr(this,ft(this.doc,e))).bottom,A=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var s=Math.max(o.wrapper.clientHeight,this.doc.height),l=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>s)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=s&&(a=e.bottom),A+t.offsetWidth>l&&(A=l-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(A=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?A=0:"middle"==i&&(A=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=A+"px"),n&&ii(this,{left:A,top:a,right:A+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Ii(lA),triggerOnKeyPress:Ii(fA),triggerOnKeyUp:uA,triggerOnMouseDown:Ii(vA),execCommand:function(e){if(Ja.hasOwnProperty(e))return Ja[e].call(null,this)},triggerElectric:Ii((function(e){XA(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=ft(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;r.5||this.options.lineWrapping)&&Ur(this),me(this,"refresh",this)})),swapDoc:Ii((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),yo(this,e),fr(this),this.display.input.reset(),si(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,_n(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},we(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}function zA(e,t,n,r,i){var o=t,a=n,A=Je(e,t.line),s=i&&"rtl"==e.direction?-n:n;function l(){var n=t.line+s;return!(n=e.first+e.size)&&(t=new ot(n,t.ch,t.sticky),A=Je(e,n))}function c(o){var a;if("codepoint"==r){var c=A.text.charCodeAt(t.ch+(r>0?0:-1));a=isNaN(c)?null:new ot(t.line,Math.max(0,Math.min(A.text.length,t.ch+n*(c>=55296&&c<56320?2:1))),-n)}else a=i?za(e.cm,A,t,n):qa(A,t,n);if(null==a){if(o||!l())return!1;t=Wa(i,e.cm,A,t.line,s)}else t=a;return!0}if("char"==r||"codepoint"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var u=null,f="group"==r,h=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(n<0)||c(!d);d=!1){var p=A.text.charAt(t.ch)||"\n",g=ne(p,h)?"w":f&&"\n"==p?"n":!f||/\s/.test(p)?null:"p";if(!f||d||g||(g="s"),u&&u!=g){n<0&&(n=1,c(),t.sticky="after");break}if(g&&(u=g),n>0&&!c(!d))break}var m=qo(e,t,o,a,!0);return At(o,m)&&(m.hitSide=!0),m}function JA(e,t,n,r){var i,o,a=e.doc,A=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(s-.5*_r(e.display),3);i=(n>0?t.bottom:t.top)+n*l}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Br(e,A,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var YA=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new D,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function ZA(e,t){var n=tr(e,t.line);if(!n||n.hidden)return null;var r=Je(e.doc,t.line),i=Yn(n,r,t.line),o=fe(r,e.doc.direction),a="left";o&&(a=ce(o,t.ch)%2?"right":"left");var A=ar(i.map,t.ch,a);return A.offset="right"==A.collapse?A.end:A.start,A}function es(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function ts(e,t){return t&&(e.bad=!0),e}function ns(e,t,n,r,i){var o="",a=!1,A=e.doc.lineSeparator(),s=!1;function l(e){return function(t){return t.id==e}}function c(){a&&(o+=A,s&&(o+=A),a=s=!1)}function u(e){e&&(c(),o+=e)}function f(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void u(n);var o,h=t.getAttribute("cm-marker");if(h){var d=e.findMarks(ot(r,0),ot(i+1,0),l(+h));return void(d.length&&(o=d[0].find(0))&&u(Ye(e.doc,o.from,o.to).join(A)))}if("false"==t.getAttribute("contenteditable"))return;var p=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;p&&c();for(var g=0;g=t.display.viewTo||o.line=t.display.viewFrom&&ZA(t,i)||{node:s[0].measure.map[2],offset:0},c=o.liner.firstLine()&&(a=ot(a.line-1,Je(r.doc,a.line-1).length)),A.ch==Je(r.doc,A.line).text.length&&A.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(e=Mr(r,a.line))?(t=tt(i.view[0].line),n=i.view[0].node):(t=tt(i.view[e].line),n=i.view[e-1].node.nextSibling);var s,l,c=Mr(r,A.line);if(c==i.view.length-1?(s=i.viewTo-1,l=i.lineDiv.lastChild):(s=tt(i.view[c+1].line)-1,l=i.view[c+1].node.previousSibling),!n)return!1;for(var u=r.doc.splitLines(ns(r,n,l,t,s)),f=Ye(r.doc,ot(t,0),ot(s,Je(r.doc,s).text.length));u.length>1&&f.length>1;)if(W(u)==W(f))u.pop(),f.pop(),s--;else{if(u[0]!=f[0])break;u.shift(),f.shift(),t++}for(var h=0,d=0,p=u[0],g=f[0],m=Math.min(p.length,g.length);ha.ch&&v.charCodeAt(v.length-d-1)==y.charCodeAt(y.length-d-1);)h--,d++;u[u.length-1]=v.slice(0,v.length-d).replace(/^\u200b+/,""),u[0]=u[0].slice(h).replace(/\u200b+$/,"");var w=ot(t,h),B=ot(s,f.length?W(f).length-d:0);return u.length>1||u[0]||at(w,B)?(ia(r.doc,u,w,B,"+input"),!0):void 0},YA.prototype.ensurePolled=function(){this.forceCompositionEnd()},YA.prototype.reset=function(){this.forceCompositionEnd()},YA.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},YA.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},YA.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Li(this.cm,(function(){return Nr(e.cm)}))},YA.prototype.setUneditable=function(e){e.contentEditable="false"},YA.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Fi(this.cm,$A)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},YA.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},YA.prototype.onContextMenu=function(){},YA.prototype.resetPosition=function(){},YA.prototype.needsContentAttribute=!0;var os=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new D,this.hasSelection=!1,this.composing=null};function as(e,t){if((t=t?N(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=F();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=A.getValue()}var i;if(e.form&&(de(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ge(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var A=NA((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return A}function As(e){e.off=ge,e.on=de,e.wheelEventPixels=no,e.Doc=Ta,e.splitLines=Ue,e.countColumn=O,e.findColumn=j,e.isWordChar=te,e.Pass=K,e.signal=me,e.Line=ln,e.changeEnd=so,e.scrollbarModel=bi,e.Pos=ot,e.cmpPos=at,e.modes=De,e.mimeModes=Re,e.resolveMode=$e,e.getMode=Ge,e.modeExtensions=Xe,e.extendMode=je,e.copyState=Ve,e.startState=We,e.innerMode=qe,e.commands=Ja,e.keyMap=Oa,e.keyName=Ga,e.isModifierKey=Ka,e.lookupKey=Pa,e.normalizeKeyMap=Ra,e.StringStream=ze,e.SharedTextMarker=ma,e.TextMarker=pa,e.LineWidget=ua,e.e_preventDefault=Be,e.e_stopPropagation=Te,e.e_stop=Ee,e.addClass=I,e.contains=L,e.rmClass=k,e.keyNames=Ua}os.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!ve(r,e)){if(r.somethingSelected())KA({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=jA(r);KA({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,$):(n.prevInput="",i.value=t.text.join("\n"),H(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),p&&(i.style.width="0px"),de(i,"input",(function(){a&&A>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),de(i,"paste",(function(e){ve(r,e)||GA(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),de(i,"cut",o),de(i,"copy",o),de(e.scroller,"paste",(function(t){if(!Gn(e,t)&&!ve(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),de(e.lineSpace,"selectstart",(function(t){Gn(e,t)||Be(t)})),de(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),de(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},os.prototype.createField=function(e){this.wrapper=qA(),this.textarea=this.wrapper.firstChild},os.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},os.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Gr(e);if(e.options.moveInputWithCursor){var i=yr(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},os.prototype.showSelection=function(e){var t=this.cm.display;x(t.cursorDiv,e.cursors),x(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},os.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&H(this.textarea),a&&A>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&A>=9&&(this.hasSelection=null))}},os.prototype.getField=function(){return this.textarea},os.prototype.supportsTouch=function(){return!1},os.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!m||F()!=this.textarea))try{this.textarea.focus()}catch(e){}},os.prototype.blur=function(){this.textarea.blur()},os.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},os.prototype.receivedFocus=function(){this.slowPoll()},os.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},os.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},os.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||He(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&A>=9&&this.hasSelection===i||v&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var s=0,l=Math.min(r.length,i.length);s1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},os.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},os.prototype.onKeyPress=function(){a&&A>=9&&(this.hasSelection=null),this.fastPoll()},os.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Hr(n,e),l=r.scroller.scrollTop;if(o&&!u){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&Fi(n,Ko)(n.doc,Ao(o),$);var c,f=i.style.cssText,h=t.wrapper.style.cssText,d=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-d.top-5)+"px; left: "+(e.clientX-d.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",s&&(c=window.scrollY),r.input.focus(),s&&window.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=m,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&A>=9&&g(),T){Ee(e);var p=function(){ge(window,"mouseup",p),setTimeout(m,20)};de(window,"mouseup",p)}else setTimeout(m,50)}function g(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function m(){if(t.contextMenuPending==m&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,i.style.cssText=f,a&&A<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),null!=i.selectionStart)){(!a||a&&A<9)&&g();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?Fi(n,zo)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},os.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},os.prototype.setUneditable=function(){},os.prototype.needsContentAttribute=!1,UA(NA),WA(NA);var ss="iter insert remove copy getEditor constructor".split(" ");for(var ls in Ta.prototype)Ta.prototype.hasOwnProperty(ls)&&R(ss,ls)<0&&(NA.prototype[ls]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ta.prototype[ls]));return we(Ta),NA.inputStyles={textarea:os,contenteditable:YA},NA.defineMode=function(e){NA.defaults.mode||"null"==e||(NA.defaults.mode=e),Pe.apply(this,arguments)},NA.defineMIME=Ke,NA.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),NA.defineMIME("text/plain","null"),NA.defineExtension=function(e,t){NA.prototype[e]=t},NA.defineDocExtension=function(e,t){Ta.prototype[e]=t},NA.fromTextArea=as,As(NA),NA.version="5.58.2",NA}()}));r((function(e,t){var n,r,i;r={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},i={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1},(n=_u).defineMode("xml",(function(e,t){var o,a,A=e.indentUnit,s={},l=t.htmlMode?r:i;for(var c in l)s[c]=l[c];for(var c in t)s[c]=t[c];function u(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(d("atom","]]>")):null:e.match("--")?n(d("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(p(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=d("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=f,"tag bracket"):"&"==r?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function f(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=u,o=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return o="equals",null;if("<"==n){t.tokenize=u,t.state=y,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=h(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function h(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=f;break}return"string"};return t.isInAttribute=!0,t}function d(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=u;break}n.next()}return e}}function p(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=p(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=u;break}return n.tokenize=p(e-1),n.tokenize(t,n)}}return"meta"}}function g(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(s.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function m(e){e.context&&(e.context=e.context.prev)}function v(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!s.contextGrabbers.hasOwnProperty(n)||!s.contextGrabbers[n].hasOwnProperty(t))return;m(e)}}function y(e,t,n){return"openTag"==e?(n.tagStart=t.column(),b):"closeTag"==e?w:y}function b(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",C):s.allowMissingTagName&&"endTag"==e?(a="tag bracket",C(e,t,n)):(a="error",b)}function w(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&s.implicitlyClosed.hasOwnProperty(n.context.tagName)&&m(n),n.context&&n.context.tagName==r||!1===s.matchClosing?(a="tag",B):(a="tag error",T)}return s.allowMissingTagName&&"endTag"==e?(a="tag bracket",B(e,t,n)):(a="error",T)}function B(e,t,n){return"endTag"!=e?(a="error",B):(m(n),y)}function T(e,t,n){return a="error",B(e,t,n)}function C(e,t,n){if("word"==e)return a="attribute",E;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||s.autoSelfClosers.hasOwnProperty(r)?v(n,r):(v(n,r),n.context=new g(n,r,i==n.indented)),y}return a="error",C}function E(e,t,n){return"equals"==e?k:(s.allowMissing||(a="error"),C(e,t,n))}function k(e,t,n){return"string"==e?Q:"word"==e&&s.allowUnquoted?(a="string",C):(a="error",C(e,t,n))}function Q(e,t,n){return"string"==e?Q:C(e,t,n)}return u.isInText=!0,{startState:function(e){var t={tokenize:u,state:y,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(a=null,t.state=t.state(o||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(e,t,r){var i=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+A;if(i&&i.noIndent)return n.Pass;if(e.tokenize!=f&&e.tokenize!=u)return r?r.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==s.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+A*(s.multilineTagIndentFactor||1);if(s.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:s.htmlMode?"html":"xml",helperType:s.htmlMode?"html":"xml",skipAttribute:function(e){e.state==k&&(e.state=C)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)n.tagName&&t.push(n.tagName);return t.reverse()}}})),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})),r((function(e,t){!function(e){e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var t=0;t-1&&t.substring(i+1,t.length);if(o)return e.findModeByExtension(o)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n` "'(~:]+/,d=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,p=/^\s*\[[^\]]+?\]:.*$/,g=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,m=" ";function v(e,t,n){return t.f=t.inline=n,n(e,t)}function y(e,t,n){return t.f=t.block=n,n(e,t)}function b(e){return!e||!/\S/.test(e.string)}function w(e){if(e.linkTitle=!1,e.linkHref=!1,e.linkText=!1,e.em=!1,e.strong=!1,e.strikethrough=!1,e.quote=0,e.indentedCode=!1,e.f==T){var t=i;if(!t){var o=n.innerMode(r,e.htmlState);t="xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText}t&&(e.f=Q,e.block=B,e.htmlState=null)}return e.trailingSpace=0,e.trailingSpaceNewLine=!1,e.prevLine=e.thisLine,e.thisLine={stream:null},null}function B(e,r){var i=e.column()===r.indentation,A=b(r.prevLine.stream),h=r.indentedCode,g=r.prevLine.hr,m=!1!==r.list,y=(r.listStack[r.listStack.length-1]||0)+3;r.indentedCode=!1;var w=r.indentation;if(null===r.indentationDiff&&(r.indentationDiff=r.indentation,m)){for(r.list=null;w=4&&(h||r.prevLine.fencedCodeEnd||r.prevLine.header||A))return e.skipToEnd(),r.indentedCode=!0,a.code;if(e.eatSpace())return null;if(i&&r.indentation<=y&&(k=e.match(u))&&k[1].length<=6)return r.quote=0,r.header=k[1].length,r.thisLine.header=!0,t.highlightFormatting&&(r.formatting="header"),r.f=r.inline,E(r);if(r.indentation<=y&&e.eat(">"))return r.quote=i?1:r.quote+1,t.highlightFormatting&&(r.formatting="quote"),e.eatSpace(),E(r);if(!T&&!r.setext&&i&&r.indentation<=y&&(k=e.match(l))){var Q=k[1]?"ol":"ul";return r.indentation=w+e.current().length,r.list=!0,r.quote=0,r.listStack.push(r.indentation),r.em=!1,r.strong=!1,r.code=!1,r.strikethrough=!1,t.taskLists&&e.match(c,!1)&&(r.taskList=!0),r.f=r.inline,t.highlightFormatting&&(r.formatting=["list","list-"+Q]),E(r)}return i&&r.indentation<=y&&(k=e.match(d,!0))?(r.quote=0,r.fencedEndRE=new RegExp(k[1]+"+ *$"),r.localMode=t.fencedCodeBlockHighlighting&&o(k[2]||t.fencedCodeBlockDefaultMode),r.localMode&&(r.localState=n.startState(r.localMode)),r.f=r.block=C,t.highlightFormatting&&(r.formatting="code-block"),r.code=-1,E(r)):r.setext||!(B&&m||r.quote||!1!==r.list||r.code||T||p.test(e.string))&&(k=e.lookAhead(1))&&(k=k.match(f))?(r.setext?(r.header=r.setext,r.setext=0,e.skipToEnd(),t.highlightFormatting&&(r.formatting="header")):(r.header="="==k[0].charAt(0)?1:2,r.setext=r.header),r.thisLine.header=!0,r.f=r.inline,E(r)):T?(e.skipToEnd(),r.hr=!0,r.thisLine.hr=!0,a.hr):"["===e.peek()?v(e,r,F):v(e,r,r.inline)}function T(e,t){var o=r.token(e,t.htmlState);if(!i){var a=n.innerMode(r,t.htmlState);("xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText||t.md_inside&&e.current().indexOf(">")>-1)&&(t.f=Q,t.block=B,t.htmlState=null)}return o}function C(e,n){var r,i=n.listStack[n.listStack.length-1]||0,o=n.indentation=e.quote?n.push(a.formatting+"-"+e.formatting[r]+"-"+e.quote):n.push("error"))}if(e.taskOpen)return n.push("meta"),n.length?n.join(" "):null;if(e.taskClosed)return n.push("property"),n.length?n.join(" "):null;if(e.linkHref?n.push(a.linkHref,"url"):(e.strong&&n.push(a.strong),e.em&&n.push(a.em),e.strikethrough&&n.push(a.strikethrough),e.emoji&&n.push(a.emoji),e.linkText&&n.push(a.linkText),e.code&&n.push(a.code),e.image&&n.push(a.image),e.imageAltText&&n.push(a.imageAltText,"link"),e.imageMarker&&n.push(a.imageMarker)),e.header&&n.push(a.header,a.header+"-"+e.header),e.quote&&(n.push(a.quote),!t.maxBlockquoteDepth||t.maxBlockquoteDepth>=e.quote?n.push(a.quote+"-"+e.quote):n.push(a.quote+"-"+t.maxBlockquoteDepth)),!1!==e.list){var i=(e.listStack.length-1)%3;i?1===i?n.push(a.list2):n.push(a.list3):n.push(a.list1)}return e.trailingSpaceNewLine?n.push("trailing-space-new-line"):e.trailingSpace&&n.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),n.length?n.join(" "):null}function k(e,t){if(e.match(h,!0))return E(t)}function Q(e,i){var o=i.text(e,i);if(void 0!==o)return o;if(i.list)return i.list=null,E(i);if(i.taskList)return" "===e.match(c,!0)[1]?i.taskOpen=!0:i.taskClosed=!0,t.highlightFormatting&&(i.formatting="task"),i.taskList=!1,E(i);if(i.taskOpen=!1,i.taskClosed=!1,i.header&&e.match(/^#+$/,!0))return t.highlightFormatting&&(i.formatting="header"),E(i);var A=e.next();if(i.linkTitle){i.linkTitle=!1;var s=A;"("===A&&(s=")");var l="^\\s*(?:[^"+(s=(s+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+s;if(e.match(new RegExp(l),!0))return a.linkHref}if("`"===A){var u=i.formatting;t.highlightFormatting&&(i.formatting="code"),e.eatWhile("`");var f=e.current().length;if(0!=i.code||i.quote&&1!=f){if(f==i.code){var h=E(i);return i.code=0,h}return i.formatting=u,E(i)}return i.code=f,E(i)}if(i.code)return E(i);if("\\"===A&&(e.next(),t.highlightFormatting)){var d=E(i),p=a.formatting+"-escape";return d?d+" "+p:p}if("!"===A&&e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,t.highlightFormatting&&(i.formatting="image"),E(i);if("["===A&&i.imageMarker&&e.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,t.highlightFormatting&&(i.formatting="image"),E(i);if("]"===A&&i.imageAltText){t.highlightFormatting&&(i.formatting="image");var d=E(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=_,d}if("["===A&&!i.image)return i.linkText&&e.match(/^.*?\]/)||(i.linkText=!0,t.highlightFormatting&&(i.formatting="link")),E(i);if("]"===A&&i.linkText){t.highlightFormatting&&(i.formatting="link");var d=E(i);return i.linkText=!1,i.inline=i.f=e.match(/\(.*?\)| ?\[.*?\]/,!1)?_:Q,d}if("<"===A&&e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=x,t.highlightFormatting&&(i.formatting="link"),(d=E(i))?d+=" ":d="",d+a.linkInline;if("<"===A&&e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=x,t.highlightFormatting&&(i.formatting="link"),(d=E(i))?d+=" ":d="",d+a.linkEmail;if(t.xml&&"<"===A&&e.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var m=e.string.indexOf(">",e.pos);if(-1!=m){var v=e.string.substring(e.start,m);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(v)&&(i.md_inside=!0)}return e.backUp(1),i.htmlState=n.startState(r),y(e,i,T)}if(t.xml&&"<"===A&&e.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===A||"_"===A){for(var b=1,w=1==e.pos?" ":e.string.charAt(e.pos-2);b<3&&e.eat(A);)b++;var B=e.peek()||" ",C=!/\s/.test(B)&&(!g.test(B)||/\s/.test(w)||g.test(w)),k=!/\s/.test(w)&&(!g.test(w)||/\s/.test(B)||g.test(B)),S=null,L=null;if(b%2&&(i.em||!C||"*"!==A&&k&&!g.test(w)?i.em!=A||!k||"*"!==A&&C&&!g.test(B)||(S=!1):S=!0),b>1&&(i.strong||!C||"*"!==A&&k&&!g.test(w)?i.strong!=A||!k||"*"!==A&&C&&!g.test(B)||(L=!1):L=!0),null!=L||null!=S)return t.highlightFormatting&&(i.formatting=null==S?"strong":null==L?"em":"strong em"),!0===S&&(i.em=A),!0===L&&(i.strong=A),h=E(i),!1===S&&(i.em=!1),!1===L&&(i.strong=!1),h}else if(" "===A&&(e.eat("*")||e.eat("_"))){if(" "===e.peek())return E(i);e.backUp(1)}if(t.strikethrough)if("~"===A&&e.eatWhile(A)){if(i.strikethrough)return t.highlightFormatting&&(i.formatting="strikethrough"),h=E(i),i.strikethrough=!1,h;if(e.match(/^[^\s]/,!1))return i.strikethrough=!0,t.highlightFormatting&&(i.formatting="strikethrough"),E(i)}else if(" "===A&&e.match(/^~~/,!0)){if(" "===e.peek())return E(i);e.backUp(2)}if(t.emoji&&":"===A&&e.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,t.highlightFormatting&&(i.formatting="emoji");var F=E(i);return i.emoji=!1,F}return" "===A&&(e.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),E(i)}function x(e,n){if(">"===e.next()){n.f=n.inline=Q,t.highlightFormatting&&(n.formatting="link");var r=E(n);return r?r+=" ":r="",r+a.linkInline}return e.match(/^[^>]+/,!0),a.linkInline}function _(e,n){if(e.eatSpace())return null;var r=e.next();return"("===r||"["===r?(n.f=n.inline=L("("===r?")":"]"),t.highlightFormatting&&(n.formatting="link-string"),n.linkHref=!0,E(n)):"error"}var S={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function L(e){return function(n,r){if(n.next()===e){r.f=r.inline=Q,t.highlightFormatting&&(r.formatting="link-string");var i=E(r);return r.linkHref=!1,i}return n.match(S[e]),r.linkHref=!0,E(r)}}function F(e,n){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(n.f=I,e.next(),t.highlightFormatting&&(n.formatting="link"),n.linkText=!0,E(n)):v(e,n,Q)}function I(e,n){if(e.match(/^\]:/,!0)){n.f=n.inline=U,t.highlightFormatting&&(n.formatting="link");var r=E(n);return n.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),a.linkText}function U(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),t.f=t.inline=Q,a.linkHref+" url")}var H={startState:function(){return{f:B,prevLine:{stream:null},thisLine:{stream:null},block:B,htmlState:null,indentation:0,inline:Q,text:k,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(e){return{f:e.f,prevLine:e.prevLine,thisLine:e.thisLine,block:e.block,htmlState:e.htmlState&&n.copyState(r,e.htmlState),indentation:e.indentation,localMode:e.localMode,localState:e.localMode?n.copyState(e.localMode,e.localState):null,inline:e.inline,text:e.text,formatting:!1,linkText:e.linkText,linkTitle:e.linkTitle,linkHref:e.linkHref,code:e.code,em:e.em,strong:e.strong,strikethrough:e.strikethrough,emoji:e.emoji,header:e.header,setext:e.setext,hr:e.hr,taskList:e.taskList,list:e.list,listStack:e.listStack.slice(0),quote:e.quote,indentedCode:e.indentedCode,trailingSpace:e.trailingSpace,trailingSpaceNewLine:e.trailingSpaceNewLine,md_inside:e.md_inside,fencedEndRE:e.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return w(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=T)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g,m).length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==T?{state:e.htmlState,mode:r}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:H}},indent:function(e,t,i){return e.block==T&&r.indent?r.indent(e.htmlState,t,i):e.localState&&e.localMode.indent?e.localMode.indent(e.localState,t,i):n.Pass},blankLine:w,getType:E,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return H}),"xml"),n.defineMIME("text/markdown","markdown"),n.defineMIME("text/x-markdown","markdown")})),r((function(e,t){var n;(n=_u).overlayMode=function(e,t,r){return{startState:function(){return{base:n.startState(e),overlay:n.startState(t),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:n.copyState(e,r.base),overlay:n.copyState(t,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(n,i){return(n!=i.streamSeen||Math.min(i.basePos,i.overlayPos)]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i,(n=_u).defineMode("gfm",(function(e,t){var i=0;function o(e){return e.code=!1,null}var a={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(e){return{code:e.code,codeBlock:e.codeBlock,ateSpace:e.ateSpace}},token:function(e,n){if(n.combineTokens=null,n.codeBlock)return e.match(/^```+/)?(n.codeBlock=!1,null):(e.skipToEnd(),null);if(e.sol()&&(n.code=!1),e.sol()&&e.match(/^```+/))return e.skipToEnd(),n.codeBlock=!0,null;if("`"===e.peek()){e.next();var o=e.pos;e.eatWhile("`");var a=1+e.pos-o;return n.code?a===i&&(n.code=!1):(i=a,n.code=!0),null}if(n.code)return e.next(),null;if(e.eatSpace())return n.ateSpace=!0,null;if((e.sol()||n.ateSpace)&&(n.ateSpace=!1,!1!==t.gitHubSpice)){if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"link"}return e.match(r)&&"]("!=e.string.slice(e.start-2,e.start)&&(0==e.start||/\W/.test(e.string.charAt(e.start-1)))?(n.combineTokens=!0,"link"):(e.next(),null)},blankLine:o},A={taskLists:!0,strikethrough:!0,emoji:!0};for(var s in t)A[s]=t[s];return A.name="markdown",n.overlayMode(n.getMode(e,A),a)}),"markdown"),n.defineMIME("text/x-gfm","gfm")})),r((function(e,t){!function(e){var t=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,n=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,r=/[*+-]\s/;function i(e,n){var r=n.line,i=0,o=0,a=t.exec(e.getLine(r)),A=a[1];do{var s=r+(i+=1),l=e.getLine(s),c=t.exec(l);if(c){var u=c[1],f=parseInt(a[3],10)+i-o,h=parseInt(c[3],10),d=h;if(A!==u||isNaN(h)){if(A.length>u.length)return;if(A.lengthh&&(d=f+1),e.replaceRange(l.replace(t,u+d+c[4]+c[5]),{line:s,ch:0},{line:s,ch:l.length})}}while(c)}e.commands.newlineAndIndentContinueMarkdownList=function(o){if(o.getOption("disableInput"))return e.Pass;for(var a=o.listSelections(),A=[],s=0;s\s*$/.test(d),v=!/>\s*$/.test(d);(m||v)&&o.replaceRange("",{line:l.line,ch:0},{line:l.line,ch:l.ch+1}),A[s]="\n"}else{var y=p[1],b=p[5],w=!(r.test(p[2])||p[2].indexOf(">")>=0),B=w?parseInt(p[3],10)+1+p[4]:p[2].replace("x"," ");A[s]="\n"+y+B+b,w&&i(o,l)}}o.replaceSelections(A)}}(_u)}));r((function(e,t){!function(e){var t=e.Pos;function n(e,t){return e.line-t.line||e.ch-t.ch}var r="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i=new RegExp("<(/?)(["+r+"]["+r+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");function o(e,t,n,r){this.line=t,this.ch=n,this.cm=e,this.text=e.getLine(t),this.min=r?Math.max(r.from,e.firstLine()):e.firstLine(),this.max=r?Math.min(r.to-1,e.lastLine()):e.lastLine()}function a(e,n){var r=e.cm.getTokenTypeAt(t(e.line,n));return r&&/\btag\b/.test(r)}function A(e){if(!(e.line>=e.max))return e.ch=0,e.text=e.cm.getLine(++e.line),!0}function s(e){if(!(e.line<=e.min))return e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0}function l(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(A(e))continue;return}if(a(e,t+1)){var n=e.text.lastIndexOf("/",t),r=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,r?"selfClose":"regular"}e.ch=t+1}}function c(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(s(e))continue;return}if(a(e,t+1)){i.lastIndex=t,e.ch=t;var n=i.exec(e.text);if(n&&n.index==t)return n}else e.ch=t}}function u(e){for(;;){i.lastIndex=e.ch;var t=i.exec(e.text);if(!t){if(A(e))continue;return}if(a(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}function f(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(s(e))continue;return}if(a(e,t+1)){var n=e.text.lastIndexOf("/",t),r=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,r?"selfClose":"regular"}e.ch=t}}function h(e,n){for(var r=[];;){var i,o=u(e),a=e.line,A=e.ch-(o?o[0].length:0);if(!o||!(i=l(e)))return;if("selfClose"!=i)if(o[1]){for(var s=r.length-1;s>=0;--s)if(r[s]==o[2]){r.length=s;break}if(s<0&&(!n||n==o[2]))return{tag:o[2],from:t(a,A),to:t(e.line,e.ch)}}else r.push(o[2])}}function d(e,n){for(var r=[];;){var i=f(e);if(!i)return;if("selfClose"!=i){var o=e.line,a=e.ch,A=c(e);if(!A)return;if(A[1])r.push(A[2]);else{for(var s=r.length-1;s>=0;--s)if(r[s]==A[2]){r.length=s;break}if(s<0&&(!n||n==A[2]))return{tag:A[2],from:t(e.line,e.ch),to:t(o,a)}}}else c(e)}}e.registerHelper("fold","xml",(function(e,r){for(var i=new o(e,r.line,0);;){var a=u(i);if(!a||i.line!=r.line)return;var A=l(i);if(!A)return;if(!a[1]&&"selfClose"!=A){var s=t(i.line,i.ch),c=h(i,a[2]);return c&&n(c.from,s)>0?{from:s,to:c.from}:null}}})),e.findMatchingTag=function(e,r,i){var a=new o(e,r.line,r.ch,i);if(-1!=a.text.indexOf(">")||-1!=a.text.indexOf("<")){var A=l(a),s=A&&t(a.line,a.ch),u=A&&c(a);if(A&&u&&!(n(a,r)>0)){var f={from:t(a.line,a.ch),to:s,tag:u[2]};return"selfClose"==A?{open:f,close:null,at:"open"}:u[1]?{open:d(a,u[2]),close:f,at:"close"}:{open:f,close:h(a=new o(e,s.line,s.ch,i),u[2]),at:"open"}}}},e.findEnclosingTag=function(e,t,n,r){for(var i=new o(e,t.line,t.ch,n);;){var a=d(i,r);if(!a)break;var A=h(new o(e,t.line,t.ch,n),a.tag);if(A)return{open:a,close:A}}},e.scanForClosingTag=function(e,t,n,r){return h(new o(e,t.line,t.ch,r?{from:0,to:r}:null),n)}}(_u)}));r((function(e,t){!function(e){e.defineOption("autoCloseTags",!1,(function(t,n,i){if(i!=e.Init&&i&&t.removeKeyMap("autoCloseTags"),n){var a={name:"autoCloseTags"};"object"==typeof n&&!1===n.whenClosing||(a["'/'"]=function(e){return o(e)}),"object"==typeof n&&!1===n.whenOpening||(a["'>'"]=function(e){return r(e)}),t.addKeyMap(a)}}));var t=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],n=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function r(r){if(r.getOption("disableInput"))return e.Pass;for(var i=r.listSelections(),o=[],s=r.getOption("autoCloseTags"),l=0;lc.ch&&(p=p.slice(0,p.length-u.end+c.ch));var y=p.toLowerCase();if(!p||"string"==u.type&&(u.end!=c.ch||!/[\"\']/.test(u.string.charAt(u.string.length-1))||1==u.string.length)||"tag"==u.type&&d.close||u.string.indexOf("/")==c.ch-u.start-1||m&&a(m,y)>-1||A(r,f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(h)||[],p,c,!0))return e.Pass;var b="object"==typeof s&&s.emptyTags;if(b&&a(b,p)>-1)o[l]={text:"/>",newPos:e.Pos(c.line,c.ch+2)};else{var w=v&&a(v,y)>-1;o[l]={indent:w,text:">"+(w?"\n\n":"")+"",newPos:w?e.Pos(c.line+1,0):e.Pos(c.line,c.ch+1)}}}var B="object"==typeof s&&s.dontIndentOnAutoClose;for(l=i.length-1;l>=0;l--){var T=o[l];r.replaceRange(T.text,i[l].head,i[l].anchor,"+insert");var C=r.listSelections().slice(0);C[l]={head:T.newPos,anchor:T.newPos},r.setSelections(C),!B&&T.indent&&(r.indentLine(T.newPos.line,null,!0),r.indentLine(T.newPos.line+1,null,!0))}}function i(t,n){for(var r=t.listSelections(),i=[],o=n?"/":""!=t.getLine(c.line).charAt(u.end)&&(d+=">"),i[l]=d}if(t.replaceSelections(i),r=t.listSelections(),!s)for(l=0;l=0&&n[l]==r;l--)++s;for(i=A.to,l=1;lc);u++){var f=e.getLine(l++);i=null==i?f:i+"\n"+f}s*=2,t.lastIndex=n.ch;var h=t.exec(i);if(h){var d=i.slice(0,h.index).split("\n"),p=h[0].split("\n"),g=n.line+d.length-1,m=d[d.length-1].length;return{from:r(g,m),to:r(g+p.length-1,1==p.length?m+p[0].length:p[p.length-1].length),match:h}}}}function l(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function c(e,t,n){t=o(t,"g");for(var i=n.line,a=n.ch,A=e.firstLine();i>=A;i--,a=-1){var s=e.getLine(i),c=l(s,t,a<0?0:s.length-a);if(c)return{from:r(i,c.index),to:r(i,c.index+c[0].length),match:c}}}function u(e,t,n){if(!a(t))return c(e,t,n);t=o(t,"gm");for(var i,A=1,s=e.getLine(n.line).length-n.ch,u=n.line,f=e.firstLine();u>=f;){for(var h=0;h=f;h++){var d=e.getLine(u--);i=null==i?d:d+"\n"+i}A*=2;var p=l(i,t,s);if(p){var g=i.slice(0,p.index).split("\n"),m=p[0].split("\n"),v=u+g.length,y=g[g.length-1].length;return{from:r(v,y),to:r(v+m.length-1,1==m.length?y+m[0].length:m[m.length-1].length),match:p}}}}function f(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,A=r(e.slice(0,a)).length;if(A==n)return a;A>n?o=a:i=a+1}}function h(e,i,o,a){if(!i.length)return null;var A=a?t:n,s=A(i).split(/\r|\n\r?/);e:for(var l=o.line,c=o.ch,u=e.lastLine()+1-s.length;l<=u;l++,c=0){var h=e.getLine(l).slice(c),d=A(h);if(1==s.length){var p=d.indexOf(s[0]);if(-1==p)continue e;return o=f(h,d,p,A)+c,{from:r(l,f(h,d,p,A)+c),to:r(l,f(h,d,p+s[0].length,A)+c)}}var g=d.length-s[0].length;if(d.slice(g)==s[0]){for(var m=1;m=u;l--,c=-1){var h=e.getLine(l);c>-1&&(h=h.slice(0,c));var d=A(h);if(1==s.length){var p=d.lastIndexOf(s[0]);if(-1==p)continue e;return{from:r(l,f(h,d,p,A)),to:r(l,f(h,d,p+s[0].length,A))}}var g=s[s.length-1];if(d.slice(0,g.length)==g){var m=1;for(o=l-s.length+1;m0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(_u)}));r((function(e,t){!function(e){function t(e){e.state.placeholder&&(e.state.placeholder.parentNode.removeChild(e.state.placeholder),e.state.placeholder=null)}function n(e){t(e);var n=e.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.style.direction=e.getOption("direction"),n.className="CodeMirror-placeholder CodeMirror-line-like";var r=e.getOption("placeholder");"string"==typeof r&&(r=document.createTextNode(r)),n.appendChild(r),e.display.lineSpace.insertBefore(n,e.display.lineSpace.firstChild)}function r(e){setTimeout((function(){var r=!1,i=e.getInputField();"TEXTAREA"==i.nodeName?r=!i.value:1==e.lineCount()&&(r=!/[^\u200b]/.test(i.querySelector(".CodeMirror-line").textContent)),r?n(e):t(e)}),20)}function i(e){a(e)&&n(e)}function o(e){var r=e.getWrapperElement(),i=a(e);r.className=r.className.replace(" CodeMirror-empty","")+(i?" CodeMirror-empty":""),i?n(e):t(e)}function a(e){return 1===e.lineCount()&&""===e.getLine(0)}e.defineOption("placeholder","",(function(n,a,A){var s=A&&A!=e.Init;if(a&&!s)n.on("blur",i),n.on("change",o),n.on("swapDoc",o),e.on(n.getInputField(),"compositionupdate",n.state.placeholderCompose=function(){r(n)}),o(n);else if(!a&&s){n.off("blur",i),n.off("change",o),n.off("swapDoc",o),e.off(n.getInputField(),"compositionupdate",n.state.placeholderCompose),t(n);var l=n.getWrapperElement();l.className=l.className.replace(" CodeMirror-empty","")}a&&!n.hasFocus()&&i(n)}))}(_u)}));r((function(e,t){!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var A=e.getLineHandle(t.line),s=t.ch-1,l=o&&o.afterCursor;null==l&&(l=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=i(o),u=!l&&s>=0&&c.test(A.text.charAt(s))&&r[A.text.charAt(s)]||c.test(A.text.charAt(s+1))&&r[A.text.charAt(++s)];if(!u)return null;var f=">"==u.charAt(1)?1:-1;if(o&&o.strict&&f>0!=(s==t.ch))return null;var h=e.getTokenTypeAt(n(t.line,s+1)),d=a(e,n(t.line,s+(f>0?1:0)),f,h||null,o);return null==d?null:{from:n(t.line,s),to:d&&d.pos,match:d&&d.ch==u.charAt(0),forward:f>0}}function a(e,t,o,a,A){for(var s=A&&A.maxScanLineLength||1e4,l=A&&A.maxScanLines||1e3,c=[],u=i(A),f=o>0?Math.min(t.line+l,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-l),h=t.line;h!=f;h+=o){var d=e.getLine(h);if(d){var p=o>0?0:d.length-1,g=o>0?d.length:-1;if(!(d.length>s))for(h==t.line&&(p=t.ch-(o<0?1:0));p!=g;p+=o){var m=d.charAt(p);if(u.test(m)&&(void 0===a||e.getTokenTypeAt(n(h,p+1))==a)){var v=r[m];if(v&&">"==v.charAt(1)==o>0)c.push(m);else{if(!c.length)return{pos:n(h,p),ch:m};c.pop()}}}}}return h-o!=(o>0?e.lastLine():e.firstLine())&&null}function A(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,A=[],s=e.listSelections(),l=0;l0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var a,A="start",s=r.ch,l=s,c=i<0?0:o.length,u=0;l!=c;l+=i,u++){var f=o.charAt(i<0?l-1:l),h="_"!=f&&e.isWordChar(f)?"w":"o";if("w"==h&&f.toUpperCase()==f&&(h="W"),"start"==A)"o"!=h?(A="in",a=h):s=l+i;else if("in"==A&&a!=h){if("w"==a&&"W"==h&&i<0&&l--,"W"==a&&"w"==h&&i>0){if(l==s+1){a="w";continue}l--}break}}return n(r.line,l)}function i(e,t){e.extendSelectionsBy((function(n){return e.display.shift||e.doc.extend||n.empty()?r(e.doc,n.head,t):t<0?n.from():n.to()}))}function o(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;io.line&&A==a.line&&0==a.ch||r.push({anchor:A==o.line?o:n(A,0),head:A==a.line?a:n(A)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i=0;A--){var l=r[i[A]];if(!(s&&e.cmpPos(l.head,s)>0)){var c=a(t,l.head);s=c.from,t.replaceRange(n(c.word),c.from,c.to)}}}))}function d(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=a(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function p(e,t){var r=d(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}t.selectScope=function(e){c(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!c(t))return e.Pass},t.goToBracket=function(t){t.extendSelectionsBy((function(r){var i=t.scanForBracket(r.head,1,u(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1,u(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,a=[],A=0;Ao?i.push(l,c):i.length&&(i[i.length-1]=c),o=c}t.operation((function(){for(var e=0;et.lastLine()?t.replaceRange("\n"+A,n(t.lastLine()),null,"+swapLine"):t.replaceRange(A+"\n",n(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,a=r.length-1;a>=0;a--){var A=r[a],s=A.to().line+1,l=A.from().line;0!=A.to().ch||A.empty()||s--,s=0;e-=2){var r=i[e],o=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i=0;o--){var a=r[o].head,A=t.getRange({line:a.line,ch:0},a),s=e.countColumn(A,null,t.getOption("tabSize")),l=t.findPosH(a,-1,"char",!1);if(A&&!/\S/.test(A)&&s%i==0){var c=new n(a.line,e.findColumn(A,s-i,i));c.ch!=a.ch&&(l=c)}t.replaceRange("",l,a,"+delete")}}))},t.delLineRight=function(e){e.operation((function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()}))},t.upcaseAtCursor=function(e){h(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){h(e,(function(e){return e.toLowerCase()}))},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){p(e,!0)},t.findUnderPrevious=function(e){p(e,!1)},t.findAllUnder=function(e){var t=d(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var g=e.keyMap;g.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Cmd-F5":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(g.macSublime),g.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Ctrl-F9":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(g.pcSublime);var m=g.default==g.macDefault;g.sublime=m?g.macSublime:g.pcSublime}(_u)})),r((function(e,t){!function(e){var t;function n(e){var n=this;function a(e){n.searchBox=e.querySelector(".ace_search_form"),n.replaceBox=e.querySelector(".ace_replace_form"),n.searchOptions=e.querySelector(".ace_search_options"),n.regExpOption=e.querySelector("[action=toggleRegexpMode]"),n.caseSensitiveOption=e.querySelector("[action=toggleCaseSensitive]"),n.wholeWordOption=e.querySelector("[action=toggleWholeWords]"),n.searchInput=n.searchBox.querySelector(".ace_search_field"),n.replaceInput=n.replaceBox.querySelector(".ace_search_field")}function A(){var e=n.element=w();b(),a(e),s(),e.addEventListener("mousedown",(function(e){setTimeout((function(){n.activeInput.focus()}),0),e.stopPropagation()})),e.addEventListener("click",(function(e){var t=(e.target||e.srcElement).getAttribute("action");t&&n[t]?n[t]():n.commands[t]&&n.commands[t](),e.stopPropagation()})),n.searchInput.addEventListener("input",(function(){n.$onChange.schedule(20)})),n.searchInput.addEventListener("focus",(function(){n.activeInput=n.searchInput})),n.replaceInput.addEventListener("focus",(function(){n.activeInput=n.replaceInput})),n.$onChange=i((function(){n.find(!1,!1)}))}function s(){var e=n,t={"Ctrl-F|Cmd-F|Ctrl-H|Command-Alt-F":function(){var t=e.isReplace=!e.isReplace;e.replaceBox.style.display=t?"":"none",e[t?"replaceInput":"searchInput"].focus()},"Ctrl-G|Cmd-G":function(){e.findNext()},"Ctrl-Shift-G|Cmd-Shift-G":function(){e.findPrev()},Esc:function(){setTimeout((function(){e.hide()}))},Enter:function(){e.activeInput===e.replaceInput&&e.replace(),e.findNext()},"Shift-Enter":function(){e.activeInput===e.replaceInput&&e.replace(),e.findPrev()},"Alt-Enter":function(){e.activeInput===e.replaceInput&&e.replaceAll(),e.findAll()},Tab:function(){n.activeInput===n.replaceInput?n.searchInput.focus():n.replaceInput.focus()}};n.element.addEventListener("keydown",(function(e){Object.keys(t).some((function(n){var r=o(n,e);return r&&(e.stopPropagation(),e.preventDefault(),t[n](e)),r}))}))}function l(t,i,o){if(!t)return v(e),void y();var a,A,s,u,f,h,d,p=t,g=i,m=!0,b=g.caseSensitive,w=g.regExp,B=g.wholeWord;w&&(p=p.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")),B&&(p=b?p=RegExp("\\b"+p+"\\b"):RegExp("\\b"+p+"\\b","i")),w&&(p=RegExp(p)),v(e),c(e,p,b),y(),d=g.backwards?g.skipCurrent?"from":"to":g.skipCurrent?"to":"from",h=e.getCursor(d),u=(s=e.getSearchCursor(p,h,!b)).findNext.bind(s),f=s.findPrevious.bind(s),s.matches.bind(s),g.backwards&&!f()?(m=u())&&(e.setCursor(e.doc.size-1,0),l(t,i,o),a=!0):g.backwards||u()||(m=f())&&(e.setCursor(0,0),l(t,i,o),a=!0),A=!m&&n.searchInput.value,r(n.searchBox,"ace_nomatch",A),!a&&m&&o(s)}function c(e,t,n){var r=m(e),i=t;i&&i!==r.queryText&&(h(e,r,i,n),r.posFrom=r.posTo=e.getCursor())}function u(e){return e.replace(/\\([nrt\\])/g,(function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e}))}function f(e){var t=("object"==typeof e?e.toString():e).match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(e){}else e=u(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function h(e,t,n,r){t.queryText=n,t.query=f(n),e.removeOverlay(t.overlay,d(t.query,r)),t.overlay=p(t.query,d(t.query,r)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,d(t.query,r)))}function d(e,t){return"string"==typeof e&&!t}function p(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}function g(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function m(e){return e.state.search||(e.state.search=new g)}function v(e){e.operation((function(){var t=m(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))}))}function y(){var t,r=n.searchInput.value,i=[];r&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t=n.caseSensitiveOption.checked?RegExp(r,"g"):RegExp(r,"gi"),n.wholeWordOption.checked&&(t=n.caseSensitiveOption.checked?RegExp("\\b"+r+"\\b","g"):RegExp("\\b"+r+"\\b","gi")),n.regExpOption.checked&&(t=RegExp(r,"gi")),i=e.getValue().match(t));var o=i?i.length:0,a=e.display.wrapper.parentElement.querySelector(".ace_search_counter");a&&(a.innerText=o+" matches found."),0===o&&e.setSelection({ch:0,line:0},{ch:0,line:0})}function b(){var e=document.createElement("style"),t=[".ace_search {","color: black;","background-color: #ddd;","border: 1px solid #cbcbcb;","border-top: 0 none;","max-width: 325px;","overflow: hidden;","margin: 0;","padding: 4px;","padding-right: 6px;","padding-bottom: 0;","position: absolute;","top: 0px;","z-index: 99;","white-space: normal;","font-size: 12px;","}",".ace_search.left {","border-left: 0 none;","border-radius: 0px 0px 5px 0px;","left: 0;","}",".ace_search.right {","border-radius: 0px 0px 0px 5px;","border-right: 0 none;","right: 0;","}",".ace_search_form, .ace_replace_form {","border-radius: 3px;","border: 1px solid #cbcbcb;","float: left;","margin-bottom: 4px;","overflow: hidden;","}",".ace_search_form.ace_nomatch {","outline: 1px solid red;","}",".ace_search_field {","background-color: white;","border-right: 1px solid #cbcbcb;","border: 0 none;","-webkit-box-sizing: border-box;","-moz-box-sizing: border-box;","box-sizing: border-box;","float: left;","height: 22px;","outline: 0;","padding: 0 7px;","width: 238px;","margin: 0;","}",".ace_searchbtn,",".ace_replacebtn {","background: #fff;","border: 0 none;","border-left: 1px solid #dcdcdc;","cursor: pointer;","float: left;","height: 22px;","padding: 0 5px;","margin: 0;","position: relative;","}",".ace_searchbtn:last-child,",".ace_replacebtn:last-child {","border-top-right-radius: 3px;","border-bottom-right-radius: 3px;","}",".ace_searchbtn:disabled {","background: none;","cursor: default;","}",".ace_searchbtn {","background-position: 50% 50%;","background-repeat: no-repeat;","width: 27px;","}",".ace_searchbtn.prev {","background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADFJREFUeNpiSU1NZUAC/6E0I0yACYskCpsJiySKIiY0SUZk40FyTEgCjGgKwTRAgAEAQJUIPCE+qfkAAAAASUVORK5CYII=); ","}",".ace_searchbtn.next {","background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNpiTE1NZQCC/0DMyIAKwGJMUAYDEo3M/s+EpvM/mkKwCQxYjIeLMaELoLMBAgwAU7UJObTKsvAAAAAASUVORK5CYII=); ","}",".ace_searchbtn_close {","background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;","border-radius: 50%;","border: 0 none;","color: #656565;","cursor: pointer;","float: right;","font: 16px/16px Arial;","height: 14px;","margin: 5px 1px 9px 5px;","padding: 0;","text-align: center;","width: 14px;","}",".ace_searchbtn_close:hover {","background-color: #656565;","background-position: 50% 100%;","color: white;","}",".ace_replacebtn.prev {","width: 54px","}",".ace_replacebtn.next {","width: 27px","}",".ace_button {","margin-left: 2px;","cursor: pointer;","-webkit-user-select: none;","-moz-user-select: none;","-o-user-select: none;","-ms-user-select: none;","user-select: none;","overflow: hidden;","opacity: 0.7;","border: 1px solid rgba(100,100,100,0.23);","padding: 1px;","-moz-box-sizing: border-box;","box-sizing: border-box;","color: black;","}",".ace_button:hover {","background-color: #eee;","opacity:1;","}",".ace_button:active {","background-color: #ddd;","}",".ace_button.checked {","border-color: #3399ff;","opacity:1;","}",".ace_search_options{","clear: both;","margin: 4px 0;","text-align: right;","-webkit-user-select: none;","-moz-user-select: none;","-o-user-select: none;","-ms-user-select: none;","user-select: none;","}",".replace_toggle{","float: left;","margin-top: -2px;","padding: 0 5px;"," }",".ace_search_counter{","float: left;","font-family: arial;","padding: 0 8px;","}","button svg,path {","pointer-events: none;","}"].join("");e.setAttribute("data-name","js-searchbox"),e.textContent=t,document.head.appendChild(e)}function w(){var t,n=e.getWrapperElement(),r=document.createElement("div"),i=['"].join("");return r.innerHTML=i,t=r.firstChild,n.appendChild(t),t}A(),this.commands={toggleRegexpMode:function(){n.regExpOption.checked=!n.regExpOption.checked,n.$syncOptions()},toggleCaseSensitive:function(){n.caseSensitiveOption.checked=!n.caseSensitiveOption.checked,n.$syncOptions()},toggleWholeWords:function(){n.wholeWordOption.checked=!n.wholeWordOption.checked,n.$syncOptions()}},this.$syncOptions=function(){r(this.regExpOption,"checked",this.regExpOption.checked),r(this.wholeWordOption,"checked",this.wholeWordOption.checked),r(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked),this.find(!1,!1)},this.find=function(t,n){l(this.searchInput.value,{skipCurrent:t,backwards:n,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked},(function(t){var n=t.matches(!1,t.from());e.setSelection(n.from,n.to)}))},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var t=this.searchInput.value,n=this.searchInput.value;r(this.searchBox,"ace_nomatch",n),e.showMatchesOnScrollbar&&e.showMatchesOnScrollbar(t),this.hide()},this.replace=function(){var t=e.getOption("readOnly"),n=!!e.getSelection();!t&&n&&e.replaceSelection(this.replaceInput.value,"start"),y()},this.replaceAndFindNext=function(){e.getOption("readOnly")||(this.replace(),this.findNext())},this.replaceAll=function(){var t,n,r=this.searchInput.value,i=this.replaceInput.value,o=RegExp(r,this.caseSensitiveOption.checked?"g":"gi");this.wholeWordOption.checked&&!this.regExpOption.checked&&(o=this.caseSensitiveOption.checked?RegExp("\\b"+r+"\\b","g"):RegExp("\\b"+r+"\\b","gi")),!e.getOption("readOnly")&&e.getSelection()&&(n=e.getCursor(),t=(t=e.getValue()).replace(o,i),e.setValue(t),e.setCursor(n)),y()},this.toggleReplace=function(){var t=e.display.wrapper;"+"===t.parentElement.querySelector("[action=toggleReplace]").innerText?(t.parentElement.querySelector("[action=toggleReplace]").innerText="-",this.replaceBox.style.display="",this.isReplace=!0):(t.parentElement.querySelector("[action=toggleReplace]").innerText="+",this.replaceBox.style.display="none",this.isReplace=!1)},this.hide=function(){v(e);var n=e.getWrapperElement();t=null,n.removeChild(this.element),e.focus()},this.isVisible=function(){return""===this.element.style.display},this.show=function(e,t){this.element.style.display="",t||(this.replaceBox.style.display=t?"":"none"),this.isReplace=t,e&&(this.searchInput.value=e,this.find(!1,!1)),this.searchInput.focus(),this.searchInput.select()},this.isFocused=function(){var e=document.activeElement;return e===this.searchInput||e===this.replaceInput}}function r(e,t,n){e.classList[n?"add":"remove"](t)}function i(e,t){var n,r=function(){n=null,e()},i=function(e){n||(n=setTimeout(r,e||t))};return i.delay=function(e){n&&clearTimeout(n),n=setTimeout(r,e||t)},i.schedule=i,i.call=function(){this.cancel(),e()},i.cancel=function(){n&&clearTimeout(n),n=null},i.isPending=function(){return n},i}function o(e,t){var n,r={BACKSPACE:8,TAB:9,ENTER:13,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,UP:38,DOWN:40,INSERT:45,DELETE:46,INSERT_MAC:96,ASTERISK:106,PLUS:107,MINUS:109,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,SLASH:191,TRA:192,BACKSLASH:220};return a(e,t),n=e.split("|").some((function(e){var n;return n=e.split("-").some((function(e){var n;switch(e){case"Ctrl":n=t.ctrlKey;break;case"Shift":n=t.shiftKey;break;case"Alt":n=t.altKey;break;case"Cmd":n=t.metaKey;break;default:1===e.length?n=t.keyCode===e.charCodeAt(0):Object.keys(r).some((function(i){e.toUpperCase()===i&&(n=t.keyCode===r[i])}))}return!n})),!n})),n}function a(e,t){if("string"!=typeof e)throw Error("str should be string!");if("object"!=typeof t)throw Error("event should be object!")}e.defineOption("searchbox",!1,(function(r){r.addKeyMap({"Ctrl-F":function(){var e=r.display.wrapper;t&&e.parentElement.contains(t.searchBox)||(t=new n(r));var i=!1;e.parentElement.querySelector("[action=toggleReplace]")&&(i="-"===e.parentElement.querySelector("[action=toggleReplace]").innerText),t.show(r.getSelection(),i)},Esc:function(){if(!t||!t.isVisible())return e.Pass;t.hide(),"undefined"!=typeof event&&event.stopPropagation()},"Cmd-F":function(){var e=r.display.wrapper;t&&e.parentElement.contains(t.searchBox)||(t=new n(r));var i=!1;e.parentElement.querySelector("[action=toggleReplace]")&&(i="-"===e.parentElement.querySelector("[action=toggleReplace]").innerText),t.show(r.getSelection(),i)}})}))}(_u)}));r((function(e,t){!function(e){function t(e,t){function n(e){clearTimeout(r.doRedraw),r.doRedraw=setTimeout((function(){r.redraw()}),e)}this.cm=e,this.options=t,this.buttonHeight=t.scrollButtonHeight||e.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=e.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();var r=this;e.on("refresh",this.resizeHandler=function(){clearTimeout(r.doUpdate),r.doUpdate=setTimeout((function(){r.computeScale()&&n(20)}),100)}),e.on("markerAdded",this.resizeHandler),e.on("markerCleared",this.resizeHandler),!1!==t.listenForChanges&&e.on("changes",this.changeHandler=function(){n(250)})}e.defineExtension("annotateScrollbar",(function(e){return"string"==typeof e&&(e={className:e}),new t(this,e)})),e.defineOption("scrollButtonHeight",0),t.prototype.computeScale=function(){var e=this.cm,t=(e.getWrapperElement().clientHeight-e.display.barHeight-2*this.buttonHeight)/e.getScrollerElement().scrollHeight;if(t!=this.hScale)return this.hScale=t,!0},t.prototype.update=function(e){this.annotations=e,this.redraw()},t.prototype.redraw=function(e){!1!==e&&this.computeScale();var t=this.cm,n=this.hScale,r=document.createDocumentFragment(),i=this.annotations,o=t.getOption("lineWrapping"),a=o&&1.5*t.defaultTextHeight(),A=null,s=null;function l(e,n){if(A!=e.line){A=e.line,s=t.getLineHandle(e.line);var r=t.getLineHandleVisualStart(s);r!=s&&(A=t.getLineNumber(r),s=r)}return s.widgets&&s.widgets.length||o&&s.height>a?t.charCoords(e,"local")[n?"top":"bottom"]:t.heightAtLine(s,"local")+(n?0:s.height)}var c=t.lastLine();if(t.display.barWidth)for(var u,f=0;fc)){for(var d=u||l(h.from,!0)*n,p=l(h.to,!1)*n;fc)&&!((u=l(i[f+1].from,!0)*n)>p+.9);)p=l((h=i[++f]).to,!1)*n;if(p!=d){var g=Math.max(p-d,3),m=r.appendChild(document.createElement("div"));m.style.cssText="position: absolute; right: 0px; width: "+Math.max(t.display.barWidth-1,2)+"px; top: "+(d+this.buttonHeight)+"px; height: "+g+"px",m.className=this.options.className,h.id&&m.setAttribute("annotation-id",h.id)}}}this.div.textContent="",this.div.appendChild(r)},t.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("changes",this.changeHandler),this.div.parentNode.removeChild(this.div)}}(_u)}));r((function(e,t){!function(e){function t(e,t,n,r){this.cm=e,this.options=r;var i={listenForChanges:!1};for(var o in r)i[o]=r[o];i.className||(i.className="CodeMirror-search-match"),this.annotation=e.annotateScrollbar(i),this.query=t,this.caseFold=n,this.gap={from:e.firstLine(),to:e.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var a=this;e.on("change",this.changeHandler=function(e,t){a.onChange(t)})}e.defineExtension("showMatchesOnScrollbar",(function(e,n,r){return"string"==typeof r&&(r={className:r}),r||(r={}),new t(this,e,n,r)}));var n=1e3;function r(e,t,n){return e<=t?e:Math.max(t,e+n)}t.prototype.findMatches=function(){if(this.gap){for(var t=0;t=this.gap.to);t++)o.to.line>=this.gap.from&&this.matches.splice(t--,1);for(var r=this.cm.getSearchCursor(this.query,e.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),i=this.options&&this.options.maxMatches||n;r.findNext();){var o;if((o={from:r.from(),to:r.to()}).from.line>=this.gap.to)break;if(this.matches.splice(t++,0,o),this.matches.length>i)break}this.gap=null}},t.prototype.onChange=function(t){var n=t.from.line,i=e.changeEnd(t).line,o=i-t.to.line;if(this.gap?(this.gap.from=Math.min(r(this.gap.from,n,o),t.from.line),this.gap.to=Math.max(r(this.gap.to,n,o),t.from.line)):this.gap={from:t.from.line,to:i+1},o)for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n>>0||(ff(uf,n)?16:10))}:sf;Nn({global:!0,forced:parseInt!==hf},{parseInt:hf});var df=G.parseInt,pf={run:function(e){var t,n="
".concat(e,"
");this.tagParser.formatEngine=this.mdFormatEngine,n=n.replace(//g,"");var r=this.htmlParser.parseHtml(n);return r=this.paragraphStyleClear(r),Kc(t=this.$dealHtml(r).replace(/\n{3,}/g,"\n\n\n").replace(/>/g,">").replace(/</g,"<").replace(/&/g,"&")).call(t,"\n")},$dealHtml:function(e){for(var t="",n=0;n0&&(t+=r.content.replace(/ /g," ").replace(/[\n]+/g,"\n").replace(/^[ \t\n]+\n\s*$/,"\n"))}return t},$handleTagObject:function(e,t){var n,r=t;e.attrs.class&&/(ch-icon-square|ch-icon-check)/.test(e.attrs.class)?rf(n=e.attrs.class).call(n,"ch-icon-check")>=0?r+="[x]":r+="[ ]":e.attrs.class&&/cherry-code-preview-lang-select/.test(e.attrs.class)?r+="":r+=this.$dealTag(e);return r},$dealTag:function(e){var t=this,n="";return e.children&&(n=t.$dealHtml(e.children)),"style"===e.name?"":"code"===e.name||"pre"===e.name?t.tagParser.codeParser(e,t.$dealCodeTag(e),"pre"===e.name):"function"==typeof t.tagParser["".concat(e.name,"Parser")]?t.tagParser["".concat(e.name,"Parser")](e,n):n},$dealCodeTag:function(e){if(e.children.length<0)return"";for(var t="",n=0;n])+>/g,empty:of?of(null):{},parseTags:function(e){var t,n=this,r=0,i={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return e.replace(this.attrRE,(function(o){r%2?t=o:0===r?((n.lookup[o]||"/"===e.charAt(e.length-2))&&(i.voidElement=!0),i.name=o):i.attrs[t]=o.replace(/['"]/g,""),r+=1})),i},parseHtml:function(e,t){var n=this,r=t||{};r.components||(r.components=this.empty);var i,o=[],a=-1,A=[],s={},l=!1;return e.replace(this.tagRE,(function(t,c){if(l){if(t!==""))return;l=!1}var u,f="/"!==t.charAt(1),h=c+t.length,d=e.charAt(h);f&&(a+=1,"tag"===(i=n.parseTags(t)).type&&r.components[i.name]&&(i.type="component",l=!0),i.voidElement||l||!d||"<"===d||i.children.push({type:"text",content:af(e).call(e,h,rf(e).call(e,"<",h))}),s[i.tagName]=i,0===a&&o.push(i),(u=A[a-1])&&u.children.push(i),A[a]=i),f&&!i.voidElement||(a-=1,!l&&"<"!==d&&d&&A[a]&&A[a].children.push({type:"text",content:af(e).call(e,h,rf(e).call(e,"<",h))}))})),o}},tagParser:{formatEngine:{},pParser:function(e,t){var n=t;return/\n$/.test(n)?n:"".concat(n,"\n")},divParser:function(e,t){var n=t;return/\n$/.test(n)?n:"".concat(n,"\n")},spanParser:function(e,t){var n=t.replace(/\t/g,"").replace(/\n/g," ");return e.attrs&&e.attrs.style,n},codeParser:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.formatEngine.convertCode(t,n)},brParser:function(e,t){return this.formatEngine.convertBr(t,"\n")},imgParser:function(e,t){return e.attrs&&"tapd-graph"===e.attrs["data-control"]?this.formatEngine.convertGraph(e.attrs.title,e.attrs.src,e.attrs["data-origin-xml"],e):e.attrs&&e.attrs.src?this.formatEngine.convertImg(e.attrs.alt,e.attrs.src):void 0},videoParser:function(e,t){if(e.attrs&&e.attrs.src)return this.formatEngine.convertVideo(t,e.attrs.src,e.attrs.poster,e.attrs.title)},bParser:function(e,t){for(var n=t.split("\n"),r=[],i=0;i0?r:""}return""},bgColorAttrParser:function(e){var t=e.match(/background-color:\s*([^;]+?);/);if(t&&t[1]){var n="";if(/rgb\([ 0-9]+,[ 0-9]+,[ 0-9]+\)/.test(t[1])){var r,i,o,a,A,s=t[1].match(/rgb\(([ 0-9]+),([ 0-9]+),([ 0-9]+)\)/);if(s[1]&&s[2]&&s[3])s[1]=df(Kc(r=s[1]).call(r),10),s[2]=df(Kc(i=s[2]).call(i),10),s[3]=df(Kc(o=s[3]).call(o),10),n=kA(a=kA(A="#".concat(s[1].toString(16))).call(A,s[2].toString(16))).call(a,s[3].toString(16))}else{n=nf(t,2)[1]}return n}return""}}},mdFormatEngine:{convertColor:function(e,t){var n,r=Kc(e).call(e);return!r||/\n/.test(r)?r:t?kA(n="!!".concat(t," ")).call(n,r,"!!"):r},convertSize:function(e,t){var n,r=Kc(e).call(e);return!r||/\n/.test(r)?r:t?kA(n="!".concat(t," ")).call(n,r,"!"):r},convertBgColor:function(e,t){var n,r=Kc(e).call(e);return!r||/\n/.test(r)?r:t?kA(n="!!!".concat(t," ")).call(n,r,"!!!"):r},convertBr:function(e,t){return e+t},convertCode:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return/\n/.test(e)||t?"```\n".concat(e.replace(/\n+$/,""),"\n```"):"`".concat(e.replace(/`/g,"\\`"),"`")},convertB:function(e){return/^\s*$/.test(e)?"":"**".concat(e,"**")},convertI:function(e){return/^\s*$/.test(e)?"":"*".concat(e,"*")},convertU:function(e){return/^\s*$/.test(e)?"":" /".concat(e,"/ ")},convertImg:function(e,t){var n,r=e&&e.length>0?e:"image";return kA(n="![".concat(r,"](")).call(n,t,")")},convertGraph:function(e,t,n,r){var i,o,a,A=e&&e.length>0?e:"graph",s="";if(r)try{var l,c=r.attrs;ea(l=er(c)).call(l,(function(e){var t;Object.prototype.hasOwnProperty.call(c,e)&&(rf(e).call(e,"data-graph-")>=0&&c[e]&&(s+=kA(t=" ".concat(e,"=")).call(t,c[e])))}))}catch(e){}return kA(i=kA(o=kA(a="![".concat(A,"](")).call(a,t,"){data-control=tapd-graph data-origin-xml=")).call(o,n)).call(i,s,"}")},convertVideo:function(e,t,n,r){var i,o,a=r&&r.length>0?r:"video";return kA(i=kA(o="!video[".concat(a,"](")).call(o,t,"){poster=")).call(i,n,"}")},convertA:function(e,t){var n;if(e===t)return"".concat(e," ");var r=Kc(e).call(e);return r?kA(n="[".concat(r,"](")).call(n,t,")"):r},convertSup:function(e){return"^".concat(Kc(e).call(e).replace(/\^/g,"\\^"),"^")},convertSub:function(e){return"^^".concat(Kc(e).call(e).replace(/\^\^/g,"\\^\\^"),"^^")},convertTd:function(e){return"~|".concat(Kc(e).call(e).replace(/\n{1,}/g,"
")," ~|")},convertTh:function(e){return"~|".concat(Kc(e).call(e).replace(/\n{1,}/g,"
")," ~|")},convertTr:function(e){return"".concat(e.replace(/\n/g,""),"\n")},convertThead:function(e){return"".concat(e.replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"|:--|\n")},convertTable:function(e){var t="\n".concat(e.replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"\n").replace(/\n{2,}/g,"\n");return/\|:--\|/.test(t)?t:"\n| |\n|:--|".concat(t)},convertLi:function(e){return"- ".concat(e.replace(/^\n/,"").replace(/\n+$/,"").replace(/\n+/g,"\n\t"),"\n")},convertUl:function(e){return"".concat(e,"\n")},convertOl:function(e){for(var t=e.split("\n"),n=1,r=0;r".concat(Kc(e).call(e),"\n\n")},convertAddress:function(e){return">".concat(Kc(e).call(e),"\n\n")}},paragraphStyleClear:function(e){for(var t=0;t1)for(var a=0;a=0?n:n>=0?n+r:Math.min(n,r)}function Qf(e){var t=e.previousElementSibling,n=e.nextElementSibling;if(!t){var r=getComputedStyle(e),i=e.getBoundingClientRect();if(!n)return{height:Math.max(Ef(r.marginTop)+i.height+Ef(r.marginBottom),0),offsetTop:e.offsetTop-Math.abs(Ef(r.marginTop))};var o=getComputedStyle(n),a=kf(r.marginBottom,o.marginTop);return{height:Math.max(Ef(r.marginTop)+i.height+a,0),offsetTop:e.offsetTop-Math.abs(Ef(r.marginTop))}}var A=getComputedStyle(e),s=e.getBoundingClientRect(),l=function(e,t){var n=Ef(e),r=Ef(t);return r<0?0:n>=0?Math.max(r-n,0):r}(getComputedStyle(t).marginBottom,A.marginTop);if(!n)return{height:Math.max(l+s.height+Ef(A.marginBottom),0),offsetTop:e.offsetTop-Math.abs(Ef(A.marginTop))};var c=getComputedStyle(n),u=kf(A.marginBottom,c.marginTop);return{height:Math.max(l+s.height+u,0),offsetTop:e.offsetTop-Math.abs(l)}}function xf(e,t){if(!e||!e.tagName)return"";var n,r,i=document.createElement("div");return i.appendChild(e.cloneNode(!1)),n=i.innerHTML,t&&(r=rf(n).call(n,">")+1,n=n.substring(0,r)+e.innerHTML+n.substring(r)),i=null,n}function _f(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=document.createElement(e);(i.className=n,void 0!==r)&&ea(t=er(r)).call(t,(function(e){var t=r[e];if(wu(e).call(e,"data-")){var n=e.replace(/^data-/,"");i.dataset[n]=t}else i.setAttribute(e,t)}));return i}var Sf={showSwitchBtnAfterPasteHtml:function(e,t,n,r,i){Kc(r).call(r)!==Kc(i).call(i)&&(this.init(e,t,n,r,i),this.setSelection(),this.bindListener(),this.initBubble(),this.showBubble(),"text"===this.getTypeFromLocalStorage()&&this.switchTextClick())},init:function(e,t,n,r,i){this.$cherry=e,this.html=r,this.md=i,this.codemirror=n,this.currentCursor=t,this.locale=e.locale},getTypeFromLocalStorage:function(){return"undefined"==typeof localStorage?"md":localStorage.getItem("cherry-paste-type")||"md"},setTypeToLocalStorage:function(e){"undefined"!=typeof localStorage&&localStorage.setItem("cherry-paste-type",e)},setSelection:function(){var e=this.codemirror.getCursor(),t=vf({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e)),n=this.currentCursor;this.codemirror.setSelection(n,t)},bindListener:function(){var e=this;if(this.hasBindListener)return!0;this.hasBindListener=!0,this.codemirror.on("beforeSelectionChange",(function(t,n){e.hideBubble()})),this.codemirror.on("beforeChange",(function(t,n){e.hideBubble()})),this.codemirror.on("scroll",(function(t){e.updatePositionWhenScroll()}))},isHidden:function(){return"none"===this.bubbleDom.style.display},toggleBubbleDisplay:function(){this.isHidden()?this.bubbleDom.style.display="":this.bubbleDom.style.display="none"},hideBubble:function(){if(this.noHide)return!0;this.isHidden()||this.toggleBubbleDisplay()},updatePositionWhenScroll:function(){if(!this.isHidden()){var e=this.bubbleDom.dataset.scrollTop-this.getScrollTop();this.bubbleDom.style.marginTop="".concat(e,"px")}},getScrollTop:function(){return this.codemirror.getScrollInfo().top},showBubble:function(){var e=this.getLastSelectedPosition().top;this.isHidden()&&(this.toggleBubbleDisplay(),this.bubbleDom.style.marginTop="0",this.bubbleDom.dataset.scrollTop=this.getScrollTop()),e>this.codemirror.getWrapperElement().clientHeight-this.bubbleDom.getBoundingClientRect().height-15?(this.bubbleDom.style.top="",this.bubbleDom.style.bottom="".concat(15,"px")):(this.bubbleDom.style.top="".concat(e,"px"),this.bubbleDom.style.bottom="")},initBubble:function(){var e,t;if(this.bubbleDom)return this.bubbleDom.setAttribute("data-type","md"),!0;var n=_f("div","cherry-bubble cherry-bubble--centered cherry-switch-paste");n.style.display="none";var r=_f("span","cherry-toolbar-button cherry-text-btn",{title:this.locale.pastePlain});r.innerText="TEXT";var i=_f("span","cherry-toolbar-button cherry-md-btn",{title:this.locale.pasteMarkdown});i.innerText="Markdown";var o=_f("span","switch-btn--bg");this.bubbleDom=n,this.switchText=r,this.switchMd=i,this.switchBG=o,this.bubbleDom.appendChild(r),this.bubbleDom.appendChild(i),this.bubbleDom.appendChild(o),this.bubbleDom.setAttribute("data-type","md"),this.codemirror.getWrapperElement().appendChild(this.bubbleDom),this.switchMd.addEventListener("click",QA(e=this.switchMDClick).call(e,this)),this.switchText.addEventListener("click",QA(t=this.switchTextClick).call(t,this))},switchMDClick:function(e){this.setTypeToLocalStorage("md"),"md"!==this.bubbleDom.getAttribute("data-type")&&(this.noHide=!0,this.bubbleDom.setAttribute("data-type","md"),this.codemirror.doc.replaceSelection(this.md),this.setSelection(),this.showBubble(),this.noHide=!1)},switchTextClick:function(e){this.setTypeToLocalStorage("text"),"text"!==this.bubbleDom.getAttribute("data-type")&&(this.noHide=!0,this.bubbleDom.setAttribute("data-type","text"),this.codemirror.doc.replaceSelection(this.html),this.setSelection(),this.showBubble(),this.noHide=!1)},getLastSelectedPosition:function(){var e=Au(this.codemirror.getWrapperElement().getElementsByClassName("CodeMirror-selected")),t=0,n=0;if(e.length<=0)return this.hideBubble(),{};for(var r=0;rn&&o>=t&&(n=a),o>t&&(t=o)}return{top:n}}},Lf=Sf;function Ff(e,t,n,r){return e.addEventListener?(e.addEventListener(t,n,r),!0):e.attachEvent?e.attachEvent("on".concat(t),n):void(e["on".concat(t)]=n)}function If(e,t,n,r){if(e.removeEventListener)e.removeEventListener(t,n,r);else{if(e.detachEvent)return e.detachEvent("on".concat(t),n);e["on".concat(t)]=null}}var Uf=new Proxy({},{get:function(e,t,n){return function(){}}});var Hf=new(function(){function e(){var t;ua(this,e),BA(this,"Events",{previewerClose:"previewer:close",previewerOpen:"previewer:open",editorClose:"editor:close",editorOpen:"editor:open",toolbarHide:"toolbar:hide",toolbarShow:"toolbar:show",cleanAllSubMenus:"cleanAllSubMenus"}),BA(this,"emitter",{all:t=t||new Map,on:function(e,n){var r=t.get(e);r?r.push(n):t.set(e,[n])},off:function(e,n){var r=t.get(e);r&&(n?r.splice(r.indexOf(n)>>>0,1):t.set(e,[]))},emit:function(e,n){var r=t.get(e);r&&r.slice().map((function(e){e(n)})),(r=t.get("*"))&&r.slice().map((function(t){t(e,n)}))}})}return nA(e,[{key:"on",value:function(e,t,n){var r;this.emitter.on(kA(r="".concat(e,":")).call(r,t),n)}},{key:"emit",value:function(e,t){var n;this.emitter.emit(kA(n="".concat(e,":")).call(n,t))}}]),e}());function Mf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"image",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"*",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=document.createElement("input");i.type="file",i.id="fileUpload",i.value="",i.style.display="none",i.accept=n,i.addEventListener("change",(function(n){var i=nf(n.target.files,1)[0];e.options.fileUpload(i,(function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof n&&n){if(r)return r(i.name,n,o);var a,A="";if("image"===t)A=kA(a="![".concat(i.name,"](")).call(a,n,")");else if("video"===t){var s;A=kA(s="!video[".concat(i.name,"](")).call(s,n,")")}else if("audio"===t){var l;A=kA(l="!audio[".concat(i.name,"](")).call(l,n,")")}else{var c;A=kA(c="[".concat(i.name,"](")).call(c,n,")")}e.editor.doc.replaceSelection(A)}}))})),i.click()}function Nf(e){var t=[];return e.isBorder&&t.push("#B"),e.isShadow&&t.push("#S"),e.isRadius&&t.push("#R"),e.width&&t.push("#".concat(e.width)),e.height&&(e.width||t.push("#auto"),t.push("#".concat(e.height))),t.join(" ")}function Of(e,t,n){var r,i,o,a,A=t.name?t.name:n.name,s="",l="";/video/i.test(n.type)&&(s="!video",l=t.poster?"{poster=".concat(t.poster,"}"):""),/audio/i.test(n.type)&&(s="!audio"),/image/i.test(n.type)&&(s="!");var c=s?Nf(t):"";return kA(r=kA(i=kA(o=kA(a="".concat(s,"[")).call(a,A)).call(o,c,"](")).call(i,e,")")).call(r,l)}function Df(e,t){var n=er(e);if(Ri){var r=Ri(e);t&&(r=Wi(r).call(r,(function(t){return ro(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rf(e){for(var t=1;t\\x00-\\x1f"\\(\\)]*)?'),zf=new RegExp("(?:\\/\\/)".concat(Wf.source)),Jf=new RegExp("^".concat(Wf.source,"$")),Yf=new RegExp("^".concat(zf.source,"$")),Zf=/([ \t]*)([*+-][ ](\[[ x]\])?|[a-z0-9I一二三四五六七八九十零]+\.)([^\r\n]*)/;function eh(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n={begin:"(?:^|\\n)(\\n*)",content:["(\\h*\\|[^\\n]+\\|?\\h*)","\\n","(?:(?:\\h*\\|\\h*:?[-]{1,}:?\\h*)+\\|?\\h*)","((\\n\\h*\\|[^\\n]+\\|?\\h*)*)"].join(""),end:"(?=$|\\n)"};n.reg=Pf(n,"g",!0);var r={begin:"(?:^|\\n)(\\n*)",content:["(\\|?[^\\n|]+(\\|[^\\n|]+)+\\|?)","\\n","(?:\\|?\\h*:?[-]{1,}:?[\\h]*(?:\\|[\\h]*:?[-]{1,}:?\\h*)+\\|?)","((\\n\\|?([^\\n|]+(\\|[^\\n|]*)+)\\|?)*)"].join(""),end:"(?=$|\\n)"};return r.reg=Pf(r,"g",!0),!1===t?{strict:n,loose:r}:Pf({begin:"",content:kA(e="(?:".concat(n.begin+n.content+n.end,"|")).call(e,r.begin+r.content+r.end,")"),end:""},"g",!0)}function th(){var e={begin:/(?:^|\n)(\n*((?:>[\t ]*)*)(?:[^\S\n]*))(`{3,})([^`]*?)\n/,content:/([\w\W]*?)/,end:/[^\S\n]*\3[ \t]*(?=$|\n+)/,reg:new RegExp("")};return e.reg=new RegExp(e.begin.source+e.content.source+e.end.source,"g"),Rf(Rf({},e),{},{begin:e.begin.source,content:e.content.source,end:e.end.source})}function nh(e,t){var n=e||"Item 1\n Item 1.1\nItem 2";n=n.replace(/^\n+/,"").replace(/\n+$/,"");var r="1.";switch(t){case"ol":r="1.";break;case"ul":r="-";break;case"checklist":r="- [x]"}if(n=n.replace(/^(\s*)([0-9a-zA-Z]+\.|- \[x\]|- \[ \]|-) /gm,"$1"),"1."===r){var i={};n=n.replace(/^(\s*)(\S[\s\S]*?)$/gm,(function(e,t,n){var r,o,a,A=(null===(r=t.match(/[ \t]/g))||void 0===r?void 0:r.length)||0;return i[A]=i[A]?i[A]+1:1,kA(o=kA(a="".concat(t)).call(a,i[A],". ")).call(o,n)}))}else n=n.replace(/^(\s*)(\S[\s\S]*?)$/gm,"$1".concat(r," $2"));return n}function rh(){var e={begin:/(?:^|\n)(\n*(?:[^\S\n]*)):::([^:][^\n]+?)\s*\n/,content:/([\w\W]*?)/,end:/\n[ \t]*:::[ \t]*(?=$|\n+)/};return e.reg=new RegExp(e.begin.source+e.content.source+e.end.source,"g"),e}function ih(){var e={begin:/(?:^|\n)(\n*(?:[^\S\n]*))\+\+\+([-]{0,1})\s+([^\n]+)\n/,content:/([\w\W]+?)/,end:/\n[ \t]*\+\+\+[ \t]*(?=$|\n+)/};return e.reg=new RegExp(e.begin.source+e.content.source+e.end.source,"g"),e}var oh=/(!\[[^\n]*?\]\(data:image\/[a-z]{1,10};base64,)([^)]+)\)/g,ah=/(!\[[^\n]*?\]\([^)]+\)\{[^}]* data-xml=)([^}]+)\}/g,Ah=/(!\[[^\n]*?\]\(data:image\/[a-z]{1,10};base64,[^)]+\)\{data-type=drawio data-xml=[^}]+\})/g,sh=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(th().reg,(function(e){return e.replace(/^.*$/gm,"/n")})).replace(/(`+)(.+?(?:\n.+?)*?)\1/g,(function(e){return e.replace(/[![\]()]/g,".")}))};function lh(e){(function(e){var t=/^(\s*)([I一二三四五六七八九十]+)\.(\s+)/,n=/^(\s*)([I一二三四五六七八九十]+)\.(\s+)$/;if(e.getOption("disableInput"))return!1;for(var r=e.listSelections(),i=[],o=0;o0)){var p=_f("span","cm-string ".concat(t),{title:l});p.textContent=l,n.noChange=!0,r.markText(h,d,{replacedWith:p,atomic:!0})}}}})),BA(this,"onKeyup",(function(e,t){var r=t.getCursor().line;n.previewer.highlightLine(r+1)})),BA(this,"onScroll",(function(e){if(Hf.emit(n.instanceId,Hf.Events.cleanAllSubMenus),n.disableScrollListener)n.disableScrollListener=!1;else{var t=e.getScrollerElement();if(t.scrollTop<=0)n.previewer.scrollToLineNum(0);else if(t.scrollTop+t.clientHeight>=t.scrollHeight-20)n.previewer.scrollToLineNum(null);else{var r=e.getScrollInfo().top,i=e.lineAtHeight(r,"local"),o=e.charCoords({line:i,ch:0},"local"),a=e.getLineHandle(i).height,A=100*(r-(o.bottom-a))/a/100;n.previewer.scrollToLineNum(i+1,A)}}})),BA(this,"onMouseDown",(function(e,t){Hf.emit(n.instanceId,Hf.Events.cleanAllSubMenus);var r=e.getCursor().line,i=Math.abs(t.y-e.getWrapperElement().getBoundingClientRect().y);n.previewer.scrollToLineNumWithOffset(r+1,i)})),BA(this,"onCursorActivity",(function(){n.refreshWritingStatus()})),this.options={id:"code",name:"code",autoSave2Textarea:!1,editorDom:document.createElement("div"),wrapperDom:null,autoScrollByCursor:!0,convertWhenPaste:!0,codemirror:{lineNumbers:!1,cursorHeight:.85,indentUnit:4,tabSize:4,mode:"gfm",lineWrapping:!0,indentWithTabs:!0,autofocus:!0,theme:"default",autoCloseTags:!0,extraKeys:{Enter:lh},matchTags:{bothTags:!0},placeholder:"",keyMap:"sublime"},toolbars:{},onKeydown:function(){},onChange:function(){},onFocus:function(){},onBlur:function(){},onPaste:this.onPaste,onScroll:this.onScroll},this.animation={};var r=t.codemirror,i=Bc(t,ch);r&&_c(this.options.codemirror,r),_c(this.options,i),this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.getInstanceId()}return nA(e,[{key:"onPaste",value:function(e,t){var n=e.clipboardData;n?this.handlePaste(e,n,t):(n=window.clipboardData,this.handlePaste(e,n,t))}},{key:"handlePaste",value:function(e,t,n){for(var r,i=this,o=t.items,a=t.types||[],A=n.getDoc(),s=function(){var t=o[l];if(t&&"file"===t.kind&&t.type.match(/^image\//i)){var n=t.getAsFile();i.options.fileUpload(n,(function(e,t){if("string"==typeof e){var r=Of(e,t,n);A.replaceSelection(r)}})),e.preventDefault()}},l=0;l0){var p=n.listSelections();if(n.getSelections().length<=1&&p[0]&&p[0].anchor){var g={};g.line=p[0].anchor.line,g.ch=p[0].anchor.ch,A.replaceSelection(d),Lf.showSwitchBtnAfterPasteHtml(this.$cherry,g,n,c,d)}else A.replaceSelection(d);e.preventDefault()}h=null}},{key:"init",value:function(e){var t=this,n=this.options.editorDom.querySelector("#".concat(this.options.id));if(!(n instanceof HTMLTextAreaElement))throw new Error("The specific element is not a textarea.");var r=_u.fromTextArea(n,this.options.codemirror);r.addOverlay({name:"invisibles",token:function(e){var t,n=0,r=" "===e.peek();if(r){for(;r&&n0&&NA((function(){for(var n=function(n){var i=r[n],o=i.type||"";if(""===o||/^text/i.test(o))return 1;t.options.fileUpload(i,(function(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof r){e.setSelection(e.getCursor());var a=Of(r,o,i),A=n>0?"\n".concat(a," "):"".concat(a," ");e.replaceSelection(A),t.dealBigData()}}))},i=0;i0){if(t>=r.animation.destinationTop)return void(r.animation.timer=0);r.disableScrollListener=!0,r.editor.scrollTo(null,t+i)}else{if(!(n<0))return void(r.animation.timer=0);if(t<=r.animation.destinationTop||t<=0)return void(r.animation.timer=0);r.disableScrollListener=!0,r.editor.scrollTo(null,t-i)}t===r.editor.getScrollInfo().top||i>=Math.abs(n)?r.animation.timer=0:r.animation.timer=requestAnimationFrame(e)}))}}},{key:"scrollToLineNum",value:function(e,t,n){if(null!==e){var r=Math.max(0,e);this.jumpToLine(r,t,n),Uf.log("滚动预览区域,左侧应scroll to ",r)}else this.jumpToLine(null)}},{key:"getEditorDom",value:function(){return this.options.editorDom}},{key:"addListener",value:function(e,t){this.editor.on(e,t)}},{key:"initWritingStyle",value:function(){var e,t,n=this.options.writingStyle,r="cherry-editor-writing-style--".concat(n),i=this.getEditorDom();ea(e=Wi(t=Au(i.classList)).call(t,(function(e){return wu(e).call(e,"cherry-editor-writing-style--")}))).call(e,(function(e){return i.classList.remove(e)})),"normal"!==n&&(i.classList.add(r),this.refreshWritingStatus())}},{key:"refreshWritingStatus",value:function(){var e,t,n=this.options.writingStyle,r="cherry-editor-writing-style--".concat(n),i=document.querySelector("#cherry-editor-writing-style")||document.createElement("style");i.id="cherry-editor-writing-style",xu(e=Au(document.head.childNodes)).call(e,(function(e){return e===i}))||document.head.appendChild(i);var o=i.sheet;if(ea(t=Au(Array(o.cssRules.length))).call(t,(function(){return o.deleteRule(0)})),"focus"===n){var a,A,s=this.getEditorDom().getBoundingClientRect(),l=this.editor.charCoords(this.editor.getCursor()),c=l.top,u=l.bottom,f=c-s.top,h=s.height-(u-s.top);o.insertRule(kA(a=".".concat(r,"::before { height: ")).call(a,f>0?f:0,"px; }"),0),o.insertRule(kA(A=".".concat(r,"::after { height: ")).call(A,h>0?h:0,"px; }"),0)}if("typewriter"===n){var d,p,g=this.editor.getScrollInfo().clientHeight/2;o.insertRule(kA(d=".".concat(r," .CodeMirror-lines::before { height: ")).call(d,g,"px; }"),0),o.insertRule(kA(p=".".concat(r," .CodeMirror-lines::after { height: ")).call(p,g,"px; }"),0),this.editor.scrollTo(null,this.editor.cursorCoords(null,"local").top-g)}}},{key:"setWritingStyle",value:function(e){this.options.writingStyle=e,this.initWritingStyle()}}]),e}(),fh=$r.findIndex,hh="findIndex",dh=!0;hh in[]&&Array(1)[hh]((function(){dh=!1})),Nn({target:"Array",proto:!0,forced:dh},{findIndex:function(e){return fh(this,e,arguments.length>1?arguments[1]:void 0)}}),Mo();var ph=Xi("Array").findIndex,gh=Array.prototype,mh=function(e){var t=e.findIndex;return e===gh||oe(gh,e)&&t===gh.findIndex?ph:t},vh=mh,yh=TypeError,bh=function(e,t){if(!delete e[t])throw yh("Cannot delete property "+ce(t)+" of "+ce(e))},wh=Ki("splice"),Bh=Math.max,Th=Math.min;Nn({target:"Array",proto:!0,forced:!wh},{splice:function(e,t){var n,r,i,o,a,A,s=Ce(this),l=hn(s),c=fn(e,l),u=arguments.length;for(0===u?n=r=0:1===u?(n=0,r=l-c):(n=u-2,r=Th(Bh(An(t),0),l-c)),pa(l+n-r),i=Lr(s,r),o=0;ol-r+n;o--)bh(s,o-1)}else if(n>r)for(o=l-r;o>c;o--)A=o+n-1,(a=o+r-1)in s?s[A]=s[a]:bh(s,A);for(o=0;o1?arguments[1]:void 0)}});var Ih=Xi("Array").map,Uh=Array.prototype,Hh=function(e){var t=e.map;return e===Uh||oe(Uh,e)&&t===Uh.map?Ih:t},Mh=Hh;function Nh(e,t){var n,r,i,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return/^\n/.test(e)?o?(null!==(n=null===(r=e.match(/^\n+/g))||void 0===r||null===(i=r[0])||void 0===i?void 0:i.length)&&void 0!==n?n:0)>1?"\n\n".concat(t):"\n".concat(t):"\n\n".concat(t):t}function Oh(e,t){var n=(e.match(/\n/g)||[]).length;return""!==e&&(n-=2),n+t}var Dh=Su;function Rh(e,t){if(Dh(t))return t}function Ph(e){return"undefined"!=typeof localStorage&&null!==localStorage.getItem("cherry-".concat(e))}function Kh(){var e="false";return"undefined"!=typeof localStorage&&(e=localStorage.getItem("cherry-classicBr")),"true"===e}function $h(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t="default";if("undefined"!=typeof localStorage){var n=localStorage.getItem("cherry-theme");n&&(t=n)}return e?"theme__".concat(t):t}function Gh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=(t||$h()).replace(/^.*theme__/,""),r=" theme__".concat(n);e.wrapperDom.className=e.wrapperDom.className.replace(/ theme__[^ $]+?( |$)/g,"")+r,e.previewer.getDomContainer().className=e.previewer.getDomContainer().className.replace(/ theme__[^ $]+?( |$)/g,"")+r,function(e){"undefined"!=typeof localStorage&&localStorage.setItem("cherry-theme",e)}(n)}var Xh=RangeError,jh=String.fromCharCode,Vh=String.fromCodePoint,qh=y([].join),Wh=!!Vh&&1!==Vh.length;Nn({target:"String",stat:!0,arity:1,forced:Wh},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,i=0;r>i;){if(t=+arguments[i++],fn(t,1114111)!==t)throw Xh(t+" is not a valid code point");n[i]=t<65536?jh(t):jh(55296+((t-=65536)>>10),t%1024+56320)}return qh(n,"")}});var zh,Jh,Yh=G.String.fromCodePoint;function Zh(e,t){var n=er(e);if(Ri){var r=Ri(e);t&&(r=Wi(r).call(r,(function(t){return ro(e,t).enumerable}))),n.push.apply(n,r)}return n}function ed(e){for(var t=1;t":">","&":"&",'"':""","'":"'"},nd={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},rd=ed(ed(ed(ed(ed(ed({},{34:""",38:"&",39:"'",60:"<",62:">"}),{192:"À",193:"Á",194:"Â",195:"Ã",196:"Ä",197:"Å",198:"Æ",199:"Ç",200:"È",201:"É",202:"Ê",203:"Ë",204:"Ì",205:"Í",206:"Î",207:"Ï",208:"Ð",209:"Ñ",210:"Ò",211:"Ó",212:"Ô",213:"Õ",214:"Ö",216:"Ø",217:"Ù",218:"Ú",219:"Û",220:"Ü",221:"Ý",222:"Þ",223:"ß",224:"à",225:"á",226:"â",227:"ã",228:"ä",229:"å",230:"æ",231:"ç",232:"è",233:"é",234:"ê",235:"ë",236:"ì",237:"í",238:"î",239:"ï",240:"ð",241:"ñ",242:"ò",243:"ó",244:"ô",245:"õ",246:"ö",248:"ø",249:"ù",250:"ú",251:"û",252:"ü",253:"ý",254:"þ",255:"ÿ"}),{160:" ",161:"¡",162:"¢",163:"£",164:"¤",165:"¥",166:"¦",167:"§",168:"¨",169:"©",170:"ª",171:"«",172:"¬",173:"­",174:"®",175:"¯",176:"°",177:"±",178:"²",179:"³",180:"´",181:"µ",182:"¶",184:"¸",185:"¹",186:"º",187:"»",188:"¼",189:"½",190:"¾",191:"¿",215:"×",247:"÷"}),{8704:"∀",8706:"∂",8707:"∃",8709:"∅",8711:"∇",8712:"∈",8713:"∉",8715:"∋",8719:"∏",8721:"∑",8722:"−",8727:"∗",8730:"√",8733:"∝",8734:"∞",8736:"∠",8743:"∧",8744:"∨",8745:"∩",8746:"∪",8747:"∫",8756:"∴",8764:"∼",8773:"≅",8776:"≈",8800:"≠",8801:"≡",8804:"≤",8805:"≥",8834:"⊂",8835:"⊃",8836:"⊄",8838:"⊆",8839:"⊇",8853:"⊕",8855:"⊗",8869:"⊥",8901:"⋅"}),{913:"Α",914:"Β",915:"Γ",916:"Δ",917:"Ε",918:"Ζ",919:"Η",920:"Θ",921:"Ι",922:"Κ",923:"Λ",924:"Μ",925:"Ν",926:"Ξ",927:"Ο",928:"Π",929:"Ρ",931:"Σ",932:"Τ",933:"Υ",934:"Φ",935:"Χ",936:"Ψ",937:"Ω",945:"α",946:"β",947:"γ",948:"δ",949:"ε",950:"ζ",951:"η",952:"θ",953:"ι",954:"κ",955:"λ",956:"μ",957:"ν",958:"ξ",959:"ο",960:"π",961:"ρ",962:"ς",963:"σ",964:"τ",965:"υ",966:"φ",967:"χ",968:"ψ",969:"ω",977:"ϑ",978:"ϒ",982:"ϖ"}),{338:"Œ",339:"œ",352:"Š",353:"š",376:"Ÿ",402:"ƒ",710:"ˆ",732:"˜",8194:" ",8195:" ",8201:" ",8204:"‌",8205:"‍",8206:"‎",8207:"‏",8211:"–",8212:"—",8216:"‘",8217:"’",8218:"‚",8220:"“",8221:"”",8222:"„",8224:"†",8225:"‡",8226:"•",8230:"…",8240:"‰",8242:"′",8243:"″",8249:"‹",8250:"›",8254:"‾",8364:"€",8482:"™",8592:"←",8593:"↑",8594:"→",8595:"↓",8596:"↔",8629:"↵",8968:"⌈",8969:"⌉",8970:"⌊",8971:"⌋",9674:"◊",9824:"♠",9827:"♣",9829:"♥",9830:"♦"}),id=er(rd),od=Mh(id).call(id,(function(e){return rd[e].replace(/^&(\w+);$/g,(function(e,t){return t.toLowerCase()}))})),ad=function(e){return"string"!=typeof e||e.length<=0},Ad=function(e){try{var t=Yh(e);return!ad(t)}catch(e){return!1}};var sd=["h1|h2|h3|h4|h5|h6","ul|ol|li|dd|dl|dt","table|thead|tbody|tfoot|col|colgroup|th|td|tr","div|article|section|footer|aside|details|summary|code|audio|video|canvas|figure","address|center|cite|p|pre|blockquote|marquee|caption|figcaption|track|source|output|svg"].join("|"),ld=["span|a|link|b|s|i|del|u|em|strong|sup|sub|kbd","nav|font|bdi|samp|map|area|small|time|bdo|var|wbr|meter|dfn","ruby|rt|rp|mark|q|progress|input|textarea|select|ins"].join("|"),cd=new RegExp(kA(zh=kA(Jh="^(".concat(sd,"|")).call(Jh,ld,"|")).call(zh,"br|img|hr",")( |$|/)"),"i");function ud(e,t){return"string"!=typeof e?"":t?e.replace(/[<>&]/g,(function(e){return td[e]||e})):e.replace(/[<>&"']/g,(function(e){return td[e]||e}))}function fd(e,t){if("string"!=typeof e)return"";var n=hd(e);return n=function(e){return"string"!=typeof e?"":e.replace(/&(\w+);?/g,(function(e,t){return nd[t]||e}))}(n),ud(n,t)}function hd(e){return e.replace(/&#(\d+);?/g,(function(e,t){return rd[t]||e}))}function dd(e){var t=function(e){return e.replace(/&#x([0-9a-f]+);?/gi,(function(e,t){var n=df("0x".concat(t),16);try{return Yh(n)}catch(t){return e}}))}(function(e){return e.replace(/&#(\d+);?/g,(function(e,t){try{return Yh(t)}catch(t){return e}}))}(e)).match(/^\s*([\w\W]+?)(?=:)/i);if(!t)return!0;var n=["javascript","data"],r=t[1].replace(/[\s]/g,"");return-1===rf(n).call(n,r.toLowerCase())}function pd(e){return encodeURI(e).replace(/%25/g,"%")}function gd(e){var t=function(){if("undefined"==typeof Reflect||!qn)return!1;if(qn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wA(e);if(t){var i=wA(this).constructor;n=qn(r,arguments,i)}else n=r.apply(this,arguments);return mA(this,n)}}var md=0,vd=function(e){gA(n,Sh);var t=gd(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{needCache:!1},i=r.needCache,o=r.defaultCache,a=void 0===o?{}:o;return ua(this,n),(e=t.call(this,{})).needCache=!!i,e.sign="",i&&(e.cache=a||{},e.cacheKey="~~C".concat(md),md+=1),e}return nA(n,[{key:"initBrReg",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.classicBr=Ph("classicBr")?Kh():e,this.removeBrAfterBlock=null,this.removeBrBeforeBlock=null,this.removeNewlinesBetweenTags=null}},{key:"$cleanParagraph",value:function(e){var t=e.replace(/^\n+/,"").replace(/\n+$/,"");return this.classicBr?t:this.joinRawHtml(t).replace(/\n/g,"
").replace(/\r/g,"\n")}},{key:"joinRawHtml",value:function(e){if(!this.removeBrAfterBlock){var t,n,r,i,o=null!==(t=null===(n=this.$engine.htmlWhiteListAppend)||void 0===n?void 0:n.split("|"))&&void 0!==t?t:[];o=Wi(r=Mh(o).call(o,(function(e){return/[a-z-]+/gi.test(e)?e:null}))).call(r,(function(e){return null!==e}));var a=kA(o).call(o,sd).join("|");this.removeBrAfterBlock=new RegExp("<(".concat(a,")(>| [^>]*?>)[^\\S\\n]*?\\n"),"ig"),this.removeBrBeforeBlock=new RegExp("\\n[^\\S\\n]*?<\\/(".concat(a,")>[^\\S\\n]*?\\n"),"ig"),this.removeNewlinesBetweenTags=new RegExp(kA(i="<\\/(".concat(a,")>[^\\S\\n]*?\\n([^\\S\\n]*?)<(")).call(i,a,")(>| [^>]*?>)"),"ig")}return e.replace(this.removeBrAfterBlock,"<$1$2").replace(this.removeBrBeforeBlock,"").replace(this.removeNewlinesBetweenTags,"\r$2<$3$4")}},{key:"toHtml",value:function(e,t){return e}},{key:"makeHtml",value:function(e,t){return t(e).html}},{key:"afterMakeHtml",value:function(e){return this.restoreCache(e)}},{key:"isContainsCache",value:function(e,t){if(t){var r=/^(\s*~~C\d+I\w+\$\s*)+$/g.test(e),i=new RegExp("~~C\\d+I".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,"\\w+\\$"),"g").test(e);return r&&!i}return new RegExp("~~C\\d+I(?!".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")\\w+\\$"),"g").test(e)}},{key:"$splitHtmlByCache",value:function(e){var t=new RegExp("\\n*~~C\\d+I(?!".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")\\w+\\$\\n?"),"g");return{caches:e.match(t),contents:e.split(t)}}},{key:"makeExcludingCached",value:function(e,t){for(var n=this.$splitHtmlByCache(e),r=n.caches,i=n.contents,o=Mh(i).call(i,t),a="",A=0;A2&&void 0!==arguments[2]&&arguments[2],l=null!==(n=null===(r=t.match(/^\n+/))||void 0===r?void 0:r[0])&&void 0!==n?n:"",c=null!==(i=null===(o=t.match(/\n+$/))||void 0===o?void 0:o[0])&&void 0!==i?i:"";return s?Nh(t,e):kA(a=kA(A="".concat(l)).call(A,e)).call(a,c)}},{key:"getLineCount",value:function(e){var t,r,i,o=e,a=null!==(t=null===(r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").match(/^\n+/g))||void 0===r||null===(i=r[0])||void 0===i?void 0:i.length)&&void 0!==t?t:0;a=1===a?1:0,o=o.replace(/^\n+/g,"");var A=new RegExp("\n*~~C\\d+I(?:".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")?\\w+?_L(\\d+)\\$"),"g"),s=0;return o=o.replace(A,(function(e,t){return s+=df(t,10),e.replace(/^\n+/g,"")})),a+s+(o.match(/\n/g)||[]).length+1}},{key:"pushCache",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.needCache){var o=r||this.$engine.md5(e);return this.cache[o]={content:e,using:!0},kA(t=kA(n="".concat(this.cacheKey,"I")).call(n,o,"_L")).call(t,i,"$")}}},{key:"popCache",value:function(e){if(this.needCache)return this.cache[e].content||""}},{key:"resetCache",value:function(){if(this.needCache){for(var e=0,t=er(this.cache);e2&&void 0!==arguments[2]?arguments[2]:0;return this.sign=this.$engine.md5(e),this.cache[this.sign]?(this.cache[this.sign].using=!0,kA(n=kA(r="".concat(this.cacheKey,"I")).call(r,this.sign,"_L")).call(n,i,"$")):this.toHtml(e,t)}},{key:"mounted",value:function(){}},{key:"signWithCache",value:function(e){return!1}}]),n}();BA(vd,"HOOK_TYPE",_h.PAR),BA(vd,"IN_PARAGRAPH_CACHE_KEY_PREFIX","!"),BA(vd,"IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX","\\!");var yd=l((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),bd=Object.isExtensible,wd=l((function(){bd(1)}))||yd?function(e){return!!de(e)&&((!yd||"ArrayBuffer"!==B(e))&&(!bd||bd(e)))}:bd,Bd=!l((function(){return Object.isExtensible(Object.preventExtensions({}))})),Td=wd,Cd=Bd,Ed=r((function(e){var t=wt.f,n=!1,r=Fe("meta"),i=0,o=function(e){t(e,r,{value:{objectID:"O"+i++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=Ar.f,t=y([].splice),i={};i[r]=1,e(i).length&&(Ar.f=function(n){for(var i=e(n),o=0,a=i.length;oo;o++)if((A=m(e[o]))&&oe(xd,A))return A;return new Qd(!1)}r=Jc(e,i)}for(s=f?e.next:r.next;!(l=he(s,r)).done;){try{A=m(l.value)}catch(e){$c(r,"throw",e)}if("object"==typeof A&&A&&oe(xd,A))return A}return new Qd(!1)},Fd=function(e,t){if(oe(t,e))return e;throw _d("Incorrect invocation")},Id=wt.f,Ud=$r.forEach,Hd=Kr.set,Md=Kr.getterFor,Nd=De("species"),Od=function(e,t,n){for(var r in t)n&&n.unsafe&&e[r]?e[r]=t[r]:pr(e,r,t[r],n);return e},Dd=function(e){var t=ie(e);Xe&&t&&!t[Nd]&&Or(t,Nd,{configurable:!0,get:function(){return this}})},Rd=Sd.fastKey,Pd=Kr.set,Kd=Kr.getterFor,$d={getConstructor:function(e,t,n,r){var i=e((function(e,i){Fd(e,o),Pd(e,{type:t,index:Rn(null),first:void 0,last:void 0,size:0}),Xe||(e.size=0),N(i)||Ld(i,e[r],{that:e,AS_ENTRIES:n})})),o=i.prototype,a=Kd(t),A=function(e,t,n){var r,i,o=a(e),A=s(e,t);return A?A.value=n:(o.last=A={index:i=Rd(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=A),r&&(r.next=A),Xe?o.size++:e.size++,"F"!==i&&(o.index[i]=A)),e},s=function(e,t){var n,r=a(e),i=Rd(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key===t)return n};return Od(o,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,Xe?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=s(t,e);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first===r&&(n.first=i),n.last===r&&(n.last=o),Xe?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=Et(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),Od(o,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return A(this,0===e?0:e,t)}}:{add:function(e){return A(this,e=0===e?0:e,e)}}),Xe&&Or(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,n){var r=t+" Iterator",i=Kd(t),o=Kd(r);No(e,t,(function(e,t){Pd(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?Oo("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=void 0,Oo(void 0,!0))}),n?"entries":"values",!n,!0),Dd(t)}},Gd=function(e,t,n){var r,i=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),a=i?"set":"add",A=X[e],s=A&&A.prototype,c={};if(Xe&&P(A)&&(o||s.forEach&&!l((function(){(new A).entries().next()})))){r=t((function(t,n){Hd(Fd(t,u),{type:e,collection:new A}),N(n)||Ld(n,t[a],{that:t,AS_ENTRIES:i})}));var u=r.prototype,f=Md(e);Ud(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"===e||"set"===e;!(e in s)||o&&"clear"===e||kt(u,e,(function(n,r){var i=f(this).collection;if(!t&&o&&!de(n))return"get"===e&&void 0;var a=i[e](0===n?0:n,r);return t?this:a}))})),o||Id(u,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else r=n.getConstructor(t,e,i,a),Sd.enable();return Pr(r,e,!1,!0),c[e]=r,Nn({global:!0,forced:!0},c),o||n.setStrong(r,e,i),r};Gd("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),$d);var Xd=G.Map,jd=function(e,t){return 1===t?function(t,n){return t[e](n)}:function(t,n,r){return t[e](n,r)}},Vd=ie("Map"),qd={Map:Vd,set:jd("set",2),get:jd("get",1),has:jd("has",1),remove:jd("delete",1),proto:Vd.prototype},Wd=qd.Map,zd=qd.has,Jd=qd.get,Yd=qd.set,Zd=y([].push);Nn({target:"Map",stat:!0,forced:be},{groupBy:function(e,t){R(e),fe(t);var n=new Wd,r=0;return Ld(e,(function(e){var i=t(e,r++);zd(n,i)?Zd(Jd(n,i),e):Yd(n,i,[e])})),n}});var ep=Xd,tp=[].push;Nn({target:"Map",stat:!0,forced:!0},{from:function(e){var t,n,r,i,o=arguments.length,a=o>1?arguments[1]:void 0;return Dn(this),(t=void 0!==a)&&fe(a),N(e)?new this:(n=[],t?(r=0,i=Et(a,o>2?arguments[2]:void 0),Ld(e,(function(e){he(tp,n,i(e,r++))}))):Ld(e,tp,{that:n}),new this(n))}});Nn({target:"Map",stat:!0,forced:!0},{of:function(){return new this(_t(arguments))}});var np=function(e){if("object"==typeof e&&"size"in e&&"has"in e&&"get"in e&&"set"in e&&"delete"in e&&"entries"in e)return e;throw TypeError(ce(e)+" is not a map")},rp=qd.remove;Nn({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=np(this),n=!0,r=0,i=arguments.length;r1?arguments[1]:void 0);return!1!==sp(t,(function(e,r){if(!n(e,r,t))return!1}),!0)}});var lp=qd.Map,cp=qd.set;Nn({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=np(this),n=Et(e,arguments.length>1?arguments[1]:void 0),r=new lp;return sp(t,(function(e,i){n(e,i,t)&&cp(r,i,e)})),r}}),Nn({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=np(this),n=Et(e,arguments.length>1?arguments[1]:void 0),r=sp(t,(function(e,r){if(n(e,r,t))return{value:e}}),!0);return r&&r.value}}),Nn({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=np(this),n=Et(e,arguments.length>1?arguments[1]:void 0),r=sp(t,(function(e,r){if(n(e,r,t))return{key:r}}),!0);return r&&r.key}});var up=function(e,t){return e===t||e!=e&&t!=t};Nn({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===sp(np(this),(function(t){if(up(t,e))return!0}),!0)}});var fp=qd.Map;Nn({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var n=new(P(this)?this:fp);fe(t);var r=fe(n.set);return Ld(e,(function(e){he(r,n,t(e),e)})),n}}),Nn({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=sp(np(this),(function(t,n){if(t===e)return{key:n}}),!0);return t&&t.key}});var hp=qd.Map,dp=qd.set;Nn({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=np(this),n=Et(e,arguments.length>1?arguments[1]:void 0),r=new hp;return sp(t,(function(e,i){dp(r,n(e,i,t),e)})),r}});var pp=qd.Map,gp=qd.set;Nn({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=np(this),n=Et(e,arguments.length>1?arguments[1]:void 0),r=new pp;return sp(t,(function(e,i){gp(r,i,n(e,i,t))})),r}});var mp=qd.set;Nn({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=np(this),n=arguments.length,r=0;r1?arguments[1]:void 0);return!0===sp(t,(function(e,r){if(n(e,r,t))return!0}),!0)}});var yp=TypeError,bp=qd.get,wp=qd.has,Bp=qd.set;Nn({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var n=np(this),r=arguments.length;fe(t);var i=wp(n,e);if(!i&&r<3)throw yp("Updating absent value");var o=i?bp(n,e):fe(r>2?arguments[2]:void 0)(e,n);return Bp(n,e,t(o,e,n)),n}});var Tp=TypeError,Cp=function(e,t){var n,r=dt(this),i=fe(r.get),o=fe(r.has),a=fe(r.set),A=arguments.length>2?arguments[2]:void 0;if(!P(t)&&!P(A))throw Tp("At least one callback required");return he(o,r,e)?(n=he(i,r,e),P(t)&&(n=t(n),he(a,r,e,n))):P(A)&&(n=A(),he(a,r,e,n)),n};Nn({target:"Map",proto:!0,real:!0,forced:!0},{upsert:Cp}),Nn({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:Cp});var Ep=ep;var kp=Vn;function Qp(e,t,n){var r;(function(){if("undefined"==typeof Reflect||!kp)return!1;if(kp.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(kp(Boolean,[],(function(){}))),!0}catch(e){return!1}})()?Qp=dA(r=kp).call(r):Qp=function(e,t,n){var r=[null];Ku(r).apply(r,t);var i=new(dA(Function).apply(e,r));return n&&pA(i,n.prototype),i};return Qp.apply(null,arguments)}function xp(e){var t="function"==typeof Ep?new Ep:void 0;return xp=function(e){if(null===e||!function(e){var t;return-1!==bc(t=Function.toString.call(e)).call(t,"[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Qp(e,arguments,wA(this).constructor)}return n.prototype=AA(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),pA(n,e)},xp(e)}function _p(e){var t=function(){if("undefined"==typeof Reflect||!qn)return!1;if(qn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wA(e);if(t){var i=wA(this).constructor;n=qn(r,arguments,i)}else n=r.apply(this,arguments);return mA(this,n)}}var Sp=function(e,t){if(!Dh(e)&&Ya(e)!==t.name.toLowerCase()||!Dh(e)&&"array"===t.name.toLowerCase())throw new TypeError("parameter given must be ".concat(t.name));return!0},Lp=function(e,t){if(!(e instanceof t))throw new Error("the hook does not correctly inherit");return!0},Fp=function(e){if("object"!==Ya(e))throw new Error("the hook must be a instance, not a class");return!0},Ip=function(e){gA(n,xp(Error));var t=_p(n);function n(e,r){var i;return ua(this,n),(i=t.call(this,e)).name="Error",i.stack=i.buildStackTrace(r),i}return nA(n,[{key:"buildStackTrace",value:function(e){var t,n=e&&e.stack?e.stack:"";return kA(t="".concat(this.stack,"\nCaused By: ")).call(t,n)}}]),n}();function Up(e,t,n){var r,i;if(-1===e)Uf.warn(kA(r=kA(i="Duplicate hook name [".concat(t.HOOK_NAME,"] found, hook [")).call(i,t.toString(),"] ")).call(r,isNaN(n)?"":"at index [".concat(n,"] "),"will not take effect."));else if(-2===e){var o;Uf.warn(kA(o="Hook [".concat(t.toString(),"] ")).call(o,isNaN(n)?"":"at index [".concat(n,"] "),"is not a valid hook, and will not take effect."))}}function Hp(e){return Mp(e)||Np(e)}function Mp(e){return Object.prototype.isPrototypeOf.call(Sh,e)}function Np(e){return Object.prototype.isPrototypeOf.call(vd,e)}function Op(e){return Hp(e)&&!0===(null==e?void 0:e.Cherry$$CUSTOM)}var Dp=function(){function e(t,n,r){ua(this,e),this.$locale=r.locale,this.hookList={},this.hookNameList={},Sp(t,Array),this.registerInternalHooks(t,n),this.registerCustomHooks(n.engine.customSyntax,n)}return nA(e,[{key:"registerInternalHooks",value:function(e,t){var n=this;ea(e).call(e,(function(e,r){Up(n.register(e,t),e,r)}))}},{key:"registerCustomHooks",value:function(e,t){var n=this;if(e){var r=er(e);ea(r).call(r,(function(r){var i,o,a,A,s={},l=e[r];if(Mp(l))o=l;else{if(!Mp(A=null==(a=l)?void 0:a.syntaxClass)&&!Np(A))return;o=l.syntaxClass,s.force=Boolean(l.force),l.before?s.before=l.before:l.after&&(s.after=l.after)}Hp(o)?(ca(o,"Cherry$$CUSTOM",{enumerable:!1,configurable:!1,writable:!1,value:!0}),i=n.register(o,t,s)):i=-2,Up(i,o,void 0)}))}}},{key:"getHookList",value:function(){return this.hookList}},{key:"getHookNameList",value:function(){return this.hookNameList}},{key:"register",value:function(e,t,n){var r,i,o=this,a=t.externals,A=t.engine,s=A.syntax;if(Hp(e)){i=e.HOOK_NAME;var l=(null==s?void 0:s[i])||{};(r=new e({externals:a,config:l,globalConfig:A.global})).afterInit((function(){r.setLocale(o.$locale)}))}else{if("function"!=typeof e)return-2;if(!(r=e(t))||!Hp(r.constructor))return-2;i=r.getName()}if(!1!==s[i]||Op(e)){var c=r.getType();if(this.hookNameList[i]){var u;if(!Op(e))return-1;if(!n.force)return-1;var f=this.hookNameList[i].type;this.hookList[f]=Wi(u=this.hookList[f]).call(u,(function(e){return e.getName()!==i}))}if(this.hookNameList[i]={type:c},this.hookList[c]=this.hookList[c]||[],Op(e)){var h,d,p,g=-1;if(n.before){if(-1===(g=vh(h=this.hookList[c]).call(h,(function(e){return e.getName()===n.before}))))Uf.warn(kA(d="Cannot find hook named [".concat(n.before,"],\n custom hook [")).call(d,i,"] will append to the end of the hooks."))}else if(n.after){var m,v;-1===(g=vh(m=this.hookList[c]).call(m,(function(e){return e.getName()===n.after})))?Uf.warn(kA(v="Cannot find hook named [".concat(n.after,"],\n custom hook [")).call(v,i,"] will append to the end of the hooks.")):g+=1}if(g<0||g>=this.hookList[c].length)this.hookList[c].push(r);else Qh(p=this.hookList[c]).call(p,g,0,r)}else this.hookList[c].push(r)}}}]),e}();function Rp(e){if(void 0!==Ra&&null!=Iu(e)||null!=e["@@iterator"])return Yu(e)}function Pp(e){return function(e){if(Lu(e))return Zu(e)}(e)||Rp(e)||ef(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kp(e){return Fu(e)||Rp(e)||ef(e)||tf()}function $p(e,t){var n=er(e);if(Ri){var r=Ri(e);t&&(r=Wi(r).call(r,(function(t){return ro(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gp(e){for(var t=1;t3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;if(!t)return e;t.lastIndex=0;for(var a=0,A=[];null!==(r=t.exec(e));){var s={begin:r.index,length:r[0].length};if(i&&r.index===a-o){var l,c=Kp(r),u=c[0],f=af(c).call(c,2);A.push({begin:s.begin+o,length:s.length-o,replacedText:n.apply(void 0,kA(l=[af(u).call(u,o),""]).call(l,Pp(f)))})}else A.push(Gp(Gp({},s),{},{replacedText:n.apply(void 0,Pp(r))}));a=t.lastIndex,t.lastIndex-=o}return t.lastIndex=0,function(e,t){if(!t.length)return e;var n=[],r=0;return ea(t).call(t,(function(i,o){n.push(af(e).call(e,r,i.begin)),n.push(i.replacedText),r=i.begin+i.length,o===t.length-1&&n.push(af(e).call(e,r))})),n.join("")}(e,A)}function jp(e){var t=function(){if("undefined"==typeof Reflect||!qn)return!1;if(qn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wA(e);if(t){var i=wA(this).constructor;n=qn(r,arguments,i)}else n=r.apply(this,arguments);return mA(this,n)}}var Vp=function(e){gA(n,Sh);var t=jp(n);function n(){return ua(this,n),t.apply(this,arguments)}return nA(n,[{key:"toHtml",value:function(e,t,n,r){var i,o;return kA(i=kA(o="".concat(t,'')).call(i,r,"")}},{key:"makeHtml",value:function(e){return Kf()?e.replace(this.RULE.reg,this.toHtml):Xp(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:Kf()?"((?')).call(i,r,"")}},{key:"makeHtml",value:function(e){return Kf()?e.replace(this.RULE.reg,this.toHtml):Xp(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:Kf()?"((?')).call(i,r,"")}},{key:"makeHtml",value:function(e){return this.test(e)?Kf()?e.replace(this.RULE.reg,this.toHtml):Xp(e,this.RULE.reg,this.toHtml,!0,1):e}},{key:"rule",value:function(){var e={begin:Kf()?"((?0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;return ua(this,n),e=t.call(this,{config:r}),r?(e.needWhitespace=!!r.needWhitespace,e):mA(e)}return nA(n,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,"$1$2"):e}},{key:"rule",value:function(){var e={};return(e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config.needWhitespace?Zp(Zp({},e),{},{begin:"(^|[\\s])\\~T\\~T",end:"\\~T\\~T(?=\\s|$)",content:"([\\w\\W]+?)"}):Zp(Zp({},e),{},{begin:"(^|[^\\\\])\\~T\\~T",end:"\\~T\\~T",content:"([\\w\\W]+?)"})).reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();function ng(e){var t=function(){if("undefined"==typeof Reflect||!qn)return!1;if(qn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wA(e);if(t){var i=wA(this).constructor;n=qn(r,arguments,i)}else n=r.apply(this,arguments);return mA(this,n)}}BA(tg,"HOOK_NAME","strikethrough");var rg=function(e){gA(n,Sh);var t=ng(n);function n(){return ua(this,n),t.apply(this,arguments)}return nA(n,[{key:"toHtml",value:function(e,t,n){var r;return kA(r="".concat(t,"")).call(r,n,"")}},{key:"makeHtml",value:function(e){return Kf()?e.replace(this.RULE.reg,this.toHtml):Xp(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:Kf()?"((?")).call(r,n,"")}},{key:"makeHtml",value:function(e){return Kf()?e.replace(this.RULE.reg,this.toHtml):Xp(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:Kf()?"((?=u.reach);T+=B.value.length,B=B.next){var C=B.value;if(t.length>e.length)return;if(!(C instanceof o)){var E,k=1;if(v){if(!(E=a(w,T,e,m))||E.index>=e.length)break;var Q=E.index,x=E.index+E[0].length,_=T;for(_+=B.value.length;Q>=_;)_+=(B=B.next).value.length;if(T=_-=B.value.length,B.value instanceof o)continue;for(var S=B;S!==t.tail&&(_u.reach&&(u.reach=U);var H=B.prev;if(F&&(H=l(t,H,F),T+=F.length),c(t,H,k),B=l(t,H,new o(f,g?i.tokenize(L,g):L,y,L)),I&&l(t,B,I),k>1){var M={cause:f+","+d,reach:U};A(e,t,n,B.prev,T,M),u&&M.reach>u.reach&&(u.reach=M.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function c(e,t,n){for(var r=t.next,i=0;i"+o.content+""},!e.document)return e.addEventListener?(i.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,o=n.code,a=n.immediateClose;e.postMessage(i.highlight(o,i.languages[r],r)),a&&e.close()}),!1),i):i;var u=i.util.currentScript();function f(){i.manual||i.highlightAll()}if(u&&(i.filename=u.src,u.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var h=document.readyState;"loading"===h||"interactive"===h&&u&&u.defer?document.addEventListener("DOMContentLoaded",f):window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=n),void 0!==t&&(t.Prism=n)}));Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n>/g,(function(){return"(?:"+e+")"}));return e.replace(/<>/g,"[^\\s\\S]")}var i="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",o="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",A="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=s(o),c=RegExp(s(i+" "+o+" "+a+" "+A)),u=s(o+" "+a+" "+A),f=s(i+" "+o+" "+A),h=r(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),d=r(/\((?:[^()]|<>)*\)/.source,2),p=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[p,h]),m=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,g]),v=/\[\s*(?:,\s*)*\]/.source,y=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,v]),b=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,d,v]),w=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[b]),B=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,m,v]),T={keyword:c,punctuation:/[<>()?,.:[\]]/},C=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,E=/"(?:\\.|[^\\"\r\n])*"/.source,k=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[k]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[E]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:T},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[p,B]),lookbehind:!0,inside:T},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[p]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,g]),lookbehind:!0,inside:T},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:T},{pattern:n(/(\bwhere\s+)<<0>>/.source,[p]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:T},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[B,f,p]),inside:T}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[p]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[p]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[d]),lookbehind:!0,alias:"class-name",inside:T},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[B,m]),inside:T,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[B]),lookbehind:!0,inside:T,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[p,h]),inside:{function:n(/^<<0>>/.source,[p]),generic:{pattern:RegExp(h),alias:"class-name",inside:T}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,g,p,B,c.source,d,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,d]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(B),greedy:!0,inside:T},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var Q=E+"|"+C,x=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[Q]),_=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[x]),2),S=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,L=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,_]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[S,L]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[S]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[_]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var F=/:[^}\r\n]+/.source,I=r(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[x]),2),U=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[I,F]),H=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[Q]),2),M=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[H,F]);function N(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,F]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[U]),lookbehind:!0,greedy:!0,inside:N(U,I)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[M]),lookbehind:!0,greedy:!0,inside:N(M,H)}],char:{pattern:RegExp(C),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^$/i;var r={"included-cdata":{pattern://i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism),function(e){var t=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};e.languages.dart=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),e.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.dart}}},string:/[\s\S]+/}},string:void 0}),e.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),e.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(Prism),function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),"diff"===n&&i.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(Prism),function(e){var t=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,n=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,(function(){return t})),r=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,i=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,(function(){return r})),o={pattern:RegExp(r),greedy:!0},a={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function A(e,t){return e=e.replace(//g,(function(){return i})).replace(//g,(function(){return n})),RegExp(e,t)}e.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:A(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[o,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:A(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:A(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:A(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:a,string:o,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:a},e.languages.dockerfile=e.languages.docker}(Prism),Prism.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},Prism.languages.glsl=Prism.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/}),Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"],Prism.languages["go-mod"]=Prism.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/},function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return r})).replace(/<>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return r})).replace(/<>/g,(function(){return"(?:"+i+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(o),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(//g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+o+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+o+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:Prism.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},Prism.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n0)){var A=f(/^\{$/,/^\}$/);if(-1===A)continue;for(var s=n;s=0&&h(l,"variable-input")}}}}function c(e){return t[n+e]}function u(e,t){t=t||0;for(var n=0;n|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(Prism),function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",i=RegExp(r+"-"+r),o={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:i,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":o}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript,function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,i,o){if(n.language===r){var a=n.tokenStack=[];n.code=n.code.replace(i,(function(e){if("function"==typeof o&&!o(e))return e;for(var i,A=a.length;-1!==n.code.indexOf(i=t(r,A));)++A;return a[A]=e,i})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var i=0,o=Object.keys(n.tokenStack);!function a(A){for(var s=0;s=o.length);s++){var l=A[s];if("string"==typeof l||l.content&&"string"==typeof l.content){var c=o[i],u=n.tokenStack[c],f="string"==typeof l?l:l.content,h=t(r,c),d=f.indexOf(h);if(d>-1){++i;var p=f.substring(0,d),g=new e.Token(r,e.tokenize(u,n.grammar),"language-"+r,u),m=f.substring(d+h.length),v=[];p&&v.push.apply(v,a([p])),v.push(g),m&&v.push.apply(v,a([m])),"string"==typeof l?A.splice.apply(A,[s,1].concat(v)):l.content=v}}else l.content&&a(l.content)}return A}(n.tokens)}}}})}(Prism),Prism.languages.less=Prism.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),Prism.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),Prism.languages.scss=Prism.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),Prism.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),Prism.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),Prism.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),Prism.languages.scss.atrule.inside.rest=Prism.languages.scss,function(e){e.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:e.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:e.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:e.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:e.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:e.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:e.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:e.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var t=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],n={},r=0,i=t.length;r=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json,function(e){var t=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;e.languages.json5=e.languages.extend("json",{property:[{pattern:RegExp(t.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:t,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/},function(e){var t=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],n="(?:"+(t=t.map((function(e){return e.replace("$","\\$")}))).join("|")+")\\b";e.languages.mongodb=e.languages.extend("javascript",{}),e.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp("^(['\"])?"+n+"(?:\\1)?$")}}}),e.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},e.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"].join("|")+")\\b"),alias:"keyword"}})}(Prism),function(e){var t=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;e.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:t}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:t}},punctuation:/[{};]/}}(Prism),Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec["class-name"],Prism.languages.objc=Prism.languages.objectivec,Prism.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},Prism.languages.pascal.asm.inside=Prism.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),Prism.languages.objectpascal=Prism.languages.pascal,function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:o};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},A=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:A,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:A,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){if(/<\?/.test(t.code)){e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism),function(e){var t=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;e.languages.protobuf=e.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),e.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:t}},builtin:t,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(Prism),Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,Prism.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/},function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,n=0;n<2;n++)t=t.replace(//g,(function(){return t}));t=t.replace(//g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(Prism),Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function o(e,t){return e=e.replace(//g,(function(){return n})).replace(//g,(function(){return r})).replace(//g,(function(){return i})),RegExp(e,t)}i=o(i).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},A=function(t){for(var n=[],r=0;r0&&n[n.length-1].tagName===a(i.content[0].content[1])&&n.pop():"/>"===i.content[i.content.length-1].content||n.push({tagName:a(i.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===i.type&&"{"===i.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===i.type&&"}"===i.content?n[n.length-1].openedBraces--:o=!0),(o||"string"==typeof i)&&n.length>0&&0===n[n.length-1].openedBraces){var s=a(i);r0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(s=a(t[r-1])+s,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",s,null,s)}i.content&&"string"!=typeof i.content&&A(i.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||A(e.tokens)}))}(Prism),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(Prism),function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(Prism),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,a=0;a]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};var Ag="cherry-code-preview-lang-select",sg=["javascript","typescript","html","css","shell","python","golang","java","c","c++","c#","php","ruby","swift","kotlin","scala","rust","dart","elixir","haskell","lua","perl","r","sql"];function lg(e,t){var n=er(e);if(Ri){var r=Ri(e);t&&(r=Wi(r).call(r,(function(t){return ro(e,t).enumerable}))),n.push.apply(n,r)}return n}function cg(e){var t=function(){if("undefined"==typeof Reflect||!qn)return!1;if(qn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wA(e);if(t){var i=wA(this).constructor;n=qn(r,arguments,i)}else n=r.apply(this,arguments);return mA(this,n)}}ag.manual=!0;var ug={figure:"figure"},fg=function(e){gA(n,vd);var t=cg(n);function n(e){var r;e.externals;var i,o=e.config;(ua(this,n),r=t.call(this,{needCache:!0}),n.inlineCodeCache={},r.codeCache={},r.customLang=[],r.customParser={},r.wrap=o.wrap,r.lineNumber=o.lineNumber,r.copyCode=o.copyCode,r.editCode=o.editCode,r.mermaid=o.mermaid,r.indentedCodeBlock=void 0===o.indentedCodeBlock||o.indentedCodeBlock,r.INLINE_CODE_REGEX=/(`+)(.+?(?:\n.+?)*?)\1/g,o&&o.customRenderer)&&(r.customLang=Mh(i=er(o.customRenderer)).call(i,(function(e){return e.toLowerCase()})),r.customParser=function(e){for(var t=1;t40&&(this.codeCache.length=0),!1)}},{key:"parseCustomLanguage",value:function(e,t,n){var r,i,o,a,A,s=this.customParser[e];if(!s||"function"!=typeof s.render)return!1;var l=s.render(t,n.sign,this.$engine,this.mermaid);if(!l)return!1;var c=ug[s.constructor.TYPE]||"div";return kA(r=kA(i=kA(o=kA(a=kA(A="<".concat(c,' data-sign="')).call(A,n.sign,'" data-type="')).call(a,e,'" data-lines="')).call(o,n.lines,'">')).call(i,l,"")}},{key:"fillTag",value:function(e){var t=[];return Mh(e).call(e,(function(e){if(!e)return"";for(var n=e;t.length;){var r,i=t.pop();n=kA(r="".concat(i)).call(r,n)}var o=n.match(/|<\/span>/g),a=0;if(!o)return n;for(;o.length;){var A=o.pop();/<\/span>/.test(A)?a+=1:a?a-=1:t.unshift(A.match(//)[0])}for(var s=0;s");return n}))}},{key:"renderLineNumber",value:function(e){if(!this.lineNumber)return e;var t=e.split("\n");return t.pop(),t=this.fillTag(t),''.concat(t.join('\n'),"")}},{key:"isInternalCustomLangCovered",value:function(e){var t;return-1!==rf(t=this.customLang).call(t,e)}},{key:"computeLines",value:function(e,t,n){var r=t,i=this.getLineCount(e,r);return{sign:this.$engine.md5(e.replace(/^\n+/,"")+i),lines:i}}},{key:"appendMermaid",value:function(e,t){var n=e,r=t;if(/^flow([ ](TD|LR))?$/i.test(r)&&!this.isInternalCustomLangCovered(r)){var i,o=r.match(/^flow(?:[ ](TD|LR))?$/i)||[];n=kA(i="graph ".concat(o[1]||"TD","\n")).call(i,n),r="mermaid"}return/^seq$/i.test(r)&&!this.isInternalCustomLangCovered(r)&&(n="sequenceDiagram\n".concat(n),r="mermaid"),"mermaid"===r&&(n=n.replace(/(^[\s]*)stateDiagram-v2\n/,"$1stateDiagram\n")),[n,r]}},{key:"wrapCode",value:function(e,t){var n,r;return kA(n=kA(r='')).call(n,e,"")}},{key:"renderCodeBlock",value:function(e,t,n,r){var i,o,a,A,s,l,c=e,u=t;return this.customHighlighter?c=this.customHighlighter(c,u):(u&&ag.languages[u]||(u="javascript"),c=ag.highlight(c,ag.languages[u],u),c=this.renderLineNumber(c)),c=kA(i=kA(o=kA(a=kA(A=kA(s=kA(l='
\n ')).call(s,function(e){var t=Mh(sg).call(sg,(function(t){var n,r;return e===t?kA(r='"):kA(n='")}));return'")}(t),"\n ")).call(A,this.editCode?'':"","\n ")).call(a,this.copyCode?'':"",'\n
')).call(i,this.wrapCode(c,u),"
\n
"),c}},{key:"$getIndentedCodeReg",value:function(){return new RegExp("(?:^|\\n\\s*\\n)(?: {4}|\\t)"+"([\\s\\S]+?)"+"(?=$|\\n( {0,3}[^ \\t\\n]|\\n[^ \\t\\n]))","g")}},{key:"$getIndentCodeBlock",value:function(e){var t=this;return this.indentedCodeBlock?this.$recoverCodeInIndent(e).replace(this.$getIndentedCodeReg(),(function(e,n){var r,i,o=(e.match(/\n/g)||[]).length,a=t.$engine.md5(e),A=kA(r=kA(i='
')).call(r,ud(n.replace(/\n( {4}|\t)/g,"\n")),"
");return Nh(e,t.pushCache(A,a,o))})):e}},{key:"$replaceCodeInIndent",value:function(e){return this.indentedCodeBlock?e.replace(this.$getIndentedCodeReg(),(function(e){return e.replace(/`/g,"~~~IndentCode")})):e}},{key:"$recoverCodeInIndent",value:function(e){return this.indentedCodeBlock?e.replace(this.$getIndentedCodeReg(),(function(e){return e.replace(/~~~IndentCode/g,"`")})):e}},{key:"beforeMakeHtml",value:function(e,t,n){var r=this,i=e;return i=(i=this.$replaceCodeInIndent(i)).replace(this.RULE.reg,(function(e,t,n,i,o,a){var A,s,l;function c(e){if(n){var t=new RegExp("^\n*",""),r=e.match(t)[0];e=r+n+e.replace(t,(function(e){return""}))}return e}var u=a,f=r.computeLines(e,t,a),h=f.sign,d=f.lines,p=r.$codeCache(h);if(p&&""!==p)return c(r.getCacheWithSpace(r.pushCache(p,h,d),e));u=(u=(u=r.$recoverCodeInIndent(u)).replace(/~D/g,"$")).replace(/~T/g,"~");var g=null!==(A=null==t||null===(s=t.match(/[ ]/g))||void 0===s?void 0:s.length)&&void 0!==A?A:0;if(g>0){var m=new RegExp("(^|\\n)[ ]{1,".concat(g,"}"),"g");u=u.replace(m,"$1")}if(n){var v=new RegExp("(^|\\n)".concat(n),"g");u=u.replace(v,"$1")}var y=Kc(o).call(o);if(/^(math|katex|latex)$/i.test(y)&&!r.isInternalCustomLangCovered(y)){var b,w=e.match(/^\s*/g);return kA(b="".concat(w,"~D~D\n")).call(b,u,"~D~D")}var B=nf(r.appendMermaid(u,y),2);return u=B[0],y=B[1],-1!==rf(l=r.customLang).call(l,y.toLowerCase())&&(p=r.parseCustomLanguage(y,u,{lines:d,sign:h}))&&""!==p?(r.$codeCache(h,p),r.getCacheWithSpace(r.pushCache(p,h,d),e)):(u=u.replace(/~X/g,"\\`"),p=(p=r.renderCodeBlock(u,y,h,d)).replace(/\\/g,"\\\\"),p=r.$codeCache(h,p),c(r.getCacheWithSpace(r.pushCache(p,h,d),e)))})),i=i.replace(eh(!0),(function(e){var t;return Mh(t=e.split("|")).call(t,(function(e){return r.makeInlineCode(e)})).join("|").replace(/`/g,"\\`")})),i=this.makeInlineCode(i),i=this.$getIndentCodeBlock(i)}},{key:"makeInlineCode",value:function(e){var t=this,r=e;return this.INLINE_CODE_REGEX.test(r)&&(r=(r=r.replace(/\\`/g,"~~not~inlineCode")).replace(this.INLINE_CODE_REGEX,(function(e,r,i){if("`"===Kc(i).call(i))return e;var o=i.replace(/~~not~inlineCode/g,"\\`");o=(o=t.$replaceSpecialChar(o)).replace(/\\/g,"\\\\");var a="".concat(ud(o),""),A=t.$engine.md5(a);return n.inlineCodeCache[A]=a,"~~CODE".concat(A,"$")})),r=r.replace(/~~not~inlineCode/g,"\\`")),r}},{key:"makeHtml",value:function(e){return e}},{key:"$replaceSpecialChar",value:function(e){var t=e.replace(/~Q/g,"\\~");return t=(t=(t=(t=t.replace(/~Y/g,"\\!")).replace(/~Z/g,"\\#")).replace(/~&/g,"\\&")).replace(/~K/g,"\\/")}},{key:"rule",value:function(){return th()}},{key:"mounted",value:function(e){}}]),n}();function hg(e){var t=function(){if("undefined"==typeof Reflect||!qn)return!1;if(qn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wA(e);if(t){var i=wA(this).constructor;n=qn(r,arguments,i)}else n=r.apply(this,arguments);return mA(this,n)}}BA(fg,"HOOK_NAME","codeBlock"),BA(fg,"inlineCodeCache",{});var dg=function(e){gA(n,vd);var t=hg(n);function n(){return ua(this,n),t.apply(this,arguments)}return nA(n,[{key:"makeHtml",value:function(e){return e}},{key:"afterMakeHtml",value:function(e){var t=e;return er(fg.inlineCodeCache).length>0&&(t=t.replace(/~~CODE([0-9a-zA-Z]+)\$/g,(function(e,t){return fg.inlineCodeCache[t]})),fg.inlineCodeCache={}),t}},{key:"rule",value:function(){var e={begin:"(`+)[ ]*",end:"[ ]*\\1",content:"(.+?(?:\\n.+?)*?)"};return e.reg=Pf(e,"g"),e}}]),n}();BA(dg,"HOOK_NAME","inlineCode");var pg=r((function(e){!function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n>>6*(3-o)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,i=0;r>>6-2*i);return n}};e.exports=n}()})),gg={utf8:{stringToBytes:function(e){return gg.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(gg.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n>>24)|4278255360&(A[h]<<24|A[h]>>>8);A[s>>>5]|=128<>>9<<4)]=s;var d=o._ff,p=o._gg,g=o._hh,m=o._ii;for(h=0;h>>0,c=c+y>>>0,u=u+b>>>0,f=f+w>>>0}return t.endian([l,c,u,f])};o._ff=function(e,t,n,r,i,o,a){var A=e+(t&n|~t&r)+(i>>>0)+a;return(A<>>32-o)+t},o._gg=function(e,t,n,r,i,o,a){var A=e+(t&r|n&~r)+(i>>>0)+a;return(A<>>32-o)+t},o._hh=function(e,t,n,r,i,o,a){var A=e+(t^n^r)+(i>>>0)+a;return(A<>>32-o)+t},o._ii=function(e,t,n,r,i,o,a){var A=e+(n^(t|~r))+(i>>>0)+a;return(A<>>32-o)+t},o._blocksize=16,o._digestsize=16,e.exports=function(e,n){if(null==e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(o(e,n));return n&&n.asBytes?r:n&&n.asString?i.bytesToString(r):t.bytesToHex(r)}}()})),wg={},Bg=/^cherry-inner:\/\/([0-9a-f]+)$/i;var Tg=function(){function e(){ua(this,e)}return nA(e,null,[{key:"isInnerLink",value:function(e){return Bg.test(e)}},{key:"set",value:function(e){var t=bg(e);return wg[t]=e,"cherry-inner://".concat(t)}},{key:"get",value:function(e){var t,n=nf(null!==(t=e.match(Bg))&&void 0!==t?t:[],2)[1];if(n)return wg[n]}},{key:"replace",value:function(e,t){var n,r=nf(null!==(n=e.match(Bg))&&void 0!==n?n:[],2)[1];if(r)return wg[r]=t,e}},{key:"restoreAll",value:function(t){var n=t.replace(/cherry-inner:\/\/([0-9a-f]+)/gi,(function(t){return e.get(t)||t}));return n}},{key:"clear",value:function(){wg={}}}]),e}();function Cg(e){var t=function(){if("undefined"==typeof Reflect||!qn)return!1;if(qn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wA(e);if(t){var i=wA(this).constructor;n=qn(r,arguments,i)}else n=r.apply(this,arguments);return mA(this,n)}}var Eg=function(e){gA(n,Sh);var t=Cg(n);function n(e){var r,i=e.config,o=e.globalConfig;return ua(this,n),(r=t.call(this,{config:i})).urlProcessor=o.urlProcessor,r.target=i.target?'target="'.concat(i.target,'"'):i.openNewPage?'target="_blank"':"",r.rel=i.rel?'rel="'.concat(i.rel,'"'):"",r}return nA(n,[{key:"checkBrackets",value:function(e){for(var t=[],n="[".concat(e,"]"),r=function(e){return 1&af(n).call(n,0,e).match(/\\*$/)[0].length},i=n.length-1;n[i]&&(i!==n.length-1||!r(i));i--)if("]"!==n[i]||r(i)||t.push("]"),"["===n[i]&&!r(i)&&(t.pop(),!t.length))return{isValid:!0,coreText:af(n).call(n,i+1,n.length-1),extraLeadingChar:af(n).call(n,0,i)};return{isValid:!1,coreText:e,extraLeadingChar:""}}},{key:"toHtml",value:function(e,t,n,r,i,o,a){var A=void 0===r?"ref":"url",s="";if("ref"===A)return e;if("url"===A){var l,c=this.checkBrackets(n),u=c.isValid,f=c.coreText,h=c.extraLeadingChar;if(!u)return e;s=i&&""!==Kc(i).call(i)?' title="'.concat(ud(i.replace(/["']/g,"")),'"'):"",a?s+=' target="'.concat(a.replace(/{target\s*=\s*(.*?)}/,"$1"),'"'):this.target&&(s+=" ".concat(this.target));var d,p,g,m,v=Kc(r).call(r).replace(/~1D/g,"~D"),y=f.replace(/~1D/g,"~D");return dd(v)?(v=pd(v=this.urlProcessor(v,"link")),kA(d=kA(p=kA(g=kA(m="".concat(t+h,'")).call(d,y,"")):kA(l="".concat(t+h,"")).call(l,n,"")}return e}},{key:"toStdMarkdown",value:function(e){return e}},{key:"makeHtml",value:function(e){var t,n,r=e.replace(this.RULE.reg,(function(e){return e.replace(/~D/g,"~1D")}));Kf()?r=r.replace(this.RULE.reg,QA(t=this.toHtml).call(t,this)):r=Xp(r,this.RULE.reg,QA(n=this.toHtml).call(n,this),!0,1);return r=r.replace(this.RULE.reg,(function(e){return e.replace(/~1D/g,"~D")})),r}},{key:"rule",value:function(){var e={begin:Kf()?"((?0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}});var Qg=Xi("String").repeat,xg=String.prototype,_g=function(e){var t=e.repeat;return"string"==typeof e||e===xg||oe(xg,e)&&t===xg.repeat?Qg:t},Sg=_g;function Lg(e){var t=function(){if("undefined"==typeof Reflect||!qn)return!1;if(qn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wA(e);if(t){var i=wA(this).constructor;n=qn(r,arguments,i)}else n=r.apply(this,arguments);return mA(this,n)}}var Fg=function(e){gA(n,Sh);var t=Lg(n);function n(){var e,r=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;return ua(this,n),e=t.call(this,{config:r}),r?(e.allowWhitespace=!!r.allowWhitespace,e):mA(e)}return nA(n,[{key:"makeHtml",value:function(e,t){var n=function(e,n,r,i){var o,a,A,s=r.length%2==1?"em":"strong",l=Math.floor(r.length/2),c=Sg("").call("",l),u=Sg("").call("",l);return"em"===s&&(c+="",u="".concat(u)),kA(o=kA(a=kA(A="".concat(n)).call(A,c)).call(a,t(i).html.replace(/_/g,"~U"))).call(o,u)},r=e;return r=(r=this.allowWhitespace?(r=(r=r.replace(/(^|\n[\s]*)(\*)([^\s*](?:.*?)(?:(?:\n.*?)*?))\*/g,n)).replace(/(^|\n[\s]*)(\*{2,})((?:.*?)(?:(?:\n.*?)*?))\2/g,n)).replace(/([^\n*\\\s][ ]*)(\*+)((?:.*?)(?:(?:\n.*?)*?))\2/g,n):r.replace(this.RULE.asterisk.reg,n)).replace(this.RULE.underscore.reg,(function(e,n,r,i,o,a){var A,s,l;if(""===Kc(i).call(i))return e;var c=r.length%2==1?"em":"strong",u=Math.floor(r.length/2),f=Sg("").call("",u),h=Sg("").call("",u),d=t(i).html;return"em"===c&&(f+="",h="".concat(h)),kA(A=kA(s=kA(l="".concat(n)).call(l,f)).call(s,d)).call(A,h)})),r.replace(/~U/g,"_")}},{key:"test",value:function(e,t){return this.RULE[t].reg&&this.RULE[t].reg.test(e)}},{key:"rule",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config,t=!!e&&!!e.allowWhitespace,n=function(e,t){var n,r,i,o="[^".concat(t,"\\s]");return e?"(?:.*?)(?:(?:\\n.*?)*?)":kA(n=kA(r=kA(i="(".concat(o,"|")).call(i,o,"(.*?(\n")).call(r,o,".*)*)")).call(n,o,")")},r={begin:"(^|[^\\\\])([*]+)",content:"(".concat(n(t,"*"),")"),end:"\\2"},i={begin:"(^|".concat(jf,")(_+)"),content:"(".concat(n(t,"_"),")"),end:"\\2(?=".concat(jf,"|$)")};return r.reg=Pf(r,"g"),i.reg=Pf(i,"g"),{asterisk:r,underscore:i}}}]),n}();function Ig(e){var t=function(){if("undefined"==typeof Reflect||!qn)return!1;if(qn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wA(e);if(t){var i=wA(this).constructor;n=qn(r,arguments,i)}else n=r.apply(this,arguments);return mA(this,n)}}BA(Fg,"HOOK_NAME","fontEmphasis");var Ug=function(e){gA(n,vd);var t=Ig(n);function n(e){var r;return ua(this,n),(r=t.call(this)).initBrReg(e.globalConfig.classicBr),r}return nA(n,[{key:"makeHtml",value:function(e,t){var n=this;return this.test(e)?e.replace(this.RULE.reg,(function(e,r,i){var o;if(n.isContainsCache(e,!0))return e;var a,A=function(e){var r,i,o,a,A,s;if(""===Kc(e).call(e))return"";var l=t(e),c=l.sign,u=l.html,f="p";new RegExp("<(".concat(sd,")[^>]*>"),"i").test(u)&&(f="div");var h=n.getLineCount(e,e);return kA(r=kA(i=kA(o=kA(a=kA(A=kA(s="<".concat(f,' data-sign="')).call(s,c)).call(A,h,'" data-type="')).call(a,f,'" data-lines="')).call(o,h,'">')).call(i,n.$cleanParagraph(u),"")};return n.isContainsCache(i)?n.makeExcludingCached(kA(a="".concat(r)).call(a,i),A):A(kA(o="".concat(r)).call(o,i))})):e}},{key:"rule",value:function(){var e={begin:"(?:^|\\n)(\\n*)",end:"(?=\\s*$|\\n\\n)",content:"([\\s\\S]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();BA(Ug,"HOOK_NAME","normalParagraph");var Hg=function(e){return void 0!==e&&(Le(e,"value")||Le(e,"writable"))};Nn({target:"Reflect",stat:!0},{get:function e(t,n){var r,i,o=arguments.length<3?t:arguments[2];return dt(t)===o?t[n]:(r=Tt.f(t,n))?Hg(r)?r.value:void 0===r.get?void 0:he(r.get,o):de(i=fo(t))?e(i,n,o):void 0}});var Mg=G.Reflect.get,Ng=no;function Og(){var e;"undefined"!=typeof Reflect&&Mg?Og=dA(e=Mg).call(e):Og=function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=wA(e)););return e}(e,t);if(r){var i=Ng(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}};return Og.apply(this,arguments)}function Dg(e){var t=function(){if("undefined"==typeof Reflect||!qn)return!1;if(qn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wA(e);if(t){var i=wA(this).constructor;n=qn(r,arguments,i)}else n=r.apply(this,arguments);return mA(this,n)}}var Rg="atx",Pg="setext",Kg=/[\s\-_]/,$g=/[A-Za-z]/,Gg=/[0-9]/,Xg=function(e){gA(n,vd);var t=Dg(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0,externals:void 0};r.externals;var i=r.config;return ua(this,n),(e=t.call(this,{needCache:!0})).strict=!i||!!i.strict,e.RULE=e.rule(),e.headerIDCache=[],e.headerIDCounter={},e.config=i||{},e}return nA(n,[{key:"$parseTitleText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"string"!=typeof e?"":e.replace(/<.*?>/g,"").replace(/</g,"<").replace(/>/g,">")}},{key:"$generateId",value:function(e){for(var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.length,r="",i=0;i255)try{r+=encodeURIComponent(o)}catch(e){}}return r}},{key:"generateIDNoDup",value:function(e){var t,n=e.replace(/</g,"<").replace(/>/g,">"),r=this.$generateId(n,!0),i=rf(t=this.headerIDCache).call(t,r);if(-1!==i)this.headerIDCounter[i]+=1,r+="-".concat(this.headerIDCounter[i]+1);else{var o=this.headerIDCache.push(r);this.headerIDCounter[o-1]=1}return r}},{key:"$wrapHeader",value:function(e,t,n,r){var i,o,a,A,s,l,c,u=r(Kc(e).call(e)),f=u.html,h=f.match(/\s+\{#([A-Za-z0-9-]+)\}$/);null!==h&&(f=f.substring(0,h.index),c=nf(h,2)[1]);var d=this.$parseTitleText(f);if(!c){c=this.generateIDNoDup(d.replace(/~fn#([0-9]+)#/g,""))}var p="safe_".concat(c),g=this.$engine.md5(kA(i=kA(o=kA(a="".concat(t,"-")).call(a,u.sign,"-")).call(o,c,"-")).call(i,n));return{html:[kA(A=kA(s=kA(l="'),this.$getAnchor(c),"".concat(f),"")].join(""),sign:"".concat(g)}}},{key:"$getAnchor",value:function(e){return"none"===(this.config.anchorStyle||"default")?"":'')}},{key:"beforeMakeHtml",value:function(e){var t=this,n=e;return this.test(n,Rg)&&(n=n.replace(this.RULE[Rg].reg,(function(e,n,r,i){return""===Kc(i).call(i)?e:t.getCacheWithSpace(t.pushCache(e),e,!0)}))),this.test(n,Pg)&&(n=n.replace(this.RULE[Pg].reg,(function(e,n,r){return""===Kc(r).call(r)||t.isContainsCache(r)?e:t.getCacheWithSpace(t.pushCache(e),e,!0)}))),n}},{key:"makeHtml",value:function(e,t){var n=this,r=this.restoreCache(e);return this.test(r,Rg)&&(r=r.replace(this.RULE[Rg].reg,(function(e,r,i,o){var a=Oh(r,n.getLineCount(e.replace(/^\n+/,""))),A=o.replace(/\s+#+\s*$/,""),s=n.$wrapHeader(A,i.length,a,t),l=s.html,c=s.sign;return n.getCacheWithSpace(n.pushCache(l,c,a),e,!0)}))),this.test(r,Pg)&&(r=r.replace(this.RULE[Pg].reg,(function(e,r,i,o){if(n.isContainsCache(i))return e;var a=Oh(r,n.getLineCount(e.replace(/^\n+/,""))),A="-"===o[0]?2:1,s=n.$wrapHeader(i,A,a,t),l=s.html,c=s.sign;return n.getCacheWithSpace(n.pushCache(l,c,a),e,!0)}))),r}},{key:"afterMakeHtml",value:function(e){var t=Og(wA(n.prototype),"afterMakeHtml",this).call(this,e);return this.headerIDCache=[],this.headerIDCounter={},t}},{key:"test",value:function(e,t){return this.RULE[t].reg&&this.RULE[t].reg.test(e)}},{key:"rule",value:function(){var e={begin:"(?:^|\\n)(\\n*)",content:["(?:\\h*","(.+)",")\\n","(?:\\h*","([=]+|[-]+)",")"].join(""),end:"(?=$|\\n)"};e.reg=Pf(e,"g",!0);var t={begin:"(?:^|\\n)(\\n*)(?:\\h*(#{1,6}))",content:"(.+?)",end:"(?=$|\\n)"};return this.strict&&(t.begin+="(?=\\h+)"),t.reg=Pf(t,"g",!0),{setext:e,atx:t}}}]),n}();function jg(e){var t=function(){if("undefined"==typeof Reflect||!qn)return!1;if(qn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wA(e);if(t){var i=wA(this).constructor;n=qn(r,arguments,i)}else n=r.apply(this,arguments);return mA(this,n)}}BA(Xg,"HOOK_NAME","header");var Vg=function(e){gA(n,Sh);var t=jg(n);function n(){return ua(this,n),t.apply(this,arguments)}return nA(n,[{key:"rule",value:function(){return{begin:"",content:"",end:"",reg:new RegExp("")}}},{key:"beforeMakeHtml",value:function(e){return e.replace(/\\\n/g,"\\ \n")}},{key:"afterMakeHtml",value:function(e){var t=e.replace(/~Q/g,"~");return t=(t=(t=(t=(t=t.replace(/~X/g,"`")).replace(/~Y/g,"!")).replace(/~Z/g,"#")).replace(/~&/g,"&")).replace(/~K/g,"/")}}]),n}();BA(Vg,"HOOK_NAME","transfer");var qg=TypeError,Wg=function(e){return function(t,n,r,i){fe(n);var o=Ce(t),a=D(o),A=hn(o),s=e?A-1:0,l=e?-1:1;if(r<2)for(;;){if(s in a){i=a[s],s+=l;break}if(s+=l,e?s<0:A<=s)throw qg("Reduce of empty array with no initial value")}for(;e?s>=0:A>s;s+=l)s in a&&(i=n(i,a[s],s,o));return i}},zg={left:Wg(!1),right:Wg(!0)},Jg="process"===B(X.process),Yg=zg.left,Zg=!Jg&&Z>79&&Z<83||!Vo("reduce");Nn({target:"Array",proto:!0,forced:Zg},{reduce:function(e){var t=arguments.length;return Yg(this,e,t,t>1?arguments[1]:void 0)}});var em=Xi("Array").reduce,tm=Array.prototype,nm=function(e){var t=e.reduce;return e===tm||oe(tm,e)&&t===tm.reduce?em:t},rm=nm;function im(e,t){var n=er(e);if(Ri){var r=Ri(e);t&&(r=Wi(r).call(r,(function(t){return ro(e,t).enumerable}))),n.push.apply(n,r)}return n}function om(e){for(var t=1;t')).call(i,w,"");return{html:kA(s="".concat(B)).call(s,b.html),sign:m+b.sign}}},{key:"$testHeadEmpty",value:function(e){var t=e.replace(/ /g,"").replace(/\s/g,"").replace(/(~CTH\$|~CTHU|~CTHL|~CTHR|~CTHC)/g,"");return(null==t?void 0:t.length)>0}},{key:"$renderTable",value:function(e,t,n,r){var i,o,a,A,s=this.$testHeadEmpty(t)?kA(i="~CTHD".concat(t,"~CTHD$~CTBD")).call(i,n,"~CTBD$"):"~CTBD".concat(n,"~CTBD$"),l=this.$engine.md5(s),c=s.replace(/~CTHD\$/g,"").replace(/~CTHD/g,"").replace(/~CTBD\$/g,"").replace(/~CTBD/g,"").replace(/~CTR\$/g,"").replace(/~CTR/g,"").replace(/[ ]?~CTH\$/g,"").replace(/[ ]?~CTD\$/g,"").replace(/~CT(D|H)(L|R|C|U)[ ]?/g,(function(t,n,r){var i="":' align="'.concat(e[r],'">')})).replace(/\\\|/g,"|");return{html:kA(o=kA(a=kA(A='
\n ')).call(o,c,"
"),sign:l}}},{key:"makeHtml",value:function(e,t){var n=this,r=e;return this.test(r,sm)&&(r=r.replace(this.RULE[sm].reg,(function(e,r){var i,o=n.getLineCount(e,r),a=Mh(i=Kc(e).call(e).split(/\n/)).call(i,(function(e){var t;return Kc(t=String(e)).call(t)})),A=n.$parseTable(a,t,o),s=A.html,l=A.sign;return n.getCacheWithSpace(n.pushCache(s,l,o),e)}))),this.test(r,Am)&&(r=r.replace(this.RULE[Am].reg,(function(e,r){var i,o=n.getLineCount(e,r),a=Mh(i=Kc(e).call(e).split(/\n/)).call(i,(function(e){var t;return Kc(t=String(e)).call(t)})),A=n.$parseTable(a,t,o),s=A.html,l=A.sign;return n.getCacheWithSpace(n.pushCache(s,l,o),e)}))),r}},{key:"test",value:function(e,t){return this.RULE[t].reg&&this.RULE[t].reg.test(e)}},{key:"rule",value:function(){return eh()}}]),n}();function cm(){return"object"===("undefined"==typeof window?"undefined":Ya(window))}function um(e){var t=function(){if("undefined"==typeof Reflect||!qn)return!1;if(qn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wA(e);if(t){var i=wA(this).constructor;n=qn(r,arguments,i)}else n=r.apply(this,arguments);return mA(this,n)}}BA(lm,"HOOK_NAME","table");var fm=function(e){gA(n,vd);var t=um(n);function n(e){var r;return ua(this,n),(r=t.call(this,{needCache:!0})).classicBr=Ph("classicBr")?Kh():e.globalConfig.classicBr,r}return nA(n,[{key:"beforeMakeHtml",value:function(e){var t=this;return this.test(e)?e.replace(this.RULE.reg,(function(e,n,r){var i,o;if(0===r)return e;var a,A,s=null!==(i=null===(o=n.match(/\n/g))||void 0===o?void 0:o.length)&&void 0!==i?i:0,l="br".concat(s),c="";cm()?c=t.classicBr?kA(a=''):kA(A='

 

'):c=t.classicBr?"":"
";var u=t.pushCache(c,l,s);return"\n\n".concat(u,"\n")})):e}},{key:"makeHtml",value:function(e,t){return e}},{key:"rule",value:function(){var e={begin:"(?:\\n)",end:"",content:"((?:\\h*\\n){2,})"};return e.reg=Pf(e,"g",!0),e}}]),n}();function hm(e){var t=function(){if("undefined"==typeof Reflect||!qn)return!1;if(qn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wA(e);if(t){var i=wA(this).constructor;n=qn(r,arguments,i)}else n=r.apply(this,arguments);return mA(this,n)}}BA(fm,"HOOK_NAME","br");var dm=function(e){gA(n,vd);var t=hm(n);function n(){return ua(this,n),t.call(this,{needCache:!0})}return nA(n,[{key:"beforeMakeHtml",value:function(e){var t=this;return e.replace(this.RULE.reg,(function(e,n){var r,i=(n.match(/\n/g)||[]).length+1,o="hr".concat(i);return Nh(e,t.pushCache(kA(r='
'),o))}))}},{key:"makeHtml",value:function(e,t){return e}},{key:"rule",value:function(){var e={begin:"(?:^|\\n)(\\n*)[ ]*",end:"(?=$|\\n)",content:"((?:-[ \\t]*){3,}|(?:\\*[ \\t]*){3,}|(?:_[ \\t]*){3,})"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();BA(dm,"HOOK_NAME","hr");var pm={processExtendAttributesInAlt:function(e){var t=e.match(/#([0-9]+(px|em|pt|pc|in|mm|cm|ex|%)|auto)/g);if(!t)return"";var n="",r=nf(t,2),i=r[0],o=r[1];return i&&(n=' width="'.concat(i.replace(/[ #]*/g,""),'"')),o&&(n+=' height="'.concat(o.replace(/[ #]*/g,""),'"')),n},processExtendStyleInAlt:function(e){var t=this.$getAlignment(e),n="",r=e.match(/#(border|shadow|radius|B|S|R)/g);if(r)for(var i=0;i')).call(f,fd(r||""),"");return kA(v="".concat(n)).call(v,A.videoWrapper?A.videoWrapper(i):C)}return t},bm=function(e){gA(n,Sh);var t=vm(n);function n(e){var r,i=e.config,o=e.globalConfig;return ua(this,n),(r=t.call(this,null)).urlProcessor=o.urlProcessor,r.extendMedia={tag:["video","audio"],replacer:{video:function(e,t,n,r,a,A){return ym("video",e,t,n,r,a,A,i,o)},audio:function(e,t,n,r,a,A){return ym("audio",e,t,n,r,a,A,i,o)}}},r.RULE=r.rule(r.extendMedia),r}return nA(n,[{key:"toHtml",value:function(e,t,n,r,i,o,a){var A=void 0===r?"ref":"url",s="";if("ref"===A)return e;if("url"===A){var l,c,u,f,h,d,p,g,m=gm.processExtendAttributesInAlt(n),v=gm.processExtendStyleInAlt(n),y=v.extendStyles,b=v.extendClasses;y&&(y=' style="'.concat(y,'" ')),b&&(b=' class="'.concat(b,'" ')),s=i&&""!==Kc(i).call(i)?' title="'.concat(fd(i.replace(/["']/g,"")),'"'):"";var w,B="src",T=this.$engine.$cherry.options;if(T.callback&&T.callback.beforeImageMounted){var C=T.callback.beforeImageMounted(B,r);B=C.srcProp||B,w=C.src||r}var E=a?a.replace(/[{}]/g,"").replace(/([^=\s]+)=([^\s]+)/g,'$1="$2"').replace(/&/g,"&"):"";return kA(l=kA(c=kA(u=kA(f=kA(h=kA(d=kA(p=kA(g="".concat(t,"')).call(u,fd(n||")}return e}},{key:"toMediaHtml",value:function(e,t,n,r,i,o,a,A,s){var l,c;if(!this.extendMedia.replacer[n])return e;for(var u=arguments.length,f=new Array(u>9?u-9:0),h=9;h-1?"ul":"ol",t.listStyle=function(e){return/^[a-z]/.test(e)?"lower-greek":/^[一二三四五六七八九十]/.test(e)?"cjk-ideographic":/^I/.test(e)?"upper-roman":/^\+/.test(e)?"circle":/^\*/.test(e)?"square":"default"}(r),t.start=Number(r.replace(".",""))?Number(r.replace(".","")):1,o})):(t.type="blank",e)}var Qm=nA((function e(){ua(this,e),this.index=0,this.space=0,this.type="",this.start=1,this.listStyle="",this.strs=[],this.children=[],this.lines=0})),xm=function(e){gA(n,vd);var t=Tm(n);function n(e){var r,i=e.config;return ua(this,n),(r=t.call(this,{needCache:!0})).config=i||{},r.tree=[],r.emptyLines=0,r.indentSpace=Math.max(r.config.indentSpace,2),r}return nA(n,[{key:"addNode",value:function(e,t,n,r){"blank"===e.type?this.tree[r].strs.push(e.strs[0]):(this.tree[n].children.push(t),this.tree[t]=Bm(Bm({},e),{},{parent:n}))}},{key:"buildTree",value:function(e,t){var n=e.split("\n");this.tree=[],n.unshift("");for(var r=e.match(/\n*$/g)[0].length,i=0;io.space;)a-=1;var A=o.space,s=this.tree[a].space;A".concat(s.strs.join("
"),"

");s.lines+=a.getLineCount(s.strs.join("\n"));var u=s.children.length?a.renderTree(n):"";e.lines+=s.lines,A+=s.lines;return/<\/span>/.test(c)&&(l.class="check-list-item"),kA(r=kA(i=kA(o="".concat(t,"")).call(i,c)).call(r,u,"")}),"");return void 0===e.parent&&(s["data-lines"]=0===e.index?A+this.emptyLines:A,s["data-sign"]=this.sign),t[0]&&"ol"===n&&(s.start=this.tree[t[0]].start),s.class="cherry-list__".concat(this.tree[t[0]].listStyle),kA(r=kA(i=kA(o="<".concat(n)).call(o,Cm(s),">")).call(i,l,"")}},{key:"renderTree",value:function(e){var t=this,n=0,r=this.tree[e],i=r.children;return rm(i).call(i,(function(e,o,a){if(0===a)return e;if(t.tree[i[a]].type===t.tree[i[a-1]].type)return e;var A=t.renderSubTree(r,af(i).call(i,n,a),t.tree[i[a-1]].type);return n=a,e+A}),"")+(i.length?this.renderSubTree(r,af(i).call(i,n,i.length),this.tree[i[i.length-1]].type):"")}},{key:"toHtml",value:function(e,t){var n,r;this.emptyLines=null!==(n=null===(r=e.match(/^\n\n/))||void 0===r?void 0:r.length)&&void 0!==n?n:0;var i=e.replace(/~0$/g,"").replace(/^\n+/,"");this.buildTree(function(e){return e.replace(/^((?:|[\t ]+)[*+-]\s+)\[(\s|x)\]/gm,(function(e,t,n){var r,i=/\s/.test(n)?'':'';return kA(r="".concat(t)).call(r,i)}))}(i),t);var o=this.renderTree(0);return this.pushCache(o,this.sign,this.$getLineNum(e))}},{key:"$getLineNum",value:function(e){var t,n,r,i,o=null!==(t=null===(n=e.match(/^\n\n/))||void 0===n?void 0:n.length)&&void 0!==t?t:0;return null!==(r=null===(i=e.replace(/^\n+/,"").replace(/\n+$/,"\n").match(/\n/g))||void 0===i?void 0:i.length)&&void 0!==r?r:0+o}},{key:"makeHtml",value:function(e,t){var n=this,r="".concat(e,"~0");return this.test(r)&&(r=r.replace(this.RULE.reg,(function(e){return n.getCacheWithSpace(n.checkCache(e,t,n.$getLineNum(e)),e)}))),r=r.replace(/~0$/g,"")}},{key:"rule",value:function(){var e={begin:"(?:^|\n)(\n*)(([ ]{0,3}([*+-]|\\d+[.]|[a-z]\\.|[I一二三四五六七八九十]+\\.)[ \\t]+)",content:"([^\\r]+?)",end:"(~0|\\n{2,}(?=\\S)(?![ \\t]*(?:[*+-]|\\d+[.]|[a-z]\\.|[I一二三四五六七八九十]+\\.)[ \\t]+)))"};return e.reg=new RegExp(e.begin+e.content+e.end,"gm"),e}}]),n}();function _m(e){var t=function(){if("undefined"==typeof Reflect||!qn)return!1;if(qn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wA(e);if(t){var i=wA(this).constructor;n=qn(r,arguments,i)}else n=r.apply(this,arguments);return mA(this,n)}}function Sm(e){for(var t=/^(\t|[ ]{1,4})/,n=e,r=0;t.test(n);)n=n.replace(/^(\t|[ ]{1,4})/g,""),r+=1;return r}BA(xm,"HOOK_NAME","list");var Lm=function(e){gA(n,vd);var t=_m(n);function n(){return ua(this,n),t.call(this,{needCache:!0})}return nA(n,[{key:"handleMatch",value:function(e,t){var n=this;return e.replace(this.RULE.reg,(function(e,r,i){for(var o,a,A=t(i),s=A.sign,l=A.html,c=n.signWithCache(l)||s,u=n.getLineCount(e,r),f=/^(([ \t]{0,3}([*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)([^\r]+?)($|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)))/,h=Sm(r),d=l.split("\n"),p=/^[>\s]+/,g=/>/g,m=1,v=0,y=kA(o=kA(a='
'),b=0;d[b];b++){if(0!==b){var w=Sm(d[b]);if(w<=h&&f.test(d[b]))break;h=w}var B=d[b].replace(p,(function(e){var t=e.match(g);return v=t&&t.length>m?t.length:m,""}));if(m===v&&0!==b&&(y+="
"),m").call("
",v-m),m=v;y+=B}return y+=Sg("
").call("
",m),n.getCacheWithSpace(n.pushCache(y,c,u),e)}))}},{key:"makeHtml",value:function(e,t){return this.test(e)?this.handleMatch(e,t):e}},{key:"rule",value:function(){var e={begin:"(?:^|\\n)(\\s*)",content:["(",">(?:.+?\\n(?![*+-]|\\d+[.]|[a-z]\\.))(?:>*.+?\\n(?![*+-]|\\d+[.]|[a-z]\\.))*(?:>*.+?)","|",">(?:.+?)",")"].join(""),end:"(?=(\\n)|$)"};return e.reg=Pf(e,"g"),e}}]),n}();function Fm(e){var t=function(){if("undefined"==typeof Reflect||!qn)return!1;if(qn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wA(e);if(t){var i=wA(this).constructor;n=qn(r,arguments,i)}else n=r.apply(this,arguments);return mA(this,n)}}BA(Lm,"HOOK_NAME","blockquote");var Im=function(e){gA(n,Sh);var t=Fm(n);function n(e){var r,i=e.config,o=e.globalConfig;return ua(this,n),(r=t.call(this,{config:i})).urlProcessor=o.urlProcessor,r.enableShortLink=!!i.enableShortLink,r.shortLinkLength=i.shortLinkLength,r.target=i.target?'target="'.concat(i.target,'"'):i.openNewPage?'target="_blank"':"",r.rel=i.rel?'rel="'.concat(i.rel,'"'):"",r}return nA(n,[{key:"isLinkInHtmlAttribute",value:function(e,t,n){for(var r,i=new RegExp(["<","([a-zA-Z][a-zA-Z0-9-]*)","(",["\\s+[a-zA-Z_:][a-zA-Z0-9_.:-]*","(",["\\s*=\\s*","(",["([^\\s\"'=<>`]+)","('[^']*')",'("[^"]*")'].join("|"),")"].join(""),")?"].join(""),")*","\\s*[/]?>"].join(""),"g");null!==(r=i.exec(e))&&!(r.index>t+n);)if(r.index=t+n)return!0;return!1}},{key:"isLinkInATag",value:function(e,t,n){for(var r,i=/[^<]*<\/a>/g;null!==(r=i.exec(e))&&!(r.index>t+n);)if(r.index=t+n)return!0;return!1}},{key:"makeHtml",value:function(e,t){var n=this;return this.test(e)&&(Vf.test(e)||Wf.test(e))?e.replace(this.RULE.reg,(function(e,t,r,i,o,a,A){var s,l,c;if(n.isLinkInHtmlAttribute(A,a,r.length+i.length)||n.isLinkInATag(A,a,r.length+i.length))return e;var u=r.toLowerCase(),f="",h="",d=!0;if(("<"!==t&&"<"!==t||">"!==o&&">"!==o)&&(f=t,h=o,d=!1),""===Kc(i).call(i)||!d&&""===u&&!/www\./.test(i))return e;switch(u){case"javascript:":return e;case"mailto:":var p,g,m,v,y,b;return qf.test(i)?kA(p=kA(g=kA(m=kA(v=kA(y="".concat(f,'")).call(g,fd(i),"")).call(p,h):e;case"":var w,B,T,C,E,k,Q,x,_,S;if(f===h||!d)return qf.test(i)?kA(w=kA(B=kA(T=kA(C=kA(E="".concat(f,'")).call(B,fd(i),"")).call(w,h):Jf.test(i)?kA(k=kA(Q="".concat(f)).call(Q,n.renderLink("//".concat(i),i))).call(k,h):e;if(d)return qf.test(i)?kA(x=kA(_=kA(S='")).call(x,fd(i),""):Yf.test(i)||Jf.test(i)?n.renderLink(i):e;default:return Yf.test(i)?kA(s=kA(l="".concat(f)).call(l,n.renderLink(kA(c="".concat(u)).call(c,i)))).call(s,h):e}return e})):e}},{key:"rule",value:function(){var e,t={begin:"(?)"};return t.reg=Pf(t,"ig"),t}},{key:"renderLink",value:function(e,t){var n,r,i,o,a=t;if("string"!=typeof a)if(this.enableShortLink){var A,s=e.replace(/^https?:\/\//i,"");a=kA(A="".concat(s.substring(0,this.shortLinkLength))).call(A,s.length>this.shortLinkLength?"...":"")}else a=e;var l=this.urlProcessor(e,"autolink");return kA(n=kA(r=kA(i=kA(o="')).call(n,fd(a).replace(/_/g,"\\_"),"")}}]),n}();function Um(){var e,t,n,r;cm()&&(this.katex=null!==(e=null===(t=this.externals)||void 0===t?void 0:t.katex)&&void 0!==e?e:window.katex,this.MathJax=null!==(n=null===(r=this.externals)||void 0===r?void 0:r.MathJax)&&void 0!==n?n:window.MathJax)}BA(Im,"HOOK_NAME","autoLink");var Hm=["&","<",">",'"',"'"],Mm=function(e){var t=e.replace(new RegExp(Xf,"g"),(function(e){return-1!==rf(Hm).call(Hm,e)?ud(e):"\\".concat(e)}));return t};function Nm(e){var t=function(){if("undefined"==typeof Reflect||!qn)return!1;if(qn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wA(e);if(t){var i=wA(this).constructor;n=qn(r,arguments,i)}else n=r.apply(this,arguments);return mA(this,n)}}var Om=function(e){gA(n,vd);var t=Nm(n);function n(e){var r,i,o=e.config;return ua(this,n),BA(rA(i=t.call(this,{needCache:!0})),"engine","MathJax"),BA(rA(i),"katex",void 0),BA(rA(i),"MathJax",void 0),i.engine=cm()?null!==(r=o.engine)&&void 0!==r?r:"MathJax":"node",i}return nA(n,[{key:"toHtml",value:function(e,t,n,r){var i,o,a;QA(Um).call(Um,this)("engine");var A=e.replace(/^[ \f\r\t\v]*/,"").replace(/\s*$/,""),s=t.replace(/^[ \f\r\t\v]*\n/,""),l=this.$engine.md5(e),c=this.getLineCount(A,s);if(/\n/.test(t)||(c-=1),/\n\s*$/.test(e)||(c-=1),c=c>0?c:0,"katex"===this.engine){var u,f,h=this.katex.renderToString(r,{throwOnError:!1,displayMode:!0}),d=kA(u=kA(f='
')).call(u,h,"
");return n+this.getCacheWithSpace(this.pushCache(d,l,c),e)}if(null!==(i=this.MathJax)&&void 0!==i&&i.tex2svg){var p,g,m=xf(this.MathJax.tex2svg(r),!0),v=kA(p=kA(g='
')).call(p,m,"
");return n+this.getCacheWithSpace(this.pushCache(v,l,c),e)}var y=kA(o=kA(a='
$$')).call(o,Mm(r),"$$
");return n+this.getCacheWithSpace(this.pushCache(y,l,c),e)}},{key:"beforeMakeHtml",value:function(e){var t,n;return Kf()?e.replace(this.RULE.reg,QA(n=this.toHtml).call(n,this)):Xp(e,this.RULE.reg,QA(t=this.toHtml).call(t,this),!0,1)}},{key:"makeHtml",value:function(e){return e}},{key:"rule",value:function(){var e={begin:Kf()?"(\\s*)((?')).call(c,f,"
");return this.pushCache(h,vd.IN_PARAGRAPH_CACHE_KEY_PREFIX+l)}if(null!==(i=this.MathJax)&&void 0!==i&&i.tex2svg){var d,p,g=xf(this.MathJax.tex2svg(n,{em:12,ex:6,display:!1}),!0),m=kA(d=kA(p="".concat(t,'')).call(d,g,"");return this.pushCache(m,vd.IN_PARAGRAPH_CACHE_KEY_PREFIX+l)}var v=kA(o=kA(a="".concat(t,'$')).call(o,Mm(n),"$");return this.pushCache(v,vd.IN_PARAGRAPH_CACHE_KEY_PREFIX+l)}},{key:"beforeMakeHtml",value:function(e){var t=this,n=e;return n=n.replace(eh(!0),(function(e){var n;return Mh(n=e.split("|")).call(n,(function(e){return t.makeInlineMath(e)})).join("|").replace(/\\~D/g,"~D").replace(/~D/g,"\\~D")})),this.makeInlineMath(n)}},{key:"makeInlineMath",value:function(e){var t,n;return this.test(e)?Kf()?e.replace(this.RULE.reg,QA(n=this.toHtml).call(n,this)):Xp(e,this.RULE.reg,QA(t=this.toHtml).call(t,this),!0,1):e}},{key:"makeHtml",value:function(e){return e}},{key:"rule",value:function(){var e={begin:Kf()?"((?1?arguments[1]:void 0,n),o=r>2?arguments[2]:void 0,a=void 0===o?n:fn(o,n);a>i;)t[i++]=e;return t}}),Mo();var Pm=Xi("Array").fill,Km=Array.prototype,$m=function(e){var t=e.fill;return e===Km||oe(Km,e)&&t===Km.fill?Pm:t},Gm=$m;function Xm(e){var t=function(){if("undefined"==typeof Reflect||!qn)return!1;if(qn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wA(e);if(t){var i=wA(this).constructor;n=qn(r,arguments,i)}else n=r.apply(this,arguments);return mA(this,n)}}function jm(e){return e}var Vm={tocStyle:"plain",tocNodeClass:"toc-li",tocContainerClass:"toc",tocTitleClass:"toc-title",linkProcessor:jm},qm='

 

',Wm=function(e){gA(n,vd);var t=Xm(n);function n(e){var r,i;e.externals;var o=e.config;return ua(this,n),BA(rA(i=t.call(this,{needCache:!0})),"tocStyle","nested"),BA(rA(i),"tocNodeClass","toc-li"),BA(rA(i),"tocContainerClass","toc"),BA(rA(i),"tocTitleClass","toc-title"),BA(rA(i),"linkProcessor",jm),BA(rA(i),"baseLevel",1),BA(rA(i),"isFirstTocToken",!0),BA(rA(i),"allowMultiToc",!1),ea(r=er(Vm)).call(r,(function(e){i[e]=o[e]||Vm[e]})),i}return nA(n,[{key:"beforeMakeHtml",value:function(e){var t=this,n=e;return this.test(n,"extend")&&(n=n.replace(this.RULE.extend.reg,(function(e,n,r){var i;if(!t.allowMultiToc&&!t.isFirstTocToken)return kA(i="\n".concat(n)).call(i,qm);var o=t.pushCache(e);return t.isFirstTocToken=!1,Nh(e,o)}))),this.test(n,"standard")&&(n=n.replace(this.RULE.standard.reg,(function(e,n,r){var i;return t.allowMultiToc||t.isFirstTocToken?(t.isFirstTocToken=!1,Nh(e,t.pushCache(e))):kA(i="\n".concat(n)).call(i,qm)}))),n}},{key:"makeHtml",value:function(e){return e}},{key:"$makeLevel",value:function(e){for(var t="",n=this.baseLevel;n2&&void 0!==arguments[2])||arguments[2],s="";t&&(s=this.$makeLevel(e.level));var l=this.linkProcessor("#".concat(e.id).replace(/safe_/g,""));return kA(n=kA(r=kA(i=kA(o=kA(a='
  • ')).call(a,s,'')).call(r,e.text,"")).call(n,A?"
  • ":"")}},{key:"$makePlainToc",value:function(e){var t=this,n=Mh(e).call(e,(function(e){return t.$makeTocItem(e,!0)}));return n.join("")}},{key:"$makeNestedToc",value:function(e){var t,n,r=this,i=0,o=Gm(t=new Array(7)).call(t,!1),a=Gm(n=new Array(7)).call(n,!1),A="";ea(e).call(e,(function(e){var t=e.level;if(0===i){for(var n=t;n>=r.baseLevel;n--)A+="
      ",a[n]=!0;return A+=r.$makeTocItem(e,!1,!1),o[t]=!0,void(i=t)}if(t=t;s--)o[s]&&(A+="",o[s]=!1),a[s]&&s>t&&(A+="
    ",a[s]=!1);o[t]=!0,A+=r.$makeTocItem(e,!1,!1),i=t}else if(t===i)o[i]&&(A+=""),A+=r.$makeTocItem(e,!1,!1),o[t]=!0,a[t]=!0;else{for(var l=i+1;l<=t;l++)A+="
      ",a[l]=!0;o[t]=!0,A+=r.$makeTocItem(e,!1,!1),i=t}}));for(var s=i;s>=this.baseLevel;s--)o[s]&&(A+="",o[s]=!1),a[s]&&(A+="
    ",a[s]=!1);return A}},{key:"$makeToc",value:function(e,t,n){var r,i,o,a=Oh(n,1),A=kA(r=kA(i=kA(o='');return A+='

    目录

    '),e.length<=0?"":(this.baseLevel=Math.min.apply(Math,Pp(Mh(e).call(e,(function(e){return e.level})))),"nested"===this.tocStyle?A+=this.$makeNestedToc(e):A+=this.$makePlainToc(e),A+="
    ")}},{key:"afterMakeHtml",value:function(e){var t=this,r=Og(wA(n.prototype),"afterMakeHtml",this).call(this,e),i=[],o="";return r.replace(/]*? id="([^"]+?)"[^>]*?>(?:|)(.+?)<\/h\1>/g,(function(e,t,n,r){var a,A=r.replace(/~fn#[0-9]+#/g,"");i.push({level:+t,id:n,text:A}),o+=kA(a="".concat(t)).call(a,n)})),o=this.$engine.md5(o),r=r.replace(/(?:^|\n)(\[\[|\[|【【)(toc|TOC)(\]\]|\]|】】)([<~])/,(function(e){return e.replace(/(\]\]|\]|】】)([<~])/,"$1\n$2")})),r=(r=r.replace(this.RULE.extend.reg,(function(e,n){return t.$makeToc(i,o,n)}))).replace(this.RULE.standard.reg,(function(e,n){return t.$makeToc(i,o,n)})),this.isFirstTocToken=!0,r}},{key:"test",value:function(e,t){return!!this.RULE[t].reg&&this.RULE[t].reg.test(e)}},{key:"rule",value:function(){var e={begin:"(?:^|\\n)(\\n*)",end:"(?=$|\\n)",content:"[ ]*((?:【【|\\[\\[)(?:toc|TOC)(?:\\]\\]|】】))[ ]*"};e.reg=new RegExp(e.begin+e.content+e.end,"g");var t={begin:"(?:^|\\n)(\\n*)",end:"(?=$|\\n)",content:"[ ]*(\\[(?:toc|TOC)\\])[ ]*"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),{extend:e,standard:t}}}]),n}();function zm(e){var t=function(){if("undefined"==typeof Reflect||!qn)return!1;if(qn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wA(e);if(t){var i=wA(this).constructor;n=qn(r,arguments,i)}else n=r.apply(this,arguments);return mA(this,n)}}BA(Wm,"HOOK_NAME","toc");var Jm=function(e){gA(n,vd);var t=zm(n);function n(e){var r;return e.externals,e.config,ua(this,n),(r=t.call(this)).footnoteCache={},r.footnoteMap={},r.footnote=[],r}return nA(n,[{key:"$cleanCache",value:function(){this.footnoteCache={},this.footnoteMap={},this.footnote=[]}},{key:"pushFootnoteCache",value:function(e,t){this.footnoteCache[e]=t}},{key:"getFootnoteCache",value:function(e){return this.footnoteCache[e]||null}},{key:"pushFootNote",value:function(e,t){var n,r,i,o,a,A;if(this.footnoteMap[e])return this.footnoteMap[e];var s=this.footnote.length+1,l={};l.fn=kA(n=kA(r=kA(i='[')).call(n,s,"]"),l.fnref=kA(o=kA(a=kA(A='[')).call(o,s,"]"),l.num=s,l.note=Kc(t).call(t),this.footnote.push(l);var c="\0~fn#".concat(s-1,"#\0");return this.footnoteMap[e]=c,c}},{key:"getFootNote",value:function(){return this.footnote}},{key:"formatFootNote",value:function(){var e,t=this.getFootNote();if(t.length<=0)return"";var n=Mh(t).call(t,(function(e){var t;return kA(t='
    \n'.concat(e.fnref)).call(t,e.note,"\n
    ")})).join(""),r=this.$engine.md5(n);return n=kA(e='
    脚注
    ')).call(e,n,"
    ")}},{key:"beforeMakeHtml",value:function(e){var t=this,n=e;return this.test(n)&&(n=n.replace(this.RULE.reg,(function(e,n,r,i){return t.pushFootnoteCache(r,i),(e.match(/\n/g)||[]).join("")})),n=n.replace(/\[\^([^\]]+?)\](?!:)/g,(function(e,n){var r=t.getFootnoteCache(n);return r?t.pushFootNote(n,r):e})),n+=this.formatFootNote()),n}},{key:"makeHtml",value:function(e,t){return e}},{key:"afterMakeHtml",value:function(e){var t=this.getFootNote(),n=e.replace(/\0~fn#([0-9]+)#\0/g,(function(e,n){return t[n].fn}));return this.$cleanCache(),n}},{key:"rule",value:function(){var e={begin:"(^|\\n)[ \t]*",content:["\\[\\^([^\\]]+?)\\]:\\h*","([\\s\\S]+?)"].join(""),end:"(?=\\s*$|\\n\\n)"};return e.reg=Pf(e,"g",!0),e}}]),n}();function Ym(e){var t=function(){if("undefined"==typeof Reflect||!qn)return!1;if(qn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(qn(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wA(e);if(t){var i=wA(this).constructor;n=qn(r,arguments,i)}else n=r.apply(this,arguments);return mA(this,n)}}BA(Jm,"HOOK_NAME","footnote");var Zm=function(e){gA(n,vd);var t=Ym(n);function n(e){var r;return e.externals,e.config,ua(this,n),(r=t.call(this)).commentCache={},r}return nA(n,[{key:"$cleanCache",value:function(){this.commentCache={}}},{key:"pushCommentReferenceCache",value:function(e,t){var n,r=Kp(t.split(/[ ]+/g)),i=r[0],o=af(r).call(r,1),a=Tg.set(i);this.commentCache["".concat(e).toLowerCase()]=kA(n=[a]).call(n,Pp(o)).join(" ")}},{key:"getCommentReferenceCache",value:function(e){return this.commentCache["".concat(e).toLowerCase()]||null}},{key:"beforeMakeHtml",value:function(e){var t=this,n=e;if(this.test(n)){n=n.replace(this.RULE.reg,(function(e,n,r,i){var o;return t.pushCommentReferenceCache(r,i),(null!==(o=e.match(/\n/g))&&void 0!==o?o:[]).join("")}));n=n.replace(/(\[[^\]\n]+?\])?(?:\[([^\]\n]+?)\])/g,(function(e,n,r){var i,o,a=t.getCommentReferenceCache(r);return a?n?kA(o="".concat(n,"(")).call(o,a,")"):kA(i="[".concat(r,"](")).call(i,a,")"):e})),this.$cleanCache()}return n}},{key:"makeHtml",value:function(e,t){return e}},{key:"afterMakeHtml",value:function(e){return Tg.restoreAll(e)}},{key:"rule",value:function(){var e={begin:"(^|\\n)[ \t]*",content:["\\[([^^][^\\]]*?)\\]:\\h*","([^\\n]+?)"].join(""),end:"(?=$|\\n)"};return e.reg=Pf(e,"g",!0),e}}]),n}();BA(Zm,"HOOK_NAME","commentReference");var ev=$r.some,tv=Vo("some");Nn({target:"Array",proto:!0,forced:!tv},{some:function(e){return ev(this,e,arguments.length>1?arguments[1]:void 0)}});var nv=Xi("Array").some,rv=Array.prototype,iv=function(e){var t=e.some;return e===rv||oe(rv,e)&&t===rv.some?nv:t},ov=iv,av=r((function(e,t){e.exports=function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,i,o){return r=n()?Reflect.construct:function(e,n,r){var i=[null];i.push.apply(i,n);var o=new(Function.bind.apply(e,i));return r&&t(o,r.prototype),o},r.apply(null,arguments)}function i(e){return o(e)||a(e)||A(e)||l()}function o(e){if(Array.isArray(e))return s(e)}function a(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function A(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n-1:0),i=1;i/gm),z=g(/\${[\w\W]*}/gm),J=g(/^data-[\-\w.\u00B7-\uFFFF]/),Y=g(/^aria-[\-\w]+$/),Z=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ee=g(/^(?:\w+script|data):/i),te=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ne=g(/^html$/i),re=function(){return"undefined"==typeof window?null:window},ie=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,i="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(i)&&(r=n.currentScript.getAttribute(i));var o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function oe(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re(),n=function(e){return oe(e)};if(n.version="2.4.7",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,o=t.document,a=t.DocumentFragment,A=t.HTMLTemplateElement,s=t.Node,l=t.Element,c=t.NodeFilter,u=t.NamedNodeMap,f=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,h=t.HTMLFormElement,d=t.DOMParser,g=t.trustedTypes,m=l.prototype,v=M(m,"cloneNode"),y=M(m,"nextSibling"),b=M(m,"childNodes"),F=M(m,"parentNode");if("function"==typeof A){var I=o.createElement("template");I.content&&I.content.ownerDocument&&(o=I.content.ownerDocument)}var ae=ie(g,r),Ae=ae?ae.createHTML(""):"",se=o,le=se.implementation,ce=se.createNodeIterator,ue=se.createDocumentFragment,fe=se.getElementsByTagName,he=r.importNode,de={};try{de=H(o).documentMode?o.documentMode:{}}catch(e){}var pe={};n.isSupported="function"==typeof F&&le&&void 0!==le.createHTMLDocument&&9!==de;var ge,me,ve=q,ye=W,be=z,we=J,Be=Y,Te=ee,Ce=te,Ee=Z,ke=null,Qe=U({},[].concat(i(N),i(O),i(D),i(P),i($))),xe=null,_e=U({},[].concat(i(G),i(X),i(j),i(V))),Se=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Le=null,Fe=null,Ie=!0,Ue=!0,He=!1,Me=!0,Ne=!1,Oe=!1,De=!1,Re=!1,Pe=!1,Ke=!1,$e=!1,Ge=!0,Xe=!1,je="user-content-",Ve=!0,qe=!1,We={},ze=null,Je=U({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ye=null,Ze=U({},["audio","video","img","source","image","track"]),et=null,tt=U({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",rt="http://www.w3.org/2000/svg",it="http://www.w3.org/1999/xhtml",ot=it,at=!1,At=null,st=U({},[nt,rt,it],E),lt=["application/xhtml+xml","text/html"],ct="text/html",ut=null,ft=o.createElement("form"),ht=function(e){return e instanceof RegExp||e instanceof Function},dt=function(t){ut&&ut===t||(t&&"object"===e(t)||(t={}),t=H(t),ge=ge=-1===lt.indexOf(t.PARSER_MEDIA_TYPE)?ct:t.PARSER_MEDIA_TYPE,me="application/xhtml+xml"===ge?E:C,ke="ALLOWED_TAGS"in t?U({},t.ALLOWED_TAGS,me):Qe,xe="ALLOWED_ATTR"in t?U({},t.ALLOWED_ATTR,me):_e,At="ALLOWED_NAMESPACES"in t?U({},t.ALLOWED_NAMESPACES,E):st,et="ADD_URI_SAFE_ATTR"in t?U(H(tt),t.ADD_URI_SAFE_ATTR,me):tt,Ye="ADD_DATA_URI_TAGS"in t?U(H(Ze),t.ADD_DATA_URI_TAGS,me):Ze,ze="FORBID_CONTENTS"in t?U({},t.FORBID_CONTENTS,me):Je,Le="FORBID_TAGS"in t?U({},t.FORBID_TAGS,me):{},Fe="FORBID_ATTR"in t?U({},t.FORBID_ATTR,me):{},We="USE_PROFILES"in t&&t.USE_PROFILES,Ie=!1!==t.ALLOW_ARIA_ATTR,Ue=!1!==t.ALLOW_DATA_ATTR,He=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Ne=t.SAFE_FOR_TEMPLATES||!1,Oe=t.WHOLE_DOCUMENT||!1,Pe=t.RETURN_DOM||!1,Ke=t.RETURN_DOM_FRAGMENT||!1,$e=t.RETURN_TRUSTED_TYPE||!1,Re=t.FORCE_BODY||!1,Ge=!1!==t.SANITIZE_DOM,Xe=t.SANITIZE_NAMED_PROPS||!1,Ve=!1!==t.KEEP_CONTENT,qe=t.IN_PLACE||!1,Ee=t.ALLOWED_URI_REGEXP||Ee,ot=t.NAMESPACE||it,Se=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ht(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ht(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ne&&(Ue=!1),Ke&&(Pe=!0),We&&(ke=U({},i($)),xe=[],!0===We.html&&(U(ke,N),U(xe,G)),!0===We.svg&&(U(ke,O),U(xe,X),U(xe,V)),!0===We.svgFilters&&(U(ke,D),U(xe,X),U(xe,V)),!0===We.mathMl&&(U(ke,P),U(xe,j),U(xe,V))),t.ADD_TAGS&&(ke===Qe&&(ke=H(ke)),U(ke,t.ADD_TAGS,me)),t.ADD_ATTR&&(xe===_e&&(xe=H(xe)),U(xe,t.ADD_ATTR,me)),t.ADD_URI_SAFE_ATTR&&U(et,t.ADD_URI_SAFE_ATTR,me),t.FORBID_CONTENTS&&(ze===Je&&(ze=H(ze)),U(ze,t.FORBID_CONTENTS,me)),Ve&&(ke["#text"]=!0),Oe&&U(ke,["html","head","body"]),ke.table&&(U(ke,["tbody"]),delete Le.tbody),p&&p(t),ut=t)},pt=U({},["mi","mo","mn","ms","mtext"]),gt=U({},["foreignobject","desc","title","annotation-xml"]),mt=U({},["title","style","font","a","script"]),vt=U({},O);U(vt,D),U(vt,R);var yt=U({},P);U(yt,K);var bt=function(e){var t=F(e);t&&t.tagName||(t={namespaceURI:ot,tagName:"template"});var n=C(e.tagName),r=C(t.tagName);return!!At[e.namespaceURI]&&(e.namespaceURI===rt?t.namespaceURI===it?"svg"===n:t.namespaceURI===nt?"svg"===n&&("annotation-xml"===r||pt[r]):Boolean(vt[n]):e.namespaceURI===nt?t.namespaceURI===it?"math"===n:t.namespaceURI===rt?"math"===n&>[r]:Boolean(yt[n]):e.namespaceURI===it?!(t.namespaceURI===rt&&!gt[r])&&!(t.namespaceURI===nt&&!pt[r])&&!yt[n]&&(mt[n]||!vt[n]):!("application/xhtml+xml"!==ge||!At[e.namespaceURI]))},wt=function(e){T(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=Ae}catch(t){e.remove()}}},Bt=function(e,t){try{T(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){T(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!xe[e])if(Pe||Ke)try{wt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Tt=function(e){var t,n;if(Re)e=""+e;else{var r=k(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ge&&ot===it&&(e=''+e+"");var i=ae?ae.createHTML(e):e;if(ot===it)try{t=(new d).parseFromString(i,ge)}catch(e){}if(!t||!t.documentElement){t=le.createDocument(ot,"template",null);try{t.documentElement.innerHTML=at?Ae:i}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),ot===it?fe.call(t,Oe?"html":"body")[0]:Oe?t.documentElement:a},Ct=function(e){return ce.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},Et=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof f)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},kt=function(t){return"object"===e(s)?t instanceof s:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Qt=function(e,t,r){pe[e]&&w(pe[e],(function(e){e.call(n,t,r,ut)}))},xt=function(e){var t;if(Qt("beforeSanitizeElements",e,null),Et(e))return wt(e),!0;if(S(/[\u0080-\uFFFF]/,e.nodeName))return wt(e),!0;var r=me(e.nodeName);if(Qt("uponSanitizeElement",e,{tagName:r,allowedTags:ke}),e.hasChildNodes()&&!kt(e.firstElementChild)&&(!kt(e.content)||!kt(e.content.firstElementChild))&&S(/<[/\w]/g,e.innerHTML)&&S(/<[/\w]/g,e.textContent))return wt(e),!0;if("select"===r&&S(/