Files
swiftadmin/public/static/js/markdown/cherry-markdown.core.common.js
2022-08-19 19:48:37 +08:00

1 line
1.2 MiB
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"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}var A,i,o=function(e){return e&&e.Math==Math&&e},a=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof t&&t)||function(){return this}()||Function("return this")(),s=function(e){try{return!!e()}catch(e){return!0}},c=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),l=Function.prototype,u=l.apply,f=l.call,h="object"==typeof Reflect&&Reflect.apply||(c?f.bind(u):function(){return f.apply(u,arguments)}),d=Function.prototype,p=d.bind,g=d.call,m=c&&p.bind(g,g),v=c?function(e){return e&&m(e)}:function(e){return e&&function(){return g.apply(e,arguments)}},B=function(e){return"function"==typeof e},E=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),y=Function.prototype.call,C=c?y.bind(y):function(){return y.apply(y,arguments)},b={}.propertyIsEnumerable,w=Object.getOwnPropertyDescriptor,T={f:w&&!b.call({1:2},1)?function(e){var t=w(this,e);return!!t&&t.enumerable}:b},_=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},I=v({}.toString),S=v("".slice),k=function(e){return S(I(e),8,-1)},F=a.Object,x=v("".split),L=s((function(){return!F("z").propertyIsEnumerable(0)}))?function(e){return"String"==k(e)?x(e,""):F(e)}:F,U=a.TypeError,N=function(e){if(null==e)throw U("Can't call method on "+e);return e},D=function(e){return L(N(e))},O=function(e){return"object"==typeof e?null!==e:B(e)},Q={},R=function(e){return B(e)?e:void 0},M=function(e,t){return arguments.length<2?R(Q[e])||R(a[e]):Q[e]&&Q[e][t]||a[e]&&a[e][t]},H=v({}.isPrototypeOf),P=M("navigator","userAgent")||"",K=a.process,G=a.Deno,$=K&&K.versions||G&&G.version,V=$&&$.v8;V&&(i=(A=V.split("."))[0]>0&&A[0]<4?1:+(A[0]+A[1])),!i&&P&&(!(A=P.match(/Edge\/(\d+)/))||A[1]>=74)&&(A=P.match(/Chrome\/(\d+)/))&&(i=+A[1]);var W=i,j=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&W&&W<41})),Y=j&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,X=a.Object,z=Y?function(e){return"symbol"==typeof e}:function(e){var t=M("Symbol");return B(t)&&H(t.prototype,X(e))},q=a.String,J=function(e){try{return q(e)}catch(e){return"Object"}},Z=a.TypeError,ee=function(e){if(B(e))return e;throw Z(J(e)+" is not a function")},te=function(e,t){var n=e[t];return null==n?void 0:ee(n)},ne=a.TypeError,re=Object.defineProperty,Ae=a["__core-js_shared__"]||function(e,t){try{re(a,e,{value:t,configurable:!0,writable:!0})}catch(n){a[e]=t}return t}("__core-js_shared__",{}),ie=r((function(e){(e.exports=function(e,t){return Ae[e]||(Ae[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.22.6",mode:"pure",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.6/LICENSE",source:"https://github.com/zloirock/core-js"})})),oe=a.Object,ae=function(e){return oe(N(e))},se=v({}.hasOwnProperty),ce=Object.hasOwn||function(e,t){return se(ae(e),t)},le=0,ue=Math.random(),fe=v(1..toString),he=function(e){return"Symbol("+(void 0===e?"":e)+")_"+fe(++le+ue,36)},de=ie("wks"),pe=a.Symbol,ge=pe&&pe.for,me=Y?pe:pe&&pe.withoutSetter||he,ve=function(e){if(!ce(de,e)||!j&&"string"!=typeof de[e]){var t="Symbol."+e;j&&ce(pe,e)?de[e]=pe[e]:de[e]=Y&&ge?ge(t):me(t)}return de[e]},Be=a.TypeError,Ee=ve("toPrimitive"),ye=function(e,t){if(!O(e)||z(e))return e;var n,r=te(e,Ee);if(r){if(void 0===t&&(t="default"),n=C(r,e,t),!O(n)||z(n))return n;throw Be("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&B(n=e.toString)&&!O(r=C(n,e)))return r;if(B(n=e.valueOf)&&!O(r=C(n,e)))return r;if("string"!==t&&B(n=e.toString)&&!O(r=C(n,e)))return r;throw ne("Can't convert object to primitive value")}(e,t)},Ce=function(e){var t=ye(e,"string");return z(t)?t:t+""},be=a.document,we=O(be)&&O(be.createElement),Te=function(e){return we?be.createElement(e):{}},_e=!E&&!s((function(){return 7!=Object.defineProperty(Te("div"),"a",{get:function(){return 7}}).a})),Ie=Object.getOwnPropertyDescriptor,Se={f:E?Ie:function(e,t){if(e=D(e),t=Ce(t),_e)try{return Ie(e,t)}catch(e){}if(ce(e,t))return _(!C(T.f,e,t),e[t])}},ke=/#|\.prototype\./,Fe=function(e,t){var n=Le[xe(e)];return n==Ne||n!=Ue&&(B(t)?s(t):!!t)},xe=Fe.normalize=function(e){return String(e).replace(ke,".").toLowerCase()},Le=Fe.data={},Ue=Fe.NATIVE="N",Ne=Fe.POLYFILL="P",De=Fe,Oe=v(v.bind),Qe=function(e,t){return ee(e),void 0===t?e:c?Oe(e,t):function(){return e.apply(t,arguments)}},Re=E&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Me=a.String,He=a.TypeError,Pe=function(e){if(O(e))return e;throw He(Me(e)+" is not an object")},Ke=a.TypeError,Ge=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,Ve={f:E?Re?function(e,t,n){if(Pe(e),t=Ce(t),Pe(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=$e(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return Ge(e,t,n)}:Ge:function(e,t,n){if(Pe(e),t=Ce(t),Pe(n),_e)try{return Ge(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ke("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},We=E?function(e,t,n){return Ve.f(e,t,_(1,n))}:function(e,t,n){return e[t]=n,e},je=Se.f,Ye=function(e){var t=function(n,r,A){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,A)}return h(e,this,arguments)};return t.prototype=e.prototype,t},Xe=function(e,t){var n,r,A,i,o,s,c,l,u=e.target,f=e.global,h=e.stat,d=e.proto,p=f?a:h?a[u]:(a[u]||{}).prototype,g=f?Q:Q[u]||We(Q,u,{})[u],m=g.prototype;for(A in t)n=!De(f?A:u+(h?".":"#")+A,e.forced)&&p&&ce(p,A),o=g[A],n&&(s=e.dontCallGetSet?(l=je(p,A))&&l.value:p[A]),i=n&&s?s:t[A],n&&typeof o==typeof i||(c=e.bind&&n?Qe(i,a):e.wrap&&n?Ye(i):d&&B(i)?v(i):i,(e.sham||i&&i.sham||o&&o.sham)&&We(c,"sham",!0),We(g,A,c),d&&(ce(Q,r=u+"Prototype")||We(Q,r,{}),We(Q[r],A,i),e.real&&m&&!m[A]&&We(m,A,i)))},ze=v([].slice),qe=a.Function,Je=v([].concat),Ze=v([].join),et={},tt=function(e,t,n){if(!ce(et,t)){for(var r=[],A=0;A<t;A++)r[A]="a["+A+"]";et[t]=qe("C,a","return new C("+Ze(r,",")+")")}return et[t](e,n)},nt=c?qe.bind:function(e){var t=ee(this),n=t.prototype,r=ze(arguments,1),A=function(){var n=Je(r,ze(arguments));return this instanceof A?tt(t,n.length,n):t.apply(e,n)};return O(n)&&(A.prototype=n),A},rt={};rt[ve("toStringTag")]="z";var At="[object z]"===String(rt),it=ve("toStringTag"),ot=a.Object,at="Arguments"==k(function(){return arguments}()),st=At?k:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=ot(e),it))?n:at?k(t):"Object"==(r=k(t))&&B(t.callee)?"Arguments":r},ct=v(Function.toString);B(Ae.inspectSource)||(Ae.inspectSource=function(e){return ct(e)});var lt=Ae.inspectSource,ut=function(){},ft=[],ht=M("Reflect","construct"),dt=/^\s*(?:class|function)\b/,pt=v(dt.exec),gt=!dt.exec(ut),mt=function(e){if(!B(e))return!1;try{return ht(ut,ft,e),!0}catch(e){return!1}},vt=function(e){if(!B(e))return!1;switch(st(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return gt||!!pt(dt,lt(e))}catch(e){return!0}};vt.sham=!0;var Bt,Et=!ht||s((function(){var e;return mt(mt.call)||!mt(Object)||!mt((function(){e=!0}))||e}))?vt:mt,yt=a.TypeError,Ct=function(e){if(Et(e))return e;throw yt(J(e)+" is not a constructor")},bt=Math.ceil,wt=Math.floor,Tt=Math.trunc||function(e){var t=+e;return(t>0?wt:bt)(t)},_t=function(e){var t=+e;return t!=t||0===t?0:Tt(t)},It=Math.max,St=Math.min,kt=function(e,t){var n=_t(e);return n<0?It(n+t,0):St(n,t)},Ft=Math.min,xt=function(e){return e>0?Ft(_t(e),9007199254740991):0},Lt=function(e){return xt(e.length)},Ut=function(e){return function(t,n,r){var A,i=D(t),o=Lt(i),a=kt(r,o);if(e&&n!=n){for(;o>a;)if((A=i[a++])!=A)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===n)return e||a||0;return!e&&-1}},Nt={includes:Ut(!0),indexOf:Ut(!1)},Dt={},Ot=Nt.indexOf,Qt=v([].push),Rt=function(e,t){var n,r=D(e),A=0,i=[];for(n in r)!ce(Dt,n)&&ce(r,n)&&Qt(i,n);for(;t.length>A;)ce(r,n=t[A++])&&(~Ot(i,n)||Qt(i,n));return i},Mt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ht=Object.keys||function(e){return Rt(e,Mt)},Pt={f:E&&!Re?Object.defineProperties:function(e,t){Pe(e);for(var n,r=D(t),A=Ht(t),i=A.length,o=0;i>o;)Ve.f(e,n=A[o++],r[n]);return e}},Kt=M("document","documentElement"),Gt=ie("keys"),$t=function(e){return Gt[e]||(Gt[e]=he(e))},Vt=$t("IE_PROTO"),Wt=function(){},jt=function(e){return"<script>"+e+"<\/script>"},Yt=function(e){e.write(jt("")),e.close();var t=e.parentWindow.Object;return e=null,t},Xt=function(){try{Bt=new ActiveXObject("htmlfile")}catch(e){}var e,t;Xt="undefined"!=typeof document?document.domain&&Bt?Yt(Bt):((t=Te("iframe")).style.display="none",Kt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(jt("document.F=Object")),e.close(),e.F):Yt(Bt);for(var n=Mt.length;n--;)delete Xt.prototype[Mt[n]];return Xt()};Dt[Vt]=!0;var zt=Object.create||function(e,t){var n;return null!==e?(Wt.prototype=Pe(e),n=new Wt,Wt.prototype=null,n[Vt]=e):n=Xt(),void 0===t?n:Pt.f(n,t)},qt=M("Reflect","construct"),Jt=Object.prototype,Zt=[].push,en=s((function(){function e(){}return!(qt((function(){}),[],e)instanceof e)})),tn=!s((function(){qt((function(){}))})),nn=en||tn;Xe({target:"Reflect",stat:!0,forced:nn,sham:nn},{construct:function(e,t){Ct(e),Pe(t);var n=arguments.length<3?e:Ct(arguments[2]);if(tn&&!en)return qt(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 h(Zt,r,t),new(h(nt,e,r))}var A=n.prototype,i=zt(O(A)?A:Jt),o=h(e,i,t);return O(o)?o:i}});var rn=Q.Reflect.construct,An=rn,on=Array.isArray||function(e){return"Array"==k(e)},an=function(e,t,n){var r=Ce(t);r in e?Ve.f(e,r,_(0,n)):e[r]=n},sn=ve("species"),cn=function(e){return W>=51||!s((function(){var t=[];return(t.constructor={})[sn]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},ln=cn("slice"),un=ve("species"),fn=a.Array,hn=Math.max;Xe({target:"Array",proto:!0,forced:!ln},{slice:function(e,t){var n,r,A,i=D(this),o=Lt(i),a=kt(e,o),s=kt(void 0===t?o:t,o);if(on(i)&&(n=i.constructor,(Et(n)&&(n===fn||on(n.prototype))||O(n)&&null===(n=n[un]))&&(n=void 0),n===fn||void 0===n))return ze(i,a,s);for(r=new(void 0===n?fn:n)(hn(s-a,0)),A=0;a<s;a++,A++)a in i&&an(r,A,i[a]);return r.length=A,r}});var dn,pn,gn,mn=function(e){return Q[e+"Prototype"]},vn=mn("Array").slice,Bn=Array.prototype,En=function(e){var t=e.slice;return e===Bn||H(Bn,e)&&t===Bn.slice?vn:t},yn=En,Cn=a.String,bn=function(e){if("Symbol"===st(e))throw TypeError("Cannot convert a Symbol value to a string");return Cn(e)},wn=v("".charAt),Tn=v("".charCodeAt),_n=v("".slice),In=function(e){return function(t,n){var r,A,i=bn(N(t)),o=_t(n),a=i.length;return o<0||o>=a?e?"":void 0:(r=Tn(i,o))<55296||r>56319||o+1===a||(A=Tn(i,o+1))<56320||A>57343?e?wn(i,o):r:e?_n(i,o,o+2):A-56320+(r-55296<<10)+65536}},Sn={codeAt:In(!1),charAt:In(!0)},kn=a.WeakMap,Fn=B(kn)&&/native code/.test(lt(kn)),xn=a.TypeError,Ln=a.WeakMap;if(Fn||Ae.state){var Un=Ae.state||(Ae.state=new Ln),Nn=v(Un.get),Dn=v(Un.has),On=v(Un.set);dn=function(e,t){if(Dn(Un,e))throw new xn("Object already initialized");return t.facade=e,On(Un,e,t),t},pn=function(e){return Nn(Un,e)||{}},gn=function(e){return Dn(Un,e)}}else{var Qn=$t("state");Dt[Qn]=!0,dn=function(e,t){if(ce(e,Qn))throw new xn("Object already initialized");return t.facade=e,We(e,Qn,t),t},pn=function(e){return ce(e,Qn)?e[Qn]:{}},gn=function(e){return ce(e,Qn)}}var Rn,Mn,Hn,Pn={set:dn,get:pn,has:gn,enforce:function(e){return gn(e)?pn(e):dn(e,{})},getterFor:function(e){return function(t){var n;if(!O(t)||(n=pn(t)).type!==e)throw xn("Incompatible receiver, "+e+" required");return n}}},Kn=Function.prototype,Gn=E&&Object.getOwnPropertyDescriptor,$n=ce(Kn,"name"),Vn={EXISTS:$n,PROPER:$n&&"something"===function(){}.name,CONFIGURABLE:$n&&(!E||E&&Gn(Kn,"name").configurable)},Wn=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),jn=$t("IE_PROTO"),Yn=a.Object,Xn=Yn.prototype,zn=Wn?Yn.getPrototypeOf:function(e){var t=ae(e);if(ce(t,jn))return t[jn];var n=t.constructor;return B(n)&&t instanceof n?n.prototype:t instanceof Yn?Xn:null},qn=function(e,t,n,r){return r&&r.enumerable?e[t]=n:We(e,t,n),e},Jn=ve("iterator"),Zn=!1;[].keys&&("next"in(Hn=[].keys())?(Mn=zn(zn(Hn)))!==Object.prototype&&(Rn=Mn):Zn=!0);var er=null==Rn||s((function(){var e={};return Rn[Jn].call(e)!==e}));Rn=er?{}:zt(Rn),B(Rn[Jn])||qn(Rn,Jn,(function(){return this}));var tr={IteratorPrototype:Rn,BUGGY_SAFARI_ITERATORS:Zn},nr=At?{}.toString:function(){return"[object "+st(this)+"]"},rr=Ve.f,Ar=ve("toStringTag"),ir=function(e,t,n,r){if(e){var A=n?e:e.prototype;ce(A,Ar)||rr(A,Ar,{configurable:!0,value:t}),r&&!At&&We(A,"toString",nr)}},or={},ar=tr.IteratorPrototype,sr=function(){return this},cr=a.String,lr=a.TypeError,ur=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=v(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Pe(n),function(e){if("object"==typeof e||B(e))return e;throw lr("Can't set "+cr(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),fr=Vn.PROPER,hr=tr.BUGGY_SAFARI_ITERATORS,dr=ve("iterator"),pr=function(){return this},gr=function(e,t,n,r,A,i,o){!function(e,t,n,r){var A=t+" Iterator";e.prototype=zt(ar,{next:_(+!r,n)}),ir(e,A,!1,!0),or[A]=sr}(n,t,r);var a,s,c,l=function(e){if(e===A&&p)return p;if(!hr&&e in h)return h[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},u=t+" Iterator",f=!1,h=e.prototype,d=h[dr]||h["@@iterator"]||A&&h[A],p=!hr&&d||l(A),g="Array"==t&&h.entries||d;if(g&&(a=zn(g.call(new e)))!==Object.prototype&&a.next&&(ir(a,u,!0,!0),or[u]=pr),fr&&"values"==A&&d&&"values"!==d.name&&(f=!0,p=function(){return C(d,this)}),A)if(s={values:l("values"),keys:i?p:l("keys"),entries:l("entries")},o)for(c in s)(hr||f||!(c in h))&&qn(h,c,s[c]);else Xe({target:t,proto:!0,forced:hr||f},s);return o&&h[dr]!==p&&qn(h,dr,p,{name:A}),or[t]=p,s},mr=Sn.charAt,vr=Pn.set,Br=Pn.getterFor("String Iterator");gr(String,"String",(function(e){vr(this,{type:"String Iterator",string:bn(e),index:0})}),(function(){var e,t=Br(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=mr(n,r),t.index+=e.length,{value:e,done:!1})}));var Er=function(e,t,n){var r,A;Pe(e);try{if(!(r=te(e,"return"))){if("throw"===t)throw n;return n}r=C(r,e)}catch(e){A=!0,r=e}if("throw"===t)throw n;if(A)throw r;return Pe(r),n},yr=function(e,t,n,r){try{return r?t(Pe(n)[0],n[1]):t(n)}catch(t){Er(e,"throw",t)}},Cr=ve("iterator"),br=Array.prototype,wr=function(e){return void 0!==e&&(or.Array===e||br[Cr]===e)},Tr=ve("iterator"),_r=function(e){if(null!=e)return te(e,Tr)||te(e,"@@iterator")||or[st(e)]},Ir=a.TypeError,Sr=function(e,t){var n=arguments.length<2?_r(e):t;if(ee(n))return Pe(C(n,e));throw Ir(J(e)+" is not iterable")},kr=a.Array,Fr=ve("iterator"),xr=!1;try{var Lr=0,Ur={next:function(){return{done:!!Lr++}},return:function(){xr=!0}};Ur[Fr]=function(){return this},Array.from(Ur,(function(){throw 2}))}catch(e){}var Nr=function(e,t){if(!t&&!xr)return!1;var n=!1;try{var r={};r[Fr]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Dr=!Nr((function(e){Array.from(e)}));Xe({target:"Array",stat:!0,forced:Dr},{from:function(e){var t=ae(e),n=Et(this),r=arguments.length,A=r>1?arguments[1]:void 0,i=void 0!==A;i&&(A=Qe(A,r>2?arguments[2]:void 0));var o,a,s,c,l,u,f=_r(t),h=0;if(!f||this==kr&&wr(f))for(o=Lt(t),a=n?new this(o):kr(o);o>h;h++)u=i?A(t[h],h):t[h],an(a,h,u);else for(l=(c=Sr(t,f)).next,a=n?new this:[];!(s=C(l,c)).done;h++)u=i?yr(c,A,[s.value,h],!0):s.value,an(a,h,u);return a.length=h,a}});var Or=Q.Array.from,Qr=Or,Rr=ve("species"),Mr=a.Array,Hr=function(e,t){return new(function(e){var t;return on(e)&&(t=e.constructor,(Et(t)&&(t===Mr||on(t.prototype))||O(t)&&null===(t=t[Rr]))&&(t=void 0)),void 0===t?Mr:t}(e))(0===t?0:t)},Pr=ve("isConcatSpreadable"),Kr=a.TypeError,Gr=W>=51||!s((function(){var e=[];return e[Pr]=!1,e.concat()[0]!==e})),$r=cn("concat"),Vr=function(e){if(!O(e))return!1;var t=e[Pr];return void 0!==t?!!t:on(e)};Xe({target:"Array",proto:!0,arity:1,forced:!Gr||!$r},{concat:function(e){var t,n,r,A,i,o=ae(this),a=Hr(o,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(Vr(i=-1===t?o:arguments[t])){if(s+(A=Lt(i))>9007199254740991)throw Kr("Maximum allowed index exceeded");for(n=0;n<A;n++,s++)n in i&&an(a,s,i[n])}else{if(s>=9007199254740991)throw Kr("Maximum allowed index exceeded");an(a,s++,i)}return a.length=s,a}});var Wr=Mt.concat("length","prototype"),jr={f:Object.getOwnPropertyNames||function(e){return Rt(e,Wr)}},Yr=a.Array,Xr=Math.max,zr=jr.f,qr="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Jr=function(e){try{return zr(e)}catch(e){return function(e,t,n){for(var r=Lt(e),A=kt(t,r),i=kt(void 0===n?r:n,r),o=Yr(Xr(i-A,0)),a=0;A<i;A++,a++)an(o,a,e[A]);return o.length=a,o}(qr)}},Zr={f:function(e){return qr&&"Window"==k(e)?Jr(e):zr(D(e))}},eA={f:Object.getOwnPropertySymbols},tA={f:ve},nA=Ve.f,rA=function(e){var t=Q.Symbol||(Q.Symbol={});ce(t,e)||nA(t,e,{value:tA.f(e)})},AA=function(){var e=M("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,r=ve("toPrimitive");t&&!t[r]&&qn(t,r,(function(e){return C(n,this)}),{arity:1})},iA=v([].push),oA=function(e){var t=1==e,n=2==e,r=3==e,A=4==e,i=6==e,o=7==e,a=5==e||i;return function(s,c,l,u){for(var f,h,d=ae(s),p=L(d),g=Qe(c,l),m=Lt(p),v=0,B=u||Hr,E=t?B(s,m):n||o?B(s,0):void 0;m>v;v++)if((a||v in p)&&(h=g(f=p[v],v,d),e))if(t)E[v]=h;else if(h)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:iA(E,f)}else switch(e){case 4:return!1;case 7:iA(E,f)}return i?-1:r||A?A:E}},aA={forEach:oA(0),map:oA(1),filter:oA(2),some:oA(3),every:oA(4),find:oA(5),findIndex:oA(6),filterReject:oA(7)},sA=aA.forEach,cA=$t("hidden"),lA=Pn.set,uA=Pn.getterFor("Symbol"),fA=Object.prototype,hA=a.Symbol,dA=hA&&hA.prototype,pA=a.TypeError,gA=a.QObject,mA=Se.f,vA=Ve.f,BA=Zr.f,EA=T.f,yA=v([].push),CA=ie("symbols"),bA=ie("op-symbols"),wA=ie("wks"),TA=!gA||!gA.prototype||!gA.prototype.findChild,_A=E&&s((function(){return 7!=zt(vA({},"a",{get:function(){return vA(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=mA(fA,t);r&&delete fA[t],vA(e,t,n),r&&e!==fA&&vA(fA,t,r)}:vA,IA=function(e,t){var n=CA[e]=zt(dA);return lA(n,{type:"Symbol",tag:e,description:t}),E||(n.description=t),n},SA=function(e,t,n){e===fA&&SA(bA,t,n),Pe(e);var r=Ce(t);return Pe(n),ce(CA,r)?(n.enumerable?(ce(e,cA)&&e[cA][r]&&(e[cA][r]=!1),n=zt(n,{enumerable:_(0,!1)})):(ce(e,cA)||vA(e,cA,_(1,{})),e[cA][r]=!0),_A(e,r,n)):vA(e,r,n)},kA=function(e,t){Pe(e);var n=D(t),r=Ht(n).concat(UA(n));return sA(r,(function(t){E&&!C(FA,n,t)||SA(e,t,n[t])})),e},FA=function(e){var t=Ce(e),n=C(EA,this,t);return!(this===fA&&ce(CA,t)&&!ce(bA,t))&&(!(n||!ce(this,t)||!ce(CA,t)||ce(this,cA)&&this[cA][t])||n)},xA=function(e,t){var n=D(e),r=Ce(t);if(n!==fA||!ce(CA,r)||ce(bA,r)){var A=mA(n,r);return!A||!ce(CA,r)||ce(n,cA)&&n[cA][r]||(A.enumerable=!0),A}},LA=function(e){var t=BA(D(e)),n=[];return sA(t,(function(e){ce(CA,e)||ce(Dt,e)||yA(n,e)})),n},UA=function(e){var t=e===fA,n=BA(t?bA:D(e)),r=[];return sA(n,(function(e){!ce(CA,e)||t&&!ce(fA,e)||yA(r,CA[e])})),r};j||(dA=(hA=function(){if(H(dA,this))throw pA("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?bn(arguments[0]):void 0,t=he(e),n=function(e){this===fA&&C(n,bA,e),ce(this,cA)&&ce(this[cA],t)&&(this[cA][t]=!1),_A(this,t,_(1,e))};return E&&TA&&_A(fA,t,{configurable:!0,set:n}),IA(t,e)}).prototype,qn(dA,"toString",(function(){return uA(this).tag})),qn(hA,"withoutSetter",(function(e){return IA(he(e),e)})),T.f=FA,Ve.f=SA,Pt.f=kA,Se.f=xA,jr.f=Zr.f=LA,eA.f=UA,tA.f=function(e){return IA(ve(e),e)},E&&vA(dA,"description",{configurable:!0,get:function(){return uA(this).description}})),Xe({global:!0,constructor:!0,wrap:!0,forced:!j,sham:!j},{Symbol:hA}),sA(Ht(wA),(function(e){rA(e)})),Xe({target:"Symbol",stat:!0,forced:!j},{useSetter:function(){TA=!0},useSimple:function(){TA=!1}}),Xe({target:"Object",stat:!0,forced:!j,sham:!E},{create:function(e,t){return void 0===t?zt(e):kA(zt(e),t)},defineProperty:SA,defineProperties:kA,getOwnPropertyDescriptor:xA}),Xe({target:"Object",stat:!0,forced:!j},{getOwnPropertyNames:LA}),AA(),ir(hA,"Symbol"),Dt[cA]=!0;var NA=j&&!!Symbol.for&&!!Symbol.keyFor,DA=ie("string-to-symbol-registry"),OA=ie("symbol-to-string-registry");Xe({target:"Symbol",stat:!0,forced:!NA},{for:function(e){var t=bn(e);if(ce(DA,t))return DA[t];var n=M("Symbol")(t);return DA[t]=n,OA[n]=t,n}});var QA=ie("symbol-to-string-registry");Xe({target:"Symbol",stat:!0,forced:!NA},{keyFor:function(e){if(!z(e))throw TypeError(J(e)+" is not a symbol");if(ce(QA,e))return QA[e]}});var RA=M("JSON","stringify"),MA=v(/./.exec),HA=v("".charAt),PA=v("".charCodeAt),KA=v("".replace),GA=v(1..toString),$A=/[\uD800-\uDFFF]/g,VA=/^[\uD800-\uDBFF]$/,WA=/^[\uDC00-\uDFFF]$/,jA=!j||s((function(){var e=M("Symbol")();return"[null]"!=RA([e])||"{}"!=RA({a:e})||"{}"!=RA(Object(e))})),YA=s((function(){return'"\\udf06\\ud834"'!==RA("\udf06\ud834")||'"\\udead"'!==RA("\udead")})),XA=function(e,t){var n=ze(arguments),r=t;if((O(t)||void 0!==e)&&!z(e))return on(t)||(t=function(e,t){if(B(r)&&(t=C(r,this,e,t)),!z(t))return t}),n[1]=t,h(RA,null,n)},zA=function(e,t,n){var r=HA(n,t-1),A=HA(n,t+1);return MA(VA,e)&&!MA(WA,A)||MA(WA,e)&&!MA(VA,r)?"\\u"+GA(PA(e,0),16):e};RA&&Xe({target:"JSON",stat:!0,arity:3,forced:jA||YA},{stringify:function(e,t,n){var r=ze(arguments),A=h(jA?XA:RA,null,r);return YA&&"string"==typeof A?KA(A,$A,zA):A}});var qA=!j||s((function(){eA.f(1)}));Xe({target:"Object",stat:!0,forced:qA},{getOwnPropertySymbols:function(e){var t=eA.f;return t?t(ae(e)):[]}}),rA("asyncIterator"),rA("hasInstance"),rA("isConcatSpreadable"),rA("iterator"),rA("match"),rA("matchAll"),rA("replace"),rA("search"),rA("species"),rA("split"),rA("toPrimitive"),AA(),rA("toStringTag"),ir(M("Symbol"),"Symbol"),rA("unscopables"),ir(a.JSON,"JSON",!0);var JA=Q.Symbol,ZA=Pn.set,ei=Pn.getterFor("Array Iterator"),ti=(gr(Array,"Array",(function(e,t){ZA(this,{type:"Array Iterator",target:D(e),index:0,kind:t})}),(function(){var e=ei(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),or.Arguments=or.Array,ve("toStringTag"));for(var ni in{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}){var ri=a[ni],Ai=ri&&ri.prototype;Ai&&st(Ai)!==ti&&We(Ai,ti,ni),or[ni]=or.Array}var ii=JA,oi=ii,ai=_r;Xe({target:"Array",stat:!0},{isArray:on});var si=Q.Array.isArray,ci=si,li=s((function(){Ht(1)}));Xe({target:"Object",stat:!0,forced:li},{keys:function(e){return Ht(ae(e))}});var ui=Q.Object.keys,fi=ui,hi=Q.Object.getOwnPropertySymbols,di=hi,pi=aA.filter,gi=cn("filter");Xe({target:"Array",proto:!0,forced:!gi},{filter:function(e){return pi(this,e,arguments.length>1?arguments[1]:void 0)}});var mi=mn("Array").filter,vi=Array.prototype,Bi=function(e){var t=e.filter;return e===vi||H(vi,e)&&t===vi.filter?mi:t},Ei=Se.f,yi=s((function(){Ei(1)}));Xe({target:"Object",stat:!0,forced:!E||yi,sham:!E},{getOwnPropertyDescriptor:function(e,t){return Ei(D(e),t)}});var Ci=r((function(e){var t=Q.Object,n=e.exports=function(e,n){return t.getOwnPropertyDescriptor(e,n)};t.getOwnPropertyDescriptor.sham&&(n.sham=!0)})),bi=Ci,wi=function(e,t){var n=[][e];return!!n&&s((function(){n.call(null,t||function(){return 1},1)}))},Ti=aA.forEach,_i=wi("forEach")?[].forEach:function(e){return Ti(this,e,arguments.length>1?arguments[1]:void 0)};Xe({target:"Array",proto:!0,forced:[].forEach!=_i},{forEach:_i});var Ii=mn("Array").forEach,Si=Array.prototype,ki={DOMTokenList:!0,NodeList:!0},Fi=function(e){var t=e.forEach;return e===Si||H(Si,e)&&t===Si.forEach||ce(ki,st(e))?Ii:t},xi=Fi,Li=v([].concat),Ui=M("Reflect","ownKeys")||function(e){var t=jr.f(Pe(e)),n=eA.f;return n?Li(t,n(e)):t};Xe({target:"Object",stat:!0,sham:!E},{getOwnPropertyDescriptors:function(e){for(var t,n,r=D(e),A=Se.f,i=Ui(r),o={},a=0;i.length>a;)void 0!==(n=A(r,t=i[a++]))&&an(o,t,n);return o}});var Ni=Q.Object.getOwnPropertyDescriptors,Di=Pt.f;Xe({target:"Object",stat:!0,forced:Object.defineProperties!==Di,sham:!E},{defineProperties:Di});var Oi=r((function(e){var t=Q.Object,n=e.exports=function(e,n){return t.defineProperties(e,n)};t.defineProperties.sham&&(n.sham=!0)})),Qi=Ve.f;Xe({target:"Object",stat:!0,forced:Object.defineProperty!==Qi,sham:!E},{defineProperty:Qi});var Ri=r((function(e){var t=Q.Object,n=e.exports=function(e,n,r){return t.defineProperty(e,n,r)};t.defineProperty.sham&&(n.sham=!0)})),Mi=Ri,Hi=n(r((function(e){e.exports=function(e){if(null==e)throw new TypeError("Cannot destructure undefined")},e.exports.__esModule=!0,e.exports.default=e.exports}))),Pi=n(r((function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports}))),Ki=Ri,Gi=n(r((function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Ki(e,r.key,r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Ki(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports}))),$i=r((function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports})),Vi=n($i);Xe({target:"Object",stat:!0,sham:!E},{create:zt});var Wi=Q.Object,ji=function(e,t){return Wi.create(e,t)},Yi=ji;Xe({target:"Object",stat:!0},{setPrototypeOf:ur});var Xi=Q.Object.setPrototypeOf,zi=r((function(e){function t(n,r){return e.exports=t=Xi||function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}));n(zi);var qi=n(r((function(e){e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Yi(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Ki(e,"prototype",{writable:!1}),t&&zi(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports}))),Ji=ii;rA("asyncDispose"),rA("dispose"),rA("matcher"),rA("metadata"),rA("observable"),rA("patternMatch"),rA("replaceAll");var Zi=Ji,eo=tA.f("iterator"),to=r((function(e){function t(n){return e.exports=t="function"==typeof Zi&&"symbol"==typeof eo?function(e){return typeof e}:function(e){return e&&"function"==typeof Zi&&e.constructor===Zi&&e!==Zi.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})),no=n(to),ro=n(r((function(e){var t=to.default;e.exports=function(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return $i(e)},e.exports.__esModule=!0,e.exports.default=e.exports}))),Ao=s((function(){zn(1)}));Xe({target:"Object",stat:!0,forced:Ao,sham:!Wn},{getPrototypeOf:function(e){return zn(ae(e))}});var io=Q.Object.getPrototypeOf,oo=r((function(e){function t(n){return e.exports=t=Xi?io:function(e){return e.__proto__||io(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})),ao=n(oo),so=n(r((function(e){e.exports=function(e,t,n){return t in e?Ki(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}))),co=mn("Array").concat,lo=Array.prototype,uo=function(e){var t=e.concat;return e===lo||H(lo,e)&&t===lo.concat?co:t};Xe({target:"Function",proto:!0,forced:Function.bind!==nt},{bind:nt});var fo=mn("Function").bind,ho=Function.prototype,po=function(e){var t=e.bind;return e===ho||H(ho,e)&&t===ho.bind?fo:t},go=po,mo=a.TypeError,vo=function(e,t){if(e<t)throw mo("Not enough arguments");return e},Bo=/MSIE .\./.test(P),Eo=a.Function,yo=function(e){return Bo?function(t,n){var r=vo(arguments.length,1)>2,A=B(t)?t:Eo(t),i=r?ze(arguments,2):void 0;return e(r?function(){h(A,this,i)}:A,n)}:e},Co={setTimeout:yo(a.setTimeout),setInterval:yo(a.setInterval)},bo=Co.setInterval;Xe({global:!0,bind:!0,forced:a.setInterval!==bo},{setInterval:bo});var wo=Co.setTimeout;Xe({global:!0,bind:!0,forced:a.setTimeout!==wo},{setTimeout:wo});var To=Q.setTimeout;var _o=function(){this.__data__=[],this.size=0};var Io=function(e,t){return e===t||e!=e&&t!=t};var So=function(e,t){for(var n=e.length;n--;)if(Io(e[n][0],t))return n;return-1},ko=Array.prototype.splice;var Fo=function(e){var t=this.__data__,n=So(t,e);return!(n<0)&&(n==t.length-1?t.pop():ko.call(t,n,1),--this.size,!0)};var xo=function(e){var t=this.__data__,n=So(t,e);return n<0?void 0:t[n][1]};var Lo=function(e){return So(this.__data__,e)>-1};var Uo=function(e,t){var n=this.__data__,r=So(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function No(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}No.prototype.clear=_o,No.prototype.delete=Fo,No.prototype.get=xo,No.prototype.has=Lo,No.prototype.set=Uo;var Do=No;var Oo=function(){this.__data__=new Do,this.size=0};var Qo=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var Ro=function(e){return this.__data__.get(e)};var Mo=function(e){return this.__data__.has(e)},Ho="object"==typeof t&&t&&t.Object===Object&&t,Po="object"==typeof self&&self&&self.Object===Object&&self,Ko=Ho||Po||Function("return this")(),Go=Ko.Symbol,$o=Object.prototype,Vo=$o.hasOwnProperty,Wo=$o.toString,jo=Go?Go.toStringTag:void 0;var Yo=function(e){var t=Vo.call(e,jo),n=e[jo];try{e[jo]=void 0;var r=!0}catch(e){}var A=Wo.call(e);return r&&(t?e[jo]=n:delete e[jo]),A},Xo=Object.prototype.toString;var zo=function(e){return Xo.call(e)},qo=Go?Go.toStringTag:void 0;var Jo=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":qo&&qo in Object(e)?Yo(e):zo(e)};var Zo=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var ea=function(e){if(!Zo(e))return!1;var t=Jo(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},ta=Ko["__core-js_shared__"],na=function(){var e=/[^.]+$/.exec(ta&&ta.keys&&ta.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var ra=function(e){return!!na&&na in e},Aa=Function.prototype.toString;var ia=function(e){if(null!=e){try{return Aa.call(e)}catch(e){}try{return e+""}catch(e){}}return""},oa=/^\[object .+?Constructor\]$/,aa=Function.prototype,sa=Object.prototype,ca=aa.toString,la=sa.hasOwnProperty,ua=RegExp("^"+ca.call(la).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var fa=function(e){return!(!Zo(e)||ra(e))&&(ea(e)?ua:oa).test(ia(e))};var ha=function(e,t){return null==e?void 0:e[t]};var da=function(e,t){var n=ha(e,t);return fa(n)?n:void 0},pa=da(Ko,"Map"),ga=da(Object,"create");var ma=function(){this.__data__=ga?ga(null):{},this.size=0};var va=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ba=Object.prototype.hasOwnProperty;var Ea=function(e){var t=this.__data__;if(ga){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Ba.call(t,e)?t[e]:void 0},ya=Object.prototype.hasOwnProperty;var Ca=function(e){var t=this.__data__;return ga?void 0!==t[e]:ya.call(t,e)};var ba=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ga&&void 0===t?"__lodash_hash_undefined__":t,this};function wa(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}wa.prototype.clear=ma,wa.prototype.delete=va,wa.prototype.get=Ea,wa.prototype.has=Ca,wa.prototype.set=ba;var Ta=wa;var _a=function(){this.size=0,this.__data__={hash:new Ta,map:new(pa||Do),string:new Ta}};var Ia=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Sa=function(e,t){var n=e.__data__;return Ia(t)?n["string"==typeof t?"string":"hash"]:n.map};var ka=function(e){var t=Sa(this,e).delete(e);return this.size-=t?1:0,t};var Fa=function(e){return Sa(this,e).get(e)};var xa=function(e){return Sa(this,e).has(e)};var La=function(e,t){var n=Sa(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Ua(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ua.prototype.clear=_a,Ua.prototype.delete=ka,Ua.prototype.get=Fa,Ua.prototype.has=xa,Ua.prototype.set=La;var Na=Ua;var Da=function(e,t){var n=this.__data__;if(n instanceof Do){var r=n.__data__;if(!pa||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Na(r)}return n.set(e,t),this.size=n.size,this};function Oa(e){var t=this.__data__=new Do(e);this.size=t.size}Oa.prototype.clear=Oo,Oa.prototype.delete=Qo,Oa.prototype.get=Ro,Oa.prototype.has=Mo,Oa.prototype.set=Da;var Qa=Oa,Ra=function(){try{var e=da(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var Ma=function(e,t,n){"__proto__"==t&&Ra?Ra(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var Ha=function(e,t,n){(void 0!==n&&!Io(e[t],n)||void 0===n&&!(t in e))&&Ma(e,t,n)};var Pa=function(e){return function(t,n,r){for(var A=-1,i=Object(t),o=r(t),a=o.length;a--;){var s=o[e?a:++A];if(!1===n(i[s],s,i))break}return t}}(),Ka=r((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,A=r&&r.exports===n?Ko.Buffer:void 0,i=A?A.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=i?i(n):new e.constructor(n);return e.copy(r),r}})),Ga=Ko.Uint8Array;var $a=function(e){var t=new e.constructor(e.byteLength);return new Ga(t).set(new Ga(e)),t};var Va=function(e,t){var n=t?$a(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Wa=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},ja=Object.create,Ya=function(){function e(){}return function(t){if(!Zo(t))return{};if(ja)return ja(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Xa=function(e,t){return function(n){return e(t(n))}},za=Xa(Object.getPrototypeOf,Object),qa=Object.prototype;var Ja=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||qa)};var Za=function(e){return"function"!=typeof e.constructor||Ja(e)?{}:Ya(za(e))};var es=function(e){return null!=e&&"object"==typeof e};var ts=function(e){return es(e)&&"[object Arguments]"==Jo(e)},ns=Object.prototype,rs=ns.hasOwnProperty,As=ns.propertyIsEnumerable,is=ts(function(){return arguments}())?ts:function(e){return es(e)&&rs.call(e,"callee")&&!As.call(e,"callee")},os=Array.isArray;var as=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var ss=function(e){return null!=e&&as(e.length)&&!ea(e)};var cs=function(e){return es(e)&&ss(e)};var ls=function(){return!1},us=r((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,A=r&&r.exports===n?Ko.Buffer:void 0,i=(A?A.isBuffer:void 0)||ls;e.exports=i})),fs=Function.prototype,hs=Object.prototype,ds=fs.toString,ps=hs.hasOwnProperty,gs=ds.call(Object);var ms=function(e){if(!es(e)||"[object Object]"!=Jo(e))return!1;var t=za(e);if(null===t)return!0;var n=ps.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ds.call(n)==gs},vs={};vs["[object Float32Array]"]=vs["[object Float64Array]"]=vs["[object Int8Array]"]=vs["[object Int16Array]"]=vs["[object Int32Array]"]=vs["[object Uint8Array]"]=vs["[object Uint8ClampedArray]"]=vs["[object Uint16Array]"]=vs["[object Uint32Array]"]=!0,vs["[object Arguments]"]=vs["[object Array]"]=vs["[object ArrayBuffer]"]=vs["[object Boolean]"]=vs["[object DataView]"]=vs["[object Date]"]=vs["[object Error]"]=vs["[object Function]"]=vs["[object Map]"]=vs["[object Number]"]=vs["[object Object]"]=vs["[object RegExp]"]=vs["[object Set]"]=vs["[object String]"]=vs["[object WeakMap]"]=!1;var Bs=function(e){return es(e)&&as(e.length)&&!!vs[Jo(e)]};var Es=function(e){return function(t){return e(t)}},ys=r((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,A=r&&r.exports===n&&Ho.process,i=function(){try{var e=r&&r.require&&r.require("util").types;return e||A&&A.binding&&A.binding("util")}catch(e){}}();e.exports=i})),Cs=ys&&ys.isTypedArray,bs=Cs?Es(Cs):Bs;var ws=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Ts=Object.prototype.hasOwnProperty;var _s=function(e,t,n){var r=e[t];Ts.call(e,t)&&Io(r,n)&&(void 0!==n||t in e)||Ma(e,t,n)};var Is=function(e,t,n,r){var A=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var a=t[i],s=r?r(n[a],e[a],a,n,e):void 0;void 0===s&&(s=e[a]),A?Ma(n,a,s):_s(n,a,s)}return n};var Ss=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},ks=/^(?:0|[1-9]\d*)$/;var Fs=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ks.test(e))&&e>-1&&e%1==0&&e<t},xs=Object.prototype.hasOwnProperty;var Ls=function(e,t){var n=os(e),r=!n&&is(e),A=!n&&!r&&us(e),i=!n&&!r&&!A&&bs(e),o=n||r||A||i,a=o?Ss(e.length,String):[],s=a.length;for(var c in e)!t&&!xs.call(e,c)||o&&("length"==c||A&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Fs(c,s))||a.push(c);return a};var Us=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Ns=Object.prototype.hasOwnProperty;var Ds=function(e){if(!Zo(e))return Us(e);var t=Ja(e),n=[];for(var r in e)("constructor"!=r||!t&&Ns.call(e,r))&&n.push(r);return n};var Os=function(e){return ss(e)?Ls(e,!0):Ds(e)};var Qs=function(e){return Is(e,Os(e))};var Rs=function(e,t,n,r,A,i,o){var a=ws(e,n),s=ws(t,n),c=o.get(s);if(c)Ha(e,n,c);else{var l=i?i(a,s,n+"",e,t,o):void 0,u=void 0===l;if(u){var f=os(s),h=!f&&us(s),d=!f&&!h&&bs(s);l=s,f||h||d?os(a)?l=a:cs(a)?l=Wa(a):h?(u=!1,l=Ka(s,!0)):d?(u=!1,l=Va(s,!0)):l=[]:ms(s)||is(s)?(l=a,is(a)?l=Qs(a):Zo(a)&&!ea(a)||(l=Za(s))):u=!1}u&&(o.set(s,l),A(l,s,r,i,o),o.delete(s)),Ha(e,n,l)}};var Ms=function e(t,n,r,A,i){t!==n&&Pa(n,(function(o,a){if(i||(i=new Qa),Zo(o))Rs(t,n,a,r,e,A,i);else{var s=A?A(ws(t,a),o,a+"",t,n,i):void 0;void 0===s&&(s=o),Ha(t,a,s)}}),Os)};var Hs=function(e){return e};var Ps=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},Ks=Math.max;var Gs=function(e,t,n){return t=Ks(void 0===t?e.length-1:t,0),function(){for(var r=arguments,A=-1,i=Ks(r.length-t,0),o=Array(i);++A<i;)o[A]=r[t+A];A=-1;for(var a=Array(t+1);++A<t;)a[A]=r[A];return a[t]=n(o),Ps(e,this,a)}};var $s=function(e){return function(){return e}},Vs=Ra?function(e,t){return Ra(e,"toString",{configurable:!0,enumerable:!1,value:$s(t),writable:!0})}:Hs,Ws=Date.now;var js=function(e){var t=0,n=0;return function(){var r=Ws(),A=16-(r-n);if(n=r,A>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Vs);var Ys=function(e,t){return js(Gs(e,t,Hs),e+"")};var Xs=function(e,t,n){if(!Zo(n))return!1;var r=typeof t;return!!("number"==r?ss(n)&&Fs(t,n.length):"string"==r&&t in n)&&Io(n[t],e)};var zs=function(e){return Ys((function(t,n){var r=-1,A=n.length,i=A>1?n[A-1]:void 0,o=A>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(A--,i):void 0,o&&Xs(n[0],n[1],o)&&(i=A<3?void 0:i,A=1),t=Object(t);++r<A;){var a=n[r];a&&e(t,a,r,i)}return t}))}((function(e,t,n,r){Ms(e,t,n,r)})),qs=hi,Js=Nt.indexOf,Zs=v([].indexOf),ec=!!Zs&&1/Zs([1],1,-0)<0,tc=wi("indexOf");Xe({target:"Array",proto:!0,forced:ec||!tc},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return ec?Zs(this,e,t)||0:Js(this,e,t)}});var nc=mn("Array").indexOf,rc=Array.prototype,Ac=function(e){var t=e.indexOf;return e===rc||H(rc,e)&&t===rc.indexOf?nc:t},ic=Ac,oc=ui,ac=r((function(e){e.exports=function(e,t){if(null==e)return{};var n,r,A={},i=oc(e);for(r=0;r<i.length;r++)n=i[r],ic(t).call(t,n)>=0||(A[n]=e[n]);return A},e.exports.__esModule=!0,e.exports.default=e.exports}));n(ac);var sc=n(r((function(e){e.exports=function(e,t){if(null==e)return{};var n,r,A=ac(e,t);if(qs){var i=qs(e);for(r=0;r<i.length;r++)n=i[r],ic(t).call(t,n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(A[n]=e[n])}return A},e.exports.__esModule=!0,e.exports.default=e.exports}))),cc=Object.assign,lc=Object.defineProperty,uc=v([].concat),fc=!cc||s((function(){if(E&&1!==cc({b:1},cc(lc({},"a",{enumerable:!0,get:function(){lc(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=cc({},e)[n]||"abcdefghijklmnopqrst"!=Ht(cc({},t)).join("")}))?function(e,t){for(var n=ae(e),r=arguments.length,A=1,i=eA.f,o=T.f;r>A;)for(var a,s=L(arguments[A++]),c=i?uc(Ht(s),i(s)):Ht(s),l=c.length,u=0;l>u;)a=c[u++],E&&!C(o,s,a)||(n[a]=s[a]);return n}:cc;Xe({target:"Object",stat:!0,arity:2,forced:Object.assign!==fc},{assign:fc});var hc,dc=Q.Object.assign,pc=dc,gc="\t\n\v\f\r    \u2028\u2029\ufeff",mc=v("".replace),vc="["+gc+"]",Bc=RegExp("^"+vc+vc+"*"),Ec=RegExp(vc+vc+"*$"),yc=function(e){return function(t){var n=bn(N(t));return 1&e&&(n=mc(n,Bc,"")),2&e&&(n=mc(n,Ec,"")),n}},Cc={start:yc(1),end:yc(2),trim:yc(3)},bc=Vn.PROPER,wc=Cc.trim;Xe({target:"String",proto:!0,forced:(hc="trim",s((function(){return!!gc[hc]()||"…"!=="…"[hc]()||bc&&gc[hc].name!==hc})))},{trim:function(){return wc(this)}});var Tc=mn("String").trim,_c=String.prototype,Ic=function(e){var t=e.trim;return"string"==typeof e||e===_c||H(_c,e)&&t===_c.trim?Tc:t},Sc=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),A=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),i=/Edge\/(\d+)/.exec(e),o=r||A||i,a=o&&(r?document.documentMode||6:+(i||A)[1]),s=!i&&/WebKit\//.test(e),c=s&&/Qt\/\d+\.\d+/.test(e),l=!i&&/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=!i&&/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),B=/\bCrOS\b/.test(e),E=/win/i.test(t),y=u&&e.match(/Version\/(\d*\.\d*)/);y&&(y=Number(y[1])),y&&y>=15&&(u=!1,s=!0);var C=v&&(c||u&&(null==y||y<12.11)),b=n||o&&a>=9;function w(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var T,_=function(e,t){var n=e.className,r=w(t).exec(n);if(r){var A=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(A?r[1]+A:"")}};function I(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function S(e,t){return I(e).appendChild(t)}function k(e,t,n,r){var A=document.createElement(e);if(n&&(A.className=n),r&&(A.style.cssText=r),"string"==typeof t)A.appendChild(document.createTextNode(t));else if(t)for(var i=0;i<t.length;++i)A.appendChild(t[i]);return A}function F(e,t,n,r){var A=k(e,t,n,r);return A.setAttribute("role","presentation"),A}function x(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function L(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function U(e,t){var n=e.className;w(t).test(n)||(e.className+=(n?" ":"")+t)}function N(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!w(n[r]).test(t)&&(t+=" "+n[r]);return t}T=document.createRange?function(e,t,n,r){var A=document.createRange();return A.setEnd(r||e,n),A.setStart(e,t),A}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var D=function(e){e.select()};function O(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function Q(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function R(e,t,n,r,A){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var i=r||0,o=A||0;;){var a=e.indexOf("\t",i);if(a<0||a>=t)return o+(t-i);o+=a-i,o+=n-o%n,i=a+1}}p?D=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:o&&(D=function(e){try{e.select()}catch(e){}});var M=function(){this.id=null,this.f=null,this.time=0,this.handler=O(this.onTimeout,this)};function H(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}M.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},M.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var P={toString:function(){return"CodeMirror.Pass"}},K={scroll:!1},G={origin:"*mouse"},$={origin:"+move"};function V(e,t,n){for(var r=0,A=0;;){var i=e.indexOf("\t",r);-1==i&&(i=e.length);var o=i-r;if(i==e.length||A+o>=t)return r+Math.min(o,t-A);if(A+=i-r,r=i+1,(A+=n-A%n)>=t)return r}}var W=[""];function j(e){for(;W.length<=e;)W.push(Y(W)+" ");return W[e]}function Y(e){return e[e.length-1]}function X(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function z(){}function q(e,t){var n;return Object.create?n=Object.create(e):(z.prototype=e,n=new z),t&&Q(t,n),n}var J=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Z(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||J.test(e))}function ee(e,t){return t?!!(t.source.indexOf("\\w")>-1&&Z(e))||t.test(e):Z(e)}function te(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ne=/[\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 re(e){return e.charCodeAt(0)>=768&&ne.test(e)}function Ae(e,t,n){for(;(n<0?t>0:t<e.length)&&re(e.charAt(t));)t+=n;return t}function ie(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var A=(t+n)/2,i=r<0?Math.ceil(A):Math.floor(A);if(i==t)return e(i)?t:n;e(i)?n=i:t=i+r}}var oe=null;function ae(e,t,n){var r;oe=null;for(var A=0;A<e.length;++A){var i=e[A];if(i.from<t&&i.to>t)return A;i.to==t&&(i.from!=i.to&&"before"==n?r=A:oe=A),i.from==t&&(i.from!=i.to&&"before"!=n?r=A:oe=A)}return null!=r?r:oe}var se=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,A=/[1n]/;function i(e,t,n){this.level=e,this.from=t,this.to=n}return function(o,a){var s="ltr"==a?"L":"R";if(0==o.length||"ltr"==a&&!e.test(o))return!1;for(var c,l=o.length,u=[],f=0;f<l;++f)u.push((c=o.charCodeAt(f))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(c):1424<=c&&c<=1524?"R":1536<=c&&c<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(c-1536):1774<=c&&c<=2220?"r":8192<=c&&c<=8203?"w":8204==c?"b":"L");for(var h=0,d=s;h<l;++h){var p=u[h];"m"==p?u[h]=d:d=p}for(var g=0,m=s;g<l;++g){var v=u[g];"1"==v&&"r"==m?u[g]="n":n.test(v)&&(m=v,"r"==v&&(u[g]="R"))}for(var B=1,E=u[0];B<l-1;++B){var y=u[B];"+"==y&&"1"==E&&"1"==u[B+1]?u[B]="1":","!=y||E!=u[B+1]||"1"!=E&&"n"!=E||(u[B]=E),E=y}for(var C=0;C<l;++C){var b=u[C];if(","==b)u[C]="N";else if("%"==b){var w=void 0;for(w=C+1;w<l&&"%"==u[w];++w);for(var T=C&&"!"==u[C-1]||w<l&&"1"==u[w]?"1":"N",_=C;_<w;++_)u[_]=T;C=w-1}}for(var I=0,S=s;I<l;++I){var k=u[I];"L"==S&&"1"==k?u[I]="L":n.test(k)&&(S=k)}for(var F=0;F<l;++F)if(t.test(u[F])){var x=void 0;for(x=F+1;x<l&&t.test(u[x]);++x);for(var L="L"==(F?u[F-1]:s),U=L==("L"==(x<l?u[x]:s))?L?"L":"R":s,N=F;N<x;++N)u[N]=U;F=x-1}for(var D,O=[],Q=0;Q<l;)if(r.test(u[Q])){var R=Q;for(++Q;Q<l&&r.test(u[Q]);++Q);O.push(new i(0,R,Q))}else{var M=Q,H=O.length,P="rtl"==a?1:0;for(++Q;Q<l&&"L"!=u[Q];++Q);for(var K=M;K<Q;)if(A.test(u[K])){M<K&&(O.splice(H,0,new i(1,M,K)),H+=P);var G=K;for(++K;K<Q&&A.test(u[K]);++K);O.splice(H,0,new i(2,G,K)),H+=P,M=K}else++K;M<Q&&O.splice(H,0,new i(1,M,Q))}return"ltr"==a&&(1==O[0].level&&(D=o.match(/^\s+/))&&(O[0].from=D[0].length,O.unshift(new i(0,0,D[0].length))),1==Y(O).level&&(D=o.match(/\s+$/))&&(Y(O).to-=D[0].length,O.push(new i(0,l-D[0].length,l)))),"rtl"==a?O.reverse():O}}();function ce(e,t){var n=e.order;return null==n&&(n=e.order=se(e.text,t)),n}var le=[],ue=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||le).concat(n)}};function fe(e,t){return e._handlers&&e._handlers[t]||le}function he(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,A=r&&r[t];if(A){var i=H(A,n);i>-1&&(r[t]=A.slice(0,i).concat(A.slice(i+1)))}}}function de(e,t){var n=fe(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),A=0;A<n.length;++A)n[A].apply(null,r)}function pe(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),de(e,n||t.type,e,t),ye(t)||t.codemirrorIgnore}function ge(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==H(n,t[r])&&n.push(t[r])}function me(e,t){return fe(e,t).length>0}function ve(e){e.prototype.on=function(e,t){ue(this,e,t)},e.prototype.off=function(e,t){he(this,e,t)}}function Be(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ee(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ye(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ce(e){Be(e),Ee(e)}function be(e){return e.target||e.srcElement}function we(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 Te,_e,Ie=function(){if(o&&a<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e}();function Se(e){if(null==Te){var t=k("span","");S(e,k("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Te=t.offsetWidth<=1&&t.offsetHeight>2&&!(o&&a<8))}var n=Te?k("span",""):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function ke(e){if(null!=_e)return _e;var t=S(e,document.createTextNode("AخA")),n=T(t,0,1).getBoundingClientRect(),r=T(t,1,2).getBoundingClientRect();return I(e),!(!n||n.left==n.right)&&(_e=r.right-n.right<3)}var Fe,xe=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var A=e.indexOf("\n",t);-1==A&&(A=e.length);var i=e.slice(t,"\r"==e.charAt(A-1)?A-1:A),o=i.indexOf("\r");-1!=o?(n.push(i.slice(0,o)),t+=o+1):(n.push(i),t=A+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Le=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)},Ue="oncopy"in(Fe=k("div"))||(Fe.setAttribute("oncopy","return;"),"function"==typeof Fe.oncopy),Ne=null,De={},Oe={};function Qe(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),De[e]=t}function Re(e){if("string"==typeof e&&Oe.hasOwnProperty(e))e=Oe[e];else if(e&&"string"==typeof e.name&&Oe.hasOwnProperty(e.name)){var t=Oe[e.name];"string"==typeof t&&(t={name:t}),(e=q(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Re("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Re("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Me(e,t){t=Re(t);var n=De[t.name];if(!n)return Me(e,"text/plain");var r=n(e,t);if(He.hasOwnProperty(t.name)){var A=He[t.name];for(var i in A)A.hasOwnProperty(i)&&(r.hasOwnProperty(i)&&(r["_"+i]=r[i]),r[i]=A[i])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)r[o]=t.modeProps[o];return r}var He={};function Pe(e,t){Q(t,He.hasOwnProperty(e)?He[e]:He[e]={})}function Ke(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var A=t[r];A instanceof Array&&(A=A.concat([])),n[r]=A}return n}function Ge(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 $e(e,t,n){return!e.startState||e.startState(t,n)}var Ve=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 We(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 A=n.children[r],i=A.chunkSize();if(t<i){n=A;break}t-=i}return n.lines[t]}function je(e,t,n){var r=[],A=t.line;return e.iter(t.line,n.line+1,(function(e){var i=e.text;A==n.line&&(i=i.slice(0,n.ch)),A==t.line&&(i=i.slice(t.ch)),r.push(i),++A})),r}function Ye(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function Xe(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function ze(e){if(null==e.parent)return null;for(var t=e.parent,n=H(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var A=0;r.children[A]!=t;++A)n+=r.children[A].chunkSize();return n+t.first}function qe(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var A=e.children[r],i=A.height;if(t<i){e=A;continue e}t-=i,n+=A.chunkSize()}return n}while(!e.lines);for(var o=0;o<e.lines.length;++o){var a=e.lines[o].height;if(t<a)break;t-=a}return n+o}function Je(e,t){return t>=e.first&&t<e.first+e.size}function Ze(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function et(e,t,n){if(void 0===n&&(n=null),!(this instanceof et))return new et(e,t,n);this.line=e,this.ch=t,this.sticky=n}function tt(e,t){return e.line-t.line||e.ch-t.ch}function nt(e,t){return e.sticky==t.sticky&&0==tt(e,t)}function rt(e){return et(e.line,e.ch)}function At(e,t){return tt(e,t)<0?t:e}function it(e,t){return tt(e,t)<0?e:t}function ot(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function at(e,t){if(t.line<e.first)return et(e.first,0);var n=e.first+e.size-1;return t.line>n?et(n,We(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?et(e.line,t):n<0?et(e.line,0):e}(t,We(e,t.line).text.length)}function st(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=at(e,t[r]);return n}Ve.prototype.eol=function(){return this.pos>=this.string.length},Ve.prototype.sol=function(){return this.pos==this.lineStart},Ve.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ve.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ve.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Ve.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Ve.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ve.prototype.skipToEnd=function(){this.pos=this.string.length},Ve.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ve.prototype.backUp=function(e){this.pos-=e},Ve.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=R(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?R(this.string,this.lineStart,this.tabSize):0)},Ve.prototype.indentation=function(){return R(this.string,null,this.tabSize)-(this.lineStart?R(this.string,this.lineStart,this.tabSize):0)},Ve.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var A=function(e){return n?e.toLowerCase():e};if(A(this.string.substr(this.pos,e.length))==A(e))return!1!==t&&(this.pos+=e.length),!0},Ve.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ve.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ve.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ve.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ct=function(e,t){this.state=e,this.lookAhead=t},lt=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 ut(e,t,n,r){var A=[e.state.modeGen],i={};Et(e,t.text,e.doc.mode,n,(function(e,t){return A.push(e,t)}),i,r);for(var o=n.state,a=function(r){n.baseTokens=A;var a=e.state.overlays[r],s=1,c=0;n.state=!0,Et(e,t.text,a.mode,n,(function(e,t){for(var n=s;c<e;){var r=A[s];r>e&&A.splice(s,1,e,A[s+1],r),s+=2,c=Math.min(e,r)}if(t)if(a.opaque)A.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;n<s;n+=2){var i=A[n+1];A[n+1]=(i?i+" ":"")+"overlay "+t}}),i),n.state=o,n.baseTokens=null,n.baseTokenPos=1},s=0;s<e.state.overlays.length;++s)a(s);return{styles:A,classes:i.bgClass||i.textClass?i:null}}function ft(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=ht(e,ze(t)),A=t.text.length>e.options.maxHighlightLength&&Ke(e.doc.mode,r.state),i=ut(e,t,r);A&&(r.state=A),t.stateAfter=r.save(!A),t.styles=i.styles,i.classes?t.styleClasses=i.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 ht(e,t,n){var r=e.doc,A=e.display;if(!r.mode.startState)return new lt(r,!0,t);var i=function(e,t,n){for(var r,A,i=e.doc,o=n?-1:t-(e.doc.mode.innerMode?1e3:100),a=t;a>o;--a){if(a<=i.first)return i.first;var s=We(i,a-1),c=s.stateAfter;if(c&&(!n||a+(c instanceof ct?c.lookAhead:0)<=i.modeFrontier))return a;var l=R(s.text,null,e.options.tabSize);(null==A||r>l)&&(A=a-1,r=l)}return A}(e,t,n),o=i>r.first&&We(r,i-1).stateAfter,a=o?lt.fromSaved(r,o,i):new lt(r,$e(r.mode),i);return r.iter(i,t,(function(n){dt(e,n.text,a);var r=a.line;n.stateAfter=r==t-1||r%5==0||r>=A.viewFrom&&r<A.viewTo?a.save():null,a.nextLine()})),n&&(r.modeFrontier=a.line),a}function dt(e,t,n,r){var A=e.doc.mode,i=new Ve(t,e.options.tabSize,n);for(i.start=i.pos=r||0,""==t&&pt(A,n.state);!i.eol();)gt(A,i,n.state),i.start=i.pos}function pt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ge(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function gt(e,t,n,r){for(var A=0;A<10;A++){r&&(r[0]=Ge(e,n).mode);var i=e.token(t,n);if(t.pos>t.start)return i}throw new Error("Mode "+e.name+" failed to advance stream.")}lt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},lt.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}},lt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},lt.fromSaved=function(e,t,n){return t instanceof ct?new lt(e,Ke(e.mode,t.state),n,t.lookAhead):new lt(e,Ke(e.mode,t),n)},lt.prototype.save=function(e){var t=!1!==e?Ke(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ct(t,this.maxLookAhead):t};var mt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function vt(e,t,n,r){var A,i,o=e.doc,a=o.mode,s=We(o,(t=at(o,t)).line),c=ht(e,t.line,n),l=new Ve(s.text,e.options.tabSize,c);for(r&&(i=[]);(r||l.pos<t.ch)&&!l.eol();)l.start=l.pos,A=gt(a,l,c.state),r&&i.push(new mt(l,A,Ke(o.mode,c.state)));return r?i:new mt(l,A,c.state)}function Bt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function Et(e,t,n,r,A,i,o){var a=n.flattenSpans;null==a&&(a=e.options.flattenSpans);var s,c=0,l=null,u=new Ve(t,e.options.tabSize,r),f=e.options.addModeClass&&[null];for(""==t&&Bt(pt(n,r.state),i);!u.eol();){if(u.pos>e.options.maxHighlightLength?(a=!1,o&&dt(e,t,r,u.pos),u.pos=t.length,s=null):s=Bt(gt(n,u,r.state,f),i),f){var h=f[0].name;h&&(s="m-"+(s?h+" "+s:h))}if(!a||l!=s){for(;c<u.start;)A(c=Math.min(u.start,c+5e3),l);l=s}u.start=u.pos}for(;c<u.pos;){var d=Math.min(u.pos,c+5e3);A(d,l),c=d}}var yt=!1,Ct=!1;function bt(e,t,n){this.marker=e,this.from=t,this.to=n}function wt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Tt(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function _t(e,t){if(t.full)return null;var n=Je(e,t.from.line)&&We(e,t.from.line).markedSpans,r=Je(e,t.to.line)&&We(e,t.to.line).markedSpans;if(!n&&!r)return null;var A=t.from.ch,i=t.to.ch,o=0==tt(t.from,t.to),a=function(e,t,n){var r;if(e)for(var A=0;A<e.length;++A){var i=e[A],o=i.marker;if(null==i.from||(o.inclusiveLeft?i.from<=t:i.from<t)||i.from==t&&"bookmark"==o.type&&(!n||!i.marker.insertLeft)){var a=null==i.to||(o.inclusiveRight?i.to>=t:i.to>t);(r||(r=[])).push(new bt(o,i.from,a?null:i.to))}}return r}(n,A,o),s=function(e,t,n){var r;if(e)for(var A=0;A<e.length;++A){var i=e[A],o=i.marker;if(null==i.to||(o.inclusiveRight?i.to>=t:i.to>t)||i.from==t&&"bookmark"==o.type&&(!n||i.marker.insertLeft)){var a=null==i.from||(o.inclusiveLeft?i.from<=t:i.from<t);(r||(r=[])).push(new bt(o,a?null:i.from-t,null==i.to?null:i.to-t))}}return r}(r,i,o),c=1==t.text.length,l=Y(t.text).length+(c?A:0);if(a)for(var u=0;u<a.length;++u){var f=a[u];if(null==f.to){var h=wt(s,f.marker);h?c&&(f.to=null==h.to?null:h.to+l):f.to=A}}if(s)for(var d=0;d<s.length;++d){var p=s[d];null!=p.to&&(p.to+=l),null==p.from?wt(a,p.marker)||(p.from=l,c&&(a||(a=[])).push(p)):(p.from+=l,c&&(a||(a=[])).push(p))}a&&(a=It(a)),s&&s!=a&&(s=It(s));var g=[a];if(!c){var m,v=t.text.length-2;if(v>0&&a)for(var B=0;B<a.length;++B)null==a[B].to&&(m||(m=[])).push(new bt(a[B].marker,null,null));for(var E=0;E<v;++E)g.push(m);g.push(s)}return g}function It(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function St(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function kt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Ft(e){return e.inclusiveLeft?-1:0}function xt(e){return e.inclusiveRight?1:0}function Lt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),A=t.find(),i=tt(r.from,A.from)||Ft(e)-Ft(t);if(i)return-i;var o=tt(r.to,A.to)||xt(e)-xt(t);return o||t.id-e.id}function Ut(e,t){var n,r=Ct&&e.markedSpans;if(r)for(var A=void 0,i=0;i<r.length;++i)(A=r[i]).marker.collapsed&&null==(t?A.from:A.to)&&(!n||Lt(n,A.marker)<0)&&(n=A.marker);return n}function Nt(e){return Ut(e,!0)}function Dt(e){return Ut(e,!1)}function Ot(e,t){var n,r=Ct&&e.markedSpans;if(r)for(var A=0;A<r.length;++A){var i=r[A];i.marker.collapsed&&(null==i.from||i.from<t)&&(null==i.to||i.to>t)&&(!n||Lt(n,i.marker)<0)&&(n=i.marker)}return n}function Qt(e,t,n,r,A){var i=We(e,t),o=Ct&&i.markedSpans;if(o)for(var a=0;a<o.length;++a){var s=o[a];if(s.marker.collapsed){var c=s.marker.find(0),l=tt(c.from,n)||Ft(s.marker)-Ft(A),u=tt(c.to,r)||xt(s.marker)-xt(A);if(!(l>=0&&u<=0||l<=0&&u>=0)&&(l<=0&&(s.marker.inclusiveRight&&A.inclusiveLeft?tt(c.to,n)>=0:tt(c.to,n)>0)||l>=0&&(s.marker.inclusiveRight&&A.inclusiveLeft?tt(c.from,r)<=0:tt(c.from,r)<0)))return!0}}}function Rt(e){for(var t;t=Nt(e);)e=t.find(-1,!0).line;return e}function Mt(e,t){var n=We(e,t),r=Rt(n);return n==r?t:ze(r)}function Ht(e,t){if(t>e.lastLine())return t;var n,r=We(e,t);if(!Pt(e,r))return t;for(;n=Dt(r);)r=n.find(1,!0).line;return ze(r)+1}function Pt(e,t){var n=Ct&&t.markedSpans;if(n)for(var r=void 0,A=0;A<n.length;++A)if((r=n[A]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&Kt(e,t,r))return!0}}function Kt(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return Kt(e,r.line,wt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var A=void 0,i=0;i<t.markedSpans.length;++i)if((A=t.markedSpans[i]).marker.collapsed&&!A.marker.widgetNode&&A.from==n.to&&(null==A.to||A.to!=n.from)&&(A.marker.inclusiveLeft||n.marker.inclusiveRight)&&Kt(e,t,A))return!0}function Gt(e){for(var t=0,n=(e=Rt(e)).parent,r=0;r<n.lines.length;++r){var A=n.lines[r];if(A==e)break;t+=A.height}for(var i=n.parent;i;i=(n=i).parent)for(var o=0;o<i.children.length;++o){var a=i.children[o];if(a==n)break;t+=a.height}return t}function $t(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Nt(r);){var A=t.find(0,!0);r=A.from.line,n+=A.from.ch-A.to.ch}for(r=e;t=Dt(r);){var i=t.find(0,!0);n-=r.text.length-i.from.ch,n+=(r=i.to.line).text.length-i.to.ch}return n}function Vt(e){var t=e.display,n=e.doc;t.maxLine=We(n,n.first),t.maxLineLength=$t(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=$t(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var Wt=function(e,t,n){this.text=e,kt(this,t),this.height=n?n(this):1};function jt(e){e.parent=null,St(e)}Wt.prototype.lineNo=function(){return ze(this)},ve(Wt);var Yt={},Xt={};function zt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Xt:Yt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function qt(e,t){var n=F("span",null,null,s?"padding-right: .1px":null),r={pre:F("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var A=0;A<=(t.rest?t.rest.length:0);A++){var i=A?t.rest[A-1]:t.line,o=void 0;r.pos=0,r.addToken=Zt,ke(e.display.measure)&&(o=ce(i,e.doc.direction))&&(r.addToken=en(r.addToken,o)),r.map=[],nn(i,r,ft(e,i,t!=e.display.externalMeasured&&ze(i))),i.styleClasses&&(i.styleClasses.bgClass&&(r.bgClass=N(i.styleClasses.bgClass,r.bgClass||"")),i.styleClasses.textClass&&(r.textClass=N(i.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Se(e.display.measure))),0==A?(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 de(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=N(r.pre.className,r.textClass||"")),r}function Jt(e){var t=k("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Zt(e,t,n,r,A,i,s){if(t){var c,l=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",A=0;A<e.length;A++){var i=e.charAt(A);" "!=i||!n||A!=e.length-1&&32!=e.charCodeAt(A+1)||(i=" "),r+=i,n=" "==i}return r}(t,e.trailingSpace):t,u=e.cm.state.specialChars,f=!1;if(u.test(t)){c=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(l.slice(h,h+p));o&&a<9?c.appendChild(k("span",[g])):c.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,B=v-e.col%v;(m=c.appendChild(k("span",j(B),"cm-tab"))).setAttribute("role","presentation"),m.setAttribute("cm-text","\t"),e.col+=B}else"\r"==d[0]||"\n"==d[0]?((m=c.appendChild(k("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]),o&&a<9?c.appendChild(k("span",[m])):c.appendChild(m),e.col+=1);e.map.push(e.pos,e.pos+1,m),e.pos++}}else e.col+=t.length,c=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,c),o&&a<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==l.charCodeAt(t.length-1),n||r||A||f||i||s){var E=n||"";r&&(E+=r),A&&(E+=A);var y=k("span",[c],E,i);if(s)for(var C in s)s.hasOwnProperty(C)&&"style"!=C&&"class"!=C&&y.setAttribute(C,s[C]);return e.content.appendChild(y)}e.content.appendChild(c)}}function en(e,t){return function(n,r,A,i,o,a,s){A=A?A+" cm-force-border":"cm-force-border";for(var c=n.pos,l=c+r.length;;){for(var u=void 0,f=0;f<t.length&&!((u=t[f]).to>c&&u.from<=c);f++);if(u.to>=l)return e(n,r,A,i,o,a,s);e(n,r.slice(0,u.to-c),A,i,null,a,s),i=null,r=r.slice(u.to-c),c=u.to}}}function tn(e,t,n,r){var A=!r&&n.widgetNode;A&&e.map.push(e.pos,e.pos+t,A),!r&&e.cm.display.input.needsContentAttribute&&(A||(A=e.content.appendChild(document.createElement("span"))),A.setAttribute("cm-marker",n.id)),A&&(e.cm.display.input.setUneditable(A),e.content.appendChild(A)),e.pos+=t,e.trailingSpace=!1}function nn(e,t,n){var r=e.markedSpans,A=e.text,i=0;if(r)for(var o,a,s,c,l,u,f,h=A.length,d=0,p=1,g="",m=0;;){if(m==d){s=c=l=a="",f=null,u=null,m=1/0;for(var v=[],B=void 0,E=0;E<r.length;++E){var y=r[E],C=y.marker;if("bookmark"==C.type&&y.from==d&&C.widgetNode)v.push(C);else if(y.from<=d&&(null==y.to||y.to>d||C.collapsed&&y.to==d&&y.from==d)){if(null!=y.to&&y.to!=d&&m>y.to&&(m=y.to,c=""),C.className&&(s+=" "+C.className),C.css&&(a=(a?a+";":"")+C.css),C.startStyle&&y.from==d&&(l+=" "+C.startStyle),C.endStyle&&y.to==m&&(B||(B=[])).push(C.endStyle,y.to),C.title&&((f||(f={})).title=C.title),C.attributes)for(var b in C.attributes)(f||(f={}))[b]=C.attributes[b];C.collapsed&&(!u||Lt(u.marker,C)<0)&&(u=y)}else y.from>d&&m>y.from&&(m=y.from)}if(B)for(var w=0;w<B.length;w+=2)B[w+1]==m&&(c+=" "+B[w]);if(!u||u.from==d)for(var T=0;T<v.length;++T)tn(t,0,v[T]);if(u&&(u.from||0)==d){if(tn(t,(null==u.to?h+1:u.to)-d,u.marker,null==u.from),null==u.to)return;u.to==d&&(u=!1)}}if(d>=h)break;for(var _=Math.min(h,m);;){if(g){var I=d+g.length;if(!u){var S=I>_?g.slice(0,_-d):g;t.addToken(t,S,o?o+s:s,l,d+S.length==m?c:"",a,f)}if(I>=_){g=g.slice(_-d),d=_;break}d=I,l=""}g=A.slice(i,i=n[p++]),o=zt(n[p++],t.cm.options)}}else for(var k=1;k<n.length;k+=2)t.addToken(t,A.slice(i,i=n[k]),zt(n[k+1],t.cm.options))}function rn(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=Dt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?ze(Y(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Pt(e,t)}function An(e,t,n){for(var r,A=[],i=t;i<n;i=r){var o=new rn(e.doc,We(e.doc,i),i);r=i+o.size,A.push(o)}return A}var on=null,an=null;function sn(e,t){var n=fe(e,t);if(n.length){var r,A=Array.prototype.slice.call(arguments,2);on?r=on.delayedCallbacks:an?r=an:(r=an=[],setTimeout(cn,0));for(var i=function(e){r.push((function(){return n[e].apply(null,A)}))},o=0;o<n.length;++o)i(o)}}function cn(){var e=an;an=null;for(var t=0;t<e.length;++t)e[t]()}function ln(e,t,n,r){for(var A=0;A<t.changes.length;A++){var i=t.changes[A];"text"==i?hn(e,t):"gutter"==i?pn(e,t,n,r):"class"==i?dn(e,t):"widget"==i&&gn(e,t,r)}t.changes=null}function un(e){return e.node==e.text&&(e.node=k("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),o&&a<8&&(e.node.style.zIndex=2)),e.node}function fn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):qt(e,t)}function hn(e,t){var n=t.text.className,r=fn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,dn(e,t)):n&&(t.text.className=n)}function dn(e,t){!function(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=un(t);t.background=r.insertBefore(k("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}(e,t),t.line.wrapClass?un(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function pn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var A=un(t);t.gutterBackground=k("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),A.insertBefore(t.gutterBackground,t.text)}var i=t.line.gutterMarkers;if(e.options.lineNumbers||i){var o=un(t),a=t.gutter=k("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(a),o.insertBefore(a,t.text),t.line.gutterClass&&(a.className+=" "+t.line.gutterClass),!e.options.lineNumbers||i&&i["CodeMirror-linenumbers"]||(t.lineNumber=a.appendChild(k("div",Ze(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),i)for(var s=0;s<e.display.gutterSpecs.length;++s){var c=e.display.gutterSpecs[s].className,l=i.hasOwnProperty(c)&&i[c];l&&a.appendChild(k("div",[l],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function gn(e,t,n){t.alignable&&(t.alignable=null);for(var r=w("CodeMirror-linewidget"),A=t.node.firstChild,i=void 0;A;A=i)i=A.nextSibling,r.test(A.className)&&t.node.removeChild(A);vn(e,t,n)}function mn(e,t,n,r){var A=fn(e,t);return t.text=t.node=A.pre,A.bgClass&&(t.bgClass=A.bgClass),A.textClass&&(t.textClass=A.textClass),dn(e,t),pn(e,t,n,r),vn(e,t,r),t.node}function vn(e,t,n){if(Bn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)Bn(e,t.rest[r],t,n,!1)}function Bn(e,t,n,r,A){if(t.widgets)for(var i=un(n),o=0,a=t.widgets;o<a.length;++o){var s=a[o],c=k("div",[s.node],"CodeMirror-linewidget"+(s.className?" "+s.className:""));s.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),En(s,c,n,r),e.display.input.setUneditable(c),A&&s.above?i.insertBefore(c,n.gutter||n.text):i.appendChild(c),sn(s,"redraw")}}function En(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var A=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(A-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=A+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function yn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!x(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),S(t.display.measure,k("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Cn(e,t){for(var n=be(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function bn(e){return e.lineSpace.offsetTop}function wn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Tn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=S(e.measure,k("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function _n(e){return 50-e.display.nativeBarWidth}function In(e){return e.display.scroller.clientWidth-_n(e)-e.display.barWidth}function Sn(e){return e.display.scroller.clientHeight-_n(e)-e.display.barHeight}function kn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var A=0;A<e.rest.length;A++)if(ze(e.rest[A])>n)return{map:e.measure.maps[A],cache:e.measure.caches[A],before:!0}}function Fn(e,t,n,r){return Un(e,Ln(e,t),n,r)}function xn(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[lr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function Ln(e,t){var n=ze(t),r=xn(e,n);r&&!r.text?r=null:r&&r.changes&&(ln(e,r,n,ir(e)),e.curOp.forceUpdate=!0),r||(r=function(e,t){var n=ze(t=Rt(t)),r=e.display.externalMeasured=new rn(e.doc,t,n);r.lineN=n;var A=r.built=qt(e,r);return r.text=A.pre,S(e.display.lineMeasure,A.pre),r}(e,t));var A=kn(r,t,n);return{line:t,view:r,rect:null,map:A.map,cache:A.cache,before:A.before,hasHeights:!1}}function Un(e,t,n,r,A){t.before&&(n=-1);var i,s=n+(r||"");return t.cache.hasOwnProperty(s)?i=t.cache[s]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(function(e,t,n){var r=e.options.lineWrapping,A=r&&In(e);if(!t.measure.heights||r&&t.measure.width!=A){var i=t.measure.heights=[];if(r){t.measure.width=A;for(var o=t.text.firstChild.getClientRects(),a=0;a<o.length-1;a++){var s=o[a],c=o[a+1];Math.abs(s.bottom-c.bottom)>2&&i.push((s.bottom+c.top)/2-n.top)}}i.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(i=function(e,t,n,r){var A,i=On(t.map,n,r),s=i.node,c=i.start,l=i.end,u=i.collapse;if(3==s.nodeType){for(var f=0;f<4;f++){for(;c&&re(t.line.text.charAt(i.coverStart+c));)--c;for(;i.coverStart+l<i.coverEnd&&re(t.line.text.charAt(i.coverStart+l));)++l;if((A=o&&a<9&&0==c&&l==i.coverEnd-i.coverStart?s.parentNode.getBoundingClientRect():Qn(T(s,c,l).getClientRects(),r)).left||A.right||0==c)break;l=c,c-=1,u="right"}o&&a<11&&(A=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=Ne)return Ne;var t=S(e,k("span","x")),n=t.getBoundingClientRect(),r=T(t,0,1).getBoundingClientRect();return Ne=Math.abs(n.left-r.left)>1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,A))}else{var h;c>0&&(u=r="right"),A=e.options.lineWrapping&&(h=s.getClientRects()).length>1?h["right"==r?h.length-1:0]:s.getBoundingClientRect()}if(o&&a<9&&!c&&(!A||!A.left&&!A.right)){var d=s.parentNode.getClientRects()[0];A=d?{left:d.left,right:d.left+Ar(e.display),top:d.top,bottom:d.bottom}:Dn}for(var p=A.top-t.rect.top,g=A.bottom-t.rect.top,m=(p+g)/2,v=t.view.measure.heights,B=0;B<v.length-1&&!(m<v[B]);B++);var E=B?v[B-1]:0,y=v[B],C={left:("right"==u?A.right:A.left)-t.rect.left,right:("left"==u?A.left:A.right)-t.rect.left,top:E,bottom:y};return A.left||A.right||(C.bogus=!0),e.options.singleCursorHeightPerLine||(C.rtop=p,C.rbottom=g),C}(e,t,n,r)).bogus||(t.cache[s]=i)),{left:i.left,right:i.right,top:A?i.rtop:i.top,bottom:A?i.rbottom:i.bottom}}var Nn,Dn={left:0,right:0,top:0,bottom:0};function On(e,t,n){for(var r,A,i,o,a,s,c=0;c<e.length;c+=3)if(a=e[c],s=e[c+1],t<a?(A=0,i=1,o="left"):t<s?i=1+(A=t-a):(c==e.length-3||t==s&&e[c+3]>t)&&(A=(i=s-a)-1,t>=s&&(o="right")),null!=A){if(r=e[c+2],a==s&&n==(r.insertLeft?"left":"right")&&(o=n),"left"==n&&0==A)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],o="left";if("right"==n&&A==s-a)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)r=e[(c+=3)+2],o="right";break}return{node:r,start:A,end:i,collapse:o,coverStart:a,coverEnd:s}}function Qn(e,t){var n=Dn;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var A=e.length-1;A>=0&&(n=e[A]).left==n.right;A--);return n}function Rn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Mn(e){e.display.externalMeasure=null,I(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Rn(e.display.view[t])}function Hn(e){Mn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Pn(){return l&&g?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Kn(){return l&&g?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Gn(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=yn(e.widgets[n]));return t}function $n(e,t,n,r,A){if(!A){var i=Gn(t);n.top+=i,n.bottom+=i}if("line"==r)return n;r||(r="local");var o=Gt(t);if("local"==r?o+=bn(e.display):o-=e.display.viewOffset,"page"==r||"window"==r){var a=e.display.lineSpace.getBoundingClientRect();o+=a.top+("window"==r?0:Kn());var s=a.left+("window"==r?0:Pn());n.left+=s,n.right+=s}return n.top+=o,n.bottom+=o,n}function Vn(e,t,n){if("div"==n)return t;var r=t.left,A=t.top;if("page"==n)r-=Pn(),A-=Kn();else if("local"==n||!n){var i=e.display.sizer.getBoundingClientRect();r+=i.left,A+=i.top}var o=e.display.lineSpace.getBoundingClientRect();return{left:r-o.left,top:A-o.top}}function Wn(e,t,n,r,A){return r||(r=We(e.doc,t.line)),$n(e,r,Fn(e,r,t.ch,A),n)}function jn(e,t,n,r,A,i){function o(t,o){var a=Un(e,A,t,o?"right":"left",i);return o?a.left=a.right:a.right=a.left,$n(e,r,a,n)}r=r||We(e.doc,t.line),A||(A=Ln(e,r));var a=ce(r,e.doc.direction),s=t.ch,c=t.sticky;if(s>=r.text.length?(s=r.text.length,c="before"):s<=0&&(s=0,c="after"),!a)return o("before"==c?s-1:s,"before"==c);function l(e,t,n){return o(n?e-1:e,1==a[t].level!=n)}var u=ae(a,s,c),f=oe,h=l(s,u,"before"==c);return null!=f&&(h.other=l(s,f,"before"!=c)),h}function Yn(e,t){var n=0;t=at(e.doc,t),e.options.lineWrapping||(n=Ar(e.display)*t.ch);var r=We(e.doc,t.line),A=Gt(r)+bn(e.display);return{left:n,right:n,top:A,bottom:A+r.height}}function Xn(e,t,n,r,A){var i=et(e,t,n);return i.xRel=A,r&&(i.outside=r),i}function zn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Xn(r.first,0,null,-1,-1);var A=qe(r,n),i=r.first+r.size-1;if(A>i)return Xn(r.first+r.size-1,We(r,i).text.length,null,1,1);t<0&&(t=0);for(var o=We(r,A);;){var a=er(e,o,A,t,n),s=Ot(o,a.ch+(a.xRel>0||a.outside>0?1:0));if(!s)return a;var c=s.find(1);if(c.line==A)return c;o=We(r,A=c.line)}}function qn(e,t,n,r){r-=Gn(t);var A=t.text.length,i=ie((function(t){return Un(e,n,t-1).bottom<=r}),A,0);return{begin:i,end:A=ie((function(t){return Un(e,n,t).top>r}),i,A)}}function Jn(e,t,n,r){return n||(n=Ln(e,t)),qn(e,t,n,$n(e,t,Un(e,n,r),"line").top)}function Zn(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function er(e,t,n,r,A){A-=Gt(t);var i=Ln(e,t),o=Gn(t),a=0,s=t.text.length,c=!0,l=ce(t,e.doc.direction);if(l){var u=(e.options.lineWrapping?nr:tr)(e,t,n,i,l,r,A);a=(c=1!=u.level)?u.from:u.to-1,s=c?u.to:u.from-1}var f,h,d=null,p=null,g=ie((function(t){var n=Un(e,i,t);return n.top+=o,n.bottom+=o,!!Zn(n,r,A,!1)&&(n.top<=A&&n.left<=r&&(d=t,p=n),!0)}),a,s),m=!1;if(p){var v=r-p.left<p.right-r,B=v==c;g=d+(B?0:1),h=B?"after":"before",f=v?p.left:p.right}else{c||g!=s&&g!=a||g++,h=0==g?"after":g==t.text.length?"before":Un(e,i,g-(c?1:0)).bottom+o<=A==c?"after":"before";var E=jn(e,et(n,g,h),"line",t,i);f=E.left,m=A<E.top?-1:A>=E.bottom?1:0}return Xn(n,g=Ae(t.text,g,1),h,m,r-f)}function tr(e,t,n,r,A,i,o){var a=ie((function(a){var s=A[a],c=1!=s.level;return Zn(jn(e,et(n,c?s.to:s.from,c?"before":"after"),"line",t,r),i,o,!0)}),0,A.length-1),s=A[a];if(a>0){var c=1!=s.level,l=jn(e,et(n,c?s.from:s.to,c?"after":"before"),"line",t,r);Zn(l,i,o,!0)&&l.top>o&&(s=A[a-1])}return s}function nr(e,t,n,r,A,i,o){var a=qn(e,t,r,o),s=a.begin,c=a.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var l=null,u=null,f=0;f<A.length;f++){var h=A[f];if(!(h.from>=c||h.to<=s)){var d=Un(e,r,1!=h.level?Math.min(c,h.to)-1:Math.max(s,h.from)).right,p=d<i?i-d+1e9:d-i;(!l||u>p)&&(l=h,u=p)}}return l||(l=A[A.length-1]),l.from<s&&(l={from:s,to:l.to,level:l.level}),l.to>c&&(l={from:l.from,to:c,level:l.level}),l}function rr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Nn){Nn=k("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Nn.appendChild(document.createTextNode("x")),Nn.appendChild(k("br"));Nn.appendChild(document.createTextNode("x"))}S(e.measure,Nn);var n=Nn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),I(e.measure),n||1}function Ar(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=k("span","xxxxxxxxxx"),n=k("pre",[t],"CodeMirror-line-like");S(e.measure,n);var r=t.getBoundingClientRect(),A=(r.right-r.left)/10;return A>2&&(e.cachedCharWidth=A),A||10}function ir(e){for(var t=e.display,n={},r={},A=t.gutters.clientLeft,i=t.gutters.firstChild,o=0;i;i=i.nextSibling,++o){var a=e.display.gutterSpecs[o].className;n[a]=i.offsetLeft+i.clientLeft+A,r[a]=i.clientWidth}return{fixedPos:or(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function or(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function ar(e){var t=rr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Ar(e.display)-3);return function(A){if(Pt(e.doc,A))return 0;var i=0;if(A.widgets)for(var o=0;o<A.widgets.length;o++)A.widgets[o].height&&(i+=A.widgets[o].height);return n?i+(Math.ceil(A.text.length/r)||1)*t:i+t}}function sr(e){var t=e.doc,n=ar(e);t.iter((function(e){var t=n(e);t!=e.height&&Xe(e,t)}))}function cr(e,t,n,r){var A=e.display;if(!n&&"true"==be(t).getAttribute("cm-not-content"))return null;var i,o,a=A.lineSpace.getBoundingClientRect();try{i=t.clientX-a.left,o=t.clientY-a.top}catch(e){return null}var s,c=zn(e,i,o);if(r&&c.xRel>0&&(s=We(e.doc,c.line).text).length==c.ch){var l=R(s,s.length,e.options.tabSize)-s.length;c=et(c.line,Math.max(0,Math.round((i-Tn(e.display).left)/Ar(e.display))-l))}return c}function lr(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;r<n.length;r++)if((t-=n[r].size)<0)return r}function ur(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var A=e.display;if(r&&n<A.viewTo&&(null==A.updateLineNumbers||A.updateLineNumbers>t)&&(A.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=A.viewTo)Ct&&Mt(e.doc,t)<A.viewTo&&hr(e);else if(n<=A.viewFrom)Ct&&Ht(e.doc,n+r)>A.viewFrom?hr(e):(A.viewFrom+=r,A.viewTo+=r);else if(t<=A.viewFrom&&n>=A.viewTo)hr(e);else if(t<=A.viewFrom){var i=dr(e,n,n+r,1);i?(A.view=A.view.slice(i.index),A.viewFrom=i.lineN,A.viewTo+=r):hr(e)}else if(n>=A.viewTo){var o=dr(e,t,t,-1);o?(A.view=A.view.slice(0,o.index),A.viewTo=o.lineN):hr(e)}else{var a=dr(e,t,t,-1),s=dr(e,n,n+r,1);a&&s?(A.view=A.view.slice(0,a.index).concat(An(e,a.lineN,s.lineN)).concat(A.view.slice(s.index)),A.viewTo+=r):hr(e)}var c=A.externalMeasured;c&&(n<c.lineN?c.lineN+=r:t<c.lineN+c.size&&(A.externalMeasured=null))}function fr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,A=e.display.externalMeasured;if(A&&t>=A.lineN&&t<A.lineN+A.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var i=r.view[lr(e,t)];if(null!=i.node){var o=i.changes||(i.changes=[]);-1==H(o,n)&&o.push(n)}}}function hr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function dr(e,t,n,r){var A,i=lr(e,t),o=e.display.view;if(!Ct||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var a=e.display.viewFrom,s=0;s<i;s++)a+=o[s].size;if(a!=t){if(r>0){if(i==o.length-1)return null;A=a+o[i].size-t,i++}else A=a-t;t+=A,n+=A}for(;Mt(e.doc,n)!=n;){if(i==(r<0?0:o.length-1))return null;n+=r*o[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function pr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var A=t[r];A.hidden||A.node&&!A.changes||++n}return n}function gr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function mr(e,t){void 0===t&&(t=!0);for(var n=e.doc,r={},A=r.cursors=document.createDocumentFragment(),i=r.selection=document.createDocumentFragment(),o=0;o<n.sel.ranges.length;o++)if(t||o!=n.sel.primIndex){var a=n.sel.ranges[o];if(!(a.from().line>=e.display.viewTo||a.to().line<e.display.viewFrom)){var s=a.empty();(s||e.options.showCursorWhenSelecting)&&vr(e,a.head,A),s||Er(e,a,i)}}return r}function vr(e,t,n){var r=jn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),A=n.appendChild(k("div"," ","CodeMirror-cursor"));if(A.style.left=r.left+"px",A.style.top=r.top+"px",A.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",r.other){var i=n.appendChild(k("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));i.style.display="",i.style.left=r.other.left+"px",i.style.top=r.other.top+"px",i.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Br(e,t){return e.top-t.top||e.left-t.left}function Er(e,t,n){var r=e.display,A=e.doc,i=document.createDocumentFragment(),o=Tn(e.display),a=o.left,s=Math.max(r.sizerWidth,In(e)-r.sizer.offsetLeft)-o.right,c="ltr"==A.direction;function l(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),i.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?s-e:n)+"px;\n height: "+(r-t)+"px"))}function u(t,n,r){var i,o,u=We(A,t),f=u.text.length;function h(n,r){return Wn(e,et(t,n),"div",u,r)}function d(t,n,r){var A=Jn(e,u,null,t),i="ltr"==n==("after"==r)?"left":"right";return h("after"==r?A.begin:A.end-(/\s/.test(u.text.charAt(A.end-1))?2:1),i)[i]}var p=ce(u,A.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var A=!1,i=0;i<e.length;++i){var o=e[i];(o.from<n&&o.to>t||t==n&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,n),1==o.level?"rtl":"ltr",i),A=!0)}A||r(t,n,"ltr")}(p,n||0,null==r?f:r,(function(e,t,A,u){var g="ltr"==A,m=h(e,g?"left":"right"),v=h(t-1,g?"right":"left"),B=null==n&&0==e,E=null==r&&t==f,y=0==u,C=!p||u==p.length-1;if(v.top-m.top<=3){var b=(c?E:B)&&C,w=(c?B:E)&&y?a:(g?m:v).left,T=b?s:(g?v:m).right;l(w,m.top,T-w,m.bottom)}else{var _,I,S,k;g?(_=c&&B&&y?a:m.left,I=c?s:d(e,A,"before"),S=c?a:d(t,A,"after"),k=c&&E&&C?s:v.right):(_=c?d(e,A,"before"):a,I=!c&&B&&y?s:m.right,S=!c&&E&&C?a:v.left,k=c?d(t,A,"after"):s),l(_,m.top,I-_,m.bottom),m.bottom<v.top&&l(a,m.bottom,null,v.top),l(S,v.top,k-S,v.bottom)}(!i||Br(m,i)<0)&&(i=m),Br(v,i)<0&&(i=v),(!o||Br(m,o)<0)&&(o=m),Br(v,o)<0&&(o=v)})),{start:i,end:o}}var f=t.from(),h=t.to();if(f.line==h.line)u(f.line,f.ch,h.ch);else{var d=We(A,f.line),p=We(A,h.line),g=Rt(d)==Rt(p),m=u(f.line,f.ch,g?d.text.length+1:null).end,v=u(h.line,g?0:null,h.ch).start;g&&(m.top<v.top-2?(l(m.right,m.top,null,m.bottom),l(a,v.top,v.left,v.bottom)):l(m.right,m.top,v.left-m.right,m.bottom)),m.bottom<v.top&&l(a,m.bottom,null,v.top)}n.appendChild(i)}function yr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){e.hasFocus()||Tr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Cr(e){e.state.focused||(e.display.input.focus(),wr(e))}function br(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Tr(e))}),100)}function wr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(de(e,"focus",e,t),e.state.focused=!0,U(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()),yr(e))}function Tr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(de(e,"blur",e,t),e.state.focused=!1,_(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function _r(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var A=t.view[r],i=e.options.lineWrapping,s=void 0,c=0;if(!A.hidden){if(o&&a<8){var l=A.node.offsetTop+A.node.offsetHeight;s=l-n,n=l}else{var u=A.node.getBoundingClientRect();s=u.bottom-u.top,!i&&A.text.firstChild&&(c=A.text.firstChild.getBoundingClientRect().right-u.left-1)}var f=A.line.height-s;if((f>.005||f<-.005)&&(Xe(A.line,s),Ir(A.line),A.rest))for(var h=0;h<A.rest.length;h++)Ir(A.rest[h]);if(c>e.display.sizerWidth){var d=Math.ceil(c/Ar(e.display));d>e.display.maxLineLength&&(e.display.maxLineLength=d,e.display.maxLine=A.line,e.display.maxLineChanged=!0)}}}}function Ir(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Sr(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-bn(e));var A=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,i=qe(t,r),o=qe(t,A);if(n&&n.ensure){var a=n.ensure.from.line,s=n.ensure.to.line;a<i?(i=a,o=qe(t,Gt(We(t,a))+e.wrapper.clientHeight)):Math.min(s,t.lastLine())>=o&&(i=qe(t,Gt(We(t,s))-e.wrapper.clientHeight),o=s)}return{from:i,to:Math.max(o,i+1)}}function kr(e,t){var n=e.display,r=rr(e.display);t.top<0&&(t.top=0);var A=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,i=Sn(e),o={};t.bottom-t.top>i&&(t.bottom=t.top+i);var a=e.doc.height+wn(n),s=t.top<r,c=t.bottom>a-r;if(t.top<A)o.scrollTop=s?0:t.top;else if(t.bottom>A+i){var l=Math.min(t.top,(c?a:t.bottom)-i);l!=A&&(o.scrollTop=l)}var u=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-u,h=In(e)-n.gutters.offsetWidth,d=t.right-t.left>h;return d&&(t.right=t.left+h),t.left<10?o.scrollLeft=0:t.left<f?o.scrollLeft=Math.max(0,t.left+u-(d?0:10)):t.right>h+f-3&&(o.scrollLeft=t.right+(d?0:10)-h),o}function Fr(e,t){null!=t&&(Ur(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function xr(e){Ur(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Lr(e,t,n){null==t&&null==n||Ur(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Ur(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Nr(e,Yn(e,t.from),Yn(e,t.to),t.margin))}function Nr(e,t,n,r){var A=kr(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});Lr(e,A.scrollLeft,A.scrollTop)}function Dr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||sA(e,{top:t}),Or(e,t,!0),n&&sA(e),rA(e,100))}function Or(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 Qr(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,uA(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Rr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+wn(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+_n(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Mr=function(e,t,n){this.cm=n;var r=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),A=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=A.tabIndex=-1,e(r),e(A),ue(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),ue(A,"scroll",(function(){A.clientWidth&&t(A.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,o&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Mr.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 A=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+A)+"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 i=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+i)+"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}},Mr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Mr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Mr.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 M,this.disableVert=new M},Mr.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,(function r(){var A=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(A.right-1,(A.top+A.bottom)/2):document.elementFromPoint((A.right+A.left)/2,A.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}))},Mr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Hr=function(){};function Pr(e,t){t||(t=Rr(e));var n=e.display.barWidth,r=e.display.barHeight;Kr(e,t);for(var A=0;A<4&&n!=e.display.barWidth||r!=e.display.barHeight;A++)n!=e.display.barWidth&&e.options.lineWrapping&&_r(e),Kr(e,Rr(e)),n=e.display.barWidth,r=e.display.barHeight}function Kr(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=""}Hr.prototype.update=function(){return{bottom:0,right:0}},Hr.prototype.setScrollLeft=function(){},Hr.prototype.setScrollTop=function(){},Hr.prototype.clear=function(){};var Gr={native:Mr,null:Hr};function $r(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&_(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Gr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ue(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?Qr(e,t):Dr(e,t)}),e),e.display.scrollbars.addClass&&U(e.display.wrapper,e.display.scrollbars.addClass)}var Vr=0;function Wr(e){var t;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:++Vr},t=e.curOp,on?on.ops.push(t):t.ownsGroup=on={ops:[t],delayedCallbacks:[]}}function jr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var A=e.ops[r];if(A.cursorActivityHandlers)for(;A.cursorActivityCalled<A.cursorActivityHandlers.length;)A.cursorActivityHandlers[A.cursorActivityCalled++].call(null,A.cm)}}while(n<t.length)}(n)}finally{on=null,t(n)}}(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)Yr(t[n]);for(var r=0;r<t.length;r++)Xr(t[r]);for(var A=0;A<t.length;A++)zr(t[A]);for(var i=0;i<t.length;i++)qr(t[i]);for(var o=0;o<t.length;o++)Jr(t[o])}(e)}))}function Yr(e){var t=e.cm,n=t.display;!function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=_n(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=_n(e)+"px",t.scrollbarsClipped=!0)}(t),e.updateMaxLine&&Vt(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new iA(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Xr(e){e.updatedDisplay=e.mustUpdate&&oA(e.cm,e.update)}function zr(e){var t=e.cm,n=t.display;e.updatedDisplay&&_r(t),e.barMeasure=Rr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Fn(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+_n(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-In(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function qr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Qr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==L();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Pr(t,e.barMeasure),e.updatedDisplay&&lA(t,e.barMeasure),e.selectionChanged&&yr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Cr(e.cm)}function Jr(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&aA(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&Or(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&Qr(t,e.scrollLeft,!0,!0),e.scrollToPos&&function(e,t){if(!pe(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),A=null;if(t.top+r.top<0?A=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(A=!1),null!=A&&!d){var i=k("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-bn(e.display))+"px;\n height: "+(t.bottom-t.top+_n(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(i),i.scrollIntoView(A),e.display.lineSpace.removeChild(i)}}}(t,function(e,t,n,r){var A;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?et(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?et(t.line,t.ch+1,"before"):t);for(var i=0;i<5;i++){var o=!1,a=jn(e,t),s=n&&n!=t?jn(e,n):a,c=kr(e,A={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}),l=e.doc.scrollTop,u=e.doc.scrollLeft;if(null!=c.scrollTop&&(Dr(e,c.scrollTop),Math.abs(e.doc.scrollTop-l)>1&&(o=!0)),null!=c.scrollLeft&&(Qr(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-u)>1&&(o=!0)),!o)break}return A}(t,at(r,e.scrollToPos.from),at(r,e.scrollToPos.to),e.scrollToPos.margin));var A=e.maybeHiddenMarkers,i=e.maybeUnhiddenMarkers;if(A)for(var o=0;o<A.length;++o)A[o].lines.length||de(A[o],"hide");if(i)for(var a=0;a<i.length;++a)i[a].lines.length&&de(i[a],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&de(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Zr(e,t){if(e.curOp)return t();Wr(e);try{return t()}finally{jr(e)}}function eA(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Wr(e);try{return t.apply(e,arguments)}finally{jr(e)}}}function tA(e){return function(){if(this.curOp)return e.apply(this,arguments);Wr(this);try{return e.apply(this,arguments)}finally{jr(this)}}}function nA(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Wr(t);try{return e.apply(this,arguments)}finally{jr(t)}}}function rA(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,O(AA,e))}function AA(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=ht(e,t.highlightFrontier),A=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(i){if(r.line>=e.display.viewFrom){var o=i.styles,a=i.text.length>e.options.maxHighlightLength?Ke(t.mode,r.state):null,s=ut(e,i,r,!0);a&&(r.state=a),i.styles=s.styles;var c=i.styleClasses,l=s.classes;l?i.styleClasses=l:c&&(i.styleClasses=null);for(var u=!o||o.length!=i.styles.length||c!=l&&(!c||!l||c.bgClass!=l.bgClass||c.textClass!=l.textClass),f=0;!u&&f<o.length;++f)u=o[f]!=i.styles[f];u&&A.push(r.line),i.stateAfter=r.save(),r.nextLine()}else i.text.length<=e.options.maxHighlightLength&&dt(e,i.text,r),i.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return rA(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),A.length&&Zr(e,(function(){for(var t=0;t<A.length;t++)fr(e,A[t],"text")}))}}var iA=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Sr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=In(e),this.force=n,this.dims=ir(e),this.events=[]};function oA(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return hr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==pr(e))return!1;fA(e)&&(hr(e),t.dims=ir(e));var A=r.first+r.size,i=Math.max(t.visible.from-e.options.viewportMargin,r.first),o=Math.min(A,t.visible.to+e.options.viewportMargin);n.viewFrom<i&&i-n.viewFrom<20&&(i=Math.max(r.first,n.viewFrom)),n.viewTo>o&&n.viewTo-o<20&&(o=Math.min(A,n.viewTo)),Ct&&(i=Mt(e.doc,i),o=Ht(e.doc,o));var a=i!=n.viewFrom||o!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=An(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=An(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(lr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(An(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,lr(e,n)))),r.viewTo=n}(e,i,o),n.viewOffset=Gt(We(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var c=pr(e);if(!a&&0==c&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var l=function(e){if(e.hasFocus())return null;var t=L();if(!t||!x(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&x(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return c>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,A=e.options.lineNumbers,i=r.lineDiv,o=i.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 c=r.view,l=r.viewFrom,u=0;u<c.length;u++){var f=c[u];if(f.hidden);else if(f.node&&f.node.parentNode==i){for(;o!=f.node;)o=a(o);var h=A&&null!=t&&t<=l&&f.lineNumber;f.changes&&(H(f.changes,"gutter")>-1&&(h=!1),ln(e,f,l,n)),h&&(I(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(Ze(e.options,l)))),o=f.node.nextSibling}else{var d=mn(e,f,l,n);i.insertBefore(d,o)}l+=f.size}for(;o;)o=a(o)}(e,n.updateLineNumbers,t.dims),c>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=L()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&x(document.body,e.anchorNode)&&x(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(l),I(n.cursorDiv),I(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,rA(e,400)),n.updateLineNumbers=null,!0}function aA(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=In(e))r&&(t.visible=Sr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+wn(e.display)-Sn(e),n.top)}),t.visible=Sr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!oA(e,t))break;_r(e);var A=Rr(e);gr(e),Pr(e,A),lA(e,A),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 sA(e,t){var n=new iA(e,t);if(oA(e,n)){_r(e),aA(e,n);var r=Rr(e);gr(e),Pr(e,r),lA(e,r),n.finish()}}function cA(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function lA(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+_n(e)+"px"}function uA(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=or(t)-t.scroller.scrollLeft+e.doc.scrollLeft,A=t.gutters.offsetWidth,i=r+"px",o=0;o<n.length;o++)if(!n[o].hidden){e.options.fixedGutter&&(n[o].gutter&&(n[o].gutter.style.left=i),n[o].gutterBackground&&(n[o].gutterBackground.style.left=i));var a=n[o].alignable;if(a)for(var s=0;s<a.length;s++)a[s].style.left=i}e.options.fixedGutter&&(t.gutters.style.left=r+A+"px")}}function fA(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=Ze(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var A=r.measure.appendChild(k("div",[k("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),i=A.firstChild.offsetWidth,o=A.offsetWidth-i;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(i,r.lineGutter.offsetWidth-o)+1,r.lineNumWidth=r.lineNumInnerWidth+o,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",cA(e.display),!0}return!1}function hA(e,t){for(var n=[],r=!1,A=0;A<e.length;A++){var i=e[A],o=null;if("string"!=typeof i&&(o=i.style,i=i.className),"CodeMirror-linenumbers"==i){if(!t)continue;r=!0}n.push({className:i,style:o})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function dA(e){var t=e.gutters,n=e.gutterSpecs;I(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var A=n[r],i=A.className,o=A.style,a=t.appendChild(k("div",null,"CodeMirror-gutter "+i));o&&(a.style.cssText=o),"CodeMirror-linenumbers"==i&&(e.lineGutter=a,a.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",cA(e)}function pA(e){dA(e.display),ur(e),uA(e)}function gA(e,t,r,A){var i=this;this.input=r,i.scrollbarFiller=k("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=k("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=F("div",null,"CodeMirror-code"),i.selectionDiv=k("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=k("div",null,"CodeMirror-cursors"),i.measure=k("div",null,"CodeMirror-measure"),i.lineMeasure=k("div",null,"CodeMirror-measure"),i.lineSpace=F("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var c=F("div",[i.lineSpace],"CodeMirror-lines");i.mover=k("div",[c],null,"position: relative"),i.sizer=k("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=k("div",null,null,"position: absolute; height: 50px; width: 1px;"),i.gutters=k("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=k("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=k("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),o&&a<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),s||n&&m||(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=hA(A.gutters,A.lineNumbers),dA(i),r.init(i)}iA.prototype.signal=function(e,t){me(e,t)&&this.events.push(arguments)},iA.prototype.finish=function(){for(var e=0;e<this.events.length;e++)de.apply(null,this.events[e])};var mA=0,vA=null;function BA(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function EA(e){var t=BA(e);return t.x*=vA,t.y*=vA,t}function yA(e,t){var r=BA(t),A=r.x,i=r.y,o=e.display,a=o.scroller,c=a.scrollWidth>a.clientWidth,l=a.scrollHeight>a.clientHeight;if(A&&c||i&&l){if(i&&v&&s)e:for(var f=t.target,h=o.view;f!=a;f=f.parentNode)for(var d=0;d<h.length;d++)if(h[d].node==f){e.display.currentWheelTarget=f;break e}if(A&&!n&&!u&&null!=vA)return i&&l&&Dr(e,Math.max(0,a.scrollTop+i*vA)),Qr(e,Math.max(0,a.scrollLeft+A*vA)),(!i||i&&l)&&Be(t),void(o.wheelStartX=null);if(i&&null!=vA){var p=i*vA,g=e.doc.scrollTop,m=g+o.wrapper.clientHeight;p<0?g=Math.max(0,g+p-50):m=Math.min(e.doc.height,m+p+50),sA(e,{top:g,bottom:m})}mA<20&&(null==o.wheelStartX?(o.wheelStartX=a.scrollLeft,o.wheelStartY=a.scrollTop,o.wheelDX=A,o.wheelDY=i,setTimeout((function(){if(null!=o.wheelStartX){var e=a.scrollLeft-o.wheelStartX,t=a.scrollTop-o.wheelStartY,n=t&&o.wheelDY&&t/o.wheelDY||e&&o.wheelDX&&e/o.wheelDX;o.wheelStartX=o.wheelStartY=null,n&&(vA=(vA*mA+n)/(mA+1),++mA)}}),200)):(o.wheelDX+=A,o.wheelDY+=i))}}o?vA=-.53:n?vA=15:l?vA=-.7:f&&(vA=-1/3);var CA=function(e,t){this.ranges=e,this.primIndex=t};CA.prototype.primary=function(){return this.ranges[this.primIndex]},CA.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!nt(n.anchor,r.anchor)||!nt(n.head,r.head))return!1}return!0},CA.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new bA(rt(this.ranges[t].anchor),rt(this.ranges[t].head));return new CA(e,this.primIndex)},CA.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},CA.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(tt(t,r.from())>=0&&tt(e,r.to())<=0)return n}return-1};var bA=function(e,t){this.anchor=e,this.head=t};function wA(e,t,n){var r=e&&e.options.selectionsMayTouch,A=t[n];t.sort((function(e,t){return tt(e.from(),t.from())})),n=H(t,A);for(var i=1;i<t.length;i++){var o=t[i],a=t[i-1],s=tt(a.to(),o.from());if(r&&!o.empty()?s>0:s>=0){var c=it(a.from(),o.from()),l=At(a.to(),o.to()),u=a.empty()?o.from()==o.head:a.from()==a.head;i<=n&&--n,t.splice(--i,2,new bA(u?l:c,u?c:l))}}return new CA(t,n)}function TA(e,t){return new CA([new bA(e,t||e)],0)}function _A(e){return e.text?et(e.from.line+e.text.length-1,Y(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function IA(e,t){if(tt(e,t.from)<0)return e;if(tt(e,t.to)<=0)return _A(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+=_A(t).ch-t.to.ch),et(n,r)}function SA(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var A=e.sel.ranges[r];n.push(new bA(IA(A.anchor,t),IA(A.head,t)))}return wA(e.cm,n,e.sel.primIndex)}function kA(e,t,n){return e.line==t.line?et(n.line,e.ch-t.ch+n.ch):et(n.line+(e.line-t.line),e.ch)}function FA(e){e.doc.mode=Me(e.options,e.doc.modeOption),xA(e)}function xA(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,rA(e,100),e.state.modeGen++,e.curOp&&ur(e)}function LA(e,t){return 0==t.from.ch&&0==t.to.ch&&""==Y(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function UA(e,t,n,r){function A(e){return n?n[e]:null}function i(e,n,A){!function(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),St(e),kt(e,n);var A=r?r(e):1;A!=e.height&&Xe(e,A)}(e,n,A,r),sn(e,"change",e,t)}function o(e,t){for(var n=[],i=e;i<t;++i)n.push(new Wt(c[i],A(i),r));return n}var a=t.from,s=t.to,c=t.text,l=We(e,a.line),u=We(e,s.line),f=Y(c),h=A(c.length-1),d=s.line-a.line;if(t.full)e.insert(0,o(0,c.length)),e.remove(c.length,e.size-c.length);else if(LA(e,t)){var p=o(0,c.length-1);i(u,u.text,h),d&&e.remove(a.line,d),p.length&&e.insert(a.line,p)}else if(l==u)if(1==c.length)i(l,l.text.slice(0,a.ch)+f+l.text.slice(s.ch),h);else{var g=o(1,c.length-1);g.push(new Wt(f+l.text.slice(s.ch),h,r)),i(l,l.text.slice(0,a.ch)+c[0],A(0)),e.insert(a.line+1,g)}else if(1==c.length)i(l,l.text.slice(0,a.ch)+c[0]+u.text.slice(s.ch),A(0)),e.remove(a.line+1,d);else{i(l,l.text.slice(0,a.ch)+c[0],A(0)),i(u,f+u.text.slice(s.ch),h);var m=o(1,c.length-1);d>1&&e.remove(a.line+1,d-1),e.insert(a.line+1,m)}sn(e,"change",e,t)}function NA(e,t,n){!function e(r,A,i){if(r.linked)for(var o=0;o<r.linked.length;++o){var a=r.linked[o];if(a.doc!=A){var s=i&&a.sharedHist;n&&!s||(t(a.doc,s),e(a.doc,r,s))}}}(e,null,!0)}function DA(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,sr(e),FA(e),OA(e),e.options.lineWrapping||Vt(e),e.options.mode=t.modeOption,ur(e)}function OA(e){("rtl"==e.doc.direction?U:_)(e.display.lineDiv,"CodeMirror-rtl")}function QA(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function RA(e,t){var n={from:rt(t.from),to:_A(t),text:je(e,t.from,t.to)};return GA(e,n,t.from.line,t.to.line+1),NA(e,(function(e){return GA(e,n,t.from.line,t.to.line+1)}),!0),n}function MA(e){for(;e.length&&Y(e).ranges;)e.pop()}function HA(e,t,n,r){var A=e.history;A.undone.length=0;var i,o,a=+new Date;if((A.lastOp==r||A.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&A.lastModTime>a-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(i=function(e,t){return t?(MA(e.done),Y(e.done)):e.done.length&&!Y(e.done).ranges?Y(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Y(e.done)):void 0}(A,A.lastOp==r)))o=Y(i.changes),0==tt(t.from,t.to)&&0==tt(t.from,o.to)?o.to=_A(t):i.changes.push(RA(e,t));else{var s=Y(A.done);for(s&&s.ranges||KA(e.sel,A.done),i={changes:[RA(e,t)],generation:A.generation},A.done.push(i);A.done.length>A.undoDepth;)A.done.shift(),A.done[0].ranges||A.done.shift()}A.done.push(n),A.generation=++A.maxGeneration,A.lastModTime=A.lastSelTime=a,A.lastOp=A.lastSelOp=r,A.lastOrigin=A.lastSelOrigin=t.origin,o||de(e,"historyAdded")}function PA(e,t,n,r){var A=e.history,i=r&&r.origin;n==A.lastSelOp||i&&A.lastSelOrigin==i&&(A.lastModTime==A.lastSelTime&&A.lastOrigin==i||function(e,t,n,r){var A=t.charAt(0);return"*"==A||"+"==A&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,i,Y(A.done),t))?A.done[A.done.length-1]=t:KA(t,A.done),A.lastSelTime=+new Date,A.lastSelOrigin=i,A.lastSelOp=n,r&&!1!==r.clearRedo&&MA(A.undone)}function KA(e,t){var n=Y(t);n&&n.ranges&&n.equals(e)||t.push(e)}function GA(e,t,n,r){var A=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((A||(A=t["spans_"+e.id]={}))[i]=n.markedSpans),++i}))}function $A(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function VA(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],A=0;A<t.text.length;++A)r.push($A(n[A]));return r}(e,t),r=_t(e,t);if(!n)return r;if(!r)return n;for(var A=0;A<n.length;++A){var i=n[A],o=r[A];if(i&&o)e:for(var a=0;a<o.length;++a){for(var s=o[a],c=0;c<i.length;++c)if(i[c].marker==s.marker)continue e;i.push(s)}else o&&(n[A]=o)}return n}function WA(e,t,n){for(var r=[],A=0;A<e.length;++A){var i=e[A];if(i.ranges)r.push(n?CA.prototype.deepCopy.call(i):i);else{var o=i.changes,a=[];r.push({changes:a});for(var s=0;s<o.length;++s){var c=o[s],l=void 0;if(a.push({from:c.from,to:c.to,text:c.text}),t)for(var u in c)(l=u.match(/^spans_(\d+)$/))&&H(t,Number(l[1]))>-1&&(Y(a)[u]=c[u],delete c[u])}}}return r}function jA(e,t,n,r){if(r){var A=e.anchor;if(n){var i=tt(t,A)<0;i!=tt(n,A)<0?(A=t,t=n):i!=tt(t,n)<0&&(t=n)}return new bA(A,t)}return new bA(n||t,t)}function YA(e,t,n,r,A){null==A&&(A=e.cm&&(e.cm.display.shift||e.extend)),ZA(e,new CA([jA(e.sel.primary(),t,n,A)],0),r)}function XA(e,t,n){for(var r=[],A=e.cm&&(e.cm.display.shift||e.extend),i=0;i<e.sel.ranges.length;i++)r[i]=jA(e.sel.ranges[i],t[i],null,A);ZA(e,wA(e.cm,r,e.sel.primIndex),n)}function zA(e,t,n,r){var A=e.sel.ranges.slice(0);A[t]=n,ZA(e,wA(e.cm,A,e.sel.primIndex),r)}function qA(e,t,n,r){ZA(e,TA(t,n),r)}function JA(e,t,n){var r=e.history.done,A=Y(r);A&&A.ranges?(r[r.length-1]=t,ei(e,t,n)):ZA(e,t,n)}function ZA(e,t,n){ei(e,t,n),PA(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function ei(e,t,n){(me(e,"beforeSelectionChange")||e.cm&&me(e.cm,"beforeSelectionChange"))&&(t=function(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new bA(at(e,t[n].anchor),at(e,t[n].head))},origin:n&&n.origin};return de(e,"beforeSelectionChange",e,r),e.cm&&de(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?wA(e.cm,r.ranges,r.ranges.length-1):t}(e,t,n));var r=n&&n.bias||(tt(t.primary().head,e.sel.primary().head)<0?-1:1);ti(e,ri(e,t,r,!0)),n&&!1===n.scroll||!e.cm||xr(e.cm)}function ti(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,ge(e.cm)),sn(e,"cursorActivity",e))}function ni(e){ti(e,ri(e,e.sel,null,!1))}function ri(e,t,n,r){for(var A,i=0;i<t.ranges.length;i++){var o=t.ranges[i],a=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[i],s=ii(e,o.anchor,a&&a.anchor,n,r),c=ii(e,o.head,a&&a.head,n,r);(A||s!=o.anchor||c!=o.head)&&(A||(A=t.ranges.slice(0,i)),A[i]=new bA(s,c))}return A?wA(e.cm,A,t.primIndex):t}function Ai(e,t,n,r,A){var i=We(e,t.line);if(i.markedSpans)for(var o=0;o<i.markedSpans.length;++o){var a=i.markedSpans[o],s=a.marker,c="selectLeft"in s?!s.selectLeft:s.inclusiveLeft,l="selectRight"in s?!s.selectRight:s.inclusiveRight;if((null==a.from||(c?a.from<=t.ch:a.from<t.ch))&&(null==a.to||(l?a.to>=t.ch:a.to>t.ch))){if(A&&(de(s,"beforeCursorEnter"),s.explicitlyCleared)){if(i.markedSpans){--o;continue}break}if(!s.atomic)continue;if(n){var u=s.find(r<0?1:-1),f=void 0;if((r<0?l:c)&&(u=oi(e,u,-r,u&&u.line==t.line?i:null)),u&&u.line==t.line&&(f=tt(u,n))&&(r<0?f<0:f>0))return Ai(e,u,t,r,A)}var h=s.find(r<0?-1:1);return(r<0?c:l)&&(h=oi(e,h,r,h.line==t.line?i:null)),h?Ai(e,h,t,r,A):null}}return t}function ii(e,t,n,r,A){var i=r||1,o=Ai(e,t,n,i,A)||!A&&Ai(e,t,n,i,!0)||Ai(e,t,n,-i,A)||!A&&Ai(e,t,n,-i,!0);return o||(e.cantEdit=!0,et(e.first,0))}function oi(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?at(e,et(t.line-1)):null:n>0&&t.ch==(r||We(e,t.line)).text.length?t.line<e.first+e.size-1?et(t.line+1,0):null:new et(t.line,t.ch+n)}function ai(e){e.setSelection(et(e.firstLine(),0),et(e.lastLine()),K)}function si(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,A,i){t&&(r.from=at(e,t)),n&&(r.to=at(e,n)),A&&(r.text=A),void 0!==i&&(r.origin=i)}),de(e,"beforeChange",e,r),e.cm&&de(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function ci(e,t,n){if(e.cm){if(!e.cm.curOp)return eA(e.cm,ci)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(me(e,"beforeChange")||e.cm&&me(e.cm,"beforeChange"))||(t=si(e,t,!0))){var r=yt&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=H(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var A=[{from:t,to:n}],i=0;i<r.length;++i)for(var o=r[i],a=o.find(0),s=0;s<A.length;++s){var c=A[s];if(!(tt(c.to,a.from)<0||tt(c.from,a.to)>0)){var l=[s,1],u=tt(c.from,a.from),f=tt(c.to,a.to);(u<0||!o.inclusiveLeft&&!u)&&l.push({from:c.from,to:a.from}),(f>0||!o.inclusiveRight&&!f)&&l.push({from:a.to,to:c.to}),A.splice.apply(A,l),s+=l.length-3}}return A}(e,t.from,t.to);if(r)for(var A=r.length-1;A>=0;--A)li(e,{from:r[A].from,to:r[A].to,text:A?[""]:t.text,origin:t.origin});else li(e,t)}}function li(e,t){if(1!=t.text.length||""!=t.text[0]||0!=tt(t.from,t.to)){var n=SA(e,t);HA(e,t,n,e.cm?e.cm.curOp.id:NaN),hi(e,t,n,_t(e,t));var r=[];NA(e,(function(e,n){n||-1!=H(r,e.history)||(mi(e.history,t),r.push(e.history)),hi(e,t,null,_t(e,t))}))}}function ui(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var A,i=e.history,o=e.sel,a="undo"==t?i.done:i.undone,s="undo"==t?i.undone:i.done,c=0;c<a.length&&(A=a[c],n?!A.ranges||A.equals(e.sel):A.ranges);c++);if(c!=a.length){for(i.lastOrigin=i.lastSelOrigin=null;;){if(!(A=a.pop()).ranges){if(r)return void a.push(A);break}if(KA(A,s),n&&!A.equals(e.sel))return void ZA(e,A,{clearRedo:!1});o=A}var l=[];KA(o,s),s.push({changes:l,generation:i.generation}),i.generation=A.generation||++i.maxGeneration;for(var u=me(e,"beforeChange")||e.cm&&me(e.cm,"beforeChange"),f=function(n){var r=A.changes[n];if(r.origin=t,u&&!si(e,r,!1))return a.length=0,{};l.push(RA(e,r));var i=n?SA(e,r):Y(a);hi(e,r,i,VA(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:_A(r)});var o=[];NA(e,(function(e,t){t||-1!=H(o,e.history)||(mi(e.history,r),o.push(e.history)),hi(e,r,null,VA(e,r))}))},h=A.changes.length-1;h>=0;--h){var d=f(h);if(d)return d.v}}}}function fi(e,t){if(0!=t&&(e.first+=t,e.sel=new CA(X(e.sel.ranges,(function(e){return new bA(et(e.anchor.line+t,e.anchor.ch),et(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){ur(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)fr(e.cm,r,"gutter")}}function hi(e,t,n,r){if(e.cm&&!e.cm.curOp)return eA(e.cm,hi)(e,t,n,r);if(t.to.line<e.first)fi(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var A=t.text.length-1-(e.first-t.from.line);fi(e,A),t={from:et(e.first,0),to:et(t.to.line+A,t.to.ch),text:[Y(t.text)],origin:t.origin}}var i=e.lastLine();t.to.line>i&&(t={from:t.from,to:et(i,We(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=je(e,t.from,t.to),n||(n=SA(e,t)),e.cm?function(e,t,n){var r=e.doc,A=e.display,i=t.from,o=t.to,a=!1,s=i.line;e.options.lineWrapping||(s=ze(Rt(We(r,i.line))),r.iter(s,o.line+1,(function(e){if(e==A.maxLine)return a=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&ge(e),UA(r,t,n,ar(e)),e.options.lineWrapping||(r.iter(s,i.line+t.text.length,(function(e){var t=$t(e);t>A.maxLineLength&&(A.maxLine=e,A.maxLineLength=t,A.maxLineChanged=!0,a=!1)})),a&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var A=We(e,r).stateAfter;if(A&&(!(A instanceof ct)||r+A.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}(r,i.line),rA(e,400);var c=t.text.length-(o.line-i.line)-1;t.full?ur(e):i.line!=o.line||1!=t.text.length||LA(e.doc,t)?ur(e,i.line,o.line+1,c):fr(e,i.line,"text");var l=me(e,"changes"),u=me(e,"change");if(u||l){var f={from:i,to:o,text:t.text,removed:t.removed,origin:t.origin};u&&sn(e,"change",e,f),l&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}(e.cm,t,r):UA(e,t,r),ei(e,n,K),e.cantEdit&&ii(e,et(e.firstLine(),0))&&(e.cantEdit=!1)}}function di(e,t,n,r,A){var i;r||(r=n),tt(r,n)<0&&(n=(i=[r,n])[0],r=i[1]),"string"==typeof t&&(t=e.splitLines(t)),ci(e,{from:n,to:r,text:t,origin:A})}function pi(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function gi(e,t,n,r){for(var A=0;A<e.length;++A){var i=e[A],o=!0;if(i.ranges){i.copied||((i=e[A]=i.deepCopy()).copied=!0);for(var a=0;a<i.ranges.length;a++)pi(i.ranges[a].anchor,t,n,r),pi(i.ranges[a].head,t,n,r)}else{for(var s=0;s<i.changes.length;++s){var c=i.changes[s];if(n<c.from.line)c.from=et(c.from.line+r,c.from.ch),c.to=et(c.to.line+r,c.to.ch);else if(t<=c.to.line){o=!1;break}}o||(e.splice(0,A+1),A=0)}}}function mi(e,t){var n=t.from.line,r=t.to.line,A=t.text.length-(r-n)-1;gi(e.done,n,r,A),gi(e.undone,n,r,A)}function vi(e,t,n,r){var A=t,i=t;return"number"==typeof t?i=We(e,ot(e,t)):A=ze(t),null==A?null:(r(i,A)&&e.cm&&fr(e.cm,A,n),i)}function Bi(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function Ei(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var A=e[r];t+=A.chunkSize(),n+=A.height,A.parent=this}this.size=t,this.height=n,this.parent=null}bA.prototype.from=function(){return it(this.anchor,this.head)},bA.prototype.to=function(){return At(this.anchor,this.head)},bA.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},Bi.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var A=this.lines[n];this.height-=A.height,jt(A),sn(A,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},Ei.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],A=r.chunkSize();if(e<A){var i=Math.min(t,A-e),o=r.height;if(r.removeInner(e,i),this.height-=o-r.height,A==i&&(this.children.splice(n--,1),r.parent=null),0==(t-=i))break;e=0}else e-=A}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Bi))){var a=[];this.collapse(a),this.children=[new Bi(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var A=this.children[r],i=A.chunkSize();if(e<=i){if(A.insertInner(e,t,n),A.lines&&A.lines.length>50){for(var o=A.lines.length%25+25,a=o;a<A.lines.length;){var s=new Bi(A.lines.slice(a,a+=25));A.height-=s.height,this.children.splice(++r,0,s),s.parent=this}A.lines=A.lines.slice(0,o),this.maybeSpill()}break}e-=i}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new Ei(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=H(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new Ei(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var A=this.children[r],i=A.chunkSize();if(e<i){var o=Math.min(t,i-e);if(A.iterN(e,o,n))return!0;if(0==(t-=o))break;e=0}else e-=i}}};var yi=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function Ci(e,t,n){Gt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Fr(e,n)}yi.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=ze(n);if(null!=r&&t){for(var A=0;A<t.length;++A)t[A]==this&&t.splice(A--,1);t.length||(n.widgets=null);var i=yn(this);Xe(n,Math.max(0,n.height-i)),e&&(Zr(e,(function(){Ci(e,n,-i),fr(e,r,"widget")})),sn(e,"lineWidgetCleared",e,this,r))}},yi.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var A=yn(this)-t;A&&(Pt(this.doc,r)||Xe(r,r.height+A),n&&Zr(n,(function(){n.curOp.forceUpdate=!0,Ci(n,r,A),sn(n,"lineWidgetChanged",n,e,ze(r))})))},ve(yi);var bi=0,wi=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++bi};function Ti(e,t,n,r,A){if(r&&r.shared)return function(e,t,n,r,A){(r=Q(r)).shared=!1;var i=[Ti(e,t,n,r,A)],o=i[0],a=r.widgetNode;return NA(e,(function(e){a&&(r.widgetNode=a.cloneNode(!0)),i.push(Ti(e,at(e,t),at(e,n),r,A));for(var s=0;s<e.linked.length;++s)if(e.linked[s].isParent)return;o=Y(i)})),new _i(i,o)}(e,t,n,r,A);if(e.cm&&!e.cm.curOp)return eA(e.cm,Ti)(e,t,n,r,A);var i=new wi(e,A),o=tt(t,n);if(r&&Q(r,i,!1),o>0||0==o&&!1!==i.clearWhenEmpty)return i;if(i.replacedWith&&(i.collapsed=!0,i.widgetNode=F("span",[i.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||i.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(i.widgetNode.insertLeft=!0)),i.collapsed){if(Qt(e,t.line,t,n,i)||t.line!=n.line&&Qt(e,n.line,t,n,i))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ct=!0}i.addToHistory&&HA(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var a,s=t.line,c=e.cm;if(e.iter(s,n.line+1,(function(e){c&&i.collapsed&&!c.options.lineWrapping&&Rt(e)==c.display.maxLine&&(a=!0),i.collapsed&&s!=t.line&&Xe(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new bt(i,s==t.line?t.ch:null,s==n.line?n.ch:null)),++s})),i.collapsed&&e.iter(t.line,n.line+1,(function(t){Pt(e,t)&&Xe(t,0)})),i.clearOnEnter&&ue(i,"beforeCursorEnter",(function(){return i.clear()})),i.readOnly&&(yt=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),i.collapsed&&(i.id=++bi,i.atomic=!0),c){if(a&&(c.curOp.updateMaxLine=!0),i.collapsed)ur(c,t.line,n.line+1);else if(i.className||i.startStyle||i.endStyle||i.css||i.attributes||i.title)for(var l=t.line;l<=n.line;l++)fr(c,l,"text");i.atomic&&ni(c.doc),sn(c,"markerAdded",c,i)}return i}wi.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Wr(e),me(this,"clear")){var n=this.find();n&&sn(this,"clear",n.from,n.to)}for(var r=null,A=null,i=0;i<this.lines.length;++i){var o=this.lines[i],a=wt(o.markedSpans,this);e&&!this.collapsed?fr(e,ze(o),"text"):e&&(null!=a.to&&(A=ze(o)),null!=a.from&&(r=ze(o))),o.markedSpans=Tt(o.markedSpans,a),null==a.from&&this.collapsed&&!Pt(this.doc,o)&&e&&Xe(o,rr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var s=0;s<this.lines.length;++s){var c=Rt(this.lines[s]),l=$t(c);l>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=l,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&ur(e,r,A+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&ni(e.doc)),e&&sn(e,"markerCleared",e,this,r,A),t&&jr(e),this.parent&&this.parent.clear()}},wi.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var A=0;A<this.lines.length;++A){var i=this.lines[A],o=wt(i.markedSpans,this);if(null!=o.from&&(n=et(t?i:ze(i),o.from),-1==e))return n;if(null!=o.to&&(r=et(t?i:ze(i),o.to),1==e))return r}return n&&{from:n,to:r}},wi.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Zr(r,(function(){var A=t.line,i=ze(t.line),o=xn(r,i);if(o&&(Rn(o),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Pt(n.doc,A)&&null!=n.height){var a=n.height;n.height=null;var s=yn(n)-a;s&&Xe(A,A.height+s)}sn(r,"markerChanged",r,e)}))},wi.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=H(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},wi.prototype.detachLine=function(e){if(this.lines.splice(H(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},ve(wi);var _i=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function Ii(e){return e.findMarks(et(e.first,0),e.clipPos(et(e.lastLine())),(function(e){return e.parent}))}function Si(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];NA(n.primary.doc,(function(e){return r.push(e)}));for(var A=0;A<n.markers.length;A++){var i=n.markers[A];-1==H(r,i.doc)&&(i.parent=null,n.markers.splice(A--,1))}},n=0;n<e.length;n++)t(n)}_i.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();sn(this,"clear")}},_i.prototype.find=function(e,t){return this.primary.find(e,t)},ve(_i);var ki=0,Fi=function(e,t,n,r,A){if(!(this instanceof Fi))return new Fi(e,t,n,r,A);null==n&&(n=0),Ei.call(this,[new Bi([new Wt("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var i=et(n,0);this.sel=TA(i),this.history=new QA(null),this.id=++ki,this.modeOption=t,this.lineSep=r,this.direction="rtl"==A?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),UA(this,{from:i,to:i,text:e}),ZA(this,TA(i),K)};Fi.prototype=q(Ei.prototype,{constructor:Fi,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Ye(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:nA((function(e){var t=et(this.first,0),n=this.first+this.size-1;ci(this,{from:t,to:et(n,We(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Lr(this.cm,0,0),ZA(this,TA(t),K)})),replaceRange:function(e,t,n,r){di(this,e,t=at(this,t),n=n?at(this,n):t,r)},getRange:function(e,t,n){var r=je(this,at(this,e),at(this,t));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Je(this,e))return We(this,e)},getLineNumber:function(e){return ze(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=We(this,e)),Rt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return at(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:nA((function(e,t,n){qA(this,at(this,"number"==typeof e?et(e,t||0):e),null,n)})),setSelection:nA((function(e,t,n){qA(this,at(this,e),at(this,t||e),n)})),extendSelection:nA((function(e,t,n){YA(this,at(this,e),t&&at(this,t),n)})),extendSelections:nA((function(e,t){XA(this,st(this,e),t)})),extendSelectionsBy:nA((function(e,t){XA(this,st(this,X(this.sel.ranges,e)),t)})),setSelections:nA((function(e,t,n){if(e.length){for(var r=[],A=0;A<e.length;A++)r[A]=new bA(at(this,e[A].anchor),at(this,e[A].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),ZA(this,wA(this.cm,r,t),n)}})),addSelection:nA((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new bA(at(this,e),at(this,t||e))),ZA(this,wA(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var A=je(this,n[r].from(),n[r].to());t=t?t.concat(A):A}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var A=je(this,n[r].from(),n[r].to());!1!==e&&(A=A.join(e||this.lineSeparator())),t[r]=A}return t},replaceSelection:function(e,t,n){for(var r=[],A=0;A<this.sel.ranges.length;A++)r[A]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:nA((function(e,t,n){for(var r=[],A=this.sel,i=0;i<A.ranges.length;i++){var o=A.ranges[i];r[i]={from:o.from(),to:o.to(),text:this.splitLines(e[i]),origin:n}}for(var a=t&&"end"!=t&&function(e,t,n){for(var r=[],A=et(e.first,0),i=A,o=0;o<t.length;o++){var a=t[o],s=kA(a.from,A,i),c=kA(_A(a),A,i);if(A=a.to,i=c,"around"==n){var l=e.sel.ranges[o],u=tt(l.head,l.anchor)<0;r[o]=new bA(u?c:s,u?s:c)}else r[o]=new bA(s,s)}return new CA(r,e.sel.primIndex)}(this,r,t),s=r.length-1;s>=0;s--)ci(this,r[s]);a?JA(this,a):this.cm&&xr(this.cm)})),undo:nA((function(){ui(this,"undo")})),redo:nA((function(){ui(this,"redo")})),undoSelection:nA((function(){ui(this,"undo",!0)})),redoSelection:nA((function(){ui(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.done.length;r++)e.done[r].ranges||++t;for(var A=0;A<e.undone.length;A++)e.undone[A].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new QA(this.history.maxGeneration),NA(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:WA(this.history.done),undone:WA(this.history.undone)}},setHistory:function(e){var t=this.history=new QA(this.history.maxGeneration);t.done=WA(e.done.slice(0),null,!0),t.undone=WA(e.undone.slice(0),null,!0)},setGutterMarker:nA((function(e,t,n){return vi(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&te(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:nA((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&vi(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,te(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!Je(this,e))return null;if(t=e,!(e=We(this,e)))return null}else if(null==(t=ze(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:nA((function(e,t,n){return vi(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(w(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:nA((function(e,t,n){return vi(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",A=e[r];if(!A)return!1;if(null==n)e[r]=null;else{var i=A.match(w(n));if(!i)return!1;var o=i.index+i[0].length;e[r]=A.slice(0,i.index)+(i.index&&o!=A.length?" ":"")+A.slice(o)||null}return!0}))})),addLineWidget:nA((function(e,t,n){return function(e,t,n,r){var A=new yi(e,n,r),i=e.cm;return i&&A.noHScroll&&(i.display.alignWidgets=!0),vi(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==A.insertAt?n.push(A):n.splice(Math.min(n.length-1,Math.max(0,A.insertAt)),0,A),A.line=t,i&&!Pt(e,t)){var r=Gt(t)<e.scrollTop;Xe(t,t.height+yn(A)),r&&Fr(i,A.height),i.curOp.forceUpdate=!0}return!0})),i&&sn(i,"lineWidgetAdded",i,A,"number"==typeof t?t:ze(t)),A}(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return Ti(this,at(this,e),at(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return Ti(this,e=at(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=We(this,(e=at(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var A=n[r];(null==A.from||A.from<=e.ch)&&(null==A.to||A.to>=e.ch)&&t.push(A.marker.parent||A.marker)}return t},findMarks:function(e,t,n){e=at(this,e),t=at(this,t);var r=[],A=e.line;return this.iter(e.line,t.line+1,(function(i){var o=i.markedSpans;if(o)for(var a=0;a<o.length;a++){var s=o[a];null!=s.to&&A==e.line&&e.ch>=s.to||null==s.from&&A!=e.line||null!=s.from&&A==t.line&&s.from>=t.ch||n&&!n(s.marker)||r.push(s.marker.parent||s.marker)}++A})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(A){var i=A.text.length+r;if(i>e)return t=e,!0;e-=i,++n})),at(this,et(n,t))},indexFromPos:function(e){var t=(e=at(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new Fi(Ye(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new Fi(Ye(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n],A=r.find(),i=e.clipPos(A.from),o=e.clipPos(A.to);if(tt(i,o)){var a=Ti(e,i,o,r.primary,r.primary.type);r.markers.push(a),a.parent=r}}}(r,Ii(this)),r},unlinkDoc:function(e){if(e instanceof Io&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Si(Ii(this));break}if(e.history==this.history){var n=[e.id];NA(e,(function(e){return n.push(e.id)}),!0),e.history=new QA(null),e.history.done=WA(this.history.done,n),e.history.undone=WA(this.history.undone,n)}},iterLinkedDocs:function(e){NA(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):xe(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:nA((function(e){var t;"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&Zr(t=this.cm,(function(){OA(t),ur(t)})))}))}),Fi.prototype.eachLine=Fi.prototype.iter;var xi=0;function Li(e){var t=this;if(Ui(t),!pe(t,e)&&!Cn(t.display,e)){Be(e),o&&(xi=+new Date);var n=cr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var A=r.length,i=Array(A),a=0,s=function(){++a==A&&eA(t,(function(){var e={from:n=at(t.doc,n),to:n,text:t.doc.splitLines(i.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};ci(t.doc,e),JA(t.doc,TA(at(t.doc,n),at(t.doc,_A(e))))}))()},c=function(e,n){if(t.options.allowDropFileTypes&&-1==H(t.options.allowDropFileTypes,e.type))s();else{var r=new FileReader;r.onerror=function(){return s()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(i[n]=e),s()},r.readAsText(e)}},l=0;l<r.length;l++)c(r[l],l);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-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()),ei(t.doc,TA(n,n)),f)for(var h=0;h<f.length;++h)di(t.doc,"",f[h].anchor,f[h].head,"drag");t.replaceSelection(u,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Ui(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Ni(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var A=t[r].CodeMirror;A&&n.push(A)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var Di=!1;function Oi(){var e;Di||(ue(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Ni(Qi)}),100))})),ue(window,"blur",(function(){return Ni(Tr)})),Di=!0)}function Qi(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Ri={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Mi=0;Mi<10;Mi++)Ri[Mi+48]=Ri[Mi+96]=String(Mi);for(var Hi=65;Hi<=90;Hi++)Ri[Hi]=String.fromCharCode(Hi);for(var Pi=1;Pi<=12;Pi++)Ri[Pi+111]=Ri[Pi+63235]="F"+Pi;var Ki={};function Gi(e){var t,n,r,A,i=e.split(/-(?!$)/);e=i[i.length-1];for(var o=0;o<i.length-1;o++){var a=i[o];if(/^(cmd|meta|m)$/i.test(a))A=!0;else if(/^a(lt)?$/i.test(a))t=!0;else if(/^(c|ctrl|control)$/i.test(a))n=!0;else{if(!/^s(hift)?$/i.test(a))throw new Error("Unrecognized modifier name: "+a);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),A&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function $i(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var A=X(n.split(" "),Gi),i=0;i<A.length;i++){var o=void 0,a=void 0;i==A.length-1?(a=A.join(" "),o=r):(a=A.slice(0,i+1).join(" "),o="...");var s=t[a];if(s){if(s!=o)throw new Error("Inconsistent bindings for "+a)}else t[a]=o}delete e[n]}for(var c in t)e[c]=t[c];return e}function Vi(e,t,n,r){var A=(t=Xi(t)).call?t.call(e,r):t[e];if(!1===A)return"nothing";if("..."===A)return"multi";if(null!=A&&n(A))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Vi(e,t.fallthrough,n,r);for(var i=0;i<t.fallthrough.length;i++){var o=Vi(e,t.fallthrough[i],n,r);if(o)return o}}}function Wi(e){var t="string"==typeof e?e:Ri[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function ji(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(C?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(C?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Yi(e,t){if(u&&34==e.keyCode&&e.char)return!1;var n=Ri[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),ji(n,e,t))}function Xi(e){return"string"==typeof e?Ki[e]:e}function zi(e,t){for(var n=e.doc.sel.ranges,r=[],A=0;A<n.length;A++){for(var i=t(n[A]);r.length&&tt(i.from,Y(r).to)<=0;){var o=r.pop();if(tt(o.from,i.from)<0){i.from=o.from;break}}r.push(i)}Zr(e,(function(){for(var t=r.length-1;t>=0;t--)di(e.doc,"",r[t].from,r[t].to,"+delete");xr(e)}))}function qi(e,t,n){var r=Ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ji(e,t,n){var r=qi(e,t.ch,n);return null==r?null:new et(t.line,r,n<0?"after":"before")}function Zi(e,t,n,r,A){if(e){"rtl"==t.doc.direction&&(A=-A);var i=ce(n,t.doc.direction);if(i){var o,a=A<0?Y(i):i[0],s=A<0==(1==a.level)?"after":"before";if(a.level>0||"rtl"==t.doc.direction){var c=Ln(t,n);o=A<0?n.text.length-1:0;var l=Un(t,c,o).top;o=ie((function(e){return Un(t,c,e).top==l}),A<0==(1==a.level)?a.from:a.to-1,o),"before"==s&&(o=qi(n,o,1))}else o=A<0?a.to:a.from;return new et(r,o,s)}}return new et(r,A<0?n.text.length:0,A<0?"before":"after")}Ki.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"},Ki.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"},Ki.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"},Ki.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"]},Ki.default=v?Ki.macDefault:Ki.pcDefault;var eo={selectAll:ai,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),K)},killLine:function(e){return zi(e,(function(t){if(t.empty()){var n=We(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:et(t.head.line+1,0)}:{from:t.head,to:et(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return zi(e,(function(t){return{from:et(t.from().line,0),to:at(e.doc,et(t.to().line+1,0))}}))},delLineLeft:function(e){return zi(e,(function(e){return{from:et(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return zi(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return zi(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(et(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(et(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return to(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return no(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return function(e,t){var n=We(e.doc,t),r=function(e){for(var t;t=Dt(e);)e=t.find(1,!0).line;return e}(n);return r!=n&&(t=ze(r)),Zi(!0,e,n,t,-1)}(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),$)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),$)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?no(e,t.head):r}),$)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,A=0;A<n.length;A++){var i=n[A].from(),o=R(e.getLine(i.line),i.ch,r);t.push(j(r-o%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Zr(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var A=t[r].head,i=We(e.doc,A.line).text;if(i)if(A.ch==i.length&&(A=new et(A.line,A.ch-1)),A.ch>0)A=new et(A.line,A.ch+1),e.replaceRange(i.charAt(A.ch-1)+i.charAt(A.ch-2),et(A.line,A.ch-2),A,"+transpose");else if(A.line>e.doc.first){var o=We(e.doc,A.line-1).text;o&&(A=new et(A.line,1),e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+o.charAt(o.length-1),et(A.line-1,o.length-1),A,"+transpose"))}n.push(new bA(A,A))}e.setSelections(n)}))},newlineAndIndent:function(e){return Zr(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<t.length;r++)e.indentLine(t[r].from().line,null,!0);xr(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function to(e,t){var n=We(e.doc,t),r=Rt(n);return r!=n&&(t=ze(r)),Zi(!0,e,r,t,1)}function no(e,t){var n=to(e,t.line),r=We(e.doc,n.line),A=ce(r,e.doc.direction);if(!A||0==A[0].level){var i=Math.max(n.ch,r.text.search(/\S/)),o=t.line==n.line&&t.ch<=i&&t.ch;return et(n.line,o?0:i,n.sticky)}return n}function ro(e,t,n){if("string"==typeof t&&!(t=eo[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,A=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),A=t(e)!=P}finally{e.display.shift=r,e.state.suppressEdits=!1}return A}var Ao=new M;function io(e,t,n,r){var A=e.state.keySeq;if(A){if(Wi(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Ao.set(50,(function(){e.state.keySeq==A&&(e.state.keySeq=null,e.display.input.reset())})),oo(e,A+" "+t,n,r))return!0}return oo(e,t,n,r)}function oo(e,t,n,r){var A=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var A=Vi(t,e.state.keyMaps[r],n,e);if(A)return A}return e.options.extraKeys&&Vi(t,e.options.extraKeys,n,e)||Vi(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==A&&(e.state.keySeq=t),"handled"==A&&sn(e,"keyHandled",e,t,n),"handled"!=A&&"multi"!=A||(Be(n),yr(e)),!!A}function ao(e,t){var n=Yi(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?io(e,"Shift-"+n,t,(function(t){return ro(e,t,!0)}))||io(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ro(e,t)})):io(e,n,t,(function(t){return ro(e,t)})))}var so=null;function co(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=L(),pe(t,e)))){o&&a<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var A=ao(t,e);u&&(so=A?r:null,A||88!=r||Ue||!(v?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!v&&!A&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(_(t,"CodeMirror-crosshair"),he(document,"keyup",n),he(document,"mouseover",n))}U(t,"CodeMirror-crosshair"),ue(document,"keyup",n),ue(document,"mouseover",n)}(t)}}function lo(e){16==e.keyCode&&(this.doc.sel.shift=!1),pe(this,e)}function uo(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||Cn(t.display,e)||pe(t,e)||e.ctrlKey&&!e.altKey||v&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(u&&n==so)return so=null,void Be(e);if(!u||e.which&&!(e.which<10)||!ao(t,e)){var A=String.fromCharCode(null==r?n:r);"\b"!=A&&(function(e,t,n){return io(e,"'"+n+"'",t,(function(t){return ro(e,t,!0)}))}(t,e,A)||t.display.input.onKeyPress(e))}}}var fo,ho,po=function(e,t,n){this.time=e,this.pos=t,this.button=n};function go(e){var t=this,n=t.display;if(!(pe(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Cn(n,e))s||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!Bo(t,e)){var r=cr(t,e),A=we(e),i=r?function(e,t){var n=+new Date;return ho&&ho.compare(n,e,t)?(fo=ho=null,"triple"):fo&&fo.compare(n,e,t)?(ho=new po(n,e,t),fo=null,"double"):(fo=new po(n,e,t),ho=null,"single")}(r,A):"single";window.focus(),1==A&&t.state.selectingText&&t.state.selectingText(e),r&&function(e,t,n,r,A){var i="Click";return"double"==r?i="Double"+i:"triple"==r&&(i="Triple"+i),io(e,ji(i=(1==t?"Left":2==t?"Middle":"Right")+i,A),A,(function(t){if("string"==typeof t&&(t=eo[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=P}finally{e.state.suppressEdits=!1}return r}))}(t,A,r,i,e)||(1==A?r?function(e,t,n,r){o?setTimeout(O(Cr,e),0):e.curOp.focus=L();var A,i=function(e,t,n){var r=e.getOption("configureMouse"),A=r?r(e,t,n):{};if(null==A.unit){var i=B?n.shiftKey&&n.metaKey:n.altKey;A.unit=i?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==A.extend||e.doc.extend)&&(A.extend=e.doc.extend||n.shiftKey),null==A.addNew&&(A.addNew=v?n.metaKey:n.ctrlKey),null==A.moveOnDrag&&(A.moveOnDrag=!(v?n.altKey:n.ctrlKey)),A}(e,n,r),c=e.doc.sel;e.options.dragDrop&&Ie&&!e.isReadOnly()&&"single"==n&&(A=c.contains(t))>-1&&(tt((A=c.ranges[A]).from(),t)<0||t.xRel>0)&&(tt(A.to(),t)>0||t.xRel<0)?function(e,t,n,r){var A=e.display,i=!1,c=eA(e,(function(t){s&&(A.scroller.draggable=!1),e.state.draggingText=!1,he(A.wrapper.ownerDocument,"mouseup",c),he(A.wrapper.ownerDocument,"mousemove",l),he(A.scroller,"dragstart",u),he(A.scroller,"drop",c),i||(Be(t),r.addNew||YA(e.doc,n,null,null,r.extend),s&&!f||o&&9==a?setTimeout((function(){A.wrapper.ownerDocument.body.focus({preventScroll:!0}),A.input.focus()}),20):A.input.focus())})),l=function(e){i=i||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},u=function(){return i=!0};s&&(A.scroller.draggable=!0),e.state.draggingText=c,c.copy=!r.moveOnDrag,A.scroller.dragDrop&&A.scroller.dragDrop(),ue(A.wrapper.ownerDocument,"mouseup",c),ue(A.wrapper.ownerDocument,"mousemove",l),ue(A.scroller,"dragstart",u),ue(A.scroller,"drop",c),br(e),setTimeout((function(){return A.input.focus()}),20)}(e,r,t,i):function(e,t,n,r){var A=e.display,i=e.doc;Be(t);var o,a,s=i.sel,c=s.ranges;if(r.addNew&&!r.extend?(a=i.sel.contains(n),o=a>-1?c[a]:new bA(n,n)):(o=i.sel.primary(),a=i.sel.primIndex),"rectangle"==r.unit)r.addNew||(o=new bA(n,n)),n=cr(e,t,!0,!0),a=-1;else{var l=mo(e,n,r.unit);o=r.extend?jA(o,l.anchor,l.head,r.extend):l}r.addNew?-1==a?(a=c.length,ZA(i,wA(e,c.concat([o]),a),{scroll:!1,origin:"*mouse"})):c.length>1&&c[a].empty()&&"char"==r.unit&&!r.extend?(ZA(i,wA(e,c.slice(0,a).concat(c.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),s=i.sel):zA(i,a,o,G):(a=0,ZA(i,new CA([o],0),G),s=i.sel);var u=n;function f(t){if(0!=tt(u,t))if(u=t,"rectangle"==r.unit){for(var A=[],c=e.options.tabSize,l=R(We(i,n.line).text,n.ch,c),f=R(We(i,t.line).text,t.ch,c),h=Math.min(l,f),d=Math.max(l,f),p=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));p<=g;p++){var m=We(i,p).text,v=V(m,h,c);h==d?A.push(new bA(et(p,v),et(p,v))):m.length>v&&A.push(new bA(et(p,v),et(p,V(m,d,c))))}A.length||A.push(new bA(n,n)),ZA(i,wA(e,s.ranges.slice(0,a).concat(A),a),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var B,E=o,y=mo(e,t,r.unit),C=E.anchor;tt(y.anchor,C)>0?(B=y.head,C=it(E.from(),y.anchor)):(B=y.anchor,C=At(E.to(),y.head));var b=s.ranges.slice(0);b[a]=function(e,t){var n=t.anchor,r=t.head,A=We(e.doc,n.line);if(0==tt(n,r)&&n.sticky==r.sticky)return t;var i=ce(A);if(!i)return t;var o=ae(i,n.ch,n.sticky),a=i[o];if(a.from!=n.ch&&a.to!=n.ch)return t;var s,c=o+(a.from==n.ch==(1!=a.level)?0:1);if(0==c||c==i.length)return t;if(r.line!=n.line)s=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var l=ae(i,r.ch,r.sticky),u=l-o||(r.ch-n.ch)*(1==a.level?-1:1);s=l==c-1||l==c?u<0:u>0}var f=i[c+(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 bA(new et(n.line,d,p),r)}(e,new bA(at(i,C),B)),ZA(i,wA(e,b,a),G)}}var h=A.wrapper.getBoundingClientRect(),d=0;function p(t){e.state.selectingText=!1,d=1/0,t&&(Be(t),A.input.focus()),he(A.wrapper.ownerDocument,"mousemove",g),he(A.wrapper.ownerDocument,"mouseup",m),i.history.lastSelOrigin=null}var g=eA(e,(function(t){0!==t.buttons&&we(t)?function t(n){var o=++d,a=cr(e,n,!0,"rectangle"==r.unit);if(a)if(0!=tt(a,u)){e.curOp.focus=L(),f(a);var s=Sr(A,i);(a.line>=s.to||a.line<s.from)&&setTimeout(eA(e,(function(){d==o&&t(n)})),150)}else{var c=n.clientY<h.top?-20:n.clientY>h.bottom?20:0;c&&setTimeout(eA(e,(function(){d==o&&(A.scroller.scrollTop+=c,t(n))})),50)}}(t):p(t)})),m=eA(e,p);e.state.selectingText=m,ue(A.wrapper.ownerDocument,"mousemove",g),ue(A.wrapper.ownerDocument,"mouseup",m)}(e,r,t,i)}(t,r,i,e):be(e)==n.scroller&&Be(e):2==A?(r&&YA(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==A&&(b?t.display.input.onContextMenu(e):br(t)))}}function mo(e,t,n){if("char"==n)return new bA(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new bA(et(t.line,0),at(e.doc,et(t.line+1,0)));var r=n(e,t);return new bA(r.from,r.to)}function vo(e,t,n,r){var A,i;if(t.touches)A=t.touches[0].clientX,i=t.touches[0].clientY;else try{A=t.clientX,i=t.clientY}catch(e){return!1}if(A>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Be(t);var o=e.display,a=o.lineDiv.getBoundingClientRect();if(i>a.bottom||!me(e,n))return ye(t);i-=a.top-o.viewOffset;for(var s=0;s<e.display.gutterSpecs.length;++s){var c=o.gutters.childNodes[s];if(c&&c.getBoundingClientRect().right>=A)return de(e,n,e,qe(e.doc,i),e.display.gutterSpecs[s].className,t),ye(t)}}function Bo(e,t){return vo(e,t,"gutterClick",!0)}function Eo(e,t){Cn(e.display,t)||function(e,t){return!!me(e,"gutterContextMenu")&&vo(e,t,"gutterContextMenu",!1)}(e,t)||pe(e,t,"contextmenu")||b||e.display.input.onContextMenu(t)}function yo(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Hn(e)}po.prototype.compare=function(e,t,n){return this.time+400>e&&0==tt(t,this.pos)&&n==this.button};var Co={toString:function(){return"CodeMirror.Init"}},bo={},wo={};function To(e,t,n){if(!t!=!(n&&n!=Co)){var r=e.display.dragFunctions,A=t?ue:he;A(e.display.scroller,"dragstart",r.start),A(e.display.scroller,"dragenter",r.enter),A(e.display.scroller,"dragover",r.over),A(e.display.scroller,"dragleave",r.leave),A(e.display.scroller,"drop",r.drop)}}function _o(e){e.options.lineWrapping?(U(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(_(e.display.wrapper,"CodeMirror-wrap"),Vt(e)),sr(e),ur(e),Hn(e),setTimeout((function(){return Pr(e)}),100)}function Io(e,t){var n=this;if(!(this instanceof Io))return new Io(e,t);this.options=t=t?Q(t):{},Q(bo,t,!1);var r=t.value;"string"==typeof r?r=new Fi(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var A=new Io.inputStyles[t.inputStyle](this),i=this.display=new gA(e,r,A,t);for(var c in i.wrapper.CodeMirror=this,yo(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),$r(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 M,keySeq:null,specialChars:null},t.autofocus&&!m&&i.input.focus(),o&&a<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(e){var t=e.display;ue(t.scroller,"mousedown",eA(e,go)),ue(t.scroller,"dblclick",o&&a<11?eA(e,(function(t){if(!pe(e,t)){var n=cr(e,t);if(n&&!Bo(e,t)&&!Cn(e.display,t)){Be(t);var r=e.findWordAt(n);YA(e.doc,r.anchor,r.head)}}})):function(t){return pe(e,t)||Be(t)}),ue(t.scroller,"contextmenu",(function(t){return Eo(e,t)})),ue(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||Eo(e,n)}));var n,r={end:0};function A(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function i(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}ue(t.scroller,"touchstart",(function(A){if(!pe(e,A)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(A)&&!Bo(e,A)){t.input.ensurePolled(),clearTimeout(n);var i=+new Date;t.activeTouch={start:i,moved:!1,prev:i-r.end<=300?r:null},1==A.touches.length&&(t.activeTouch.left=A.touches[0].pageX,t.activeTouch.top=A.touches[0].pageY)}})),ue(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),ue(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Cn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||i(r,r.prev)?new bA(a,a):!r.prev.prev||i(r,r.prev.prev)?e.findWordAt(a):new bA(et(a.line,0),at(e.doc,et(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Be(n)}A()})),ue(t.scroller,"touchcancel",A),ue(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(Dr(e,t.scroller.scrollTop),Qr(e,t.scroller.scrollLeft,!0),de(e,"scroll",e))})),ue(t.scroller,"mousewheel",(function(t){return yA(e,t)})),ue(t.scroller,"DOMMouseScroll",(function(t){return yA(e,t)})),ue(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){pe(e,t)||Ce(t)},over:function(t){pe(e,t)||(function(e,t){var n=cr(e,t);if(n){var r=document.createDocumentFragment();vr(e,n,r),e.display.dragCursor||(e.display.dragCursor=k("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),S(e.display.dragCursor,r)}}(e,t),Ce(t))},start:function(t){return function(e,t){if(o&&(!e.state.draggingText||+new Date-xi<100))Ce(t);else if(!pe(e,t)&&!Cn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!f)){var n=k("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",u&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),u&&n.parentNode.removeChild(n)}}(e,t)},drop:eA(e,Li),leave:function(t){pe(e,t)||Ui(e)}};var s=t.input.getField();ue(s,"keyup",(function(t){return lo.call(e,t)})),ue(s,"keydown",eA(e,co)),ue(s,"keypress",eA(e,uo)),ue(s,"focus",(function(t){return wr(e,t)})),ue(s,"blur",(function(t){return Tr(e,t)}))}(this),Oi(),Wr(this),this.curOp.forceUpdate=!0,DA(this,r),t.autofocus&&!m||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&wr(n)}),20):Tr(this),wo)wo.hasOwnProperty(c)&&wo[c](this,t[c],Co);fA(this),t.finishInit&&t.finishInit(this);for(var l=0;l<So.length;++l)So[l](this);jr(this),s&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(i.lineDiv).textRendering&&(i.lineDiv.style.textRendering="auto")}Io.defaults=bo,Io.optionHandlers=wo;var So=[];function ko(e,t,n,r){var A,i=e.doc;null==n&&(n="add"),"smart"==n&&(i.mode.indent?A=ht(e,t).state:n="prev");var o=e.options.tabSize,a=We(i,t),s=R(a.text,null,o);a.stateAfter&&(a.stateAfter=null);var c,l=a.text.match(/^\s*/)[0];if(r||/\S/.test(a.text)){if("smart"==n&&((c=i.mode.indent(A,a.text.slice(l.length),a.text))==P||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>i.first?R(We(i,t-1).text,null,o):0:"add"==n?c=s+e.options.indentUnit:"subtract"==n?c=s-e.options.indentUnit:"number"==typeof n&&(c=s+n),c=Math.max(0,c);var u="",f=0;if(e.options.indentWithTabs)for(var h=Math.floor(c/o);h;--h)f+=o,u+="\t";if(f<c&&(u+=j(c-f)),u!=l)return di(i,u,et(t,0),et(t,l.length),"+input"),a.stateAfter=null,!0;for(var d=0;d<i.sel.ranges.length;d++){var p=i.sel.ranges[d];if(p.head.line==t&&p.head.ch<l.length){var g=et(t,l.length);zA(i,d,new bA(g,g));break}}}Io.defineInitHook=function(e){return So.push(e)};var Fo=null;function xo(e){Fo=e}function Lo(e,t,n,r,A){var i=e.doc;e.display.shift=!1,r||(r=i.sel);var o=+new Date-200,a="paste"==A||e.state.pasteIncoming>o,s=xe(t),c=null;if(a&&r.ranges.length>1)if(Fo&&Fo.text.join("\n")==t){if(r.ranges.length%Fo.text.length==0){c=[];for(var l=0;l<Fo.text.length;l++)c.push(i.splitLines(Fo.text[l]))}}else s.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(c=X(s,(function(e){return[e]})));for(var u=e.curOp.updateInput,f=r.ranges.length-1;f>=0;f--){var h=r.ranges[f],d=h.from(),p=h.to();h.empty()&&(n&&n>0?d=et(d.line,d.ch-n):e.state.overwrite&&!a?p=et(p.line,Math.min(We(i,p.line).text.length,p.ch+Y(s).length)):a&&Fo&&Fo.lineWise&&Fo.text.join("\n")==s.join("\n")&&(d=p=et(d.line,0)));var g={from:d,to:p,text:c?c[f%c.length]:s,origin:A||(a?"paste":e.state.cutIncoming>o?"cut":"+input")};ci(e.doc,g),sn(e,"inputRead",e,g)}t&&!a&&No(e,t),xr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=u),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Uo(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Zr(t,(function(){return Lo(t,n,0,null,"paste")})),!0}function No(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var A=n.ranges[r];if(!(A.head.ch>100||r&&n.ranges[r-1].head.line==A.head.line)){var i=e.getModeAt(A.head),o=!1;if(i.electricChars){for(var a=0;a<i.electricChars.length;a++)if(t.indexOf(i.electricChars.charAt(a))>-1){o=ko(e,A.head.line,"smart");break}}else i.electricInput&&i.electricInput.test(We(e.doc,A.head.line).text.slice(0,A.head.ch))&&(o=ko(e,A.head.line,"smart"));o&&sn(e,"electricInput",e,A.head.line)}}}function Do(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var A=e.doc.sel.ranges[r].head.line,i={anchor:et(A,0),head:et(A+1,0)};n.push(i),t.push(e.getRange(i.anchor,i.head))}return{text:t,ranges:n}}function Oo(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function Qo(){var e=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=k("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return s?e.style.width="1000px":e.setAttribute("wrap","off"),p&&(e.style.border="1px solid black"),Oo(e),t}function Ro(e,t,n,r,A){var i=t,o=n,a=We(e,t.line),s=A&&"rtl"==e.direction?-n:n;function c(i){var o,c;if("codepoint"==r){var l=a.text.charCodeAt(t.ch+(r>0?0:-1));o=isNaN(l)?null:new et(t.line,Math.max(0,Math.min(a.text.length,t.ch+n*(l>=55296&&l<56320?2:1))),-n)}else o=A?function(e,t,n,r){var A=ce(t,e.doc.direction);if(!A)return Ji(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 i=ae(A,n.ch,n.sticky),o=A[i];if("ltr"==e.doc.direction&&o.level%2==0&&(r>0?o.to>n.ch:o.from<n.ch))return Ji(t,n,r);var a,s=function(e,n){return qi(t,e instanceof et?e.ch:e,n)},c=function(n){return e.options.lineWrapping?(a=a||Ln(e,t),Jn(e,t,a,n)):{begin:0,end:t.text.length}},l=c("before"==n.sticky?s(n,-1):n.ch);if("rtl"==e.doc.direction||1==o.level){var u=1==o.level==r<0,f=s(n,u?1:-1);if(null!=f&&(u?f<=o.to&&f<=l.end:f>=o.from&&f>=l.begin)){var h=u?"before":"after";return new et(n.line,f,h)}}var d=function(e,t,r){for(var i=function(e,t){return t?new et(n.line,s(e,1),"before"):new et(n.line,e,"after")};e>=0&&e<A.length;e+=t){var o=A[e],a=t>0==(1!=o.level),c=a?r.begin:s(r.end,-1);if(o.from<=c&&c<o.to)return i(c,a);if(c=a?o.from:s(o.to,-1),r.begin<=c&&c<r.end)return i(c,a)}},p=d(i+r,r,l);if(p)return p;var g=r>0?l.end:s(l.begin,-1);return null==g||r>0&&g==t.text.length||!(p=d(r>0?0:A.length-1,r,c(g)))?null:p}(e.cm,a,t,n):Ji(a,t,n);if(null==o){if(i||(c=t.line+s)<e.first||c>=e.first+e.size||(t=new et(c,t.ch,t.sticky),!(a=We(e,c))))return!1;t=Zi(A,e.cm,a,t.line,s)}else t=o;return!0}if("char"==r||"codepoint"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var l=null,u="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(n<0)||c(!h);h=!1){var d=a.text.charAt(t.ch)||"\n",p=ee(d,f)?"w":u&&"\n"==d?"n":!u||/\s/.test(d)?null:"p";if(!u||h||p||(p="s"),l&&l!=p){n<0&&(n=1,c(),t.sticky="after");break}if(p&&(l=p),n>0&&!c(!h))break}var g=ii(e,t,i,o,!0);return nt(i,g)&&(g.hitSide=!0),g}function Mo(e,t,n,r){var A,i,o=e.doc,a=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(s-.5*rr(e.display),3);A=(n>0?t.bottom:t.top)+n*c}else"line"==r&&(A=n>0?t.bottom+3:t.top-3);for(;(i=zn(e,a,A)).outside;){if(n<0?A<=0:A>=o.height){i.hitSide=!0;break}A+=5*n}return i}var Ho=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new M,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Po(e,t){var n=xn(e,t.line);if(!n||n.hidden)return null;var r=We(e.doc,t.line),A=kn(n,r,t.line),i=ce(r,e.doc.direction),o="left";i&&(o=ae(i,t.ch)%2?"right":"left");var a=On(A.map,t.ch,o);return a.offset="right"==a.collapse?a.end:a.start,a}function Ko(e,t){return t&&(e.bad=!0),e}function Go(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Ko(e.clipPos(et(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var A=0;A<e.display.view.length;A++){var i=e.display.view[A];if(i.node==r)return $o(i,t,n)}}function $o(e,t,n){var r=e.text.firstChild,A=!1;if(!t||!x(r,t))return Ko(et(ze(e.line),0),!0);if(t==r&&(A=!0,t=r.childNodes[n],n=0,!t)){var i=e.rest?Y(e.rest):e.line;return Ko(et(ze(i),i.text.length),A)}var o=3==t.nodeType?t:null,a=t;for(o||1!=t.childNodes.length||3!=t.firstChild.nodeType||(o=t.firstChild,n&&(n=o.nodeValue.length));a.parentNode!=r;)a=a.parentNode;var s=e.measure,c=s.maps;function l(t,n,r){for(var A=-1;A<(c?c.length:0);A++)for(var i=A<0?s.map:c[A],o=0;o<i.length;o+=3){var a=i[o+2];if(a==t||a==n){var l=ze(A<0?e.line:e.rest[A]),u=i[o]+r;return(r<0||a!=t)&&(u=i[o+(r?1:0)]),et(l,u)}}}var u=l(o,a,n);if(u)return Ko(u,A);for(var f=a.nextSibling,h=o?o.nodeValue.length-n:0;f;f=f.nextSibling){if(u=l(f,f.firstChild,0))return Ko(et(u.line,u.ch-h),A);h+=f.textContent.length}for(var d=a.previousSibling,p=n;d;d=d.previousSibling){if(u=l(d,d.firstChild,-1))return Ko(et(u.line,u.ch+p),A);p+=d.textContent.length}}Ho.prototype.init=function(e){var t=this,n=this,r=n.cm,A=n.div=e.lineDiv;function i(e){for(var t=e.target;t;t=t.parentNode){if(t==A)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function o(e){if(i(e)&&!pe(r,e)){if(r.somethingSelected())xo({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Do(r);xo({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,K),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var o=Fo.text.join("\n");if(e.clipboardData.setData("Text",o),e.clipboardData.getData("Text")==o)return void e.preventDefault()}var a=Qo(),s=a.firstChild;r.display.lineSpace.insertBefore(a,r.display.lineSpace.firstChild),s.value=Fo.text.join("\n");var c=document.activeElement;D(s),setTimeout((function(){r.display.lineSpace.removeChild(a),c.focus(),c==A&&n.showPrimarySelection()}),50)}}Oo(A,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),ue(A,"paste",(function(e){!i(e)||pe(r,e)||Uo(e,r)||a<=11&&setTimeout(eA(r,(function(){return t.updateFromDOM()})),20)})),ue(A,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),ue(A,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),ue(A,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),ue(A,"touchstart",(function(){return n.forceCompositionEnd()})),ue(A,"input",(function(){t.composing||t.readFromDOMSoon()})),ue(A,"copy",o),ue(A,"cut",o)},Ho.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ho.prototype.prepareSelection=function(){var e=mr(this.cm,!1);return e.focus=document.activeElement==this.div,e},Ho.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ho.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ho.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),A=r.from(),i=r.to();if(t.display.viewTo==t.display.viewFrom||A.line>=t.display.viewTo||i.line<t.display.viewFrom)e.removeAllRanges();else{var o=Go(t,e.anchorNode,e.anchorOffset),a=Go(t,e.focusNode,e.focusOffset);if(!o||o.bad||!a||a.bad||0!=tt(it(o,a),A)||0!=tt(At(o,a),i)){var s=t.display.view,c=A.line>=t.display.viewFrom&&Po(t,A)||{node:s[0].measure.map[2],offset:0},l=i.line<t.display.viewTo&&Po(t,i);if(!l){var u=s[s.length-1].measure,f=u.maps?u.maps[u.maps.length-1]:u.map;l={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(c&&l){var h,d=e.rangeCount&&e.getRangeAt(0);try{h=T(c.node,c.offset,l.offset,l.node)}catch(e){}h&&(!n&&t.state.focused?(e.collapse(c.node,c.offset),h.collapsed||(e.removeAllRanges(),e.addRange(h))):(e.removeAllRanges(),e.addRange(h)),d&&null==e.anchorNode?e.addRange(d):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Ho.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},Ho.prototype.showMultipleSelections=function(e){S(this.cm.display.cursorDiv,e.cursors),S(this.cm.display.selectionDiv,e.selection)},Ho.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ho.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return x(this.div,t)},Ho.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&document.activeElement==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ho.prototype.blur=function(){this.div.blur()},Ho.prototype.getField=function(){return this.div},Ho.prototype.supportsTouch=function(){return!0},Ho.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Zr(this.cm,(function(){return e.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}))},Ho.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ho.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(g&&l&&this.cm.display.gutterSpecs.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Go(t,e.anchorNode,e.anchorOffset),r=Go(t,e.focusNode,e.focusOffset);n&&r&&Zr(t,(function(){ZA(t.doc,TA(n,r),K),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},Ho.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,A=r.display,i=r.doc.sel.primary(),o=i.from(),a=i.to();if(0==o.ch&&o.line>r.firstLine()&&(o=et(o.line-1,We(r.doc,o.line-1).length)),a.ch==We(r.doc,a.line).text.length&&a.line<r.lastLine()&&(a=et(a.line+1,0)),o.line<A.viewFrom||a.line>A.viewTo-1)return!1;o.line==A.viewFrom||0==(e=lr(r,o.line))?(t=ze(A.view[0].line),n=A.view[0].node):(t=ze(A.view[e].line),n=A.view[e-1].node.nextSibling);var s,c,l=lr(r,a.line);if(l==A.view.length-1?(s=A.viewTo-1,c=A.lineDiv.lastChild):(s=ze(A.view[l+1].line)-1,c=A.view[l+1].node.previousSibling),!n)return!1;for(var u=r.doc.splitLines(function(e,t,n,r,A){var i="",o=!1,a=e.doc.lineSeparator(),s=!1;function c(){o&&(i+=a,s&&(i+=a),o=s=!1)}function l(e){e&&(c(),i+=e)}function u(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void l(n);var i,f=t.getAttribute("cm-marker");if(f){var h=e.findMarks(et(r,0),et(A+1,0),function(e){return function(t){return t.id==e}}(+f));return void(h.length&&(i=h[0].find(0))&&l(je(e.doc,i.from,i.to).join(a)))}if("false"==t.getAttribute("contenteditable"))return;var d=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;d&&c();for(var p=0;p<t.childNodes.length;p++)u(t.childNodes[p]);/^(pre|p)$/i.test(t.nodeName)&&(s=!0),d&&(o=!0)}else 3==t.nodeType&&l(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;u(t),t!=n;)t=t.nextSibling,s=!1;return i}(r,n,c,t,s)),f=je(r.doc,et(t,0),et(s,We(r.doc,s).text.length));u.length>1&&f.length>1;)if(Y(u)==Y(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);h<m&&p.charCodeAt(h)==g.charCodeAt(h);)++h;for(var v=Y(u),B=Y(f),E=Math.min(v.length-(1==u.length?h:0),B.length-(1==f.length?h:0));d<E&&v.charCodeAt(v.length-d-1)==B.charCodeAt(B.length-d-1);)++d;if(1==u.length&&1==f.length&&t==o.line)for(;h&&h>o.ch&&v.charCodeAt(v.length-d-1)==B.charCodeAt(B.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 y=et(t,h),C=et(s,f.length?Y(f).length-d:0);return u.length>1||u[0]||tt(y,C)?(di(r.doc,u,y,C,"+input"),!0):void 0},Ho.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ho.prototype.reset=function(){this.forceCompositionEnd()},Ho.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ho.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))},Ho.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Zr(this.cm,(function(){return ur(e.cm)}))},Ho.prototype.setUneditable=function(e){e.contentEditable="false"},Ho.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||eA(this.cm,Lo)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ho.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ho.prototype.onContextMenu=function(){},Ho.prototype.resetPosition=function(){},Ho.prototype.needsContentAttribute=!0;var Vo=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new M,this.hasSelection=!1,this.composing=null};Vo.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var A=this.textarea;function i(e){if(!pe(r,e)){if(r.somethingSelected())xo({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Do(r);xo({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,K):(n.prevInput="",A.value=t.text.join("\n"),D(A))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),p&&(A.style.width="0px"),ue(A,"input",(function(){o&&a>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),ue(A,"paste",(function(e){pe(r,e)||Uo(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),ue(A,"cut",i),ue(A,"copy",i),ue(e.scroller,"paste",(function(t){if(!Cn(e,t)&&!pe(r,t)){if(!A.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var i=new Event("paste");i.clipboardData=t.clipboardData,A.dispatchEvent(i)}})),ue(e.lineSpace,"selectstart",(function(t){Cn(e,t)||Be(t)})),ue(A,"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"})}})),ue(A,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Vo.prototype.createField=function(e){this.wrapper=Qo(),this.textarea=this.wrapper.firstChild},Vo.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Vo.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=mr(e);if(e.options.moveInputWithCursor){var A=jn(e,n.sel.primary().head,"div"),i=t.wrapper.getBoundingClientRect(),o=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,A.top+o.top-i.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,A.left+o.left-i.left))}return r},Vo.prototype.showSelection=function(e){var t=this.cm.display;S(t.cursorDiv,e.cursors),S(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Vo.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&&D(this.textarea),o&&a>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",o&&a>=9&&(this.hasSelection=null))}},Vo.prototype.getField=function(){return this.textarea},Vo.prototype.supportsTouch=function(){return!1},Vo.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!m||L()!=this.textarea))try{this.textarea.focus()}catch(e){}},Vo.prototype.blur=function(){this.textarea.blur()},Vo.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Vo.prototype.receivedFocus=function(){this.slowPoll()},Vo.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},Vo.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},Vo.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Le(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var A=n.value;if(A==r&&!t.somethingSelected())return!1;if(o&&a>=9&&this.hasSelection===A||v&&/[\uf700-\uf7ff]/.test(A))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var i=A.charCodeAt(0);if(8203!=i||r||(r=""),8666==i)return this.reset(),this.cm.execCommand("undo")}for(var s=0,c=Math.min(r.length,A.length);s<c&&r.charCodeAt(s)==A.charCodeAt(s);)++s;return Zr(t,(function(){Lo(t,A.slice(s),r.length-s,null,e.composing?"*compose":null),A.length>1e3||A.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=A,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Vo.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Vo.prototype.onKeyPress=function(){o&&a>=9&&(this.hasSelection=null),this.fastPoll()},Vo.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,A=t.textarea;t.contextMenuPending&&t.contextMenuPending();var i=cr(n,e),c=r.scroller.scrollTop;if(i&&!u){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(i)&&eA(n,ZA)(n.doc,TA(i),K);var l,f=A.style.cssText,h=t.wrapper.style.cssText,d=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",A.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: "+(o?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",s&&(l=window.scrollY),r.input.focus(),s&&window.scrollTo(null,l),r.input.reset(),n.somethingSelected()||(A.value=t.prevInput=" "),t.contextMenuPending=m,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),o&&a>=9&&g(),b){Ce(e);var p=function(){he(window,"mouseup",p),setTimeout(m,20)};ue(window,"mouseup",p)}else setTimeout(m,50)}function g(){if(null!=A.selectionStart){var e=n.somethingSelected(),i=""+(e?A.value:"");A.value="⇚",A.value=i,t.prevInput=e?"":"",A.selectionStart=1,A.selectionEnd=i.length,r.selForContextMenu=n.doc.sel}}function m(){if(t.contextMenuPending==m&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,A.style.cssText=f,o&&a<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=A.selectionStart)){(!o||o&&a<9)&&g();var e=0,i=function(){r.selForContextMenu==n.doc.sel&&0==A.selectionStart&&A.selectionEnd>0&&""==t.prevInput?eA(n,ai)(n):e++<10?r.detectingSelectAll=setTimeout(i,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(i,200)}}},Vo.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},Vo.prototype.setUneditable=function(){},Vo.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,A,i){e.defaults[n]=r,A&&(t[n]=i?function(e,t,n){n!=Co&&A(e,t,n)}:A)}e.defineOption=n,e.Init=Co,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,FA(e)}),!0),n("indentUnit",2,FA,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){xA(e),Hn(e),ur(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 A=0;;){var i=e.text.indexOf(t,A);if(-1==i)break;A=i+t.length,n.push(et(r,i))}r++}));for(var A=n.length-1;A>=0;A--)di(e.doc,t,n[A],et(n[A].line,n[A].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!=Co&&e.refresh()})),n("specialCharPlaceholder",Jt,(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",!E),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){yo(e),pA(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Xi(t),A=n!=Co&&Xi(n);A&&A.detach&&A.detach(e,r),r.attach&&r.attach(e,A||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,_o,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=hA(t,e.options.lineNumbers),pA(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?or(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return Pr(e)}),!0),n("scrollbarStyle","native",(function(e){$r(e),Pr(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=hA(e.options.gutters,t),pA(e)}),!0),n("firstLineNumber",1,pA,!0),n("lineNumberFormatter",(function(e){return e}),pA,!0),n("showCursorWhenSelecting",!1,gr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Tr(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,To),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,gr,!0),n("singleCursorHeightPerLine",!0,gr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,xA,!0),n("addModeClass",!1,xA,!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,xA,!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)}(Io),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,A=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&eA(this,t[e])(this,n,A),de(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Xi(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:tA((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");!function(e,t,n){for(var r=0,A=n(t);r<e.length&&n(e[r])<=A;)r++;e.splice(r,0,t)}(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,ur(this)})),removeOverlay:tA((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void ur(this)}})),indentLine:tA((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),Je(this.doc,e)&&ko(this,e,t,n)})),indentSelection:tA((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var A=t[r];if(A.empty())A.head.line>n&&(ko(this,A.head.line,e,!0),n=A.head.line,r==this.doc.sel.primIndex&&xr(this));else{var i=A.from(),o=A.to(),a=Math.max(n,i.line);n=Math.min(this.lastLine(),o.line-(o.ch?0:1))+1;for(var s=a;s<n;++s)ko(this,s,e);var c=this.doc.sel.ranges;0==i.ch&&t.length==c.length&&c[r].from().ch>0&&zA(this.doc,r,new bA(i,c[r].to()),K)}}})),getTokenAt:function(e,t){return vt(this,e,t)},getLineTokens:function(e,t){return vt(this,et(e),t,!0)},getTokenTypeAt:function(e){e=at(this.doc,e);var t,n=ft(this,We(this.doc,e.line)),r=0,A=(n.length-1)/2,i=e.ch;if(0==i)t=n[2];else for(;;){var o=r+A>>1;if((o?n[2*o-1]:0)>=i)A=o;else{if(!(n[2*o+1]<i)){t=n[2*o+2];break}r=o+1}}var a=t?t.indexOf("overlay "):-1;return a<0?t:0==a?null:t.slice(0,a-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var A=n[t],i=this.getModeAt(e);if("string"==typeof i[t])A[i[t]]&&r.push(A[i[t]]);else if(i[t])for(var o=0;o<i[t].length;o++){var a=A[i[t][o]];a&&r.push(a)}else i.helperType&&A[i.helperType]?r.push(A[i.helperType]):A[i.name]&&r.push(A[i.name]);for(var s=0;s<A._global.length;s++){var c=A._global[s];c.pred(i,this)&&-1==H(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(e,t){var n=this.doc;return ht(this,(e=ot(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return jn(this,null==e?n.head:"object"==typeof e?at(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Wn(this,at(this.doc,e),t||"page")},coordsChar:function(e,t){return zn(this,(e=Vn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Vn(this,{top:e,left:0},t||"page").top,qe(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,A=!1;if("number"==typeof e){var i=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>i&&(e=i,A=!0),r=We(this.doc,e)}else r=e;return $n(this,r,{top:0,left:0},t||"page",n||A).top+(A?this.doc.height-Gt(r):0)},defaultTextHeight:function(){return rr(this.display)},defaultCharWidth:function(){return Ar(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,A){var i,o,a,s=this.display,c=(e=jn(this,at(this.doc,e))).bottom,l=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),s.sizer.appendChild(t),"over"==r)c=e.top;else if("above"==r||"near"==r){var u=Math.max(s.wrapper.clientHeight,this.doc.height),f=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>u)&&e.top>t.offsetHeight?c=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=u&&(c=e.bottom),l+t.offsetWidth>f&&(l=f-t.offsetWidth)}t.style.top=c+"px",t.style.left=t.style.right="","right"==A?(l=s.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==A?l=0:"middle"==A&&(l=(s.sizer.clientWidth-t.offsetWidth)/2),t.style.left=l+"px"),n&&(i=this,o={left:l,top:c,right:l+t.offsetWidth,bottom:c+t.offsetHeight},null!=(a=kr(i,o)).scrollTop&&Dr(i,a.scrollTop),null!=a.scrollLeft&&Qr(i,a.scrollLeft))},triggerOnKeyDown:tA(co),triggerOnKeyPress:tA(uo),triggerOnKeyUp:lo,triggerOnMouseDown:tA(go),execCommand:function(e){if(eo.hasOwnProperty(e))return eo[e].call(null,this)},triggerElectric:tA((function(e){No(this,e)})),findPosH:function(e,t,n,r){var A=1;t<0&&(A=-1,t=-t);for(var i=at(this.doc,e),o=0;o<t&&!(i=Ro(this.doc,i,A,n,r)).hitSide;++o);return i},moveH:tA((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Ro(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),$)})),deleteH:tA((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):zi(this,(function(n){var A=Ro(r,n.head,e,t,!1);return e<0?{from:A,to:n.head}:{from:n.head,to:A}}))})),findPosV:function(e,t,n,r){var A=1,i=r;t<0&&(A=-1,t=-t);for(var o=at(this.doc,e),a=0;a<t;++a){var s=jn(this,o,"div");if(null==i?i=s.left:s.left=i,(o=Mo(this,s,A,n)).hitSide)break}return o},moveV:tA((function(e,t){var n=this,r=this.doc,A=[],i=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(o){if(i)return e<0?o.from():o.to();var a=jn(n,o.head,"div");null!=o.goalColumn&&(a.left=o.goalColumn),A.push(a.left);var s=Mo(n,a,e,t);return"page"==t&&o==r.sel.primary()&&Fr(n,Wn(n,s,"div").top-a.top),s}),$),A.length)for(var o=0;o<r.sel.ranges.length;o++)r.sel.ranges[o].goalColumn=A[o]})),findWordAt:function(e){var t=We(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var A=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var i=t.charAt(n),o=ee(i,A)?function(e){return ee(e,A)}:/\s/.test(i)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ee(e)};n>0&&o(t.charAt(n-1));)--n;for(;r<t.length&&o(t.charAt(r));)++r}return new bA(et(e.line,n),et(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?U(this.display.cursorDiv,"CodeMirror-overwrite"):_(this.display.cursorDiv,"CodeMirror-overwrite"),de(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==L()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:tA((function(e,t){Lr(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-_n(this)-this.display.barHeight,width:e.scrollWidth-_n(this)-this.display.barWidth,clientHeight:Sn(this),clientWidth:In(this)}},scrollIntoView:tA((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:et(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){Ur(e),e.curOp.scrollToPos=t}(this,e):Nr(this,e.from,e.to,e.margin)})),setSize:tA((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&Mn(this);var A=this.display.viewFrom;this.doc.iter(A,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){fr(n,A,"widget");break}++A})),this.curOp.forceUpdate=!0,de(this,"refresh",this)})),operation:function(e){return Zr(this,e)},startOperation:function(){return Wr(this)},endOperation:function(){return jr(this)},refresh:tA((function(){var e=this.display.cachedTextHeight;ur(this),this.curOp.forceUpdate=!0,Hn(this),Lr(this,this.doc.scrollLeft,this.doc.scrollTop),cA(this.display),(null==e||Math.abs(e-rr(this.display))>.5||this.options.lineWrapping)&&sr(this),de(this,"refresh",this)})),swapDoc:tA((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),DA(this,e),Hn(this),this.display.input.reset(),Lr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,sn(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}},ve(e),e.registerHelper=function(t,r,A){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=A},e.registerGlobalHelper=function(t,r,A,i){e.registerHelper(t,r,i),n[t]._global.push({pred:A,val:i})}}(Io);var Wo="iter insert remove copy getEditor constructor".split(" ");for(var jo in Fi.prototype)Fi.prototype.hasOwnProperty(jo)&&H(Wo,jo)<0&&(Io.prototype[jo]=function(e){return function(){return e.apply(this.doc,arguments)}}(Fi.prototype[jo]));return ve(Fi),Io.inputStyles={textarea:Vo,contenteditable:Ho},Io.defineMode=function(e){Io.defaults.mode||"null"==e||(Io.defaults.mode=e),Qe.apply(this,arguments)},Io.defineMIME=function(e,t){Oe[e]=t},Io.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Io.defineMIME("text/plain","null"),Io.defineExtension=function(e,t){Io.prototype[e]=t},Io.defineDocExtension=function(e,t){Fi.prototype[e]=t},Io.fromTextArea=function(e,t){if((t=t?Q(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=L();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=a.getValue()}var A;if(e.form&&(ue(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var i=e.form;A=i.submit;try{var o=i.submit=function(){r(),i.submit=A,i.submit(),i.submit=o}}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&&(he(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=A))}},e.style.display="none";var a=Io((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return a},function(e){e.off=he,e.on=ue,e.wheelEventPixels=EA,e.Doc=Fi,e.splitLines=xe,e.countColumn=R,e.findColumn=V,e.isWordChar=Z,e.Pass=P,e.signal=de,e.Line=Wt,e.changeEnd=_A,e.scrollbarModel=Gr,e.Pos=et,e.cmpPos=tt,e.modes=De,e.mimeModes=Oe,e.resolveMode=Re,e.getMode=Me,e.modeExtensions=He,e.extendMode=Pe,e.copyState=Ke,e.startState=$e,e.innerMode=Ge,e.commands=eo,e.keyMap=Ki,e.keyName=Yi,e.isModifierKey=Wi,e.lookupKey=Vi,e.normalizeKeyMap=$i,e.StringStream=Ve,e.SharedTextMarker=_i,e.TextMarker=wi,e.LineWidget=yi,e.e_preventDefault=Be,e.e_stopPropagation=Ee,e.e_stop=Ce,e.addClass=U,e.contains=x,e.rmClass=_,e.keyNames=Ri}(Io),Io.version="5.58.2",Io}()})),kc=(r((function(e,t){var n,r,A;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},A={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1},(n=Sc).defineMode("xml",(function(e,t){var i,o,a=e.indentUnit,s={},c=t.htmlMode?r:A;for(var l in c)s[l]=c[l];for(var l in t)s[l]=t[l];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(h("atom","]]>")):null:e.match("--")?n(h("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(function e(t){return function(n,r){for(var A;null!=(A=n.next());){if("<"==A)return r.tokenize=e(t+1),r.tokenize(n,r);if(">"==A){if(1==t){r.tokenize=u;break}return r.tokenize=e(t-1),r.tokenize(n,r)}}return"meta"}}(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=h("meta","?>"),"meta"):(i=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,r,A=e.next();if(">"==A||"/"==A&&e.eat(">"))return t.tokenize=u,i=">"==A?"endTag":"selfcloseTag","tag bracket";if("="==A)return i="equals",null;if("<"==A){t.tokenize=u,t.state=m,t.tagName=t.tagStart=null;var o=t.tokenize(e,t);return o?o+" tag error":"tag error"}return/[\'\"]/.test(A)?(t.tokenize=(n=A,(r=function(e,t){for(;!e.eol();)if(e.next()==n){t.tokenize=f;break}return"string"}).isInAttribute=!0,r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function h(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=u;break}n.next()}return e}}function d(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 p(e){e.context&&(e.context=e.context.prev)}function g(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!s.contextGrabbers.hasOwnProperty(n)||!s.contextGrabbers[n].hasOwnProperty(t))return;p(e)}}function m(e,t,n){return"openTag"==e?(n.tagStart=t.column(),v):"closeTag"==e?B:m}function v(e,t,n){return"word"==e?(n.tagName=t.current(),o="tag",C):s.allowMissingTagName&&"endTag"==e?(o="tag bracket",C(e,0,n)):(o="error",v)}function B(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&s.implicitlyClosed.hasOwnProperty(n.context.tagName)&&p(n),n.context&&n.context.tagName==r||!1===s.matchClosing?(o="tag",E):(o="tag error",y)}return s.allowMissingTagName&&"endTag"==e?(o="tag bracket",E(e,0,n)):(o="error",y)}function E(e,t,n){return"endTag"!=e?(o="error",E):(p(n),m)}function y(e,t,n){return o="error",E(e,0,n)}function C(e,t,n){if("word"==e)return o="attribute",b;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,A=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||s.autoSelfClosers.hasOwnProperty(r)?g(n,r):(g(n,r),n.context=new d(n,r,A==n.indented)),m}return o="error",C}function b(e,t,n){return"equals"==e?w:(s.allowMissing||(o="error"),C(e,0,n))}function w(e,t,n){return"string"==e?T:"word"==e&&s.allowUnquoted?(o="string",C):(o="error",C(e,0,n))}function T(e,t,n){return"string"==e?T:C(e,0,n)}return u.isInText=!0,{startState:function(e){var t={tokenize:u,state:m,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;i=null;var n=t.tokenize(e,t);return(n||i)&&"comment"!=n&&(o=null,t.state=t.state(i||n,e,t),o&&(n="error"==o?n+" error":o)),n},indent:function(e,t,r){var A=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+a;if(A&&A.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&&/<!\[CDATA\[/.test(t))return 0;var i=t&&/^<(\/)?([\w_:\.-]*)/.exec(t);if(i&&i[1])for(;A;){if(A.tagName==i[2]){A=A.prev;break}if(!s.implicitlyClosed.hasOwnProperty(A.tagName))break;A=A.prev}else if(i)for(;A;){var o=s.contextGrabbers[A.tagName];if(!o||!o.hasOwnProperty(i[2]))break;A=A.prev}for(;A&&A.prev&&!A.startOfLine;)A=A.prev;return A?A.indent+a:e.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:s.htmlMode?"html":"xml",helperType:s.htmlMode?"html":"xml",skipAttribute:function(e){e.state==w&&(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<e.modeInfo.length;t++){var n=e.modeInfo[t];n.mimes&&(n.mime=n.mimes[0])}e.findModeByMIME=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.mime==t)return r;if(r.mimes)for(var A=0;A<r.mimes.length;A++)if(r.mimes[A]==t)return r}return/\+xml$/.test(t)?e.findModeByMIME("application/xml"):/\+json$/.test(t)?e.findModeByMIME("application/json"):void 0},e.findModeByExtension=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.ext)for(var A=0;A<r.ext.length;A++)if(r.ext[A]==t)return r}},e.findModeByFileName=function(t){for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.file&&r.file.test(t))return r}var A=t.lastIndexOf("."),i=A>-1&&t.substring(A+1,t.length);if(i)return e.findModeByExtension(i)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.name.toLowerCase()==t)return r;if(r.alias)for(var A=0;A<r.alias.length;A++)if(r.alias[A].toLowerCase()==t)return r}}}(Sc)})),r((function(e,t){var n;(n=Sc).defineMode("markdown",(function(e,t){var r=n.getMode(e,"text/html"),A="null"==r.name;void 0===t.highlightFormatting&&(t.highlightFormatting=!1),void 0===t.maxBlockquoteDepth&&(t.maxBlockquoteDepth=0),void 0===t.taskLists&&(t.taskLists=!1),void 0===t.strikethrough&&(t.strikethrough=!1),void 0===t.emoji&&(t.emoji=!1),void 0===t.fencedCodeBlockHighlighting&&(t.fencedCodeBlockHighlighting=!0),void 0===t.fencedCodeBlockDefaultMode&&(t.fencedCodeBlockDefaultMode="text/plain"),void 0===t.xml&&(t.xml=!0),void 0===t.tokenTypeOverrides&&(t.tokenTypeOverrides={});var i={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var o in i)i.hasOwnProperty(o)&&t.tokenTypeOverrides[o]&&(i[o]=t.tokenTypeOverrides[o]);var a=/^([*\-_])(?:\s*\1){2,}\s*$/,s=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,c=/^\[(x| )\](?=\s)/i,l=t.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,u=/^ {0,3}(?:\={1,}|-{2,})\s*$/,f=/^[^#!\[\]*_\\<>` "'(~:]+/,h=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,d=/^\s*\[[^\]]+?\]:.*$/,p=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/;function g(e,t,n){return t.f=t.inline=n,n(e,t)}function m(e,t,n){return t.f=t.block=n,n(e,t)}function v(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==E){var t=A;if(!t){var i=n.innerMode(r,e.htmlState);t="xml"==i.mode.name&&null===i.state.tagStart&&!i.state.context&&i.state.tokenize.isInText}t&&(e.f=w,e.block=B,e.htmlState=null)}return e.trailingSpace=0,e.trailingSpaceNewLine=!1,e.prevLine=e.thisLine,e.thisLine={stream:null},null}function B(r,A){var o,f=r.column()===A.indentation,p=!(o=A.prevLine.stream)||!/\S/.test(o.string),m=A.indentedCode,v=A.prevLine.hr,B=!1!==A.list,E=(A.listStack[A.listStack.length-1]||0)+3;A.indentedCode=!1;var b=A.indentation;if(null===A.indentationDiff&&(A.indentationDiff=A.indentation,B)){for(A.list=null;b<A.listStack[A.listStack.length-1];)A.listStack.pop(),A.listStack.length?A.indentation=A.listStack[A.listStack.length-1]:A.list=!1;!1!==A.list&&(A.indentationDiff=b-A.listStack[A.listStack.length-1])}var w=!(p||v||A.prevLine.header||B&&m||A.prevLine.fencedCodeEnd),T=(!1===A.list||v||p)&&A.indentation<=E&&r.match(a),_=null;if(A.indentationDiff>=4&&(m||A.prevLine.fencedCodeEnd||A.prevLine.header||p))return r.skipToEnd(),A.indentedCode=!0,i.code;if(r.eatSpace())return null;if(f&&A.indentation<=E&&(_=r.match(l))&&_[1].length<=6)return A.quote=0,A.header=_[1].length,A.thisLine.header=!0,t.highlightFormatting&&(A.formatting="header"),A.f=A.inline,C(A);if(A.indentation<=E&&r.eat(">"))return A.quote=f?1:A.quote+1,t.highlightFormatting&&(A.formatting="quote"),r.eatSpace(),C(A);if(!T&&!A.setext&&f&&A.indentation<=E&&(_=r.match(s))){var I=_[1]?"ol":"ul";return A.indentation=b+r.current().length,A.list=!0,A.quote=0,A.listStack.push(A.indentation),A.em=!1,A.strong=!1,A.code=!1,A.strikethrough=!1,t.taskLists&&r.match(c,!1)&&(A.taskList=!0),A.f=A.inline,t.highlightFormatting&&(A.formatting=["list","list-"+I]),C(A)}return f&&A.indentation<=E&&(_=r.match(h,!0))?(A.quote=0,A.fencedEndRE=new RegExp(_[1]+"+ *$"),A.localMode=t.fencedCodeBlockHighlighting&&function(t){if(n.findModeByName){var r=n.findModeByName(t);r&&(t=r.mime||r.mimes[0])}var A=n.getMode(e,t);return"null"==A.name?null:A}(_[2]||t.fencedCodeBlockDefaultMode),A.localMode&&(A.localState=n.startState(A.localMode)),A.f=A.block=y,t.highlightFormatting&&(A.formatting="code-block"),A.code=-1,C(A)):A.setext||!(w&&B||A.quote||!1!==A.list||A.code||T||d.test(r.string))&&(_=r.lookAhead(1))&&(_=_.match(u))?(A.setext?(A.header=A.setext,A.setext=0,r.skipToEnd(),t.highlightFormatting&&(A.formatting="header")):(A.header="="==_[0].charAt(0)?1:2,A.setext=A.header),A.thisLine.header=!0,A.f=A.inline,C(A)):T?(r.skipToEnd(),A.hr=!0,A.thisLine.hr=!0,i.hr):"["===r.peek()?g(r,A,S):g(r,A,A.inline)}function E(e,t){var i=r.token(e,t.htmlState);if(!A){var o=n.innerMode(r,t.htmlState);("xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText||t.md_inside&&e.current().indexOf(">")>-1)&&(t.f=w,t.block=B,t.htmlState=null)}return i}function y(e,n){var r,A=n.listStack[n.listStack.length-1]||0,o=n.indentation<A,a=A+3;return n.fencedEndRE&&n.indentation<=a&&(o||e.match(n.fencedEndRE))?(t.highlightFormatting&&(n.formatting="code-block"),o||(r=C(n)),n.localMode=n.localState=null,n.block=B,n.f=w,n.fencedEndRE=null,n.code=0,n.thisLine.fencedCodeEnd=!0,o?m(e,n,n.block):r):n.localMode?n.localMode.token(e,n.localState):(e.skipToEnd(),i.code)}function C(e){var n=[];if(e.formatting){n.push(i.formatting),"string"==typeof e.formatting&&(e.formatting=[e.formatting]);for(var r=0;r<e.formatting.length;r++)n.push(i.formatting+"-"+e.formatting[r]),"header"===e.formatting[r]&&n.push(i.formatting+"-"+e.formatting[r]+"-"+e.header),"quote"===e.formatting[r]&&(!t.maxBlockquoteDepth||t.maxBlockquoteDepth>=e.quote?n.push(i.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(i.linkHref,"url"):(e.strong&&n.push(i.strong),e.em&&n.push(i.em),e.strikethrough&&n.push(i.strikethrough),e.emoji&&n.push(i.emoji),e.linkText&&n.push(i.linkText),e.code&&n.push(i.code),e.image&&n.push(i.image),e.imageAltText&&n.push(i.imageAltText,"link"),e.imageMarker&&n.push(i.imageMarker)),e.header&&n.push(i.header,i.header+"-"+e.header),e.quote&&(n.push(i.quote),!t.maxBlockquoteDepth||t.maxBlockquoteDepth>=e.quote?n.push(i.quote+"-"+e.quote):n.push(i.quote+"-"+t.maxBlockquoteDepth)),!1!==e.list){var A=(e.listStack.length-1)%3;A?1===A?n.push(i.list2):n.push(i.list3):n.push(i.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 b(e,t){if(e.match(f,!0))return C(t)}function w(e,A){var o=A.text(e,A);if(void 0!==o)return o;if(A.list)return A.list=null,C(A);if(A.taskList)return" "===e.match(c,!0)[1]?A.taskOpen=!0:A.taskClosed=!0,t.highlightFormatting&&(A.formatting="task"),A.taskList=!1,C(A);if(A.taskOpen=!1,A.taskClosed=!1,A.header&&e.match(/^#+$/,!0))return t.highlightFormatting&&(A.formatting="header"),C(A);var a=e.next();if(A.linkTitle){A.linkTitle=!1;var s=a;"("===a&&(s=")");var l="^\\s*(?:[^"+(s=(s+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+s;if(e.match(new RegExp(l),!0))return i.linkHref}if("`"===a){var u=A.formatting;t.highlightFormatting&&(A.formatting="code"),e.eatWhile("`");var f=e.current().length;if(0!=A.code||A.quote&&1!=f){if(f==A.code){var h=C(A);return A.code=0,h}return A.formatting=u,C(A)}return A.code=f,C(A)}if(A.code)return C(A);if("\\"===a&&(e.next(),t.highlightFormatting)){var d=C(A),g=i.formatting+"-escape";return d?d+" "+g:g}if("!"===a&&e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return A.imageMarker=!0,A.image=!0,t.highlightFormatting&&(A.formatting="image"),C(A);if("["===a&&A.imageMarker&&e.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return A.imageMarker=!1,A.imageAltText=!0,t.highlightFormatting&&(A.formatting="image"),C(A);if("]"===a&&A.imageAltText){t.highlightFormatting&&(A.formatting="image");var d=C(A);return A.imageAltText=!1,A.image=!1,A.inline=A.f=_,d}if("["===a&&!A.image)return A.linkText&&e.match(/^.*?\]/)||(A.linkText=!0,t.highlightFormatting&&(A.formatting="link")),C(A);if("]"===a&&A.linkText){t.highlightFormatting&&(A.formatting="link");var d=C(A);return A.linkText=!1,A.inline=A.f=e.match(/\(.*?\)| ?\[.*?\]/,!1)?_:w,d}if("<"===a&&e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return A.f=A.inline=T,t.highlightFormatting&&(A.formatting="link"),(d=C(A))?d+=" ":d="",d+i.linkInline;if("<"===a&&e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return A.f=A.inline=T,t.highlightFormatting&&(A.formatting="link"),(d=C(A))?d+=" ":d="",d+i.linkEmail;if(t.xml&&"<"===a&&e.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var v=e.string.indexOf(">",e.pos);if(-1!=v){var B=e.string.substring(e.start,v);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(B)&&(A.md_inside=!0)}return e.backUp(1),A.htmlState=n.startState(r),m(e,A,E)}if(t.xml&&"<"===a&&e.match(/^\/\w*?>/))return A.md_inside=!1,"tag";if("*"===a||"_"===a){for(var y=1,b=1==e.pos?" ":e.string.charAt(e.pos-2);y<3&&e.eat(a);)y++;var I=e.peek()||" ",S=!/\s/.test(I)&&(!p.test(I)||/\s/.test(b)||p.test(b)),k=!/\s/.test(b)&&(!p.test(b)||/\s/.test(I)||p.test(I)),F=null,x=null;if(y%2&&(A.em||!S||"*"!==a&&k&&!p.test(b)?A.em!=a||!k||"*"!==a&&S&&!p.test(I)||(F=!1):F=!0),y>1&&(A.strong||!S||"*"!==a&&k&&!p.test(b)?A.strong!=a||!k||"*"!==a&&S&&!p.test(I)||(x=!1):x=!0),null!=x||null!=F)return t.highlightFormatting&&(A.formatting=null==F?"strong":null==x?"em":"strong em"),!0===F&&(A.em=a),!0===x&&(A.strong=a),h=C(A),!1===F&&(A.em=!1),!1===x&&(A.strong=!1),h}else if(" "===a&&(e.eat("*")||e.eat("_"))){if(" "===e.peek())return C(A);e.backUp(1)}if(t.strikethrough)if("~"===a&&e.eatWhile(a)){if(A.strikethrough)return t.highlightFormatting&&(A.formatting="strikethrough"),h=C(A),A.strikethrough=!1,h;if(e.match(/^[^\s]/,!1))return A.strikethrough=!0,t.highlightFormatting&&(A.formatting="strikethrough"),C(A)}else if(" "===a&&e.match(/^~~/,!0)){if(" "===e.peek())return C(A);e.backUp(2)}if(t.emoji&&":"===a&&e.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){A.emoji=!0,t.highlightFormatting&&(A.formatting="emoji");var L=C(A);return A.emoji=!1,L}return" "===a&&(e.match(/^ +$/,!1)?A.trailingSpace++:A.trailingSpace&&(A.trailingSpaceNewLine=!0)),C(A)}function T(e,n){if(">"===e.next()){n.f=n.inline=w,t.highlightFormatting&&(n.formatting="link");var r=C(n);return r?r+=" ":r="",r+i.linkInline}return e.match(/^[^>]+/,!0),i.linkInline}function _(e,n){if(e.eatSpace())return null;var r,A=e.next();return"("===A||"["===A?(n.f=n.inline=(r="("===A?")":"]",function(e,n){if(e.next()===r){n.f=n.inline=w,t.highlightFormatting&&(n.formatting="link-string");var A=C(n);return n.linkHref=!1,A}return e.match(I[r]),n.linkHref=!0,C(n)}),t.highlightFormatting&&(n.formatting="link-string"),n.linkHref=!0,C(n)):"error"}var I={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function S(e,n){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(n.f=k,e.next(),t.highlightFormatting&&(n.formatting="link"),n.linkText=!0,C(n)):g(e,n,w)}function k(e,n){if(e.match(/^\]:/,!0)){n.f=n.inline=F,t.highlightFormatting&&(n.formatting="link");var r=C(n);return n.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),i.linkText}function F(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=w,i.linkHref+" url")}var x={startState:function(){return{f:B,prevLine:{stream:null},thisLine:{stream:null},block:B,htmlState:null,indentation:0,inline:w,text:b,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 v(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!=E)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g," ").length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==E?{state:e.htmlState,mode:r}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:x}},indent:function(e,t,A){return e.block==E&&r.indent?r.indent(e.htmlState,t,A):e.localState&&e.localMode.indent?e.localMode.indent(e.localState,t,A):n.Pass},blankLine:v,getType:C,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return x}),"xml"),n.defineMIME("text/markdown","markdown"),n.defineMIME("text/x-markdown","markdown")})),r((function(e,t){var n;(n=Sc).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,A){return(n!=A.streamSeen||Math.min(A.basePos,A.overlayPos)<n.start)&&(A.streamSeen=n,A.basePos=A.overlayPos=n.start),n.start==A.basePos&&(A.baseCur=e.token(n,A.base),A.basePos=n.pos),n.start==A.overlayPos&&(n.pos=n.start,A.overlayCur=t.token(n,A.overlay),A.overlayPos=n.pos),n.pos=Math.min(A.basePos,A.overlayPos),null==A.overlayCur?A.baseCur:null!=A.baseCur&&A.overlay.combineTokens||r&&null==A.overlay.combineTokens?A.baseCur+" "+A.overlayCur:A.overlayCur},indent:e.indent&&function(t,n,r){return e.indent(t.base,n,r)},electricChars:e.electricChars,innerMode:function(t){return{state:t.base,mode:e}},blankLine:function(n){var A,i;return e.blankLine&&(A=e.blankLine(n.base)),t.blankLine&&(i=t.blankLine(n.overlay)),null==i?A:r&&null!=A?A+" "+i:i}}}})),r((function(e,t){var n,r;r=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i,(n=Sc).defineMode("gfm",(function(e,t){var A=0,i={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 i=e.pos;e.eatWhile("`");var o=1+e.pos-i;return n.code?o===A&&(n.code=!1):(A=o,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:function(e){return e.code=!1,null}},o={taskLists:!0,strikethrough:!0,emoji:!0};for(var a in t)o[a]=t[a];return o.name="markdown",n.overlayMode(n.getMode(e,o),i)}),"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 A(e,n){var r=n.line,A=0,i=0,o=t.exec(e.getLine(r)),a=o[1];do{var s=r+(A+=1),c=e.getLine(s),l=t.exec(c);if(l){var u=l[1],f=parseInt(o[3],10)+A-i,h=parseInt(l[3],10),d=h;if(a!==u||isNaN(h)){if(a.length>u.length)return;if(a.length<u.length&&1===A)return;i+=1}else f===h&&(d=h+1),f>h&&(d=f+1),e.replaceRange(c.replace(t,u+d+l[4]+l[5]),{line:s,ch:0},{line:s,ch:c.length})}}while(l)}e.commands.newlineAndIndentContinueMarkdownList=function(i){if(i.getOption("disableInput"))return e.Pass;for(var o=i.listSelections(),a=[],s=0;s<o.length;s++){var c=o[s].head,l=i.getStateAfter(c.line),u=e.innerMode(i.getMode(),l);if("markdown"!==u.mode.name)return void i.execCommand("newlineAndIndent");var f=!1!==(l=u.state).list,h=0!==l.quote,d=i.getLine(c.line),p=t.exec(d),g=/^\s*$/.test(d.slice(0,c.ch));if(!o[s].empty()||!f&&!h||!p||g)return void i.execCommand("newlineAndIndent");if(n.test(d)){var m=h&&/>\s*$/.test(d),v=!/>\s*$/.test(d);(m||v)&&i.replaceRange("",{line:c.line,ch:0},{line:c.line,ch:c.ch+1}),a[s]="\n"}else{var B=p[1],E=p[5],y=!(r.test(p[2])||p[2].indexOf(">")>=0),C=y?parseInt(p[3],10)+1+p[4]:p[2].replace("x"," ");a[s]="\n"+B+C+E,y&&A(i,c)}}i.replaceSelections(a)}}(Sc)})),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",A=new RegExp("<(/?)(["+r+"]["+r+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");function i(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 o(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 c(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(a(e))continue;return}if(o(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 l(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(s(e))continue;return}if(o(e,t+1)){A.lastIndex=t,e.ch=t;var n=A.exec(e.text);if(n&&n.index==t)return n}else e.ch=t}}function u(e){for(;;){A.lastIndex=e.ch;var t=A.exec(e.text);if(!t){if(a(e))continue;return}if(o(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(o(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 A,i=u(e),o=e.line,a=e.ch-(i?i[0].length:0);if(!i||!(A=c(e)))return;if("selfClose"!=A)if(i[1]){for(var s=r.length-1;s>=0;--s)if(r[s]==i[2]){r.length=s;break}if(s<0&&(!n||n==i[2]))return{tag:i[2],from:t(o,a),to:t(e.line,e.ch)}}else r.push(i[2])}}function d(e,n){for(var r=[];;){var A=f(e);if(!A)return;if("selfClose"!=A){var i=e.line,o=e.ch,a=l(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(i,o)}}}else l(e)}}e.registerHelper("fold","xml",(function(e,r){for(var A=new i(e,r.line,0);;){var o=u(A);if(!o||A.line!=r.line)return;var a=c(A);if(!a)return;if(!o[1]&&"selfClose"!=a){var s=t(A.line,A.ch),l=h(A,o[2]);return l&&n(l.from,s)>0?{from:s,to:l.from}:null}}})),e.findMatchingTag=function(e,r,A){var o=new i(e,r.line,r.ch,A);if(-1!=o.text.indexOf(">")||-1!=o.text.indexOf("<")){var a=c(o),s=a&&t(o.line,o.ch),u=a&&l(o);if(a&&u&&!(n(o,r)>0)){var f={from:t(o.line,o.ch),to:s,tag:u[2]};return"selfClose"==a?{open:f,close:null,at:"open"}:u[1]?{open:d(o,u[2]),close:f,at:"close"}:{open:f,close:h(o=new i(e,s.line,s.ch,A),u[2]),at:"open"}}}},e.findEnclosingTag=function(e,t,n,r){for(var A=new i(e,t.line,t.ch,n);;){var o=d(A,r);if(!o)break;var a=h(new i(e,t.line,t.ch,n),o.tag);if(a)return{open:o,close:a}}},e.scanForClosingTag=function(e,t,n,r){return h(new i(e,t.line,t.ch,r?{from:0,to:r}:null),n)}}(Sc)})),r((function(e,t){!function(e){e.defineOption("autoCloseTags",!1,(function(o,a,s){if(s!=e.Init&&s&&o.removeKeyMap("autoCloseTags"),a){var c={name:"autoCloseTags"};"object"==typeof a&&!1===a.whenClosing||(c["'/'"]=function(t){return function(t){return t.getOption("disableInput")?e.Pass:r(t,!0)}(t)}),"object"==typeof a&&!1===a.whenOpening||(c["'>'"]=function(r){return function(r){if(r.getOption("disableInput"))return e.Pass;for(var o=r.listSelections(),a=[],s=r.getOption("autoCloseTags"),c=0;c<o.length;c++){if(!o[c].empty())return e.Pass;var l=o[c].head,u=r.getTokenAt(l),f=e.innerMode(r.getMode(),u.state),h=f.state,d=f.mode.xmlCurrentTag&&f.mode.xmlCurrentTag(h),p=d&&d.name;if(!p)return e.Pass;var g="html"==f.mode.configuration,m="object"==typeof s&&s.dontCloseTags||g&&t,v="object"==typeof s&&s.indentTags||g&&n;u.end>l.ch&&(p=p.slice(0,p.length-u.end+l.ch));var B=p.toLowerCase();if(!p||"string"==u.type&&(u.end!=l.ch||!/[\"\']/.test(u.string.charAt(u.string.length-1))||1==u.string.length)||"tag"==u.type&&d.close||u.string.indexOf("/")==l.ch-u.start-1||m&&A(m,B)>-1||i(r,f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(h)||[],p,l,!0))return e.Pass;var E="object"==typeof s&&s.emptyTags;if(E&&A(E,p)>-1)a[c]={text:"/>",newPos:e.Pos(l.line,l.ch+2)};else{var y=v&&A(v,B)>-1;a[c]={indent:y,text:">"+(y?"\n\n":"")+"</"+p+">",newPos:y?e.Pos(l.line+1,0):e.Pos(l.line,l.ch+1)}}}var C="object"==typeof s&&s.dontIndentOnAutoClose;for(c=o.length-1;c>=0;c--){var b=a[c];r.replaceRange(b.text,o[c].head,o[c].anchor,"+insert");var w=r.listSelections().slice(0);w[c]={head:b.newPos,anchor:b.newPos},r.setSelections(w),!C&&b.indent&&(r.indentLine(b.newPos.line,null,!0),r.indentLine(b.newPos.line+1,null,!0))}}(r)}),o.addKeyMap(c)}}));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(t,n){for(var r=t.listSelections(),A=[],o=n?"/":"</",a=t.getOption("autoCloseTags"),s="object"==typeof a&&a.dontIndentOnSlash,c=0;c<r.length;c++){if(!r[c].empty())return e.Pass;var l=r[c].head,u=t.getTokenAt(l),f=e.innerMode(t.getMode(),u.state),h=f.state;if(n&&("string"==u.type||"<"!=u.string.charAt(0)||u.start!=l.ch-1))return e.Pass;var d,p="xml"!=f.mode.name&&"htmlmixed"==t.getMode().name;if(p&&"javascript"==f.mode.name)d=o+"script";else if(p&&"css"==f.mode.name)d=o+"style";else{var g=f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(h);if(!g||g.length&&i(t,g,g[g.length-1],l))return e.Pass;d=o+g[g.length-1]}">"!=t.getLine(l.line).charAt(u.end)&&(d+=">"),A[c]=d}if(t.replaceSelections(A),r=t.listSelections(),!s)for(c=0;c<r.length;c++)(c==r.length-1||r[c].head.line<r[c+1].head.line)&&t.indentLine(r[c].head.line)}function A(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;++n)if(e[n]==t)return n;return-1}function i(t,n,r,A,i){if(!e.scanForClosingTag)return!1;var o=Math.min(t.lastLine()+1,A.line+500),a=e.scanForClosingTag(t,A,null,o);if(!a||a.tag!=r)return!1;for(var s=i?1:0,c=n.length-1;c>=0&&n[c]==r;c--)++s;for(A=a.to,c=1;c<s;c++){var l=e.scanForClosingTag(t,A,null,o);if(!l||l.tag!=r)return!1;A=l.to}return!0}e.commands.closeTag=function(e){return r(e)}}(Sc)})),r((function(e,t){!function(e){function t(e){e.state.tagHit&&e.state.tagHit.clear(),e.state.tagOther&&e.state.tagOther.clear(),e.state.tagHit=e.state.tagOther=null}function n(n){n.state.failedTagMatch=!1,n.operation((function(){if(t(n),!n.somethingSelected()){var r=n.getCursor(),A=n.getViewport();A.from=Math.min(A.from,r.line),A.to=Math.max(r.line+1,A.to);var i=e.findMatchingTag(n,r,A);if(i){if(n.state.matchBothTags){var o="open"==i.at?i.open:i.close;o&&(n.state.tagHit=n.markText(o.from,o.to,{className:"CodeMirror-matchingtag"}))}var a="close"==i.at?i.open:i.close;a?n.state.tagOther=n.markText(a.from,a.to,{className:"CodeMirror-matchingtag"}):n.state.failedTagMatch=!0}}}))}function r(e){e.state.failedTagMatch&&n(e)}e.defineOption("matchTags",!1,(function(A,i,o){o&&o!=e.Init&&(A.off("cursorActivity",n),A.off("viewportChange",r),t(A)),i&&(A.state.matchBothTags="object"==typeof i&&i.bothTags,A.on("cursorActivity",n),A.on("viewportChange",r),n(A))})),e.commands.toMatchingTag=function(t){var n=e.findMatchingTag(t,t.getCursor());if(n){var r="close"==n.at?n.open:n.close;r&&t.extendSelection(r.to,r.from)}}}(Sc)})),r((function(e,t){!function(e){var t,n,r=e.Pos;function A(e,t){for(var n=function(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}(e),r=n,A=0;A<t.length;A++)-1==r.indexOf(t.charAt(A))&&(r+=t.charAt(A));return n==r?e:new RegExp(e.source,r)}function i(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function o(e,t,n){t=A(t,"g");for(var i=n.line,o=n.ch,a=e.lastLine();i<=a;i++,o=0){t.lastIndex=o;var s=e.getLine(i),c=t.exec(s);if(c)return{from:r(i,c.index),to:r(i,c.index+c[0].length),match:c}}}function a(e,t,n){if(!i(t))return o(e,t,n);t=A(t,"gm");for(var a,s=1,c=n.line,l=e.lastLine();c<=l;){for(var u=0;u<s&&!(c>l);u++){var f=e.getLine(c++);a=null==a?f:a+"\n"+f}s*=2,t.lastIndex=n.ch;var h=t.exec(a);if(h){var d=a.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 s(e,t,n){for(var r,A=0;A<=e.length;){t.lastIndex=A;var i=t.exec(e);if(!i)break;var o=i.index+i[0].length;if(o>e.length-n)break;(!r||o>r.index+r[0].length)&&(r=i),A=i.index+1}return r}function c(e,t,n){t=A(t,"g");for(var i=n.line,o=n.ch,a=e.firstLine();i>=a;i--,o=-1){var c=e.getLine(i),l=s(c,t,o<0?0:c.length-o);if(l)return{from:r(i,l.index),to:r(i,l.index+l[0].length),match:l}}}function l(e,t,n){if(!i(t))return c(e,t,n);t=A(t,"gm");for(var o,a=1,l=e.getLine(n.line).length-n.ch,u=n.line,f=e.firstLine();u>=f;){for(var h=0;h<a&&u>=f;h++){var d=e.getLine(u--);o=null==o?d:d+"\n"+o}a*=2;var p=s(o,t,l);if(p){var g=o.slice(0,p.index).split("\n"),m=p[0].split("\n"),v=u+g.length,B=g[g.length-1].length;return{from:r(v,B),to:r(v+m.length-1,1==m.length?B+m[0].length:m[m.length-1].length),match:p}}}}function u(e,t,n,r){if(e.length==t.length)return n;for(var A=0,i=n+Math.max(0,e.length-t.length);;){if(A==i)return A;var o=A+i>>1,a=r(e.slice(0,o)).length;if(a==n)return o;a>n?i=o:A=o+1}}function f(e,A,i,o){if(!A.length)return null;var a=o?t:n,s=a(A).split(/\r|\n\r?/);e:for(var c=i.line,l=i.ch,f=e.lastLine()+1-s.length;c<=f;c++,l=0){var h=e.getLine(c).slice(l),d=a(h);if(1==s.length){var p=d.indexOf(s[0]);if(-1==p)continue e;return i=u(h,d,p,a)+l,{from:r(c,u(h,d,p,a)+l),to:r(c,u(h,d,p+s[0].length,a)+l)}}var g=d.length-s[0].length;if(d.slice(g)==s[0]){for(var m=1;m<s.length-1;m++)if(a(e.getLine(c+m))!=s[m])continue e;var v=e.getLine(c+s.length-1),B=a(v),E=s[s.length-1];if(B.slice(0,E.length)==E)return{from:r(c,u(h,d,g,a)+l),to:r(c+s.length-1,u(v,B,E.length,a))}}}}function h(e,A,i,o){if(!A.length)return null;var a=o?t:n,s=a(A).split(/\r|\n\r?/);e:for(var c=i.line,l=i.ch,f=e.firstLine()-1+s.length;c>=f;c--,l=-1){var h=e.getLine(c);l>-1&&(h=h.slice(0,l));var d=a(h);if(1==s.length){var p=d.lastIndexOf(s[0]);if(-1==p)continue e;return{from:r(c,u(h,d,p,a)),to:r(c,u(h,d,p+s[0].length,a))}}var g=s[s.length-1];if(d.slice(0,g.length)==g){var m=1;for(i=c-s.length+1;m<s.length-1;m++)if(a(e.getLine(i+m))!=s[m])continue e;var v=e.getLine(c+1-s.length),B=a(v);if(B.slice(B.length-s[0].length)==s[0])return{from:r(c+1-s.length,u(v,B,v.length-s[0].length,a)),to:r(c,u(h,d,g.length,a))}}}}function d(e,t,n,i){var s;this.atOccurrence=!1,this.doc=e,n=n?e.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==typeof i?s=i.caseFold:(s=i,i=null),"string"==typeof t?(null==s&&(s=!1),this.matches=function(n,r){return(n?h:f)(e,t,r,s)}):(t=A(t,"gm"),i&&!1===i.multiline?this.matches=function(n,r){return(n?c:o)(e,t,r)}:this.matches=function(n,r){return(n?l:a)(e,t,r)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},n=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},n=function(e){return e}),d.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){for(var n=this.matches(t,this.doc.clipPos(t?this.pos.from:this.pos.to));n&&0==e.cmpPos(n.from,n.to);)t?n.from.ch?n.from=r(n.from.line,n.from.ch-1):n=n.from.line==this.doc.firstLine()?null:this.matches(t,this.doc.clipPos(r(n.from.line-1))):n.to.ch<this.doc.getLine(n.to.line).length?n.to=r(n.to.line,n.to.ch+1):n=n.to.line==this.doc.lastLine()?null:this.matches(t,r(n.to.line+1,0));if(n)return this.pos=n,this.atOccurrence=!0,this.pos.match||!0;var A=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:A,to:A},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var A=e.splitLines(t);this.doc.replaceRange(A,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+A.length-1,A[A.length-1].length+(1==A.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new d(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new d(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],A=this.getSearchCursor(t,this.getCursor("from"),n);A.findNext()&&!(e.cmpPos(A.to(),this.getCursor("to"))>0);)r.push({anchor:A.from(),head:A.to()});r.length&&this.setSelections(r,0)}))}(Sc)})),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){i(e)&&n(e)}function A(e){var r=e.getWrapperElement(),A=i(e);r.className=r.className.replace(" CodeMirror-empty","")+(A?" CodeMirror-empty":""),A?n(e):t(e)}function i(e){return 1===e.lineCount()&&""===e.getLine(0)}e.defineOption("placeholder","",(function(i,o,a){var s=a&&a!=e.Init;if(o&&!s)i.on("blur",r),i.on("change",A),i.on("swapDoc",A),e.on(i.getInputField(),"compositionupdate",i.state.placeholderCompose=function(){!function(e){setTimeout((function(){var r=!1,A=e.getInputField();"TEXTAREA"==A.nodeName?r=!A.value:1==e.lineCount()&&(r=!/[^\u200b]/.test(A.querySelector(".CodeMirror-line").textContent)),r?n(e):t(e)}),20)}(i)}),A(i);else if(!o&&s){i.off("blur",r),i.off("change",A),i.off("swapDoc",A),e.off(i.getInputField(),"compositionupdate",i.state.placeholderCompose),t(i);var c=i.getWrapperElement();c.className=c.className.replace(" CodeMirror-empty","")}o&&!i.hasFocus()&&r(i)}))}(Sc)})),si),Fc=r((function(e){e.exports=function(e){if(kc(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports}));n(Fc);var xc=r((function(e){e.exports=function(e,t){var n=null==e?null:void 0!==Zi&&ai(e)||e["@@iterator"];if(null!=n){var r,A,i=[],o=!0,a=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){a=!0,A=e}finally{try{o||null==n.return||n.return()}finally{if(a)throw A}}return i}},e.exports.__esModule=!0,e.exports.default=e.exports}));n(xc);var Lc=En,Uc=Or,Nc=r((function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports}));n(Nc);var Dc=r((function(e){e.exports=function(e,t){var n;if(e){if("string"==typeof e)return Nc(e,t);var r=Lc(n=Object.prototype.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Uc(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Nc(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}));n(Dc);var Oc=r((function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}));n(Oc);var Qc=n(r((function(e){e.exports=function(e,t){return Fc(e)||xc(e,t)||Dc(e,t)||Oc()},e.exports.__esModule=!0,e.exports.default=e.exports}))),Rc=Ac,Mc=ji,Hc=Cc.trim,Pc=a.parseInt,Kc=a.Symbol,Gc=Kc&&Kc.iterator,$c=/^[+-]?0x/i,Vc=v($c.exec),Wc=8!==Pc(gc+"08")||22!==Pc(gc+"0x16")||Gc&&!s((function(){Pc(Object(Gc))}))?function(e,t){var n=Hc(bn(e));return Pc(n,t>>>0||(Vc($c,n)?16:10))}:Pc;Xe({global:!0,forced:parseInt!=Wc},{parseInt:Wc});var jc=Q.parseInt,Yc={run:function(e){var t,n="<div>".concat(e,"</div>");this.tagParser.formatEngine=this.mdFormatEngine,n=n.replace(/<!--[\s\S]*?-->/g,"");var r=this.htmlParser.parseHtml(n);return r=this.paragraphStyleClear(r),Ic(t=this.$dealHtml(r).replace(/\n{3,}/g,"\n\n\n").replace(/&gt;/g,">").replace(/&lt;/g,"<")).call(t,"\n")},$dealHtml:function(e){for(var t="",n=0;n<e.length;n++){var r=e[n];"tag"===r.type?t=this.$handleTagObject(r,t):"text"===r.type&&r.content.length>0&&(t+=r.content.replace(/&nbsp;/g," ").replace(/[\n]+/g,"\n"))}return t},$handleTagObject:function(e,t){var n,r,A,i=t;if(e.attrs.class&&Rc(n=e.attrs.class).call(n,"mermaid")>=0)try{i+=["\n```",e.attrs["data-type"],"\n",decodeURIComponent(atob(e.attrs["data-code"])),"\n```\n"].join("")}catch(t){i+=["\n```",e.attrs["data-type"],"\n",decodeURIComponent(e.attrs["data-code"]),"\n```\n"].join("")}else if(e.attrs.class&&Rc(r=e.attrs.class).call(r,"mathjax-wrapper")>=0)try{i+=" ".concat(decodeURIComponent(atob(e.attrs["data-source"]))," ")}catch(t){i+=" ".concat(decodeURIComponent(e.attrs["data-source"])," ")}else if(e.attrs["data-control"]&&"tapd-table"===e.attrs["data-control"]){if(i+=["\n```"," tapd-table ",e.attrs["data-size"],"\n"].join(""),e.children[1]&&e.children[1].children[0].content)i+=["\n",e.children[1].children[0].content.replace(/\s+/g,""),"\n```\n"].join("");else i+=["\n",'"工作表":{"数据":{"19::25":" "}} ',"\n```\n"].join("")}else if(e.attrs.class&&Rc(A=e.attrs.class).call(A,"ch-icon")>=0){var o;Rc(o=e.attrs.class).call(o,"ch-icon-check")>=0?i+="[x]":i+="[ ]"}else i+=this.$dealTag(e);return i},$dealTag:function(e){var t="";return e.children&&(t=this.$dealHtml(e.children)),"style"===e.name?"":"code"===e.name||"pre"===e.name?this.tagParser.codeParser(e,this.$dealCodeTag(e)):"function"==typeof this.tagParser["".concat(e.name,"Parser")]?this.tagParser["".concat(e.name,"Parser")](e,t):t},$dealCodeTag:function(e){if(e.children.length<0)return"";for(var t="",n=0;n<e.children.length;n++){var r=e.children[n];"text"!==r.type?("li"===r.name&&(t+="\n"),"br"===r.name&&(t+="\n"),t+=this.$dealCodeTag(r)):t+=r.content.replace(/&lt;/g,"<").replace(/&gt;/g,">")}return t},htmlParser:{attrRE:/([\w-]+)|['"]{1}([^'"]*)['"]{1}/g,lookup:{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,video:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},tagRE:/<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>/g,empty:Mc?Mc(null):{},parseTags:function(e){var t,n=this,r=0,A={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return e.replace(this.attrRE,(function(i){r%2?t=i:0===r?((n.lookup[i]||"/"===e.charAt(e.length-2))&&(A.voidElement=!0),A.name=i):A.attrs[t]=i.replace(/['"]/g,""),r+=1})),A},parseHtml:function(e,t){var n=this,r=t||{};r.components||(r.components=this.empty);var A,i=[],o=-1,a=[],s={},c=!1;return e.replace(this.tagRE,(function(t,l){if(c){if(t!=="</".concat(A.name,">"))return;c=!1}var u,f="/"!==t.charAt(1),h=l+t.length,d=e.charAt(h);f&&(o+=1,"tag"===(A=n.parseTags(t)).type&&r.components[A.name]&&(A.type="component",c=!0),A.voidElement||c||!d||"<"===d||A.children.push({type:"text",content:yn(e).call(e,h,Rc(e).call(e,"<",h))}),s[A.tagName]=A,0===o&&i.push(A),(u=a[o-1])&&u.children.push(A),a[o]=A),f&&!A.voidElement||(o-=1,!c&&"<"!==d&&d&&a[o]&&a[o].children.push({type:"text",content:yn(e).call(e,h,Rc(e).call(e,"<",h))}))})),i}},tagParser:{formatEngine:{},pParser:function(e,t){var n=t.replace(/\t/g,"");return/\n$/.test(n)?n:"".concat(n,"\n")},divParser:function(e,t){var n=t.replace(/\t/g,"");return/\n$/.test(n)?n:"".concat(n,"\n")},spanParser:function(e,t){var n=t.replace(/\t/g,"");return e.attrs&&e.attrs.style,n},codeParser:function(e,t){return this.formatEngine.convertCode(t)},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=[],A=0;A<n.length;A++)r.push(this.formatEngine.convertB(n[A]));return r.join("\n")},iParser:function(e,t){for(var n=t.split("\n"),r=[],A=0;A<n.length;A++)r.push(this.formatEngine.convertI(n[A]));return r.join("\n")},strikeParser:function(e,t){for(var n=t.split("\n"),r=[],A=0;A<n.length;A++)r.push(this.formatEngine.convertStrike(n[A]));return r.join("\n")},delParser:function(e,t){for(var n=t.split("\n"),r=[],A=0;A<n.length;A++)r.push(this.formatEngine.convertDel(n[A]));return r.join("\n")},uParser:function(e,t){for(var n=t.split("\n"),r=[],A=0;A<n.length;A++)r.push(this.formatEngine.convertU(n[A]));return r.join("\n")},aParser:function(e,t){return e.attrs&&e.attrs.href?this.formatEngine.convertA(t,e.attrs.href):""},supParser:function(e,t){return this.formatEngine.convertSup(t)},subParser:function(e,t){return this.formatEngine.convertSub(t)},tdParser:function(e,t){return this.formatEngine.convertTd(t)},trParser:function(e,t){return this.formatEngine.convertTr(t)},thParser:function(e,t){return this.formatEngine.convertTh(t)},theadParser:function(e,t){return this.formatEngine.convertThead(t)},tableParser:function(e,t){return this.formatEngine.convertTable(t)},liParser:function(e,t){return this.formatEngine.convertLi(t)},ulParser:function(e,t){return this.formatEngine.convertUl(t)},olParser:function(e,t){return this.formatEngine.convertOl(t)},strongParser:function(e,t){return this.formatEngine.convertStrong(t)},hrParser:function(e,t){return this.formatEngine.convertHr(t)},h1Parser:function(e,t){return this.formatEngine.convertH1(t)},h2Parser:function(e,t){return this.formatEngine.convertH2(t)},h3Parser:function(e,t){return this.formatEngine.convertH3(t)},h4Parser:function(e,t){return this.formatEngine.convertH4(t)},h5Parser:function(e,t){return this.formatEngine.convertH5(t)},h6Parser:function(e,t){return this.formatEngine.convertH6(t)},blockquoteParser:function(e,t){return this.formatEngine.convertBlockquote(t.replace(/\n+/g,"\n"))},addressParser:function(e,t){return this.formatEngine.convertAddress(t.replace(/\n+/g,"\n"))},styleParser:{colorAttrParser:function(e){var t=e.match(/color:\s*(#[a-zA-Z0-9]{3,6});/);return t&&t[1]?t[1]:""},sizeAttrParser:function(e){var t=e.match(/font-size:\s*([a-zA-Z0-9-]+?);/);if(t&&t[1]){var n,r=0;if(/[0-9]+px/.test(t[1]))r=Ic(n=t[1].replace(/px/,"")).call(n);else switch(t[1]){case"x-small":r=10;break;case"small":r=12;break;case"medium":r=16;break;case"large":r=18;break;case"x-large":r=24;break;case"xx-large":r=32;break;default:r=""}return r>0?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,A,i,o,a,s=t[1].match(/rgb\(([ 0-9]+),([ 0-9]+),([ 0-9]+)\)/);if(s[1]&&s[2]&&s[3])s[1]=jc(Ic(r=s[1]).call(r),10),s[2]=jc(Ic(A=s[2]).call(A),10),s[3]=jc(Ic(i=s[3]).call(i),10),n=uo(o=uo(a="#".concat(s[1].toString(16))).call(a,s[2].toString(16))).call(o,s[3].toString(16))}else{n=Qc(t,2)[1]}return n}return""}}},mdFormatEngine:{convertColor:function(e,t){var n,r=Ic(e).call(e);return!r||/\n/.test(r)?r:t?uo(n="!!".concat(t," ")).call(n,r,"!!"):r},convertSize:function(e,t){var n,r=Ic(e).call(e);return!r||/\n/.test(r)?r:t?uo(n="!".concat(t," ")).call(n,r,"!"):r},convertBgColor:function(e,t){var n,r=Ic(e).call(e);return!r||/\n/.test(r)?r:t?uo(n="!!!".concat(t," ")).call(n,r,"!!!"):r},convertBr:function(e,t){return e+t},convertCode:function(e){return/\n/.test(e)?"\n```\n".concat(e.replace(/\n+$/,""),"\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?r:"image";return uo(n="![".concat(r,"](")).call(n,t,")")},convertGraph:function(e,t,n,r){var A,i,o,a=e&&e.length>0?e:"graph",s="";if(r)try{var c,l=r.attrs;xi(c=fi(l)).call(c,(function(e){var t;Object.prototype.hasOwnProperty.call(l,e)&&(Rc(e).call(e,"data-graph-")>=0&&l[e]&&(s+=uo(t=" ".concat(e,"=")).call(t,l[e])))}))}catch(e){}return uo(A=uo(i=uo(o="![".concat(a,"](")).call(o,t,"){data-control=tapd-graph data-origin-xml=")).call(i,n)).call(A,s,"}")},convertVideo:function(e,t,n,r){var A,i,o=r&&r.length>0?r:"video";return uo(A=uo(i="!video[".concat(o,"](")).call(i,t,"){poster=")).call(A,n,"}")},convertA:function(e,t){var n;if(e===t)return"".concat(e," ");var r=Ic(e).call(e);return r?uo(n="[".concat(r,"](")).call(n,t,")"):r},convertSup:function(e){return"^".concat(Ic(e).call(e).replace(/\^/g,"\\^"),"^")},convertSub:function(e){return"^^".concat(Ic(e).call(e).replace(/\^\^/g,"\\^\\^"),"^^")},convertTd:function(e){return"~|".concat(Ic(e).call(e).replace(/\n/g,"<br>")," ~|")},convertTh:function(e){return"~|".concat(Ic(e).call(e).replace(/\n/g,"<br>")," ~|")},convertTr:function(e){return"".concat(e,"\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");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"\n\n".concat(e,"\n\n")},convertOl:function(e){for(var t=e.split("\n"),n=1,r=0;r<t.length;r++)/^- /.test(t[r])&&(t[r]=t[r].replace(/^- /,"".concat(n,". ")),n+=1);var A=t.join("\n");return"\n\n".concat(A,"\n\n")},convertStrong:function(e){return/^\s*$/.test(e)?"":"**".concat(e,"**")},convertStrike:function(e){return/^\s*$/.test(e)?"":"~~".concat(e,"~~")},convertDel:function(e){return/^\s*$/.test(e)?"":"~~".concat(e,"~~")},convertHr:function(e){return/^\s*$/.test(e)?"\n\n----\n":"\n\n----\n".concat(e)},convertH1:function(e){return"# ".concat(Ic(e).call(e).replace(/\n+$/,""),"\n\n")},convertH2:function(e){return"## ".concat(Ic(e).call(e).replace(/\n+$/,""),"\n\n")},convertH3:function(e){return"### ".concat(Ic(e).call(e).replace(/\n+$/,""),"\n\n")},convertH4:function(e){return"#### ".concat(Ic(e).call(e).replace(/\n+$/,""),"\n\n")},convertH5:function(e){return"##### ".concat(Ic(e).call(e).replace(/\n+$/,""),"\n\n")},convertH6:function(e){return"###### ".concat(Ic(e).call(e).replace(/\n+$/,""),"\n\n")},convertBlockquote:function(e){return"\n>".concat(Ic(e).call(e),"\n\n")},convertAddress:function(e){return"\n>".concat(Ic(e).call(e),"\n\n")}},paragraphStyleClear:function(e){for(var t=0;t<e[0].children.length;t++){for(var n=[e[0].children[t]],r=[];n.length;){var A=n.shift(),i=this.notEmptyTagCount(A);if(1===i)r.push(A);else if(i>1)for(var o=0;o<A.children.length;o++)n.push(A.children[o]);else 1===r.length&&this.clearChildColorAttrs(r.pop()),r=[]}1===r.length&&this.clearChildColorAttrs(r.pop())}return e},notEmptyTagCount:function(e){if(!e||e.voidElement||"tag"===e.type&&!e.children.length||"text"===e.type&&!e.content.replace(/(\r|\n|\s)+/g,""))return 0;if(e.children&&e.children.length){for(var t=0,n=0;n<e.children.length;n++)t+=this.notEmptyTagCount(e.children[n]);return t}return 1},clearChildColorAttrs:function(e){var t=this;this.forEachHtmlParsedItems(e,(function(e){t.clearSelfNodeColorAttrs(e)}))},clearSelfNodeColorAttrs:function(e){if(e.attrs&&e.attrs.style){for(var t=e.attrs.style.split(";"),n=[],r=0;r<t.length;r++){var A;t[r]&&-1===Rc(A=t[r]).call(A,"color")&&n.push(t[r])}n.length?e.attrs.style="".concat(n.join(";"),";"):delete e.attrs.style}},forEachHtmlParsedItems:function(e,t){if(e&&(t(e),e.children&&e.children.length))for(var n=0;n<e.children.length;n++)this.forEachHtmlParsedItems(e.children[n],t)}},Xc=dc,zc=n(r((function(e){function t(){return e.exports=t=Xc||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}))),qc={showSwitchBtnAfterPasteHtml:function(e,t,n,r){Ic(n).call(n)!==Ic(r).call(r)&&(this.init(e,t,n,r),this.setSelection(),this.bindListener(),this.initBubble(),this.showBubble(),"text"===this.getTypeFromLocalStorage()&&this.switchTextClick())},init:function(e,t,n,r){this.html=n,this.md=r,this.codemirror=t,this.currentCursor=e},getTypeFromLocalStorage:function(){return localStorage&&localStorage.getItem("cherry-paste-type")||"md"},setTypeToLocalStorage:function(e){localStorage&&localStorage.setItem("cherry-paste-type",e)},setSelection:function(){var e=this.codemirror.getCursor(),t=zc({},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()}))},hideBubble:function(){if(this.noHide)return!0;"none"!==this.bubbleDom.style.display&&(this.bubbleDom.style.display="none")},updatePositionWhenScroll:function(){"block"===this.bubbleDom.style.display&&(this.bubbleDom.style.marginTop="".concat(this.bubbleDom.dataset.scrollTop-this.getScrollTop(),"px"))},getScrollTop:function(){return this.codemirror.getScrollInfo().top},showBubble:function(){var e=this.getLastSelectedPosition(),t=e.width,n=e.top;"block"!==this.bubbleDom.style.display&&(this.bubbleDom.style.display="block",this.bubbleDom.style.marginTop="0",this.bubbleDom.dataset.scrollTop=this.getScrollTop());var r=this.codemirror.getWrapperElement().querySelector(".CodeMirror-lines").firstChild.getBoundingClientRect(),A=r.left,i=r.width+A;this.bubbleDom.style.top="".concat(n,"px");var o=t-this.bubbleDom.offsetWidth/2;o<A?o=A:o+this.bubbleDom.offsetWidth>i&&(o=i-this.bubbleDom.offsetWidth)},initBubble:function(){var e,t;if(this.bubbleDom)return this.bubbleDom.setAttribute("data-type","md"),!0;var n=document.createElement("div");n.className="cherry-bubble cherry-switch-paste";var r=document.createElement("span");r.innerText="TEXT",r.title="粘贴为纯文本格式",r.className="cherry-toolbar-button cherry-text-btn";var A=document.createElement("span");A.innerText="Markdown",A.title="粘贴为markdown格式",A.className="cherry-toolbar-button cherry-md-btn";var i=document.createElement("span");i.className="switch-btn--bg",this.bubbleDom=n,this.switchText=r,this.switchMd=A,this.switchBG=i,this.bubbleDom.appendChild(r),this.bubbleDom.appendChild(A),this.bubbleDom.appendChild(i),this.bubbleDom.setAttribute("data-type","md"),this.codemirror.getWrapperElement().appendChild(this.bubbleDom),this.switchMd.addEventListener("click",go(e=this.switchMDClick).call(e,this)),this.switchText.addEventListener("click",go(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=this.codemirror.getWrapperElement().getElementsByClassName("CodeMirror-selected"),t=0,n=0;if("object"!==no(e)||e.length<=0)return this.hideBubble(),{};for(var r=0;r<e.length;r++){var A=e[r].getBoundingClientRect(),i=A.left+A.width/2,o=A.top+A.height;o>n&&i>=t&&(n=o),i>t&&(t=i)}return{width:t,top:n}}};function Jc(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 Zc(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 el=new Proxy({},{get:function(e,t,n){return function(){}}}),tl=["codemirror"],nl=function(){function e(t){var n=this;Pi(this,e),so(this,"onScroll",(function(e){if(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,A=e.lineAtHeight(r,"local"),i=e.charCoords({line:A,ch:0},"local"),o=e.getLineHandle(A).height,a=100*(r-(i.bottom-o))/o/100;n.previewer.scrollToLineNum(A+1,a)}}})),so(this,"onMouseDown",(function(e,t){var r=e.getCursor().line,A=Math.abs(t.y-e.getWrapperElement().getBoundingClientRect().y);n.previewer.scrollToLineNumWithOffset(r+1,A)})),this.options={id:"code",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:"newlineAndIndentContinueMarkdownList"},matchTags:{bothTags:!0},placeholder:""},toolbars:{},onKeydown:function(){},onChange:function(){},onFocus:function(){},onBlur:function(){},onPaste:this.onPaste,onScroll:this.onScroll},this.animation={};var r=t.codemirror,A=sc(t,tl);r&&pc(this.options.codemirror,r),pc(this.options,A),this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.getInstanceId()}return Gi(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=t.items,A=t.types||[],i=n.getDoc(),o=0;o<A.length;o++){var a=r[o];if(a&&"file"===a.kind&&a.type.match(/^image\//i)){var s=a.getAsFile();this.options.fileUpload(s,(function(e){"string"==typeof e&&i.replaceSelection("![enter image description here](".concat(e,")"))})),e.preventDefault()}}var c=t.getData("text/plain"),l=t.getData("Text/Html");if(!l||!this.options.convertWhenPaste)return!0;var u=l.replace(/<(html|head|body|!)/g,"");if(u.match(/<[a-zA-Z]/g).length<=1&&/<img/.test(u))return!0;var f=document.createElement("DIV");f.innerHTML=l,l=f.innerHTML;var h=Yc.run(l);if("string"==typeof h&&Ic(h).call(h).length>0){var d=n.listSelections();if(n.getSelections().length<=1&&d[0]&&d[0].anchor){var p={};p.line=d[0].anchor.line,p.ch=d[0].anchor.ch,i.replaceSelection(h),qc.showSwitchBtnAfterPasteHtml(p,n,c,h)}else i.replaceSelection(h);e.preventDefault()}f=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=Sc.fromTextArea(n,this.options.codemirror);r.addOverlay({name:"invisibles",token:function(e){var t,n=0,r=" "===e.peek();if(r){for(;r&&n<Number.MAX_VALUE;)n+=1,e.next(),r=" "===e.peek();t="whitespace whitespace-".concat(n)}else{for(;!e.eol();)e.next();t=""}return t}}),this.previewer=e,this.disableScrollListener=!1,this.options.value&&r.setOption("value",this.options.value),r.on("blur",(function(e,n){t.options.onBlur(n,e)})),r.on("focus",(function(e,n){t.options.onFocus(n,e)})),r.on("change",(function(e,n){t.options.onChange(n,e)})),r.on("keydown",(function(e,n){t.options.onKeydown(n,e)})),r.on("paste",(function(e,n){t.options.onPaste.call(t,n,e)})),this.options.autoScrollByCursor&&r.on("mousedown",(function(e,n){To((function(){t.onMouseDown(e,n)}))})),r.on("drop",(function(e,n){var r=n.dataTransfer.files||[];if(r&&r.length>0)for(var A=function(n,A){var i=r[n],a=i.type||"";if(""===a||/^text/i.test(a))return o=A,"continue";var s=i.name&&i.name.replace(/\.[^.]+$/,"")||"enter description here",c=/^image/i.test(i.type);t.options.fileUpload(i,(function(t){var n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c;if("string"==typeof t){e.setSelection(e.getCursor());var l=a?uo(n="![".concat(i,"](")).call(n,t,")"):uo(r="[".concat(i,"](")).call(r,t,")");l=A?"\n".concat(l):l,A=!0,e.replaceSelection(l)}else o=A})),o=A},i=0,o=!1;i<r.length;i++)A(i,o)})),r.on("scroll",(function(e){t.options.onScroll(e)})),Jc(this.getEditorDom(),"wheel",(function(){t.disableScrollListener=!1,cancelAnimationFrame(t.animation.timer),t.animation.timer=0}),!1),this.editor=r}},{key:"jumpToLine",value:function(e,t,n){var r=this;if(null===e)return cancelAnimationFrame(this.animation.timer),this.disableScrollListener=!0,this.editor.scrollIntoView({line:this.editor.lineCount()-1,ch:1}),void(this.animation.timer=0);var A=this.editor.charCoords({line:e,ch:0},"local"),i=A.top;if(i+=(this.editor.charCoords({line:e+t,ch:0},"local").top-A.top)*n,this.animation.destinationTop=Math.ceil(i-15),!this.animation.timer){this.animation.timer=requestAnimationFrame((function e(){var t=r.editor.getScrollInfo().top,n=r.animation.destinationTop-t,A=Math.ceil(Math.min(Math.abs(n),Math.max(1,Math.abs(n)/(100/16.7))));if(n>0){if(t>=r.animation.destinationTop)return void(r.animation.timer=0);r.disableScrollListener=!0,r.editor.scrollTo(null,t+A)}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-A)}t===r.editor.getScrollInfo().top||A>=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),el.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)}}]),e}(),rl=aA.findIndex,Al=!0;"findIndex"in[]&&Array(1).findIndex((function(){Al=!1})),Xe({target:"Array",proto:!0,forced:Al},{findIndex:function(e){return rl(this,e,arguments.length>1?arguments[1]:void 0)}});var il=mn("Array").findIndex,ol=Array.prototype,al=function(e){var t=e.findIndex;return e===ol||H(ol,e)&&t===ol.findIndex?il:t},sl=cn("splice"),cl=a.TypeError,ll=Math.max,ul=Math.min;Xe({target:"Array",proto:!0,forced:!sl},{splice:function(e,t){var n,r,A,i,o,a,s=ae(this),c=Lt(s),l=kt(e,c),u=arguments.length;if(0===u?n=r=0:1===u?(n=0,r=c-l):(n=u-2,r=ul(ll(_t(t),0),c-l)),c+n-r>9007199254740991)throw cl("Maximum allowed length exceeded");for(A=Hr(s,r),i=0;i<r;i++)(o=l+i)in s&&an(A,i,s[o]);if(A.length=r,n<r){for(i=l;i<c-r;i++)a=i+n,(o=i+r)in s?s[a]=s[o]:delete s[a];for(i=c;i>c-r+n;i--)delete s[i-1]}else if(n>r)for(i=c-r;i>l;i--)a=i+n-1,(o=i+r-1)in s?s[a]=s[o]:delete s[a];for(i=0;i<n;i++)s[i+l]=arguments[i+2];return s.length=c-r+n,A}});var fl=mn("Array").splice,hl=Array.prototype,dl=function(e){var t=e.splice;return e===hl||H(hl,e)&&t===hl.splice?fl:t},pl=!1,gl={SEN:"sentence",PAR:"paragraph",DEFAULT:"sentence"},ml=function(){function e(t){Pi(this,e),so(this,"$engine",void 0),this.RULE=this.rule(t)}return Gi(e,[{key:"getType",value:function(){return this.constructor.HOOK_TYPE||gl.DEFAULT}},{key:"getName",value:function(){return this.constructor.HOOK_NAME}},{key:"beforeMakeHtml",value:function(e){return e}},{key:"makeHtml",value:function(e){return e}},{key:"afterMakeHtml",value:function(e){return e}},{key:"onKeyDown",value:function(e,t){}},{key:"getOnKeyDown",value:function(){return this.onKeyDown||!1}},{key:"getAttributesTest",value:function(){return/^(color|fontSize|font-size|id|title|class|target|underline|line-through|overline|sub|super)$/}},{key:"$testAttributes",value:function(e,t){this.getAttributesTest().test(e)&&t()}},{key:"getAttributes",value:function(e){return{attrs:{},str:e}}},{key:"test",value:function(e){return!!this.RULE.reg&&this.RULE.reg.test(e)}},{key:"rule",value:function(e){return{begin:"",end:"",content:"",reg:new RegExp("")}}},{key:"mounted",value:function(){}}],[{key:"getMathJaxConfig",value:function(){return pl}},{key:"setMathJaxConfig",value:function(e){pl=e}}]),e}();so(ml,"HOOK_NAME","default"),so(ml,"HOOK_TYPE",gl.DEFAULT);var vl=aA.map,Bl=cn("map");Xe({target:"Array",proto:!0,forced:!Bl},{map:function(e){return vl(this,e,arguments.length>1?arguments[1]:void 0)}});var El=mn("Array").map,yl=Array.prototype,Cl=function(e){var t=e.map;return e===yl||H(yl,e)&&t===yl.map?El:t};function bl(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!/^\n/.test(e))return t;if(n){var r,A,i,o=null!==(r=null===(A=e.match(/^\n+/g))||void 0===A||null===(i=A[0])||void 0===i?void 0:i.length)&&void 0!==r?r:0;return o>1?"\n\n".concat(t):"\n".concat(t)}return"\n\n".concat(t)}function wl(e,t){var n=(e.match(/\n/g)||[]).length;return""!==e&&(n-=2),n+t}function Tl(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var _l=0,Il=function(e){qi(n,ml);var t=Tl(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{needCache:!1},A=r.needCache,i=r.defaultCache,o=void 0===i?{}:i;return Pi(this,n),(e=t.call(this,{})).needCache=!!A,e.sign="",A&&(e.cache=o||{},e.cacheKey="~~C".concat(_l),_l+=1),e}return Gi(n,[{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),A=new RegExp("~~C\\d+I".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,"\\w+\\$"),"g").test(e);return r&&!A}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,A=n.contents,i=Cl(A).call(A,t),o="",a=0;a<i.length;a++){var s;if(o+=i[a],r&&r[a])o+=Ic(s=r[a]).call(s)}return o}},{key:"getCacheWithSpace",value:function(e,t){var n,r,A,i,o,a,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=null!==(n=null===(r=t.match(/^\n+/))||void 0===r?void 0:r[0])&&void 0!==n?n:"",l=null!==(A=null===(i=t.match(/\n+$/))||void 0===i?void 0:i[0])&&void 0!==A?A:"";return s?bl(t,e):uo(o=uo(a="".concat(c)).call(a,e)).call(o,l)}},{key:"getLineCount",value:function(e){var t,r,A,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=e,a=null!==(t=null===(r=i.match(/^\n+/g))||void 0===r||null===(A=r[0])||void 0===A?void 0:A.length)&&void 0!==t?t:0;a=1===a?1:0,o=o.replace(/^\n+/g,"");var s=new RegExp("\n*~~C\\d+I(?:".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")?\\w+?_L(\\d+)\\$"),"g"),c=0;return o=o.replace(s,(function(e,t){return c+=jc(t,10),e.replace(/^\n+/g,"")})),a+c+(o.match(/\n/g)||[]).length+1}},{key:"pushCache",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.needCache){var i=r||this.$engine.md5(e);return this.cache[i]={content:e,using:!0},uo(t=uo(n="".concat(this.cacheKey,"I")).call(n,i,"_L")).call(t,A,"$")}}},{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=fi(this.cache);e<t.length;e++){var n=t[e];this.cache[n].using||delete this.cache[n]}for(var r=0,A=fi(this.cache);r<A.length;r++){var i=A[r];this.cache[i].using=!1}}}},{key:"restoreCache",value:function(e){var t,r=this;if(!this.needCache)return e;var A=new RegExp(uo(t="".concat(this.cacheKey,"I((?:")).call(t,n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")?\\w+)\\$"),"g"),i=e.replace(A,(function(e,t){return r.popCache(t.replace(/_L\d+$/,""))}));return this.resetCache(),i}},{key:"checkCache",value:function(e,t){var n,r,A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.sign=this.$engine.md5(e),this.cache[this.sign]?(this.cache[this.sign].using=!0,uo(n=uo(r="".concat(this.cacheKey,"I")).call(r,this.sign,"_L")).call(n,A,"$")):this.toHtml(e,t)}},{key:"mounted",value:function(){}},{key:"signWithCache",value:function(e){return!1}}]),n}();so(Il,"HOOK_TYPE",gl.PAR),so(Il,"IN_PARAGRAPH_CACHE_KEY_PREFIX","!"),so(Il,"IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX","\\!");var Sl=s((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),kl=Object.isExtensible,Fl=s((function(){kl(1)}))||Sl?function(e){return!!O(e)&&((!Sl||"ArrayBuffer"!=k(e))&&(!kl||kl(e)))}:kl,xl=!s((function(){return Object.isExtensible(Object.preventExtensions({}))})),Ll=r((function(e){var t=Ve.f,n=!1,r=he("meta"),A=0,i=function(e){t(e,r,{value:{objectID:"O"+A++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var e=jr.f,t=v([].splice),A={};A[r]=1,e(A).length&&(jr.f=function(n){for(var A=e(n),i=0,o=A.length;i<o;i++)if(A[i]===r){t(A,i,1);break}return A},Xe({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Zr.f}))},fastKey:function(e,t){if(!O(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!ce(e,r)){if(!Fl(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!ce(e,r)){if(!Fl(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return xl&&n&&Fl(e)&&!ce(e,r)&&i(e),e}};Dt[r]=!0})),Ul=(Ll.enable,Ll.fastKey,Ll.getWeakData,Ll.onFreeze,a.TypeError),Nl=function(e,t){this.stopped=e,this.result=t},Dl=Nl.prototype,Ol=function(e,t,n){var r,A,i,o,a,s,c,l=n&&n.that,u=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),d=Qe(t,l),p=function(e){return r&&Er(r,"normal",e),new Nl(!0,e)},g=function(e){return u?(Pe(e),h?d(e[0],e[1],p):d(e[0],e[1])):h?d(e,p):d(e)};if(f)r=e;else{if(!(A=_r(e)))throw Ul(J(e)+" is not iterable");if(wr(A)){for(i=0,o=Lt(e);o>i;i++)if((a=g(e[i]))&&H(Dl,a))return a;return new Nl(!1)}r=Sr(e,A)}for(s=r.next;!(c=C(s,r)).done;){try{a=g(c.value)}catch(e){Er(r,"throw",e)}if("object"==typeof a&&a&&H(Dl,a))return a}return new Nl(!1)},Ql=a.TypeError,Rl=function(e,t){if(H(t,e))return e;throw Ql("Incorrect invocation")},Ml=Ve.f,Hl=aA.forEach,Pl=Pn.set,Kl=Pn.getterFor,Gl=function(e,t,n){var r,A=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),o=A?"set":"add",c=a[e],l=c&&c.prototype,u={};if(E&&B(c)&&(i||l.forEach&&!s((function(){(new c).entries().next()})))){var f=(r=t((function(t,n){Pl(Rl(t,f),{type:e,collection:new c}),null!=n&&Ol(n,t[o],{that:t,AS_ENTRIES:A})}))).prototype,h=Kl(e);Hl(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in l)||i&&"clear"==e||We(f,e,(function(n,r){var A=h(this).collection;if(!t&&i&&!O(n))return"get"==e&&void 0;var o=A[e](0===n?0:n,r);return t?this:o}))})),i||Ml(f,"size",{configurable:!0,get:function(){return h(this).collection.size}})}else r=n.getConstructor(t,e,A,o),Ll.enable();return ir(r,e,!1,!0),u[e]=r,Xe({global:!0,forced:!0},u),i||n.setStrong(r,e,A),r},$l=function(e,t,n){for(var r in t)n&&n.unsafe&&e[r]?e[r]=t[r]:qn(e,r,t[r],n);return e},Vl=ve("species"),Wl=function(e){var t=M(e),n=Ve.f;E&&t&&!t[Vl]&&n(t,Vl,{configurable:!0,get:function(){return this}})},jl=Ve.f,Yl=Ll.fastKey,Xl=Pn.set,zl=Pn.getterFor,ql={getConstructor:function(e,t,n,r){var A=e((function(e,A){Rl(e,i),Xl(e,{type:t,index:zt(null),first:void 0,last:void 0,size:0}),E||(e.size=0),null!=A&&Ol(A,e[r],{that:e,AS_ENTRIES:n})})),i=A.prototype,o=zl(t),a=function(e,t,n){var r,A,i=o(e),a=s(e,t);return a?a.value=n:(i.last=a={index:A=Yl(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),E?i.size++:e.size++,"F"!==A&&(i.index[A]=a)),e},s=function(e,t){var n,r=o(e),A=Yl(t);if("F"!==A)return r.index[A];for(n=r.first;n;n=n.next)if(n.key==t)return n};return $l(i,{clear:function(){for(var e=o(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,E?e.size=0:this.size=0},delete:function(e){var t=o(this),n=s(this,e);if(n){var r=n.next,A=n.previous;delete t.index[n.index],n.removed=!0,A&&(A.next=r),r&&(r.previous=A),t.first==n&&(t.first=r),t.last==n&&(t.last=A),E?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=o(this),r=Qe(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)}}),$l(i,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)}}),E&&jl(i,"size",{get:function(){return o(this).size}}),A},setStrong:function(e,t,n){var r=t+" Iterator",A=zl(t),i=zl(r);gr(e,t,(function(e,t){Xl(this,{type:r,target:e,state:A(e),kind:t,last:void 0})}),(function(){for(var e=i(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)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),Wl(t)}};Gl("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),ql);var Jl=Q.Map,Zl=Jl,eu=[].push;Xe({target:"Map",stat:!0,forced:!0},{from:function(e){var t,n,r,A,i=arguments.length,o=i>1?arguments[1]:void 0;return Ct(this),(t=void 0!==o)&&ee(o),null==e?new this:(n=[],t?(r=0,A=Qe(o,i>2?arguments[2]:void 0),Ol(e,(function(e){C(eu,n,A(e,r++))}))):Ol(e,eu,{that:n}),new this(n))}});Xe({target:"Map",stat:!0,forced:!0},{of:function(){return new this(ze(arguments))}});Xe({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=Pe(this),n=ee(t.delete),r=!0,A=0,i=arguments.length;A<i;A++)e=C(n,t,arguments[A]),r=r&&e;return!!r}});Xe({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var n=Pe(this),r=ee(n.get),A=ee(n.has),i=ee(n.set),o=C(A,n,e)&&"update"in t?t.update(C(r,n,e),e,n):t.insert(e,n);return C(i,n,e,o),o}});var tu=Sr;Xe({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=Pe(this),n=tu(t),r=Qe(e,arguments.length>1?arguments[1]:void 0);return!Ol(n,(function(e,n,A){if(!r(n,e,t))return A()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var nu=ve("species"),ru=function(e,t){var n,r=Pe(e).constructor;return void 0===r||null==(n=Pe(r)[nu])?t:Ct(n)};Xe({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=Pe(this),n=tu(t),r=Qe(e,arguments.length>1?arguments[1]:void 0),A=new(ru(t,M("Map"))),i=ee(A.set);return Ol(n,(function(e,n){r(n,e,t)&&C(i,A,e,n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),A}}),Xe({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=Pe(this),n=tu(t),r=Qe(e,arguments.length>1?arguments[1]:void 0);return Ol(n,(function(e,n,A){if(r(n,e,t))return A(n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}}),Xe({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=Pe(this),n=tu(t),r=Qe(e,arguments.length>1?arguments[1]:void 0);return Ol(n,(function(e,n,A){if(r(n,e,t))return A(e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var Au=v([].push);Xe({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){ee(t);var n=Sr(e),r=new this,A=ee(r.has),i=ee(r.get),o=ee(r.set);return Ol(n,(function(e){var n=t(e);C(A,r,n)?Au(C(i,r,n),e):C(o,r,n,[e])}),{IS_ITERATOR:!0}),r}});Xe({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return Ol(tu(Pe(this)),(function(t,n,r){if((A=n)===(i=e)||A!=A&&i!=i)return r();var A,i}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}}),Xe({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var n=new this;ee(t);var r=ee(n.set);return Ol(e,(function(e){C(r,n,t(e),e)})),n}}),Xe({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){return Ol(tu(Pe(this)),(function(t,n,r){if(n===e)return r(t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}}),Xe({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=Pe(this),n=tu(t),r=Qe(e,arguments.length>1?arguments[1]:void 0),A=new(ru(t,M("Map"))),i=ee(A.set);return Ol(n,(function(e,n){C(i,A,r(n,e,t),n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),A}}),Xe({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=Pe(this),n=tu(t),r=Qe(e,arguments.length>1?arguments[1]:void 0),A=new(ru(t,M("Map"))),i=ee(A.set);return Ol(n,(function(e,n){C(i,A,e,r(n,e,t))}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),A}}),Xe({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=Pe(this),n=ee(t.set),r=arguments.length,A=0;A<r;)Ol(arguments[A++],n,{that:t,AS_ENTRIES:!0});return t}});var iu=a.TypeError;Xe({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=Pe(this),n=tu(t),r=arguments.length<2,A=r?void 0:arguments[1];if(ee(e),Ol(n,(function(n,i){r?(r=!1,A=i):A=e(A,i,n,t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),r)throw iu("Reduce of empty map with no initial value");return A}}),Xe({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=Pe(this),n=tu(t),r=Qe(e,arguments.length>1?arguments[1]:void 0);return Ol(n,(function(e,n,A){if(r(n,e,t))return A()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var ou=a.TypeError;Xe({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var n=Pe(this),r=ee(n.get),A=ee(n.has),i=ee(n.set),o=arguments.length;ee(t);var a=C(A,n,e);if(!a&&o<3)throw ou("Updating absent value");var s=a?C(r,n,e):ee(o>2?arguments[2]:void 0)(e,n);return C(i,n,e,t(s,e,n)),n}});var au=a.TypeError,su=function(e,t){var n,r=Pe(this),A=ee(r.get),i=ee(r.has),o=ee(r.set),a=arguments.length>2?arguments[2]:void 0;if(!B(t)&&!B(a))throw au("At least one callback required");return C(i,r,e)?(n=C(A,r,e),B(t)&&(n=t(n),C(o,r,e,n))):B(a)&&(n=a(),C(o,r,e,n)),n};Xe({target:"Map",proto:!0,real:!0,forced:!0},{upsert:su}),Xe({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:su});var cu=Zl,lu=r((function(e){e.exports=function(e){var t;return-1!==ic(t=Function.toString.call(e)).call(t,"[native code]")},e.exports.__esModule=!0,e.exports.default=e.exports}));n(lu);var uu=rn,fu=po,hu=r((function(e){e.exports=function(){if("undefined"==typeof Reflect||!uu)return!1;if(uu.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(uu(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports}));n(hu);var du=r((function(e){function t(n,r,A){return hu()?(e.exports=t=uu,e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=t=function(e,t,n){var r=[null];r.push.apply(r,t);var A=new(fu(Function).apply(e,r));return n&&zi(A,n.prototype),A},e.exports.__esModule=!0,e.exports.default=e.exports),t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}));n(du);var pu=n(r((function(e){function t(n){var r="function"==typeof cu?new cu:void 0;return e.exports=t=function(e){if(null===e||!lu(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return du(e,arguments,oo(this).constructor)}return t.prototype=Yi(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),zi(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})));function gu(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var mu=function(e,t){if(!ci(e)&&no(e)!==t.name.toLowerCase()||!ci(e)&&"array"===t.name.toLowerCase())throw new TypeError("parameter given must be ".concat(t.name));return!0},vu=function(e,t){if(!(e instanceof t))throw new Error("the hook does not correctly inherit");return!0},Bu=function(e){if("object"!==no(e))throw new Error("the hook must be a instance, not a class");return!0},Eu=function(e){qi(n,e);var t=gu(n);function n(e,r){var A;return Pi(this,n),(A=t.call(this,e)).name="Error",A.stack=A.buildStackTrace(r),A}return Gi(n,[{key:"buildStackTrace",value:function(e){var t,n=e&&e.stack?e.stack:"";return uo(t="".concat(this.stack,"\nCaused By: ")).call(t,n)}}]),n}(pu(Error));function yu(e,t,n){var r,A;if(-1===e)el.warn(uo(r=uo(A="Duplicate hook name [".concat(t.HOOK_NAME,"] found, hook [")).call(A,t.toString(),"] ")).call(r,isNaN(n)?"":"at index [".concat(n,"] "),"will not take effect."));else if(-2===e){var i;el.warn(uo(i="Hook [".concat(t.toString(),"] ")).call(i,isNaN(n)?"":"at index [".concat(n,"] "),"is not a valid hook, and will not take effect."))}}function Cu(e){return bu(e)||wu(e)}function bu(e){return Object.prototype.isPrototypeOf.call(ml,e)}function wu(e){return Object.prototype.isPrototypeOf.call(Il,e)}function Tu(e){return Cu(e)&&!0===(null==e?void 0:e.Cherry$$CUSTOM)}var _u=function(){function e(t,n){Pi(this,e),this.hookList={},this.hookNameList={},mu(t,Array),this.registerInternalHooks(t,n),this.registerCustomHooks(n.engine.customSyntax,n)}return Gi(e,[{key:"registerInternalHooks",value:function(e,t){var n=this;xi(e).call(e,(function(e,r){yu(n.register(e,t),e,r)}))}},{key:"registerCustomHooks",value:function(e,t){var n=this;if(e){var r=fi(e);xi(r).call(r,(function(r){var A,i,o,a,s={},c=e[r];if(bu(c))i=c;else{if(!bu(a=null==(o=c)?void 0:o.syntaxClass)&&!wu(a))return;i=c.syntaxClass,s.force=Boolean(c.force),c.before?s.before=c.before:c.after&&(s.after=c.after)}Cu(i)?(Mi(i,"Cherry$$CUSTOM",{enumerable:!1,configurable:!1,writable:!1,value:!0}),A=n.register(i,t,s)):A=-2,yu(A,i,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,A,i=t.externals,o=t.engine,a=o.syntax;if(Cu(e)){A=e.HOOK_NAME,r=new e({externals:i,config:(null==a?void 0:a[A])||{},globalConfig:o.global})}else{if("function"!=typeof e)return-2;if(!(r=e(t))||!Cu(r.constructor))return-2;A=r.getName()}if(!1!==a[A]||Tu(e)){var s=r.getType();if(this.hookNameList[A]){var c;if(!Tu(e))return-1;if(!n.force)return-1;var l=this.hookNameList[A].type;this.hookList[l]=Bi(c=this.hookList[l]).call(c,(function(e){return e.getName()!==A}))}if(this.hookNameList[A]={type:s},this.hookList[s]=this.hookList[s]||[],Tu(e)){var u,f,h,d=-1;if(n.before){if(-1===(d=al(u=this.hookList[s]).call(u,(function(e){return e.getName()===n.before}))))el.warn(uo(f="Cannot find hook named [".concat(n.before,"],\n custom hook [")).call(f,A,"] will append to the end of the hooks."))}else if(n.after){var p,g;-1===(d=al(p=this.hookList[s]).call(p,(function(e){return e.getName()===n.after})))?el.warn(uo(g="Cannot find hook named [".concat(n.after,"],\n custom hook [")).call(g,A,"] will append to the end of the hooks.")):d+=1}if(d<0||d>=this.hookList[s].length)this.hookList[s].push(r);else dl(h=this.hookList[s]).call(h,d,0,r)}else this.hookList[s].push(r)}}}]),e}();function Iu(e,t,n){var r=e.begin+e.content+e.end;return n&&(r=r.replace(/\[\\h\]/g,ku).replace(/\\h/g,ku)),new RegExp(r,t||"g")}function Su(){try{return new RegExp("(?<=.)"),!0}catch(e){}return!1}var ku="[ \\t\\u00a0]",Fu="[\\u0021-\\u002F\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e]",xu="[\\u0021-\\u002F\\u003a-\\u0040\\u005b\\u005d\\u005e\\u0060\\u007b-\\u007e \\t\\n“”¥。—《》【】「」·]",Lu=new RegExp([/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+/.source,"@",/[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*/.source].join("")),Uu=new RegExp("^".concat(Lu.source,"$")),Nu=new RegExp('(?:\\S+(?::\\S*)?@)?(?:(?:1\\d\\d|2[01]\\d|22[0-3]|[1-9]\\d?)(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:1\\d\\d|2[0-4]\\d|25[0-4]|[1-9]\\d?))|(?![-_])(?:[-\\w\\xa1-\\xff]{0,63}[^-_]\\.)+(?:[a-zA-Z\\xa1-\\xff]{2,}\\.?))(?::\\d{2,5})?(?:[/?#][^\\s<>\\x00-\\x1f"\\(\\)]*)?'),Du=new RegExp("(?:\\/\\/)".concat(Nu.source)),Ou=new RegExp("^".concat(Nu.source,"$")),Qu=new RegExp("^".concat(Du.source,"$"));function Ru(){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=Iu(n,"g",!0);var r={begin:"(?:^|\\n)(\\n*)",content:["(\\|?[^\\n|]+(\\|[^\\n|]+)+\\|?)","\\n","(?:\\|?\\h*:?[-]{1,}:?[\\h]*(?:\\|[\\h]*:?[-]{1,}:?\\h*)+\\|?)","((\\n\\|?([^\\n|]+(\\|[^\\n|]*)+)\\|?)*)"].join(""),end:"(?=$|\\n)"};if(r.reg=Iu(r,"g",!0),!1===t)return{strict:n,loose:r};var A=uo(e="(?:".concat(n.begin+n.content+n.end,"|")).call(e,r.begin+r.content+r.end,")");return Iu({begin:"",content:A,end:""},"g",!0)}function Mu(){var e={begin:/(?:^|\n)(\n*(?:[^\S\n]*))```([^`]*?)\n/,content:/([\w\W]*?)/,end:/[^\S\n]*```[ \t]*(?=$|\n+)/};return e.reg=new RegExp(e.begin.source+e.content.source+e.end.source,"g"),e}var Hu=r((function(e){e.exports=function(e){if(kc(e))return Nc(e)},e.exports.__esModule=!0,e.exports.default=e.exports}));n(Hu);var Pu=r((function(e){e.exports=function(e){if(void 0!==Zi&&null!=ai(e)||null!=e["@@iterator"])return Uc(e)},e.exports.__esModule=!0,e.exports.default=e.exports}));n(Pu);var Ku=r((function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports}));n(Ku);var Gu=n(r((function(e){e.exports=function(e){return Hu(e)||Pu(e)||Dc(e)||Ku()},e.exports.__esModule=!0,e.exports.default=e.exports}))),$u=n(r((function(e){e.exports=function(e){return Fc(e)||Pu(e)||Dc(e)||Oc()},e.exports.__esModule=!0,e.exports.default=e.exports})));function Vu(e,t){var n=fi(e);if(di){var r=di(e);t&&(r=Bi(r).call(r,(function(t){return bi(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wu(e){for(var t=1;t<arguments.length;t++){var n,r,A=null!=arguments[t]?arguments[t]:{};t%2?xi(n=Vu(Object(A),!0)).call(n,(function(t){so(e,t,A[t])})):Ni?Oi(e,Ni(A)):xi(r=Vu(Object(A))).call(r,(function(t){Mi(e,t,bi(A,t))}))}return e}function ju(e,t){if(!t.length)return e;var n=[],r=0;return xi(t).call(t,(function(A,i){n.push(yn(e).call(e,r,A.begin)),n.push(A.replacedText),r=A.begin+A.length,i===t.length-1&&n.push(yn(e).call(e,r))})),n.join("")}function Yu(e,t,n){var r,A=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;if(!t)return e;t.lastIndex=0;for(var o=0,a=[];null!==(r=t.exec(e));){var s={begin:r.index,length:r[0].length};if(A&&r.index===o-i){var c,l=r,u=$u(l),f=u[0],h=yn(u).call(u,2);a.push({begin:s.begin+i,length:s.length-i,replacedText:n.apply(void 0,uo(c=[yn(f).call(f,i),""]).call(c,Gu(h)))})}else a.push(Wu(Wu({},s),{},{replacedText:n.apply(void 0,Gu(r))}));o=t.lastIndex,t.lastIndex-=i}return t.lastIndex=0,ju(e,a)}function Xu(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var zu=function(e){qi(n,ml);var t=Xu(n);function n(){return Pi(this,n),t.apply(this,arguments)}return Gi(n,[{key:"toHtml",value:function(e,t,n,r){var A,i;return uo(A=uo(i="".concat(t,'<span style="color:')).call(i,n,'">')).call(A,r,"</span>")}},{key:"makeHtml",value:function(e){return Su()?e.replace(this.RULE.reg,this.toHtml):Yu(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:Su()?"((?<!\\\\))!!":"(^|[^\\\\])!!",end:"!!",content:"(#[0-9a-zA-Z]{3,6}|[a-z]{3,20})[\\s]([\\w\\W]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();function qu(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}so(zu,"HOOK_NAME","fontColor");var Ju=function(e){qi(n,ml);var t=qu(n);function n(){return Pi(this,n),t.apply(this,arguments)}return Gi(n,[{key:"toHtml",value:function(e,t,n,r){var A,i;return uo(A=uo(i="".concat(t,'<span style="background-color:')).call(i,n,'">')).call(A,r,"</span>")}},{key:"makeHtml",value:function(e){return Su()?e.replace(this.RULE.reg,this.toHtml):Yu(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:Su()?"((?<!\\\\))!!!":"(^|[^\\\\])!!!",end:"!!!",content:"(#[0-9a-zA-Z]{3,6}|[a-z]{3,10})[\\s]([\\w\\W]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();function Zu(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}so(Ju,"HOOK_NAME","bgColor");var ef=function(e){qi(n,ml);var t=Zu(n);function n(){return Pi(this,n),t.apply(this,arguments)}return Gi(n,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,'$2<span style="font-size:$4px;line-height:1em;">$5</span>$7'):e}},{key:"rule",value:function(){var e={begin:"((^|[^\\\\])(\\!))",end:"(\\!([\\s\\S]|$))",content:"([0-9]{1,2})[\\s]([\\w\\W]*?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();function tf(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}so(ef,"HOOK_NAME","fontSize");var nf=function(e){qi(n,ml);var t=tf(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0},A=r.config;return Pi(this,n),e=t.call(this,{config:A}),A?(e.needWhitespace=!!A.needWhitespace,e):ro(e)}return Gi(n,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,"$1<del>$2</del>"):e}},{key:"rule",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0},t=e.config,n={};return(n=t.needWhitespace?{begin:"(^|[\\s])\\~T\\~T",end:"\\~T\\~T(?=\\s|$)",content:"([\\w\\W]+?)"}:{begin:"(^|[^\\\\])\\~T\\~T",end:"\\~T\\~T",content:"([\\w\\W]+?)"}).reg=new RegExp(n.begin+n.content+n.end,"g"),n}}]),n}();function rf(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}so(nf,"HOOK_NAME","strikethrough");var Af=function(e){qi(n,ml);var t=rf(n);function n(){return Pi(this,n),t.apply(this,arguments)}return Gi(n,[{key:"toHtml",value:function(e,t,n){var r;return uo(r="".concat(t,"<sup>")).call(r,n,"</sup>")}},{key:"makeHtml",value:function(e){return Su()?e.replace(this.RULE.reg,this.toHtml):Yu(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:Su()?"((?<!\\\\))\\^":"(^|[^\\\\])\\^",end:"\\^",content:"([\\w\\W]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();function of(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}so(Af,"HOOK_NAME","sup");var af=function(e){qi(n,ml);var t=of(n);function n(){return Pi(this,n),t.apply(this,arguments)}return Gi(n,[{key:"toHtml",value:function(e,t,n){var r;return uo(r="".concat(t,"<sub>")).call(r,n,"</sub>")}},{key:"makeHtml",value:function(e){return Su()?e.replace(this.RULE.reg,this.toHtml):Yu(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:Su()?"((?<!\\\\))\\^\\^":"(^|[^\\\\])\\^\\^",end:"\\^\\^",content:"([\\w\\W]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();so(af,"HOOK_NAME","sub");var sf=r((function(e){var n=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},A={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},A.util.type(t)){case"Object":if(i=A.util.objId(t),n[i])return n[i];for(var o in r={},n[i]=r,t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case"Array":return i=A.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,A){r[A]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var A=e.classList;if(A.contains(t))return!0;if(A.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=A.util.clone(A.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||A.languages)[e],o={};for(var a in i)if(i.hasOwnProperty(a)){if(a==t)for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);n.hasOwnProperty(a)||(o[a]=i[a])}var c=r[e];return r[e]=o,A.languages.DFS(A.languages,(function(t,n){n===c&&t!=e&&(this[t]=o)})),o},DFS:function e(t,n,r,i){i=i||{};var o=A.util.objId;for(var a in t)if(t.hasOwnProperty(a)){n.call(t,a,t[a],r||a);var s=t[a],c=A.util.type(s);"Object"!==c||i[o(s)]?"Array"!==c||i[o(s)]||(i[o(s)]=!0,e(s,n,a,i)):(i[o(s)]=!0,e(s,n,null,i))}}},plugins:{},highlightAll:function(e,t){A.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};A.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),A.hooks.run("before-all-elements-highlight",r);for(var i,o=0;i=r.elements[o++];)A.highlightElement(i,!0===t,r.callback)},highlightElement:function(t,n,r){var i=A.util.getLanguage(t),o=A.languages[i];A.util.setLanguage(t,i);var a=t.parentElement;a&&"pre"===a.nodeName.toLowerCase()&&A.util.setLanguage(a,i);var s={element:t,language:i,grammar:o,code:t.textContent};function c(e){s.highlightedCode=e,A.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,A.hooks.run("after-highlight",s),A.hooks.run("complete",s),r&&r.call(s.element)}if(A.hooks.run("before-sanity-check",s),(a=s.element.parentElement)&&"pre"===a.nodeName.toLowerCase()&&!a.hasAttribute("tabindex")&&a.setAttribute("tabindex","0"),!s.code)return A.hooks.run("complete",s),void(r&&r.call(s.element));if(A.hooks.run("before-highlight",s),s.grammar)if(n&&e.Worker){var l=new Worker(A.filename);l.onmessage=function(e){c(e.data)},l.postMessage(JSON.stringify({language:s.language,code:s.code,immediateClose:!0}))}else c(A.highlight(s.code,s.grammar,s.language));else c(A.util.encode(s.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(A.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=A.tokenize(r.code,r.grammar),A.hooks.run("after-tokenize",r),i.stringify(A.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var l=new a;return s(l,l.head,e),function e(t,n,r,a,l,u){for(var f in r)if(r.hasOwnProperty(f)&&r[f]){var h=r[f];h=Array.isArray(h)?h:[h];for(var d=0;d<h.length;++d){if(u&&u.cause==f+","+d)return;var p=h[d],g=p.inside,m=!!p.lookbehind,v=!!p.greedy,B=p.alias;if(v&&!p.pattern.global){var E=p.pattern.toString().match(/[imsuy]*$/)[0];p.pattern=RegExp(p.pattern.source,E+"g")}for(var y=p.pattern||p,C=a.next,b=l;C!==n.tail&&!(u&&b>=u.reach);b+=C.value.length,C=C.next){var w=C.value;if(n.length>t.length)return;if(!(w instanceof i)){var T,_=1;if(v){if(!(T=o(y,b,t,m))||T.index>=t.length)break;var I=T.index,S=T.index+T[0].length,k=b;for(k+=C.value.length;I>=k;)C=C.next,k+=C.value.length;if(k-=C.value.length,b=k,C.value instanceof i)continue;for(var F=C;F!==n.tail&&(k<S||"string"==typeof F.value);F=F.next)_++,k+=F.value.length;_--,w=t.slice(b,k),T.index-=b}else if(!(T=o(y,0,w,m)))continue;I=T.index;var x=T[0],L=w.slice(0,I),U=w.slice(I+x.length),N=b+w.length;u&&N>u.reach&&(u.reach=N);var D=C.prev;L&&(D=s(n,D,L),b+=L.length),c(n,D,_);var O=new i(f,g?A.tokenize(x,g):x,B,x);if(C=s(n,D,O),U&&s(n,C,U),_>1){var Q={cause:f+","+d,reach:N};e(t,n,r,C.prev,b,Q),u&&Q.reach>u.reach&&(u.reach=Q.reach)}}}}}}(e,l,t,l.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(l)},hooks:{all:{},add:function(e,t){var n=A.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=A.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function o(e,t,n,r){e.lastIndex=t;var A=e.exec(n);if(A&&r&&A[1]){var i=A[1].length;A.index+=i,A[0]=A[0].slice(i)}return A}function a(){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 s(e,t,n){var r=t.next,A={value:n,prev:t,next:r};return t.next=A,r.prev=A,e.length++,A}function c(e,t,n){for(var r=t.next,A=0;A<n&&r!==e.tail;A++)r=r.next;t.next=r,r.prev=t,e.length-=A}if(e.Prism=A,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(i.classes,o):i.classes.push(o)),A.hooks.run("wrap",i);var a="";for(var s in i.attributes)a+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+a+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(A.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,o=n.immediateClose;e.postMessage(A.highlight(i,A.languages[r],r)),o&&e.close()}),!1),A):A;var l=A.util.currentScript();function u(){A.manual||A.highlightAll()}if(l&&(A.filename=l.src,l.hasAttribute("data-manual")&&(A.manual=!0)),!A.manual){var f=document.readyState;"loading"===f||"interactive"===f&&l&&l.defer?document.addEventListener("DOMContentLoaded",u):window.requestAnimationFrame?window.requestAnimationFrame(u):window.setTimeout(u,16)}return A}("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<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var A="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",o="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 c=s(i),l=RegExp(s(A+" "+i+" "+o+" "+a)),u=s(i+" "+o+" "+a),f=s(A+" "+i+" "+a),h=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),d=r(/\((?:[^()]|<<self>>)*\)/.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,B=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,v]),E=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,d,v]),y=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[E]),C=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[y,m,v]),b={keyword:l,punctuation:/[<>()?,.:[\]]/},w=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,T=/"(?:\\.|[^\\"\r\n])*"/.source,_=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[_]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[T]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:b},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[p,C]),lookbehind:!0,inside:b},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[p]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[c,g]),lookbehind:!0,inside:b},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:b},{pattern:n(/(\bwhere\s+)<<0>>/.source,[p]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[B]),lookbehind:!0,inside:b},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[C,f,p]),inside:b}],keyword:l,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:b},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[C,m]),inside:b,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[C]),lookbehind:!0,inside:b,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:b}}},"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,[c,g,p,C,l.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:l,"class-name":{pattern:RegExp(C),greedy:!0,inside:b},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 I=T+"|"+w,S=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[I]),k=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[S]),2),F=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,x=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,k]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[F,x]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[F]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[k]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var L=/:[^}\r\n]+/.source,U=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[S]),2),N=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[U,L]),D=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[I]),2),O=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[D,L]);function Q(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,L]),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,[N]),lookbehind:!0,greedy:!0,inside:Q(N,U)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[O]),lookbehind:!0,greedy:!0,inside:Q(O,D)}],char:{pattern:RegExp(w),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(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/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+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/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:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\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:/<!\[CDATA\[[\s\S]*?\]\]>/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"},/"|'/]}},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(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var A={};A[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",A)}}),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:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,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],A=[];/^\w+$/.test(n)||A.push(/\w+/.exec(n)[0]),"diff"===n&&A.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:A,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])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,(function(){return t})),r=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,A=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,(function(){return r})),i={pattern:RegExp(r),greedy:!0},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function a(e,t){return e=e.replace(/<OPT>/g,(function(){return A})).replace(/<SP>/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<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[i,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:a(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:a(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:a(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:i,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},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"],function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",A=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+A+"|"+i+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\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:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(i),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?: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(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,A=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \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("^"+A+i+"(?:"+A+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+A+i+")(?:"+A+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+A+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+A+"$"),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__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\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(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.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<r;n++){var A=t[n];if("code"===A.type){var i=A.content[1],o=A.content[3];if(i&&o&&"code-language"===i.type&&"code-block"===o.type&&"string"==typeof i.content){var a=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),s="language-"+(a=(/[a-z][\w-]*/i.exec(a)||[""])[0].toLowerCase());o.alias?"string"==typeof o.alias?o.alias=[o.alias,s]:o.alias.push(s):o.alias=[s]}}else e(A.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,A=t.classes.length;r<A;r++){var i=t.classes[r],c=/language-(.+)/.exec(i);if(c){n=c[1];break}}var l=e.languages[n];if(l)t.content=e.highlight(function(e){var t=e.replace(o,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n);var r=a[t];return r||e}))}(t.content),l,n);else if(n&&"none"!==n&&e.plugins.autoloader){var u="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=u,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(u);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var o=RegExp(e.languages.markup.tag.pattern.source,"gi"),a={amp:"&",lt:"<",gt:">",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;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var A=[];if(u(["definition-mutation","punctuation"])&&"("===l(1).content){n+=2;var i=f(/^\($/,/^\)$/);if(-1===i)continue;for(;n<i;n++){var o=l(0);"variable"===o.type&&(h(o,"variable-input"),A.push(o.content))}n=i+1}if(u(["punctuation","property-query"])&&"{"===l(0).content&&(n++,h(l(0),"property-mutation"),A.length>0)){var a=f(/^\{$/,/^\}$/);if(-1===a)continue;for(var s=n;s<a;s++){var c=t[s];"variable"===c.type&&A.indexOf(c.content)>=0&&h(c,"variable-input")}}}}function l(e){return t[n+e]}function u(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=l(n+t);if(!r||r.type!==e[n])return!1}return!0}function f(e,r){for(var A=1,i=n;i<t.length;i++){var o=t[i],a=o.content;if("punctuation"===o.type&&"string"==typeof a)if(e.test(a))A++;else if(r.test(a)&&0===--A)return i}return-1}function h(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,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+")",A=RegExp(r+"-"+r),i={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:A,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":i}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":i}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(Prism),Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{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,A,i){if(n.language===r){var o=n.tokenStack=[];n.code=n.code.replace(A,(function(e){if("function"==typeof i&&!i(e))return e;for(var A,a=o.length;-1!==n.code.indexOf(A=t(r,a));)++a;return o[a]=e,A})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var A=0,i=Object.keys(n.tokenStack);!function o(a){for(var s=0;s<a.length&&!(A>=i.length);s++){var c=a[s];if("string"==typeof c||c.content&&"string"==typeof c.content){var l=i[A],u=n.tokenStack[l],f="string"==typeof c?c:c.content,h=t(r,l),d=f.indexOf(h);if(d>-1){++A;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,o([p])),v.push(g),m&&v.push.apply(v,o([m])),"string"==typeof c?a.splice.apply(a,[s,1].concat(v)):c.content=v}}else c.content&&o(c.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,A=t.length;r<A;r++){var i=t[r];i="string"==typeof i?{filter:i,language:i}:i,e.languages[i.language]&&(n["filter-"+i.filter]={pattern:RegExp("((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+".replace("{{filter_name}}",(function(){return i.filter}))),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[i.language,"language-"+i.language],inside:e.languages[i.language]}}})}e.languages.insertBefore("haml","filter",n)}(Prism),function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|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}}),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+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/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,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,A=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;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:A,punctuation:i};var o={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:o}},{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:o}}];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:A,punctuation:i}},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),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:/[(){}\[\],;]/},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,A=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return A})),RegExp(e,t)}A=i(A).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<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:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var o=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(o).join(""):""},a=function(t){for(var n=[],r=0;r<t.length;r++){var A=t[r],i=!1;if("string"!=typeof A&&("tag"===A.type&&A.content[0]&&"tag"===A.content[0].type?"</"===A.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===o(A.content[0].content[1])&&n.pop():"/>"===A.content[A.content.length-1].content||n.push({tagName:o(A.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===A.type&&"{"===A.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===A.type&&"}"===A.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof A)&&n.length>0&&0===n[n.length-1].openedBraces){var s=o(A);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(s+=o(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(s=o(t[r-1])+s,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",s,null,s)}A.content&&"string"!=typeof A.content&&a(A.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+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},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|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|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|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 A=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,o=0;o<A.length;o++)i[A[o]]=e.languages.bash[A[o]];e.languages.shell=e.languages.bash}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,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"];var cf=a.RangeError,lf=String.fromCharCode,uf=String.fromCodePoint,ff=v([].join),hf=!!uf&&1!=uf.length;Xe({target:"String",stat:!0,arity:1,forced:hf},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,A=0;r>A;){if(t=+arguments[A++],kt(t,1114111)!==t)throw cf(t+" is not a valid code point");n[A]=t<65536?lf(t):lf(55296+((t-=65536)>>10),t%1024+56320)}return ff(n,"")}});var df,pf,gf=Q.String.fromCodePoint;function mf(e,t){var n=fi(e);if(di){var r=di(e);t&&(r=Bi(r).call(r,(function(t){return bi(e,t).enumerable}))),n.push.apply(n,r)}return n}function vf(e){for(var t=1;t<arguments.length;t++){var n,r,A=null!=arguments[t]?arguments[t]:{};t%2?xi(n=mf(Object(A),!0)).call(n,(function(t){so(e,t,A[t])})):Ni?Oi(e,Ni(A)):xi(r=mf(Object(A))).call(r,(function(t){Mi(e,t,bi(A,t))}))}return e}var Bf={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&#x27;"},Ef={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},yf=vf(vf(vf(vf(vf(vf({},{34:"&quot;",38:"&amp;",39:"&apos;",60:"&lt;",62:"&gt;"}),{192:"&Agrave;",193:"&Aacute;",194:"&Acirc;",195:"&Atilde;",196:"&Auml;",197:"&Aring;",198:"&AElig;",199:"&Ccedil;",200:"&Egrave;",201:"&Eacute;",202:"&Ecirc;",203:"&Euml;",204:"&Igrave;",205:"&Iacute;",206:"&Icirc;",207:"&Iuml;",208:"&ETH;",209:"&Ntilde;",210:"&Ograve;",211:"&Oacute;",212:"&Ocirc;",213:"&Otilde;",214:"&Ouml;",216:"&Oslash;",217:"&Ugrave;",218:"&Uacute;",219:"&Ucirc;",220:"&Uuml;",221:"&Yacute;",222:"&THORN;",223:"&szlig;",224:"&agrave;",225:"&aacute;",226:"&acirc;",227:"&atilde;",228:"&auml;",229:"&aring;",230:"&aelig;",231:"&ccedil;",232:"&egrave;",233:"&eacute;",234:"&ecirc;",235:"&euml;",236:"&igrave;",237:"&iacute;",238:"&icirc;",239:"&iuml;",240:"&eth;",241:"&ntilde;",242:"&ograve;",243:"&oacute;",244:"&ocirc;",245:"&otilde;",246:"&ouml;",248:"&oslash;",249:"&ugrave;",250:"&uacute;",251:"&ucirc;",252:"&uuml;",253:"&yacute;",254:"&thorn;",255:"&yuml;"}),{160:"&nbsp;",161:"&iexcl;",162:"&cent;",163:"&pound;",164:"&curren;",165:"&yen;",166:"&brvbar;",167:"&sect;",168:"&uml;",169:"&copy;",170:"&ordf;",171:"&laquo;",172:"&not;",173:"&shy;",174:"&reg;",175:"&macr;",176:"&deg;",177:"&plusmn;",178:"&sup2;",179:"&sup3;",180:"&acute;",181:"&micro;",182:"&para;",184:"&cedil;",185:"&sup1;",186:"&ordm;",187:"&raquo;",188:"&frac14;",189:"&frac12;",190:"&frac34;",191:"&iquest;",215:"&times;",247:"&divide;"}),{8704:"&forall;",8706:"&part;",8707:"&exist;",8709:"&empty;",8711:"&nabla;",8712:"&isin;",8713:"&notin;",8715:"&ni;",8719:"&prod;",8721:"&sum;",8722:"&minus;",8727:"&lowast;",8730:"&radic;",8733:"&prop;",8734:"&infin;",8736:"&ang;",8743:"&and;",8744:"&or;",8745:"&cap;",8746:"&cup;",8747:"&int;",8756:"&there4;",8764:"&sim;",8773:"&cong;",8776:"&asymp;",8800:"&ne;",8801:"&equiv;",8804:"&le;",8805:"&ge;",8834:"&sub;",8835:"&sup;",8836:"&nsub;",8838:"&sube;",8839:"&supe;",8853:"&oplus;",8855:"&otimes;",8869:"&perp;",8901:"&sdot;"}),{913:"&Alpha;",914:"&Beta;",915:"&Gamma;",916:"&Delta;",917:"&Epsilon;",918:"&Zeta;",919:"&Eta;",920:"&Theta;",921:"&Iota;",922:"&Kappa;",923:"&Lambda;",924:"&Mu;",925:"&Nu;",926:"&Xi;",927:"&Omicron;",928:"&Pi;",929:"&Rho;",931:"&Sigma;",932:"&Tau;",933:"&Upsilon;",934:"&Phi;",935:"&Chi;",936:"&Psi;",937:"&Omega;",945:"&alpha;",946:"&beta;",947:"&gamma;",948:"&delta;",949:"&epsilon;",950:"&zeta;",951:"&eta;",952:"&theta;",953:"&iota;",954:"&kappa;",955:"&lambda;",956:"&mu;",957:"&nu;",958:"&xi;",959:"&omicron;",960:"&pi;",961:"&rho;",962:"&sigmaf;",963:"&sigma;",964:"&tau;",965:"&upsilon;",966:"&phi;",967:"&chi;",968:"&psi;",969:"&omega;",977:"&thetasym;",978:"&upsih;",982:"&piv;"}),{338:"&OElig;",339:"&oelig;",352:"&Scaron;",353:"&scaron;",376:"&Yuml;",402:"&fnof;",710:"&circ;",732:"&tilde;",8194:"&ensp;",8195:"&emsp;",8201:"&thinsp;",8204:"&zwnj;",8205:"&zwj;",8206:"&lrm;",8207:"&rlm;",8211:"&ndash;",8212:"&mdash;",8216:"&lsquo;",8217:"&rsquo;",8218:"&sbquo;",8220:"&ldquo;",8221:"&rdquo;",8222:"&bdquo;",8224:"&dagger;",8225:"&Dagger;",8226:"&bull;",8230:"&hellip;",8240:"&permil;",8242:"&prime;",8243:"&Prime;",8249:"&lsaquo;",8250:"&rsaquo;",8254:"&oline;",8364:"&euro;",8482:"&trade;",8592:"&larr;",8593:"&uarr;",8594:"&rarr;",8595:"&darr;",8596:"&harr;",8629:"&crarr;",8968:"&lceil;",8969:"&rceil;",8970:"&lfloor;",8971:"&rfloor;",9674:"&loz;",9824:"&spades;",9827:"&clubs;",9829:"&hearts;",9830:"&diams;"}),Cf=fi(yf),bf=Cl(Cf).call(Cf,(function(e){return yf[e].replace(/^&(\w+);$/g,(function(e,t){return t.toLowerCase()}))})),wf=function(e){return"string"!=typeof e||e.length<=0},Tf=function(e){try{var t=gf(e);return!wf(t)}catch(e){return!1}};var _f=["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("|"),If=["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("|"),Sf=new RegExp(uo(df=uo(pf="^(".concat(_f,"|")).call(pf,If,"|")).call(df,"br|img|hr",")( |$|/)"),"i");function kf(e,t){return"string"!=typeof e?"":t?e.replace(/[<>&]/g,(function(e){return Bf[e]||e})):e.replace(/[<>&"']/g,(function(e){return Bf[e]||e}))}function Ff(e,t){if("string"!=typeof e)return"";var n=xf(e);return kf(n=function(e){return"string"!=typeof e?"":e.replace(/&(\w+);?/g,(function(e,t){return Ef[t]||e}))}(n),t)}function xf(e){return e.replace(/&#(\d+);?/g,(function(e,t){return yf[t]||e}))}function Lf(e){var t=function(e){return e.replace(/&#x([0-9a-f]+);?/gi,(function(e,t){var n=jc("0x".concat(t),16);try{return gf(n)}catch(t){return e}}))}(function(e){return e.replace(/&#(\d+);?/g,(function(e,t){try{return gf(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===Rc(n).call(n,r.toLowerCase())}function Uf(e){return encodeURI(e).replace(/[!'()*]/g,(function(e){return"%".concat(e.charCodeAt(0).toString(16))})).replace(/%25/g,"%")}function Nf(e,t){var n=fi(e);if(di){var r=di(e);t&&(r=Bi(r).call(r,(function(t){return bi(e,t).enumerable}))),n.push.apply(n,r)}return n}function Df(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}sf.manual=!0;var Of={figure:"figure"},Qf=function(e){qi(n,Il);var t=Df(n);function n(e){e.externals;var r,A,i=e.config;(Pi(this,n),r=t.call(this,{needCache:!0}),n.inlineCodeCache={},r.codeCache={},r.customLang=[],r.customParser={},r.wrap=i.wrap,r.lineNumber=i.lineNumber,r.indentedCodeBlock=void 0===i.indentedCodeBlock||i.indentedCodeBlock,i&&i.customRenderer)&&(r.customLang=Cl(A=fi(i.customRenderer)).call(A,(function(e){return e.toLowerCase()})),r.customParser=function(e){for(var t=1;t<arguments.length;t++){var n,r,A=null!=arguments[t]?arguments[t]:{};t%2?xi(n=Nf(Object(A),!0)).call(n,(function(t){so(e,t,A[t])})):Ni?Oi(e,Ni(A)):xi(r=Nf(Object(A))).call(r,(function(t){Mi(e,t,bi(A,t))}))}return e}({},i.customRenderer));return r.customHighlighter=i.highlighter,r}return Gi(n,[{key:"$codeCache",value:function(e,t){return e&&t&&(this.codeCache[e]=t),this.codeCache[e]?this.codeCache[e]:(this.codeCache.length>40&&(this.codeCache.length=0),!1)}},{key:"parseCustomLanguage",value:function(e,t,n){var r,A,i,o,a,s=this.customParser[e];if(!s||"function"!=typeof s.render)return!1;var c=s.render(t,n.sign,this.$engine);if(!c)return!1;var l=Of[s.constructor.TYPE]||"div";return uo(r=uo(A=uo(i=uo(o=uo(a="<".concat(l,' data-sign="')).call(a,n.sign,'" data-type="')).call(o,e,'" data-lines="')).call(i,n.lines,'">')).call(A,c,"</")).call(r,l,">")}},{key:"fillTag",value:function(e){var t=[];return Cl(e).call(e,(function(e){if(!e)return"";for(var n=e;t.length;){var r,A=t.pop();n=uo(r="".concat(A)).call(r,n)}var i=n.match(/<span class="(.+?)">|<\/span>/g),o=0;if(!i)return n;for(;i.length;){var a=i.pop();/<\/span>/.test(a)?o+=1:o?o-=1:t.unshift(a.match(/<span class="(.+?)">/)[0])}for(var s=0;s<t.length;s++)n="".concat(n,"</span>");return n}))}},{key:"renderLineNumber",value:function(e){if(!this.lineNumber)return e;var t=e.split("\n");return t.pop(),t=this.fillTag(t),'<span class="code-line">'.concat(t.join('</span>\n<span class="code-line">'),"</span>")}},{key:"isInternalCustomLangCovered",value:function(e){var t;return-1!==Rc(t=this.customLang).call(t,e)}},{key:"computeLines",value:function(e,t,n){var r=t,A=this.getLineCount(e,r);return{sign:this.$engine.md5(e.replace(/^\n+/,"")+A),lines:A}}},{key:"appendMermaid",value:function(e,t){var n=e,r=t;if(/^flow([ ](TD|LR))?$/i.test(r)&&!this.isInternalCustomLangCovered(r)){var A,i=r.match(/^flow(?:[ ](TD|LR))?$/i)||[];n=uo(A="graph ".concat(i[1]||"TD","\n")).call(A,n),r="mermaid"}return/^seq$/i.test(r)&&!this.isInternalCustomLangCovered(r)&&(n="sequenceDiagram\n".concat(n),r="mermaid"),"mermaid"===r&&(n=(n=n.replace(/(^[\s]*)stateDiagram-v2\n/,"$1stateDiagram\n")).replace(/(^[\s]*)sequenceDiagram[ \t]*\n[\s]*autonumber[ \t]*\n/,"$1sequenceDiagram\n")),[n,r]}},{key:"wrapCode",value:function(e,t){var n,r;return uo(n=uo(r='<code class="language-'.concat(t)).call(r,this.wrap?" wrap":"",'">')).call(n,e,"</code>")}},{key:"renderCodeBlock",value:function(e,t,n,r){var A,i,o,a=e,s=t;return this.customHighlighter?a=this.customHighlighter(a,s):(s&&sf.languages[s]||(s="javascript"),a=sf.highlight(a,sf.languages[s],s),a=this.renderLineNumber(a)),a=uo(A=uo(i=uo(o='<div data-sign="'.concat(n,'" data-type="codeBlock" data-lines="')).call(o,r,'">\n <div class="cherry-copy-code-block" style="display:none;"><i class="ch-icon ch-icon-copy" title="copy"></i></div>\n <pre class="language-')).call(i,s,'">')).call(A,this.wrapCode(a,s),"</pre>\n </div>")}},{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,A,i=(e.match(/\n/g)||[]).length,o=t.$engine.md5(e),a=uo(r=uo(A='<pre data-sign="'.concat(o,'" data-lines="')).call(A,i,'"><code>')).call(r,kf(n.replace(/\n( {4}|\t)/g,"\n")),"</code></pre>");return bl(e,t.pushCache(a,o,i))})):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,r){var A=this,i=e;i=(i=this.$replaceCodeInIndent(i)).replace(this.RULE.reg,(function(e,t,n,r){var i,o,a,s=r,c=A.computeLines(e,t,r),l=c.sign,u=c.lines,f=A.$codeCache(l);if(f&&""!==f)return A.getCacheWithSpace(A.pushCache(f,l,u),e);s=(s=(s=A.$recoverCodeInIndent(s)).replace(/~D/g,"$")).replace(/~T/g,"~");var h=null!==(i=null==t||null===(o=t.match(/[ ]/g))||void 0===o?void 0:o.length)&&void 0!==i?i:0;if(h>0){var d=new RegExp("(^|\\n)[ ]{1,".concat(h,"}"),"g");s=s.replace(d,"$1")}var p=Ic(n).call(n);if(/^(math|katex|latex)$/i.test(p)&&!A.isInternalCustomLangCovered(p)){var g,m=e.match(/^\s*/g);return uo(g="".concat(m,"~D~D\n")).call(g,s,"~D~D")}var v=A.appendMermaid(s,p),B=Qc(v,2);return s=B[0],p=B[1],-1!==Rc(a=A.customLang).call(a,p.toLowerCase())&&(f=A.parseCustomLanguage(p,s,{lines:u,sign:l}))&&""!==f?(A.$codeCache(l,f),A.getCacheWithSpace(A.pushCache(f,l,u),e)):(s=s.replace(/~X/g,"\\`"),f=(f=A.renderCodeBlock(s,p,l,u)).replace(/\\/g,"\\\\"),f=A.$codeCache(l,f),A.getCacheWithSpace(A.pushCache(f,l,u),e))}));var o=/(`+)(.+?(?:\n.+?)*?)\1/g;return o.test(i)&&(i=(i=(i=i.replace(/\\`/g,"~~not~inlineCode")).replace(o,(function(e,t,r){if("`"===Ic(r).call(r))return e;var i=r.replace(/~~not~inlineCode/g,"\\`");i=(i=A.$replaceSpecialChar(i)).replace(/\\/g,"\\\\");var o="<code>".concat(kf(i),"</code>"),a=A.$engine.md5(o);return n.inlineCodeCache[a]=o,"~~CODE".concat(a,"$")}))).replace(/~~not~inlineCode/g,"\\`")),i=this.$getIndentCodeBlock(i)}},{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 Mu()}},{key:"mounted",value:function(e){}}]),n}();function Rf(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}so(Qf,"HOOK_NAME","codeBlock"),so(Qf,"inlineCodeCache",{});var Mf=function(e){qi(n,Il);var t=Rf(n);function n(){return Pi(this,n),t.apply(this,arguments)}return Gi(n,[{key:"makeHtml",value:function(e){return e}},{key:"afterMakeHtml",value:function(e){var t=e;return fi(Qf.inlineCodeCache).length>0&&(t=t.replace(/~~CODE([0-9a-zA-Z]+)\$/g,(function(e,t){return Qf.inlineCodeCache[t]})),Qf.inlineCodeCache={}),t}},{key:"rule",value:function(){var e={begin:"(`+)[ ]*",end:"[ ]*\\1",content:"(.+?(?:\\n.+?)*?)"};return e.reg=Iu(e,"g"),e}}]),n}();so(Mf,"HOOK_NAME","inlineCode");var Hf=r((function(e){!function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|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;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>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<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var A=e[r]<<16|e[r+1]<<8|e[r+2],i=0;i<4;i++)8*r+6*i<=8*e.length?n.push(t.charAt(A>>>6*(3-i)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,A=0;r<e.length;A=++r%4)0!=A&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*A+8)-1)<<2*A|t.indexOf(e.charAt(r))>>>6-2*A);return n}};e.exports=n}()})),Pf={utf8:{stringToBytes:function(e){return Pf.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(Pf.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}},Kf=Pf,Gf=function(e){return null!=e&&($f(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&$f(e.slice(0,0))}(e)||!!e._isBuffer)};function $f(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Vf=r((function(e){!function(){var t=Hf,n=Kf.utf8,r=Gf,A=Kf.bin,i=function(e,o){e.constructor==String?e=o&&"binary"===o.encoding?A.stringToBytes(e):n.stringToBytes(e):r(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var a=t.bytesToWords(e),s=8*e.length,c=1732584193,l=-271733879,u=-1732584194,f=271733878,h=0;h<a.length;h++)a[h]=16711935&(a[h]<<8|a[h]>>>24)|4278255360&(a[h]<<24|a[h]>>>8);a[s>>>5]|=128<<s%32,a[14+(s+64>>>9<<4)]=s;var d=i._ff,p=i._gg,g=i._hh,m=i._ii;for(h=0;h<a.length;h+=16){var v=c,B=l,E=u,y=f;c=d(c,l,u,f,a[h+0],7,-680876936),f=d(f,c,l,u,a[h+1],12,-389564586),u=d(u,f,c,l,a[h+2],17,606105819),l=d(l,u,f,c,a[h+3],22,-1044525330),c=d(c,l,u,f,a[h+4],7,-176418897),f=d(f,c,l,u,a[h+5],12,1200080426),u=d(u,f,c,l,a[h+6],17,-1473231341),l=d(l,u,f,c,a[h+7],22,-45705983),c=d(c,l,u,f,a[h+8],7,1770035416),f=d(f,c,l,u,a[h+9],12,-1958414417),u=d(u,f,c,l,a[h+10],17,-42063),l=d(l,u,f,c,a[h+11],22,-1990404162),c=d(c,l,u,f,a[h+12],7,1804603682),f=d(f,c,l,u,a[h+13],12,-40341101),u=d(u,f,c,l,a[h+14],17,-1502002290),c=p(c,l=d(l,u,f,c,a[h+15],22,1236535329),u,f,a[h+1],5,-165796510),f=p(f,c,l,u,a[h+6],9,-1069501632),u=p(u,f,c,l,a[h+11],14,643717713),l=p(l,u,f,c,a[h+0],20,-373897302),c=p(c,l,u,f,a[h+5],5,-701558691),f=p(f,c,l,u,a[h+10],9,38016083),u=p(u,f,c,l,a[h+15],14,-660478335),l=p(l,u,f,c,a[h+4],20,-405537848),c=p(c,l,u,f,a[h+9],5,568446438),f=p(f,c,l,u,a[h+14],9,-1019803690),u=p(u,f,c,l,a[h+3],14,-187363961),l=p(l,u,f,c,a[h+8],20,1163531501),c=p(c,l,u,f,a[h+13],5,-1444681467),f=p(f,c,l,u,a[h+2],9,-51403784),u=p(u,f,c,l,a[h+7],14,1735328473),c=g(c,l=p(l,u,f,c,a[h+12],20,-1926607734),u,f,a[h+5],4,-378558),f=g(f,c,l,u,a[h+8],11,-2022574463),u=g(u,f,c,l,a[h+11],16,1839030562),l=g(l,u,f,c,a[h+14],23,-35309556),c=g(c,l,u,f,a[h+1],4,-1530992060),f=g(f,c,l,u,a[h+4],11,1272893353),u=g(u,f,c,l,a[h+7],16,-155497632),l=g(l,u,f,c,a[h+10],23,-1094730640),c=g(c,l,u,f,a[h+13],4,681279174),f=g(f,c,l,u,a[h+0],11,-358537222),u=g(u,f,c,l,a[h+3],16,-722521979),l=g(l,u,f,c,a[h+6],23,76029189),c=g(c,l,u,f,a[h+9],4,-640364487),f=g(f,c,l,u,a[h+12],11,-421815835),u=g(u,f,c,l,a[h+15],16,530742520),c=m(c,l=g(l,u,f,c,a[h+2],23,-995338651),u,f,a[h+0],6,-198630844),f=m(f,c,l,u,a[h+7],10,1126891415),u=m(u,f,c,l,a[h+14],15,-1416354905),l=m(l,u,f,c,a[h+5],21,-57434055),c=m(c,l,u,f,a[h+12],6,1700485571),f=m(f,c,l,u,a[h+3],10,-1894986606),u=m(u,f,c,l,a[h+10],15,-1051523),l=m(l,u,f,c,a[h+1],21,-2054922799),c=m(c,l,u,f,a[h+8],6,1873313359),f=m(f,c,l,u,a[h+15],10,-30611744),u=m(u,f,c,l,a[h+6],15,-1560198380),l=m(l,u,f,c,a[h+13],21,1309151649),c=m(c,l,u,f,a[h+4],6,-145523070),f=m(f,c,l,u,a[h+11],10,-1120210379),u=m(u,f,c,l,a[h+2],15,718787259),l=m(l,u,f,c,a[h+9],21,-343485551),c=c+v>>>0,l=l+B>>>0,u=u+E>>>0,f=f+y>>>0}return t.endian([c,l,u,f])};i._ff=function(e,t,n,r,A,i,o){var a=e+(t&n|~t&r)+(A>>>0)+o;return(a<<i|a>>>32-i)+t},i._gg=function(e,t,n,r,A,i,o){var a=e+(t&r|n&~r)+(A>>>0)+o;return(a<<i|a>>>32-i)+t},i._hh=function(e,t,n,r,A,i,o){var a=e+(t^n^r)+(A>>>0)+o;return(a<<i|a>>>32-i)+t},i._ii=function(e,t,n,r,A,i,o){var a=e+(n^(t|~r))+(A>>>0)+o;return(a<<i|a>>>32-i)+t},i._blocksize=16,i._digestsize=16,e.exports=function(e,n){if(null==e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(i(e,n));return n&&n.asBytes?r:n&&n.asString?A.bytesToString(r):t.bytesToHex(r)}}()})),Wf={},jf=/^cherry-inner:\/\/([0-9a-f]+)$/i;var Yf=function(){function e(){Pi(this,e)}return Gi(e,null,[{key:"isInnerLink",value:function(e){return jf.test(e)}},{key:"set",value:function(e){var t=Vf(e);return Wf[t]=e,"cherry-inner://".concat(t)}},{key:"get",value:function(e){var t,n=null!==(t=e.match(jf))&&void 0!==t?t:[],r=Qc(n,2)[1];if(r)return Wf[r]}},{key:"replace",value:function(e,t){var n,r=null!==(n=e.match(jf))&&void 0!==n?n:[],A=Qc(r,2)[1];if(A)return Wf[A]=t,e}},{key:"restoreAll",value:function(t){return t.replace(/cherry-inner:\/\/([0-9a-f]+)/gi,(function(t){return e.get(t)||t}))}},{key:"clear",value:function(){Wf={}}}]),e}();function Xf(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var zf=function(e){qi(n,ml);var t=Xf(n);function n(e){var r,A=e.config,i=e.globalConfig;return Pi(this,n),(r=t.call(this,{config:A})).urlProcessor=i.urlProcessor,r.openNewPage=A.openNewPage,r}return Gi(n,[{key:"beforeMakeHtml",value:function(e){return e.replace(this.RULE.reg,(function(e){return e.replace(/~D/g,"~1D")}))}},{key:"checkBrackets",value:function(e){for(var t=[],n="[".concat(e,"]"),r=function(e){return 1&yn(n).call(n,0,e).match(/\\*$/)[0].length},A=n.length-1;n[A]&&(A!==n.length-1||!r(A));A--)if("]"!==n[A]||r(A)||t.push("]"),"["===n[A]&&!r(A)&&(t.pop(),!t.length))return{isValid:!0,coreText:yn(n).call(n,A+1,n.length-1),extraLeadingChar:yn(n).call(n,0,A)};return{isValid:!1,coreText:e,extraLeadingChar:""}}},{key:"toHtml",value:function(e,t,n,r,A,i,o){var a=void 0===r?"ref":"url",s="";if("ref"===a)return e;if("url"===a){var c,l=this.checkBrackets(n),u=l.isValid,f=l.coreText,h=l.extraLeadingChar;if(!u)return e;s=A&&""!==Ic(A).call(A)?' title="'.concat(kf(A.replace(/["']/g,"")),'"'):"",o?s+=' target="'.concat(o.replace(/{target\s*=\s*(.*?)}/,"$1"),'"'):this.openNewPage&&(s+=' target="_blank"');var d,p,g,m=Ic(r).call(r).replace(/~1D/g,"~D"),v=f.replace(/~1D/g,"~D");return Lf(m)?(m=Uf(m=this.urlProcessor(m,"link")),uo(d=uo(p=uo(g="".concat(t+h,'<a href="')).call(g,Yf.set(m),'" rel="nofollow"')).call(p,s,">")).call(d,v,"</a>")):uo(c="".concat(t+h,"<span>")).call(c,n,"</span>")}return e}},{key:"toStdMarkdown",value:function(e){return e}},{key:"makeHtml",value:function(e){var t,n;return this.test(e)?Su()?e.replace(this.RULE.reg,go(n=this.toHtml).call(n,this)):Yu(e,this.RULE.reg,go(t=this.toHtml).call(t,this),!0,1):e}},{key:"rule",value:function(){var e={begin:Su()?"((?<!\\\\))":"(^|[^\\\\])",content:["\\[([^\\n]+?)\\]","[ \\t]*","".concat("(?:\\(([^\\s)]+)(?:[ \\t]((?:\".*?\")|(?:'.*?')))?\\)|\\[(").concat("(?:[^\\n]*?\\S[^\\n]*?)",")\\]")+")","(\\{target\\s*=\\s*(_blank|_parent|_self|_top)\\})?"].join(""),end:""};return e.reg=Iu(e,"g"),e}}]),n}();so(zf,"HOOK_NAME","link");var qf=a.RangeError;Xe({target:"String",proto:!0},{repeat:function(e){var t=bn(N(this)),n="",r=_t(e);if(r<0||r==1/0)throw qf("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}});var Jf=mn("String").repeat,Zf=String.prototype,eh=function(e){var t=e.repeat;return"string"==typeof e||e===Zf||H(Zf,e)&&t===Zf.repeat?Jf:t};function th(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var nh=function(e){qi(n,ml);var t=th(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0},A=r.config;return Pi(this,n),e=t.call(this,{config:A}),A?(e.allowWhitespace=!!A.allowWhitespace,e):ro(e)}return Gi(n,[{key:"makeHtml",value:function(e,t){var n=function(e,n,r,A){var i,o,a,s,c,l=r.length%2==1?"em":"strong",u=Math.floor(r.length/2),f=eh(i="<strong>").call(i,u),h=eh(o="</strong>").call(o,u);return"em"===l&&(f+="<em>",h="</em>".concat(h)),uo(a=uo(s=uo(c="".concat(n)).call(c,f)).call(s,t(A).html.replace(/_/g,"~U"))).call(a,h)},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,A,i,o){var a,s,c,l,u;if(""===Ic(A).call(A))return e;var f=r.length%2==1?"em":"strong",h=Math.floor(r.length/2),d=eh(a="<strong>").call(a,h),p=eh(s="</strong>").call(s,h),g=t(A).html;return"em"===f&&(d+="<em>",p="</em>".concat(p)),uo(c=uo(l=uo(u="".concat(n)).call(u,d)).call(l,g)).call(c,p)}))).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},t=e.config,n=!!t&&!!t.allowWhitespace,r=n?"(?:.*?)(?:(?:\\n.*?)*?)":"(?:(?:\\S|(?:\\S.*?\\S))(?:[ \\t]*\\n.*?)*?)",A={begin:"(^|[^\\\\])(\\*+)",content:"(".concat(r,")"),end:"\\2"},i={begin:"(^|".concat(xu,")(_+)"),content:"(".concat(r,")"),end:"\\2(?=".concat(xu,"|$)")};return A.reg=Iu(A,"g"),i.reg=Iu(i,"g"),{asterisk:A,underscore:i}}}]),n}();function rh(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}so(nh,"HOOK_NAME","fontEmphasis");var Ah=function(e){qi(n,Il);var t=rh(n);function n(e){var r;return Pi(this,n),(r=t.call(this)).classicBr=e.globalConfig.classicBr,r.removeBrAfterBlock=null,r.removeBrBeforeBlock=null,r.removeNewlinesBetweenTags=null,r}return Gi(n,[{key:"$cleanParagraph",value:function(e){var t=this.$engine.$cherry.options.engine.global.classicBr,n=e.replace(/^\n+/,"").replace(/\n+$/,"");return t?n:this.joinRawHtml(n).replace(/\n/g,"<br>").replace(/\r/g,"\n")}},{key:"joinRawHtml",value:function(e){if(!this.removeBrAfterBlock){var t,n,r,A,i=null!==(t=null===(n=this.$engine.htmlWhiteListAppend)||void 0===n?void 0:n.split("|"))&&void 0!==t?t:[];i=Bi(r=Cl(i).call(i,(function(e){return/[a-z-]+/gi.test(e)?e:null}))).call(r,(function(e){return null!==e}));var o=uo(i).call(i,_f).join("|");this.removeBrAfterBlock=new RegExp("<(".concat(o,")(>| [^>]*?>)[^\\S\\n]*?\\n"),"ig"),this.removeBrBeforeBlock=new RegExp("\\n[^\\S\\n]*?<\\/(".concat(o,")>[^\\S\\n]*?\\n"),"ig"),this.removeNewlinesBetweenTags=new RegExp(uo(A="<\\/(".concat(o,")>[^\\S\\n]*?\\n([^\\S\\n]*?)<(")).call(A,o,")(>| [^>]*?>)"),"ig")}return e.replace(this.removeBrAfterBlock,"<$1$2").replace(this.removeBrBeforeBlock,"</$1>").replace(this.removeNewlinesBetweenTags,"</$1>\r$2<$3$4")}},{key:"makeHtml",value:function(e,t){var n=this;return this.test(e)?e.replace(this.RULE.reg,(function(e,r,A){var i;if(n.isContainsCache(e,!0))return e;var o,a=function(e){var r,A,i,o,a,s;if(""===Ic(e).call(e))return"";var c=t(e),l=c.sign,u=c.html,f="p";new RegExp("<(".concat(_f,")[^>]*>"),"i").test(u)&&(f="div");var h=n.getLineCount(e,e);return uo(r=uo(A=uo(i=uo(o=uo(a=uo(s="<".concat(f,' data-sign="')).call(s,l)).call(a,h,'" data-type="')).call(o,f,'" data-lines="')).call(i,h,'">')).call(A,n.$cleanParagraph(u),"</")).call(r,f,">")};return n.isContainsCache(A)?n.makeExcludingCached(uo(o="".concat(r)).call(o,A),a):a(uo(i="".concat(r)).call(i,A))})):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}();so(Ah,"HOOK_NAME","normalParagraph");var ih=function(e){return void 0!==e&&(ce(e,"value")||ce(e,"writable"))};Xe({target:"Reflect",stat:!0},{get:function e(t,n){var r,A,i=arguments.length<3?t:arguments[2];return Pe(t)===i?t[n]:(r=Se.f(t,n))?ih(r)?r.value:void 0===r.get?void 0:C(r.get,i):O(A=zn(t))?e(A,n,i):void 0}});var oh=Q.Reflect.get,ah=Ci,sh=r((function(e){e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=oo(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports}));n(sh);var ch=n(r((function(e){function t(){return"undefined"!=typeof Reflect&&oh?(e.exports=t=oh,e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=t=function(e,t,n){var r=sh(e,t);if(r){var A=ah(r,t);return A.get?A.get.call(arguments.length<3?e:n):A.value}},e.exports.__esModule=!0,e.exports.default=e.exports),t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})));function lh(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var uh=/[\s\-_]/,fh=/[A-Za-z]/,hh=/[0-9]/,dh=function(e){qi(n,Il);var t=lh(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0,externals:void 0},A=(r.externals,r.config);return Pi(this,n),(e=t.call(this,{needCache:!0})).strict=!A||!!A.strict,e.RULE=e.rule(),e.headerIDCache=[],e.headerIDCounter={},e.config=A||{},e}return Gi(n,[{key:"$parseTitleText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"string"!=typeof e?"":e.replace(/<.*?>/g,"").replace(/&#60;/g,"<").replace(/&#62;/g,">")}},{key:"$generateId",value:function(e){for(var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.length,r="",A=0;A<n;A++){var i=e.charAt(A);if(fh.test(i))r+=t?i.toLowerCase():i;else if(hh.test(i))r+=i;else if(uh.test(i))r+=r.length<1||"-"!==r.charAt(r.length-1)?"-":"";else if(i.charCodeAt(0)>255)try{r+=encodeURIComponent(i)}catch(e){}}return r}},{key:"generateIDNoDup",value:function(e){var t,n=e.replace(/&#60;/g,"<").replace(/&#62;/g,">"),r=this.$generateId(n,!0),A=Rc(t=this.headerIDCache).call(t,r);if(-1!==A)this.headerIDCounter[A]+=1,r+="-".concat(this.headerIDCounter[A]+1);else{var i=this.headerIDCache.push(r);this.headerIDCounter[i-1]=1}return r}},{key:"$wrapHeader",value:function(e,t,n,r){var A,i,o,a,s,c,l,u=r(Ic(e).call(e)),f=u.html,h=f.match(/\s+\{#([A-Za-z0-9-]+)\}$/);null!==h&&(f=f.substring(0,h.index),l=Qc(h,2)[1]);var d=this.$parseTitleText(f);if(!l){l=this.generateIDNoDup(d.replace(/~fn#([0-9]+)#/g,""))}var p=this.$engine.md5(uo(A=uo(i=uo(o="".concat(t,"-")).call(o,u.sign,"-")).call(i,l,"-")).call(A,n));return{html:[uo(a=uo(s=uo(c="<h".concat(t,' id="')).call(c,l,'" data-sign="')).call(s,p,'" data-lines="')).call(a,n,'">'),this.$getAnchor(l),"".concat(f),"</h".concat(t,">")].join(""),sign:"".concat(p)}}},{key:"$getAnchor",value:function(e){return"none"===(this.config.anchorStyle||"default")?"":'<a class="anchor" href="#'.concat(e,'"></a>')}},{key:"beforeMakeHtml",value:function(e){var t=this,n=e;return this.test(n,"atx")&&(n=n.replace(this.RULE.atx.reg,(function(e,n,r,A){return""===Ic(A).call(A)?e:t.getCacheWithSpace(t.pushCache(e),e,!0)}))),this.test(n,"setext")&&(n=n.replace(this.RULE.setext.reg,(function(e,n,r){return""===Ic(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,"atx")&&(r=r.replace(this.RULE.atx.reg,(function(e,r,A,i){var o=wl(r,n.getLineCount(e.replace(/^\n+/,""))),a=i.replace(/\s+#+\s*$/,""),s=n.$wrapHeader(a,A.length,o,t),c=s.html,l=s.sign;return n.getCacheWithSpace(n.pushCache(c,l,o),e,!0)}))),this.test(r,"setext")&&(r=r.replace(this.RULE.setext.reg,(function(e,r,A,i){if(n.isContainsCache(A))return e;var o=wl(r,n.getLineCount(e.replace(/^\n+/,""))),a="-"===i[0]?2:1,s=n.$wrapHeader(A,a,o,t),c=s.html,l=s.sign;return n.getCacheWithSpace(n.pushCache(c,l,o),e,!0)}))),r}},{key:"afterMakeHtml",value:function(e){var t=ch(ao(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=Iu(e,"g",!0);var t={begin:"(?:^|\\n)(\\n*)(?:\\h*(#{1,6}))",content:"(.+?)",end:"(?=$|\\n)"};return this.strict&&(t.begin+="(?=\\h+)"),t.reg=Iu(t,"g",!0),{setext:e,atx:t}}}]),n}();function ph(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}so(dh,"HOOK_NAME","header");var gh=function(e){qi(n,ml);var t=ph(n);function n(){return Pi(this,n),t.apply(this,arguments)}return Gi(n,[{key:"rule",value:function(){var e={};return e.reg=new RegExp(""),e}},{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}();so(gh,"HOOK_NAME","transfer");var mh=a.TypeError,vh=function(e){return function(t,n,r,A){ee(n);var i=ae(t),o=L(i),a=Lt(i),s=e?a-1:0,c=e?-1:1;if(r<2)for(;;){if(s in o){A=o[s],s+=c;break}if(s+=c,e?s<0:a<=s)throw mh("Reduce of empty array with no initial value")}for(;e?s>=0:a>s;s+=c)s in o&&(A=n(A,o[s],s,i));return A}},Bh={left:vh(!1),right:vh(!0)},Eh="process"==k(a.process),yh=Bh.left,Ch=wi("reduce");Xe({target:"Array",proto:!0,forced:!Ch||!Eh&&W>79&&W<83},{reduce:function(e){var t=arguments.length;return yh(this,e,t,t>1?arguments[1]:void 0)}});var bh=mn("Array").reduce,wh=Array.prototype,Th=function(e){var t=e.reduce;return e===wh||H(wh,e)&&t===wh.reduce?bh:t};function _h(e,t){var n=fi(e);if(di){var r=di(e);t&&(r=Bi(r).call(r,(function(t){return bi(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ih(e){for(var t=1;t<arguments.length;t++){var n,r,A=null!=arguments[t]?arguments[t]:{};t%2?xi(n=_h(Object(A),!0)).call(n,(function(t){so(e,t,A[t])})):Ni?Oi(e,Ni(A)):xi(r=_h(Object(A))).call(r,(function(t){Mi(e,t,bi(A,t))}))}return e}function Sh(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var kh=function(e){qi(n,Il);var t=Sh(n);function n(e){var r,A=e.externals,i=e.config;Pi(this,n),r=t.call(this,{needCache:!0});var o=i.enableChart,a=i.chartRenderEngine,s=i.externals,c=i.chartEngineOptions,l=void 0===c?{}:c;if(r.chartRenderEngine=null,!0===o)try{r.chartRenderEngine=new a(Ih(Ih({},A&&s instanceof Array&&Th(s).call(s,(function(e,t){return delete l[t],Ih(Ih({},e),{},so({},t,A[t]))}),{})),{},{renderer:"svg",width:500,height:300},l))}catch(e){console.warn(e)}return r}return Gi(n,[{key:"$extendColumns",value:function(e,t){var n,r=t-e.length;return r<1?e:uo(e).call(e,eh(n="&nbsp;|").call(n,r).split("|",r))}},{key:"$parseChartOptions",value:function(e){if(!this.chartRenderEngine)return null;var t=/^[ ]*:(\w+):(?:[ ]*{(.*?)}[ ]*)?$/;if(!t.test(e))return null;var n=e.match(t),r=Qc(n,3),A=r[1],i=r[2];return{type:A,options:i?i.split(/\s*,\s*/):["x","y"]}}},{key:"$parseColumnAlignRules",value:function(e){var t=["U","L","R","C"];return{textAlignRules:Cl(e).call(e,(function(e){var n=Ic(e).call(e),r=0;return/^:/.test(n)&&(r+=1),/:$/.test(n)&&(r+=2),t[r]})),COLUMN_ALIGN_MAP:{L:"left",R:"right",C:"center"}}}},{key:"$parseTable",value:function(e,t,n){var r,A,i,o,a,s,c=this,l=0,u=Cl(e).call(e,(function(e,t){var n=e.replace(/\\\|/g,"~CS").split("|");return""===n[0]&&n.shift(),""===n[n.length-1]&&n.pop(),1!==t&&(l=Math.max(l,n.length)),n})),f=this.$parseColumnAlignRules(u[1]),h=f.textAlignRules,d=f.COLUMN_ALIGN_MAP,p={header:[],rows:[],colLength:l,rowLength:u.length-2},g=this.$parseChartOptions(u[0][0]),m=this.$engine.md5(u[0][0]);g&&(u[0][0]="");var v=Cl(r=this.$extendColumns(u[0],l)).call(r,(function(e,n){var r,A;p.header.push(e.replace(/~CS/g,"\\|"));var i=t(Ic(r=e.replace(/~CS/g,"\\|")).call(r)).html;return uo(A="~CTH".concat(h[n]||"U"," ")).call(A,i," ~CTH$")})).join(""),B=Th(u).call(u,(function(e,n,r){var A;if(r<=1)return e;var i=r-2;p.rows[i]=[];var o=Cl(A=c.$extendColumns(n,l)).call(A,(function(e,n){var r,A;p.rows[i].push(e.replace(/~CS/g,"\\|"));var o=t(Ic(r=e.replace(/~CS/g,"\\|")).call(r)).html;return uo(A="~CTD".concat(h[n]||"U"," ")).call(A,o," ~CTD$")}));return e.push("~CTR".concat(o.join(""),"~CTR$")),e}),[]).join(""),E=this.$renderTable(d,v,B,n);if(!g)return E;var y=this.chartRenderEngine.render(g.type,g.options,p),C=uo(A=uo(i=uo(o=uo(a='<figure id="table_chart_'.concat(m,"_")).call(a,E.sign,'"\n data-sign="table_chart_')).call(o,m,"_")).call(i,E.sign,'" data-lines="0">')).call(A,y,"</figure>");return{html:uo(s="".concat(C)).call(s,E.html),sign:m+E.sign}}},{key:"$renderTable",value:function(e,t,n,r){var A,i,o,a,s=uo(A="~CTHD".concat(t,"~CTHD$~CTBD")).call(A,n,"~CTBD$"),c=this.$engine.md5(s),l=s.replace(/~CTHD\$/g,"</thead>").replace(/~CTHD/g,"<thead>").replace(/~CTBD\$/g,"</tbody>").replace(/~CTBD/g,"</tbody>").replace(/~CTR\$/g,"</tr>").replace(/~CTR/g,"<tr>").replace(/[ ]?~CTH\$/g,"</th>").replace(/[ ]?~CTD\$/g,"</td>").replace(/~CT(D|H)(L|R|C|U)[ ]?/g,(function(t,n,r){var A="<t".concat(n);return A+="U"===r?">":' align="'.concat(e[r],'">')})).replace(/\\\|/g,"|");return{html:uo(i=uo(o=uo(a='<div class="cherry-table-container" data-sign="'.concat(c)).call(a,r,'" data-lines="')).call(o,r,'">\n <table class="cherry-table">')).call(i,l,"</table></div>"),sign:c}}},{key:"makeHtml",value:function(e,t){var n=this,r=e;return this.test(r,"strict")&&(r=r.replace(this.RULE.strict.reg,(function(e,r){var A,i=n.getLineCount(e,r),o=Cl(A=Ic(e).call(e).split(/\n/)).call(A,(function(e){var t;return Ic(t=String(e)).call(t)})),a=n.$parseTable(o,t,i),s=a.html,c=a.sign;return n.getCacheWithSpace(n.pushCache(s,c,i),e)}))),this.test(r,"loose")&&(r=r.replace(this.RULE.loose.reg,(function(e,r){var A,i=n.getLineCount(e,r),o=Cl(A=Ic(e).call(e).split(/\n/)).call(A,(function(e){var t;return Ic(t=String(e)).call(t)})),a=n.$parseTable(o,t,i),s=a.html,c=a.sign;return n.getCacheWithSpace(n.pushCache(s,c,i),e)}))),r}},{key:"test",value:function(e,t){return this.RULE[t].reg&&this.RULE[t].reg.test(e)}},{key:"rule",value:function(){return Ru()}}]),n}();function Fh(){return"object"===("undefined"==typeof window?"undefined":no(window))}function xh(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}so(kh,"HOOK_NAME","table");var Lh=function(e){qi(n,Il);var t=xh(n);function n(e){var r;return Pi(this,n),(r=t.call(this,{needCache:!0})).classicBr=e.globalConfig.classicBr,r}return Gi(n,[{key:"beforeMakeHtml",value:function(e){var t=this;return this.test(e)?e.replace(this.RULE.reg,(function(e,n,r){if(0===r)return e;var A,i,o=n.match(/\n/g).length,a="br".concat(o),s="",c=t.$engine.$cherry.options.engine.global.classicBr;Fh()?s=c?uo(A='<span data-sign="'.concat(a,'" data-type="br" data-lines="')).call(A,o,'"></span>'):uo(i='<p data-sign="'.concat(a,'" data-type="br" data-lines="')).call(i,o,'">&nbsp;</p>'):s=c?"":"<br/>";var l=t.pushCache(s,a);return"\n\n".concat(l,"\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=Iu(e,"g",!0),e}}]),n}();function Uh(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}so(Lh,"HOOK_NAME","br");var Nh=function(e){qi(n,Il);var t=Uh(n);function n(){return Pi(this,n),t.call(this,{needCache:!0})}return Gi(n,[{key:"beforeMakeHtml",value:function(e){var t=this;return e.replace(this.RULE.reg,(function(e,n){var r,A=(n.match(/\n/g)||[]).length+1,i="hr".concat(A);return bl(e,t.pushCache(uo(r='<hr data-sign="'.concat(i,'" data-lines="')).call(r,A,'" />'),i))}))}},{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}();so(Nh,"HOOK_NAME","hr");var Dh={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=Qc(t,2),A=r[0],i=r[1];return A&&(n=' width="'.concat(A.replace(/[ #]*/g,""),'"')),i&&(n+=' height="'.concat(i.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 A=0;A<r.length;A++)switch(r[A]){case"#border":case"#B":t+="border:1px solid #888888;padding: 2px;box-sizing: border-box;",n+=" cherry-img-border";break;case"#shadow":case"#S":t+="box-shadow:0 2px 15px -5px rgb(0 0 0 / 50%);",n+=" cherry-img-shadow";break;case"#radius":case"#R":t+="border-radius: 15px;",n+=" cherry-img-radius"}return{extendStyles:t,extendClasses:n}},$getAlignment:function(e){var t=e.match(/#(center|right|left|float-right|float-left)/i);if(!t)return"";switch(Qc(t,2)[1]){case"center":return"transform:translateX(-50%);margin-left:50%;display:block;";case"right":return"transform:translateX(-100%);margin-left:100%;margin-right:-100%;display:block;";case"left":return"transform:translateX(0);margin-left:0;display:block;";case"float-right":return"float:right;transform:translateX(0);margin-left:0;display:block;";case"float-left":return"float:left;transform:translateX(0);margin-left:0;display:block;"}}};function Oh(e,t){var n=fi(e);if(di){var r=di(e);t&&(r=Bi(r).call(r,(function(t){return bi(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qh(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var Rh=function(e,t,n,r,A,i,o,a,s){var c=void 0===A?"ref":"url",l="";if("ref"===c)return t;if("url"===c){var u,f,h,d,p,g,m,v,B=Dh.processExtendAttributesInAlt(r),E=Dh.processExtendStyleInAlt(r),y=E.extendStyles,C=E.extendClasses;y&&(y=' style="'.concat(y,'" ')),C&&(C=' class="'.concat(C,'" ')),l=i&&""!==Ic(i).call(i)?' title="'.concat(Ff(i),'"'):"",o&&(l+=" poster=".concat(Uf(o)));var b=s.urlProcessor(A,e),w=uo(u=uo(f=uo(h=uo(d=uo(p=uo(g=uo(m="<".concat(e,' src="')).call(m,Yf.set(Uf(b)),'"')).call(g,l," ")).call(p,B," ")).call(d,y," ")).call(h,C,' controls="controls">')).call(f,Ff(r||""),"</")).call(u,e,">");return uo(v="".concat(n)).call(v,a.videoWrapper?a.videoWrapper(A):w)}return t},Mh=function(e){qi(n,ml);var t=Qh(n);function n(e){var r,A=e.config,i=e.globalConfig;return Pi(this,n),(r=t.call(this,null)).urlProcessor=i.urlProcessor,r.extendMedia={tag:["video","audio"],replacer:{video:function(e,t,n,r,o,a){return Rh("video",e,t,n,r,o,a,A,i)},audio:function(e,t,n,r,o,a){return Rh("audio",e,t,n,r,o,a,A,i)}}},r.RULE=r.rule(r.extendMedia),r}return Gi(n,[{key:"toHtml",value:function(e,t,n,r,A,i){var o=void 0===r?"ref":"url",a="";if("ref"===o)return e;if("url"===o){var s,c,l,u,f,h,d,p=Dh.processExtendAttributesInAlt(n),g=Dh.processExtendStyleInAlt(n),m=g.extendStyles,v=g.extendClasses;m&&(m=' style="'.concat(m,'" ')),v&&(v=' class="'.concat(v,'" ')),a=A&&""!==Ic(A).call(A)?' title="'.concat(Ff(A.replace(/["']/g,"")),'"'):"";var B,E="src",y=this.$engine.$cherry.options;if(y.callback&&y.callback.beforeImageMounted){var C=y.callback.beforeImageMounted(E,r);E=C.srcProp||E,B=C.src||r}return uo(s=uo(c=uo(l=uo(u=uo(f=uo(h=uo(d="".concat(t,"<img ")).call(d,E,'="')).call(h,Yf.set(Uf(this.urlProcessor(B,"image"))),'" ')).call(f,p," ")).call(u,m," ")).call(l,v,' alt="')).call(c,Ff(n||""),'"')).call(s,a,"/>")}return e}},{key:"toMediaHtml",value:function(e,t,n,r,A,i,o,a,s){var c,l;if(!this.extendMedia.replacer[n])return e;for(var u=arguments.length,f=new Array(u>9?u-9:0),h=9;h<u;h++)f[h-9]=arguments[h];return(c=this.extendMedia.replacer[n]).call.apply(c,uo(l=[this,e,t,r,A,i,s]).call(l,f))}},{key:"makeHtml",value:function(e){var t,n,r,A,i=e;this.test(i)&&(i=Su()?i.replace(this.RULE.reg,go(t=this.toHtml).call(t,this)):Yu(i,this.RULE.reg,go(n=this.toHtml).call(n,this),!0,1));this.testMedia(i)&&(i=Su()?i.replace(this.RULE.regExtend,go(r=this.toMediaHtml).call(r,this)):Yu(i,this.RULE.regExtend,go(A=this.toMediaHtml).call(A,this),!0,1));return i}},{key:"testMedia",value:function(e){return this.RULE.regExtend&&this.RULE.regExtend.test(e)}},{key:"rule",value:function(e){var t={begin:Su()?"((?<!\\\\))!":"(^|[^\\\\])!",content:["\\[([^\\n]*?)\\]","[ \\t]*","".concat('(?:\\(([^"][^\\s]+?)(?:[ \\t]((?:".*?")|(?:\'.*?\')))?\\)|\\[(').concat("(?:[^\\n]*?\\S[^\\n]*?)",")\\]")+")"].join(""),end:""};if(e){var n=function(e){for(var t=1;t<arguments.length;t++){var n,r,A=null!=arguments[t]?arguments[t]:{};t%2?xi(n=Oh(Object(A),!0)).call(n,(function(t){so(e,t,A[t])})):Ni?Oi(e,Ni(A)):xi(r=Oh(Object(A))).call(r,(function(t){Mi(e,t,bi(A,t))}))}return e}({},t);n.begin=Su()?"((?<!\\\\))!(".concat(e.tag.join("|"),")"):"(^|[^\\\\])!(".concat(e.tag.join("|"),")"),n.end="({poster=(.*)})?",t.regExtend=Iu(n,"g")}return t.reg=Iu(t,"g"),t}}]),n}();function Hh(e,t){var n=fi(e);if(di){var r=di(e);t&&(r=Bi(r).call(r,(function(t){return bi(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ph(e){for(var t=1;t<arguments.length;t++){var n,r,A=null!=arguments[t]?arguments[t]:{};t%2?xi(n=Hh(Object(A),!0)).call(n,(function(t){so(e,t,A[t])})):Ni?Oi(e,Ni(A)):xi(r=Hh(Object(A))).call(r,(function(t){Mi(e,t,bi(A,t))}))}return e}function Kh(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}so(Mh,"HOOK_NAME","image");function Gh(e){var t;if("object"!==no(e)&&fi(e).length<1)return"";var n=[""];return xi(t=fi(e)).call(t,(function(t){var r;n.push(uo(r="".concat(t,'="')).call(r,e[t],'"'))})),n.join(" ")}function $h(e,t){for(var n=/^(\t|[ ])/,r=e;n.test(r);)t.space+="\t"===r[0]?4:1,r=r.replace(n,"");return r}function Vh(e,t){var n=/^((([*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)([^\r]*?)($|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)))/;return n.test(e)?e.replace(n,(function(e,n,r,A,i){return t.type=r.search(/[*+-]/g)>-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,i})):(t.type="blank",e)}var Wh=Gi((function e(){Pi(this,e),this.index=0,this.space=0,this.type="",this.start=1,this.listStyle="",this.strs=[],this.children=[],this.lines=0})),jh=function(e){qi(n,Il);var t=Kh(n);function n(e){var r,A=e.config;return Pi(this,n),(r=t.call(this,{needCache:!0})).config=A||{},r.tree=[],r.emptyLines=0,r.indentSpace=Math.max(r.config.indentSpace,2),r}return Gi(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]=Ph(Ph({},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,A=0;A<n.length-r;A++){var i=new Wh;if(n[A]=$h(n[A],i),n[A]=Vh(n[A],i),i.strs.push(t(n[A]).html),i.index=A,0!==A){for(var o=A-1;!this.tree[o];)o-=1;if("blank"===i.type)this.addNode(i,A,this.tree[o].parent,o);else{for(;!this.tree[o]||this.tree[o].space>i.space;)o-=1;var a=i.space,s=this.tree[o].space;a<s+this.indentSpace?this.config.listNested&&this.tree[o].type!==i.type?this.addNode(i,A,o):this.addNode(i,A,this.tree[o].parent):a<s+this.indentSpace+4?this.addNode(i,A,o):(i.type="blank",this.addNode(i,A,this.tree[o].parent,o))}}else i.space=-2,this.tree.push(i)}}},{key:"renderSubTree",value:function(e,t,n){var r,A,i,o=this,a=0,s={},c=Th(t).call(t,(function(t,n){var r,A,i,s=o.tree[n],c={},l="<p>".concat(s.strs.join("<br>"),"</p>");s.lines+=o.getLineCount(s.strs.join("\n"));var u=s.children.length?o.renderTree(n):"";e.lines+=s.lines,a+=s.lines;return/<span class="ch-icon ch-icon-(square|check)"><\/span>/.test(l)&&(c.class="check-list-item"),uo(r=uo(A=uo(i="".concat(t,"<li")).call(i,Gh(c),">")).call(A,l)).call(r,u,"</li>")}),"");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),uo(r=uo(A=uo(i="<".concat(n)).call(i,Gh(s),">")).call(A,c,"</")).call(r,n,">")}},{key:"renderTree",value:function(e){var t=this,n=0,r=this.tree[e],A=r.children;return Th(A).call(A,(function(e,i,o){if(0===o)return e;if(t.tree[A[o]].type===t.tree[A[o-1]].type)return e;var a=t.renderSubTree(r,yn(A).call(A,n,o),t.tree[A[o-1]].type);return n=o,e+a}),"")+(A.length?this.renderSubTree(r,yn(A).call(A,n,A.length),this.tree[A[A.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 A=e.replace(/~0$/g,"").replace(/^\n+/,"");this.buildTree(function(e){return e.replace(/^((?:|[\t ]+)[*+-]\s+)\[(\s|x)\]/gm,(function(e,t,n){var r,A=/\s/.test(n)?'<span class="ch-icon ch-icon-square"></span>':'<span class="ch-icon ch-icon-check"></span>';return uo(r="".concat(t)).call(r,A)}))}(A),t);var i=this.renderTree(0);return this.pushCache(i,this.sign)}},{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),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 Yh(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}function Xh(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}so(jh,"HOOK_NAME","list");var zh=function(e){qi(n,Il);var t=Yh(n);function n(){return Pi(this,n),t.call(this,{needCache:!0})}return Gi(n,[{key:"handleMatch",value:function(e,t){var n=this;return e.replace(this.RULE.reg,(function(e,r,A){for(var i,o,a,s=t(A),c=s.sign,l=s.html,u=n.signWithCache(l)||c,f=n.getLineCount(e,r),h=/^(([ \t]{0,3}([*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)([^\r]+?)($|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)))/,d=Xh(r),p=l.split("\n"),g=/^[>\s]+/,m=/>/g,v=1,B=0,E=uo(i=uo(o='<blockquote data-sign="'.concat(u,"_")).call(o,f,'" data-lines="')).call(i,f,'">'),y=0;p[y];y++){if(0!==y){var C=Xh(p[y]);if(C<=d&&h.test(p[y]))break;d=C}var b,w=p[y].replace(g,(function(e){var t=e.match(m);return B=t&&t.length>v?t.length:v,""}));if(v===B&&0!==y&&(E+="<br>"),v<B)E+=eh(b="<blockquote>").call(b,B-v),v=B;E+=w}return E+=eh(a="</blockquote>").call(a,v),n.getCacheWithSpace(n.pushCache(E,u,f),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=Iu(e,"g"),e}}]),n}();function qh(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}so(zh,"HOOK_NAME","blockquote");var Jh=function(e){qi(n,ml);var t=qh(n);function n(e){var r,A=e.config,i=e.globalConfig;return Pi(this,n),(r=t.call(this,{config:A})).urlProcessor=i.urlProcessor,r}return Gi(n,[{key:"isLinkInHtmlAttribute",value:function(e,t,n){for(var r,A=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=A.exec(e))&&!(r.index>t+n);)if(r.index<t&&r.index+r[0].length>=t+n)return!0;return!1}},{key:"isLinkInATag",value:function(e,t,n){for(var r,A=/<a.*>[^<]*<\/a>/g;null!==(r=A.exec(e))&&!(r.index>t+n);)if(r.index<t&&r.index+r[0].length>=t+n)return!0;return!1}},{key:"makeHtml",value:function(e,t){var n=this;return this.test(e)&&(Lu.test(e)||Nu.test(e))?e.replace(this.RULE.reg,(function(e,t,r,A,i,o,a){var s,c,l;if(n.isLinkInHtmlAttribute(a,o,r.length+A.length)||n.isLinkInATag(a,o,r.length+A.length))return e;var u=r.toLowerCase(),f="",h="",d=!0;if(("<"!==t&&"&#60;"!==t||">"!==i&&"&#62;"!==i)&&(f=t,h=i,d=!1),""===Ic(A).call(A)||!d&&""===u&&!/www\./.test(A))return e;switch(u){case"javascript:":return e;case"mailto:":var p,g,m,v;return Uu.test(A)?uo(p=uo(g=uo(m="".concat(f,'<a href="')).call(m,Uf(uo(v="".concat(u)).call(v,A)),'" rel="nofollow">')).call(g,Ff(A),"</a>")).call(p,h):e;case"":var B,E,y,C,b,w;if(f===h||!d)return Uu.test(A)?uo(B=uo(E=uo(y="".concat(f,'<a href="mailto:')).call(y,Uf(A),'" rel="nofollow">')).call(E,Ff(A),"</a>")).call(B,h):Ou.test(A)?uo(C=uo(b="".concat(f)).call(b,n.renderLink("//".concat(A),A))).call(C,h):e;if(d)return Uu.test(A)?uo(w='<a href="mailto:'.concat(Uf(A),'" rel="nofollow">')).call(w,Ff(A),"</a>"):Qu.test(A)||Ou.test(A)?n.renderLink(A):e;default:return Qu.test(A)?uo(s=uo(c="".concat(f)).call(c,n.renderLink(uo(l="".concat(u)).call(l,A)))).call(s,h):e}return e})):e}},{key:"rule",value:function(){var e,t={begin:"(<?)",content:["((?:[a-z][a-z0-9+.-]{1,31}:)?)",uo(e="((?:".concat(Du.source,")|(?:")).call(e,Lu.source,"))")].join(""),end:"(>?)"};return t.reg=Iu(t,"ig"),t}},{key:"renderLink",value:function(e,t){var n,r=t;"string"!=typeof r&&(r=e);var A=this.urlProcessor(e,"autolink");return uo(n='<a href="'.concat(Uf(A),'" rel="nofollow">')).call(n,Ff(r),"</a>")}}]),n}();function Zh(){var e,t,n,r;Fh()&&(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)}so(Jh,"HOOK_NAME","autoLink");var ed=["&","<",">",'"',"'"],td=function(e){return e.replace(new RegExp(Fu,"g"),(function(e){return-1!==Rc(ed).call(ed,e)?kf(e):"\\".concat(e)}))},nd=Cc.trim,rd=v("".charAt),Ad=a.parseFloat,id=a.Symbol,od=id&&id.iterator,ad=1/Ad(gc+"-0")!=-1/0||od&&!s((function(){Ad(Object(od))}))?function(e){var t=nd(bn(e)),n=Ad(t);return 0===n&&"-"==rd(t,0)?-0:n}:Ad;Xe({global:!0,forced:parseFloat!=ad},{parseFloat:ad});var sd=Q.parseFloat,cd=ve("match"),ld=a.TypeError,ud=function(e){if(function(e){var t;return O(e)&&(void 0!==(t=e[cd])?!!t:"RegExp"==k(e))}(e))throw ld("The method doesn't accept regular expressions");return e},fd=ve("match"),hd=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[fd]=!1,"/./"[e](t)}catch(e){}}return!1},dd=v("".startsWith),pd=v("".slice),gd=Math.min,md=hd("startsWith");Xe({target:"String",proto:!0,forced:!md},{startsWith:function(e){var t=bn(N(this));ud(e);var n=xt(gd(arguments.length>1?arguments[1]:void 0,t.length)),r=bn(e);return dd?dd(t,r,n):pd(t,n,n+r.length)===r}});var vd=mn("String").startsWith,Bd=String.prototype,Ed=function(e){var t=e.startsWith;return"string"==typeof e||e===Bd||H(Bd,e)&&t===Bd.startsWith?vd:t};function yd(e,t){var n=sd(e),r=sd(t);return r>=0?n:n>=0?n+r:Math.min(n,r)}function Cd(e){var t=e.previousElementSibling,n=e.nextElementSibling;if(!t){var r=getComputedStyle(e),A=e.getBoundingClientRect();if(!n)return{height:Math.max(sd(r.marginTop)+A.height+sd(r.marginBottom),0),offsetTop:e.offsetTop-Math.abs(sd(r.marginTop))};var i=getComputedStyle(n),o=yd(r.marginBottom,i.marginTop);return{height:Math.max(sd(r.marginTop)+A.height+o,0),offsetTop:e.offsetTop-Math.abs(sd(r.marginTop))}}var a,s,c,l,u=getComputedStyle(e),f=e.getBoundingClientRect(),h=getComputedStyle(t),d=(a=h.marginBottom,s=u.marginTop,c=sd(a),(l=sd(s))<0?0:c>=0?Math.max(l-c,0):l);if(!n)return{height:Math.max(d+f.height+sd(u.marginBottom),0),offsetTop:e.offsetTop-Math.abs(sd(u.marginTop))};var p=getComputedStyle(n),g=yd(u.marginBottom,p.marginTop);return{height:Math.max(d+f.height+g,0),offsetTop:e.offsetTop-Math.abs(d)}}function bd(e,t){if(!e||!e.tagName)return"";var n,r,A=document.createElement("div");return A.appendChild(e.cloneNode(!1)),n=A.innerHTML,t&&(r=Rc(n).call(n,">")+1,n=n.substring(0,r)+e.innerHTML+n.substring(r)),A=null,n}function wd(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},A=document.createElement(e);(A.className=n,void 0!==r)&&xi(t=fi(r)).call(t,(function(e){var t=r[e];if(Ed(e).call(e,"data-")){var n=e.replace(/^data-/,"");A.dataset[n]=t}else A.setAttribute(e,t)}));return A}function Td(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var _d=function(e){qi(n,Il);var t=Td(n);function n(e){var r,A,i=e.config;return Pi(this,n),A=t.call(this,{needCache:!0}),so(Vi(A),"engine","MathJax"),so(Vi(A),"katex",void 0),so(Vi(A),"MathJax",void 0),A.engine=Fh()?null!==(r=i.engine)&&void 0!==r?r:"MathJax":"node",A}return Gi(n,[{key:"toHtml",value:function(e,t,n,r){var A,i,o;go(Zh).call(Zh,this)("engine");var a=e.replace(/^[ \f\r\t\v]*/,"").replace(/\s*$/,""),s=t.replace(/^[ \f\r\t\v]*\n/,""),c=this.$engine.md5(e),l=this.getLineCount(a,s);if(/\n/.test(t)||(l-=1),/\n\s*$/.test(e)||(l-=1),l=l>0?l:0,"katex"===this.engine){var u,f,h=this.katex.renderToString(r,{throwOnError:!1,displayMode:!0}),d=uo(u=uo(f='<div data-sign="'.concat(c,'" class="Cherry-Math" data-type="mathBlock"\n data-lines="')).call(f,l,'">')).call(u,h,"</div>");return n+this.getCacheWithSpace(this.pushCache(d,c,l),e)}if(null!==(A=this.MathJax)&&void 0!==A&&A.tex2svg){var p,g,m=bd(this.MathJax.tex2svg(r),!0),v=uo(p=uo(g='<div data-sign="'.concat(c,'" class="Cherry-Math" data-type="mathBlock"\n data-lines="')).call(g,l,'">')).call(p,m,"</div>");return n+this.getCacheWithSpace(this.pushCache(v,c,l),e)}var B=uo(i=uo(o='<div data-sign="'.concat(c,'" class="Cherry-Math" data-type="mathBlock"\n data-lines="')).call(o,l,'">$$')).call(i,td(r),"$$</div>");return n+this.getCacheWithSpace(this.pushCache(B,c,l),e)}},{key:"beforeMakeHtml",value:function(e){var t,n;return Su()?e.replace(this.RULE.reg,go(n=this.toHtml).call(n,this)):Yu(e,this.RULE.reg,go(t=this.toHtml).call(t,this),!0,1)}},{key:"makeHtml",value:function(e){return e}},{key:"rule",value:function(){var e={begin:Su()?"(\\s*)((?<!\\\\))~D~D\\s*":"(\\s*)(^|[^\\\\])~D~D\\s*",content:"([\\w\\W]*?)",end:"(\\s*)~D~D(?:\\s{0,1})"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();function Id(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}so(_d,"HOOK_NAME","mathBlock");var Sd=function(e){qi(n,Il);var t=Id(n);function n(e){var r,A,i=e.config;return Pi(this,n),A=t.call(this,{needCache:!0}),so(Vi(A),"engine","MathJax"),so(Vi(A),"katex",void 0),so(Vi(A),"MathJax",void 0),A.engine=Fh()?null!==(r=i.engine)&&void 0!==r?r:"MathJax":"node",A}return Gi(n,[{key:"toHtml",value:function(e,t,n){var r,A,i,o;if(!n)return e;go(Zh).call(Zh,this)("engine");var a=n.match(/\n/g),s=a?a.length+2:2,c=this.$engine.md5(e);if("katex"===this.engine&&null!==(r=this.katex)&&void 0!==r&&r.renderToString){var l,u,f=this.katex.renderToString(n,{throwOnError:!1}),h=uo(l=uo(u="".concat(t,'<span class="Cherry-InlineMath" data-type="mathBlock" data-lines="')).call(u,s,'">')).call(l,f,"</span>");return this.pushCache(h,Il.IN_PARAGRAPH_CACHE_KEY_PREFIX+c)}if(null!==(A=this.MathJax)&&void 0!==A&&A.tex2svg){var d,p,g=bd(this.MathJax.tex2svg(n,{em:12,ex:6,display:!1}),!0),m=uo(d=uo(p="".concat(t,'<span class="Cherry-InlineMath" data-type="mathBlock" data-lines="')).call(p,s,'">')).call(d,g,"</span>");return this.pushCache(m,Il.IN_PARAGRAPH_CACHE_KEY_PREFIX+c)}var v=uo(i=uo(o="".concat(t,'<span class="Cherry-InlineMath" data-type="mathBlock"\n data-lines="')).call(o,s,'">$')).call(i,td(n),"$</span>");return this.pushCache(v,Il.IN_PARAGRAPH_CACHE_KEY_PREFIX+c)}},{key:"beforeMakeHtml",value:function(e){var t,n;return this.test(e)?Su()?e.replace(this.RULE.reg,go(n=this.toHtml).call(n,this)):Yu(e,this.RULE.reg,go(t=this.toHtml).call(t,this),!0,1):e}},{key:"makeHtml",value:function(e){return e}},{key:"rule",value:function(){var e={begin:Su()?"((?<!\\\\))~D\\n?":"(^|[^\\\\])~D\\n?",content:"(.*?)\\n?",end:"~D"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();so(Sd,"HOOK_NAME","inlineMath");Xe({target:"Array",proto:!0},{fill:function(e){for(var t=ae(this),n=Lt(t),r=arguments.length,A=kt(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,o=void 0===i?n:kt(i,n);o>A;)t[A++]=e;return t}});var kd=mn("Array").fill,Fd=Array.prototype,xd=function(e){var t=e.fill;return e===Fd||H(Fd,e)&&t===Fd.fill?kd:t};function Ld(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}function Ud(e){return e}var Nd={tocStyle:"plain",tocNodeClass:"toc-li",tocContainerClass:"toc",tocTitleClass:"toc-title",linkProcessor:Ud},Dd=function(e){qi(n,Il);var t=Ld(n);function n(e){e.externals;var r,A,i=e.config;return Pi(this,n),A=t.call(this,{needCache:!0}),so(Vi(A),"tocStyle","nested"),so(Vi(A),"tocNodeClass","toc-li"),so(Vi(A),"tocContainerClass","toc"),so(Vi(A),"tocTitleClass","toc-title"),so(Vi(A),"linkProcessor",Ud),so(Vi(A),"baseLevel",1),so(Vi(A),"isFirstTocToken",!0),so(Vi(A),"allowMultiToc",!1),xi(r=fi(Nd)).call(r,(function(e){A[e]=i[e]||Nd[e]})),A}return Gi(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 A;if(!t.allowMultiToc&&!t.isFirstTocToken)return uo(A="\n".concat(n)).call(A,'<p data-sign="empty-toc" data-lines="1">&nbsp;</p>');var i=t.pushCache(e);return t.isFirstTocToken=!1,bl(e,i)}))),this.test(n,"standard")&&(n=n.replace(this.RULE.standard.reg,(function(e,n,r){var A;return t.allowMultiToc||t.isFirstTocToken?(t.isFirstTocToken=!1,bl(e,t.pushCache(e))):uo(A="\n".concat(n)).call(A,'<p data-sign="empty-toc" data-lines="1">&nbsp;</p>')}))),n}},{key:"makeHtml",value:function(e){return e}},{key:"$makeLevel",value:function(e){for(var t="",n=this.baseLevel;n<e;n++)t+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";return t}},{key:"$makeTocItem",value:function(e,t){var n,r,A,i,o,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s="";t&&(s=this.$makeLevel(e.level));var c=this.linkProcessor("#".concat(e.id));return uo(n=uo(r=uo(A=uo(i=uo(o='<li class="'.concat(this.tocNodeClass,'">')).call(o,s,'<a href="')).call(i,c,'" class="level-')).call(A,e.level,'">')).call(r,e.text,"</a>")).call(n,a?"</li>":"")}},{key:"$makePlainToc",value:function(e){var t=this;return Cl(e).call(e,(function(e){return t.$makeTocItem(e,!0)})).join("")}},{key:"$makeNestedToc",value:function(e){var t,n,r=this,A=0,i=xd(t=new Array(7)).call(t,!1),o=xd(n=new Array(7)).call(n,!1),a="";xi(e).call(e,(function(e){var t=e.level;if(0===A){for(var n=t;n>=r.baseLevel;n--)a+="<ul>",o[n]=!0;return a+=r.$makeTocItem(e,!1,!1),i[t]=!0,void(A=t)}if(t<A){for(var s=A;s>=t;s--)i[s]&&(a+="</li>",i[s]=!1),o[s]&&s>t&&(a+="</ul>",o[s]=!1);i[t]=!0,a+=r.$makeTocItem(e,!1,!1),A=t}else if(t===A)i[A]&&(a+="</li>"),a+=r.$makeTocItem(e,!1,!1),i[t]=!0,o[t]=!0;else{for(var c=A+1;c<=t;c++)a+="<ul>",o[c]=!0;i[t]=!0,a+=r.$makeTocItem(e,!1,!1),A=t}}));for(var s=A;s>=this.baseLevel;s--)i[s]&&(a+="</li>",i[s]=!1),o[s]&&(a+="</ul>",o[s]=!1);return a}},{key:"$makeToc",value:function(e,t,n){var r,A,i,o=wl(n,1),a=uo(r=uo(A=uo(i='<dir class="'.concat(this.tocContainerClass,'" data-sign="')).call(i,t,"-")).call(A,o,'" data-lines="')).call(r,o,'">');return a+='<p class="'.concat(this.tocTitleClass,'">目录</p>'),e.length<=0?"":(this.baseLevel=Math.min.apply(Math,Gu(Cl(e).call(e,(function(e){return e.level})))),"nested"===this.tocStyle?a+=this.$makeNestedToc(e):a+=this.$makePlainToc(e),a+="</dir>")}},{key:"afterMakeHtml",value:function(e){var t=this,r=ch(ao(n.prototype),"afterMakeHtml",this).call(this,e),A=[],i="";return r.replace(/<h([1-6]) id="([^"]+?)" data-sign=".+?" data-lines="[0-9]+"><a[^/]+?\/a>(.+?)<\/h\1>/g,(function(e,t,n,r){var o,a=r.replace(/~fn#[0-9]+#/g,"");A.push({level:+t,id:n,text:a}),i+=uo(o="".concat(t)).call(o,n)})),i=this.$engine.md5(i),r=(r=(r=r.replace(/(?:^|\n)(\[\[|\[|【【)(toc|TOC)(\]\]|\]|】】)([<~])/,(function(e){return e.replace(/(\]\]|\]|】】)([<~])/,"$1\n$2")}))).replace(this.RULE.extend.reg,(function(e,n){return t.$makeToc(A,i,n)}))).replace(this.RULE.standard.reg,(function(e,n){return t.$makeToc(A,i,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 Od(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}so(Dd,"HOOK_NAME","toc");var Qd=function(e){qi(n,Il);var t=Od(n);function n(e){var r;e.externals,e.config;return Pi(this,n),(r=t.call(this)).footnoteCache={},r.footnoteMap={},r.footnote=[],r}return Gi(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,A,i,o,a;if(this.footnoteMap[e])return this.footnoteMap[e];var s=this.footnote.length+1,c={};c.fn=uo(n=uo(r=uo(A='<sup><a href="#fn:'.concat(s,'" id="fnref:')).call(A,s,'" title="')).call(r,e,'" class="footnote">[')).call(n,s,"]</a></sup>"),c.fnref=uo(i=uo(o=uo(a='<a href="#fnref:'.concat(s,'" id="fn:')).call(a,s,'" title="')).call(o,e,'" class="footnote-ref">[')).call(i,s,"]</a>"),c.num=s,c.note=Ic(t).call(t),this.footnote.push(c);var l="\0~fn#".concat(s-1,"#\0");return this.footnoteMap[e]=l,l}},{key:"getFootNote",value:function(){return this.footnote}},{key:"formatFootNote",value:function(){var e,t=this.getFootNote();if(t.length<=0)return"";var n=Cl(t).call(t,(function(e){var t;return uo(t='<div class="one-footnote">\n'.concat(e.fnref)).call(t,e.note,"\n</div>")})).join(""),r=this.$engine.md5(n);return n=uo(e='<div class="footnote" data-sign="'.concat(r,'" data-lines="0"><div class="footnote-title">脚注</div>')).call(e,n,"</div>")}},{key:"beforeMakeHtml",value:function(e){var t=this,n=e;return this.test(n)&&(n=(n=n.replace(this.RULE.reg,(function(e,n,r,A){return t.pushFootnoteCache(r,A),(e.match(/\n/g)||[]).join("")}))).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=Iu(e,"g",!0),e}}]),n}();function Rd(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}so(Qd,"HOOK_NAME","footnote");var Md=function(e){qi(n,Il);var t=Rd(n);function n(e){var r;e.externals,e.config;return Pi(this,n),(r=t.call(this)).commentCache={},r}return Gi(n,[{key:"$cleanCache",value:function(){this.commentCache={}}},{key:"pushCommentReferenceCache",value:function(e,t){var n,r=t.split(/[ ]+/g),A=$u(r),i=A[0],o=yn(A).call(A,1),a=Yf.set(i);this.commentCache["".concat(e).toLowerCase()]=uo(n=[a]).call(n,Gu(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=n.replace(this.RULE.reg,(function(e,n,r,A){var i;return t.pushCommentReferenceCache(r,A),(null!==(i=e.match(/\n/g))&&void 0!==i?i:[]).join("")}))).replace(/(\[[^\]\n]+?\])?(?:\[([^\]\n]+?)\])/g,(function(e,n,r){var A,i,o=t.getCommentReferenceCache(r);return o?n?uo(i="".concat(n,"(")).call(i,o,")"):uo(A="[".concat(r,"](")).call(A,o,")"):e})),this.$cleanCache()}return n}},{key:"makeHtml",value:function(e,t){return e}},{key:"afterMakeHtml",value:function(e){return Yf.restoreAll(e)}},{key:"rule",value:function(){var e={begin:"(^|\\n)[ \t]*",content:["\\[([^^][^\\]]*?)\\]:\\h*","([^\\n]+?)"].join(""),end:"(?=$|\\n)"};return e.reg=Iu(e,"g",!0),e}}]),n}();so(Md,"HOOK_NAME","commentReference");var Hd=aA.some,Pd=wi("some");Xe({target:"Array",proto:!0,forced:!Pd},{some:function(e){return Hd(this,e,arguments.length>1?arguments[1]:void 0)}});var Kd=mn("Array").some,Gd=Array.prototype,$d=function(e){var t=e.some;return e===Gd||H(Gd,e)&&t===Gd.some?Kd:t},Vd=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})(t)}function t(e,n){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(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,A,i){return(r=n()?Reflect.construct:function(e,n,r){var A=[null];A.push.apply(A,n);var i=new(Function.bind.apply(e,A));return r&&t(i,r.prototype),i}).apply(null,arguments)}function A(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(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)?i(e,t):void 0}}(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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var o=Object.hasOwnProperty,a=Object.setPrototypeOf,s=Object.isFrozen,c=Object.getPrototypeOf,l=Object.getOwnPropertyDescriptor,u=Object.freeze,f=Object.seal,h=Object.create,d="undefined"!=typeof Reflect&&Reflect,p=d.apply,g=d.construct;p||(p=function(e,t,n){return e.apply(t,n)}),u||(u=function(e){return e}),f||(f=function(e){return e}),g||(g=function(e,t){return r(e,A(t))});var m,v=S(Array.prototype.forEach),B=S(Array.prototype.pop),E=S(Array.prototype.push),y=S(String.prototype.toLowerCase),C=S(String.prototype.match),b=S(String.prototype.replace),w=S(String.prototype.indexOf),T=S(String.prototype.trim),_=S(RegExp.prototype.test),I=(m=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return g(m,t)});function S(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),A=1;A<n;A++)r[A-1]=arguments[A];return p(e,t,r)}}function k(e,t){a&&a(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var A=y(r);A!==r&&(s(t)||(t[n]=A),r=A)}e[r]=!0}return e}function F(e){var t,n=h(null);for(t in e)p(o,e,[t])&&(n[t]=e[t]);return n}function x(e,t){for(;null!==e;){var n=l(e,t);if(n){if(n.get)return S(n.get);if("function"==typeof n.value)return S(n.value)}e=c(e)}return function(e){return console.warn("fallback value for",e),null}}var L=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),U=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),N=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=u(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),O=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Q=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),R=u(["#text"]),M=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),H=u(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),P=u(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),K=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),G=f(/\{\{[\w\W]*|[\w\W]*\}\}/gm),$=f(/<%[\w\W]*|[\w\W]*%>/gm),V=f(/^data-[\-\w.\u00B7-\uFFFF]/),W=f(/^aria-[\-\w]+$/),j=f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=f(/^(?:\w+script|data):/i),X=f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),z=f(/^html$/i),q=function(){return"undefined"==typeof window?null:window},J=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null;n.currentScript&&n.currentScript.hasAttribute("data-tt-policy-suffix")&&(r=n.currentScript.getAttribute("data-tt-policy-suffix"));var A="dompurify"+(r?"#"+r:"");try{return t.createPolicy(A,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+A+" could not be created."),null}};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q(),r=function(e){return t(e)};if(r.version="2.3.8",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var i=n.document,o=n.document,a=n.DocumentFragment,s=n.HTMLTemplateElement,c=n.Node,l=n.Element,f=n.NodeFilter,h=n.NamedNodeMap,d=void 0===h?n.NamedNodeMap||n.MozNamedAttrMap:h,p=n.HTMLFormElement,g=n.DOMParser,m=n.trustedTypes,S=l.prototype,Z=x(S,"cloneNode"),ee=x(S,"nextSibling"),te=x(S,"childNodes"),ne=x(S,"parentNode");if("function"==typeof s){var re=o.createElement("template");re.content&&re.content.ownerDocument&&(o=re.content.ownerDocument)}var Ae=J(m,i),ie=Ae?Ae.createHTML(""):"",oe=o,ae=oe.implementation,se=oe.createNodeIterator,ce=oe.createDocumentFragment,le=oe.getElementsByTagName,ue=i.importNode,fe={};try{fe=F(o).documentMode?o.documentMode:{}}catch(e){}var he={};r.isSupported="function"==typeof ne&&ae&&void 0!==ae.createHTMLDocument&&9!==fe;var de,pe,ge=G,me=$,ve=V,Be=W,Ee=Y,ye=X,Ce=j,be=null,we=k({},[].concat(A(L),A(U),A(N),A(O),A(R))),Te=null,_e=k({},[].concat(A(M),A(H),A(P),A(K))),Ie=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}})),Se=null,ke=null,Fe=!0,xe=!0,Le=!1,Ue=!1,Ne=!1,De=!1,Oe=!1,Qe=!1,Re=!1,Me=!1,He=!0,Pe=!0,Ke=!1,Ge={},$e=null,Ve=k({},["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"]),We=null,je=k({},["audio","video","img","source","image","track"]),Ye=null,Xe=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ze="http://www.w3.org/1998/Math/MathML",qe="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml",Ze=Je,et=!1,tt=["application/xhtml+xml","text/html"],nt="text/html",rt=null,At=o.createElement("form"),it=function(e){return e instanceof RegExp||e instanceof Function},ot=function(t){rt&&rt===t||(t&&"object"===e(t)||(t={}),t=F(t),be="ALLOWED_TAGS"in t?k({},t.ALLOWED_TAGS):we,Te="ALLOWED_ATTR"in t?k({},t.ALLOWED_ATTR):_e,Ye="ADD_URI_SAFE_ATTR"in t?k(F(Xe),t.ADD_URI_SAFE_ATTR):Xe,We="ADD_DATA_URI_TAGS"in t?k(F(je),t.ADD_DATA_URI_TAGS):je,$e="FORBID_CONTENTS"in t?k({},t.FORBID_CONTENTS):Ve,Se="FORBID_TAGS"in t?k({},t.FORBID_TAGS):{},ke="FORBID_ATTR"in t?k({},t.FORBID_ATTR):{},Ge="USE_PROFILES"in t&&t.USE_PROFILES,Fe=!1!==t.ALLOW_ARIA_ATTR,xe=!1!==t.ALLOW_DATA_ATTR,Le=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ue=t.SAFE_FOR_TEMPLATES||!1,Ne=t.WHOLE_DOCUMENT||!1,Qe=t.RETURN_DOM||!1,Re=t.RETURN_DOM_FRAGMENT||!1,Me=t.RETURN_TRUSTED_TYPE||!1,Oe=t.FORCE_BODY||!1,He=!1!==t.SANITIZE_DOM,Pe=!1!==t.KEEP_CONTENT,Ke=t.IN_PLACE||!1,Ce=t.ALLOWED_URI_REGEXP||Ce,Ze=t.NAMESPACE||Je,t.CUSTOM_ELEMENT_HANDLING&&it(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ie.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&it(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ie.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ie.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),de=de=-1===tt.indexOf(t.PARSER_MEDIA_TYPE)?nt:t.PARSER_MEDIA_TYPE,pe="application/xhtml+xml"===de?function(e){return e}:y,Ue&&(xe=!1),Re&&(Qe=!0),Ge&&(be=k({},A(R)),Te=[],!0===Ge.html&&(k(be,L),k(Te,M)),!0===Ge.svg&&(k(be,U),k(Te,H),k(Te,K)),!0===Ge.svgFilters&&(k(be,N),k(Te,H),k(Te,K)),!0===Ge.mathMl&&(k(be,O),k(Te,P),k(Te,K))),t.ADD_TAGS&&(be===we&&(be=F(be)),k(be,t.ADD_TAGS)),t.ADD_ATTR&&(Te===_e&&(Te=F(Te)),k(Te,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&k(Ye,t.ADD_URI_SAFE_ATTR),t.FORBID_CONTENTS&&($e===Ve&&($e=F($e)),k($e,t.FORBID_CONTENTS)),Pe&&(be["#text"]=!0),Ne&&k(be,["html","head","body"]),be.table&&(k(be,["tbody"]),delete Se.tbody),u&&u(t),rt=t)},at=k({},["mi","mo","mn","ms","mtext"]),st=k({},["foreignobject","desc","title","annotation-xml"]),ct=k({},["title","style","font","a","script"]),lt=k({},U);k(lt,N),k(lt,D);var ut=k({},O);k(ut,Q);var ft=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:Je,tagName:"template"});var n=y(e.tagName),r=y(t.tagName);return e.namespaceURI===qe?t.namespaceURI===Je?"svg"===n:t.namespaceURI===ze?"svg"===n&&("annotation-xml"===r||at[r]):Boolean(lt[n]):e.namespaceURI===ze?t.namespaceURI===Je?"math"===n:t.namespaceURI===qe?"math"===n&&st[r]:Boolean(ut[n]):e.namespaceURI===Je&&!(t.namespaceURI===qe&&!st[r])&&!(t.namespaceURI===ze&&!at[r])&&!ut[n]&&(ct[n]||!lt[n])},ht=function(e){E(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},dt=function(e,t){try{E(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){E(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Te[e])if(Qe||Re)try{ht(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},pt=function(e){var t,n;if(Oe)e="<remove></remove>"+e;else{var r=C(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===de&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var A=Ae?Ae.createHTML(e):e;if(Ze===Je)try{t=(new g).parseFromString(A,de)}catch(e){}if(!t||!t.documentElement){t=ae.createDocument(Ze,"template",null);try{t.documentElement.innerHTML=et?"":A}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),Ze===Je?le.call(t,Ne?"html":"body")[0]:Ne?t.documentElement:i},gt=function(e){return se.call(e.ownerDocument||e,e,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT,null,!1)},mt=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},vt=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Bt=function(e,t,n){he[e]&&v(he[e],(function(e){e.call(r,t,n,rt)}))},Et=function(e){var t;if(Bt("beforeSanitizeElements",e,null),mt(e))return ht(e),!0;if(_(/[\u0080-\uFFFF]/,e.nodeName))return ht(e),!0;var n=pe(e.nodeName);if(Bt("uponSanitizeElement",e,{tagName:n,allowedTags:be}),e.hasChildNodes()&&!vt(e.firstElementChild)&&(!vt(e.content)||!vt(e.content.firstElementChild))&&_(/<[/\w]/g,e.innerHTML)&&_(/<[/\w]/g,e.textContent))return ht(e),!0;if("select"===n&&_(/<template/i,e.innerHTML))return ht(e),!0;if(!be[n]||Se[n]){if(!Se[n]&&Ct(n)){if(Ie.tagNameCheck instanceof RegExp&&_(Ie.tagNameCheck,n))return!1;if(Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(n))return!1}if(Pe&&!$e[n]){var A=ne(e)||e.parentNode,i=te(e)||e.childNodes;if(i&&A)for(var o=i.length-1;o>=0;--o)A.insertBefore(Z(i[o],!0),ee(e))}return ht(e),!0}return e instanceof l&&!ft(e)?(ht(e),!0):"noscript"!==n&&"noembed"!==n||!_(/<\/no(script|embed)/i,e.innerHTML)?(Ue&&3===e.nodeType&&(t=e.textContent,t=b(t,ge," "),t=b(t,me," "),e.textContent!==t&&(E(r.removed,{element:e.cloneNode()}),e.textContent=t)),Bt("afterSanitizeElements",e,null),!1):(ht(e),!0)},yt=function(e,t,n){if(He&&("id"===t||"name"===t)&&(n in o||n in At))return!1;if(xe&&!ke[t]&&_(ve,t));else if(Fe&&_(Be,t));else if(!Te[t]||ke[t]){if(!(Ct(e)&&(Ie.tagNameCheck instanceof RegExp&&_(Ie.tagNameCheck,e)||Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(e))&&(Ie.attributeNameCheck instanceof RegExp&&_(Ie.attributeNameCheck,t)||Ie.attributeNameCheck instanceof Function&&Ie.attributeNameCheck(t))||"is"===t&&Ie.allowCustomizedBuiltInElements&&(Ie.tagNameCheck instanceof RegExp&&_(Ie.tagNameCheck,n)||Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(n))))return!1}else if(Ye[t]);else if(_(Ce,b(n,ye,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==w(n,"data:")||!We[e])if(Le&&!_(Ee,b(n,ye,"")));else if(n)return!1;return!0},Ct=function(e){return e.indexOf("-")>0},bt=function(e){var t,n,A,i;Bt("beforeSanitizeAttributes",e,null);var o=e.attributes;if(o){var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Te};for(i=o.length;i--;){var s=t=o[i],c=s.name,l=s.namespaceURI;if(n="value"===c?t.value:T(t.value),A=pe(c),a.attrName=A,a.attrValue=n,a.keepAttr=!0,a.forceKeepAttr=void 0,Bt("uponSanitizeAttribute",e,a),n=a.attrValue,!a.forceKeepAttr&&(dt(c,e),a.keepAttr))if(_(/\/>/i,n))dt(c,e);else{Ue&&(n=b(n,ge," "),n=b(n,me," "));var u=pe(e.nodeName);if(yt(u,A,n))try{l?e.setAttributeNS(l,c,n):e.setAttribute(c,n),B(r.removed)}catch(e){}}}Bt("afterSanitizeAttributes",e,null)}},wt=function e(t){var n,r=gt(t);for(Bt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Bt("uponSanitizeShadowNode",n,null),Et(n)||(n.content instanceof a&&e(n.content),bt(n));Bt("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(t,A){var o,s,l,u,f;if((et=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!vt(t)){if("function"!=typeof t.toString)throw I("toString is not a function");if("string"!=typeof(t=t.toString()))throw I("dirty is not a string, aborting")}if(!r.isSupported){if("object"===e(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof t)return n.toStaticHTML(t);if(vt(t))return n.toStaticHTML(t.outerHTML)}return t}if(De||ot(A),r.removed=[],"string"==typeof t&&(Ke=!1),Ke){if(t.nodeName){var h=pe(t.nodeName);if(!be[h]||Se[h])throw I("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof c)1===(s=(o=pt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?o=s:o.appendChild(s);else{if(!Qe&&!Ue&&!Ne&&-1===t.indexOf("<"))return Ae&&Me?Ae.createHTML(t):t;if(!(o=pt(t)))return Qe?null:Me?ie:""}o&&Oe&&ht(o.firstChild);for(var d=gt(Ke?t:o);l=d.nextNode();)3===l.nodeType&&l===u||Et(l)||(l.content instanceof a&&wt(l.content),bt(l),u=l);if(u=null,Ke)return t;if(Qe){if(Re)for(f=ce.call(o.ownerDocument);o.firstChild;)f.appendChild(o.firstChild);else f=o;return Te.shadowroot&&(f=ue.call(i,f,!0)),f}var p=Ne?o.outerHTML:o.innerHTML;return Ne&&be["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&_(z,o.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+p),Ue&&(p=b(p,ge," "),p=b(p,me," ")),Ae&&Me?Ae.createHTML(p):p},r.setConfig=function(e){ot(e),De=!0},r.clearConfig=function(){rt=null,De=!1},r.isValidAttribute=function(e,t,n){rt||ot({});var r=pe(e),A=pe(t);return yt(r,A,n)},r.addHook=function(e,t){"function"==typeof t&&(he[e]=he[e]||[],E(he[e],t))},r.removeHook=function(e){if(he[e])return B(he[e])},r.removeHooks=function(e){he[e]&&(he[e]=[])},r.removeAllHooks=function(){he={}},r}()}()}))(new e.JSDOM("").window);function Wd(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var jd=function(e){qi(n,Il);var t=Wd(n);function n(){return Pi(this,n),t.call(this,{needCache:!0})}return Gi(n,[{key:"isAutoLinkTag",value:function(e){var t=[/^<([a-z][a-z0-9+.-]{1,31}:\/\/[^<> `]+)>$/i,/^<(mailto:[^<> `]+)>$/i,/^<([^()<>[\]:'@\\,"\s`]+@[^()<>[\]:'@\\,"\s`.]+\.[^()<>[\]:'@\\,"\s`]+)>$/i];return $d(t).call(t,(function(t){return t.test(e)}))}},{key:"isHtmlComment",value:function(e){return/^<!--.*?-->$/.test(e)}},{key:"beforeMakeHtml",value:function(e,t){var n=this;this.$engine.htmlWhiteListAppend?(this.htmlWhiteListAppend=new RegExp("^(".concat(this.$engine.htmlWhiteListAppend,")( |$|/)"),"i"),this.htmlWhiteList=this.$engine.htmlWhiteListAppend.split("|")):(this.htmlWhiteListAppend=!1,this.htmlWhiteList=[]);var r=e;return r=(r=(r=(r=function(e){if("string"!=typeof e)return"";var t=e.replace(/&(\w+);?/g,(function(e,t){return-1===Rc(e).call(e,";")||-1===Rc(bf).call(bf,t.toLowerCase())?e.replace(/&/g,"&amp;"):e}));return t=(t=t.replace(/&#(?!x)(\d*);?/gi,(function(e,t){return wf(t)||-1===Rc(e).call(e,";")||t.lenth>7||!Tf(t)?e.replace(/&/g,"&amp;"):e}))).replace(/&#x([0-9a-f]*);?/gi,(function(e,t){if(wf(t))return e.replace(/&/g,"&amp;");var n="0x".concat(t),r=jc(n,16);return isNaN(r)||-1===Rc(e).call(e,";")||t.lenth>6||!Tf(n)?e.replace(/&/g,"&amp;"):e}))}(r=xf(r))).replace(/<[/]?(.*?)>/g,(function(e,t){return Sf.test(t)||n.isAutoLinkTag(e)||n.isHtmlComment(e)||!1!==n.htmlWhiteListAppend&&n.htmlWhiteListAppend.test(t)?e.replace(/</g,"$#60;").replace(/>/g,"$#62;"):e.replace(/</g,"&#60;").replace(/>/g,"&#62;")}))).replace(/<(?=\/?(\w|\n|$))/g,"&#60;")).replace(/\$#60;/g,"<").replace(/\$#62;/g,">")}},{key:"makeHtml",value:function(e,t){return e}},{key:"afterMakeHtml",value:function(e){var t=e,n={ALLOW_UNKNOWN_PROTOCOLS:!0,ADD_ATTR:["target"]};if(!1!==this.htmlWhiteListAppend){var r;if(n.ADD_TAGS=this.htmlWhiteList,(this.htmlWhiteListAppend.test("style")||this.htmlWhiteListAppend.test("ALL"))&&(t=t.replace(/<style(>| [^>]*>).*?<\/style>/gi,(function(e){return e.replace(/<br>/gi,"")}))),this.htmlWhiteListAppend.test("iframe")||this.htmlWhiteListAppend.test("ALL"))n.ADD_ATTR=uo(r=n.ADD_ATTR).call(r,["align","frameborder","height","longdesc","marginheight","marginwidth","name","sandbox","scrolling","seamless","src","srcdoc","width"]),n.SANITIZE_DOM=!1,t=t.replace(/<iframe(>| [^>]*>).*?<\/iframe>/gi,(function(e){return e.replace(/<br>/gi,"").replace(/\n/g,"")}));if(this.htmlWhiteListAppend.test("script")||this.htmlWhiteListAppend.test("ALL"))return t=t.replace(/<script(>| [^>]*>).*?<\/script>/gi,(function(e){return e.replace(/<br>/gi,"")}))}return Fh()||(n.FORBID_ATTR=["data-sign","data-lines"]),Vd.sanitize(t,n)}}]),n}();so(jd,"HOOK_NAME","htmlBlock");var Yd={"+1":"1f44d","-1":"1f44e",100:"1f4af",1234:"1f522","1st_place_medal":"1f947","2nd_place_medal":"1f948","3rd_place_medal":"1f949","8ball":"1f3b1",a:"1f170",ab:"1f18e",abacus:"1f9ee",abc:"1f524",abcd:"1f521",accept:"1f251",adhesive_bandage:"1fa79",adult:"1f9d1",aerial_tramway:"1f6a1",afghanistan:"1f1e6-1f1eb",airplane:"2708",aland_islands:"1f1e6-1f1fd",alarm_clock:"23f0",albania:"1f1e6-1f1f1",alembic:"2697",algeria:"1f1e9-1f1ff",alien:"1f47d",ambulance:"1f691",american_samoa:"1f1e6-1f1f8",amphora:"1f3fa",anchor:"2693",andorra:"1f1e6-1f1e9",angel:"1f47c",anger:"1f4a2",angola:"1f1e6-1f1f4",angry:"1f620",anguilla:"1f1e6-1f1ee",anguished:"1f627",ant:"1f41c",antarctica:"1f1e6-1f1f6",antigua_barbuda:"1f1e6-1f1ec",apple:"1f34e",aquarius:"2652",argentina:"1f1e6-1f1f7",aries:"2648",armenia:"1f1e6-1f1f2",arrow_backward:"25c0",arrow_double_down:"23ec",arrow_double_up:"23eb",arrow_down:"2b07",arrow_down_small:"1f53d",arrow_forward:"25b6",arrow_heading_down:"2935",arrow_heading_up:"2934",arrow_left:"2b05",arrow_lower_left:"2199",arrow_lower_right:"2198",arrow_right:"27a1",arrow_right_hook:"21aa",arrow_up:"2b06",arrow_up_down:"2195",arrow_up_small:"1f53c",arrow_upper_left:"2196",arrow_upper_right:"2197",arrows_clockwise:"1f503",arrows_counterclockwise:"1f504",art:"1f3a8",articulated_lorry:"1f69b",artificial_satellite:"1f6f0",artist:"1f9d1-1f3a8",aruba:"1f1e6-1f1fc",ascension_island:"1f1e6-1f1e8",asterisk:"002a-20e3",astonished:"1f632",astronaut:"1f9d1-1f680",athletic_shoe:"1f45f",atm:"1f3e7",atom_symbol:"269b",australia:"1f1e6-1f1fa",austria:"1f1e6-1f1f9",auto_rickshaw:"1f6fa",avocado:"1f951",axe:"1fa93",azerbaijan:"1f1e6-1f1ff",b:"1f171",baby:"1f476",baby_bottle:"1f37c",baby_chick:"1f424",baby_symbol:"1f6bc",back:"1f519",bacon:"1f953",badger:"1f9a1",badminton:"1f3f8",bagel:"1f96f",baggage_claim:"1f6c4",baguette_bread:"1f956",bahamas:"1f1e7-1f1f8",bahrain:"1f1e7-1f1ed",balance_scale:"2696",bald_man:"1f468-1f9b2",bald_woman:"1f469-1f9b2",ballet_shoes:"1fa70",balloon:"1f388",ballot_box:"1f5f3",ballot_box_with_check:"2611",bamboo:"1f38d",banana:"1f34c",bangbang:"203c",bangladesh:"1f1e7-1f1e9",banjo:"1fa95",bank:"1f3e6",bar_chart:"1f4ca",barbados:"1f1e7-1f1e7",barber:"1f488",baseball:"26be",basket:"1f9fa",basketball:"1f3c0",basketball_man:"26f9-2642",basketball_woman:"26f9-2640",bat:"1f987",bath:"1f6c0",bathtub:"1f6c1",battery:"1f50b",beach_umbrella:"1f3d6",bear:"1f43b",bearded_person:"1f9d4",bed:"1f6cf",bee:"1f41d",beer:"1f37a",beers:"1f37b",beetle:"1f41e",beginner:"1f530",belarus:"1f1e7-1f1fe",belgium:"1f1e7-1f1ea",belize:"1f1e7-1f1ff",bell:"1f514",bellhop_bell:"1f6ce",benin:"1f1e7-1f1ef",bento:"1f371",bermuda:"1f1e7-1f1f2",beverage_box:"1f9c3",bhutan:"1f1e7-1f1f9",bicyclist:"1f6b4",bike:"1f6b2",biking_man:"1f6b4-2642",biking_woman:"1f6b4-2640",bikini:"1f459",billed_cap:"1f9e2",biohazard:"2623",bird:"1f426",birthday:"1f382",black_circle:"26ab",black_flag:"1f3f4",black_heart:"1f5a4",black_joker:"1f0cf",black_large_square:"2b1b",black_medium_small_square:"25fe",black_medium_square:"25fc",black_nib:"2712",black_small_square:"25aa",black_square_button:"1f532",blond_haired_man:"1f471-2642",blond_haired_person:"1f471",blond_haired_woman:"1f471-2640",blonde_woman:"1f471-2640",blossom:"1f33c",blowfish:"1f421",blue_book:"1f4d8",blue_car:"1f699",blue_heart:"1f499",blue_square:"1f7e6",blush:"1f60a",boar:"1f417",boat:"26f5",bolivia:"1f1e7-1f1f4",bomb:"1f4a3",bone:"1f9b4",book:"1f4d6",bookmark:"1f516",bookmark_tabs:"1f4d1",books:"1f4da",boom:"1f4a5",boot:"1f462",bosnia_herzegovina:"1f1e7-1f1e6",botswana:"1f1e7-1f1fc",bouncing_ball_man:"26f9-2642",bouncing_ball_person:"26f9",bouncing_ball_woman:"26f9-2640",bouquet:"1f490",bouvet_island:"1f1e7-1f1fb",bow:"1f647",bow_and_arrow:"1f3f9",bowing_man:"1f647-2642",bowing_woman:"1f647-2640",bowl_with_spoon:"1f963",bowling:"1f3b3",boxing_glove:"1f94a",boy:"1f466",brain:"1f9e0",brazil:"1f1e7-1f1f7",bread:"1f35e",breast_feeding:"1f931",bricks:"1f9f1",bride_with_veil:"1f470",bridge_at_night:"1f309",briefcase:"1f4bc",british_indian_ocean_territory:"1f1ee-1f1f4",british_virgin_islands:"1f1fb-1f1ec",broccoli:"1f966",broken_heart:"1f494",broom:"1f9f9",brown_circle:"1f7e4",brown_heart:"1f90e",brown_square:"1f7eb",brunei:"1f1e7-1f1f3",bug:"1f41b",building_construction:"1f3d7",bulb:"1f4a1",bulgaria:"1f1e7-1f1ec",bullettrain_front:"1f685",bullettrain_side:"1f684",burkina_faso:"1f1e7-1f1eb",burrito:"1f32f",burundi:"1f1e7-1f1ee",bus:"1f68c",business_suit_levitating:"1f574",busstop:"1f68f",bust_in_silhouette:"1f464",busts_in_silhouette:"1f465",butter:"1f9c8",butterfly:"1f98b",cactus:"1f335",cake:"1f370",calendar:"1f4c6",call_me_hand:"1f919",calling:"1f4f2",cambodia:"1f1f0-1f1ed",camel:"1f42b",camera:"1f4f7",camera_flash:"1f4f8",cameroon:"1f1e8-1f1f2",camping:"1f3d5",canada:"1f1e8-1f1e6",canary_islands:"1f1ee-1f1e8",cancer:"264b",candle:"1f56f",candy:"1f36c",canned_food:"1f96b",canoe:"1f6f6",cape_verde:"1f1e8-1f1fb",capital_abcd:"1f520",capricorn:"2651",car:"1f697",card_file_box:"1f5c3",card_index:"1f4c7",card_index_dividers:"1f5c2",caribbean_netherlands:"1f1e7-1f1f6",carousel_horse:"1f3a0",carrot:"1f955",cartwheeling:"1f938",cat:"1f431",cat2:"1f408",cayman_islands:"1f1f0-1f1fe",cd:"1f4bf",central_african_republic:"1f1e8-1f1eb",ceuta_melilla:"1f1ea-1f1e6",chad:"1f1f9-1f1e9",chains:"26d3",chair:"1fa91",champagne:"1f37e",chart:"1f4b9",chart_with_downwards_trend:"1f4c9",chart_with_upwards_trend:"1f4c8",checkered_flag:"1f3c1",cheese:"1f9c0",cherries:"1f352",cherry_blossom:"1f338",chess_pawn:"265f",chestnut:"1f330",chicken:"1f414",child:"1f9d2",children_crossing:"1f6b8",chile:"1f1e8-1f1f1",chipmunk:"1f43f",chocolate_bar:"1f36b",chopsticks:"1f962",christmas_island:"1f1e8-1f1fd",christmas_tree:"1f384",church:"26ea",cinema:"1f3a6",circus_tent:"1f3aa",city_sunrise:"1f307",city_sunset:"1f306",cityscape:"1f3d9",cl:"1f191",clamp:"1f5dc",clap:"1f44f",clapper:"1f3ac",classical_building:"1f3db",climbing:"1f9d7",climbing_man:"1f9d7-2642",climbing_woman:"1f9d7-2640",clinking_glasses:"1f942",clipboard:"1f4cb",clipperton_island:"1f1e8-1f1f5",clock1:"1f550",clock10:"1f559",clock1030:"1f565",clock11:"1f55a",clock1130:"1f566",clock12:"1f55b",clock1230:"1f567",clock130:"1f55c",clock2:"1f551",clock230:"1f55d",clock3:"1f552",clock330:"1f55e",clock4:"1f553",clock430:"1f55f",clock5:"1f554",clock530:"1f560",clock6:"1f555",clock630:"1f561",clock7:"1f556",clock730:"1f562",clock8:"1f557",clock830:"1f563",clock9:"1f558",clock930:"1f564",closed_book:"1f4d5",closed_lock_with_key:"1f510",closed_umbrella:"1f302",cloud:"2601",cloud_with_lightning:"1f329",cloud_with_lightning_and_rain:"26c8",cloud_with_rain:"1f327",cloud_with_snow:"1f328",clown_face:"1f921",clubs:"2663",cn:"1f1e8-1f1f3",coat:"1f9e5",cocktail:"1f378",coconut:"1f965",cocos_islands:"1f1e8-1f1e8",coffee:"2615",coffin:"26b0",cold_face:"1f976",cold_sweat:"1f630",collision:"1f4a5",colombia:"1f1e8-1f1f4",comet:"2604",comoros:"1f1f0-1f1f2",compass:"1f9ed",computer:"1f4bb",computer_mouse:"1f5b1",confetti_ball:"1f38a",confounded:"1f616",confused:"1f615",congo_brazzaville:"1f1e8-1f1ec",congo_kinshasa:"1f1e8-1f1e9",congratulations:"3297",construction:"1f6a7",construction_worker:"1f477",construction_worker_man:"1f477-2642",construction_worker_woman:"1f477-2640",control_knobs:"1f39b",convenience_store:"1f3ea",cook:"1f9d1-1f373",cook_islands:"1f1e8-1f1f0",cookie:"1f36a",cool:"1f192",cop:"1f46e",copyright:"00a9",corn:"1f33d",costa_rica:"1f1e8-1f1f7",cote_divoire:"1f1e8-1f1ee",couch_and_lamp:"1f6cb",couple:"1f46b",couple_with_heart:"1f491",couple_with_heart_man_man:"1f468-2764-1f468",couple_with_heart_woman_man:"1f469-2764-1f468",couple_with_heart_woman_woman:"1f469-2764-1f469",couplekiss:"1f48f",couplekiss_man_man:"1f468-2764-1f48b-1f468",couplekiss_man_woman:"1f469-2764-1f48b-1f468",couplekiss_woman_woman:"1f469-2764-1f48b-1f469",cow:"1f42e",cow2:"1f404",cowboy_hat_face:"1f920",crab:"1f980",crayon:"1f58d",credit_card:"1f4b3",crescent_moon:"1f319",cricket:"1f997",cricket_game:"1f3cf",croatia:"1f1ed-1f1f7",crocodile:"1f40a",croissant:"1f950",crossed_fingers:"1f91e",crossed_flags:"1f38c",crossed_swords:"2694",crown:"1f451",cry:"1f622",crying_cat_face:"1f63f",crystal_ball:"1f52e",cuba:"1f1e8-1f1fa",cucumber:"1f952",cup_with_straw:"1f964",cupcake:"1f9c1",cupid:"1f498",curacao:"1f1e8-1f1fc",curling_stone:"1f94c",curly_haired_man:"1f468-1f9b1",curly_haired_woman:"1f469-1f9b1",curly_loop:"27b0",currency_exchange:"1f4b1",curry:"1f35b",cursing_face:"1f92c",custard:"1f36e",customs:"1f6c3",cut_of_meat:"1f969",cyclone:"1f300",cyprus:"1f1e8-1f1fe",czech_republic:"1f1e8-1f1ff",dagger:"1f5e1",dancer:"1f483",dancers:"1f46f",dancing_men:"1f46f-2642",dancing_women:"1f46f-2640",dango:"1f361",dark_sunglasses:"1f576",dart:"1f3af",dash:"1f4a8",date:"1f4c5",de:"1f1e9-1f1ea",deaf_man:"1f9cf-2642",deaf_person:"1f9cf",deaf_woman:"1f9cf-2640",deciduous_tree:"1f333",deer:"1f98c",denmark:"1f1e9-1f1f0",department_store:"1f3ec",derelict_house:"1f3da",desert:"1f3dc",desert_island:"1f3dd",desktop_computer:"1f5a5",detective:"1f575",diamond_shape_with_a_dot_inside:"1f4a0",diamonds:"2666",diego_garcia:"1f1e9-1f1ec",disappointed:"1f61e",disappointed_relieved:"1f625",diving_mask:"1f93f",diya_lamp:"1fa94",dizzy:"1f4ab",dizzy_face:"1f635",djibouti:"1f1e9-1f1ef",dna:"1f9ec",do_not_litter:"1f6af",dog:"1f436",dog2:"1f415",dollar:"1f4b5",dolls:"1f38e",dolphin:"1f42c",dominica:"1f1e9-1f1f2",dominican_republic:"1f1e9-1f1f4",door:"1f6aa",doughnut:"1f369",dove:"1f54a",dragon:"1f409",dragon_face:"1f432",dress:"1f457",dromedary_camel:"1f42a",drooling_face:"1f924",drop_of_blood:"1fa78",droplet:"1f4a7",drum:"1f941",duck:"1f986",dumpling:"1f95f",dvd:"1f4c0","e-mail":"1f4e7",eagle:"1f985",ear:"1f442",ear_of_rice:"1f33e",ear_with_hearing_aid:"1f9bb",earth_africa:"1f30d",earth_americas:"1f30e",earth_asia:"1f30f",ecuador:"1f1ea-1f1e8",egg:"1f95a",eggplant:"1f346",egypt:"1f1ea-1f1ec",eight:"0038-20e3",eight_pointed_black_star:"2734",eight_spoked_asterisk:"2733",eject_button:"23cf",el_salvador:"1f1f8-1f1fb",electric_plug:"1f50c",elephant:"1f418",elf:"1f9dd",elf_man:"1f9dd-2642",elf_woman:"1f9dd-2640",email:"2709",end:"1f51a",england:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",envelope:"2709",envelope_with_arrow:"1f4e9",equatorial_guinea:"1f1ec-1f1f6",eritrea:"1f1ea-1f1f7",es:"1f1ea-1f1f8",estonia:"1f1ea-1f1ea",ethiopia:"1f1ea-1f1f9",eu:"1f1ea-1f1fa",euro:"1f4b6",european_castle:"1f3f0",european_post_office:"1f3e4",european_union:"1f1ea-1f1fa",evergreen_tree:"1f332",exclamation:"2757",exploding_head:"1f92f",expressionless:"1f611",eye:"1f441",eye_speech_bubble:"1f441-1f5e8",eyeglasses:"1f453",eyes:"1f440",face_with_head_bandage:"1f915",face_with_thermometer:"1f912",facepalm:"1f926",facepunch:"1f44a",factory:"1f3ed",factory_worker:"1f9d1-1f3ed",fairy:"1f9da",fairy_man:"1f9da-2642",fairy_woman:"1f9da-2640",falafel:"1f9c6",falkland_islands:"1f1eb-1f1f0",fallen_leaf:"1f342",family:"1f46a",family_man_boy:"1f468-1f466",family_man_boy_boy:"1f468-1f466-1f466",family_man_girl:"1f468-1f467",family_man_girl_boy:"1f468-1f467-1f466",family_man_girl_girl:"1f468-1f467-1f467",family_man_man_boy:"1f468-1f468-1f466",family_man_man_boy_boy:"1f468-1f468-1f466-1f466",family_man_man_girl:"1f468-1f468-1f467",family_man_man_girl_boy:"1f468-1f468-1f467-1f466",family_man_man_girl_girl:"1f468-1f468-1f467-1f467",family_man_woman_boy:"1f468-1f469-1f466",family_man_woman_boy_boy:"1f468-1f469-1f466-1f466",family_man_woman_girl:"1f468-1f469-1f467",family_man_woman_girl_boy:"1f468-1f469-1f467-1f466",family_man_woman_girl_girl:"1f468-1f469-1f467-1f467",family_woman_boy:"1f469-1f466",family_woman_boy_boy:"1f469-1f466-1f466",family_woman_girl:"1f469-1f467",family_woman_girl_boy:"1f469-1f467-1f466",family_woman_girl_girl:"1f469-1f467-1f467",family_woman_woman_boy:"1f469-1f469-1f466",family_woman_woman_boy_boy:"1f469-1f469-1f466-1f466",family_woman_woman_girl:"1f469-1f469-1f467",family_woman_woman_girl_boy:"1f469-1f469-1f467-1f466",family_woman_woman_girl_girl:"1f469-1f469-1f467-1f467",farmer:"1f9d1-1f33e",faroe_islands:"1f1eb-1f1f4",fast_forward:"23e9",fax:"1f4e0",fearful:"1f628",feet:"1f43e",female_detective:"1f575-2640",female_sign:"2640",ferris_wheel:"1f3a1",ferry:"26f4",field_hockey:"1f3d1",fiji:"1f1eb-1f1ef",file_cabinet:"1f5c4",file_folder:"1f4c1",film_projector:"1f4fd",film_strip:"1f39e",finland:"1f1eb-1f1ee",fire:"1f525",fire_engine:"1f692",fire_extinguisher:"1f9ef",firecracker:"1f9e8",firefighter:"1f9d1-1f692",fireworks:"1f386",first_quarter_moon:"1f313",first_quarter_moon_with_face:"1f31b",fish:"1f41f",fish_cake:"1f365",fishing_pole_and_fish:"1f3a3",fist:"270a",fist_left:"1f91b",fist_oncoming:"1f44a",fist_raised:"270a",fist_right:"1f91c",five:"0035-20e3",flags:"1f38f",flamingo:"1f9a9",flashlight:"1f526",flat_shoe:"1f97f",fleur_de_lis:"269c",flight_arrival:"1f6ec",flight_departure:"1f6eb",flipper:"1f42c",floppy_disk:"1f4be",flower_playing_cards:"1f3b4",flushed:"1f633",flying_disc:"1f94f",flying_saucer:"1f6f8",fog:"1f32b",foggy:"1f301",foot:"1f9b6",football:"1f3c8",footprints:"1f463",fork_and_knife:"1f374",fortune_cookie:"1f960",fountain:"26f2",fountain_pen:"1f58b",four:"0034-20e3",four_leaf_clover:"1f340",fox_face:"1f98a",fr:"1f1eb-1f1f7",framed_picture:"1f5bc",free:"1f193",french_guiana:"1f1ec-1f1eb",french_polynesia:"1f1f5-1f1eb",french_southern_territories:"1f1f9-1f1eb",fried_egg:"1f373",fried_shrimp:"1f364",fries:"1f35f",frog:"1f438",frowning:"1f626",frowning_face:"2639",frowning_man:"1f64d-2642",frowning_person:"1f64d",frowning_woman:"1f64d-2640",fu:"1f595",fuelpump:"26fd",full_moon:"1f315",full_moon_with_face:"1f31d",funeral_urn:"26b1",gabon:"1f1ec-1f1e6",gambia:"1f1ec-1f1f2",game_die:"1f3b2",garlic:"1f9c4",gb:"1f1ec-1f1e7",gear:"2699",gem:"1f48e",gemini:"264a",genie:"1f9de",genie_man:"1f9de-2642",genie_woman:"1f9de-2640",georgia:"1f1ec-1f1ea",ghana:"1f1ec-1f1ed",ghost:"1f47b",gibraltar:"1f1ec-1f1ee",gift:"1f381",gift_heart:"1f49d",giraffe:"1f992",girl:"1f467",globe_with_meridians:"1f310",gloves:"1f9e4",goal_net:"1f945",goat:"1f410",goggles:"1f97d",golf:"26f3",golfing:"1f3cc",golfing_man:"1f3cc-2642",golfing_woman:"1f3cc-2640",gorilla:"1f98d",grapes:"1f347",greece:"1f1ec-1f1f7",green_apple:"1f34f",green_book:"1f4d7",green_circle:"1f7e2",green_heart:"1f49a",green_salad:"1f957",green_square:"1f7e9",greenland:"1f1ec-1f1f1",grenada:"1f1ec-1f1e9",grey_exclamation:"2755",grey_question:"2754",grimacing:"1f62c",grin:"1f601",grinning:"1f600",guadeloupe:"1f1ec-1f1f5",guam:"1f1ec-1f1fa",guard:"1f482",guardsman:"1f482-2642",guardswoman:"1f482-2640",guatemala:"1f1ec-1f1f9",guernsey:"1f1ec-1f1ec",guide_dog:"1f9ae",guinea:"1f1ec-1f1f3",guinea_bissau:"1f1ec-1f1fc",guitar:"1f3b8",gun:"1f52b",guyana:"1f1ec-1f1fe",haircut:"1f487",haircut_man:"1f487-2642",haircut_woman:"1f487-2640",haiti:"1f1ed-1f1f9",hamburger:"1f354",hammer:"1f528",hammer_and_pick:"2692",hammer_and_wrench:"1f6e0",hamster:"1f439",hand:"270b",hand_over_mouth:"1f92d",handbag:"1f45c",handball_person:"1f93e",handshake:"1f91d",hankey:"1f4a9",hash:"0023-20e3",hatched_chick:"1f425",hatching_chick:"1f423",headphones:"1f3a7",health_worker:"1f9d1-2695",hear_no_evil:"1f649",heard_mcdonald_islands:"1f1ed-1f1f2",heart:"2764",heart_decoration:"1f49f",heart_eyes:"1f60d",heart_eyes_cat:"1f63b",heartbeat:"1f493",heartpulse:"1f497",hearts:"2665",heavy_check_mark:"2714",heavy_division_sign:"2797",heavy_dollar_sign:"1f4b2",heavy_exclamation_mark:"2757",heavy_heart_exclamation:"2763",heavy_minus_sign:"2796",heavy_multiplication_x:"2716",heavy_plus_sign:"2795",hedgehog:"1f994",helicopter:"1f681",herb:"1f33f",hibiscus:"1f33a",high_brightness:"1f506",high_heel:"1f460",hiking_boot:"1f97e",hindu_temple:"1f6d5",hippopotamus:"1f99b",hocho:"1f52a",hole:"1f573",honduras:"1f1ed-1f1f3",honey_pot:"1f36f",honeybee:"1f41d",hong_kong:"1f1ed-1f1f0",horse:"1f434",horse_racing:"1f3c7",hospital:"1f3e5",hot_face:"1f975",hot_pepper:"1f336",hotdog:"1f32d",hotel:"1f3e8",hotsprings:"2668",hourglass:"231b",hourglass_flowing_sand:"23f3",house:"1f3e0",house_with_garden:"1f3e1",houses:"1f3d8",hugs:"1f917",hungary:"1f1ed-1f1fa",hushed:"1f62f",ice_cream:"1f368",ice_cube:"1f9ca",ice_hockey:"1f3d2",ice_skate:"26f8",icecream:"1f366",iceland:"1f1ee-1f1f8",id:"1f194",ideograph_advantage:"1f250",imp:"1f47f",inbox_tray:"1f4e5",incoming_envelope:"1f4e8",india:"1f1ee-1f1f3",indonesia:"1f1ee-1f1e9",infinity:"267e",information_desk_person:"1f481",information_source:"2139",innocent:"1f607",interrobang:"2049",iphone:"1f4f1",iran:"1f1ee-1f1f7",iraq:"1f1ee-1f1f6",ireland:"1f1ee-1f1ea",isle_of_man:"1f1ee-1f1f2",israel:"1f1ee-1f1f1",it:"1f1ee-1f1f9",izakaya_lantern:"1f3ee",jack_o_lantern:"1f383",jamaica:"1f1ef-1f1f2",japan:"1f5fe",japanese_castle:"1f3ef",japanese_goblin:"1f47a",japanese_ogre:"1f479",jeans:"1f456",jersey:"1f1ef-1f1ea",jigsaw:"1f9e9",jordan:"1f1ef-1f1f4",joy:"1f602",joy_cat:"1f639",joystick:"1f579",jp:"1f1ef-1f1f5",judge:"1f9d1-2696",juggling_person:"1f939",kaaba:"1f54b",kangaroo:"1f998",kazakhstan:"1f1f0-1f1ff",kenya:"1f1f0-1f1ea",key:"1f511",keyboard:"2328",keycap_ten:"1f51f",kick_scooter:"1f6f4",kimono:"1f458",kiribati:"1f1f0-1f1ee",kiss:"1f48b",kissing:"1f617",kissing_cat:"1f63d",kissing_closed_eyes:"1f61a",kissing_heart:"1f618",kissing_smiling_eyes:"1f619",kite:"1fa81",kiwi_fruit:"1f95d",kneeling_man:"1f9ce-2642",kneeling_person:"1f9ce",kneeling_woman:"1f9ce-2640",knife:"1f52a",koala:"1f428",koko:"1f201",kosovo:"1f1fd-1f1f0",kr:"1f1f0-1f1f7",kuwait:"1f1f0-1f1fc",kyrgyzstan:"1f1f0-1f1ec",lab_coat:"1f97c",label:"1f3f7",lacrosse:"1f94d",lantern:"1f3ee",laos:"1f1f1-1f1e6",large_blue_circle:"1f535",large_blue_diamond:"1f537",large_orange_diamond:"1f536",last_quarter_moon:"1f317",last_quarter_moon_with_face:"1f31c",latin_cross:"271d",latvia:"1f1f1-1f1fb",laughing:"1f606",leafy_green:"1f96c",leaves:"1f343",lebanon:"1f1f1-1f1e7",ledger:"1f4d2",left_luggage:"1f6c5",left_right_arrow:"2194",left_speech_bubble:"1f5e8",leftwards_arrow_with_hook:"21a9",leg:"1f9b5",lemon:"1f34b",leo:"264c",leopard:"1f406",lesotho:"1f1f1-1f1f8",level_slider:"1f39a",liberia:"1f1f1-1f1f7",libra:"264e",libya:"1f1f1-1f1fe",liechtenstein:"1f1f1-1f1ee",light_rail:"1f688",link:"1f517",lion:"1f981",lips:"1f444",lipstick:"1f484",lithuania:"1f1f1-1f1f9",lizard:"1f98e",llama:"1f999",lobster:"1f99e",lock:"1f512",lock_with_ink_pen:"1f50f",lollipop:"1f36d",loop:"27bf",lotion_bottle:"1f9f4",lotus_position:"1f9d8",lotus_position_man:"1f9d8-2642",lotus_position_woman:"1f9d8-2640",loud_sound:"1f50a",loudspeaker:"1f4e2",love_hotel:"1f3e9",love_letter:"1f48c",love_you_gesture:"1f91f",low_brightness:"1f505",luggage:"1f9f3",luxembourg:"1f1f1-1f1fa",lying_face:"1f925",m:"24c2",macau:"1f1f2-1f1f4",macedonia:"1f1f2-1f1f0",madagascar:"1f1f2-1f1ec",mag:"1f50d",mag_right:"1f50e",mage:"1f9d9",mage_man:"1f9d9-2642",mage_woman:"1f9d9-2640",magnet:"1f9f2",mahjong:"1f004",mailbox:"1f4eb",mailbox_closed:"1f4ea",mailbox_with_mail:"1f4ec",mailbox_with_no_mail:"1f4ed",malawi:"1f1f2-1f1fc",malaysia:"1f1f2-1f1fe",maldives:"1f1f2-1f1fb",male_detective:"1f575-2642",male_sign:"2642",mali:"1f1f2-1f1f1",malta:"1f1f2-1f1f9",man:"1f468",man_artist:"1f468-1f3a8",man_astronaut:"1f468-1f680",man_cartwheeling:"1f938-2642",man_cook:"1f468-1f373",man_dancing:"1f57a",man_facepalming:"1f926-2642",man_factory_worker:"1f468-1f3ed",man_farmer:"1f468-1f33e",man_firefighter:"1f468-1f692",man_health_worker:"1f468-2695",man_in_manual_wheelchair:"1f468-1f9bd",man_in_motorized_wheelchair:"1f468-1f9bc",man_in_tuxedo:"1f935",man_judge:"1f468-2696",man_juggling:"1f939-2642",man_mechanic:"1f468-1f527",man_office_worker:"1f468-1f4bc",man_pilot:"1f468-2708",man_playing_handball:"1f93e-2642",man_playing_water_polo:"1f93d-2642",man_scientist:"1f468-1f52c",man_shrugging:"1f937-2642",man_singer:"1f468-1f3a4",man_student:"1f468-1f393",man_teacher:"1f468-1f3eb",man_technologist:"1f468-1f4bb",man_with_gua_pi_mao:"1f472",man_with_probing_cane:"1f468-1f9af",man_with_turban:"1f473-2642",mandarin:"1f34a",mango:"1f96d",mans_shoe:"1f45e",mantelpiece_clock:"1f570",manual_wheelchair:"1f9bd",maple_leaf:"1f341",marshall_islands:"1f1f2-1f1ed",martial_arts_uniform:"1f94b",martinique:"1f1f2-1f1f6",mask:"1f637",massage:"1f486",massage_man:"1f486-2642",massage_woman:"1f486-2640",mate:"1f9c9",mauritania:"1f1f2-1f1f7",mauritius:"1f1f2-1f1fa",mayotte:"1f1fe-1f1f9",meat_on_bone:"1f356",mechanic:"1f9d1-1f527",mechanical_arm:"1f9be",mechanical_leg:"1f9bf",medal_military:"1f396",medal_sports:"1f3c5",medical_symbol:"2695",mega:"1f4e3",melon:"1f348",memo:"1f4dd",men_wrestling:"1f93c-2642",menorah:"1f54e",mens:"1f6b9",mermaid:"1f9dc-2640",merman:"1f9dc-2642",merperson:"1f9dc",metal:"1f918",metro:"1f687",mexico:"1f1f2-1f1fd",microbe:"1f9a0",micronesia:"1f1eb-1f1f2",microphone:"1f3a4",microscope:"1f52c",middle_finger:"1f595",milk_glass:"1f95b",milky_way:"1f30c",minibus:"1f690",minidisc:"1f4bd",mobile_phone_off:"1f4f4",moldova:"1f1f2-1f1e9",monaco:"1f1f2-1f1e8",money_mouth_face:"1f911",money_with_wings:"1f4b8",moneybag:"1f4b0",mongolia:"1f1f2-1f1f3",monkey:"1f412",monkey_face:"1f435",monocle_face:"1f9d0",monorail:"1f69d",montenegro:"1f1f2-1f1ea",montserrat:"1f1f2-1f1f8",moon:"1f314",moon_cake:"1f96e",morocco:"1f1f2-1f1e6",mortar_board:"1f393",mosque:"1f54c",mosquito:"1f99f",motor_boat:"1f6e5",motor_scooter:"1f6f5",motorcycle:"1f3cd",motorized_wheelchair:"1f9bc",motorway:"1f6e3",mount_fuji:"1f5fb",mountain:"26f0",mountain_bicyclist:"1f6b5",mountain_biking_man:"1f6b5-2642",mountain_biking_woman:"1f6b5-2640",mountain_cableway:"1f6a0",mountain_railway:"1f69e",mountain_snow:"1f3d4",mouse:"1f42d",mouse2:"1f401",movie_camera:"1f3a5",moyai:"1f5ff",mozambique:"1f1f2-1f1ff",mrs_claus:"1f936",muscle:"1f4aa",mushroom:"1f344",musical_keyboard:"1f3b9",musical_note:"1f3b5",musical_score:"1f3bc",mute:"1f507",myanmar:"1f1f2-1f1f2",nail_care:"1f485",name_badge:"1f4db",namibia:"1f1f3-1f1e6",national_park:"1f3de",nauru:"1f1f3-1f1f7",nauseated_face:"1f922",nazar_amulet:"1f9ff",necktie:"1f454",negative_squared_cross_mark:"274e",nepal:"1f1f3-1f1f5",nerd_face:"1f913",netherlands:"1f1f3-1f1f1",neutral_face:"1f610",new:"1f195",new_caledonia:"1f1f3-1f1e8",new_moon:"1f311",new_moon_with_face:"1f31a",new_zealand:"1f1f3-1f1ff",newspaper:"1f4f0",newspaper_roll:"1f5de",next_track_button:"23ed",ng:"1f196",ng_man:"1f645-2642",ng_woman:"1f645-2640",nicaragua:"1f1f3-1f1ee",niger:"1f1f3-1f1ea",nigeria:"1f1f3-1f1ec",night_with_stars:"1f303",nine:"0039-20e3",niue:"1f1f3-1f1fa",no_bell:"1f515",no_bicycles:"1f6b3",no_entry:"26d4",no_entry_sign:"1f6ab",no_good:"1f645",no_good_man:"1f645-2642",no_good_woman:"1f645-2640",no_mobile_phones:"1f4f5",no_mouth:"1f636",no_pedestrians:"1f6b7",no_smoking:"1f6ad","non-potable_water":"1f6b1",norfolk_island:"1f1f3-1f1eb",north_korea:"1f1f0-1f1f5",northern_mariana_islands:"1f1f2-1f1f5",norway:"1f1f3-1f1f4",nose:"1f443",notebook:"1f4d3",notebook_with_decorative_cover:"1f4d4",notes:"1f3b6",nut_and_bolt:"1f529",o:"2b55",o2:"1f17e",ocean:"1f30a",octopus:"1f419",oden:"1f362",office:"1f3e2",office_worker:"1f9d1-1f4bc",oil_drum:"1f6e2",ok:"1f197",ok_hand:"1f44c",ok_man:"1f646-2642",ok_person:"1f646",ok_woman:"1f646-2640",old_key:"1f5dd",older_adult:"1f9d3",older_man:"1f474",older_woman:"1f475",om:"1f549",oman:"1f1f4-1f1f2",on:"1f51b",oncoming_automobile:"1f698",oncoming_bus:"1f68d",oncoming_police_car:"1f694",oncoming_taxi:"1f696",one:"0031-20e3",one_piece_swimsuit:"1fa71",onion:"1f9c5",open_book:"1f4d6",open_file_folder:"1f4c2",open_hands:"1f450",open_mouth:"1f62e",open_umbrella:"2602",ophiuchus:"26ce",orange:"1f34a",orange_book:"1f4d9",orange_circle:"1f7e0",orange_heart:"1f9e1",orange_square:"1f7e7",orangutan:"1f9a7",orthodox_cross:"2626",otter:"1f9a6",outbox_tray:"1f4e4",owl:"1f989",ox:"1f402",oyster:"1f9aa",package:"1f4e6",page_facing_up:"1f4c4",page_with_curl:"1f4c3",pager:"1f4df",paintbrush:"1f58c",pakistan:"1f1f5-1f1f0",palau:"1f1f5-1f1fc",palestinian_territories:"1f1f5-1f1f8",palm_tree:"1f334",palms_up_together:"1f932",panama:"1f1f5-1f1e6",pancakes:"1f95e",panda_face:"1f43c",paperclip:"1f4ce",paperclips:"1f587",papua_new_guinea:"1f1f5-1f1ec",parachute:"1fa82",paraguay:"1f1f5-1f1fe",parasol_on_ground:"26f1",parking:"1f17f",parrot:"1f99c",part_alternation_mark:"303d",partly_sunny:"26c5",partying_face:"1f973",passenger_ship:"1f6f3",passport_control:"1f6c2",pause_button:"23f8",paw_prints:"1f43e",peace_symbol:"262e",peach:"1f351",peacock:"1f99a",peanuts:"1f95c",pear:"1f350",pen:"1f58a",pencil:"1f4dd",pencil2:"270f",penguin:"1f427",pensive:"1f614",people_holding_hands:"1f9d1-1f91d-1f9d1",performing_arts:"1f3ad",persevere:"1f623",person_bald:"1f9d1-1f9b2",person_curly_hair:"1f9d1-1f9b1",person_fencing:"1f93a",person_in_manual_wheelchair:"1f9d1-1f9bd",person_in_motorized_wheelchair:"1f9d1-1f9bc",person_red_hair:"1f9d1-1f9b0",person_white_hair:"1f9d1-1f9b3",person_with_probing_cane:"1f9d1-1f9af",person_with_turban:"1f473",peru:"1f1f5-1f1ea",petri_dish:"1f9eb",philippines:"1f1f5-1f1ed",phone:"260e",pick:"26cf",pie:"1f967",pig:"1f437",pig2:"1f416",pig_nose:"1f43d",pill:"1f48a",pilot:"1f9d1-2708",pinching_hand:"1f90f",pineapple:"1f34d",ping_pong:"1f3d3",pirate_flag:"1f3f4-2620",pisces:"2653",pitcairn_islands:"1f1f5-1f1f3",pizza:"1f355",place_of_worship:"1f6d0",plate_with_cutlery:"1f37d",play_or_pause_button:"23ef",pleading_face:"1f97a",point_down:"1f447",point_left:"1f448",point_right:"1f449",point_up:"261d",point_up_2:"1f446",poland:"1f1f5-1f1f1",police_car:"1f693",police_officer:"1f46e",policeman:"1f46e-2642",policewoman:"1f46e-2640",poodle:"1f429",poop:"1f4a9",popcorn:"1f37f",portugal:"1f1f5-1f1f9",post_office:"1f3e3",postal_horn:"1f4ef",postbox:"1f4ee",potable_water:"1f6b0",potato:"1f954",pouch:"1f45d",poultry_leg:"1f357",pound:"1f4b7",pout:"1f621",pouting_cat:"1f63e",pouting_face:"1f64e",pouting_man:"1f64e-2642",pouting_woman:"1f64e-2640",pray:"1f64f",prayer_beads:"1f4ff",pregnant_woman:"1f930",pretzel:"1f968",previous_track_button:"23ee",prince:"1f934",princess:"1f478",printer:"1f5a8",probing_cane:"1f9af",puerto_rico:"1f1f5-1f1f7",punch:"1f44a",purple_circle:"1f7e3",purple_heart:"1f49c",purple_square:"1f7ea",purse:"1f45b",pushpin:"1f4cc",put_litter_in_its_place:"1f6ae",qatar:"1f1f6-1f1e6",question:"2753",rabbit:"1f430",rabbit2:"1f407",raccoon:"1f99d",racehorse:"1f40e",racing_car:"1f3ce",radio:"1f4fb",radio_button:"1f518",radioactive:"2622",rage:"1f621",railway_car:"1f683",railway_track:"1f6e4",rainbow:"1f308",rainbow_flag:"1f3f3-1f308",raised_back_of_hand:"1f91a",raised_eyebrow:"1f928",raised_hand:"270b",raised_hand_with_fingers_splayed:"1f590",raised_hands:"1f64c",raising_hand:"1f64b",raising_hand_man:"1f64b-2642",raising_hand_woman:"1f64b-2640",ram:"1f40f",ramen:"1f35c",rat:"1f400",razor:"1fa92",receipt:"1f9fe",record_button:"23fa",recycle:"267b",red_car:"1f697",red_circle:"1f534",red_envelope:"1f9e7",red_haired_man:"1f468-1f9b0",red_haired_woman:"1f469-1f9b0",red_square:"1f7e5",registered:"00ae",relaxed:"263a",relieved:"1f60c",reminder_ribbon:"1f397",repeat:"1f501",repeat_one:"1f502",rescue_worker_helmet:"26d1",restroom:"1f6bb",reunion:"1f1f7-1f1ea",revolving_hearts:"1f49e",rewind:"23ea",rhinoceros:"1f98f",ribbon:"1f380",rice:"1f35a",rice_ball:"1f359",rice_cracker:"1f358",rice_scene:"1f391",right_anger_bubble:"1f5ef",ring:"1f48d",ringed_planet:"1fa90",robot:"1f916",rocket:"1f680",rofl:"1f923",roll_eyes:"1f644",roll_of_paper:"1f9fb",roller_coaster:"1f3a2",romania:"1f1f7-1f1f4",rooster:"1f413",rose:"1f339",rosette:"1f3f5",rotating_light:"1f6a8",round_pushpin:"1f4cd",rowboat:"1f6a3",rowing_man:"1f6a3-2642",rowing_woman:"1f6a3-2640",ru:"1f1f7-1f1fa",rugby_football:"1f3c9",runner:"1f3c3",running:"1f3c3",running_man:"1f3c3-2642",running_shirt_with_sash:"1f3bd",running_woman:"1f3c3-2640",rwanda:"1f1f7-1f1fc",sa:"1f202",safety_pin:"1f9f7",safety_vest:"1f9ba",sagittarius:"2650",sailboat:"26f5",sake:"1f376",salt:"1f9c2",samoa:"1f1fc-1f1f8",san_marino:"1f1f8-1f1f2",sandal:"1f461",sandwich:"1f96a",santa:"1f385",sao_tome_principe:"1f1f8-1f1f9",sari:"1f97b",sassy_man:"1f481-2642",sassy_woman:"1f481-2640",satellite:"1f4e1",satisfied:"1f606",saudi_arabia:"1f1f8-1f1e6",sauna_man:"1f9d6-2642",sauna_person:"1f9d6",sauna_woman:"1f9d6-2640",sauropod:"1f995",saxophone:"1f3b7",scarf:"1f9e3",school:"1f3eb",school_satchel:"1f392",scientist:"1f9d1-1f52c",scissors:"2702",scorpion:"1f982",scorpius:"264f",scotland:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",scream:"1f631",scream_cat:"1f640",scroll:"1f4dc",seat:"1f4ba",secret:"3299",see_no_evil:"1f648",seedling:"1f331",selfie:"1f933",senegal:"1f1f8-1f1f3",serbia:"1f1f7-1f1f8",service_dog:"1f415-1f9ba",seven:"0037-20e3",seychelles:"1f1f8-1f1e8",shallow_pan_of_food:"1f958",shamrock:"2618",shark:"1f988",shaved_ice:"1f367",sheep:"1f411",shell:"1f41a",shield:"1f6e1",shinto_shrine:"26e9",ship:"1f6a2",shirt:"1f455",poo:"1f4a9",shoe:"1f45e",shopping:"1f6cd",shopping_cart:"1f6d2",shorts:"1fa73",shower:"1f6bf",shrimp:"1f990",shrug:"1f937",shushing_face:"1f92b",sierra_leone:"1f1f8-1f1f1",signal_strength:"1f4f6",singapore:"1f1f8-1f1ec",singer:"1f9d1-1f3a4",sint_maarten:"1f1f8-1f1fd",six:"0036-20e3",six_pointed_star:"1f52f",skateboard:"1f6f9",ski:"1f3bf",skier:"26f7",skull:"1f480",skull_and_crossbones:"2620",skunk:"1f9a8",sled:"1f6f7",sleeping:"1f634",sleeping_bed:"1f6cc",sleepy:"1f62a",slightly_frowning_face:"1f641",slightly_smiling_face:"1f642",slot_machine:"1f3b0",sloth:"1f9a5",slovakia:"1f1f8-1f1f0",slovenia:"1f1f8-1f1ee",small_airplane:"1f6e9",small_blue_diamond:"1f539",small_orange_diamond:"1f538",small_red_triangle:"1f53a",small_red_triangle_down:"1f53b",smile:"1f604",smile_cat:"1f638",smiley:"1f603",smiley_cat:"1f63a",smiling_face_with_three_hearts:"1f970",smiling_imp:"1f608",smirk:"1f60f",smirk_cat:"1f63c",smoking:"1f6ac",snail:"1f40c",snake:"1f40d",sneezing_face:"1f927",snowboarder:"1f3c2",snowflake:"2744",snowman:"26c4",snowman_with_snow:"2603",soap:"1f9fc",sob:"1f62d",soccer:"26bd",socks:"1f9e6",softball:"1f94e",solomon_islands:"1f1f8-1f1e7",somalia:"1f1f8-1f1f4",soon:"1f51c",sos:"1f198",sound:"1f509",south_africa:"1f1ff-1f1e6",south_georgia_south_sandwich_islands:"1f1ec-1f1f8",south_sudan:"1f1f8-1f1f8",space_invader:"1f47e",spades:"2660",spaghetti:"1f35d",sparkle:"2747",sparkler:"1f387",sparkles:"2728",sparkling_heart:"1f496",speak_no_evil:"1f64a",speaker:"1f508",speaking_head:"1f5e3",speech_balloon:"1f4ac",speedboat:"1f6a4",spider:"1f577",spider_web:"1f578",spiral_calendar:"1f5d3",spiral_notepad:"1f5d2",sponge:"1f9fd",spoon:"1f944",squid:"1f991",sri_lanka:"1f1f1-1f1f0",st_barthelemy:"1f1e7-1f1f1",st_helena:"1f1f8-1f1ed",st_kitts_nevis:"1f1f0-1f1f3",st_lucia:"1f1f1-1f1e8",st_martin:"1f1f2-1f1eb",st_pierre_miquelon:"1f1f5-1f1f2",st_vincent_grenadines:"1f1fb-1f1e8",stadium:"1f3df",standing_man:"1f9cd-2642",standing_person:"1f9cd",standing_woman:"1f9cd-2640",star:"2b50",star2:"1f31f",star_and_crescent:"262a",star_of_david:"2721",star_struck:"1f929",stars:"1f320",station:"1f689",statue_of_liberty:"1f5fd",steam_locomotive:"1f682",stethoscope:"1fa7a",stew:"1f372",stop_button:"23f9",stop_sign:"1f6d1",stopwatch:"23f1",straight_ruler:"1f4cf",strawberry:"1f353",stuck_out_tongue:"1f61b",stuck_out_tongue_closed_eyes:"1f61d",stuck_out_tongue_winking_eye:"1f61c",student:"1f9d1-1f393",studio_microphone:"1f399",stuffed_flatbread:"1f959",sudan:"1f1f8-1f1e9",sun_behind_large_cloud:"1f325",sun_behind_rain_cloud:"1f326",sun_behind_small_cloud:"1f324",sun_with_face:"1f31e",sunflower:"1f33b",sunglasses:"1f60e",sunny:"2600",sunrise:"1f305",sunrise_over_mountains:"1f304",superhero:"1f9b8",superhero_man:"1f9b8-2642",superhero_woman:"1f9b8-2640",supervillain:"1f9b9",supervillain_man:"1f9b9-2642",supervillain_woman:"1f9b9-2640",surfer:"1f3c4",surfing_man:"1f3c4-2642",surfing_woman:"1f3c4-2640",suriname:"1f1f8-1f1f7",sushi:"1f363",suspension_railway:"1f69f",svalbard_jan_mayen:"1f1f8-1f1ef",swan:"1f9a2",swaziland:"1f1f8-1f1ff",sweat:"1f613",sweat_drops:"1f4a6",sweat_smile:"1f605",sweden:"1f1f8-1f1ea",sweet_potato:"1f360",swim_brief:"1fa72",swimmer:"1f3ca",swimming_man:"1f3ca-2642",swimming_woman:"1f3ca-2640",switzerland:"1f1e8-1f1ed",symbols:"1f523",synagogue:"1f54d",syria:"1f1f8-1f1fe",syringe:"1f489","t-rex":"1f996",taco:"1f32e",tada:"1f389",taiwan:"1f1f9-1f1fc",tajikistan:"1f1f9-1f1ef",takeout_box:"1f961",tanabata_tree:"1f38b",tangerine:"1f34a",tanzania:"1f1f9-1f1ff",taurus:"2649",taxi:"1f695",tea:"1f375",teacher:"1f9d1-1f3eb",technologist:"1f9d1-1f4bb",teddy_bear:"1f9f8",telephone:"260e",telephone_receiver:"1f4de",telescope:"1f52d",tennis:"1f3be",tent:"26fa",test_tube:"1f9ea",thailand:"1f1f9-1f1ed",thermometer:"1f321",thinking:"1f914",thought_balloon:"1f4ad",thread:"1f9f5",three:"0033-20e3",thumbsdown:"1f44e",thumbsup:"1f44d",ticket:"1f3ab",tickets:"1f39f",tiger:"1f42f",tiger2:"1f405",timer_clock:"23f2",timor_leste:"1f1f9-1f1f1",tipping_hand_man:"1f481-2642",tipping_hand_person:"1f481",tipping_hand_woman:"1f481-2640",tired_face:"1f62b",tm:"2122",togo:"1f1f9-1f1ec",toilet:"1f6bd",tokelau:"1f1f9-1f1f0",tokyo_tower:"1f5fc",tomato:"1f345",tonga:"1f1f9-1f1f4",tongue:"1f445",toolbox:"1f9f0",tooth:"1f9b7",top:"1f51d",tophat:"1f3a9",tornado:"1f32a",tr:"1f1f9-1f1f7",trackball:"1f5b2",tractor:"1f69c",traffic_light:"1f6a5",train:"1f68b",train2:"1f686",tram:"1f68a",triangular_flag_on_post:"1f6a9",triangular_ruler:"1f4d0",trident:"1f531",trinidad_tobago:"1f1f9-1f1f9",tristan_da_cunha:"1f1f9-1f1e6",triumph:"1f624",trolleybus:"1f68e",trophy:"1f3c6",tropical_drink:"1f379",tropical_fish:"1f420",truck:"1f69a",trumpet:"1f3ba",tshirt:"1f455",tulip:"1f337",tumbler_glass:"1f943",tunisia:"1f1f9-1f1f3",turkey:"1f983",turkmenistan:"1f1f9-1f1f2",turks_caicos_islands:"1f1f9-1f1e8",turtle:"1f422",tuvalu:"1f1f9-1f1fb",tv:"1f4fa",twisted_rightwards_arrows:"1f500",two:"0032-20e3",two_hearts:"1f495",two_men_holding_hands:"1f46c",two_women_holding_hands:"1f46d",u5272:"1f239",u5408:"1f234",u55b6:"1f23a",u6307:"1f22f",u6708:"1f237",u6709:"1f236",u6e80:"1f235",u7121:"1f21a",u7533:"1f238",u7981:"1f232",u7a7a:"1f233",uganda:"1f1fa-1f1ec",uk:"1f1ec-1f1e7",ukraine:"1f1fa-1f1e6",umbrella:"2614",unamused:"1f612",underage:"1f51e",unicorn:"1f984",united_arab_emirates:"1f1e6-1f1ea",united_nations:"1f1fa-1f1f3",unlock:"1f513",up:"1f199",upside_down_face:"1f643",uruguay:"1f1fa-1f1fe",us:"1f1fa-1f1f8",us_outlying_islands:"1f1fa-1f1f2",us_virgin_islands:"1f1fb-1f1ee",uzbekistan:"1f1fa-1f1ff",v:"270c",vampire:"1f9db",vampire_man:"1f9db-2642",vampire_woman:"1f9db-2640",vanuatu:"1f1fb-1f1fa",vatican_city:"1f1fb-1f1e6",venezuela:"1f1fb-1f1ea",vertical_traffic_light:"1f6a6",vhs:"1f4fc",vibration_mode:"1f4f3",video_camera:"1f4f9",video_game:"1f3ae",vietnam:"1f1fb-1f1f3",violin:"1f3bb",virgo:"264d",volcano:"1f30b",volleyball:"1f3d0",vomiting_face:"1f92e",vs:"1f19a",vulcan_salute:"1f596",waffle:"1f9c7",wales:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",walking:"1f6b6",walking_man:"1f6b6-2642",walking_woman:"1f6b6-2640",wallis_futuna:"1f1fc-1f1eb",waning_crescent_moon:"1f318",waning_gibbous_moon:"1f316",warning:"26a0",wastebasket:"1f5d1",watch:"231a",water_buffalo:"1f403",water_polo:"1f93d",watermelon:"1f349",wave:"1f44b",wavy_dash:"3030",waxing_crescent_moon:"1f312",waxing_gibbous_moon:"1f314",wc:"1f6be",weary:"1f629",wedding:"1f492",weight_lifting:"1f3cb",weight_lifting_man:"1f3cb-2642",weight_lifting_woman:"1f3cb-2640",western_sahara:"1f1ea-1f1ed",whale:"1f433",whale2:"1f40b",wheel_of_dharma:"2638",wheelchair:"267f",white_check_mark:"2705",white_circle:"26aa",white_flag:"1f3f3",white_flower:"1f4ae",white_haired_man:"1f468-1f9b3",white_haired_woman:"1f469-1f9b3",white_heart:"1f90d",white_large_square:"2b1c",white_medium_small_square:"25fd",white_medium_square:"25fb",white_small_square:"25ab",white_square_button:"1f533",wilted_flower:"1f940",wind_chime:"1f390",wind_face:"1f32c",wine_glass:"1f377",wink:"1f609",wolf:"1f43a",woman:"1f469",woman_artist:"1f469-1f3a8",woman_astronaut:"1f469-1f680",woman_cartwheeling:"1f938-2640",woman_cook:"1f469-1f373",woman_dancing:"1f483",woman_facepalming:"1f926-2640",woman_factory_worker:"1f469-1f3ed",woman_farmer:"1f469-1f33e",woman_firefighter:"1f469-1f692",woman_health_worker:"1f469-2695",woman_in_manual_wheelchair:"1f469-1f9bd",woman_in_motorized_wheelchair:"1f469-1f9bc",woman_judge:"1f469-2696",woman_juggling:"1f939-2640",woman_mechanic:"1f469-1f527",woman_office_worker:"1f469-1f4bc",woman_pilot:"1f469-2708",woman_playing_handball:"1f93e-2640",woman_playing_water_polo:"1f93d-2640",woman_scientist:"1f469-1f52c",woman_shrugging:"1f937-2640",woman_singer:"1f469-1f3a4",woman_student:"1f469-1f393",woman_teacher:"1f469-1f3eb",woman_technologist:"1f469-1f4bb",woman_with_headscarf:"1f9d5",woman_with_probing_cane:"1f469-1f9af",woman_with_turban:"1f473-2640",womans_clothes:"1f45a",womans_hat:"1f452",women_wrestling:"1f93c-2640",womens:"1f6ba",woozy_face:"1f974",world_map:"1f5fa",worried:"1f61f",wrench:"1f527",wrestling:"1f93c",writing_hand:"270d",x:"274c",yarn:"1f9f6",yawning_face:"1f971",yellow_circle:"1f7e1",yellow_heart:"1f49b",yellow_square:"1f7e8",yemen:"1f1fe-1f1ea",yen:"1f4b4",yin_yang:"262f",yo_yo:"1fa80",yum:"1f60b",zambia:"1f1ff-1f1f2",zany_face:"1f92a",zap:"26a1",zebra:"1f993",zero:"0030-20e3",zimbabwe:"1f1ff-1f1fc",zipper_mouth_face:"1f910",zombie:"1f9df",zombie_man:"1f9df-2642",zombie_woman:"1f9df-2640",zzz:"1f4a4"};function Xd(e,t){var n=fi(e);if(di){var r=di(e);t&&(r=Bi(r).call(r,(function(t){return bi(e,t).enumerable}))),n.push.apply(n,r)}return n}function zd(e){for(var t=1;t<arguments.length;t++){var n,r,A=null!=arguments[t]?arguments[t]:{};t%2?xi(n=Xd(Object(A),!0)).call(n,(function(t){so(e,t,A[t])})):Ni?Oi(e,Ni(A)):xi(r=Xd(Object(A))).call(r,(function(t){Mi(e,t,bi(A,t))}))}return e}function qd(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}function Jd(){for(var e=[],t=0,n="",r=0,A=arguments.length;r!==A;++r){var i=+(r<0||arguments.length<=r?void 0:arguments[r]);if(!(i<1114111&&i>>>0===i))throw new RangeError("Invalid code point: ".concat(i));i<=65535?t=e.push(i):(i-=65536,t=e.push(55296+(i>>10),i%1024+56320)),t>=16383&&(n+=String.fromCharCode.apply(null,e),e.length=0)}return n+String.fromCharCode.apply(null,e)}var Zd=function(e){qi(n,ml);var t=qd(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0},A=r.config;if(Pi(this,n),(e=t.call(this,{config:A})).options={useUnicode:!0,upperCase:!1,customHandled:!1,resourceURL:"https://github.githubassets.com/images/icons/emoji/unicode/${code}.png?v8",emojis:zd({},Yd)},"object"!==no(A))return ro(e);var i=A.useUnicode,o=A.customResourceURL,a=A.customRenderer,s=A.upperCase;return e.options.useUnicode="boolean"==typeof i?i:e.options.useUnicode,e.options.upperCase="boolean"==typeof i?s:e.options.upperCase,!1===i&&"string"==typeof o&&(e.options.resourceURL=o),"function"==typeof a&&(e.options.customHandled=!0,e.options.customRenderer=a),e}return Gi(n,[{key:"makeHtml",value:function(e,t){var n=this;return this.test(e)?e.replace(this.RULE.reg,(function(e,t){var r;if(n.options.customHandled&&"function"==typeof n.options.customRenderer)return n.options.customRenderer(t);var A=n.options.emojis[t];if("string"!=typeof A)return e;if(n.options.useUnicode){var i,o=Cl(i=A.split("-")).call(i,(function(e){return"0x".concat(e)}));return Jd.apply(void 0,Gu(o))}n.options.upperCase&&(A=A.toUpperCase());var a=n.options.resourceURL.replace(/\$\{code\}/g,A);return uo(r='<img class="emoji" src="'.concat(a,'" alt="')).call(r,Ff(t),'" />')})):e}},{key:"rule",value:function(){var e={begin:":",content:"([a-zA-Z0-9+_]+?)",end:":"};return e.reg=Iu(e,"g"),e}}]),n}();function ep(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}so(Zd,"HOOK_NAME","emoji");var tp=function(e){qi(n,ml);var t=ep(n);function n(){return Pi(this,n),t.apply(this,arguments)}return Gi(n,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,'$1<span style="text-decoration: underline;">$2</span>$3'):e}},{key:"rule",value:function(){var e={begin:"(^| )\\/",end:"\\/( |$)",content:"([^\\n]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();function np(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}so(tp,"HOOK_NAME","underline");var rp=function(e){qi(n,ml);var t=np(n);function n(){return Pi(this,n),t.apply(this,arguments)}return Gi(n,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,"$1<mark>$2</mark>$3"):e}},{key:"rule",value:function(){var e={begin:"(^| )==",end:"==( |$|\\n)",content:"([^\\n]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();so(rp,"HOOK_NAME","highLight"),Q.JSON||(Q.JSON={stringify:JSON.stringify});var Ap=function(e,t,n){return h(Q.JSON.stringify,null,arguments)},ip=Nt.includes,op=s((function(){return!Array(1).includes()}));Xe({target:"Array",proto:!0,forced:op},{includes:function(e){return ip(this,e,arguments.length>1?arguments[1]:void 0)}});var ap=mn("Array").includes,sp=v("".indexOf);Xe({target:"String",proto:!0,forced:!hd("includes")},{includes:function(e){return!!~sp(bn(N(this)),bn(ud(e)),arguments.length>1?arguments[1]:void 0)}});var cp=mn("String").includes,lp=Array.prototype,up=String.prototype,fp=function(e){var t=e.includes;return e===lp||H(lp,e)&&t===lp.includes?ap:"string"==typeof e||e===up||H(up,e)&&t===up.includes?cp:t};var hp=function(e,t){for(var n=-1,r=null==e?0:e.length,A=Array(r);++n<r;)A[n]=t(e[n],n,e);return A};var dp=function(e){return"symbol"==typeof e||es(e)&&"[object Symbol]"==Jo(e)},pp=Go?Go.prototype:void 0,gp=pp?pp.toString:void 0;var mp=function e(t){if("string"==typeof t)return t;if(os(t))return hp(t,e)+"";if(dp(t))return gp?gp.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};var vp=function(e){return null==e?"":mp(e)},Bp=/[\\^$.*+?()[\]{}|]/g,Ep=RegExp(Bp.source);var yp=function(e){return(e=vp(e))&&Ep.test(e)?e.replace(Bp,"\\$&"):e},Cp=function(){return"CodeMirror.Pass"};function bp(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var wp=function(e){qi(n,ml);var t=bp(n);function n(e){var r,A=e.config;return Pi(this,n),(r=t.call(this,{needCache:!0})).initConfig(A),r.RULE=r.rule(),r}return Gi(n,[{key:"initConfig",value:function(e){var t=this,n=e.suggester;this.suggester={},n&&(xi(n).call(n,(function(e){e.suggestList?(e.keyword||(e.keyword="@"),t.suggester[e.keyword]=e):console.warn("[cherry-suggester]: the suggestList of config is missing.")})),_p.hasEditor()&&(_p.editor=null))}},{key:"makeHtml",value:function(e){var t,n;if(!this.RULE.reg)return e;if(!_p.hasEditor()&&Fh()){var r=this.$engine.$cherry.editor;_p.setEditor(r),_p.setSuggester(this.suggester),_p.bindEvent()}return Su()?e.replace(this.RULE.reg,go(n=this.toHtml).call(n,this)):Yu(e,this.RULE.reg,go(t=this.toHtml).call(t,this),!0,1)}},{key:"toHtml",value:function(e,t,n,r){var A,i,o,a,s;return r?(null===(i=this.suggester[n])||void 0===i||null===(o=i.echo)||void 0===o?void 0:o.call(this,r))||uo(a=uo(s="".concat(t,'<span class="cherry-suggestion">')).call(s,n)).call(a,r,"</span>"):!1===(null===(A=this.suggester[n])||void 0===A?void 0:A.echo)?"".concat(t):this.suggester[n]?r?t+r:"".concat(t):t+r}},{key:"rule",value:function(){var e,t,n;if(!this.suggester||fi(this.suggester).length<=0)return{};var r=Cl(e=fi(this.suggester)).call(e,(function(e){return yp(e)})).join("|");return{reg:new RegExp(uo(t=uo(n="".concat(Su()?"((?<!\\\\))[ ]":"(^|[^\\\\])[ ]","(")).call(n,r,")(([^")).call(t,r,"\\s])+)"),"g")}}},{key:"mounted",value:function(){if(!_p.hasEditor()&&Fh()){var e=this.$engine.$cherry.editor;_p.setEditor(e),_p.setSuggester(this.suggester),_p.bindEvent()}}}]),n}();so(wp,"HOOK_NAME","suggester");var Tp=function(){function e(){Pi(this,e),this.searchCache=!1,this.searchKeyCache=[],this.optionList=[],this.cursorMove=!0,this.suggesterConfig={},!this.$suggesterPanel&&Fh()&&(document.body.append(this.createDom(e.panelWrap)),this.$suggesterPanel=document.querySelector(".cherry-suggester-panel"))}return Gi(e,[{key:"hasEditor",value:function(){return!!this.editor&&!!this.editor.editor.display&&!!this.editor.editor.display.wrapper}},{key:"setEditor",value:function(e){this.editor=e}},{key:"setSuggester",value:function(e){this.suggesterConfig=e}},{key:"bindEvent",value:function(){var e=this,t=!1;this.editor.editor.on("change",(function(n,r){t=!0,e.onCodeMirrorChange(n,r)})),this.editor.editor.on("keydown",(function(n,r){t=!0,e.enableRelate()&&e.onKeyDown(n,r)})),this.editor.editor.on("cursorActivity",(function(){t||e.stopRelate(),t=!1}));var n=this.editor.editor.getOption("extraKeys"),r=["Up","Down","Enter"];xi(r).call(r,(function(t){if("function"==typeof n[t]){var r=n[t];n[t]=function(e){if(_p.cursorMove){var t=r.call(e,e);return t||Cp()}}}else if(n[t]){if("string"==typeof n[t]){var A=n[t];n[t]=function(t){_p.cursorMove&&e.editor.editor.execCommand(A)}}}else n[t]=function(){if(_p.cursorMove)return Cp()}})),this.editor.editor.setOption("extraKeys",n),this.editor.editor.on("scroll",(function(t,n){e.searchCache&&e.relocatePanel(e.editor.editor)})),this.onClickPancelItem()}},{key:"onClickPancelItem",value:function(){var e=this;this.$suggesterPanel.addEventListener("click",(function(t){var n=function(e,t){var n,r=-1;return xi(n=e.childNodes).call(n,(function(e,n){return e===t?r=n:""})),r}(e.$suggesterPanel,t.target);n>-1&&e.pasteSelectResult(n),e.stopRelate()}),!1)}},{key:"showsuggesterPanel",value:function(t){var n=t.left,r=t.top,A=t.items;this.$suggesterPanel||(document.body.append(this.createDom(e.panelWrap)),this.$suggesterPanel=document.querySelector(".cherry-suggester-panel")),this.updatePanel(A),this.$suggesterPanel.style.left="".concat(n,"px"),this.$suggesterPanel.style.top="".concat(r,"px"),this.$suggesterPanel.style.display="block",this.$suggesterPanel.style.position="absolute",this.$suggesterPanel.style.zIndex="100"}},{key:"hidesuggesterPanel",value:function(){this.$suggesterPanel&&(this.$suggesterPanel.style.display="none")}},{key:"updatePanel",value:function(e){var t=this,n=Cl(e).call(e,(function(e,n){return t.renderPanelItem(e,0===n)})).join("");this.suggesterConfig[this.keyword]&&this.suggesterConfig[this.keyword].suggestListRender&&(n=this.suggesterConfig[this.keyword].suggestListRender.call(this,e)||n),"string"==typeof n?this.$suggesterPanel.innerHTML=n:"object"===no(n)&&1===n.nodeType&&this.$suggesterPanel.append(n)}},{key:"renderPanelItem",value:function(e,t){return t?'<div class="cherry-suggester-panel__item cherry-suggester-panel__item--selected">'.concat(e,"</div>"):'<div class="cherry-suggester-panel__item">'.concat(e,"</div>")}},{key:"createDom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.template||(this.template=document.createElement("div")),this.template.innerHTML=Ic(e).call(e);var t=document.createDocumentFragment();return Cl(Array.prototype).call(this.template.childNodes,(function(e,n){t.appendChild(e)})),t}},{key:"relocatePanel",value:function(e){var t=document.querySelector(".CodeMirror-cursors .CodeMirror-cursor");if(!t)return!1;var n=e.getCursor(),r=e.lineInfo(n.line).handle.height,A=t.getBoundingClientRect(),i=A.top+r,o=A.left;this.showsuggesterPanel({left:o,top:i,items:this.optionList})}},{key:"startRelate",value:function(e,t,n){this.cursorFrom=n,this.keyword=t,this.searchCache=!0,this.searchKeyCache=[t],this.relocatePanel(e)}},{key:"stopRelate",value:function(){this.hidesuggesterPanel(),this.cursorFrom=null,this.cursorTo=null,this.keyword="",this.searchKeyCache=[],this.searchCache=!1,this.cursorMove=!0}},{key:"pasteSelectResult",value:function(e){if(this.cursorTo||(this.cursorTo=JSON.parse(Ap(this.cursorFrom))),this.cursorTo&&(this.cursorTo.ch+=1,this.optionList[e])){var t,n=uo(t=" ".concat(this.keyword)).call(t,this.optionList[e]," ");this.editor.editor.replaceRange(n,this.cursorFrom,this.cursorTo)}}},{key:"findSelectedItemIndex",value:function(){return al(Array.prototype).call(this.$suggesterPanel.childNodes,(function(e){return e.classList.contains("cherry-suggester-panel__item--selected")}))}},{key:"enableRelate",value:function(){return this.searchCache}},{key:"onCodeMirrorChange",value:function(e,t){var n=this,r=t.text,A=t.from,i=t.to,o=t.origin,a=1===r.length?r[0]:"";if(this.suggesterConfig[a])this.startRelate(e,a,A);else if(this.enableRelate()&&(a||"+delete"===o)){if(this.cursorTo=i,a)this.searchKeyCache.push(a);else if("+delete"===o&&(this.searchKeyCache.pop(),0===this.searchKeyCache.length))return void this.stopRelate();this.suggesterConfig[this.keyword].suggestList(this.searchKeyCache.join(""),(function(e){e&&e.length&&(n.optionList=e,n.updatePanel(n.optionList))}))}}},{key:"onKeyDown",value:function(e,t){var n,r=this;if(!this.$suggesterPanel)return!1;var A=t.keyCode;if(fp(n=[38,40]).call(n,A)){this.cursorMove=!1;var i=this.$suggesterPanel.querySelector(".cherry-suggester-panel__item--selected"),o=null;38!==A||i.previousElementSibling?40!==A||i.nextElementSibling?38===A?o=i.previousElementSibling:40===A&&(o=i.nextElementSibling):o=this.$suggesterPanel.firstElementChild:o=this.$suggesterPanel.lastElementChild,i.classList.remove("cherry-suggester-panel__item--selected"),o.classList.add("cherry-suggester-panel__item--selected")}else 13===A&&(t.stopPropagation(),this.cursorMove=!1,this.pasteSelectResult(this.findSelectedItemIndex()),e.focus(),To((function(){r.stopRelate()}),0))}}]),e}();so(Tp,"panelWrap",'<div class="cherry-suggester-panel"></div>');var _p=new Tp;function Ip(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var Sp=function(e){qi(n,ml);var t=Ip(n);function n(){return Pi(this,n),t.apply(this,arguments)}return Gi(n,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,"$1<ruby>$2<rt>$3</rt></ruby>$4"):e}},{key:"rule",value:function(){var e={begin:"(^| )\\{",end:"\\}( |$)",content:"([^\n]+?)\\|([^\n]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}]),n}();so(Sp,"HOOK_NAME","ruby");var kp=[Qf,Mf,_d,Sd,jd,Qd,Md,gh,Lh,kh,zh,Dd,dh,Nh,jh,Ah,Zd,Mh,zf,Jh,nh,Ju,zu,ef,af,Af,Sp,nf,tp,rp,wp],Fp=function(){function e(t,n){Pi(this,e),this.$cherry=n,Mi(this,"_cherry",{get:function(){return el.warn("`_engine._cherry` is deprecated. Use `$engine.$cherry` instead."),this.$cherry}}),this.initMath(t),this.$configInit(t),this.hookCenter=new _u(kp,t),this.hooks=this.hookCenter.getHookList(),this.md5Cache={},this.md5StrMap={},this.markdownParams=t,this.currentStrMd5=[],this.htmlWhiteListAppend=t.engine.global.htmlWhiteList}return Gi(e,[{key:"initMath",value:function(e){var t=e.externals,n=e.engine.syntax,r=n.mathBlock.plugins;if(Fh()&&(n.mathBlock.src||n.inlineMath.src)&&!t.MathJax&&!window.MathJax){!function(e){if(Fh()){var t=e?["input/asciimath","[tex]/noerrors","[tex]/cancel","[tex]/color","[tex]/boldsymbol"]:[];window.MathJax={startup:{elements:[".Cherry-Math",".Cherry-InlineMath"],typeset:!0},tex:{inlineMath:[["$","$"],["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],tags:"ams",packages:{"[+]":["noerrors","cancel","color"]},macros:{bm:["{\\boldsymbol{#1}}",1]}},options:{skipHtmlTags:["script","noscript","style","textarea","pre","code","a"],ignoreHtmlClass:"tex2jax_ignore",processHtmlClass:"tex2jax_process",enableMenu:!1},loader:{load:t}}}}(r);var A=document.createElement("script");A.src=n.mathBlock.src?n.mathBlock.src:n.inlineMath.src,A.async=!0,A.src&&document.head.appendChild(A)}}},{key:"$configInit",value:function(e){if(e.hooksConfig&&mu(e.hooksConfig.hooksList,Array))for(var t=0;t<e.hooksConfig.hooksList.length;t++){var n=e.hooksConfig.hooksList[t];try{"sentence"===n.getType()&&vu(n,ml),"paragraph"===n.getType()&&vu(n,Il),Bu(n),kp.push(n)}catch(e){throw new Error("the hook does not correctly inherit")}}}},{key:"$beforeMakeHtml",value:function(e){var t=e.replace(/~/g,"~T");return"\n"!==(t=(t=(t=t.replace(/\$/g,"~D")).replace(/\r\n/g,"\n")).replace(/\r/g,"\n"))[t.length-1]&&(t+="\n"),t=this.$fireHookAction(t,"sentence","beforeMakeHtml"),t=this.$fireHookAction(t,"paragraph","beforeMakeHtml")}},{key:"$afterMakeHtml",value:function(e){var t=this.$fireHookAction(e,"paragraph","afterMakeHtml");return t=(t=(t=(t=(t=t.replace(/~D/g,"$")).replace(/~T/g,"~")).replace(/\\<\//g,"\\ </")).replace(new RegExp("\\\\(".concat(Fu,")"),"g"),(function(e,t){return"&"===t?e:kf(t)})).replace(/\\&(?!(amp|lt|gt|quot|apos);)/,(function(){return"&amp;"}))).replace(/\\ <\//g,"\\</"),t=Yf.restoreAll(t)}},{key:"$dealSentenceByCache",value:function(e){var t=this;return this.$checkCache(e,(function(e){return t.$dealSentence(e)}))}},{key:"$dealSentence",value:function(e){var t;return this.$fireHookAction(e,"sentence","makeHtml",go(t=this.$dealSentenceByCache).call(t,this))}},{key:"$fireHookAction",value:function(e,t,n,r){var A=this,i=e,o="afterMakeHtml"===n?"reduceRight":"reduce";if(!this.hooks&&!this.hooks[t]&&!this.hooks[t][o])return i;try{i=this.hooks[t][o]((function(e,t){return t.$engine||(t.$engine=A,Mi(t,"_engine",{get:function(){return el.warn("`this._engine` is deprecated. Use `this.$engine` instead."),this.$engine}})),t[n]?t[n](e,r,A.markdownParams):e}),i)}catch(e){throw new Eu(e)}return i}},{key:"md5",value:function(e){return this.md5StrMap[e]||(this.md5StrMap[e]=Vf(e)),this.md5StrMap[e]}},{key:"$checkCache",value:function(e,t){var n=this.md5(e);return void 0===this.md5Cache[n]&&(this.md5Cache[n]=t(e)),{sign:n,html:this.md5Cache[n]}}},{key:"$dealParagraph",value:function(e){var t;return this.$fireHookAction(e,"paragraph","makeHtml",go(t=this.$dealSentenceByCache).call(t,this))}},{key:"makeHtml",value:function(e){var t=this.$beforeMakeHtml(e);return t=this.$dealParagraph(t),t=this.$afterMakeHtml(t)}},{key:"mounted",value:function(){this.$fireHookAction("","sentence","mounted"),this.$fireHookAction("","paragraph","mounted")}},{key:"makeMarkdown",value:function(e){return Yc.run(e)}}]),e}(),xp=Array.isArray,Lp=Object.prototype.toString,Up=xp||function(e){return"[object Array]"===Lp.call(e)};var Np=function(e){return e&&"VirtualNode"===e.type&&"2"===e.version};var Dp=function(e){return e&&"Widget"===e.type};var Op=function(e){return e&&"Thunk"===e.type};var Qp=function(e){return e&&("function"==typeof e.hook&&!e.hasOwnProperty("hook")||"function"==typeof e.unhook&&!e.hasOwnProperty("unhook"))};var Rp=Pp,Mp={},Hp=[];function Pp(e,t,n,r,A){this.tagName=e,this.properties=t||Mp,this.children=n||Hp,this.key=null!=r?String(r):void 0,this.namespace="string"==typeof A?A:null;var i,o=n&&n.length||0,a=0,s=!1,c=!1,l=!1;for(var u in t)if(t.hasOwnProperty(u)){var f=t[u];Qp(f)&&f.unhook&&(i||(i={}),i[u]=f)}for(var h=0;h<o;h++){var d=n[h];Np(d)?(a+=d.count||0,!s&&d.hasWidgets&&(s=!0),!c&&d.hasThunks&&(c=!0),l||!d.hooks&&!d.descendantHooks||(l=!0)):!s&&Dp(d)?"function"==typeof d.destroy&&(s=!0):!c&&Op(d)&&(c=!0)}this.count=o+a,this.hasWidgets=s,this.hasThunks=c,this.hooks=i,this.descendantHooks=l}Pp.prototype.version="2",Pp.prototype.type="VirtualNode";var Kp=Gp;function Gp(e){this.text=String(e)}Gp.prototype.version="2",Gp.prototype.type="VirtualText";var $p=function(e){return e&&"VirtualText"===e.type&&"2"===e.version};var Vp,Wp,jp,Yp=(Wp=String.prototype.split,jp=/()??/.exec("")[1]===Vp,function(e,t,n){if("[object RegExp]"!==Object.prototype.toString.call(t))return Wp.call(e,t,n);var r,A,i,o,a=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.extended?"x":"")+(t.sticky?"y":""),c=0;for(t=new RegExp(t.source,s+"g"),e+="",jp||(r=new RegExp("^"+t.source+"$(?!\\s)",s)),n=n===Vp?-1>>>0:n>>>0;(A=t.exec(e))&&!((i=A.index+A[0].length)>c&&(a.push(e.slice(c,A.index)),!jp&&A.length>1&&A[0].replace(r,(function(){for(var e=1;e<arguments.length-2;e++)arguments[e]===Vp&&(A[e]=Vp)})),A.length>1&&A.index<e.length&&Array.prototype.push.apply(a,A.slice(1)),o=A[0].length,c=i,a.length>=n));)t.lastIndex===A.index&&t.lastIndex++;return c===e.length?!o&&t.test("")||a.push(""):a.push(e.slice(c)),a.length>n?a.slice(0,n):a}),Xp=/([\.#]?[a-zA-Z0-9\u007F-\uFFFF_:-]+)/,zp=/^\.|#/,qp=function(e,t){if(!e)return"DIV";var n,r,A,i,o=!t.hasOwnProperty("id"),a=Yp(e,Xp),s=null;zp.test(a[1])&&(s="DIV");for(i=0;i<a.length;i++)(r=a[i])&&(A=r.charAt(0),s?"."===A?(n=n||[]).push(r.substring(1,r.length)):"#"===A&&o&&(t.id=r.substring(1,r.length)):s=r);n&&(t.className&&n.push(t.className),t.className=n.join(" "));return t.namespace?s:s.toUpperCase()};var Jp=Zp;function Zp(e){if(!(this instanceof Zp))return new Zp(e);this.value=e}Zp.prototype.hook=function(e,t){e[t]!==this.value&&(e[t]=this.value)};var eg="undefined"!=typeof window?window:void 0!==t?t:{},tg=function(e,t){if(e in eg)return eg[e];return eg[e]=t,t};(function(e,t,n){var r="__INDIVIDUAL_ONE_VERSION_"+e,A=tg(r+"_ENFORCE_SINGLETON",t);if(A!==t)throw new Error("Can only have one copy of "+e+".\nYou already have version "+A+" installed.\nThis means you cannot install version "+t);tg(r,n)})("ev-store","7");var ng=function(e){var t=e["__EV_STORE_KEY@7"];t||(t=e["__EV_STORE_KEY@7"]={});return t};var rg=Ag;function Ag(e){if(!(this instanceof Ag))return new Ag(e);this.value=e}function ig(e){return Np(e)||$p(e)||Dp(e)||Op(e)}function og(e){try{return JSON.stringify(e,null," ")}catch(t){return String(e)}}Ag.prototype.hook=function(e,t){ng(e)[t.substr(3)]=this.value},Ag.prototype.unhook=function(e,t){ng(e)[t.substr(3)]=void 0};var ag=function(e,t,n){var r,A,i,o,a=[];!n&&(s=t,"string"==typeof s||Up(s)||ig(s))&&(n=t,A={});var s;r=qp(e,A=A||t||{}),A.hasOwnProperty("key")&&(i=A.key,A.key=void 0);A.hasOwnProperty("namespace")&&(o=A.namespace,A.namespace=void 0);"INPUT"!==r||o||!A.hasOwnProperty("value")||void 0===A.value||Qp(A.value)||(A.value=Jp(A.value));(function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];if(Qp(n))continue;"ev-"===t.substr(0,3)&&(e[t]=rg(n))}})(A),null!=n&&function e(t,n,r,A){if("string"==typeof t)n.push(new Kp(t));else if("number"==typeof t)n.push(new Kp(String(t)));else if(ig(t))n.push(t);else{if(!Up(t)){if(null==t)return;throw function(e){var t=new Error;return t.type="virtual-hyperscript.unexpected.virtual-element",t.message="Unexpected virtual child passed to h().\nExpected a VNode / Vthunk / VWidget / string but:\ngot:\n"+og(e.foreignObject)+".\nThe parent vnode is:\n"+og(e.parentVnode),t.foreignObject=e.foreignObject,t.parentVnode=e.parentVnode,t}({foreignObject:t,parentVnode:{tagName:r,properties:A}})}for(var i=0;i<t.length;i++)e(t[i],n,r,A)}}(n,a,r,A);return new Rp(r,A,a,i,o)};cg.NONE=0,cg.VTEXT=1,cg.VNODE=2,cg.WIDGET=3,cg.PROPS=4,cg.ORDER=5,cg.INSERT=6,cg.REMOVE=7,cg.THUNK=8;var sg=cg;function cg(e,t,n){this.type=Number(e),this.vNode=t,this.patch=n}cg.prototype.version="2",cg.prototype.type="VirtualPatch";var lg=function(e,t){var n=e,r=t;Op(t)&&(r=ug(t,e));Op(e)&&(n=ug(e,null));return{a:n,b:r}};function ug(e,t){var n=e.vnode;if(n||(n=e.vnode=e.render(t)),!(Np(n)||$p(n)||Dp(n)))throw new Error("thunk did not return a valid node");return n}var fg=function(e){return"object"==typeof e&&null!==e},hg=function e(t,n){var r;for(var A in t){A in n||((r=r||{})[A]=void 0);var i=t[A],o=n[A];if(i!==o)if(fg(i)&&fg(o))if(dg(o)!==dg(i))(r=r||{})[A]=o;else if(Qp(o))(r=r||{})[A]=o;else{var a=e(i,o);a&&((r=r||{})[A]=a)}else(r=r||{})[A]=o}for(var s in n)s in t||((r=r||{})[s]=n[s]);return r};function dg(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0}function pg(e,t){var n={a:e};return gg(e,t,n,0),n}function gg(e,t,n,r){if(e!==t){var A=n[r],i=!1;if(Op(e)||Op(t))vg(e,t,n,r);else if(null==t)Dp(e)||(mg(e,n,r),A=n[r]),A=yg(A,new sg(sg.REMOVE,e,t));else if(Np(t))if(Np(e))if(e.tagName===t.tagName&&e.namespace===t.namespace&&e.key===t.key){var o=hg(e.properties,t.properties);o&&(A=yg(A,new sg(sg.PROPS,e,o))),A=function(e,t,n,r,A){for(var i=e.children,o=function(e,t){var n=Eg(t),r=n.keys,A=n.free;if(A.length===t.length)return{children:t,moves:null};var i=Eg(e),o=i.keys;if(i.free.length===e.length)return{children:t,moves:null};for(var a=[],s=0,c=A.length,l=0,u=0;u<e.length;u++){var f,h=e[u];h.key?r.hasOwnProperty(h.key)?(f=r[h.key],a.push(t[f])):(f=u-l++,a.push(null)):s<c?(f=A[s++],a.push(t[f])):(f=u-l++,a.push(null))}for(var d=s>=A.length?t.length:A[s],p=0;p<t.length;p++){var g=t[p];g.key?o.hasOwnProperty(g.key)||a.push(g):p>=d&&a.push(g)}for(var m,v=a.slice(),B=0,E=[],y=[],C=0;C<t.length;){var b=t[C];for(m=v[B];null===m&&v.length;)E.push(Bg(v,B,null)),m=v[B];m&&m.key===b.key?(B++,C++):b.key?(m&&m.key&&r[m.key]!==C+1?(E.push(Bg(v,B,m.key)),(m=v[B])&&m.key===b.key?B++:y.push({key:b.key,to:C})):y.push({key:b.key,to:C}),C++):m&&m.key&&E.push(Bg(v,B,m.key))}for(;B<v.length;)m=v[B],E.push(Bg(v,B,m&&m.key));if(E.length===l&&!y.length)return{children:a,moves:null};return{children:a,moves:{removes:E,inserts:y}}}(i,t.children),a=o.children,s=i.length,c=a.length,l=s>c?s:c,u=0;u<l;u++){var f=i[u],h=a[u];A+=1,f?gg(f,h,n,A):h&&(r=yg(r,new sg(sg.INSERT,null,h))),Np(f)&&f.count&&(A+=f.count)}o.moves&&(r=yg(r,new sg(sg.ORDER,e,o.moves)));return r}(e,t,n,A,r)}else A=yg(A,new sg(sg.VNODE,e,t)),i=!0;else A=yg(A,new sg(sg.VNODE,e,t)),i=!0;else $p(t)?$p(e)?e.text!==t.text&&(A=yg(A,new sg(sg.VTEXT,e,t))):(A=yg(A,new sg(sg.VTEXT,e,t)),i=!0):Dp(t)&&(Dp(e)||(i=!0),A=yg(A,new sg(sg.WIDGET,e,t)));A&&(n[r]=A),i&&mg(e,n,r)}}function mg(e,t,n){!function e(t,n,r){if(Np(t)){if(t.hooks&&(n[r]=yg(n[r],new sg(sg.PROPS,t,function(e){var t={};for(var n in e)t[n]=void 0;return t}(t.hooks)))),t.descendantHooks||t.hasThunks)for(var A=t.children,i=A.length,o=0;o<i;o++){var a=A[o];e(a,n,r+=1),Np(a)&&a.count&&(r+=a.count)}}else Op(t)&&vg(t,null,n,r)}(e,t,n),function e(t,n,r){if(Dp(t))"function"==typeof t.destroy&&(n[r]=yg(n[r],new sg(sg.REMOVE,t,null)));else if(Np(t)&&(t.hasWidgets||t.hasThunks))for(var A=t.children,i=A.length,o=0;o<i;o++){var a=A[o];e(a,n,r+=1),Np(a)&&a.count&&(r+=a.count)}else Op(t)&&vg(t,null,n,r)}(e,t,n)}function vg(e,t,n,r){var A=lg(e,t),i=pg(A.a,A.b);(function(e){for(var t in e)if("a"!==t)return!0;return!1})(i)&&(n[r]=new sg(sg.THUNK,null,i))}function Bg(e,t,n){return e.splice(t,1),{from:t,key:n}}function Eg(e){for(var t={},n=[],r=e.length,A=0;A<r;A++){var i=e[A];i.key?t[i.key]=A:n.push(A)}return{keys:t,free:n}}function yg(e,t){return e?(Up(e)?e.push(t):e=[e,t],e):t}var Cg,bg,wg=pg,Tg=(Cg=Object.freeze({__proto__:null,default:{}}))&&Cg.default||Cg,_g=void 0!==t?t:"undefined"!=typeof window?window:{};"undefined"!=typeof document?bg=document:(bg=_g["__GLOBAL_DOCUMENT_CACHE@4"])||(bg=_g["__GLOBAL_DOCUMENT_CACHE@4"]=Tg);var Ig=bg,Sg=function(e,t,n){for(var r in t){var A=t[r];void 0===A?kg(e,r,A,n):Qp(A)?(kg(e,r,A,n),A.hook&&A.hook(e,r,n?n[r]:void 0)):fg(A)?Fg(e,t,n,r,A):e[r]=A}};function kg(e,t,n,r){if(r){var A=r[t];if(Qp(A))A.unhook&&A.unhook(e,t,n);else if("attributes"===t)for(var i in A)e.removeAttribute(i);else if("style"===t)for(var o in A)e.style[o]="";else e[t]="string"==typeof A?"":null}}function Fg(e,t,n,r,A){var i=n?n[r]:void 0;if("attributes"!==r)if(i&&fg(i)&&xg(i)!==xg(A))e[r]=A;else{fg(e[r])||(e[r]={});var o="style"===r?"":void 0;for(var a in A){var s=A[a];e[r][a]=void 0===s?o:s}}else for(var c in A){var l=A[c];void 0===l?e.removeAttribute(c):e.setAttribute(c,l)}}function xg(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0}var Lg=function e(t,n){var r=n&&n.document||Ig,A=n?n.warn:null;if(t=lg(t).a,Dp(t))return t.init();if($p(t))return r.createTextNode(t.text);if(!Np(t))return A&&A("Item is not a valid virtual dom node",t),null;var i=null===t.namespace?r.createElement(t.tagName):r.createElementNS(t.namespace,t.tagName),o=t.properties;Sg(i,o);for(var a=t.children,s=0;s<a.length;s++){var c=e(a[s],n);c&&i.appendChild(c)}return i};var Ug={},Ng=function(e,t,n,r){return n&&0!==n.length?(n.sort(Og),function e(t,n,r,A,i){if(A=A||{},t){Dg(r,i,i)&&(A[i]=t);var o=n.children;if(o)for(var a=t.childNodes,s=0;s<n.children.length;s++){i+=1;var c=o[s]||Ug,l=i+(c.count||0);Dg(r,i,l)&&e(a[s],c,r,A,i),i=l}}return A}(e,t,n,r,0)):{}};function Dg(e,t,n){if(0===e.length)return!1;for(var r,A,i=0,o=e.length-1;i<=o;){if(A=e[r=(o+i)/2>>0],i===o)return A>=t&&A<=n;if(A<t)i=r+1;else{if(!(A>n))return!0;o=r-1}}return!1}function Og(e,t){return e>t?1:-1}var Qg=function(e,t){if(Dp(e)&&Dp(t))return"name"in e&&"name"in t?e.id===t.id:e.init===t.init;return!1};var Rg=function(e,t,n){var r=e.type,A=e.vNode,i=e.patch;switch(r){case sg.REMOVE:return function(e,t){var n=e.parentNode;n&&n.removeChild(e);return Mg(e,t),null}(t,A);case sg.INSERT:return function(e,t,n){var r=n.render(t,n);e&&e.appendChild(r);return e}(t,i,n);case sg.VTEXT:return function(e,t,n,r){var A;if(3===e.nodeType)e.replaceData(0,e.length,n.text),A=e;else{var i=e.parentNode;A=r.render(n,r),i&&A!==e&&i.replaceChild(A,e)}return A}(t,0,i,n);case sg.WIDGET:return function(e,t,n,r){var A,i=Qg(t,n);A=i?n.update(t,e)||e:r.render(n,r);var o=e.parentNode;o&&A!==e&&o.replaceChild(A,e);i||Mg(e,t);return A}(t,A,i,n);case sg.VNODE:return function(e,t,n,r){var A=e.parentNode,i=r.render(n,r);A&&i!==e&&A.replaceChild(i,e);return i}(t,0,i,n);case sg.ORDER:return function(e,t){for(var n,r,A,i=e.childNodes,o={},a=0;a<t.removes.length;a++)r=t.removes[a],n=i[r.from],r.key&&(o[r.key]=n),e.removeChild(n);for(var s=i.length,c=0;c<t.inserts.length;c++)A=t.inserts[c],n=o[A.key],e.insertBefore(n,A.to>=s++?null:i[A.to])}(t,i),t;case sg.PROPS:return Sg(t,i,A.properties),t;case sg.THUNK:return function(e,t){e&&t&&e!==t&&e.parentNode&&e.parentNode.replaceChild(t,e);return t}(t,n.patch(t,i,n));default:return t}};function Mg(e,t){"function"==typeof t.destroy&&Dp(t)&&t.destroy(e)}function Hg(e,t,n){var r=function(e){var t=[];for(var n in e)"a"!==n&&t.push(Number(n));return t}(t);if(0===r.length)return e;var A=Ng(e,t.a,r),i=e.ownerDocument;n.document||i===Ig||(n.document=i);for(var o=0;o<r.length;o++){var a=r[o];e=Pg(e,A[a],t[a],n)}return e}function Pg(e,t,n,r){if(!t)return e;var A;if(Up(n))for(var i=0;i<n.length;i++)A=Rg(n[i],t,r),t===e&&(e=A);else A=Rg(n,t,r),t===e&&(e=A);return e}var Kg=function e(t,n,r){return(r=r||{}).patch=r.patch&&r.patch!==e?r.patch:Hg,r.render=r.render||Lg,r.patch(t,n,r)},Gg=function(){function e(t,n,r){Pi(this,e),this.options={newObj:t,oldObj:n,getElement:r}}return Gi(e,[{key:"doDiff",value:function(){var e=this.findSnakes(this.options.newObj,this.options.oldObj);return this.assembleResult(e,this.options.newObj,this.options.oldObj)}},{key:"getElement",value:function(e,t){return"function"==typeof this.options.getElement?this.options.getElement(e,t):e[t]}},{key:"findSnakes",value:function(e,t){for(var n=e.length||0,r=t.length||0,A=n+r,i={1:0},o={0:{1:0}},a=0;a<=A;a++){for(var s={},c=-a;c<=a;c+=2){for(var l=c===-a||c!==a&&i[c-1]<i[c+1],u=i[l?c+1:c-1],f=l?u:u+1,h=f,d=f-c;h<r&&d<n&&this.getElement(t,h)===this.getElement(e,d);)h+=1,d+=1;if(i[c]=h,s[c]=h,h>=r&&d>=n)return o[a]=s,this.$backtraceSnakes(o,n,r,a)}o[a]=s}return[]}},{key:"$backtraceSnakes",value:function(e,t,n,r){for(var A=[],i={x:n,y:t},o=r;o>0;o--){var a=e[o],s=e[o-1],c=i.x-i.y,l=a[c],u=c===-o||c!==o&&s[c+1]>s[c-1],f=u?c+1:c-1,h=s[f],d=h-f,p=u?h:h+1;A.unshift({xStart:h,xMid:p,xEnd:l}),i.x=h,i.y=d}return A}},{key:"assembleResult",value:function(e,t,n){var r,A=this,i="",o=[],a=0,s=[],c={},l={},u={};return xi(e).call(e,(function(e,r){var f=e.xStart;if(0===r&&0!==e.xStart)for(var h=0;h<e.xStart;h++)i+="%c".concat(A.getElement(n,h),", "),o.push("color: gray"),a+=1;e.xMid-e.xStart==1?(c={type:"delete",oldIndex:e.xStart,newIndex:0},"delete"===l.type&&l.oldIndex===c.oldIndex-1&&(u=u?l:u),s.push(c),l=c,i+="%c".concat(A.getElement(n,e.xStart),", "),o.push("color: red"),f=e.xMid):(c={type:"insert",oldIndex:e.xStart,newIndex:a},"delete"===l.type&&l.oldIndex===c.oldIndex-1?(s.pop(),c={type:"update",oldIndex:(u=u?l:u).oldIndex,newIndex:a},o.push("color: blue")):o.push("color: green"),u={},s.push(c),l=c,i+="%c".concat(A.getElement(t,a),", "),a+=1);for(var d=0;d<e.xEnd-f;d++)i+="%c".concat(A.getElement(n,f+d),", "),o.push("color: gray"),a+=1})),el.log.apply(el,uo(r=[i]).call(r,o)),s}}]),e}();var $g=new(function(){function e(){Pi(this,e),so(this,"Events",{previewerClose:"previewer:close",previewerOpen:"previewer:open",editorClose:"editor:close",editorOpen:"editor:open",toolbarHide:"toolbar:hide",toolbarShow:"toolbar:show"}),so(this,"emitter",function(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map((function(e){e(n)})),(r=e.get("*"))&&r.slice().map((function(e){e(t,n)}))}}}())}return Gi(e,[{key:"on",value:function(e,t,n){var r;this.emitter.on(uo(r="".concat(e,":")).call(r,t),n)}},{key:"emit",value:function(e,t){var n;this.emitter.emit(uo(n="".concat(e,":")).call(n,t))}}]),e}()),Vg=r((function(e,t){e.exports=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return(n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var A in t=arguments[n])Object.prototype.hasOwnProperty.call(t,A)&&(e[A]=t[A]);return e}).apply(this,arguments)};function r(e,t,n,r){return new(n||(n=Promise))((function(A,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function a(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?A(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}s((r=r.apply(e,t||[])).next())}))}function A(e,t){var n,r,A,i,o={label:0,sent:function(){if(1&A[0])throw A[1];return A[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(A=2&i[0]?r.return:i[0]?r.throw||((A=r.return)&&A.call(r),0):r.next)&&!(A=A.call(r,i[1])).done)return A;switch(r=0,A&&(i=[2&i[0],A.value]),i[0]){case 0:case 1:A=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((A=(A=o.trys).length>0&&A[A.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!A||i[1]>A[0]&&i[1]<A[3])){o.label=i[1];break}if(6===i[0]&&o.label<A[1]){o.label=A[1],A=i;break}if(A&&o.label<A[2]){o.label=A[2],o.ops.push(i);break}A[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=A=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function i(e,t,n){if(n||2===arguments.length)for(var r,A=0,i=t.length;A<i;A++)!r&&A in t||(r||(r=Array.prototype.slice.call(t,0,A)),r[A]=t[A]);return e.concat(r||t)}for(var o=function(){function e(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r}return e.prototype.add=function(t,n,r,A){return new e(this.left+t,this.top+n,this.width+r,this.height+A)},e.fromClientRect=function(t,n){return new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height)},e.fromDOMRectList=function(t,n){var r=Array.from(n).find((function(e){return 0!==e.width}));return r?new e(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),a=function(e,t){return o.fromClientRect(e,t.getBoundingClientRect())},s=function(e){for(var t=[],n=0,r=e.length;n<r;){var A=e.charCodeAt(n++);if(A>=55296&&A<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&A)<<10)+(1023&i)+65536):(t.push(A),n--)}else t.push(A)}return t},c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var r=[],A=-1,i="";++A<n;){var o=e[A];o<=65535?r.push(o):(o-=65536,r.push(55296+(o>>10),o%1024+56320)),(A+1===n||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"==typeof Uint8Array?[]:new Uint8Array(256),f=0;f<l.length;f++)u[l.charCodeAt(f)]=f;for(var h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d="undefined"==typeof Uint8Array?[]:new Uint8Array(256),p=0;p<h.length;p++)d[h.charCodeAt(p)]=p;for(var g=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},m=function(){function e(e,t,n,r,A,i){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=A,this.data=i}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e<this.highStart)return t=2080+(e>>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",B="undefined"==typeof Uint8Array?[]:new Uint8Array(256),E=0;E<v.length;E++)B[v.charCodeAt(E)]=E;var y=10,C=13,b=15,w=17,T=18,_=19,I=20,S=21,k=22,F=24,x=25,L=26,U=27,N=28,D=30,O=32,Q=33,R=34,M=35,H=37,P=38,K=39,G=40,$=42,V=[9001,65288],W=function(e,t){var n=function(e){var t,n,r,A,i,o=.75*e.length,a=e.length,s=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),l=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<a;t+=4)n=d[e.charCodeAt(t)],r=d[e.charCodeAt(t+1)],A=d[e.charCodeAt(t+2)],i=d[e.charCodeAt(t+3)],l[s++]=n<<2|r>>4,l[s++]=(15&r)<<4|A>>2,l[s++]=(3&A)<<6|63&i;return c}(e),r=Array.isArray(n)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n}(n):new Uint32Array(n),A=Array.isArray(n)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n}(n):new Uint16Array(n),i=g(A,12,r[4]/2),o=2===r[5]?g(A,(24+r[4])/2):function(e,t,n){return e.slice?e.slice(t,n):new Uint32Array(Array.prototype.slice.call(e,t,n))}(r,Math.ceil((24+r[4])/4));return new m(r[0],r[1],r[2],r[3],i,o)}("KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="),j=[D,36],Y=[1,2,3,5],X=[y,8],z=[U,L],q=Y.concat(X),J=[P,K,G,R,M],Z=[b,C],ee=function(e,t,n,r){var A=r[n];if(Array.isArray(e)?-1!==e.indexOf(A):e===A)for(var i=n;i<=r.length;){if((s=r[++i])===t)return!0;if(s!==y)break}if(A===y)for(i=n;i>0;){var o=r[--i];if(Array.isArray(e)?-1!==e.indexOf(o):e===o)for(var a=n;a<=r.length;){var s;if((s=r[++a])===t)return!0;if(s!==y)break}if(o!==y)break}return!1},te=function(e,t){for(var n=e;n>=0;){var r=t[n];if(r!==y)return r;n--}return 0},ne=function(e,t,n,r,A){if(0===n[r])return"×";var i=r-1;if(Array.isArray(A)&&!0===A[i])return"×";var o=i-1,a=i+1,s=t[i],c=o>=0?t[o]:0,l=t[a];if(2===s&&3===l)return"×";if(-1!==Y.indexOf(s))return"!";if(-1!==Y.indexOf(l))return"×";if(-1!==X.indexOf(l))return"×";if(8===te(i,t))return"÷";if(11===W.get(e[i]))return"×";if((s===O||s===Q)&&11===W.get(e[a]))return"×";if(7===s||7===l)return"×";if(9===s)return"×";if(-1===[y,C,b].indexOf(s)&&9===l)return"×";if(-1!==[w,T,_,F,N].indexOf(l))return"×";if(te(i,t)===k)return"×";if(ee(23,k,i,t))return"×";if(ee([w,T],S,i,t))return"×";if(ee(12,12,i,t))return"×";if(s===y)return"÷";if(23===s||23===l)return"×";if(16===l||16===s)return"÷";if(-1!==[C,b,S].indexOf(l)||14===s)return"×";if(36===c&&-1!==Z.indexOf(s))return"×";if(s===N&&36===l)return"×";if(l===I)return"×";if(-1!==j.indexOf(l)&&s===x||-1!==j.indexOf(s)&&l===x)return"×";if(s===U&&-1!==[H,O,Q].indexOf(l)||-1!==[H,O,Q].indexOf(s)&&l===L)return"×";if(-1!==j.indexOf(s)&&-1!==z.indexOf(l)||-1!==z.indexOf(s)&&-1!==j.indexOf(l))return"×";if(-1!==[U,L].indexOf(s)&&(l===x||-1!==[k,b].indexOf(l)&&t[a+1]===x)||-1!==[k,b].indexOf(s)&&l===x||s===x&&-1!==[x,N,F].indexOf(l))return"×";if(-1!==[x,N,F,w,T].indexOf(l))for(var u=i;u>=0;){if((f=t[u])===x)return"×";if(-1===[N,F].indexOf(f))break;u--}if(-1!==[U,L].indexOf(l))for(u=-1!==[w,T].indexOf(s)?o:i;u>=0;){var f;if((f=t[u])===x)return"×";if(-1===[N,F].indexOf(f))break;u--}if(P===s&&-1!==[P,K,R,M].indexOf(l)||-1!==[K,R].indexOf(s)&&-1!==[K,G].indexOf(l)||-1!==[G,M].indexOf(s)&&l===G)return"×";if(-1!==J.indexOf(s)&&-1!==[I,L].indexOf(l)||-1!==J.indexOf(l)&&s===U)return"×";if(-1!==j.indexOf(s)&&-1!==j.indexOf(l))return"×";if(s===F&&-1!==j.indexOf(l))return"×";if(-1!==j.concat(x).indexOf(s)&&l===k&&-1===V.indexOf(e[a])||-1!==j.concat(x).indexOf(l)&&s===T)return"×";if(41===s&&41===l){for(var h=n[i],d=1;h>0&&41===t[--h];)d++;if(d%2!=0)return"×"}return s===O&&l===Q?"×":"÷"},re=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=function(e,t){void 0===t&&(t="strict");var n=[],r=[],A=[];return e.forEach((function(e,i){var o=W.get(e);if(o>50?(A.push(!0),o-=50):A.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return r.push(i),n.push(16);if(4===o||11===o){if(0===i)return r.push(i),n.push(D);var a=n[i-1];return-1===q.indexOf(a)?(r.push(r[i-1]),n.push(a)):(r.push(i),n.push(D))}return r.push(i),31===o?n.push("strict"===t?S:H):o===$||29===o?n.push(D):43===o?e>=131072&&e<=196605||e>=196608&&e<=262141?n.push(H):n.push(D):void n.push(o)})),[r,n,A]}(e,t.lineBreak),r=n[0],A=n[1],i=n[2];return"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(A=A.map((function(e){return-1!==[x,D,$].indexOf(e)?H:e}))),[r,A,"keep-all"===t.wordBreak?i.map((function(t,n){return t&&e[n]>=19968&&e[n]<=40959})):void 0]},Ae=function(){function e(e,t,n,r){this.codePoints=e,this.required="!"===t,this.start=n,this.end=r}return e.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),ie=function(e){return e>=48&&e<=57},oe=function(e){return ie(e)||e>=65&&e<=70||e>=97&&e<=102},ae=function(e){return 10===e||9===e||32===e},se=function(e){return function(e){return function(e){return e>=97&&e<=122}(e)||function(e){return e>=65&&e<=90}(e)}(e)||function(e){return e>=128}(e)||95===e},ce=function(e){return se(e)||ie(e)||45===e},le=function(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e},ue=function(e,t){return 92===e&&10!==t},fe=function(e,t,n){return 45===e?se(t)||ue(t,n):!!se(e)||!(92!==e||!ue(e,t))},he=function(e,t,n){return 43===e||45===e?!!ie(t)||46===t&&ie(n):ie(46===e?t:e)},de=function(e){var t=0,n=1;43!==e[t]&&45!==e[t]||(45===e[t]&&(n=-1),t++);for(var r=[];ie(e[t]);)r.push(e[t++]);var A=r.length?parseInt(c.apply(void 0,r),10):0;46===e[t]&&t++;for(var i=[];ie(e[t]);)i.push(e[t++]);var o=i.length,a=o?parseInt(c.apply(void 0,i),10):0;69!==e[t]&&101!==e[t]||t++;var s=1;43!==e[t]&&45!==e[t]||(45===e[t]&&(s=-1),t++);for(var l=[];ie(e[t]);)l.push(e[t++]);var u=l.length?parseInt(c.apply(void 0,l),10):0;return n*(A+a*Math.pow(10,-o))*Math.pow(10,s*u)},pe={type:2},ge={type:3},me={type:4},ve={type:13},Be={type:8},Ee={type:21},ye={type:9},Ce={type:10},be={type:11},we={type:12},Te={type:14},_e={type:23},Ie={type:1},Se={type:25},ke={type:24},Fe={type:26},xe={type:27},Le={type:28},Ue={type:29},Ne={type:31},De={type:32},Oe=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(s(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==De;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(ce(t)||ue(n,r)){var A=fe(t,n,r)?2:1;return{type:5,value:this.consumeName(),flags:A}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ve;break;case 39:return this.consumeStringToken(39);case 40:return pe;case 41:return ge;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Te;break;case 43:if(he(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return me;case 45:var i=e,o=this.peekCodePoint(0),a=this.peekCodePoint(1);if(he(i,o,a))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(fe(i,o,a))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(45===o&&62===a)return this.consumeCodePoint(),this.consumeCodePoint(),ke;break;case 46:if(he(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var s=this.consumeCodePoint();if(42===s&&47===(s=this.consumeCodePoint()))return this.consumeToken();if(-1===s)return this.consumeToken()}break;case 58:return Fe;case 59:return xe;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),Se;break;case 64:var l=this.peekCodePoint(0),u=this.peekCodePoint(1),f=this.peekCodePoint(2);if(fe(l,u,f))return{type:7,value:this.consumeName()};break;case 91:return Le;case 92:if(ue(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return Ue;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Be;break;case 123:return be;case 125:return we;case 117:case 85:var h=this.peekCodePoint(0),d=this.peekCodePoint(1);return 43!==h||!oe(d)&&63!==d||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ye;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),Ee;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ce;break;case-1:return De}return ae(e)?(this.consumeWhiteSpace(),Ne):ie(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):se(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:c(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return void 0===e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();oe(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;63===t&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(c.apply(void 0,e.map((function(e){return 63===e?48:e}))),16),end:parseInt(c.apply(void 0,e.map((function(e){return 63===e?70:e}))),16)};var r=parseInt(c.apply(void 0,e),16);if(45===this.peekCodePoint(0)&&oe(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var A=[];oe(t)&&A.length<6;)A.push(t),t=this.consumeCodePoint();return{type:30,start:r,end:parseInt(c.apply(void 0,A),16)}}return{type:30,start:r,end:r}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:22,value:""};var t=this.peekCodePoint(0);if(39===t||34===t){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),_e)}for(;;){var r=this.consumeCodePoint();if(-1===r||41===r)return{type:22,value:c.apply(void 0,e)};if(ae(r))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,e)}):(this.consumeBadUrlRemnants(),_e);if(34===r||39===r||40===r||le(r))return this.consumeBadUrlRemnants(),_e;if(92===r){if(!ue(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),_e;e.push(this.consumeEscapedCodePoint())}else e.push(r)}},e.prototype.consumeWhiteSpace=function(){for(;ae(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(41===e||-1===e)return;ue(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t="";e>0;){var n=Math.min(5e4,e);t+=c.apply(void 0,this._value.splice(0,n)),e-=n}return this._value.shift(),t},e.prototype.consumeStringToken=function(e){for(var t="",n=0;;){var r=this._value[n];if(-1===r||void 0===r||r===e)return{type:0,value:t+=this.consumeStringSlice(n)};if(10===r)return this._value.splice(0,n),Ie;if(92===r){var A=this._value[n+1];-1!==A&&void 0!==A&&(10===A?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):ue(r,A)&&(t+=this.consumeStringSlice(n),t+=c(this.consumeEscapedCodePoint()),n=-1))}n++}},e.prototype.consumeNumber=function(){var e=[],t=4,n=this.peekCodePoint(0);for(43!==n&&45!==n||e.push(this.consumeCodePoint());ie(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(46===n&&ie(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;ie(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var A=this.peekCodePoint(2);if((69===n||101===n)&&((43===r||45===r)&&ie(A)||ie(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;ie(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[de(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],r=this.peekCodePoint(0),A=this.peekCodePoint(1),i=this.peekCodePoint(2);return fe(r,A,i)?{type:15,number:t,flags:n,unit:this.consumeName()}:37===r?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(oe(e)){for(var t=c(e);oe(this.peekCodePoint(0))&&t.length<6;)t+=c(this.consumeCodePoint());ae(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return 0===n||function(e){return e>=55296&&e<=57343}(n)||n>1114111?65533:n}return-1===e?65533:e},e.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(ce(t))e+=c(t);else{if(!ue(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=c(this.consumeEscapedCodePoint())}}},e}(),Qe=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new Oe;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();31===e.type;)e=this.consumeToken();if(32===e.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(31===e.type);if(32===e.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(32===t.type)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(32===n.type||We(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(32===n.type||3===n.type)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return void 0===e?De:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),Re=function(e){return 15===e.type},Me=function(e){return 17===e.type},He=function(e){return 20===e.type},Pe=function(e){return 0===e.type},Ke=function(e,t){return He(e)&&e.value===t},Ge=function(e){return 31!==e.type},$e=function(e){return 31!==e.type&&4!==e.type},Ve=function(e){var t=[],n=[];return e.forEach((function(e){if(4===e.type){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(n),void(n=[])}31!==e.type&&n.push(e)})),n.length&&t.push(n),t},We=function(e,t){return 11===t&&12===e.type||28===t&&29===e.type||2===t&&3===e.type},je=function(e){return 17===e.type||15===e.type},Ye=function(e){return 16===e.type||je(e)},Xe=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},ze={type:17,number:0,flags:4},qe={type:16,number:50,flags:4},Je={type:16,number:100,flags:4},Ze=function(e,t,n){var r=e[0],A=e[1];return[et(r,t),et(void 0!==A?A:r,n)]},et=function(e,t){if(16===e.type)return e.number/100*t;if(Re(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},tt=function(e,t){if(15===t.type)switch(t.unit){case"deg":return Math.PI*t.number/180;case"grad":return Math.PI/200*t.number;case"rad":return t.number;case"turn":return 2*Math.PI*t.number}throw new Error("Unsupported angle type")},nt=function(e){return 15===e.type&&("deg"===e.unit||"grad"===e.unit||"rad"===e.unit||"turn"===e.unit)},rt=function(e){switch(e.filter(He).map((function(e){return e.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ze,ze];case"to top":case"bottom":return At(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ze,Je];case"to right":case"left":return At(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Je,Je];case"to bottom":case"top":return At(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Je,ze];case"to left":case"right":return At(270)}return 0},At=function(e){return Math.PI*e/180},it=function(e,t){if(18===t.type){var n=dt[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return n(e,t.values)}if(5===t.type){if(3===t.value.length){var r=t.value.substring(0,1),A=t.value.substring(1,2),i=t.value.substring(2,3);return st(parseInt(r+r,16),parseInt(A+A,16),parseInt(i+i,16),1)}if(4===t.value.length){r=t.value.substring(0,1),A=t.value.substring(1,2),i=t.value.substring(2,3);var o=t.value.substring(3,4);return st(parseInt(r+r,16),parseInt(A+A,16),parseInt(i+i,16),parseInt(o+o,16)/255)}if(6===t.value.length)return r=t.value.substring(0,2),A=t.value.substring(2,4),i=t.value.substring(4,6),st(parseInt(r,16),parseInt(A,16),parseInt(i,16),1);if(8===t.value.length)return r=t.value.substring(0,2),A=t.value.substring(2,4),i=t.value.substring(4,6),o=t.value.substring(6,8),st(parseInt(r,16),parseInt(A,16),parseInt(i,16),parseInt(o,16)/255)}if(20===t.type){var a=gt[t.value.toUpperCase()];if(void 0!==a)return a}return gt.TRANSPARENT},ot=function(e){return 0==(255&e)},at=function(e){var t=255&e,n=255&e>>8,r=255&e>>16,A=255&e>>24;return t<255?"rgba("+A+","+r+","+n+","+t/255+")":"rgb("+A+","+r+","+n+")"},st=function(e,t,n,r){return(e<<24|t<<16|n<<8|Math.round(255*r)<<0)>>>0},ct=function(e,t){if(17===e.type)return e.number;if(16===e.type){var n=3===t?1:255;return 3===t?e.number/100*n:Math.round(e.number/100*n)}return 0},lt=function(e,t){var n=t.filter($e);if(3===n.length){var r=n.map(ct),A=r[0],i=r[1],o=r[2];return st(A,i,o,1)}if(4===n.length){var a=n.map(ct),s=(A=a[0],i=a[1],o=a[2],a[3]);return st(A,i,o,s)}return 0};function ut(e,t,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<.5?t:n<2/3?6*(t-e)*(2/3-n)+e:e}var ft,ht=function(e,t){var n=t.filter($e),r=n[0],A=n[1],i=n[2],o=n[3],a=(17===r.type?At(r.number):tt(e,r))/(2*Math.PI),s=Ye(A)?A.number/100:0,c=Ye(i)?i.number/100:0,l=void 0!==o&&Ye(o)?et(o,1):1;if(0===s)return st(255*c,255*c,255*c,1);var u=c<=.5?c*(s+1):c+s-c*s,f=2*c-u,h=ut(f,u,a+1/3),d=ut(f,u,a),p=ut(f,u,a-1/3);return st(255*h,255*d,255*p,l)},dt={hsl:ht,hsla:ht,rgb:lt,rgba:lt},pt=function(e,t){return it(e,Qe.create(t).parseComponentValue())},gt={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},mt={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map((function(e){if(He(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},vt={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Bt=function(e,t){var n=it(e,t[0]),r=t[1];return r&&Ye(r)?{color:n,stop:r}:{color:n,stop:null}},Et=function(e,t){var n=e[0],r=e[e.length-1];null===n.stop&&(n.stop=ze),null===r.stop&&(r.stop=Je);for(var A=[],i=0,o=0;o<e.length;o++){var a=e[o].stop;if(null!==a){var s=et(a,t);s>i?A.push(s):A.push(i),i=s}else A.push(null)}var c=null;for(o=0;o<A.length;o++){var l=A[o];if(null===l)null===c&&(c=o);else if(null!==c){for(var u=o-c,f=(l-A[c-1])/(u+1),h=1;h<=u;h++)A[c+h-1]=f*h;c=null}}return e.map((function(e,n){return{color:e.color,stop:Math.max(Math.min(1,A[n]/t),0)}}))},yt=function(e,t,n){var r="number"==typeof e?e:function(e,t,n){var r=t/2,A=n/2,i=et(e[0],t)-r,o=A-et(e[1],n);return(Math.atan2(o,i)+2*Math.PI)%(2*Math.PI)}(e,t,n),A=Math.abs(t*Math.sin(r))+Math.abs(n*Math.cos(r)),i=t/2,o=n/2,a=A/2,s=Math.sin(r-Math.PI/2)*a,c=Math.cos(r-Math.PI/2)*a;return[A,i-c,i+c,o-s,o+s]},Ct=function(e,t){return Math.sqrt(e*e+t*t)},bt=function(e,t,n,r,A){return[[0,0],[0,t],[e,0],[e,t]].reduce((function(e,t){var i=t[0],o=t[1],a=Ct(n-i,r-o);return(A?a<e.optimumDistance:a>e.optimumDistance)?{optimumCorner:t,optimumDistance:a}:e}),{optimumDistance:A?1/0:-1/0,optimumCorner:null}).optimumCorner},wt=function(e,t){var n=At(180),r=[];return Ve(t).forEach((function(t,A){if(0===A){var i=t[0];if(20===i.type&&-1!==["top","left","right","bottom"].indexOf(i.value))return void(n=rt(t));if(nt(i))return void(n=(tt(e,i)+At(270))%At(360))}var o=Bt(e,t);r.push(o)})),{angle:n,stops:r,type:1}},Tt=function(e,t){var n=0,r=3,A=[],i=[];return Ve(t).forEach((function(t,o){var a=!0;if(0===o?a=t.reduce((function(e,t){if(He(t))switch(t.value){case"center":return i.push(qe),!1;case"top":case"left":return i.push(ze),!1;case"right":case"bottom":return i.push(Je),!1}else if(Ye(t)||je(t))return i.push(t),!1;return e}),a):1===o&&(a=t.reduce((function(e,t){if(He(t))switch(t.value){case"circle":return n=0,!1;case"ellipse":return n=1,!1;case"contain":case"closest-side":return r=0,!1;case"farthest-side":return r=1,!1;case"closest-corner":return r=2,!1;case"cover":case"farthest-corner":return r=3,!1}else if(je(t)||Ye(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e}),a)),a){var s=Bt(e,t);A.push(s)}})),{size:r,shape:n,stops:A,position:i,type:2}},_t=function(e,t){if(22===t.type){var n={url:t.value,type:0};return e.cache.addImage(t.value),n}if(18===t.type){var r=It[t.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return r(e,t.values)}throw new Error("Unsupported image type "+t.type)},It={"linear-gradient":function(e,t){var n=At(180),r=[];return Ve(t).forEach((function(t,A){if(0===A){var i=t[0];if(20===i.type&&"to"===i.value)return void(n=rt(t));if(nt(i))return void(n=tt(e,i))}var o=Bt(e,t);r.push(o)})),{angle:n,stops:r,type:1}},"-moz-linear-gradient":wt,"-ms-linear-gradient":wt,"-o-linear-gradient":wt,"-webkit-linear-gradient":wt,"radial-gradient":function(e,t){var n=0,r=3,A=[],i=[];return Ve(t).forEach((function(t,o){var a=!0;if(0===o){var s=!1;a=t.reduce((function(e,t){if(s)if(He(t))switch(t.value){case"center":return i.push(qe),e;case"top":case"left":return i.push(ze),e;case"right":case"bottom":return i.push(Je),e}else(Ye(t)||je(t))&&i.push(t);else if(He(t))switch(t.value){case"circle":return n=0,!1;case"ellipse":return n=1,!1;case"at":return s=!0,!1;case"closest-side":return r=0,!1;case"cover":case"farthest-side":return r=1,!1;case"contain":case"closest-corner":return r=2,!1;case"farthest-corner":return r=3,!1}else if(je(t)||Ye(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e}),a)}if(a){var c=Bt(e,t);A.push(c)}})),{size:r,shape:n,stops:A,position:i,type:2}},"-moz-radial-gradient":Tt,"-ms-radial-gradient":Tt,"-o-radial-gradient":Tt,"-webkit-radial-gradient":Tt,"-webkit-gradient":function(e,t){var n=At(180),r=[],A=1;return Ve(t).forEach((function(t,n){var i=t[0];if(0===n){if(He(i)&&"linear"===i.value)return void(A=1);if(He(i)&&"radial"===i.value)return void(A=2)}if(18===i.type)if("from"===i.name){var o=it(e,i.values[0]);r.push({stop:ze,color:o})}else if("to"===i.name)o=it(e,i.values[0]),r.push({stop:Je,color:o});else if("color-stop"===i.name){var a=i.values.filter($e);if(2===a.length){o=it(e,a[1]);var s=a[0];Me(s)&&r.push({stop:{type:16,number:100*s.number,flags:s.flags},color:o})}}})),1===A?{angle:(n+At(180))%At(360),stops:r,type:A}:{size:3,shape:0,stops:r,position:[],type:A}}},St={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t.filter((function(e){return $e(e)&&function(e){return!(20===e.type&&"none"===e.value||18===e.type&&!It[e.name])}(e)})).map((function(t){return _t(e,t)}))}},kt={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map((function(e){if(He(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Ft={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return Ve(t).map((function(e){return e.filter(Ye)})).map(Xe)}},xt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return Ve(t).map((function(e){return e.filter(He).map((function(e){return e.value})).join(" ")})).map(Lt)}},Lt=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}};!function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"}(ft||(ft={}));var Ut,Nt={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return Ve(t).map((function(e){return e.filter(Dt)}))}},Dt=function(e){return He(e)||Ye(e)},Ot=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Qt=Ot("top"),Rt=Ot("right"),Mt=Ot("bottom"),Ht=Ot("left"),Pt=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return Xe(t.filter(Ye))}}},Kt=Pt("top-left"),Gt=Pt("top-right"),$t=Pt("bottom-right"),Vt=Pt("bottom-left"),Wt=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},jt=Wt("top"),Yt=Wt("right"),Xt=Wt("bottom"),zt=Wt("left"),qt=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Re(t)?t.number:0}}},Jt=qt("top"),Zt=qt("right"),en=qt("bottom"),tn=qt("left"),nn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},rn={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},An={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(He).reduce((function(e,t){return e|on(t.value)}),0)}},on=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},an={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},sn={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return 20===t.type&&"normal"===t.value?0:17===t.type||15===t.type?t.number:0}};!function(e){e.NORMAL="normal",e.STRICT="strict"}(Ut||(Ut={}));var cn,ln={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"strict":return Ut.STRICT;case"normal":default:return Ut.NORMAL}}},un={name:"line-height",initialValue:"normal",prefix:!1,type:4},fn=function(e,t){return He(e)&&"normal"===e.value?1.2*t:17===e.type?t*e.number:Ye(e)?et(e,t):t},hn={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return 20===t.type&&"none"===t.value?null:_t(e,t)}},dn={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},pn={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},gn=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},mn=gn("top"),vn=gn("right"),Bn=gn("bottom"),En=gn("left"),yn={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(He).map((function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}}))}},Cn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},bn=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},wn=bn("top"),Tn=bn("right"),_n=bn("bottom"),In=bn("left"),Sn={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},kn={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Fn={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&Ke(t[0],"none")?[]:Ve(t).map((function(t){for(var n={color:gt.TRANSPARENT,offsetX:ze,offsetY:ze,blur:ze},r=0,A=0;A<t.length;A++){var i=t[A];je(i)?(0===r?n.offsetX=i:1===r?n.offsetY=i:n.blur=i,r++):n.color=it(e,i)}return n}))}},xn={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Ln={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,t){if(20===t.type&&"none"===t.value)return null;if(18===t.type){var n=Un[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return n(t.values)}return null}},Un={matrix:function(e){var t=e.filter((function(e){return 17===e.type})).map((function(e){return e.number}));return 6===t.length?t:null},matrix3d:function(e){var t=e.filter((function(e){return 17===e.type})).map((function(e){return e.number})),n=t[0],r=t[1];t[2],t[3];var A=t[4],i=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var o=t[12],a=t[13];return t[14],t[15],16===t.length?[n,r,A,i,o,a]:null}},Nn={type:16,number:50,flags:4},Dn=[Nn,Nn],On={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var n=t.filter(Ye);return 2!==n.length?Dn:[n[0],n[1]]}},Qn={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}};!function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"}(cn||(cn={}));for(var Rn={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return cn.BREAK_ALL;case"keep-all":return cn.KEEP_ALL;case"normal":default:return cn.NORMAL}}},Mn={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(20===t.type)return{auto:!0,order:0};if(Me(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},Hn=function(e,t){if(15===t.type)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")},Pn={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return Me(t)?t.number:1}},Kn={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Gn={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(He).map((function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(e){return 0!==e}))}},$n={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var n=[],r=[];return t.forEach((function(e){switch(e.type){case 20:case 0:n.push(e.value);break;case 17:n.push(e.number.toString());break;case 4:r.push(n.join(" ")),n.length=0}})),n.length&&r.push(n.join(" ")),r.map((function(e){return-1===e.indexOf(" ")?e:"'"+e+"'"}))}},Vn={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Wn={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){if(Me(t))return t.number;if(He(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},jn={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(He).map((function(e){return e.value}))}},Yn={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Xn=function(e,t){return 0!=(e&t)},zn={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t}},qn={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(20===n.type&&"none"===n.value)return null;for(var r=[],A=t.filter(Ge),i=0;i<A.length;i++){var o=A[i],a=A[i+1];if(20===o.type){var s=a&&Me(a)?a.number:1;r.push({counter:o.value,increment:s})}}return r}},Jn={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return[];for(var n=[],r=t.filter(Ge),A=0;A<r.length;A++){var i=r[A],o=r[A+1];if(He(i)&&"none"!==i.value){var a=o&&Me(o)?o.number:0;n.push({counter:i.value,reset:a})}}return n}},Zn={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(Re).map((function(t){return Hn(e,t)}))}},er={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(20===n.type&&"none"===n.value)return null;var r=[],A=t.filter(Pe);if(A.length%2!=0)return null;for(var i=0;i<A.length;i+=2){var o=A[i].value,a=A[i+1].value;r.push({open:o,close:a})}return r}},tr=function(e,t,n){if(!e)return"";var r=e[Math.min(t,e.length-1)];return r?n?r.open:r.close:""},nr={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&Ke(t[0],"none")?[]:Ve(t).map((function(t){for(var n={color:255,offsetX:ze,offsetY:ze,blur:ze,spread:ze,inset:!1},r=0,A=0;A<t.length;A++){var i=t[A];Ke(i,"inset")?n.inset=!0:je(i)?(0===r?n.offsetX=i:1===r?n.offsetY=i:2===r?n.blur=i:n.spread=i,r++):n.color=it(e,i)}return n}))}},rr={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var n=[];return t.filter(He).forEach((function(e){switch(e.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2)}})),[0,1,2].forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),n}},Ar={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},ir={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Re(t)?t.number:0}},or=function(){function e(e,t){var n,r;this.animationDuration=cr(e,Zn,t.animationDuration),this.backgroundClip=cr(e,mt,t.backgroundClip),this.backgroundColor=cr(e,vt,t.backgroundColor),this.backgroundImage=cr(e,St,t.backgroundImage),this.backgroundOrigin=cr(e,kt,t.backgroundOrigin),this.backgroundPosition=cr(e,Ft,t.backgroundPosition),this.backgroundRepeat=cr(e,xt,t.backgroundRepeat),this.backgroundSize=cr(e,Nt,t.backgroundSize),this.borderTopColor=cr(e,Qt,t.borderTopColor),this.borderRightColor=cr(e,Rt,t.borderRightColor),this.borderBottomColor=cr(e,Mt,t.borderBottomColor),this.borderLeftColor=cr(e,Ht,t.borderLeftColor),this.borderTopLeftRadius=cr(e,Kt,t.borderTopLeftRadius),this.borderTopRightRadius=cr(e,Gt,t.borderTopRightRadius),this.borderBottomRightRadius=cr(e,$t,t.borderBottomRightRadius),this.borderBottomLeftRadius=cr(e,Vt,t.borderBottomLeftRadius),this.borderTopStyle=cr(e,jt,t.borderTopStyle),this.borderRightStyle=cr(e,Yt,t.borderRightStyle),this.borderBottomStyle=cr(e,Xt,t.borderBottomStyle),this.borderLeftStyle=cr(e,zt,t.borderLeftStyle),this.borderTopWidth=cr(e,Jt,t.borderTopWidth),this.borderRightWidth=cr(e,Zt,t.borderRightWidth),this.borderBottomWidth=cr(e,en,t.borderBottomWidth),this.borderLeftWidth=cr(e,tn,t.borderLeftWidth),this.boxShadow=cr(e,nr,t.boxShadow),this.color=cr(e,nn,t.color),this.direction=cr(e,rn,t.direction),this.display=cr(e,An,t.display),this.float=cr(e,an,t.cssFloat),this.fontFamily=cr(e,$n,t.fontFamily),this.fontSize=cr(e,Vn,t.fontSize),this.fontStyle=cr(e,Yn,t.fontStyle),this.fontVariant=cr(e,jn,t.fontVariant),this.fontWeight=cr(e,Wn,t.fontWeight),this.letterSpacing=cr(e,sn,t.letterSpacing),this.lineBreak=cr(e,ln,t.lineBreak),this.lineHeight=cr(e,un,t.lineHeight),this.listStyleImage=cr(e,hn,t.listStyleImage),this.listStylePosition=cr(e,dn,t.listStylePosition),this.listStyleType=cr(e,pn,t.listStyleType),this.marginTop=cr(e,mn,t.marginTop),this.marginRight=cr(e,vn,t.marginRight),this.marginBottom=cr(e,Bn,t.marginBottom),this.marginLeft=cr(e,En,t.marginLeft),this.opacity=cr(e,Pn,t.opacity);var A=cr(e,yn,t.overflow);this.overflowX=A[0],this.overflowY=A[A.length>1?1:0],this.overflowWrap=cr(e,Cn,t.overflowWrap),this.paddingTop=cr(e,wn,t.paddingTop),this.paddingRight=cr(e,Tn,t.paddingRight),this.paddingBottom=cr(e,_n,t.paddingBottom),this.paddingLeft=cr(e,In,t.paddingLeft),this.paintOrder=cr(e,rr,t.paintOrder),this.position=cr(e,kn,t.position),this.textAlign=cr(e,Sn,t.textAlign),this.textDecorationColor=cr(e,Kn,null!==(n=t.textDecorationColor)&&void 0!==n?n:t.color),this.textDecorationLine=cr(e,Gn,null!==(r=t.textDecorationLine)&&void 0!==r?r:t.textDecoration),this.textShadow=cr(e,Fn,t.textShadow),this.textTransform=cr(e,xn,t.textTransform),this.transform=cr(e,Ln,t.transform),this.transformOrigin=cr(e,On,t.transformOrigin),this.visibility=cr(e,Qn,t.visibility),this.webkitTextStrokeColor=cr(e,Ar,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=cr(e,ir,t.webkitTextStrokeWidth),this.wordBreak=cr(e,Rn,t.wordBreak),this.zIndex=cr(e,Mn,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},e.prototype.isTransparent=function(){return ot(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return 0!==this.position},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return 0!==this.float},e.prototype.isInlineLevel=function(){return Xn(this.display,4)||Xn(this.display,33554432)||Xn(this.display,268435456)||Xn(this.display,536870912)||Xn(this.display,67108864)||Xn(this.display,134217728)},e}(),ar=function(e,t){this.content=cr(e,zn,t.content),this.quotes=cr(e,er,t.quotes)},sr=function(e,t){this.counterIncrement=cr(e,qn,t.counterIncrement),this.counterReset=cr(e,Jn,t.counterReset)},cr=function(e,t,n){var r=new Oe,A=null!=n?n.toString():t.initialValue;r.write(A);var i=new Qe(r.read());switch(t.type){case 2:var o=i.parseComponentValue();return t.parse(e,He(o)?o.value:t.initialValue);case 0:return t.parse(e,i.parseComponentValue());case 1:return t.parse(e,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(t.format){case"angle":return tt(e,i.parseComponentValue());case"color":return it(e,i.parseComponentValue());case"image":return _t(e,i.parseComponentValue());case"length":var a=i.parseComponentValue();return je(a)?a:ze;case"length-percentage":var s=i.parseComponentValue();return Ye(s)?s:ze;case"time":return Hn(e,i.parseComponentValue())}}},lr=function(e,t){var n=function(e){switch(e.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(e);return 1===n||t===n},ur=function(e,t){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,lr(t,3),this.styles=new or(e,window.getComputedStyle(t,null)),uA(t)&&(this.styles.animationDuration.some((function(e){return e>0}))&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=a(this.context,t),lr(t,4)&&(this.flags|=16)},fr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),dr=0;dr<fr.length;dr++)hr[fr.charCodeAt(dr)]=dr;for(var pr=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},gr=function(){function e(e,t,n,r,A,i){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=A,this.data=i}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e<this.highStart)return t=2080+(e>>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),mr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Br=0;Br<mr.length;Br++)vr[mr.charCodeAt(Br)]=Br;var Er,yr=8,Cr=9,br=11,wr=12,Tr=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var r=[],A=-1,i="";++A<n;){var o=e[A];o<=65535?r.push(o):(o-=65536,r.push(55296+(o>>10),o%1024+56320)),(A+1===n||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},_r=function(e,t){var n=function(e){var t,n,r,A,i,o=.75*e.length,a=e.length,s=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),l=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<a;t+=4)n=hr[e.charCodeAt(t)],r=hr[e.charCodeAt(t+1)],A=hr[e.charCodeAt(t+2)],i=hr[e.charCodeAt(t+3)],l[s++]=n<<2|r>>4,l[s++]=(15&r)<<4|A>>2,l[s++]=(3&A)<<6|63&i;return c}(e),r=Array.isArray(n)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n}(n):new Uint32Array(n),A=Array.isArray(n)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n}(n):new Uint16Array(n),i=pr(A,12,r[4]/2),o=2===r[5]?pr(A,(24+r[4])/2):function(e,t,n){return e.slice?e.slice(t,n):new Uint32Array(Array.prototype.slice.call(e,t,n))}(r,Math.ceil((24+r[4])/4));return new gr(r[0],r[1],r[2],r[3],i,o)}("AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA="),Ir=function(e){return _r.get(e)},Sr=function(e,t,n){var r=n-2,A=t[r],i=t[n-1],o=t[n];if(2===i&&3===o)return"×";if(2===i||3===i||4===i)return"÷";if(2===o||3===o||4===o)return"÷";if(i===yr&&-1!==[yr,Cr,br,wr].indexOf(o))return"×";if(!(i!==br&&i!==Cr||o!==Cr&&10!==o))return"×";if((i===wr||10===i)&&10===o)return"×";if(13===o||5===o)return"×";if(7===o)return"×";if(1===i)return"×";if(13===i&&14===o){for(;5===A;)A=t[--r];if(14===A)return"×"}if(15===i&&15===o){for(var a=0;15===A;)a++,A=t[--r];if(a%2==0)return"×"}return"÷"},kr=function(e){var t=function(e){for(var t=[],n=0,r=e.length;n<r;){var A=e.charCodeAt(n++);if(A>=55296&&A<=56319&&n<r){var i=e.charCodeAt(n++);56320==(64512&i)?t.push(((1023&A)<<10)+(1023&i)+65536):(t.push(A),n--)}else t.push(A)}return t}(e),n=t.length,r=0,A=0,i=t.map(Ir);return{next:function(){if(r>=n)return{done:!0,value:null};for(var e="×";r<n&&"×"===(e=Sr(0,i,++r)););if("×"!==e||r===n){var o=Tr.apply(null,t.slice(A,r));return A=r,{value:o,done:!1}}return{done:!0,value:null}}}},Fr=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},xr=function(e,t,n,r,A){var i="http://www.w3.org/2000/svg",o=document.createElementNS(i,"svg"),a=document.createElementNS(i,"foreignObject");return o.setAttributeNS(null,"width",e.toString()),o.setAttributeNS(null,"height",t.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",n.toString()),a.setAttributeNS(null,"y",r.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(a),a.appendChild(A),o},Lr=function(e){return new Promise((function(t,n){var r=new Image;r.onload=function(){return t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}))},Ur={get SUPPORT_RANGE_BOUNDS(){var e=function(e){if(e.createRange){var t=e.createRange();if(t.getBoundingClientRect){var n=e.createElement("boundtest");n.style.height="123px",n.style.display="block",e.body.appendChild(n),t.selectNode(n);var r=t.getBoundingClientRect(),A=Math.round(r.height);if(e.body.removeChild(n),123===A)return!0}}return!1}(document);return Object.defineProperty(Ur,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=Ur.SUPPORT_RANGE_BOUNDS&&function(e){var t=e.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",e.body.appendChild(t);var n=e.createRange();t.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";var r=t.firstChild,A=s(r.data).map((function(e){return c(e)})),i=0,o={},a=A.every((function(e,t){n.setStart(r,i),n.setEnd(r,i+e.length);var A=n.getBoundingClientRect();i+=e.length;var a=A.x>o.x||A.y>o.y;return o=A,0===t||a}));return e.body.removeChild(t),a}(document);return Object.defineProperty(Ur,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=function(e){var t=new Image,n=e.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(t,0,0),n.toDataURL()}catch(e){return!1}return!0}(document);return Object.defineProperty(Ur,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"==typeof Array.from&&"function"==typeof window.fetch?function(e){var t=e.createElement("canvas");t.width=100,t.height=100;var n=t.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,100,100);var r=new Image,A=t.toDataURL();r.src=A;var i=xr(100,100,0,0,r);return n.fillStyle="red",n.fillRect(0,0,100,100),Lr(i).then((function(t){n.drawImage(t,0,0);var r=n.getImageData(0,0,100,100).data;n.fillStyle="red",n.fillRect(0,0,100,100);var i=e.createElement("div");return i.style.backgroundImage="url("+A+")",i.style.height="100px",Fr(r)?Lr(xr(100,100,0,0,i)):Promise.reject(!1)})).then((function(e){return n.drawImage(e,0,0),Fr(n.getImageData(0,0,100,100).data)})).catch((function(){return!1}))}(document):Promise.resolve(!1);return Object.defineProperty(Ur,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=void 0!==(new Image).crossOrigin;return Object.defineProperty(Ur,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Ur,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Ur,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Ur,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},Nr=function(e,t){this.text=e,this.bounds=t},Dr=function(e,t){var n=t.ownerDocument;if(n){var r=n.createElement("html2canvaswrapper");r.appendChild(t.cloneNode(!0));var A=t.parentNode;if(A){A.replaceChild(r,t);var i=a(e,r);return r.firstChild&&A.replaceChild(r.firstChild,r),i}}return o.EMPTY},Or=function(e,t,n){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var A=r.createRange();return A.setStart(e,t),A.setEnd(e,t+n),A},Qr=function(e){if(Ur.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map((function(e){return e.segment}))}return function(e){for(var t,n=kr(e),r=[];!(t=n.next()).done;)t.value&&r.push(t.value.slice());return r}(e)},Rr=function(e,t){return 0!==t.letterSpacing?Qr(e):function(e,t){if(Ur.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(e)).map((function(e){return e.segment}))}return Hr(e,t)}(e,t)},Mr=[32,160,4961,65792,65793,4153,4241],Hr=function(e,t){for(var n,r=function(e,t){var n=s(e),r=re(n,t),A=r[0],i=r[1],o=r[2],a=n.length,c=0,l=0;return{next:function(){if(l>=a)return{done:!0,value:null};for(var e="×";l<a&&"×"===(e=ne(n,i,A,++l,o)););if("×"!==e||l===a){var t=new Ae(n,e,c,l);return c=l,{value:t,done:!1}}return{done:!0,value:null}}}}(e,{lineBreak:t.lineBreak,wordBreak:"break-word"===t.overflowWrap?"break-word":t.wordBreak}),A=[],i=function(){if(n.value){var e=n.value.slice(),t=s(e),r="";t.forEach((function(e){-1===Mr.indexOf(e)?r+=c(e):(r.length&&A.push(r),A.push(c(e)),r="")})),r.length&&A.push(r)}};!(n=r.next()).done;)i();return A},Pr=function(e,t,n){this.text=Kr(t.data,n.textTransform),this.textBounds=function(e,t,n,r){var A=Rr(t,n),i=[],a=0;return A.forEach((function(t){if(n.textDecorationLine.length||t.trim().length>0)if(Ur.SUPPORT_RANGE_BOUNDS){var A=Or(r,a,t.length).getClientRects();if(A.length>1){var s=Qr(t),c=0;s.forEach((function(t){i.push(new Nr(t,o.fromDOMRectList(e,Or(r,c+a,t.length).getClientRects()))),c+=t.length}))}else i.push(new Nr(t,o.fromDOMRectList(e,A)))}else{var l=r.splitText(t.length);i.push(new Nr(t,Dr(e,r))),r=l}else Ur.SUPPORT_RANGE_BOUNDS||(r=r.splitText(t.length));a+=t.length})),i}(e,this.text,n,t)},Kr=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(Gr,$r);case 2:return e.toUpperCase();default:return e}},Gr=/(^|\s|:|-|\(|\))([a-z])/g,$r=function(e,t,n){return e.length>0?t+n.toUpperCase():e},Vr=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return t(n,e),n}(ur),Wr=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return t(n,e),n}(ur),jr=function(e){function n(t,n){var r=e.call(this,t,n)||this,A=new XMLSerializer,i=a(t,n);return n.setAttribute("width",i.width+"px"),n.setAttribute("height",i.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(A.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return t(n,e),n}(ur),Yr=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return t(n,e),n}(ur),Xr=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.start=n.start,r.reversed="boolean"==typeof n.reversed&&!0===n.reversed,r}return t(n,e),n}(ur),zr=[{type:15,flags:0,unit:"px",number:3}],qr=[{type:16,flags:0,number:50}],Jr="password",Zr=function(e){function n(t,n){var r,A=e.call(this,t,n)||this;switch(A.type=n.type.toLowerCase(),A.checked=n.checked,A.value=function(e){var t=e.type===Jr?new Array(e.value.length+1).join("•"):e.value;return 0===t.length?e.placeholder||"":t}(n),"checkbox"!==A.type&&"radio"!==A.type||(A.styles.backgroundColor=3739148031,A.styles.borderTopColor=A.styles.borderRightColor=A.styles.borderBottomColor=A.styles.borderLeftColor=2779096575,A.styles.borderTopWidth=A.styles.borderRightWidth=A.styles.borderBottomWidth=A.styles.borderLeftWidth=1,A.styles.borderTopStyle=A.styles.borderRightStyle=A.styles.borderBottomStyle=A.styles.borderLeftStyle=1,A.styles.backgroundClip=[0],A.styles.backgroundOrigin=[0],A.bounds=(r=A.bounds).width>r.height?new o(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width<r.height?new o(r.left,r.top+(r.height-r.width)/2,r.width,r.width):r),A.type){case"checkbox":A.styles.borderTopRightRadius=A.styles.borderTopLeftRadius=A.styles.borderBottomRightRadius=A.styles.borderBottomLeftRadius=zr;break;case"radio":A.styles.borderTopRightRadius=A.styles.borderTopLeftRadius=A.styles.borderBottomRightRadius=A.styles.borderBottomLeftRadius=qr}return A}return t(n,e),n}(ur),eA=function(e){function n(t,n){var r=e.call(this,t,n)||this,A=n.options[n.selectedIndex||0];return r.value=A&&A.text||"",r}return t(n,e),n}(ur),tA=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return t(n,e),n}(ur),nA=function(e){function n(t,n){var r=e.call(this,t,n)||this;r.src=n.src,r.width=parseInt(n.width,10)||0,r.height=parseInt(n.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){r.tree=oA(t,n.contentWindow.document.documentElement);var A=n.contentWindow.document.documentElement?pt(t,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):gt.TRANSPARENT,i=n.contentWindow.document.body?pt(t,getComputedStyle(n.contentWindow.document.body).backgroundColor):gt.TRANSPARENT;r.backgroundColor=ot(A)?ot(i)?r.styles.backgroundColor:i:A}}catch(e){}return r}return t(n,e),n}(ur),rA=["OL","UL","MENU"],AA=function(e,t,n,r){for(var A=t.firstChild,i=void 0;A;A=i)if(i=A.nextSibling,cA(A)&&A.data.trim().length>0)n.textNodes.push(new Pr(e,A,n.styles));else if(lA(A))if(TA(A)&&A.assignedNodes)A.assignedNodes().forEach((function(t){return AA(e,t,n,r)}));else{var o=iA(e,A);o.styles.isVisible()&&(aA(A,o,r)?o.flags|=4:sA(o.styles)&&(o.flags|=2),-1!==rA.indexOf(A.tagName)&&(o.flags|=8),n.elements.push(o),A.slot,A.shadowRoot?AA(e,A.shadowRoot,o,r):bA(A)||gA(A)||wA(A)||AA(e,A,o,r))}},iA=function(e,t){return EA(t)?new Vr(e,t):vA(t)?new Wr(e,t):gA(t)?new jr(e,t):hA(t)?new Yr(e,t):dA(t)?new Xr(e,t):pA(t)?new Zr(e,t):wA(t)?new eA(e,t):bA(t)?new tA(e,t):yA(t)?new nA(e,t):new ur(e,t)},oA=function(e,t){var n=iA(e,t);return n.flags|=4,AA(e,t,n,n),n},aA=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||mA(e)&&n.styles.isTransparent()},sA=function(e){return e.isPositioned()||e.isFloating()},cA=function(e){return e.nodeType===Node.TEXT_NODE},lA=function(e){return e.nodeType===Node.ELEMENT_NODE},uA=function(e){return lA(e)&&void 0!==e.style&&!fA(e)},fA=function(e){return"object"==typeof e.className},hA=function(e){return"LI"===e.tagName},dA=function(e){return"OL"===e.tagName},pA=function(e){return"INPUT"===e.tagName},gA=function(e){return"svg"===e.tagName},mA=function(e){return"BODY"===e.tagName},vA=function(e){return"CANVAS"===e.tagName},BA=function(e){return"VIDEO"===e.tagName},EA=function(e){return"IMG"===e.tagName},yA=function(e){return"IFRAME"===e.tagName},CA=function(e){return"STYLE"===e.tagName},bA=function(e){return"TEXTAREA"===e.tagName},wA=function(e){return"SELECT"===e.tagName},TA=function(e){return"SLOT"===e.tagName},_A=function(e){return e.tagName.indexOf("-")>0},IA=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},e.prototype.pop=function(e){var t=this;e.forEach((function(e){return t.counters[e].pop()}))},e.prototype.parse=function(e){var t=this,n=e.counterIncrement,r=e.counterReset,A=!0;null!==n&&n.forEach((function(e){var n=t.counters[e.counter];n&&0!==e.increment&&(A=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=e.increment)}));var i=[];return A&&r.forEach((function(e){var n=t.counters[e.counter];i.push(e.counter),n||(n=t.counters[e.counter]=[]),n.push(e.reset)})),i},e}(),SA={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},kA={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},FA={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},xA={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},LA=function(e,t,n,r,A,i){return e<t||e>n?QA(e,A,i.length>0):r.integers.reduce((function(t,n,A){for(;e>=n;)e-=n,t+=r.values[A];return t}),"")+i},UA=function(e,t,n,r){var A="";do{n||e--,A=r(e)+A,e/=t}while(e*t>=t);return A},NA=function(e,t,n,r,A){var i=n-t+1;return(e<0?"-":"")+(UA(Math.abs(e),i,r,(function(e){return c(Math.floor(e%i)+t)}))+A)},DA=function(e,t,n){void 0===n&&(n=". ");var r=t.length;return UA(Math.abs(e),r,!1,(function(e){return t[Math.floor(e%r)]}))+n},OA=function(e,t,n,r,A,i){if(e<-9999||e>9999)return QA(e,4,A.length>0);var o=Math.abs(e),a=A;if(0===o)return t[0]+a;for(var s=0;o>0&&s<=4;s++){var c=o%10;0===c&&Xn(i,1)&&""!==a?a=t[c]+a:c>1||1===c&&0===s||1===c&&1===s&&Xn(i,2)||1===c&&1===s&&Xn(i,4)&&e>100||1===c&&s>1&&Xn(i,8)?a=t[c]+(s>0?n[s-1]:"")+a:1===c&&s>0&&(a=n[s-1]+a),o=Math.floor(o/10)}return(e<0?r:"")+a},QA=function(e,t,n){var r=n?". ":"",A=n?"、":"",i=n?", ":"",o=n?" ":"";switch(t){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var a=NA(e,48,57,!0,r);return a.length<4?"0"+a:a;case 4:return DA(e,"〇一二三四五六七八九",A);case 6:return LA(e,1,3999,SA,3,r).toLowerCase();case 7:return LA(e,1,3999,SA,3,r);case 8:return NA(e,945,969,!1,r);case 9:return NA(e,97,122,!1,r);case 10:return NA(e,65,90,!1,r);case 11:return NA(e,1632,1641,!0,r);case 12:case 49:return LA(e,1,9999,kA,3,r);case 35:return LA(e,1,9999,kA,3,r).toLowerCase();case 13:return NA(e,2534,2543,!0,r);case 14:case 30:return NA(e,6112,6121,!0,r);case 15:return DA(e,"子丑寅卯辰巳午未申酉戌亥",A);case 16:return DA(e,"甲乙丙丁戊己庚辛壬癸",A);case 17:case 48:return OA(e,"零一二三四五六七八九","十百千萬","負",A,14);case 47:return OA(e,"零壹貳參肆伍陸柒捌玖","拾佰仟萬","負",A,15);case 42:return OA(e,"零一二三四五六七八九","十百千萬","负",A,14);case 41:return OA(e,"零壹贰叁肆伍陆柒捌玖","拾佰仟萬","负",A,15);case 26:return OA(e,"〇一二三四五六七八九","十百千万","マイナス",A,0);case 25:return OA(e,"零壱弐参四伍六七八九","拾百千万","マイナス",A,7);case 31:return OA(e,"영일이삼사오육칠팔구","십백천만","마이너스",i,7);case 33:return OA(e,"零一二三四五六七八九","十百千萬","마이너스",i,0);case 32:return OA(e,"零壹貳參四五六七八九","拾百千","마이너스",i,7);case 18:return NA(e,2406,2415,!0,r);case 20:return LA(e,1,19999,xA,3,r);case 21:return NA(e,2790,2799,!0,r);case 22:return NA(e,2662,2671,!0,r);case 22:return LA(e,1,10999,FA,3,r);case 23:return DA(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return DA(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return NA(e,3302,3311,!0,r);case 28:return DA(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",A);case 29:return DA(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",A);case 34:return NA(e,3792,3801,!0,r);case 37:return NA(e,6160,6169,!0,r);case 38:return NA(e,4160,4169,!0,r);case 39:return NA(e,2918,2927,!0,r);case 40:return NA(e,1776,1785,!0,r);case 43:return NA(e,3046,3055,!0,r);case 44:return NA(e,3174,3183,!0,r);case 45:return NA(e,3664,3673,!0,r);case 46:return NA(e,3872,3881,!0,r);case 3:default:return NA(e,48,57,!0,r)}},RA=function(){function e(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new IA,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,t){var n=this,i=HA(e,t);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var o=e.defaultView.pageXOffset,a=e.defaultView.pageYOffset,s=i.contentWindow,c=s.document,l=GA(i).then((function(){return r(n,void 0,void 0,(function(){var e,n;return A(this,(function(r){switch(r.label){case 0:return this.scrolledElements.forEach(YA),s&&(s.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||s.scrollY===t.top&&s.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-t.left,s.scrollY-t.top,0,0))),e=this.options.onclone,void 0===(n=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,KA(c)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof e?[2,Promise.resolve().then((function(){return e(c,n)})).then((function(){return i}))]:[2,i]}}))}))}));return c.open(),c.write(WA(document.doctype)+"<html></html>"),jA(this.referenceElement.ownerDocument,o,a),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),l},e.prototype.createElementClone=function(e){if(lr(e,2),vA(e))return this.createCanvasClone(e);if(BA(e))return this.createVideoClone(e);if(CA(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return EA(t)&&(EA(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),_A(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return VA(e.style,t),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce((function(e,t){return t&&"string"==typeof t.cssText?e+t.cssText:e}),""),r=e.cloneNode(!1);return r.textContent=n,r}}catch(e){if(this.context.logger.error("Unable to access cssRules property",e),"SecurityError"!==e.name)throw e}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch(t){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var r=e.cloneNode(!1);try{r.width=e.width,r.height=e.height;var A=e.getContext("2d"),i=r.getContext("2d");if(i)if(!this.options.allowTaint&&A)i.putImageData(A.getImageData(0,0,e.width,e.height),0,0);else{var o=null!==(t=e.getContext("webgl2"))&&void 0!==t?t:e.getContext("webgl");if(o){var a=o.getContextAttributes();!1===(null==a?void 0:a.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}i.drawImage(e,0,0)}return r}catch(t){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return r},e.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var n=t.getContext("2d");try{return n&&(n.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||n.getImageData(0,0,t.width,t.height)),t}catch(t){this.context.logger.info("Unable to clone video as it is tainted",e)}var r=e.ownerDocument.createElement("canvas");return r.width=e.offsetWidth,r.height=e.offsetHeight,r},e.prototype.appendChildNode=function(e,t,n){lA(t)&&(function(e){return"SCRIPT"===e.tagName}(t)||t.hasAttribute("data-html2canvas-ignore")||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(t))||this.options.copyStyles&&lA(t)&&CA(t)||e.appendChild(this.cloneNode(t,n))},e.prototype.cloneChildNodes=function(e,t,n){for(var r=this,A=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;A;A=A.nextSibling)if(lA(A)&&TA(A)&&"function"==typeof A.assignedNodes){var i=A.assignedNodes();i.length&&i.forEach((function(e){return r.appendChildNode(t,e,n)}))}else this.appendChildNode(t,A,n)},e.prototype.cloneNode=function(e,t){if(cA(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&lA(e)&&(uA(e)||fA(e))){var r=this.createElementClone(e);r.style.transitionProperty="none";var A=n.getComputedStyle(e),i=n.getComputedStyle(e,":before"),o=n.getComputedStyle(e,":after");this.referenceElement===e&&uA(r)&&(this.clonedReferenceElement=r),mA(r)&&qA(r);var a=this.counters.parse(new sr(this.context,A)),s=this.resolvePseudoContent(e,r,i,Er.BEFORE);_A(e)&&(t=!0),BA(e)||this.cloneChildNodes(e,r,t),s&&r.insertBefore(s,r.firstChild);var c=this.resolvePseudoContent(e,r,o,Er.AFTER);return c&&r.appendChild(c),this.counters.pop(a),(A&&(this.options.copyStyles||fA(e))&&!yA(e)||t)&&VA(A,r),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([r,e.scrollLeft,e.scrollTop]),(bA(e)||wA(e))&&(bA(r)||wA(r))&&(r.value=e.value),r}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,n,r){var A=this;if(n){var i=n.content,o=t.ownerDocument;if(o&&i&&"none"!==i&&"-moz-alt-content"!==i&&"none"!==n.display){this.counters.parse(new sr(this.context,n));var a=new ar(this.context,n),s=o.createElement("html2canvaspseudoelement");VA(n,s),a.content.forEach((function(t){if(0===t.type)s.appendChild(o.createTextNode(t.value));else if(22===t.type){var n=o.createElement("img");n.src=t.value,n.style.opacity="1",s.appendChild(n)}else if(18===t.type){if("attr"===t.name){var r=t.values.filter(He);r.length&&s.appendChild(o.createTextNode(e.getAttribute(r[0].value)||""))}else if("counter"===t.name){var i=t.values.filter($e),c=i[0],l=i[1];if(c&&He(c)){var u=A.counters.getCounterValue(c.value),f=l&&He(l)?pn.parse(A.context,l.value):3;s.appendChild(o.createTextNode(QA(u,f,!1)))}}else if("counters"===t.name){var h=t.values.filter($e),d=(c=h[0],h[1]);if(l=h[2],c&&He(c)){var p=A.counters.getCounterValues(c.value),g=l&&He(l)?pn.parse(A.context,l.value):3,m=d&&0===d.type?d.value:"",v=p.map((function(e){return QA(e,g,!1)})).join(m);s.appendChild(o.createTextNode(v))}}}else if(20===t.type)switch(t.value){case"open-quote":s.appendChild(o.createTextNode(tr(a.quotes,A.quoteDepth++,!0)));break;case"close-quote":s.appendChild(o.createTextNode(tr(a.quotes,--A.quoteDepth,!1)));break;default:s.appendChild(o.createTextNode(t.value))}})),s.className=XA+" "+zA;var c=r===Er.BEFORE?" "+XA:" "+zA;return fA(t)?t.className.baseValue+=c:t.className+=c,s}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();!function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"}(Er||(Er={}));var MA,HA=function(e,t){var n=e.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling="no",n.setAttribute("data-html2canvas-ignore","true"),e.body.appendChild(n),n},PA=function(e){return new Promise((function(t){e.complete?t():e.src?(e.onload=t,e.onerror=t):t()}))},KA=function(e){return Promise.all([].slice.call(e.images,0).map(PA))},GA=function(e){return new Promise((function(t,n){var r=e.contentWindow;if(!r)return n("No window assigned for iframe");var A=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var n=setInterval((function(){A.body.childNodes.length>0&&"complete"===A.readyState&&(clearInterval(n),t(e))}),50)}}))},$A=["all","d","content"],VA=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e.item(n);-1===$A.indexOf(r)&&t.style.setProperty(r,e.getPropertyValue(r))}return t},WA=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},jA=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},YA=function(e){var t=e[0],n=e[1],r=e[2];t.scrollLeft=n,t.scrollTop=r},XA="___html2canvas___pseudoelement_before",zA="___html2canvas___pseudoelement_after",qA=function(e){JA(e,"."+XA+':before{\n content: "" !important;\n display: none !important;\n}\n .'+zA+':after{\n content: "" !important;\n display: none !important;\n}')},JA=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement("style");r.textContent=t,e.appendChild(r)}},ZA=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),ei=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:ai(e)||Ai(e)?((this._cache[e]=this.loadImage(e)).catch((function(){})),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return r(this,void 0,void 0,(function(){var t,n,r,i,o=this;return A(this,(function(A){switch(A.label){case 0:return t=ZA.isSameOrigin(e),n=!ii(e)&&!0===this._options.useCORS&&Ur.SUPPORT_CORS_IMAGES&&!t,r=!ii(e)&&!t&&!ai(e)&&"string"==typeof this._options.proxy&&Ur.SUPPORT_CORS_XHR&&!n,t||!1!==this._options.allowTaint||ii(e)||ai(e)||r||n?(i=e,r?[4,this.proxy(i)]:[3,2]):[2];case 1:i=A.sent(),A.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise((function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,(oi(i)||n)&&(r.crossOrigin="anonymous"),r.src=i,!0===r.complete&&setTimeout((function(){return e(r)}),500),o._options.imageTimeout>0&&setTimeout((function(){return t("Timed out ("+o._options.imageTimeout+"ms) loading image")}),o._options.imageTimeout)}))];case 3:return[2,A.sent()]}}))}))},e.prototype.has=function(e){return void 0!==this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise((function(A,i){var o=Ur.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(200===a.status)if("text"===o)A(a.response);else{var e=new FileReader;e.addEventListener("load",(function(){return A(e.result)}),!1),e.addEventListener("error",(function(e){return i(e)}),!1),e.readAsDataURL(a.response)}else i("Failed to proxy resource "+r+" with status code "+a.status)},a.onerror=i;var s=n.indexOf("?")>-1?"&":"?";if(a.open("GET",""+n+s+"url="+encodeURIComponent(e)+"&responseType="+o),"text"!==o&&a instanceof XMLHttpRequest&&(a.responseType=o),t._options.imageTimeout){var c=t._options.imageTimeout;a.timeout=c,a.ontimeout=function(){return i("Timed out ("+c+"ms) proxying "+r)}}a.send()}))},e}(),ti=/^data:image\/svg\+xml/i,ni=/^data:image\/.*;base64,/i,ri=/^data:image\/.*/i,Ai=function(e){return Ur.SUPPORT_SVG_DRAWING||!si(e)},ii=function(e){return ri.test(e)},oi=function(e){return ni.test(e)},ai=function(e){return"blob"===e.substr(0,4)},si=function(e){return"svg"===e.substr(-3).toLowerCase()||ti.test(e)},ci=function(){function e(e,t){this.type=0,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),li=function(e,t,n){return new ci(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},ui=function(){function e(e,t,n,r){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=r}return e.prototype.subdivide=function(t,n){var r=li(this.start,this.startControl,t),A=li(this.startControl,this.endControl,t),i=li(this.endControl,this.end,t),o=li(r,A,t),a=li(A,i,t),s=li(o,a,t);return n?new e(this.start,r,o,s):new e(s,a,i,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),fi=function(e){return 1===e.type},hi=function(e){var t=e.styles,n=e.bounds,r=Ze(t.borderTopLeftRadius,n.width,n.height),A=r[0],i=r[1],o=Ze(t.borderTopRightRadius,n.width,n.height),a=o[0],s=o[1],c=Ze(t.borderBottomRightRadius,n.width,n.height),l=c[0],u=c[1],f=Ze(t.borderBottomLeftRadius,n.width,n.height),h=f[0],d=f[1],p=[];p.push((A+a)/n.width),p.push((h+l)/n.width),p.push((i+d)/n.height),p.push((s+u)/n.height);var g=Math.max.apply(Math,p);g>1&&(A/=g,i/=g,a/=g,s/=g,l/=g,u/=g,h/=g,d/=g);var m=n.width-a,v=n.height-u,B=n.width-l,E=n.height-d,y=t.borderTopWidth,C=t.borderRightWidth,b=t.borderBottomWidth,w=t.borderLeftWidth,T=et(t.paddingTop,e.bounds.width),_=et(t.paddingRight,e.bounds.width),I=et(t.paddingBottom,e.bounds.width),S=et(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=A>0||i>0?di(n.left+w/3,n.top+y/3,A-w/3,i-y/3,MA.TOP_LEFT):new ci(n.left+w/3,n.top+y/3),this.topRightBorderDoubleOuterBox=A>0||i>0?di(n.left+m,n.top+y/3,a-C/3,s-y/3,MA.TOP_RIGHT):new ci(n.left+n.width-C/3,n.top+y/3),this.bottomRightBorderDoubleOuterBox=l>0||u>0?di(n.left+B,n.top+v,l-C/3,u-b/3,MA.BOTTOM_RIGHT):new ci(n.left+n.width-C/3,n.top+n.height-b/3),this.bottomLeftBorderDoubleOuterBox=h>0||d>0?di(n.left+w/3,n.top+E,h-w/3,d-b/3,MA.BOTTOM_LEFT):new ci(n.left+w/3,n.top+n.height-b/3),this.topLeftBorderDoubleInnerBox=A>0||i>0?di(n.left+2*w/3,n.top+2*y/3,A-2*w/3,i-2*y/3,MA.TOP_LEFT):new ci(n.left+2*w/3,n.top+2*y/3),this.topRightBorderDoubleInnerBox=A>0||i>0?di(n.left+m,n.top+2*y/3,a-2*C/3,s-2*y/3,MA.TOP_RIGHT):new ci(n.left+n.width-2*C/3,n.top+2*y/3),this.bottomRightBorderDoubleInnerBox=l>0||u>0?di(n.left+B,n.top+v,l-2*C/3,u-2*b/3,MA.BOTTOM_RIGHT):new ci(n.left+n.width-2*C/3,n.top+n.height-2*b/3),this.bottomLeftBorderDoubleInnerBox=h>0||d>0?di(n.left+2*w/3,n.top+E,h-2*w/3,d-2*b/3,MA.BOTTOM_LEFT):new ci(n.left+2*w/3,n.top+n.height-2*b/3),this.topLeftBorderStroke=A>0||i>0?di(n.left+w/2,n.top+y/2,A-w/2,i-y/2,MA.TOP_LEFT):new ci(n.left+w/2,n.top+y/2),this.topRightBorderStroke=A>0||i>0?di(n.left+m,n.top+y/2,a-C/2,s-y/2,MA.TOP_RIGHT):new ci(n.left+n.width-C/2,n.top+y/2),this.bottomRightBorderStroke=l>0||u>0?di(n.left+B,n.top+v,l-C/2,u-b/2,MA.BOTTOM_RIGHT):new ci(n.left+n.width-C/2,n.top+n.height-b/2),this.bottomLeftBorderStroke=h>0||d>0?di(n.left+w/2,n.top+E,h-w/2,d-b/2,MA.BOTTOM_LEFT):new ci(n.left+w/2,n.top+n.height-b/2),this.topLeftBorderBox=A>0||i>0?di(n.left,n.top,A,i,MA.TOP_LEFT):new ci(n.left,n.top),this.topRightBorderBox=a>0||s>0?di(n.left+m,n.top,a,s,MA.TOP_RIGHT):new ci(n.left+n.width,n.top),this.bottomRightBorderBox=l>0||u>0?di(n.left+B,n.top+v,l,u,MA.BOTTOM_RIGHT):new ci(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=h>0||d>0?di(n.left,n.top+E,h,d,MA.BOTTOM_LEFT):new ci(n.left,n.top+n.height),this.topLeftPaddingBox=A>0||i>0?di(n.left+w,n.top+y,Math.max(0,A-w),Math.max(0,i-y),MA.TOP_LEFT):new ci(n.left+w,n.top+y),this.topRightPaddingBox=a>0||s>0?di(n.left+Math.min(m,n.width-C),n.top+y,m>n.width+C?0:Math.max(0,a-C),Math.max(0,s-y),MA.TOP_RIGHT):new ci(n.left+n.width-C,n.top+y),this.bottomRightPaddingBox=l>0||u>0?di(n.left+Math.min(B,n.width-w),n.top+Math.min(v,n.height-b),Math.max(0,l-C),Math.max(0,u-b),MA.BOTTOM_RIGHT):new ci(n.left+n.width-C,n.top+n.height-b),this.bottomLeftPaddingBox=h>0||d>0?di(n.left+w,n.top+Math.min(E,n.height-b),Math.max(0,h-w),Math.max(0,d-b),MA.BOTTOM_LEFT):new ci(n.left+w,n.top+n.height-b),this.topLeftContentBox=A>0||i>0?di(n.left+w+S,n.top+y+T,Math.max(0,A-(w+S)),Math.max(0,i-(y+T)),MA.TOP_LEFT):new ci(n.left+w+S,n.top+y+T),this.topRightContentBox=a>0||s>0?di(n.left+Math.min(m,n.width+w+S),n.top+y+T,m>n.width+w+S?0:a-w+S,s-(y+T),MA.TOP_RIGHT):new ci(n.left+n.width-(C+_),n.top+y+T),this.bottomRightContentBox=l>0||u>0?di(n.left+Math.min(B,n.width-(w+S)),n.top+Math.min(v,n.height+y+T),Math.max(0,l-(C+_)),u-(b+I),MA.BOTTOM_RIGHT):new ci(n.left+n.width-(C+_),n.top+n.height-(b+I)),this.bottomLeftContentBox=h>0||d>0?di(n.left+w+S,n.top+E,Math.max(0,h-(w+S)),d-(b+I),MA.BOTTOM_LEFT):new ci(n.left+w+S,n.top+n.height-(b+I))};!function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(MA||(MA={}));var di=function(e,t,n,r,A){var i=(Math.sqrt(2)-1)/3*4,o=n*i,a=r*i,s=e+n,c=t+r;switch(A){case MA.TOP_LEFT:return new ui(new ci(e,c),new ci(e,c-a),new ci(s-o,t),new ci(s,t));case MA.TOP_RIGHT:return new ui(new ci(e,t),new ci(e+o,t),new ci(s,c-a),new ci(s,c));case MA.BOTTOM_RIGHT:return new ui(new ci(s,t),new ci(s,t+a),new ci(e+o,c),new ci(e,c));case MA.BOTTOM_LEFT:default:return new ui(new ci(s,c),new ci(s-o,c),new ci(e,t+a),new ci(e,t))}},pi=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},gi=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},mi=function(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6},vi=function(e,t){this.path=e,this.target=t,this.type=1},Bi=function(e){this.opacity=e,this.type=2,this.target=6},Ei=function(e){return 1===e.type},yi=function(e,t){return e.length===t.length&&e.some((function(e,n){return e===t[n]}))},Ci=function(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},bi=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new hi(this.container),this.container.styles.opacity<1&&this.effects.push(new Bi(this.container.styles.opacity)),null!==this.container.styles.transform){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,A=this.container.styles.transform;this.effects.push(new mi(n,r,A))}if(0!==this.container.styles.overflowX){var i=pi(this.curves),o=gi(this.curves);yi(i,o)?this.effects.push(new vi(i,6)):(this.effects.push(new vi(i,2)),this.effects.push(new vi(o,4)))}}return e.prototype.getEffects=function(e){for(var t=-1===[2,3].indexOf(this.container.styles.position),n=this.parent,r=this.effects.slice(0);n;){var A=n.effects.filter((function(e){return!Ei(e)}));if(t||0!==n.container.styles.position||!n.parent){if(r.unshift.apply(r,A),t=-1===[2,3].indexOf(n.container.styles.position),0!==n.container.styles.overflowX){var i=pi(n.curves),o=gi(n.curves);yi(i,o)||r.unshift(new vi(o,6))}}else r.unshift.apply(r,A);n=n.parent}return r.filter((function(t){return Xn(t.target,e)}))},e}(),wi=function(e,t,n,r){e.container.elements.forEach((function(A){var i=Xn(A.flags,4),o=Xn(A.flags,2),a=new bi(A,e);Xn(A.styles.display,2048)&&r.push(a);var s=Xn(A.flags,8)?[]:r;if(i||o){var c=i||A.styles.isPositioned()?n:t,l=new Ci(a);if(A.styles.isPositioned()||A.styles.opacity<1||A.styles.isTransformed()){var u=A.styles.zIndex.order;if(u<0){var f=0;c.negativeZIndex.some((function(e,t){return u>e.element.container.styles.zIndex.order?(f=t,!1):f>0})),c.negativeZIndex.splice(f,0,l)}else if(u>0){var h=0;c.positiveZIndex.some((function(e,t){return u>=e.element.container.styles.zIndex.order?(h=t+1,!1):h>0})),c.positiveZIndex.splice(h,0,l)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(l)}else A.styles.isFloating()?c.nonPositionedFloats.push(l):c.nonPositionedInlineLevel.push(l);wi(a,l,i?l:n,s)}else A.styles.isInlineLevel()?t.inlineLevel.push(a):t.nonInlineLevel.push(a),wi(a,t,n,s);Xn(A.flags,8)&&Ti(A,s)}))},Ti=function(e,t){for(var n=e instanceof Xr?e.start:1,r=e instanceof Xr&&e.reversed,A=0;A<t.length;A++){var i=t[A];i.container instanceof Yr&&"number"==typeof i.container.value&&0!==i.container.value&&(n=i.container.value),i.listValue=QA(n,i.container.styles.listStyleType,!0),n+=r?-1:1}},_i=function(e,t){switch(t){case 0:return Si(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return Si(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return Si(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return Si(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},Ii=function(e,t){var n=[];return fi(e)?n.push(e.subdivide(.5,!1)):n.push(e),fi(t)?n.push(t.subdivide(.5,!0)):n.push(t),n},Si=function(e,t,n,r){var A=[];return fi(e)?A.push(e.subdivide(.5,!1)):A.push(e),fi(n)?A.push(n.subdivide(.5,!0)):A.push(n),fi(r)?A.push(r.subdivide(.5,!0).reverse()):A.push(r),fi(t)?A.push(t.subdivide(.5,!1).reverse()):A.push(t),A},ki=function(e){var t=e.bounds,n=e.styles;return t.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},Fi=function(e){var t=e.styles,n=e.bounds,r=et(t.paddingLeft,n.width),A=et(t.paddingRight,n.width),i=et(t.paddingTop,n.width),o=et(t.paddingBottom,n.width);return n.add(r+t.borderLeftWidth,i+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+A),-(t.borderTopWidth+t.borderBottomWidth+i+o))},xi=function(e,t,n){var r=function(e,t){return 0===e?t.bounds:2===e?Fi(t):ki(t)}(Di(e.styles.backgroundOrigin,t),e),A=function(e,t){return 0===e?t.bounds:2===e?Fi(t):ki(t)}(Di(e.styles.backgroundClip,t),e),i=Ni(Di(e.styles.backgroundSize,t),n,r),o=i[0],a=i[1],s=Ze(Di(e.styles.backgroundPosition,t),r.width-o,r.height-a);return[Oi(Di(e.styles.backgroundRepeat,t),s,i,r,A),Math.round(r.left+s[0]),Math.round(r.top+s[1]),o,a]},Li=function(e){return He(e)&&e.value===ft.AUTO},Ui=function(e){return"number"==typeof e},Ni=function(e,t,n){var r=t[0],A=t[1],i=t[2],o=e[0],a=e[1];if(!o)return[0,0];if(Ye(o)&&a&&Ye(a))return[et(o,n.width),et(a,n.height)];var s=Ui(i);if(He(o)&&(o.value===ft.CONTAIN||o.value===ft.COVER))return Ui(i)?n.width/n.height<i!=(o.value===ft.COVER)?[n.width,n.width/i]:[n.height*i,n.height]:[n.width,n.height];var c=Ui(r),l=Ui(A),u=c||l;if(Li(o)&&(!a||Li(a)))return c&&l?[r,A]:s||u?u&&s?[c?r:A*i,l?A:r/i]:[c?r:n.width,l?A:n.height]:[n.width,n.height];if(s){var f=0,h=0;return Ye(o)?f=et(o,n.width):Ye(a)&&(h=et(a,n.height)),Li(o)?f=h*i:a&&!Li(a)||(h=f/i),[f,h]}var d=null,p=null;if(Ye(o)?d=et(o,n.width):a&&Ye(a)&&(p=et(a,n.height)),null===d||a&&!Li(a)||(p=c&&l?d/r*A:n.height),null!==p&&Li(o)&&(d=c&&l?p/A*r:n.width),null!==d&&null!==p)return[d,p];throw new Error("Unable to calculate background-size for element")},Di=function(e,t){var n=e[t];return void 0===n?e[0]:n},Oi=function(e,t,n,r,A){var i=t[0],o=t[1],a=n[0],s=n[1];switch(e){case 2:return[new ci(Math.round(r.left),Math.round(r.top+o)),new ci(Math.round(r.left+r.width),Math.round(r.top+o)),new ci(Math.round(r.left+r.width),Math.round(s+r.top+o)),new ci(Math.round(r.left),Math.round(s+r.top+o))];case 3:return[new ci(Math.round(r.left+i),Math.round(r.top)),new ci(Math.round(r.left+i+a),Math.round(r.top)),new ci(Math.round(r.left+i+a),Math.round(r.height+r.top)),new ci(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new ci(Math.round(r.left+i),Math.round(r.top+o)),new ci(Math.round(r.left+i+a),Math.round(r.top+o)),new ci(Math.round(r.left+i+a),Math.round(r.top+o+s)),new ci(Math.round(r.left+i),Math.round(r.top+o+s))];default:return[new ci(Math.round(A.left),Math.round(A.top)),new ci(Math.round(A.left+A.width),Math.round(A.top)),new ci(Math.round(A.left+A.width),Math.round(A.height+A.top)),new ci(Math.round(A.left),Math.round(A.height+A.top))]}},Qi=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),r=this._document.createElement("img"),A=this._document.createElement("span"),i=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",i.appendChild(n),r.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",A.style.fontFamily=e,A.style.fontSize=t,A.style.margin="0",A.style.padding="0",A.appendChild(this._document.createTextNode("Hidden Text")),n.appendChild(A),n.appendChild(r);var o=r.offsetTop-A.offsetTop+2;n.removeChild(A),n.appendChild(this._document.createTextNode("Hidden Text")),n.style.lineHeight="normal",r.style.verticalAlign="super";var a=r.offsetTop-n.offsetTop+2;return i.removeChild(n),{baseline:o,middle:a}},e.prototype.getMetrics=function(e,t){var n=e+" "+t;return void 0===this._data[n]&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},e}(),Ri=function(e,t){this.context=e,this.options=t},Mi=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new Qi(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return t(n,e),n.prototype.applyEffects=function(e){for(var t=this;this._activeEffects.length;)this.popEffect();e.forEach((function(e){return t.applyEffect(e)}))},n.prototype.applyEffect=function(e){this.ctx.save(),function(e){return 2===e.type}(e)&&(this.ctx.globalAlpha=e.opacity),function(e){return 0===e.type}(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),Ei(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},n.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},n.prototype.renderStack=function(e){return r(this,void 0,void 0,(function(){return A(this,(function(t){switch(t.label){case 0:return e.element.container.styles.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},n.prototype.renderNode=function(e){return r(this,void 0,void 0,(function(){return A(this,(function(t){switch(t.label){case 0:return Xn(e.container.flags,16),e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}}))}))},n.prototype.renderTextWithLetterSpacing=function(e,t,n){var r=this;0===t?this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+n):Qr(e.text).reduce((function(t,A){return r.ctx.fillText(A,t,e.bounds.top+n),t+r.ctx.measureText(A).width}),e.bounds.left)},n.prototype.createFontStyle=function(e){var t=e.fontVariant.filter((function(e){return"normal"===e||"small-caps"===e})).join(""),n=$i(e.fontFamily).join(", "),r=Re(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,r,n].join(" "),n,r]},n.prototype.renderTextNode=function(e,t){return r(this,void 0,void 0,(function(){var n,r,i,o,a,s,c,l,u=this;return A(this,(function(A){return n=this.createFontStyle(t),r=n[0],i=n[1],o=n[2],this.ctx.font=r,this.ctx.direction=1===t.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",a=this.fontMetrics.getMetrics(i,o),s=a.baseline,c=a.middle,l=t.paintOrder,e.textBounds.forEach((function(e){l.forEach((function(n){switch(n){case 0:u.ctx.fillStyle=at(t.color),u.renderTextWithLetterSpacing(e,t.letterSpacing,s);var r=t.textShadow;r.length&&e.text.trim().length&&(r.slice(0).reverse().forEach((function(n){u.ctx.shadowColor=at(n.color),u.ctx.shadowOffsetX=n.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=n.offsetY.number*u.options.scale,u.ctx.shadowBlur=n.blur.number,u.renderTextWithLetterSpacing(e,t.letterSpacing,s)})),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),t.textDecorationLine.length&&(u.ctx.fillStyle=at(t.textDecorationColor||t.color),t.textDecorationLine.forEach((function(t){switch(t){case 1:u.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+s),e.bounds.width,1);break;case 2:u.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:u.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+c),e.bounds.width,1)}})));break;case 1:t.webkitTextStrokeWidth&&e.text.trim().length&&(u.ctx.strokeStyle=at(t.webkitTextStrokeColor),u.ctx.lineWidth=t.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(e.text,e.bounds.left,e.bounds.top+s)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter"}}))})),[2]}))}))},n.prototype.renderReplacedElement=function(e,t,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var r=Fi(e),A=gi(t);this.path(A),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(e){return r(this,void 0,void 0,(function(){var t,r,i,a,s,c,l,u,f,h,d,p,g,m,v,B,E,y;return A(this,(function(A){switch(A.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,r=e.curves,i=t.styles,a=0,s=t.textNodes,A.label=1;case 1:return a<s.length?(c=s[a],[4,this.renderTextNode(c,i)]):[3,4];case 2:A.sent(),A.label=3;case 3:return a++,[3,1];case 4:if(!(t instanceof Vr))return[3,8];A.label=5;case 5:return A.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return v=A.sent(),this.renderReplacedElement(t,r,v),[3,8];case 7:return A.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof Wr&&this.renderReplacedElement(t,r,t.canvas),!(t instanceof jr))return[3,12];A.label=9;case 9:return A.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return v=A.sent(),this.renderReplacedElement(t,r,v),[3,12];case 11:return A.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof nA&&t.tree?[4,new n(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}).render(t.tree)]:[3,14];case 13:l=A.sent(),t.width&&t.height&&this.ctx.drawImage(l,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),A.label=14;case 14:if(t instanceof Zr&&(u=Math.min(t.bounds.width,t.bounds.height),"checkbox"===t.type?t.checked&&(this.ctx.save(),this.path([new ci(t.bounds.left+.39363*u,t.bounds.top+.79*u),new ci(t.bounds.left+.16*u,t.bounds.top+.5549*u),new ci(t.bounds.left+.27347*u,t.bounds.top+.44071*u),new ci(t.bounds.left+.39694*u,t.bounds.top+.5649*u),new ci(t.bounds.left+.72983*u,t.bounds.top+.23*u),new ci(t.bounds.left+.84*u,t.bounds.top+.34085*u),new ci(t.bounds.left+.39363*u,t.bounds.top+.79*u)]),this.ctx.fillStyle=at(707406591),this.ctx.fill(),this.ctx.restore()):"radio"===t.type&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+u/2,t.bounds.top+u/2,u/4,0,2*Math.PI,!0),this.ctx.fillStyle=at(707406591),this.ctx.fill(),this.ctx.restore())),Hi(t)&&t.value.length){switch(f=this.createFontStyle(i),E=f[0],h=f[1],d=this.fontMetrics.getMetrics(E,h).baseline,this.ctx.font=E,this.ctx.fillStyle=at(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Ki(t.styles.textAlign),y=Fi(t),p=0,t.styles.textAlign){case 1:p+=y.width/2;break;case 2:p+=y.width}g=y.add(p,0,0,-y.height/2+1),this.ctx.save(),this.path([new ci(y.left,y.top),new ci(y.left+y.width,y.top),new ci(y.left+y.width,y.top+y.height),new ci(y.left,y.top+y.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Nr(t.value,g),i.letterSpacing,d),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Xn(t.styles.display,2048))return[3,20];if(null===t.styles.listStyleImage)return[3,19];if(0!==(m=t.styles.listStyleImage).type)return[3,18];v=void 0,B=m.url,A.label=15;case 15:return A.trys.push([15,17,,18]),[4,this.context.cache.match(B)];case 16:return v=A.sent(),this.ctx.drawImage(v,t.bounds.left-(v.width+10),t.bounds.top),[3,18];case 17:return A.sent(),this.context.logger.error("Error loading list-style-image "+B),[3,18];case 18:return[3,20];case 19:e.listValue&&-1!==t.styles.listStyleType&&(E=this.createFontStyle(i)[0],this.ctx.font=E,this.ctx.fillStyle=at(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",y=new o(t.bounds.left,t.bounds.top+et(t.styles.paddingTop,t.bounds.width),t.bounds.width,fn(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Nr(e.listValue,y),i.letterSpacing,fn(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),A.label=20;case 20:return[2]}}))}))},n.prototype.renderStackContent=function(e){return r(this,void 0,void 0,(function(){var t,n,r,i,o,a,s,c,l,u,f,h,d,p,g;return A(this,(function(A){switch(A.label){case 0:return Xn(e.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:A.sent(),t=0,n=e.negativeZIndex,A.label=2;case 2:return t<n.length?(g=n[t],[4,this.renderStack(g)]):[3,5];case 3:A.sent(),A.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:A.sent(),r=0,i=e.nonInlineLevel,A.label=7;case 7:return r<i.length?(g=i[r],[4,this.renderNode(g)]):[3,10];case 8:A.sent(),A.label=9;case 9:return r++,[3,7];case 10:o=0,a=e.nonPositionedFloats,A.label=11;case 11:return o<a.length?(g=a[o],[4,this.renderStack(g)]):[3,14];case 12:A.sent(),A.label=13;case 13:return o++,[3,11];case 14:s=0,c=e.nonPositionedInlineLevel,A.label=15;case 15:return s<c.length?(g=c[s],[4,this.renderStack(g)]):[3,18];case 16:A.sent(),A.label=17;case 17:return s++,[3,15];case 18:l=0,u=e.inlineLevel,A.label=19;case 19:return l<u.length?(g=u[l],[4,this.renderNode(g)]):[3,22];case 20:A.sent(),A.label=21;case 21:return l++,[3,19];case 22:f=0,h=e.zeroOrAutoZIndexOrTransformedOrOpacity,A.label=23;case 23:return f<h.length?(g=h[f],[4,this.renderStack(g)]):[3,26];case 24:A.sent(),A.label=25;case 25:return f++,[3,23];case 26:d=0,p=e.positiveZIndex,A.label=27;case 27:return d<p.length?(g=p[d],[4,this.renderStack(g)]):[3,30];case 28:A.sent(),A.label=29;case 29:return d++,[3,27];case 30:return[2]}}))}))},n.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},n.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},n.prototype.formatPath=function(e){var t=this;e.forEach((function(e,n){var r=fi(e)?e.start:e;0===n?t.ctx.moveTo(r.x,r.y):t.ctx.lineTo(r.x,r.y),fi(e)&&t.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)}))},n.prototype.renderRepeat=function(e,t,n,r){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(n,r),this.ctx.fill(),this.ctx.translate(-n,-r)},n.prototype.resizeImage=function(e,t,n){var r;if(e.width===t&&e.height===n)return e;var A=(null!==(r=this.canvas.ownerDocument)&&void 0!==r?r:document).createElement("canvas");return A.width=Math.max(1,t),A.height=Math.max(1,n),A.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,t,n),A},n.prototype.renderBackgroundImage=function(e){return r(this,void 0,void 0,(function(){var t,n,r,i,o,a;return A(this,(function(s){switch(s.label){case 0:t=e.styles.backgroundImage.length-1,n=function(n){var i,o,a,s,c,l,u,f,h,d,p,g,m,v,B,E,y,C,b,w,T,_,I,S,k,F,x,L,U,N,D;return A(this,(function(A){switch(A.label){case 0:if(0!==n.type)return[3,5];i=void 0,o=n.url,A.label=1;case 1:return A.trys.push([1,3,,4]),[4,r.context.cache.match(o)];case 2:return i=A.sent(),[3,4];case 3:return A.sent(),r.context.logger.error("Error loading background-image "+o),[3,4];case 4:return i&&(a=xi(e,t,[i.width,i.height,i.width/i.height]),E=a[0],_=a[1],I=a[2],b=a[3],w=a[4],v=r.ctx.createPattern(r.resizeImage(i,b,w),"repeat"),r.renderRepeat(E,v,_,I)),[3,6];case 5:1===n.type?(s=xi(e,t,[null,null,null]),E=s[0],_=s[1],I=s[2],b=s[3],w=s[4],c=yt(n.angle,b,w),l=c[0],u=c[1],f=c[2],h=c[3],d=c[4],(p=document.createElement("canvas")).width=b,p.height=w,g=p.getContext("2d"),m=g.createLinearGradient(u,h,f,d),Et(n.stops,l).forEach((function(e){return m.addColorStop(e.stop,at(e.color))})),g.fillStyle=m,g.fillRect(0,0,b,w),b>0&&w>0&&(v=r.ctx.createPattern(p,"repeat"),r.renderRepeat(E,v,_,I))):function(e){return 2===e.type}(n)&&(B=xi(e,t,[null,null,null]),E=B[0],y=B[1],C=B[2],b=B[3],w=B[4],T=0===n.position.length?[qe]:n.position,_=et(T[0],b),I=et(T[T.length-1],w),S=function(e,t,n,r,A){var i=0,o=0;switch(e.size){case 0:0===e.shape?i=o=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-A)):1===e.shape&&(i=Math.min(Math.abs(t),Math.abs(t-r)),o=Math.min(Math.abs(n),Math.abs(n-A)));break;case 2:if(0===e.shape)i=o=Math.min(Ct(t,n),Ct(t,n-A),Ct(t-r,n),Ct(t-r,n-A));else if(1===e.shape){var a=Math.min(Math.abs(n),Math.abs(n-A))/Math.min(Math.abs(t),Math.abs(t-r)),s=bt(r,A,t,n,!0),c=s[0],l=s[1];o=a*(i=Ct(c-t,(l-n)/a))}break;case 1:0===e.shape?i=o=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-A)):1===e.shape&&(i=Math.max(Math.abs(t),Math.abs(t-r)),o=Math.max(Math.abs(n),Math.abs(n-A)));break;case 3:if(0===e.shape)i=o=Math.max(Ct(t,n),Ct(t,n-A),Ct(t-r,n),Ct(t-r,n-A));else if(1===e.shape){a=Math.max(Math.abs(n),Math.abs(n-A))/Math.max(Math.abs(t),Math.abs(t-r));var u=bt(r,A,t,n,!1);c=u[0],l=u[1],o=a*(i=Ct(c-t,(l-n)/a))}}return Array.isArray(e.size)&&(i=et(e.size[0],r),o=2===e.size.length?et(e.size[1],A):i),[i,o]}(n,_,I,b,w),k=S[0],F=S[1],k>0&&F>0&&(x=r.ctx.createRadialGradient(y+_,C+I,0,y+_,C+I,k),Et(n.stops,2*k).forEach((function(e){return x.addColorStop(e.stop,at(e.color))})),r.path(E),r.ctx.fillStyle=x,k!==F?(L=e.bounds.left+.5*e.bounds.width,U=e.bounds.top+.5*e.bounds.height,D=1/(N=F/k),r.ctx.save(),r.ctx.translate(L,U),r.ctx.transform(1,0,0,N,0,0),r.ctx.translate(-L,-U),r.ctx.fillRect(y,D*(C-U)+U,b,w*D),r.ctx.restore()):r.ctx.fill())),A.label=6;case 6:return t--,[2]}}))},r=this,i=0,o=e.styles.backgroundImage.slice(0).reverse(),s.label=1;case 1:return i<o.length?(a=o[i],[5,n(a)]):[3,4];case 2:s.sent(),s.label=3;case 3:return i++,[3,1];case 4:return[2]}}))}))},n.prototype.renderSolidBorder=function(e,t,n){return r(this,void 0,void 0,(function(){return A(this,(function(r){return this.path(_i(n,t)),this.ctx.fillStyle=at(e),this.ctx.fill(),[2]}))}))},n.prototype.renderDoubleBorder=function(e,t,n,i){return r(this,void 0,void 0,(function(){var r,o;return A(this,(function(A){switch(A.label){case 0:return t<3?[4,this.renderSolidBorder(e,n,i)]:[3,2];case 1:return A.sent(),[2];case 2:return r=function(e,t){switch(t){case 0:return Si(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return Si(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return Si(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return Si(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}}(i,n),this.path(r),this.ctx.fillStyle=at(e),this.ctx.fill(),o=function(e,t){switch(t){case 0:return Si(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return Si(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return Si(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return Si(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}}(i,n),this.path(o),this.ctx.fill(),[2]}}))}))},n.prototype.renderNodeBackgroundAndBorders=function(e){return r(this,void 0,void 0,(function(){var t,n,r,i,o,a,s,c,l=this;return A(this,(function(A){switch(A.label){case 0:return this.applyEffects(e.getEffects(2)),t=e.container.styles,n=!ot(t.backgroundColor)||t.backgroundImage.length,r=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],i=Pi(Di(t.backgroundClip,0),e.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(i),this.ctx.clip(),ot(t.backgroundColor)||(this.ctx.fillStyle=at(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:A.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach((function(t){l.ctx.save();var n=pi(e.curves),r=t.inset?0:1e4,A=function(e,t,n,r,A){return e.map((function(e,i){switch(i){case 0:return e.add(t,n);case 1:return e.add(t+r,n);case 2:return e.add(t+r,n+A);case 3:return e.add(t,n+A)}return e}))}(n,-r+(t.inset?1:-1)*t.spread.number,(t.inset?1:-1)*t.spread.number,t.spread.number*(t.inset?-2:2),t.spread.number*(t.inset?-2:2));t.inset?(l.path(n),l.ctx.clip(),l.mask(A)):(l.mask(n),l.ctx.clip(),l.path(A)),l.ctx.shadowOffsetX=t.offsetX.number+r,l.ctx.shadowOffsetY=t.offsetY.number,l.ctx.shadowColor=at(t.color),l.ctx.shadowBlur=t.blur.number,l.ctx.fillStyle=t.inset?at(t.color):"rgba(0,0,0,1)",l.ctx.fill(),l.ctx.restore()})),A.label=2;case 2:o=0,a=0,s=r,A.label=3;case 3:return a<s.length?0!==(c=s[a]).style&&!ot(c.color)&&c.width>0?2!==c.style?[3,5]:[4,this.renderDashedDottedBorder(c.color,c.width,o,e.curves,2)]:[3,11]:[3,13];case 4:return A.sent(),[3,11];case 5:return 3!==c.style?[3,7]:[4,this.renderDashedDottedBorder(c.color,c.width,o,e.curves,3)];case 6:return A.sent(),[3,11];case 7:return 4!==c.style?[3,9]:[4,this.renderDoubleBorder(c.color,c.width,o,e.curves)];case 8:return A.sent(),[3,11];case 9:return[4,this.renderSolidBorder(c.color,o,e.curves)];case 10:A.sent(),A.label=11;case 11:o++,A.label=12;case 12:return a++,[3,3];case 13:return[2]}}))}))},n.prototype.renderDashedDottedBorder=function(e,t,n,i,o){return r(this,void 0,void 0,(function(){var r,a,s,c,l,u,f,h,d,p,g,m,v,B,E,y;return A(this,(function(A){return this.ctx.save(),r=function(e,t){switch(t){case 0:return Ii(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Ii(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Ii(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return Ii(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}}(i,n),a=_i(i,n),2===o&&(this.path(a),this.ctx.clip()),fi(a[0])?(s=a[0].start.x,c=a[0].start.y):(s=a[0].x,c=a[0].y),fi(a[1])?(l=a[1].end.x,u=a[1].end.y):(l=a[1].x,u=a[1].y),f=0===n||2===n?Math.abs(s-l):Math.abs(c-u),this.ctx.beginPath(),3===o?this.formatPath(r):this.formatPath(a.slice(0,2)),h=t<3?3*t:2*t,d=t<3?2*t:t,3===o&&(h=t,d=t),p=!0,f<=2*h?p=!1:f<=2*h+d?(h*=g=f/(2*h+d),d*=g):(m=Math.floor((f+d)/(h+d)),v=(f-m*h)/(m-1),d=(B=(f-(m+1)*h)/m)<=0||Math.abs(d-v)<Math.abs(d-B)?v:B),p&&(3===o?this.ctx.setLineDash([0,h+d]):this.ctx.setLineDash([h,d])),3===o?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=2*t+1.1,this.ctx.strokeStyle=at(e),this.ctx.stroke(),this.ctx.setLineDash([]),2===o&&(fi(a[0])&&(E=a[3],y=a[0],this.ctx.beginPath(),this.formatPath([new ci(E.end.x,E.end.y),new ci(y.start.x,y.start.y)]),this.ctx.stroke()),fi(a[1])&&(E=a[1],y=a[2],this.ctx.beginPath(),this.formatPath([new ci(E.end.x,E.end.y),new ci(y.start.x,y.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]}))}))},n.prototype.render=function(e){return r(this,void 0,void 0,(function(){var t;return A(this,(function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=at(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=function(e){var t=new bi(e,null),n=new Ci(t),r=[];return wi(t,n,n,r),Ti(t.container,r),n}(e),[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}}))}))},n}(Ri),Hi=function(e){return e instanceof tA||e instanceof eA||e instanceof Zr&&"radio"!==e.type&&"checkbox"!==e.type},Pi=function(e,t){switch(e){case 0:return pi(t);case 2:return function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]}(t);case 1:default:return gi(t)}},Ki=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Gi=["-apple-system","system-ui"],$i=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter((function(e){return-1===Gi.indexOf(e)})):e},Vi=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return t(n,e),n.prototype.render=function(e){return r(this,void 0,void 0,(function(){var t,n;return A(this,(function(r){switch(r.label){case 0:return t=xr(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,Wi(t)];case 1:return n=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=at(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},n}(Ri),Wi=function(e){return new Promise((function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}))},ji=function(){function e(e){var t=e.id,n=e.enabled;this.id=t,this.enabled=n,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,i([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,i([this.id,this.getTime()+"ms"],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,i([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,i([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.instances={},e}(),Yi=function(){function e(t,n){var r;this.windowBounds=n,this.instanceName="#"+e.instanceCount++,this.logger=new ji({id:this.instanceName,enabled:t.logging}),this.cache=null!==(r=t.cache)&&void 0!==r?r:new ei(this,t)}return e.instanceCount=1,e}();"undefined"!=typeof window&&ZA.setContext(window);var Xi=function(e,t){return r(void 0,void 0,void 0,(function(){var r,i,s,c,l,u,f,h,d,p,g,m,v,B,E,y,C,b,w,T,_,I,S,k,F,x,L,U,N,D,O,Q,R,M,H,P,K,G;return A(this,(function(A){switch(A.label){case 0:if(!e||"object"!=typeof e)return[2,Promise.reject("Invalid element provided as first argument")];if(!(r=e.ownerDocument))throw new Error("Element is not attached to a Document");if(!(i=r.defaultView))throw new Error("Document is not attached to a Window");return s={allowTaint:null!==(I=t.allowTaint)&&void 0!==I&&I,imageTimeout:null!==(S=t.imageTimeout)&&void 0!==S?S:15e3,proxy:t.proxy,useCORS:null!==(k=t.useCORS)&&void 0!==k&&k},c=n({logging:null===(F=t.logging)||void 0===F||F,cache:t.cache},s),l={windowWidth:null!==(x=t.windowWidth)&&void 0!==x?x:i.innerWidth,windowHeight:null!==(L=t.windowHeight)&&void 0!==L?L:i.innerHeight,scrollX:null!==(U=t.scrollX)&&void 0!==U?U:i.pageXOffset,scrollY:null!==(N=t.scrollY)&&void 0!==N?N:i.pageYOffset},u=new o(l.scrollX,l.scrollY,l.windowWidth,l.windowHeight),f=new Yi(c,u),h=null!==(D=t.foreignObjectRendering)&&void 0!==D&&D,d={allowTaint:null!==(O=t.allowTaint)&&void 0!==O&&O,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:h,copyStyles:h},f.logger.debug("Starting document clone with size "+u.width+"x"+u.height+" scrolled to "+-u.left+","+-u.top),p=new RA(f,e,d),(g=p.clonedReferenceElement)?[4,p.toIFrame(r,u)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=A.sent(),v=mA(g)||function(e){return"HTML"===e.tagName}(g)?function(e){var t=e.body,n=e.documentElement;if(!t||!n)throw new Error("Unable to get document size");var r=Math.max(Math.max(t.scrollWidth,n.scrollWidth),Math.max(t.offsetWidth,n.offsetWidth),Math.max(t.clientWidth,n.clientWidth)),A=Math.max(Math.max(t.scrollHeight,n.scrollHeight),Math.max(t.offsetHeight,n.offsetHeight),Math.max(t.clientHeight,n.clientHeight));return new o(0,0,r,A)}(g.ownerDocument):a(f,g),B=v.width,E=v.height,y=v.left,C=v.top,b=zi(f,g,t.backgroundColor),w={canvas:t.canvas,backgroundColor:b,scale:null!==(R=null!==(Q=t.scale)&&void 0!==Q?Q:i.devicePixelRatio)&&void 0!==R?R:1,x:(null!==(M=t.x)&&void 0!==M?M:0)+y,y:(null!==(H=t.y)&&void 0!==H?H:0)+C,width:null!==(P=t.width)&&void 0!==P?P:Math.ceil(B),height:null!==(K=t.height)&&void 0!==K?K:Math.ceil(E)},h?(f.logger.debug("Document cloned, using foreign object rendering"),[4,new Vi(f,w).render(g)]):[3,3];case 2:return T=A.sent(),[3,5];case 3:return f.logger.debug("Document cloned, element located at "+y+","+C+" with size "+B+"x"+E+" using computed rendering"),f.logger.debug("Starting DOM parsing"),_=oA(f,g),b===_.styles.backgroundColor&&(_.styles.backgroundColor=gt.TRANSPARENT),f.logger.debug("Starting renderer for element at "+w.x+","+w.y+" with size "+w.width+"x"+w.height),[4,new Mi(f,w).render(_)];case 4:T=A.sent(),A.label=5;case 5:return(null===(G=t.removeContainer)||void 0===G||G)&&(RA.destroy(m)||f.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),f.logger.debug("Finished rendering"),[2,T]}}))}))},zi=function(e,t,n){var r=t.ownerDocument,A=r.documentElement?pt(e,getComputedStyle(r.documentElement).backgroundColor):gt.TRANSPARENT,i=r.body?pt(e,getComputedStyle(r.body).backgroundColor):gt.TRANSPARENT,o="string"==typeof n?pt(e,n):null===n?gt.TRANSPARENT:4294967295;return t===r.documentElement?ot(A)?ot(i)?o:i:A:o};return function(e,t){return void 0===t&&(t={}),Xi(e,t)}}()})),Wg=function(e,t){var n=e.cloneNode(!0),r=document.createElement("div");r.appendChild(n);var A=function(){var e,t=[];return xi(e=Qr(document.body.children)).call(e,(function(e,n){t[n]=e.style.display,e.style.display="none"})),t}();document.body.appendChild(r);var i=document.body.style.overflow;document.body.style.overflow="visible",t(n,(function(){r.remove(),function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];xi(e=Qr(document.body.children)).call(e,(function(e,n){void 0!==t[n]&&(e.style.display=t[n])}))}(A),document.body.style.overflow=i}))};function jg(e){Wg(e,(function(e,t){window.print(),t()}))}function Yg(e){Wg(e,(function(e,t){window.scrollTo(0,0),Vg(e,{allowTaint:!0,height:e.clientHeight,width:e.clientWidth,scrollY:0,scrollX:0}).then((function(e){var n,r,A=e.toDataURL("image/jpeg");n=A,(r=document.createElement("a")).style.display="none",r.href=n,r.download="cherry.png",document.body.appendChild(r),r.click(),document.body.removeChild(r),t()}))}))}var Xg={mouseResize:{},getImgPosition:function(){var e=this.img.getBoundingClientRect(),t=this.previewerDom.parentNode.getBoundingClientRect(),n=sd(this.img.style.padding)||0;return{bottom:e.bottom-t.bottom,top:e.top-t.top+1.5*n,height:e.height,width:e.width,right:e.right-t.right,left:e.left-t.left+1.5*n,x:e.x-t.x,y:e.y-t.y}},initBubbleButtons:function(){var e=this.getImgPosition();return{points:{arr:["leftTop","leftBottom","rightTop","rightBottom","leftMiddle","middleBottom","middleTop","rightMiddle"],arrInfo:{leftTop:{name:"20",left:0,top:0},leftBottom:{name:"00",left:0,top:0},rightTop:{name:"22",left:0,top:0},rightBottom:{name:"02",left:0,top:0},leftMiddle:{name:"10",left:0,top:0},middleBottom:{name:"01",left:0,top:0},middleTop:{name:"21",left:0,top:0},rightMiddle:{name:"12",left:0,top:0}}},imgSrc:this.img.src,style:{width:this.img.width,height:this.img.height,left:e.left-1,top:e.top-1,marginTop:0,marginLeft:0},scrollTop:this.previewerDom.scrollTop,position:e}},showBubble:function(e,t,n){this.$isResizing()||(this.img=e,this.previewerDom=n,this.container=t,this.buts=this.initBubbleButtons(),this.drawBubbleButs())},emit:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(e){case"mousedown":return this.resizeBegin(t);case"mouseup":return this.resizeStop(t);case"mousemove":return this.resizeWorking(t);case"scroll":return this.dealScroll(t);case"remove":return this.remove();case"previewUpdate":return this.previewUpdate(t)}},previewUpdate:function(e){this.$isResizing()||(this.remove(),e())},drawBubbleButs:function(){var e,t=this;return this.butsLayout||(this.butsLayout=this.container,this.butsImg=document.createElement("div"),this.butsImg.className="cherry-previewer-img-size-hander__background",this.butsImg.style.backgroundImage="url(".concat(this.buts.imgSrc,")"),this.butsLayout.append(this.butsImg),this.butsPoints={},xi(e=fi(this.buts.points.arr)).call(e,(function(e){var n=t.buts.points.arr[e],r=document.createElement("div");r.className=["cherry-previewer-img-size-hander__points","cherry-previewer-img-size-hander__points-".concat(n)].join(" "),r.dataset.name=n,t.butsLayout.append(r),t.butsPoints["pints-".concat(n)]=r}))),this.updateBubbleButs()},remove:function(){this.butsLayout=!1},updateBubbleButs:function(){var e,t,n=this;this.$updatePointsInfo(),xi(e=fi(this.buts.style)).call(e,(function(e){n.butsLayout.style[e]="".concat(n.buts.style[e],"px")})),xi(t=fi(this.buts.points.arr)).call(t,(function(e){var t=n.buts.points.arr[e];n.butsPoints["pints-".concat(t)].style.top="".concat(n.buts.points.arrInfo[t].top,"px"),n.butsPoints["pints-".concat(t)].style.left="".concat(n.buts.points.arrInfo[t].left,"px")}))},$updatePointsInfo:function(){var e,t=this,n=this.buts.style.width,r=this.buts.style.height,A=this.$getPointsInfo(n,r);xi(e=fi(this.buts.points.arr)).call(e,(function(e){var n=t.buts.points.arr[e];t.buts.points.arrInfo[n].left!==A[n].left&&(t.buts.points.arrInfo[n].left=A[n].left),t.buts.points.arrInfo[n].top!==A[n].top&&(t.buts.points.arrInfo[n].top=A[n].top)}))},$getPointsInfo:function(e,t){return{leftTop:{left:0,top:0},leftBottom:{left:0,top:t},rightTop:{left:e,top:0},rightBottom:{left:e,top:t},leftMiddle:{left:0,top:t/2},middleBottom:{left:e/2,top:t},middleTop:{left:e/2,top:0},rightMiddle:{left:e,top:t/2}}},$isResizing:function(){return this.mouseResize.resize},dealScroll:function(e){var t=this.getImgPosition();this.butsLayout.style.marginTop!==t.top-this.buts.position.top&&(this.butsLayout.style.marginTop="".concat(t.top-this.buts.position.top,"px"),this.buts.style.marginTop="".concat(t.top-this.buts.position.top,"px")),this.butsLayout.style.marginLeft!==t.left-this.buts.position.left&&(this.butsLayout.style.marginLeft="".concat(t.left-this.buts.position.left,"px"),this.buts.style.marginLeft="".concat(t.left-this.buts.position.left,"px"))},initMouse:function(){return{left:0,top:0,resize:!1,name:""}},resizeBegin:function(e){var t=e.target;if(!t.classList.contains("cherry-previewer-img-size-hander__points"))return!1;this.mouseResize.left=e.clientX,this.mouseResize.top=e.clientY,this.mouseResize.resize=!0,this.mouseResize.name=t.getAttribute("data-name"),this.previewerDom.classList.add("doing-resize-img")},resizeStop:function(e,t,n,r){if(!this.$isResizing())return!1;this.img.style.width="".concat(this.buts.style.width,"px"),this.img.style.height="".concat(this.buts.style.height,"px"),this.buts.style.marginTop=0,this.buts.style.marginLeft=0,this.updateBubbleButs(),this.mouseResize.resize=!1,this.previewerDom.classList.remove("doing-resize-img"),this.change()},resizeWorking:function(e,t){if(this.$isResizing()){var n=e.clientX-this.mouseResize.left,r=e.clientY-this.mouseResize.top,A={};switch(this.mouseResize.name){case"leftTop":case"leftBottom":case"leftMiddle":A=this.$getChange(n,r,"x"),this.buts.style.width=this.buts.position.width-A.changeX,"leftMiddle"!==this.mouseResize.name&&(this.buts.style.height=this.buts.position.height-A.changeY);break;case"rightTop":case"rightBottom":case"rightMiddle":A=this.$getChange(n,r,"x"),this.buts.style.width=this.buts.position.width+A.changeX,"rightMiddle"!==this.mouseResize.name&&(this.buts.style.height=this.buts.position.height+A.changeY);break;case"middleTop":A=this.$getChange(n,r,"y"),this.buts.style.height=this.buts.position.height-A.changeY;break;case"middleBottom":A=this.$getChange(n,r,"y"),this.buts.style.height=this.buts.position.height+A.changeY}this.updateBubbleButs(),this.change()}},change:function(){this.emitChange(this.img,{width:this.buts.style.width,height:this.buts.style.height})},bindChange:function(e){this.emitChange=e},$getChange:function(e,t,n){var r={changeX:0,changeY:0};switch(n){case"y":r.changeY=t,r.changeX=t*this.buts.position.width/this.buts.position.height;break;default:r.changeX=e,r.changeY=e*this.buts.position.height/this.buts.position.width}return r}},zg={tableEditor:{info:{},tableCodes:[],editorDom:{}},emit:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};switch(e){case"keyup":return this.$onInputChange(t);case"remove":return this.$remove();case"scroll":case"previewUpdate":return this.$setInputOffset();case"mouseup":return this.$tryRemoveMe(t,n)}},$tryRemoveMe:function(e,t){/textarea/i.test(e.target.tagName)||(this.$remove(),t())},$getTdPosition:function(){var e=this.tableEditor.info.tdNode.getBoundingClientRect(),t=this.previewerDom.parentNode.getBoundingClientRect();return{top:e.top-t.top,height:e.height,width:e.width,left:e.left-t.left,maxHeight:t.height}},$setInputOffset:function(){var e=this.$getTdPosition(),t=this.tableEditor.editorDom.inputDiv,n=t.getBoundingClientRect();n.width!==e.width&&(t.style.width="".concat(e.width,"px")),n.height!==e.height&&(t.style.height="".concat(e.height,"px")),n.top!==e.top&&(t.style.top="".concat(e.top,"px")),n.left!==e.left&&(t.style.left="".concat(e.left,"px")),e.top<0||e.top+e.height>e.maxHeight?t.style.display="none":t.style.display=""},$remove:function(){this.tableEditor={info:{},tableCodes:[],editorDom:{}}},$collectTableCode:function(){var e=[];this.codeMirror.getValue().replace(this.codeBlockReg,(function(e){return e.replace(/\|/g,".")})).replace(this.tableReg,(function(t){var n,r=t.replace(/^\n*/,""),A=((n=(arguments.length<=1?0:arguments.length-1)-2+1)<1||arguments.length<=n?void 0:arguments[n])+t.match(/^\n*/)[0].length;e.push({code:r,offset:A})})),this.tableEditor.tableCodes=e},$collectTableDom:function(){var e,t,n=Qr(this.previewerDom.querySelectorAll("table.cherry-table")),r=this.$getClosestNode(this.td,"TABLE");if(!1===r)return!1;this.tableEditor.info={tableNode:r,tdNode:this.td,trNode:this.td.parentElement,tdIndex:Rc(e=Qr(this.td.parentElement.childNodes)).call(e,this.td),trIndex:Rc(t=Qr(this.td.parentElement.parentElement.childNodes)).call(t,this.td.parentElement),isTHead:"TBODY"!==this.td.parentElement.parentElement.tagName,totalTables:n.length,tableIndex:Rc(n).call(n,r),tableText:r.textContent.replace(/[\s]/g,"")}},$setSelection:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"table",n=this.tableEditor.tableCodes[e],r=this.codeMirror.getValue(),A=this.tableEditor.info,i=yn(r).call(r,0,n.offset).match(/\n/g).length,o=this.$getTdOffset(n.code,A.isTHead,A.trIndex,A.tdIndex),a=o.preLine,s=o.preCh,c=o.plusCh,l=o.currentTd;if("table"===t){var u=i+n.code.match(/\n/g).length,f=n.code.match(/[^\n]+\n*$/)[0].length;this.codeMirror.setSelection({line:i,ch:0},{line:u,ch:f})}else this.codeMirror.setSelection({line:i+a,ch:s},{line:i+a,ch:s+c});this.tableEditor.info.code=l},$getTdOffset:function(e,t,n,r){for(var A=t?0:n+2,i=e.split(/\n/)[A].split(/\|/),o=/^\s*$/.test(i[0]),a=o?r+1:r,s=i[a],c=[],l=0;l<a;l++)c.push(i[l]);return{preLine:A,preCh:o?c.join("|").length+1:c.join("|").length,plusCh:s.length,currentTd:s}},$findTableInEditor:function(){if(this.$collectTableDom(),this.$collectTableCode(),this.tableEditor.info.totalTables!==this.tableEditor.tableCodes.length)return!1;this.$setSelection(this.tableEditor.info.tableIndex,"td")},$initReg:function(){this.tableReg=this.tableReg?this.tableReg:Ru(!0),this.codeBlockReg=this.codeBlockReg?this.codeBlockReg:Mu().reg},showBubble:function(e,t,n,r){this.td=e,this.previewerDom=n,this.container=t,this.codeMirror=r,this.$initReg(),this.$findTableInEditor(),this.$drawEditor()},$isEditing:function(){return this.tableEditor.editing},$drawEditor:function(){var e=document.createElement("div");e.className="cherry-previewer-table-content-hander__input";var t=document.createElement("textarea");e.append(t),this.tableEditor.editorDom.inputDiv=e,this.tableEditor.editorDom.inputDom=t,this.$updateEditorPosition(),this.container.append(this.tableEditor.editorDom.inputDiv),this.tableEditor.editorDom.inputDom.value=this.tableEditor.info.code.replace(/<br>/g,"\n"),this.tableEditor.editorDom.inputDom.focus()},$onInputChange:function(e){this.codeMirror.replaceSelection(e.target.value.replace(/\n/g,"<br>"),"around")},$updateEditorPosition:function(){this.$setInputOffset();var e=getComputedStyle(this.tableEditor.info.tdNode);this.tableEditor.editorDom.inputDom.style.textAlign=e.textAlign||"left",this.tableEditor.editorDom.inputDom.style.fontSize=e.fontSize||"16px",this.tableEditor.editorDom.inputDom.style.fontFamily=e.fontFamily,this.tableEditor.editorDom.inputDom.style.lineHeight=e.lineHeight,this.tableEditor.editorDom.inputDom.style.padding=e.padding,/left/.test(e.textAlign)&&(this.tableEditor.editorDom.inputDom.style.paddingRight="0px"),/right/.test(e.textAlign)&&(this.tableEditor.editorDom.inputDom.style.paddingLeft="0px"),/center/.test(e.textAlign)&&(this.tableEditor.editorDom.inputDom.style.paddingLeft="0px",this.tableEditor.editorDom.inputDom.style.paddingRight="0px"),this.tableEditor.editorDom.inputDom.style.paddingBottom="0px"},$getClosestNode:function(e,t){return e.tagName===t?e:"BODY"!==e.parentNode.tagName&&this.$getClosestNode(e.parentNode,t)}};function qg(e){function t(t){t.clipboardData.setData("text/html",e),t.clipboardData.setData("text/plain",e),t.preventDefault()}document.addEventListener("copy",t),document.execCommand("copy"),document.removeEventListener("copy",t)}var Jg=function(){function e(t){Pi(this,e),this.previewer=t,this.editor=t.editor,this.previewerDom=this.previewer.getDom(),this.bubbleHandler={emit:function(){}},this.init()}return Gi(e,[{key:"init",value:function(){var e,t=this;this.previewerDom.addEventListener("click",go(e=this.$onClick).call(e,this)),document.addEventListener("mousedown",(function(e){t.bubbleHandler.emit("mousedown",e)})),document.addEventListener("mouseup",(function(e){t.bubbleHandler.emit("mouseup",e,(function(){t.$removeAllPreviewerBubbles()}))})),document.addEventListener("mousemove",(function(e){t.bubbleHandler.emit("mousemove",e)})),document.addEventListener("keyup",(function(e){t.bubbleHandler.emit("keyup",e)})),this.previewerDom.addEventListener("scroll",(function(e){t.bubbleHandler.emit("scroll",e)})),$g.on(this.previewer.instanceId,$g.Events.previewerClose,(function(){t.$removeAllPreviewerBubbles()})),this.previewer.options.afterUpdateCallBack.push((function(){t.bubbleHandler.emit("previewUpdate",(function(){t.$removeAllPreviewerBubbles()}))}))}},{key:"$onClick",value:function(e){var t=e.target;this.$dealCopyCodeBlock(e);var n=this.previewer.$cherry.getStatus();if("hide"!==n.editor){if(this.$removeAllPreviewerBubbles(),void 0!==t.tagName)switch(t.tagName){case"IMG":this.bubbleHandler=this.$showImgPreviewerBubbles(t);break;case"TD":case"TH":this.bubbleHandler=this.$showTablePreviewerBubbles(t)}}else"show"===n.previewer&&this.previewer.$cherry.options.callback.onClickPreview&&this.previewer.$cherry.options.callback.onClickPreview(e)}},{key:"$dealCopyCodeBlock",value:function(e){var t,n=e.target;if("cherry-copy-code-block"===n.className||"cherry-copy-code-block"===(null===(t=n.parentNode)||void 0===t?void 0:t.className)){var r="cherry-copy-code-block"===n.className?n.parentNode:n.parentNode.parentNode,A=r.innerText,i=this.previewer.$cherry.options.callback.onCopyCode(e,A);if(!1===i)return!1;var o=r.querySelector("i.ch-icon-copy");o&&(o.className=o.className.replace("copy","ok"),To((function(){o.className=o.className.replace("ok","copy")}),1500)),qg(i)}}},{key:"$removeAllPreviewerBubbles",value:function(){this.bubble&&(this.bubble.remove(),this.bubbleHandler.emit("remove"),this.bubble=null,this.bubbleHandler={emit:function(){}})}},{key:"$showTablePreviewerBubbles",value:function(e){return this.$createPreviewerBubbles("table-content-hander"),zg.showBubble(e,this.bubble,this.previewerDom,this.editor.editor),zg}},{key:"$showImgPreviewerBubbles",value:function(e){var t;this.$createPreviewerBubbles();var n=Qr(this.previewerDom.querySelectorAll("img"));return this.totalImgs=n.length,this.imgIndex=Rc(n).call(n,e),this.beginChangeImgValue(e)?(Xg.showBubble(e,this.bubble,this.previewerDom),Xg.bindChange(go(t=this.changeImgValue).call(t,this)),Xg):{emit:function(){}}}},{key:"beginChangeImgValue",value:function(e){var t,n=this.editor.editor.getValue(),r=e.getAttribute("src"),A=/!\[[^\n]*?\](\([^)]+\)|\[[^\]]+\])/g,i=n.match(A),o=i[this.imgIndex]?Ic(t=i[this.imgIndex].replace(/^!\[.*?\]\((.*?)\)/,"$1")).call(t):"";if(i.length===this.totalImgs||r===o){for(var a,s=this.editor.editor.getSearchCursor(A),c=0;c<=this.imgIndex;c++){var l,u;a=null!==(l=null===(u=s.findNext())||void 0===u?void 0:u[0])&&void 0!==l&&l}var f=s.from();if(!f)return!1;var h=f.line,d=/^!\[.*?((?:#center|#right|#left|#float-right|#float-left|#border|#B|#shadow|#S|#radius|#R)+).*?\].*$/;this.imgAppend=!!d.test(a)&&a.replace(d,"$1");var p=f.ch+a.replace(/^(!\[[^#\]]*).*$/,"$1").length,g=p+a.replace(/^(!\[[^#\]]*)([^\]]*?)\].*$/,"$2").length;return this.editor.editor.setSelection({line:h,ch:p},{line:h,ch:g}),!0}return!1}},{key:"changeImgValue",value:function(e,t){var n,r,A=this.imgAppend?" ".concat(this.imgAppend):"";this.editor.editor.replaceSelection(uo(n=uo(r="#".concat(Math.round(t.width),"px #")).call(r,Math.round(t.height),"px")).call(n,A),"around")}},{key:"$createPreviewerBubbles",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"img-size-hander";this.bubble||(this.bubble=document.createElement("div"),this.bubble.className="cherry-previewer-".concat(e),this.previewerDom.after(this.bubble))}},{key:"$showBorderBubbles",value:function(){}},{key:"$showBtnBubbles",value:function(){}}]),e}(),Zg=Q.setInterval,em=function(){function e(t,n){Pi(this,e),so(this,"options",{loadingImgPath:"",maxNumPerTime:2,noLoadImgNum:5,autoLoadImgNum:5,maxTryTimesPerSrc:2,beforeLoadOneImgCallback:function(e){},failLoadOneImgCallback:function(e){},afterLoadOneImgCallback:function(e){},afterLoadAllImgCallback:function(){}}),pc(this.options,t),this.previewer=n,this.srcLoadedList=[],this.srcFailLoadedList={},this.srcLoadingList=[],this.srcList=[],this.loadingImgNum=0,this.lastLoadAllNum=0,this.previewerDom=this.previewer.getDomContainer()}return Gi(e,[{key:"isLoaded",value:function(e){var t;return fp(t=this.srcLoadedList).call(t,e)}},{key:"isLoading",value:function(e){var t;return fp(t=this.srcLoadingList).call(t,e)}},{key:"loadFailed",value:function(e){this.srcFailLoadedList[e]=this.srcFailLoadedList[e]?this.srcFailLoadedList[e]+1:1}},{key:"isFailLoadedMax",value:function(e){return this.srcFailLoadedList[e]&&this.srcFailLoadedList[e]>this.options.maxTryTimesPerSrc}},{key:"isLoadedAllDone",value:function(){var e=this.previewerDom.querySelectorAll("img[data-src]"),t=this.srcLoadedList.length;return e.length<=0&&this.lastLoadAllNum<t&&(this.lastLoadAllNum=t,this.options.afterLoadAllImgCallback(),!0)}},{key:"loadOneImg",value:function(){for(var e=this,t=this.previewerDom.querySelectorAll("img[data-src]"),n=this.previewerDom.getBoundingClientRect().height+100,r=this.options.autoLoadImgNum,A=function(A){var i=t[A],o=i.getBoundingClientRect(),a=o.top>0&&o.top<n,s=e.srcList.length<=r;if(!a&&!s)return"continue";var c=i.getAttribute("data-src");if(!c)return"continue";if((e.isLoaded(c)||e.isFailLoadedMax(c))&&(i.setAttribute("src",c),i.removeAttribute("data-src")),e.isLoading(c))return"continue";if(e.loadingImgNum>e.options.maxNumPerTime)return{v:!1};var l,u=e.options.beforeLoadOneImgCallback(i);if(void 0!==u&&!u)return e.loadFailed(c),"continue";c=null!==(l=i.getAttribute("data-src"))&&void 0!==l?l:c,e.loadingImgNum+=1,e.srcList.push(c),e.srcLoadingList.push(c),e.tryLoadOneImg(c,(function(){var t,n;i.setAttribute("src",c),i.removeAttribute("data-src"),e.srcLoadedList.push(c),e.loadingImgNum-=1,dl(t=e.srcLoadingList).call(t,Rc(n=e.srcLoadingList).call(n,c),1),e.options.afterLoadOneImgCallback(i),e.loadOneImg()}),(function(){var t,n;e.loadFailed(c),e.loadingImgNum-=1,dl(t=e.srcLoadingList).call(t,Rc(n=e.srcLoadingList).call(n,c),1),e.options.failLoadOneImgCallback(i),e.loadOneImg()}))},i=0;i<t.length;i++){var o=A(i);if("continue"!==o&&"object"===no(o))return o.v}return!1}},{key:"tryLoadOneImg",value:function(e,t,n){var r=document.createElement("img");r.onload=function(){t(),r.remove()},r.onerror=function(){n(),r.remove()},r.setAttribute("src",e)}},{key:"doLazyLoad",value:function(){var e=this;if(!this.isRunning){this.isRunning=!0;var t=this.options.maxNumPerTime,n=function n(){e.loadOneImg();for(var r=1;r<t;r++)e.loadOneImg();To(n,200)};n(),To(n,200),Zg((function(){e.isLoadedAllDone()}),1e3)}}},{key:"changeDataSrc2Src",value:function(e){var t=this;return e.replace(/<img ([^>]*?)data-src="([^"]+)"([^>]*?)>/g,(function(e,n,r,A){var i,o;return uo(i=uo(o="<img ".concat(t.$removeSrc(n),' src="')).call(o,r,'" ')).call(i,t.$removeSrc(A),">").replace(/ {2,}/g," ")}))}},{key:"changeLoadedDataSrc2Src",value:function(e){var t=this;return e.replace(/<img ([^>]*?)data-src="([^"]+)"([^>]*?)>/g,(function(e,n,r,A){var i,o;return t.isLoaded(r)?uo(i=uo(o="<img ".concat(t.$removeSrc(n),' src="')).call(o,r,'" ')).call(i,t.$removeSrc(A),">").replace(/ {2,}/g," "):e}))}},{key:"$removeSrc",value:function(e){return" ".concat(e).replace(/^(.*?) src=".*?"(.*?$)/,"$1$2")}},{key:"changeSrc2DataSrc",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.options.loadingImgPath,A=this.options.noLoadImgNum,i=0;return e.replace(/<img ([^>]*?)src="([^"]+)"([^>]*?)>/g,(function(e,o,a,s){var c,l;if(!1===n){if(t.isLoaded(a)||/data-src="/.test(e)||!/ src="/.test(e))return e;if((i+=1)<A||A<0)return e;var u,f,h;if(r)return uo(u=uo(f=uo(h="<img ".concat(o,'src="')).call(h,r,'" data-src="')).call(f,a,'"')).call(u,s,">")}return uo(c=uo(l="<img ".concat(o,'data-src="')).call(l,a,'"')).call(c,s,">")}))}}]),e}(),tm=function(){},nm=function(){function e(t){Pi(this,e),so(this,"applyingDomChanges",!1),so(this,"syncScrollLockTimer",0),so(this,"isMobilePreview",!1),this.options={previewerDom:document.createElement("div"),virtualDragLineDom:document.createElement("div"),editorMaskDom:document.createElement("div"),previewerMaskDom:document.createElement("div"),minBlockPercentage:.2,value:"",enablePreviewerBubble:!0,afterUpdateCallBack:[],isPreviewOnly:!1,previewerCache:{html:"",htmlChanged:!1,layout:{}},lazyLoadImg:{loadingImgPath:"",maxNumPerTime:2,noLoadImgNum:5,autoLoadImgNum:5,maxTryTimesPerSrc:2,beforeLoadOneImgCallback:function(e){},failLoadOneImgCallback:function(e){},afterLoadOneImgCallback:function(e){},afterLoadAllImgCallback:function(){}}},pc(this.options,t),this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.getInstanceId(),this.animation={}}return Gi(e,[{key:"init",value:function(e){this.disableScrollListener=!1,this.bindScroll(),this.editor=e,this.bindDrag(),this.$initPreviewerBubble(),this.lazyLoadImg=new em(this.options.lazyLoadImg,this),this.lazyLoadImg.doLazyLoad()}},{key:"$initPreviewerBubble",value:function(){this.options.enablePreviewerBubble&&(this.previewerBubble=new Jg(this))}},{key:"getDomContainer",value:function(){return this.isMobilePreview?this.options.previewerDom.querySelector(".cherry-mobile-previewer-content"):this.options.previewerDom}},{key:"getDom",value:function(){return this.options.previewerDom}},{key:"getValue",value:function(){var e,t,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r="";if(r=this.isPreviewerHidden()?this.options.previewerCache.html:this.getDomContainer().innerHTML,r=this.lazyLoadImg.changeDataSrc2Src(r),!n||!this.$cherry.wrapperDom)return r;var A=this.$cherry.wrapperDom.getAttribute("data-inline-code-theme"),i=this.$cherry.wrapperDom.getAttribute("data-code-block-theme");return uo(e=uo(t='<div data-inline-code-theme="'.concat(A,'" data-code-block-theme="')).call(t,i,'">')).call(e,r,"</div>")}},{key:"isPreviewerHidden",value:function(){return this.options.previewerDom.classList.contains("cherry-previewer--hidden")}},{key:"calculateRealLayout",value:function(e){var t=+(e/(this.editor.options.editorDom.getBoundingClientRect().width+this.options.previewerDom.getBoundingClientRect().width)).toFixed(3);t<this.options.minBlockPercentage?t=+this.options.minBlockPercentage.toFixed(3):t>1-this.options.minBlockPercentage&&(t=+(1-this.options.minBlockPercentage).toFixed(3));var n=+(1-t).toFixed(3);return{editorPercentage:"".concat(100*t,"%"),previewerPercentage:"".concat(100*n,"%")}}},{key:"setRealLayout",value:function(e,t){var n=e,r=t;n&&r||(n="50%",r="50%"),this.editor.options.editorDom.style.width=n,this.options.previewerDom.style.width=r,this.syncVirtualLayoutFromReal()}},{key:"syncVirtualLayoutFromReal",value:function(){var e=this.editor.options.editorDom.getBoundingClientRect(),t=this.options.previewerDom.getBoundingClientRect(),n=e.height,r=this.editor.options.editorDom.offsetTop,A=e.left,i=e.width,o=t.left?t.left-A:0,a=t.width||0,s=this.options,c=s.editorMaskDom,l=s.previewerMaskDom,u=s.virtualDragLineDom;u.style.top="".concat(r,"px"),u.style.left="".concat(o,"px"),u.style.bottom="0px",c.style.height="".concat(n,"px"),c.style.top="".concat(r,"px"),c.style.left="0px",c.style.width="".concat(i,"px"),l.style.height="".concat(n,"px"),l.style.top="".concat(r,"px"),l.style.left="".concat(o,"px"),l.style.width="".concat(a,"px")}},{key:"calculateVirtualLayout",value:function(e,t){var n=this.editor.options.editorDom.getBoundingClientRect().width+this.options.previewerDom.getBoundingClientRect().width,r=e.toFixed(0),A=t-e;A<n*this.options.minBlockPercentage?A=+(n*this.options.minBlockPercentage).toFixed(0):A>n*(1-this.options.minBlockPercentage)&&(A=+(n*(1-this.options.minBlockPercentage)).toFixed(0));var i=n-A;return{startWidth:jc(r,10),leftWidth:A,rightWidth:i}}},{key:"setVirtualLayout",value:function(e,t,n){var r=this.options,A=r.editorMaskDom,i=r.previewerMaskDom,o=r.virtualDragLineDom;A.style.left="".concat(0,"px"),A.style.width="".concat(t,"px"),o.style.left="".concat(0+t,"px"),i.style.left="".concat(0+t,"px"),i.style.width="".concat(n,"px")}},{key:"bindDrag",value:function(){var e,t=this,n=function(e){e&&e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():window.event.returnValue=!1;var n=t.editor.options.editorDom.getBoundingClientRect().left,r=e.clientX,A=t.calculateVirtualLayout(n,r);return t.setVirtualLayout(A.startWidth,A.leftWidth,A.rightWidth),!1},r=function e(r){r&&r.stopPropagation?r.stopPropagation():r.cancelBubble=!0,r.preventDefault?r.preventDefault():window.event.returnValue=!1;var A=t.editor.options.editorDom.getBoundingClientRect().left,i=r.clientX,o=t.calculateRealLayout(i-A);return t.setRealLayout(o.editorPercentage,o.previewerPercentage),t.editor.options.editorDom.classList.remove("no-select"),t.options.previewerDom.classList.remove("no-select"),t.options.editorMaskDom.classList.remove("cherry-editor-mask--show"),t.options.previewerMaskDom.classList.remove("cherry-previewer-mask--show"),t.options.virtualDragLineDom.classList.remove("cherry-drag--show"),t.editor.editor.refresh(),Zc(document,"mousemove",n,!1),Zc(document,"mouseup",e,!1),!1};Jc(this.options.virtualDragLineDom,"mousedown",(function(e){e&&e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():window.event.returnValue=!1,t.syncVirtualLayoutFromReal();var A=t.editor.options.editorDom.getBoundingClientRect().left,i=e.clientX,o=t.calculateVirtualLayout(A,i);return t.setVirtualLayout(o.startWidth,o.leftWidth,o.rightWidth),t.options.virtualDragLineDom.classList.contains("cherry-drag--show")||(t.options.virtualDragLineDom.classList.add("cherry-drag--show"),t.options.editorMaskDom.classList.add("cherry-editor-mask--show"),t.options.previewerMaskDom.classList.add("cherry-previewer-mask--show"),t.options.previewerDom.classList.add("no-select"),t.editor.options.editorDom.classList.add("no-select"),Jc(document,"mousemove",n,!1),Jc(document,"mouseup",r,!1)),!1}),!1),Jc(window,"resize",go(e=this.syncVirtualLayoutFromReal).call(e,this),!1),this.setRealLayout()}},{key:"bindScroll",value:function(){var e=this,t=this.getDomContainer();tm=function(){if(e.applyingDomChanges)el.log(new Date,"sync scroll locked");else if(e.disableScrollListener)e.disableScrollListener=!1;else if(t.scrollTop<=0)e.editor.scrollToLineNum(0,0,1);else if(t.scrollTop+t.offsetHeight>t.scrollHeight)e.editor.scrollToLineNum(null);else{for(var n,r=t.getBoundingClientRect(),A={x:r.left+r.width/2,y:r.top+1},i=function(e,t){if("function"==typeof document.elementsFromPoint)return document.elementsFromPoint(e,t);if("function"==typeof document.msElementsFromPoint){var n=document.msElementsFromPoint(e,t);return null!==n?Qr(n):n}var r,A=[],i=[];do{var o=document.elementFromPoint(e,t);r!==o?(r=o,A.push(r),i.push(r.style.pointerEvents),r.style.pointerEvents="none"):r=null}while(r);return xi(A).call(A,(function(e,t){e.style.pointerEvents=i[t]})),A}(A.x,A.y),o=0;o<i.length;o++)if(t.contains(i[o])){n=i[o];break}if(n&&n!==t){for(var a=n.closest("[data-sign]");a&&a.parentElement&&a.parentElement!==t;)a=a.parentElement.closest("[data-sign]");if(a){for(var s=0,c=a;c;)s+=+c.getAttribute("data-lines"),c=c.previousElementSibling;var l=getComputedStyle(a),u=sd(l.marginTop),f=sd(l.marginBottom),h=a.getBoundingClientRect(),d=h.height+u+f,p=h.y-u-r.y,g=+a.getAttribute("data-lines"),m=100*Math.abs(p)/d/100;return e.editor.scrollToLineNum(s-g,g,m)}}}},Jc(t,"scroll",tm,!1),Jc(t,"wheel",(function(){e.disableScrollListener=!1,cancelAnimationFrame(e.animation.timer),e.animation.timer=0}),!1)}},{key:"removeScroll",value:function(){Zc(this.getDomContainer(),"scroll",tm,!1)}},{key:"$html2H",value:function(e){if(void 0===e)return ag("span",{},[]);if(!e.tagName)return e.textContent;var t=e.tagName,n="true"===e.getAttribute("data-cm-atomic"),r=this.$getAttrsForH(e.attributes),A=[];if(!n&&e.childNodes&&e.childNodes.length>0)for(var i=0;i<e.childNodes.length;i++)A.push(this.$html2H(e.childNodes[i]));return ag(t,r,A)}},{key:"$getAttrsForH",value:function(e){if(!e)return{};for(var t={dataset:{}},n=0;n<e.length;n++){var r,A=e[n].name,i=e[n].value;if(/^(width|height)$/i.test(A)&&isNaN(i))t.style=t.style?t.style:[],t.style.push(uo(r="".concat(A,":")).call(r,i));else/^(class|id|href|rel|target|src|title|controls|align|width|height|style)$/i.test(A)?"style"===(A="class"===A?"className":A)?(t.style=t.style?t.style:[],t.style.push(i)):t[A]=i:("colspan"===A?A="colSpan":"rowspan"===A&&(A="rowSpan"),/^data-/i.test(A)?A=A.replace(/^data-/i,""):t[A]=i,t.dataset[A]=i)}return t.style&&(t.style={cssText:t.style.join(";")}),t}},{key:"$updateDom",value:function(e,t){var n=wg(this.$html2H(t),this.$html2H(e));return Kg(t,n)}},{key:"$testChild",value:function(e){return!e.parentNode||(!!e.parentNode.classList.contains("cherry-previewer")||!e.parentNode.getAttribute("data-sign")&&this.$testChild(e.parentNode))}},{key:"_testMaxIndex",value:function(e,t){if(!t)return!1;for(var n=0;n<t.length;n++)if(e<=t[n])return!0;return!1}},{key:"$getSignData",value:function(e){for(var t=e.querySelectorAll("[data-sign]"),n={list:[],signs:{}},r=0;r<t.length;r++)if(this.$testChild(t[r])){var A=t[r].getAttribute("data-sign");n.list.push({sign:A,dom:t[r]}),n.signs[A]||(n.signs[A]=[]),n.signs[A].push(r)}return n}},{key:"_hasNewSign",value:function(e,t,n){var r;return e.length>0&&(xi(e).call(e,(function(e,A){var i;yn(i=e.sign).call(i,0,12)===yn(t).call(t,0,12)&&A>n&&(r={index:A>n?A:n,sign:t})})),r)}},{key:"$dealWithMyersDiffResult",value:function(e,t,n,r){var A=this;xi(e).call(e,(function(e){switch(n[e.newIndex].dom&&(n[e.newIndex].dom.innerHTML=A.lazyLoadImg.changeLoadedDataSrc2Src(n[e.newIndex].dom.innerHTML)),e.type){case"delete":r.removeChild(t[e.oldIndex].dom);break;case"insert":t[e.oldIndex]?r.insertBefore(n[e.newIndex].dom,t[e.oldIndex].dom):r.appendChild(n[e.newIndex].dom);break;case"update":try{if(n[e.newIndex].dom.querySelector("svg"))throw new Error;A.$updateDom(n[e.newIndex].dom,t[e.oldIndex].dom)}catch(A){r.insertBefore(n[e.newIndex].dom,t[e.oldIndex].dom),r.removeChild(t[e.oldIndex].dom)}}}))}},{key:"$dealUpdate",value:function(e,t,n){if(n.list!==t.list)if(n.list.length&&t.list.length){var r=new Gg(n.list,t.list,(function(e,t){return e[t].sign})).doDiff();el.log(r),this.$dealWithMyersDiffResult(r,t.list,n.list,e)}else if(n.list.length&&!t.list.length){var A;el.log("add all"),xi(A=n.list).call(A,(function(t){e.appendChild(t.dom)}))}else if(!n.list.length&&t.list.length){var i;el.log("delete all"),xi(i=t.list).call(i,(function(t){e.removeChild(t.dom)}))}}},{key:"update",value:function(e){var t=this,n=this.lazyLoadImg.changeSrc2DataSrc(e);if(this.isPreviewerHidden())this.doHtmlCache(n);else{window.clearTimeout(this.syncScrollLockTimer),this.applyingDomChanges=!0;var r=document.createElement("div"),A=this.getDomContainer();r.innerHTML=this.lazyLoadImg.changeSrc2DataSrc(e,!0);var i=this.$getSignData(r),o=this.$getSignData(A);try{this.$dealUpdate(A,o,i),this.afterUpdate()}finally{this.syncScrollLockTimer=To((function(){t.applyingDomChanges=!1}),50)}}}},{key:"$dealEditAndPreviewOnly",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n={editorPercentage:"0%",previewerPercentage:"100%"};t&&(n={editorPercentage:"100%",previewerPercentage:"0%"});var r=this.editor.options.editorDom.getBoundingClientRect().width,A=this.calculateRealLayout(r);this.options.previewerCache.layout=A,this.setRealLayout(n.editorPercentage,n.previewerPercentage),this.options.virtualDragLineDom.classList.add("cherry-drag--hidden");var i=this.options.previewerDom,o=this.editor.options.editorDom;t?(i.classList.add("cherry-previewer--hidden"),o.classList.add("cherry-editor--full"),i.classList.remove("cherry-preview--full"),o.classList.remove("cherry-editor--hidden")):(i.classList.add("cherry-preview--full"),o.classList.add("cherry-editor--hidden"),i.classList.remove("cherry-previewer--hidden"),o.classList.remove("cherry-editor--full")),To((function(){return e.editor.editor.refresh()}),0)}},{key:"previewOnly",value:function(){this.$dealEditAndPreviewOnly(!1),this.options.previewerCache.htmlChanged&&this.update(this.options.previewerCache.html),this.cleanHtmlCache(),$g.emit(this.instanceId,$g.Events.previewerOpen),$g.emit(this.instanceId,$g.Events.editorClose)}},{key:"editOnly",value:function(){this.$dealEditAndPreviewOnly(!0),this.cleanHtmlCache(),$g.emit(this.instanceId,$g.Events.previewerClose),$g.emit(this.instanceId,$g.Events.editorOpen)}},{key:"recoverPreviewer",value:function(){var e=this;if(this.options.previewerDom.classList.remove("cherry-previewer--hidden"),this.options.virtualDragLineDom.classList.remove("cherry-drag--hidden"),this.editor.options.editorDom.classList.remove("cherry-editor--full"),this.options.previewerCache.layout!=={}){var t=this.options.previewerCache.layout;this.setRealLayout(t.editorPercentage,t.previewerPercentage)}this.options.previewerCache.htmlChanged&&this.update(this.options.previewerCache.html),this.cleanHtmlCache(),$g.emit(this.instanceId,$g.Events.previewerOpen),$g.emit(this.instanceId,$g.Events.editorOpen),To((function(){return e.editor.editor.refresh()}),0)}},{key:"doHtmlCache",value:function(e){this.options.previewerCache.html=e,this.options.previewerCache.htmlChanged=!0}},{key:"cleanHtmlCache",value:function(){this.options.previewerCache.html="",this.options.previewerCache.htmlChanged=!1,this.options.previewerCache.layout={}}},{key:"afterUpdate",value:function(){var e;Cl(e=this.options.afterUpdateCallBack).call(e,(function(e){return e()}))}},{key:"registerAfterUpdate",value:function(e){if(ci(e)){var t;this.options.afterUpdateCallBack=uo(t=this.options.afterUpdateCallBack).call(t,e)}else{if(!e)throw new Error("[markdown error]: Previewer registerAfterUpdate params are undefined");this.options.afterUpdateCallBack.push(e)}}},{key:"$getTopByLineNum",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.getDomContainer();if(null===e)return n.scrollHeight;for(var r="number"==typeof e?e:jc(e,10),A=n.querySelectorAll("[data-sign]"),i=0,o=n.offsetTop,a=0;a<A.length;a++)if(A[a].parentNode===n){var s=jc(A[a].getAttribute("data-lines"),10);if(!(i+s<r)){var c=Cd(A[a]),l=c.height,u=c.offsetTop,f=u-o,h=f+l*t;if(s>1){var d=s-Math.abs(r-(i+s))-1,p=d/s*l,g=l/s;h=f+p+g*t}return h}i+=s}}},{key:"scrollToLineNumWithOffset",value:function(e,t){var n=this.$getTopByLineNum(e)-t;this.$scrollAnimation(n)}},{key:"$scrollAnimation",value:function(e){var t=this;if(this.animation.destinationTop=e,!this.animation.timer){this.animation.timer=requestAnimationFrame((function e(){var n=t.getDomContainer(),r=n.scrollTop,A=t.animation.destinationTop-r,i=Math.ceil(Math.min(Math.abs(A),Math.max(1,Math.abs(A)/(100/16.7))));if(0===A||r>=n.scrollHeight||i>Math.abs(A))return cancelAnimationFrame(t.animation.timer),void(t.animation.timer=0);t.disableScrollListener=!0,t.getDomContainer().scrollTo(null,r+A/Math.abs(A)*i),t.animation.timer=requestAnimationFrame(e)}))}}},{key:"scrollToLineNum",value:function(e,t){var n=this.$getTopByLineNum(e,t);this.$scrollAnimation(n)}},{key:"export",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pdf";"pdf"===e?jg(this.getDomContainer()):Yg(this.getDomContainer())}}]),e}(),rm=navigator.userAgent,Am=navigator.platform,im=(/gecko\/\d/i.test(rm),/MSIE \d/.test(rm)),om=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(rm),am=/Edge\/(\d+)/.exec(rm),sm=((im||om||am)&&(im?document.documentMode:(am||om)[1]),!am&&/WebKit\//.test(rm)),cm=(sm&&/Qt\/\d+\.\d+/.test(rm),!am&&/Chrome\//.test(rm),/Opera\//.test(rm)),lm=(/Apple Computer/.test(navigator.vendor),/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(rm),/PhantomJS/.test(rm),!am&&/AppleWebKit/.test(rm)&&/Mobile\/\w+/.test(rm)),um=/Android/.test(rm),fm=(lm||um||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(rm),lm||/Mac/.test(Am)),hm=(/\bCrOS\b/.test(rm),/win/i.test(Am),cm&&rm.match(/Version\/(\d*\.\d*)/));hm&&(hm=Number(hm[1])),hm&&hm>=15&&(cm=!1,sm=!0);var dm={zh_CN:{bold:"加粗",code:"代码",graph:"画图",h1:"一级标题",h2:"二级标题",h3:"三级标题",h4:"四级标题",h5:"五级标题",header:"标题",insert:"插入",italic:"斜体",list:"列表",quickTable:"表格",quote:"引用",size:"大小",color:"文字颜色&背景",strikethrough:"删除线",sub:"下标",sup:"上标",togglePreview:"预览",fullScreen:"全屏",image:"图片",audio:"音频",video:"视频",link:"超链接",hr:"分隔线",br:"换行",toc:"目录",pdf:"pdf",word:"word",table:"表格","line-table":"折线表格","bar-table":"柱状表格",formula:"公式",insertFormula:"公式",insertFlow:"流程图",insertSeq:"时序图",insertState:"状态图",insertClass:"类图",insertPie:"饼图",insertGantt:"甘特图",checklist:"清单",ol:"有序列表",ul:"无序列表",undo:"撤销",redo:"恢复",previewClose:"关闭预览",codeTheme:"代码主题",switchModel:"模式切换",switchPreview:"预览",switchEdit:"返回编辑",classicBr:"经典换行",normalBr:"常规换行",settings:"设置",mobilePreview:"移动端预览",copy:"复制内容",export:"导出"}};function pm(e,t){return e.style.left="".concat(t.left+t.width/2,"px"),e.style.top="".concat(t.top+t.height,"px"),e}function gm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"absolute",n=e.getBoundingClientRect();return"fixed"===t?n:{left:e.offsetLeft,top:e.offsetTop,width:n.width,height:n.height}}var mm=function(){function e(t,n,r,A,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"absolute";Pi(this,e),this.name=n,this.dom=null,this.visible=!1,this.context=t,this.positionModel=o,this.init(n,r,A,i)}return Gi(e,[{key:"init",value:function(e,t,n,r){var A=this,i=function(e,t,n){var r=wd("div",t,{name:e});return pm(r,n),r}(e,"cherry-dropdown",t);i.style.position=this.positionModel;var o="function"==typeof(null==r?void 0:r.click)?r.click:this.onClick;xi(n).call(n,(function(e){var t=wd("span","cherry-dropdown-item");if(e.noIcon)t.innerHTML="".concat(e.name);else{var n=wd("i","ch-icon ch-icon-".concat(e.iconName));t.appendChild(n),t.innerHTML+=dm.zh_CN[e.name]||Ff(e.name)}t.addEventListener("click",go(o).call(o,A.context,e.onclick,e.async),!1),i.appendChild(t)})),i.addEventListener("EditorHideToolbarSubMenu",(function(){A.hide()})),this.dom=i}},{key:"show",value:function(e){e&&pm(this.dom,e),this.dom.style.display="block",this.visible=!0}},{key:"hide",value:function(){this.dom.style.display="none",this.visible=!1}},{key:"onClick",value:function(){}}]),e}(),vm=function(){function e(t){Pi(this,e),so(this,"_onClick",void 0),this.bubbleMenu=!1,this.subMenu=null,this.name="",this.editor=t,this.dom=null,this.updateMarkdown=!0,this.subMenuConfig=[],this.positionModel="absolute","function"==typeof this._onClick&&(el.warn("`MenuBase._onClick` is deprecated. Override `$onClick` instead"),this.$onClick=this._onClick)}return Gi(e,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"setName",value:function(e,t){this.name=e,this.iconName=t}},{key:"createBtn",value:function(){var e,t,n=[];this.subMenuConfig.length>0&&n.push("cherry-toolbar-dropdown"),n.push("cherry-toolbar-button","cherry-toolbar-".concat(this.iconName?this.iconName:this.name));var r=wd("span",n.join(" "));if(this.iconName&&!fp(e=["insert","graph"]).call(e,this.name)){var A=wd("i","ch-icon ch-icon-".concat(this.iconName),{title:dm.zh_CN[this.name]||Ff(this.name)});r.appendChild(A)}else r.innerHTML=dm.zh_CN[this.name]||Ff(this.name);return r.addEventListener("click",go(t=this.$onClick).call(t,this),!1),this.dom=r,r}},{key:"$onClick",value:function(t){var n=this;if(t.stopPropagation(),this.subMenuConfig.length)return this.toggleSubMenu();if("function"==typeof this.onClick){e.cleanSubMenu();var r=this.editor.editor.getSelections(),A=Cl(r).call(r,(function(e,r,A){return n.onClick(e,"",t)||A[r]}));!this.bubbleMenu&&this.updateMarkdown&&(this.editor.editor.replaceSelections(A,"around"),this.editor.editor.focus())}}},{key:"onKeyDown",value:function(e,t,n){var r=this,A=Cl(t).call(t,(function(e){return r.onClick(e,n)}));return e.replaceSelections(A,"around")}},{key:"bindSubClick",value:function(e,t){return this.onClick(t,e)}},{key:"onClick",value:function(e,t,n){return e}},{key:"shortcutKeys",get:function(){return[]}},{key:"shortcutKey",value:function(e){var t,n=this;return Th(t=this.shortcutKeys).call(t,(function(t,r){var A;return t[(A=r,e&&e.isMac?A.replace(/mod/i,"Command"):A.replace(/mod/i,"Ctrl"))]=function(e,t){return n.onKeyDown(t,t.getSelections(),r)},t}),{})}},{key:"initSubMenu",value:function(){if(this.subMenuConfig.length){/cherry-bubble/.test(this.dom.parentElement.className)?this.positionModel="fixed":this.positionModel="absolute";var e=gm(this.dom,this.positionModel);this.subMenu=new mm(this,this.name,e,this.subMenuConfig,{click:this.onSubClick},this.positionModel),this.editor.options.wrapperDom.appendChild(this.subMenu.dom)}}},{key:"showSubMenu",value:function(){if(!this.subMenu)return this.initSubMenu(),e.hideSubMenuExcept(this.subMenu.name),void this.subMenu.show();e.hideSubMenuExcept(this.subMenu.name),/cherry-bubble/.test(this.dom.parentElement.className)?this.positionModel="fixed":this.positionModel="absolute";var t=gm(this.dom,this.positionModel);this.subMenu.show(t)}},{key:"hideSubMenu",value:function(){this.subMenu&&this.subMenu.hide()}},{key:"toggleSubMenu",value:function(){if(this.subMenu&&this.subMenu.visible)return this.hideSubMenu();this.showSubMenu()}},{key:"onSubClick",value:function(e,t,n){if(t){var r,A=this.editor.editor.getSelection();e(A,!0,go(r=this.editor.editor.replaceSelection).call(r,this.editor.editor))}else{var i=this.editor.editor.getSelections(),o=Cl(i).call(i,(function(t,n,r){return e(t)||r[n]}));this.updateMarkdown&&(this.editor.editor.replaceSelections(o,"around"),this.editor.editor.focus())}this.hideSubMenu()}}],[{key:"cleanSubMenu",value:function(){this.hideSubMenuExcept(null)}},{key:"hideSubMenuExcept",value:function(e){var t=document.querySelectorAll(".cherry-dropdown");xi(t).call(t,(function(t){e&&t.dataset.name===e||t.dispatchEvent(new Event("EditorHideToolbarSubMenu"))}))}}]),e}();function Bm(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"word",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(e.getSelections().length>1)return t;if(t&&!r)return t;if("line"===n){var A=e.listSelections()[0],i=A.anchor,o=A.head;return i.line===o.line&&i.ch>o.ch||i.line>o.line?e.setSelection({line:o.line,ch:0},{line:i.line,ch:e.getLine(i.line).length}):e.setSelection({line:i.line,ch:0},{line:o.line,ch:e.getLine(o.line).length}),e.getSelection()}if("word"===n){var a=e.findWordAt(e.getCursor()),s=a.anchor,c=a.head;return e.setSelection(s,c),e.getSelection()}}function Em(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var ym=function(e){qi(n,vm);var t=Em(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("bold","bold"),r}return Gi(n,[{key:"onClick",value:function(e){var t=Bm(this.editor.editor,e)||"加粗";return/^\s*(\*\*|__)[\s\S]+(\1)/.test(t)?t.replace(/(^)(\s*)(\*\*|__)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):t.replace(/(^)([^\n]+)($)/gm,"$1**$2**$3")}},{key:"shortcutKeys",get:function(){return["Mod-b"]}}]),n}();function Cm(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var bm=function(e){qi(n,vm);var t=Cm(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("italic","italic"),r}return Gi(n,[{key:"onClick",value:function(e){var t=Bm(this.editor.editor,e)||"斜体";return/^\s*(\*|_)[\s\S]+(\1)/.test(t)?t.replace(/(^)(\s*)(\*|_)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):t.replace(/(^)([^\n]+)($)/gm,"$1 *$2* $3")}},{key:"shortcutKeys",get:function(){return["Mod-i"]}}]),n}();function wm(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var Tm=function(e){qi(n,vm);var t=wm(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("split","|"),r}return Gi(n,[{key:"createBtn",value:function(){var e=document.createElement("i");return e.className="cherry-toolbar-button cherry-toolbar-split",e}}]),n}();function _m(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var Im=function(e){qi(n,vm);var t=_m(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("strikethrough","strike"),r}return Gi(n,[{key:"onClick",value:function(e){var t=Bm(this.editor.editor,e)||"删除线";return/(~~)[\s\S]+(\1)/.test(e)?e.replace(/[\s]*(~~)([\s\S]+)(\1)[\s]*/g,"$2"):t.replace(/(^)[\s]*([\s\S]+)[\s]*($)/g,"$1 ~~$2~~ $3")}}]),n}();function Sm(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var km=function(e){qi(n,vm);var t=Sm(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("sub","sub"),r}return Gi(n,[{key:"onClick",value:function(e){var t=Bm(this.editor.editor,e)||"下标";return/^\s*(\^\^)[\s\S]+(\1)/.test(t)?t.replace(/(^)(\s*)(\^\^)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):t.replace(/(^)([^\n]+)($)/gm,"$1 ^^$2^^ $3")}}]),n}();function Fm(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var xm=function(e){qi(n,vm);var t=Fm(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("sup","sup"),r}return Gi(n,[{key:"onClick",value:function(e){var t=Bm(this.editor.editor,e)||"上标";return/^\s*(\^)[\s\S]+(\1)/.test(e)?e.replace(/(^)(\s*)(\^)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):t.replace(/(^)([^\n]+)($)/gm,"$1 ^$2^ $3")}}]),n}();function Lm(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var Um=function(e){qi(n,vm);var t=Lm(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("color","color"),r.bubbleMenu=!0,r.bubbleColor=new Nm(e),r}return Gi(n,[{key:"onClick",value:function(e){var t=arguments.length>2?arguments[2]:void 0,n=Bm(this.editor.editor,e)||"字体颜色或背景";if(t){this.bubbleColor.setSelection(n);var r=0,A=0;if(t.target.closest(".cherry-bubble")){var i=t.target.closest(".cherry-bubble"),o=i.getBoundingClientRect();r=o.top+i.offsetHeight,A=t.target.closest(".cherry-toolbar-color").offsetLeft+o.left}else{var a=t.target.closest(".cherry-toolbar-color"),s=a.getBoundingClientRect();r=s.top+a.offsetHeight,A=s.left}this.bubbleColor.show({left:A,top:r})}}}]),n}(),Nm=function(){function e(t){Pi(this,e),so(this,"colorStack",["#000000","#444444","#666666","#999999","#cccccc","#eeeeee","#f3f3f3","#ffffff","#ff0000","#ff9900","#ffff00","#00ff00","#00ffff","#0000ff","#9900ff","#ff00ff","#f4cccc","#fce5cd","#fff2cc","#d9ead3","#d0e0e3","#cfe2f3","#d9d2e9","#ead1dc","#ea9999","#f9cb9c","#ffe599","#b6d7a8","#a2c4c9","#9fc5e8","#b4a7d6","#d5a6bd","#e06666","#f6b26b","#ffd966","#93c47d","#76a5af","#6fa8dc","#8e7cc3","#c27ba0","#cc0000","#e69138","#f1c232","#6aa84f","#45818e","#3d85c6","#674ea7","#a64d79","#990000","#b45f06","#bf9000","#38761d","#134f5c","#0b5394","#351c75","#741b47","#660000","#783f04","#7f6000","#274e13","#0c343d","#073763","#20124d","#4c1130"]),this.editor=t,this.init(),this.initAction()}return Gi(e,[{key:"setSelection",value:function(e){this.selection=e}},{key:"getFontColorDom",value:function(e){var t,n,r=Cl(t=this.colorStack).call(t,(function(e){var t;return uo(t='<span class="cherry-color-item" unselectable="on" data-val="'.concat(e,'"\n style="background-color:')).call(t,e,'"></span>')})).join("");return uo(n="<h3>".concat(e,"</h3>")).call(n,r)}},{key:"getDom",value:function(){var e=document.createElement("div");e.classList.add("cherry-color-wrap"),e.classList.add("cherry-dropdown");var t=document.createElement("div");t.classList.add("cherry-color-text"),t.innerHTML=this.getFontColorDom("文本颜色"),e.appendChild(t);var n=document.createElement("div");return n.classList.add("cherry-color-bg"),n.innerHTML=this.getFontColorDom("背景颜色"),e.appendChild(n),e}},{key:"init",value:function(){this.dom=this.getDom(),this.editor.options.wrapperDom.appendChild(this.dom)}},{key:"onClick",value:function(){var e,t;return"text"===this.type?/^!!#\S+ [\s\S]+?!!/.test(this.selection)?this.selection.replace(/^!!#\S+ ([\s\S]+?)!!/,"!!".concat(this.colorValue," $1!!")):uo(t="!!".concat(this.colorValue," ")).call(t,this.selection,"!!"):/^!!!#\S+ [\s\S]+?!!!/.test(this.selection)?this.selection.replace(/^!!!#\S+ ([\s\S]+?)!!!/,"!!!".concat(this.colorValue," $1!!!")):uo(e="!!!".concat(this.colorValue," ")).call(e,this.selection,"!!!")}},{key:"initAction",value:function(){var e=this,t=this;this.dom.addEventListener("click",(function(n){var r=n.target;if(e.colorValue=r.getAttribute("data-val"),!e.colorValue)return!1;e.type=r.closest(".cherry-color-text")?"text":"bg";var A=e.editor.editor.getSelections(),i=Cl(A).call(A,(function(t,n,r){return e.onClick()||r[n]}));t.editor.editor.replaceSelections(i,"around"),t.editor.editor.focus()}),!1),this.dom.addEventListener("EditorHideToolbarSubMenu",(function(){"none"!==e.dom.style.display&&(e.dom.style.display="none")}))}},{key:"show",value:function(e){var t=e.left,n=e.top;this.dom.style.left="".concat(t,"px"),this.dom.style.top="".concat(n,"px"),this.dom.style.display="block"}}]),e}();function Dm(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var Om=function(e){qi(n,vm);var t=Dm(n);function n(e){var r,A,i,o,a,s;return Pi(this,n),(s=t.call(this,e)).setName("header","header"),s.subMenuConfig=[{iconName:"h1",name:"h1",onclick:go(r=s.bindSubClick).call(r,Vi(s),"1")},{iconName:"h2",name:"h2",onclick:go(A=s.bindSubClick).call(A,Vi(s),"2")},{iconName:"h3",name:"h3",onclick:go(i=s.bindSubClick).call(i,Vi(s),"3")},{iconName:"h4",name:"h4",onclick:go(o=s.bindSubClick).call(o,Vi(s),"4")},{iconName:"h5",name:"h5",onclick:go(a=s.bindSubClick).call(a,Vi(s),"5")}],s}return Gi(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"$getFlagStr",value:function(e){var t,n=+("string"==typeof e?e.replace(/[^0-9]+([0-9])/g,"$1"):e);return eh(t="#").call(t,n||1)}},{key:"onClick",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Bm(this.editor.editor,e,"line",!0)||"标题",r=this.$getFlagStr(t);if(/^\s*(#+)\s*.+/.test(n)){var A=!0,i=n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(e,t,n,i,o){var a,s,c;return A=!!A&&n.length===r.length,uo(a=uo(s=uo(c="".concat(t)).call(c,r)).call(s,i)).call(a,o)}));return A?n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):i}return n.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat(r," $3$4"))}},{key:"shortcutKeys",get:function(){return["Mod-1","Mod-2","Mod-3","Mod-4","Mod-5","Mod-6"]}}]),n}(),Qm=aA.find,Rm=!0;"find"in[]&&Array(1).find((function(){Rm=!1})),Xe({target:"Array",proto:!0,forced:Rm},{find:function(e){return Qm(this,e,arguments.length>1?arguments[1]:void 0)}});var Mm=mn("Array").find,Hm=Array.prototype,Pm=function(e){var t=e.find;return e===Hm||H(Hm,e)&&t===Hm.find?Mm:t},Km=function(e,t){var n,r=document.createElement("td");return r.className=t||"table-item",xi(n=fi(e)).call(n,(function(t){r.dataset[t]=e[t]})),r},Gm=function(){function e(t,n){var r=t.row,A=t.col;Pi(this,e),this.init(r,A,n),this.initEventListeners(),this.afterClick=function(){}}return Gi(e,[{key:"init",value:function(e,t,n){var r=this,A=document.createElement("table"),i=[];A.className=["cherry-insert-table-menu","cherry-dropdown"].join(" ");for(var o=1;o<=e;o++){var a=document.createElement("tr");a.className="cherry-insert-table-menu-row",i[o-1]=[];for(var s=1;s<=t;s++){var c=Km({row:o,col:s},"cherry-insert-table-menu-item");a.appendChild(c),i[o-1][s-1]=c}A.appendChild(a)}return A.style.display="none",A.addEventListener("EditorHideToolbarSubMenu",(function(){r.hide()})),this.dom=A,this.cell=i,this.maxRow=e,this.maxCol=t,this.activeRow=0,this.activeCol=0,this.dom}},{key:"initEventListeners",value:function(){var e,t;this.dom.addEventListener("mousemove",go(e=this.handleMouseMove).call(e,this),!1),this.dom.addEventListener("mouseup",go(t=this.handleMouseUp).call(t,this))}},{key:"setActiveCell",value:function(e,t){if(this.activeRow!==e||this.activeCol!==t){var n=Math.min(this.activeRow,e),r=Math.max(this.activeRow,e);if(n!==r)for(var A=r;A>n;A--)for(var i=1;i<=this.activeCol;i++)this.cell[A-1][i-1].classList.toggle("active");var o=Math.min(this.activeCol,t),a=Math.max(this.activeCol,t);if(o!==a)for(var s=a;s>o;s--)for(var c=1;c<=e;c++)this.cell[c-1][s-1].classList.toggle("active");this.activeRow=e,this.activeCol=t}}},{key:"handleMouseMove",value:function(e){var t=e.target;t!==this.dom&&(t.classList.contains("cherry-insert-table-menu-item")||(t=t.querySelector(".cherry-insert-table-menu-item")),t&&this.setActiveCell(t.dataset.row,t.dataset.col))}},{key:"handleMouseUp",value:function(e){var t=e.target;return t===this.dom||t.classList.contains("cherry-insert-table-menu-item")||(t=t.querySelector(".cherry-insert-table-menu-item")),this.afterClick(this.activeRow,this.activeCol),void this.hide()}},{key:"show",value:function(e){this.dom.style.display="block",this.afterClick=e}},{key:"hide",value:function(){this.dom.style.display="none";for(var e=0;e<this.maxRow;e++)for(var t=0;t<this.maxCol;t++)this.cell[e][t].classList.remove("active");this.activeRow=0,this.activeCol=0}}]),e}();function $m(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var Vm=function(e){qi(n,vm);var t=$m(n);function n(e,r,A){var i,o,a,s,c,l,u,f,h,d,p,g,m,v;if(Pi(this,n),(v=t.call(this,e)).setName("insert","insert"),v.subBubbleTableMenu=new Gm({row:9,col:9}),e.options.wrapperDom.appendChild(v.subBubbleTableMenu.dom),v.subMenuConfig=[{iconName:"image",name:"image",onclick:go(i=v.bindSubClick).call(i,Vi(v),"image")},{iconName:"video",name:"audio",onclick:go(o=v.bindSubClick).call(o,Vi(v),"audio")},{iconName:"video",name:"video",onclick:go(a=v.bindSubClick).call(a,Vi(v),"video")},{iconName:"link",name:"link",onclick:go(s=v.bindSubClick).call(s,Vi(v),"link")},{iconName:"line",name:"hr",onclick:go(c=v.bindSubClick).call(c,Vi(v),"hr")},{iconName:"br",name:"br",onclick:go(l=v.bindSubClick).call(l,Vi(v),"br")},{iconName:"code",name:"code",onclick:go(u=v.bindSubClick).call(u,Vi(v),"code")},{iconName:"insertFormula",name:"formula",onclick:go(f=v.bindSubClick).call(f,Vi(v),"formula")},{iconName:"toc",name:"toc",onclick:go(h=v.bindSubClick).call(h,Vi(v),"toc")},{iconName:"table",name:"table",onclick:go(d=v.bindSubClick).call(d,Vi(v),"table"),async:!0},{iconName:"pdf",name:"pdf",onclick:go(p=v.bindSubClick).call(p,Vi(v),"pdf")},{iconName:"word",name:"word",onclick:go(g=v.bindSubClick).call(g,Vi(v),"word")},{iconName:"pinyin",name:"ruby",onclick:go(m=v.bindSubClick).call(m,Vi(v),"ruby")}],r instanceof Array){var B,E=Cl(B=v.subMenuConfig).call(B,(function(e){return e.name}));v.subMenuConfig=Th(r).call(r,(function(e,t){var n=Rc(E).call(E,t);return-1===n?e:"line-table"!==t&&"bar-table"!==t||!1!==A.markdownParams.engine.syntax.table.enableChart?(e.push(v.subMenuConfig[n]),e):e}),[])}return v}return Gi(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"bindSubClick",value:function(e,t,n,r){return n?this.onClick(t,e,r):this.onClick(t,e)}},{key:"handleUpload",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image",n=document.createElement("input");n.type="file",n.id="fileUpload",n.value="",n.style.display="none",n.addEventListener("change",(function(n){var r=Qc(n.target.files,1)[0];e.editor.options.fileUpload(r,(function(n){if("string"==typeof n&&n){var A,i="";if("image"===t)i=uo(A="![".concat(r.name,"](")).call(A,n,")");else if("video"===t){var o;i=uo(o="!video[".concat(r.name,"](")).call(o,n,")")}else if("audio"===t){var a;i=uo(a="!audio[".concat(r.name,"](")).call(a,n,")")}else{var s;i=uo(s="[".concat(r.name,"](")).call(s,n,")")}e.editor.editor.doc.replaceSelection(i)}}))})),n.click()}},{key:"onClick",value:function(e){var t,n,r,A,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0;if(i=this.matchShortcutKey(i),/normal-table/.test(i)){var a,s,c,l,u,f,h=i.match(/([0-9]+)[^0-9]([0-9]+)/),d=h?+h[1]:3,p=h?+h[2]:5,g=eh(a=" Header |").call(a,p),m=eh(s=" ------ |").call(s,p),v="\n|".concat(eh(c=" Sample |").call(c,p)),B=uo(l=uo(u=uo(f="".concat(e,"\n\n|")).call(f,g,"\n|")).call(u,m)).call(l,eh(v).call(v,d),"\n\n");return B}var E=Bm(this.editor.editor,e);switch(i){case"hr":return"".concat(e,"\n\n---\n");case"br":return"".concat(e,"<br>");case"code":return"\n``` \n".concat(e||"code...","\n```\n");case"formula":return"".concat(e,"\n\n$ e=mc^2 $\n\n");case"checklist":return"".concat(e,"\n\n- [x] No.1\n- [ ] No.2\n- [ ] No.3\n");case"toc":return"".concat(e,"\n\n[[toc]]\n");case"link":return"".concat(e,"[超链接](http://url.com) ");case"image":return this.handleUpload("image"),e;case"video":return this.handleUpload("video"),e;case"audio":return this.handleUpload("audio"),e;case"table":return this.subBubbleTableMenu.dom.style.left=this.subMenu.dom.style.left,this.subBubbleTableMenu.dom.style.top=this.subMenu.dom.style.top,void this.subBubbleTableMenu.show((function(t,n){var r,A,i,a,s,c,l=eh(r=" Header |").call(r,n),u=eh(A=" ------ |").call(A,n),f="\n|".concat(eh(i=" Sample |").call(i,n)),h=uo(a=uo(s=uo(c="".concat(e,"\n\n|")).call(c,l,"\n|")).call(s,u)).call(a,eh(f).call(f,t),"\n\n");o(h)}));case"line-table":return uo(t="".concat(e,"\n\n")).call(t,["| :line: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n");case"bar-table":return uo(n="".concat(e,"\n\n")).call(n,["| :bar: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n");case"headlessTable":return this.subBubbleTableMenu.dom.style.left=this.subMenu.dom.style.left,this.subBubbleTableMenu.dom.style.top=this.subMenu.dom.style.top,void this.subBubbleTableMenu.show((function(t,n){var r,A,i,a,s,c=uo(r=uo(A="".concat(e,"\n\n||")).call(A,eh(i=" ~Header ||").call(i,n))).call(r,eh(a="\n||".concat(eh(s=" SampleT ||").call(s,n))).call(a,t-1),"\n\n");o(c)}));case"pdf":return this.handleUpload("pdf"),e;case"word":return this.handleUpload("word"),e;case"ruby":return/^\s*\{[\s\S]+\|[\s\S]+\}/.test(E)?E.replace(/^\s*\{\s*([\s\S]+?)\s*\|[\s\S]+\}\s*/gm,"$1"):uo(r=" { ".concat(E," | ")).call(r,Ic(A=this.editor.$cherry.options.callback.changeString2Pinyin(E)).call(A)," } ")}}},{key:"matchShortcutKey",value:function(e){var t=this.shortcutKeyMaps(),n=Pm(t).call(t,(function(t){return t.shortcutKey===e}));return void 0!==n?n.shortKey:e}},{key:"shortcutKeyMaps",value:function(){return[{shortKey:"code",shortcutKey:"Mod-k"},{shortKey:"link",shortcutKey:"Mod-l"},{shortKey:"image",shortcutKey:"Mod-g"},{shortKey:"formula",shortcutKey:"Mod-m"}]}},{key:"shortcutKeys",get:function(){var e=this.shortcutKeyMaps();return Cl(e).call(e,(function(e){return e.shortcutKey}))}}]),n}();function Wm(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var jm=function(e){qi(n,vm);var t=Wm(n);function n(e){var r,A,i,o;return Pi(this,n),(o=t.call(this,e)).setName("list","list"),o.subMenuConfig=[{iconName:"ol",name:"ol",onclick:go(r=o.bindSubClick).call(r,Vi(o),"1")},{iconName:"ul",name:"ul",onclick:go(A=o.bindSubClick).call(A,Vi(o),"2")},{iconName:"checklist",name:"checklist",onclick:go(i=o.bindSubClick).call(i,Vi(o),"3")}],o}return Gi(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"$dealSelection",value:function(e,t){var n=e||"No.1\n No.1.1\nNo.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 A={};n=n.replace(/^(\s*)(\S[\s\S]*?)$/gm,(function(e,t,n){var r,i,o,a=(null===(r=t.match(/[ \t]/g))||void 0===r?void 0:r.length)||0;return A[a]=A[a]?A[a]+1:1,uo(i=uo(o="".concat(t)).call(o,A[a],". ")).call(i,n)}))}else n=n.replace(/^(\s*)(\S[\s\S]*?)$/gm,"$1".concat(r," $2"));return n}},{key:"onClick",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",A=[null,"ol","ul","checklist"],i=Bm(this.editor.editor,e,"line",!0),o=i.match(/^\n*/),a=Qc(o,1),s=a[0],c=i.match(/\n*$/),l=Qc(c,1),u=l[0];return null!==A[r]?uo(t=uo(n="".concat(s)).call(n,this.$dealSelection(i,A[r]))).call(t,u):i}}]),n}();function Ym(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}function Xm(e,t){return[e,"```mermaid",t,"```"].join("\n")}var zm=["\tA[公司] --\x3e| 下 班 | B(菜市场)","\tB --\x3e C{看见<br>卖西瓜的}","\tC --\x3e|Yes| D[买一个包子]","\tC --\x3e|No| E[买一斤包子]"].join("\n"),qm={flow:["FlowChart",Xm("左右结构","graph LR\n".concat(zm)),Xm("上下结构","graph TD\n".concat(zm))].join("\n"),sequence:Xm("SequenceDiagram",["sequenceDiagram","autonumber","A--\x3eA: 文本1","A->>B: 文本2","loop 循环1","loop 循环2","A->B: 文本3","end","loop 循环3","B --\x3e>A: 文本4","end","B --\x3e> B: 文本5","end"].join("\n")),state:Xm("StateDiagram",["stateDiagram-v2","[*] --\x3e A","A --\x3e B","A --\x3e C","state A {"," \t[*] --\x3e D"," \tD --\x3e [*]","}","B --\x3e [*]","C --\x3e [*]"].join("\n")),class:Xm("ClassDiagram",["classDiagram","Base <|-- One","Base <|-- Two","Base : +String name","Base: +getName()","Base: +setName(String name)","class One{"," \t+String newName"," \t+getNewName()","}","class Two{"," \t-int id"," \t-getId()","}"].join("\n")),pie:Xm("PieChart",["pie","title 饼图",'"A" : 100','"B" : 80','"C" : 40','"D" : 30'].join("\n")),gantt:Xm("GanttChart",["gantt","\ttitle 敏捷研发流程","\tsection 迭代前","\t\t交互设计 :a1, 2020-03-01, 4d","\t\tUI设计 :after a1, 5d","\t\t需求评审 : 1d","\tsection 迭代中","\t\t详细设计 :a2, 2020-03-11, 2d","\t\t开发 :2020-03-15, 7d","\t\t测试 :2020-03-22, 5d","\tsection 迭代后","\t\t发布: 1d","\t\t验收: 2d","\t\t回顾: 1d"].join("\n"))},Jm=function(e){qi(n,vm);var t=Ym(n);function n(e){var r,A,i,o,a,s,c;return Pi(this,n),(c=t.call(this,e)).setName("graph","insertChart"),c.subMenuConfig=[{iconName:"insertFlow",name:"insertFlow",onclick:go(r=c.bindSubClick).call(r,Vi(c),"1")},{iconName:"insertSeq",name:"insertSeq",onclick:go(A=c.bindSubClick).call(A,Vi(c),"2")},{iconName:"insertState",name:"insertState",onclick:go(i=c.bindSubClick).call(i,Vi(c),"3")},{iconName:"insertClass",name:"insertClass",onclick:go(o=c.bindSubClick).call(o,Vi(c),"4")},{iconName:"insertPie",name:"insertPie",onclick:go(a=c.bindSubClick).call(a,Vi(c),"5")},{iconName:"insertGantt",name:"insertGantt",onclick:go(s=c.bindSubClick).call(s,Vi(c),"6")}],c}return Gi(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"onClick",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="".concat(t),r=[,"flow","sequence","state","class","pie","gantt"],A=r[+n];if(r[+n])return"\n\n".concat(this.$getSampleCode(A),"\n")}},{key:"$getSampleCode",value:function(e){return qm[e].replace(/\t/g," ")}}]),n}();function Zm(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var ev=function(e){qi(n,vm);var t=Zm(n);function n(e){var r,A,i,o,a;return Pi(this,n),(a=t.call(this,e)).setName("size","size"),a.subMenuConfig=[{name:"小",noIcon:!0,onclick:go(r=a.bindSubClick).call(r,Vi(a),"12")},{name:"中",noIcon:!0,onclick:go(A=a.bindSubClick).call(A,Vi(a),"17")},{name:"大",noIcon:!0,onclick:go(i=a.bindSubClick).call(i,Vi(a),"24")},{name:"特大",noIcon:!0,onclick:go(o=a.bindSubClick).call(o,Vi(a),"32")}],a}return Gi(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"_getFlagStr",value:function(e){for(var t=e.replace(/[^0-9]+([0-9])/g,"$1"),n="#",r=1;r<t;r++)n+="#";return n}},{key:"onClick",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"17",n=Bm(this.editor.editor,e)||"字号";if(/^\s*(![0-9]+)[\s\S]+(!)/.test(e)){var r=!0,A=n.replace(/(^)(\s*)(![0-9]+)([^\n]+)(!)(\s*)($)/gm,(function(e,n,A,i,o,a,s,c){var l,u,f,h,d,p;return r=!!r&&i==="!".concat(t),uo(l=uo(u=uo(f=uo(h=uo(d=uo(p="".concat(n)).call(p,A,"!")).call(d,t)).call(h,o)).call(f,a)).call(u,s)).call(l,c)}));return r?n.replace(/(^)(\s*)(![0-9]+\s*)([^\n]+)(!)(\s*)($)/gm,"$1$4$7"):A}return n.replace(/(^)([^\n]+)($)/gm,"$1 !".concat(t," $2! $3"))}}]),n}();function tv(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var nv=function(e){qi(n,vm);var t=tv(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("checklist","checklist"),r}return Gi(n,[{key:"$dealSelection",value:function(e){var t=e||"No.1\n No.1.1\nNo.2";return t=(t=t.replace(/^\n+/,"").replace(/\n+$/,"")).replace(/^(\s*)(\S[\s\S]*?)$/gm,"$1- [ ] $2")}},{key:"onClick",value:function(e){var t,n,r=e.match(/^\n*/),A=Qc(r,1)[0],i=e.match(/\n*$/),o=Qc(i,1)[0];return uo(t=uo(n="".concat(A)).call(n,this.$dealSelection(e))).call(t,o)}}]),n}();function rv(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var Av=function(e){qi(n,vm);var t=rv(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("h1","h1"),r}return Gi(n,[{key:"onClick",value:function(e){var t=Bm(this.editor.editor,e,"line",!0)||"标题";if(/^\s*(#+)\s*.+/.test(t)){var n=!0,r=t.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(e,t,r,A,i){var o,a;return n=!!n&&"#"===r,uo(o=uo(a="".concat(t,"#")).call(a,A)).call(o,i)}));return n?t.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):r}return t.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1# $3$4")}}]),n}();function iv(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var ov=function(e){qi(n,vm);var t=iv(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("h2","h2"),r}return Gi(n,[{key:"onClick",value:function(e){var t=Bm(this.editor.editor,e,"line",!0)||"标题";if(/^\s*(#+)\s*.+/.test(t)){var n=!0,r=t.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(e,t,r,A,i){var o,a;return n=!!n&&"##"===r,uo(o=uo(a="".concat(t,"##")).call(a,A)).call(o,i)}));return n?t.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):r}return t.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1## $3$4")}}]),n}();function av(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var sv=function(e){qi(n,vm);var t=av(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("h3","h3"),r}return Gi(n,[{key:"onClick",value:function(e){var t=Bm(this.editor.editor,e,"line",!0)||"标题";if(/^\s*(#+)\s*.+/.test(t)){var n=!0,r=t.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(e,t,r,A,i){var o,a;return n=!!n&&"###"===r,uo(o=uo(a="".concat(t,"###")).call(a,A)).call(o,i)}));return n?t.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):r}return t.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1### $3$4")}}]),n}(),cv=aA.every,lv=wi("every");Xe({target:"Array",proto:!0,forced:!lv},{every:function(e){return cv(this,e,arguments.length>1?arguments[1]:void 0)}});var uv=mn("Array").every,fv=Array.prototype,hv=function(e){var t=e.every;return e===fv||H(fv,e)&&t===fv.every?uv:t};function dv(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var pv=function(e){qi(n,vm);var t=dv(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("quote","blockquote"),r}return Gi(n,[{key:"onClick",value:function(e){var t,n=Bm(this.editor.editor,e,"line",!0)||"引用";return hv(t=n.split("\n")).call(t,(function(e){return/^\s*>[^\n]+$/.exec(e)}))?n.replace(/(^\s*)>\s*([^\n]+)($)/gm,"$1$2$3").replace(/\n+$/,"\n\n"):n.replace(/(^)([^\n]+)($)/gm,"$1> $2$3").replace(/\n+$/,"\n\n")}}]),n}();function gv(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var mv=function(e){qi(n,vm);var t=gv(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("quickTable","table"),r}return Gi(n,[{key:"onClick",value:function(e){return"".concat(e,"| LeftAlignedCol | CenterAlignedCol | RightAlignedCol |\n")+"| :--- | :---: | ---: |\n| sampleText | sampleText | sampleText |\n| **left**Text | centered Text | *right*Text |\n"}}]),n}();function vv(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var Bv=function(e){qi(n,vm);var t=vv(n);function n(e,r){var A;return Pi(this,n),A=t.call(this,e),so(Vi(A),"$previewerHidden",!1),A.setName("previewClose","previewClose"),A.instanceId=r.$cherry.previewer.instanceId,A.updateMarkdown=!1,A.attachEventListeners(),A}return Gi(n,[{key:"attachEventListeners",value:function(){var e=this;$g.on(this.instanceId,$g.Events.previewerClose,(function(){e.isHidden=!0})),$g.on(this.instanceId,$g.Events.previewerOpen,(function(){e.isHidden=!1}))}},{key:"isHidden",get:function(){return this.$previewerHidden},set:function(e){if(e!==this.$previewerHidden){var t=this.dom.querySelector("i");e?(t.classList.toggle("ch-icon-previewClose",!1),t.classList.toggle("ch-icon-preview",!0),t.title=dm.zh_CN.togglePreview):(t.classList.toggle("ch-icon-previewClose",!0),t.classList.toggle("ch-icon-preview",!1),t.title=dm.zh_CN.previewClose),this.$previewerHidden=e}}},{key:"onClick",value:function(){this.editor.previewer.isPreviewerHidden()?(this.editor.previewer.recoverPreviewer(!0),this.isHidden=!1):(this.editor.previewer.editOnly(!0),this.isHidden=!0)}}]),n}();function Ev(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var yv=function(e){qi(n,vm);var t=Ev(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).updateMarkdown=!1,r.editor=e,r.setName("fullScreen","fullscreen"),r}return Gi(n,[{key:"onClick",value:function(){var e=this.editor.options.editorDom.parentElement.classList;e.contains("fullscreen")?e.remove("fullscreen"):e.add("fullscreen"),this.editor.editor.refresh()}}]),n}();function Cv(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var bv=function(e){qi(n,vm);var t=Cv(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).editor=e,r.setName("undo","undo"),r}return Gi(n,[{key:"onClick",value:function(){this.editor.editor.undo()}}]),n}();function wv(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var Tv=function(e){qi(n,vm);var t=wv(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).editor=e,r.setName("redo","redo"),r}return Gi(n,[{key:"onClick",value:function(){this.editor.editor.redo()}}]),n}();function _v(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var Iv=function(e){qi(n,vm);var t=_v(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("code","code"),r}return Gi(n,[{key:"onClick",value:function(e){return"\n``` \n".concat(e||"code...","\n```\n")}},{key:"shortcutKeys",get:function(){return["Mod-k"]}}]),n}();function Sv(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var kv=function(e){qi(n,vm);var t=Sv(n);function n(e){var r,A,i,o,a,s,c,l,u;return Pi(this,n),(u=t.call(this,e)).setName("codeTheme"),u.updateMarkdown=!1,u.subMenuConfig=[{noIcon:!0,name:"default",onclick:go(r=u.bindSubClick).call(r,Vi(u),"default")},{noIcon:!0,name:"dark",onclick:go(A=u.bindSubClick).call(A,Vi(u),"dark")},{noIcon:!0,name:"funky",onclick:go(i=u.bindSubClick).call(i,Vi(u),"funky")},{noIcon:!0,name:"okaidia",onclick:go(o=u.bindSubClick).call(o,Vi(u),"okaidia")},{noIcon:!0,name:"twilight",onclick:go(a=u.bindSubClick).call(a,Vi(u),"twilight")},{noIcon:!0,name:"coy",onclick:go(s=u.bindSubClick).call(s,Vi(u),"coy")},{noIcon:!0,name:"solarized light",onclick:go(c=u.bindSubClick).call(c,Vi(u),"solarized-light")},{noIcon:!0,name:"tomorrow night",onclick:go(l=u.bindSubClick).call(l,Vi(u),"tomorrow-night")}],u}return Gi(n,[{key:"onClick",value:function(){var e=arguments.length>1?arguments[1]:void 0;document.querySelector(".cherry").setAttribute("data-code-block-theme",e)}}]),n}();function Fv(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var xv=function(e){qi(n,vm);var t=Fv(n);function n(e){var r,A,i;return Pi(this,n),(i=t.call(this,e)).setName("export"),i.updateMarkdown=!1,i.subMenuConfig=[{noIcon:!0,name:"导出PDF",onclick:go(r=i.bindSubClick).call(r,Vi(i),"pdf")},{noIcon:!0,name:"导出长图",onclick:go(A=i.bindSubClick).call(A,Vi(i),"screenShot")}],i}return Gi(n,[{key:"onClick",value:function(){var e=arguments.length>1?arguments[1]:void 0;document.querySelector(".cherry-dropdown[name=export]")&&(document.querySelector(".cherry-dropdown[name=export]").style.display="none"),this.editor.previewer.export(e)}}]),n}();function Lv(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var Uv=function(e){qi(n,vm);var t=Lv(n);function n(e,r){var A,i,o;Pi(this,n),(o=t.call(this,e)).setName("settings","settings"),o.engine=r;var a=o.engine.$cherry.options.engine.global.classicBr,s=e.options.defaultModel,c=a?"br":"normal",l=a?"classicBr":"normalBr",u="editOnly"===s?"preview":"previewClose",f="editOnly"===s?"togglePreview":"previewClose";return o.instanceId=r.$cherry.previewer.instanceId,o.subMenuConfig=[{iconName:c,name:l,onclick:go(A=o.bindSubClick).call(A,Vi(o),"classicBr")},{iconName:u,name:f,onclick:go(i=o.bindSubClick).call(i,Vi(o),"previewClose")}],o.attachEventListeners(),o}return Gi(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"bindSubClick",value:function(e,t,n,r){return n?this.onClick(t,e,r):this.onClick(t,e)}},{key:"togglePreviewBtn",value:function(e){var t=this,n=e?"previewClose":"preview",r=e?"previewClose":"togglePreview";if(this.subMenu){var A=document.querySelector('.cherry-dropdown[name="settings"]');if(A){var i=A.querySelector(".ch-icon-previewClose,.ch-icon-preview");i.classList.toggle("ch-icon-previewClose"),i.classList.toggle("ch-icon-preview"),i.title=dm.zh_CN[r],i.parentElement.innerHTML=i.parentElement.innerHTML.replace(/<\/i>.+$/,"</i>".concat(dm.zh_CN[r]))}}else{var o;this.subMenuConfig=Cl(o=this.subMenuConfig).call(o,(function(e){var A;return"previewClose"===e.iconName||"preview"===e.iconName?{iconName:n,name:r,onclick:go(A=t.bindSubClick).call(A,t,"previewClose")}:e}))}}},{key:"attachEventListeners",value:function(){var e=this;$g.on(this.instanceId,$g.Events.previewerClose,(function(){e.togglePreviewBtn(!1)})),$g.on(this.instanceId,$g.Events.previewerOpen,(function(){e.togglePreviewBtn(!0)}))}},{key:"onClick",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("classicBr"===t){var n,r,A=Qr(this.subMenu.dom.children),i=Qc(A,1),o=i[0];if(o.childNodes[1].textContent===dm.zh_CN.classicBr)o.children[0].setAttribute("class",o.children[0].getAttribute("class").replace("ch-icon-br","ch-icon-normal")),this.engine.$cherry.options.engine.global.classicBr=!1,xi(n=this.engine.hookCenter.hookList.paragraph).call(n,(function(e){e.classicBr=!1})),o.childNodes[1].textContent=dm.zh_CN.normalBr;else o.children[0].setAttribute("class",o.children[0].getAttribute("class").replace("ch-icon-normal","ch-icon-br")),this.engine.$cherry.options.engine.global.classicBr=!0,xi(r=this.engine.hookCenter.hookList.paragraph).call(r,(function(e){e.classicBr=!0})),o.childNodes[1].textContent=dm.zh_CN.classicBr;this.engine.$cherry.previewer.update(""),this.engine.$cherry.initText(this.engine.$cherry.editor.editor)}else"previewClose"===t&&(this.editor.previewer.isPreviewerHidden()?this.editor.previewer.recoverPreviewer(!0):this.editor.previewer.editOnly(!0));return e}}]),n}();function Nv(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var Dv=function(e){qi(n,vm);var t=Nv(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("underline","underline"),r}return Gi(n,[{key:"onClick",value:function(e){if(/^\s*(\/)[\s\S]+(\1)/.test(e))return e.replace(/(^)(\s*)(\/)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7");var t=e||"下划线";return t=t.replace(/(^)([^\n]+)($)/gm,"$1 /$2/ $3")}},{key:"shortcutKeys",get:function(){return["Mod-u"]}}]),n}();function Ov(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var Qv=function(e){qi(n,vm);var t=Ov(n);function n(e,r,A){var i;return Pi(this,n),(i=t.call(this,e)).setName("switchPreview"),i.instanceId=A.instanceId,i.attachEventListeners(),i}return Gi(n,[{key:"attachEventListeners",value:function(){var e=this;$g.on(this.instanceId,$g.Events.toolbarHide,(function(){e.dom.textContent=dm.zh_CN.switchEdit})),$g.on(this.instanceId,$g.Events.toolbarShow,(function(){e.dom.textContent=dm.zh_CN.switchPreview}))}},{key:"onClick",value:function(){this.editor.previewer.isPreviewerHidden()?(this.editor.previewer.previewOnly(),this.dom.parentElement.classList.add("preview-only"),this.dom.textContent=dm.zh_CN.switchEdit):(this.editor.previewer.editOnly(!0),this.dom.parentElement.classList.remove("preview-only"),this.dom.textContent=dm.zh_CN.switchPreview)}}]),n}();function Rv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"image",n=document.createElement("input");n.type="file",n.id="fileUpload",n.value="",n.style.display="none",n.addEventListener("change",(function(n){var r=Qc(n.target.files,1)[0];e.options.fileUpload(r,(function(n){if("string"==typeof n&&n){var A,i="";if("image"===t)i=uo(A="![".concat(r.name,"](")).call(A,n,")");else if("video"===t){var o;i=uo(o="!video[".concat(r.name,"](")).call(o,n,")")}else if("audio"===t){var a;i=uo(a="!audio[".concat(r.name,"](")).call(a,n,")")}else{var s;i=uo(s="[".concat(r.name,"](")).call(s,n,")")}e.editor.doc.replaceSelection(i)}}))})),n.click()}function Mv(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var Hv=function(e){qi(n,vm);var t=Mv(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("image","image"),r}return Gi(n,[{key:"onClick",value:function(e){return Rv(this.editor,"image"),e}},{key:"shortcutKeys",get:function(){return["Mod-g"]}}]),n}();function Pv(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var Kv=function(e){qi(n,vm);var t=Pv(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("audio","video"),r}return Gi(n,[{key:"onClick",value:function(e){return Rv(this.editor,"audio"),e}}]),n}();function Gv(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var $v=function(e){qi(n,vm);var t=Gv(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("video","video"),r}return Gi(n,[{key:"onClick",value:function(e){return Rv(this.editor,"video"),e}}]),n}();function Vv(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var Wv=function(e){qi(n,vm);var t=Vv(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("br","br"),r}return Gi(n,[{key:"onClick",value:function(e){return"".concat(e,"<br>")}}]),n}();function jv(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var Yv=function(e){qi(n,vm);var t=jv(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("hr","line"),r}return Gi(n,[{key:"onClick",value:function(e){return"".concat(e,"\n\n---\n")}}]),n}();function Xv(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var zv=function(e){qi(n,vm);var t=Xv(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("formula","insertFormula"),r}return Gi(n,[{key:"onClick",value:function(e){return"".concat(e," $ e=mc^2 $ ")}},{key:"shortcutKeys",get:function(){return["Mod-m"]}}]),n}();function qv(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var Jv=function(e){qi(n,vm);var t=qv(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("link","link"),r}return Gi(n,[{key:"onClick",value:function(e){return/^http/.test(e)?"[超链接](".concat(e,")"):"[".concat(e||"超链接","](http://url.com) ")}},{key:"shortcutKeys",get:function(){return["Mod-l"]}}]),n}();function Zv(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var eB=function(e){qi(n,vm);var t=Zv(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("table","table"),r.subBubbleTableMenu=new Gm({row:9,col:9}),e.options.wrapperDom.appendChild(r.subBubbleTableMenu.dom),r}return Gi(n,[{key:"onClick",value:function(e){var t=this,n=this.dom.getBoundingClientRect();this.subBubbleTableMenu.dom.style.left="".concat(n.left+n.width,"px"),this.subBubbleTableMenu.dom.style.top="".concat(n.top+n.height,"px"),this.subBubbleTableMenu.show((function(n,r){var A,i,o,a,s,c,l=eh(A=" Header |").call(A,r),u=eh(i=" ------ |").call(i,r),f="\n|".concat(eh(o=" Sample |").call(o,r)),h=uo(a=uo(s=uo(c="".concat(e,"\n\n|")).call(c,l,"\n|")).call(s,u)).call(a,eh(f).call(f,n),"\n\n");t.editor.editor.replaceSelection(h,"around"),t.editor.editor.focus()}))}}]),n}();function tB(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var nB=function(e){qi(n,vm);var t=tB(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("toc","toc"),r}return Gi(n,[{key:"onClick",value:function(e){return"".concat(e,"\n\n[[toc]]\n")}}]),n}();function rB(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var AB=function(e){qi(n,vm);var t=rB(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("lineTable","table"),r}return Gi(n,[{key:"onClick",value:function(e){var t;return uo(t="".concat(e,"\n\n")).call(t,["| :line: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n")}}]),n}();function iB(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var oB=function(e){qi(n,vm);var t=iB(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("brTable","table"),r}return Gi(n,[{key:"onClick",value:function(e){var t;return uo(t="".concat(e,"\n\n")).call(t,["| :bar: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n")}}]),n}();function aB(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var sB=function(e){qi(n,vm);var t=aB(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("pdf","pdf"),r}return Gi(n,[{key:"onClick",value:function(e){return Rv(this.editor,"pdf"),e}}]),n}();function cB(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var lB=function(e){qi(n,vm);var t=cB(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("word","word"),r}return Gi(n,[{key:"onClick",value:function(e){return Rv(this.editor,"word"),e}}]),n}();function uB(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var fB=function(e){qi(n,vm);var t=uB(n);function n(e){var r;return Pi(this,n),(r=t.call(this,e)).setName("pinyin","pinyin"),r}return Gi(n,[{key:"onClick",value:function(e){var t,n=Bm(this.editor.editor,e)||"拼音";if(/^\s*\{[\s\S]+\|[\s\S]+\}/.test(n))return n.replace(/^\s*\{\s*([\s\S]+?)\s*\|[\s\S]+\}\s*/gm,"$1");var r=this.editor.$cherry.options.callback.changeString2Pinyin(n)||"pin yin";return uo(t=" { ".concat(n," | ")).call(t,Ic(r).call(r)," } ")}}]),n}();function hB(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var dB=function(e){qi(n,vm);var t=hB(n);function n(e,r,A){var i;return Pi(this,n),(i=t.call(this,e)).previewer=A.options.previewer,i.updateMarkdown=!1,i.setName("mobilePreview","phone"),i}return Gi(n,[{key:"onClick",value:function(){this.previewer.removeScroll();var e=this.previewer.getDomContainer();this.previewer.isMobilePreview?e.parentNode.innerHTML=e.innerHTML:e.innerHTML="<div class='cherry-mobile-previewer-content'>".concat(e.innerHTML,"</div>"),this.previewer.isMobilePreview=!this.previewer.isMobilePreview,this.previewer.bindScroll()}}]),n}(),pB=Error,gB=v("".replace),mB=String(pB("zxcasd").stack),vB=/\n\s*at [^:]*:[^\n]*/,BB=vB.test(mB),EB=function(e,t){if(BB&&"string"==typeof e&&!pB.prepareStackTrace)for(;t--;)e=gB(e,vB,"");return e},yB=function(e,t){O(t)&&"cause"in t&&We(e,"cause",t.cause)},CB=function(e,t){return void 0===e?arguments.length<2?"":t:bn(e)},bB=!s((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",_(1,7)),7!==e.stack)})),wB=ve("toStringTag"),TB=a.Error,_B=[].push,IB=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,A=H(SB,this);ur?n=ur(new TB,A?zn(this):SB):(n=A?this:zt(SB),We(n,wB,"Error")),void 0!==t&&We(n,"message",CB(t)),bB&&We(n,"stack",EB(n.stack,1)),yB(n,r);var i=[];return Ol(e,_B,{that:i}),We(n,"errors",i),n};ur?ur(IB,TB):function(e,t,n){for(var r=Ui(t),A=Ve.f,i=Se.f,o=0;o<r.length;o++){var a=r[o];ce(e,a)||n&&ce(n,a)||A(e,a,i(t,a))}}(IB,TB,{name:!0});var SB=IB.prototype=zt(TB.prototype,{constructor:_(1,IB),message:_(1,""),name:_(1,"AggregateError")});Xe({global:!0,constructor:!0,arity:2},{AggregateError:IB});var kB,FB,xB,LB,UB=/(?:ipad|iphone|ipod).*applewebkit/i.test(P),NB=a.setImmediate,DB=a.clearImmediate,OB=a.process,QB=a.Dispatch,RB=a.Function,MB=a.MessageChannel,HB=a.String,PB=0,KB={};try{kB=a.location}catch(e){}var GB=function(e){if(ce(KB,e)){var t=KB[e];delete KB[e],t()}},$B=function(e){return function(){GB(e)}},VB=function(e){GB(e.data)},WB=function(e){a.postMessage(HB(e),kB.protocol+"//"+kB.host)};NB&&DB||(NB=function(e){vo(arguments.length,1);var t=B(e)?e:RB(e),n=ze(arguments,1);return KB[++PB]=function(){h(t,void 0,n)},FB(PB),PB},DB=function(e){delete KB[e]},Eh?FB=function(e){OB.nextTick($B(e))}:QB&&QB.now?FB=function(e){QB.now($B(e))}:MB&&!UB?(LB=(xB=new MB).port2,xB.port1.onmessage=VB,FB=Qe(LB.postMessage,LB)):a.addEventListener&&B(a.postMessage)&&!a.importScripts&&kB&&"file:"!==kB.protocol&&!s(WB)?(FB=WB,a.addEventListener("message",VB,!1)):FB="onreadystatechange"in Te("script")?function(e){Kt.appendChild(Te("script")).onreadystatechange=function(){Kt.removeChild(this),GB(e)}}:function(e){setTimeout($B(e),0)});var jB,YB,XB,zB,qB,JB,ZB,eE,tE={set:NB,clear:DB},nE=/ipad|iphone|ipod/i.test(P)&&void 0!==a.Pebble,rE=/web0s(?!.*chrome)/i.test(P),AE=Se.f,iE=tE.set,oE=a.MutationObserver||a.WebKitMutationObserver,aE=a.document,sE=a.process,cE=a.Promise,lE=AE(a,"queueMicrotask"),uE=lE&&lE.value;uE||(jB=function(){var e,t;for(Eh&&(e=sE.domain)&&e.exit();YB;){t=YB.fn,YB=YB.next;try{t()}catch(e){throw YB?zB():XB=void 0,e}}XB=void 0,e&&e.enter()},UB||Eh||rE||!oE||!aE?!nE&&cE&&cE.resolve?((ZB=cE.resolve(void 0)).constructor=cE,eE=Qe(ZB.then,ZB),zB=function(){eE(jB)}):Eh?zB=function(){sE.nextTick(jB)}:(iE=Qe(iE,a),zB=function(){iE(jB)}):(qB=!0,JB=aE.createTextNode(""),new oE(jB).observe(JB,{characterData:!0}),zB=function(){JB.data=qB=!qB}));var fE=uE||function(e){var t={fn:e,next:void 0};XB&&(XB.next=t),YB||(YB=t,zB()),XB=t},hE=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},dE=function(){this.head=null,this.tail=null};dE.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}};var pE,gE,mE=dE,vE=a.Promise,BE="object"==typeof window&&"object"!=typeof Deno,EE=vE&&vE.prototype,yE=ve("species"),CE=!1,bE=B(a.PromiseRejectionEvent),wE={CONSTRUCTOR:De("Promise",(function(){var e=lt(vE),t=e!==String(vE);if(!t&&66===W)return!0;if(!EE.catch||!EE.finally)return!0;if(W>=51&&/native code/.test(e))return!1;var n=new vE((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[yE]=r,!(CE=n.then((function(){}))instanceof r)||!t&&BE&&!bE})),REJECTION_EVENT:bE,SUBCLASSING:CE},TE=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=ee(t),this.reject=ee(n)},_E={f:function(e){return new TE(e)}},IE=tE.set,SE=wE.CONSTRUCTOR,kE=wE.REJECTION_EVENT,FE=Pn.getterFor("Promise"),xE=Pn.set,LE=vE&&vE.prototype,UE=vE,NE=LE,DE=a.TypeError,OE=a.document,QE=a.process,RE=_E.f,ME=RE,HE=!!(OE&&OE.createEvent&&a.dispatchEvent),PE=function(e){var t;return!(!O(e)||!B(t=e.then))&&t},KE=function(e,t){var n,r,A,i=t.value,o=1==t.state,a=o?e.ok:e.fail,s=e.resolve,c=e.reject,l=e.domain;try{a?(o||(2===t.rejection&&jE(t),t.rejection=1),!0===a?n=i:(l&&l.enter(),n=a(i),l&&(l.exit(),A=!0)),n===e.promise?c(DE("Promise-chain cycle")):(r=PE(n))?C(r,n,s,c):s(n)):c(i)}catch(e){l&&!A&&l.exit(),c(e)}},GE=function(e,t){e.notified||(e.notified=!0,fE((function(){for(var n,r=e.reactions;n=r.get();)KE(n,e);e.notified=!1,t&&!e.rejection&&VE(e)})))},$E=function(e,t,n){var r,A;HE?((r=OE.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),a.dispatchEvent(r)):r={promise:t,reason:n},!kE&&(A=a["on"+e])?A(r):"unhandledrejection"===e&&function(e,t){var n=a.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},VE=function(e){C(IE,a,(function(){var t,n=e.facade,r=e.value;if(WE(e)&&(t=hE((function(){Eh?QE.emit("unhandledRejection",r,n):$E("unhandledrejection",n,r)})),e.rejection=Eh||WE(e)?2:1,t.error))throw t.value}))},WE=function(e){return 1!==e.rejection&&!e.parent},jE=function(e){C(IE,a,(function(){var t=e.facade;Eh?QE.emit("rejectionHandled",t):$E("rejectionhandled",t,e.value)}))},YE=function(e,t,n){return function(r){e(t,r,n)}},XE=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,GE(e,!0))},zE=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw DE("Promise can't be resolved itself");var r=PE(t);r?fE((function(){var n={done:!1};try{C(r,t,YE(zE,n,e),YE(XE,n,e))}catch(t){XE(n,t,e)}})):(e.value=t,e.state=1,GE(e,!1))}catch(t){XE({done:!1},t,e)}}};SE&&(NE=(UE=function(e){Rl(this,NE),ee(e),C(pE,this);var t=FE(this);try{e(YE(zE,t),YE(XE,t))}catch(e){XE(t,e)}}).prototype,(pE=function(e){xE(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new mE,rejection:!1,state:0,value:void 0})}).prototype=qn(NE,"then",(function(e,t){var n=FE(this),r=RE(ru(this,UE));return n.parent=!0,r.ok=!B(e)||e,r.fail=B(t)&&t,r.domain=Eh?QE.domain:void 0,0==n.state?n.reactions.add(r):fE((function(){KE(r,n)})),r.promise})),gE=function(){var e=new pE,t=FE(e);this.promise=e,this.resolve=YE(zE,t),this.reject=YE(XE,t)},_E.f=RE=function(e){return e===UE||void 0===e?new gE(e):ME(e)}),Xe({global:!0,constructor:!0,wrap:!0,forced:SE},{Promise:UE}),ir(UE,"Promise",!1,!0),Wl("Promise");var qE=wE.CONSTRUCTOR||!Nr((function(e){vE.all(e).then(void 0,(function(){}))}));Xe({target:"Promise",stat:!0,forced:qE},{all:function(e){var t=this,n=_E.f(t),r=n.resolve,A=n.reject,i=hE((function(){var n=ee(t.resolve),i=[],o=0,a=1;Ol(e,(function(e){var s=o++,c=!1;a++,C(n,t,e).then((function(e){c||(c=!0,i[s]=e,--a||r(i))}),A)})),--a||r(i)}));return i.error&&A(i.value),n.promise}});var JE=wE.CONSTRUCTOR;vE&&vE.prototype;Xe({target:"Promise",proto:!0,forced:JE,real:!0},{catch:function(e){return this.then(void 0,e)}}),Xe({target:"Promise",stat:!0,forced:qE},{race:function(e){var t=this,n=_E.f(t),r=n.reject,A=hE((function(){var A=ee(t.resolve);Ol(e,(function(e){C(A,t,e).then(n.resolve,r)}))}));return A.error&&r(A.value),n.promise}}),Xe({target:"Promise",stat:!0,forced:wE.CONSTRUCTOR},{reject:function(e){var t=_E.f(this);return C(t.reject,void 0,e),t.promise}});var ZE=function(e,t){if(Pe(e),O(t)&&t.constructor===e)return t;var n=_E.f(e);return(0,n.resolve)(t),n.promise},ey=wE.CONSTRUCTOR,ty=M("Promise"),ny=!ey;Xe({target:"Promise",stat:!0,forced:!0},{resolve:function(e){return ZE(ny&&this===ty?vE:this,e)}}),Xe({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=_E.f(t),r=n.resolve,A=n.reject,i=hE((function(){var n=ee(t.resolve),A=[],i=0,o=1;Ol(e,(function(e){var a=i++,s=!1;o++,C(n,t,e).then((function(e){s||(s=!0,A[a]={status:"fulfilled",value:e},--o||r(A))}),(function(e){s||(s=!0,A[a]={status:"rejected",reason:e},--o||r(A))}))})),--o||r(A)}));return i.error&&A(i.value),n.promise}});Xe({target:"Promise",stat:!0},{any:function(e){var t=this,n=M("AggregateError"),r=_E.f(t),A=r.resolve,i=r.reject,o=hE((function(){var r=ee(t.resolve),o=[],a=0,s=1,c=!1;Ol(e,(function(e){var l=a++,u=!1;s++,C(r,t,e).then((function(e){u||c||(c=!0,A(e))}),(function(e){u||c||(u=!0,o[l]=e,--s||i(new n(o,"No one promise resolved")))}))})),--s||i(new n(o,"No one promise resolved"))}));return o.error&&i(o.value),r.promise}});var ry=vE&&vE.prototype,Ay=!!vE&&s((function(){ry.finally.call({then:function(){}},(function(){}))}));Xe({target:"Promise",proto:!0,real:!0,forced:Ay},{finally:function(e){var t=ru(this,M("Promise")),n=B(e);return this.then(n?function(n){return ZE(t,e()).then((function(){return n}))}:e,n?function(n){return ZE(t,e()).then((function(){throw n}))}:e)}});var iy=Q.Promise,oy=iy;Xe({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=_E.f(this),n=hE(e);return(n.error?t.reject:t.resolve)(n.value),t.promise}});var ay=oy,sy=n(r((function(e){function t(e,t,n,r,A,i,o){try{var a=e[i](o),s=a.value}catch(e){return void n(e)}a.done?t(s):ay.resolve(s).then(r,A)}e.exports=function(e){return function(){var n=this,r=arguments;return new ay((function(A,i){var o=e.apply(n,r);function a(e){t(o,A,i,a,s,"next",e)}function s(e){t(o,A,i,a,s,"throw",e)}a(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports}))),cy=Fi,ly=v([].reverse),uy=[1,2];Xe({target:"Array",proto:!0,forced:String(uy)===String(uy.reverse())},{reverse:function(){return on(this)&&(this.length=this.length),ly(this)}});var fy=mn("Array").reverse,hy=Array.prototype,dy=function(e){var t=e.reverse;return e===hy||H(hy,e)&&t===hy.reverse?fy:t},py=r((function(e){var t=to.default;function n(){e.exports=n=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var r={},A=Object.prototype,i=A.hasOwnProperty,o="function"==typeof Zi?Zi:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,n){return Ki(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var A=t&&t.prototype instanceof d?t:d,i=Yi(A.prototype),o=new T(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(A,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===A)throw i;return I()}for(n.method=A,n.arg=i;;){var o=n.delegate;if(o){var a=C(o,n);if(a){if(a===h)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=f(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}(e,n,o),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}r.wrap=u;var h={};function d(){}function p(){}function g(){}var m={};l(m,a,(function(){return this}));var v=io&&io(io(_([])));v&&v!==A&&i.call(v,a)&&(m=v);var B=g.prototype=d.prototype=Yi(m);function E(e){var t;cy(t=["next","throw","return"]).call(t,(function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,n){var r;this._invoke=function(A,o){function a(){return new n((function(r,a){!function r(A,o,a,s){var c=f(e[A],e,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==t(u)&&i.call(u,"__await")?n.resolve(u.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):n.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(A,o,r,a)}))}return r=r?r.then(a,a):a()}}function C(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,h;var A=r.arg;return A?A.done?(t[e.resultName]=A.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):A:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],cy(e).call(e,b,this),this.reset(!0)}function _(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:I}}function I(){return{value:void 0,done:!0}}return p.prototype=g,l(B,"constructor",g),l(g,"constructor",p),p.displayName=l(g,c,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Xi?Xi(e,g):(e.__proto__=g,l(e,c,"GeneratorFunction")),e.prototype=Yi(B),e},r.awrap=function(e){return{__await:e}},E(y.prototype),l(y.prototype,s,(function(){return this})),r.AsyncIterator=y,r.async=function(e,t,n,A,i){void 0===i&&(i=ay);var o=new y(u(e,t,n,A),i);return r.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},E(B),l(B,c,"Generator"),l(B,a,(function(){return this})),l(B,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=[];for(var n in e)t.push(n);return dy(t).call(t),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},r.values=_,T.prototype={constructor:T,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,cy(t=this.tryEntries).call(t,w),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+Lc(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var A=this.tryEntries[r],o=A.completion;if("root"===A.tryLoc)return n("end");if(A.tryLoc<=this.prev){var a=i.call(A,"catchLoc"),s=i.call(A,"finallyLoc");if(a&&s){if(this.prev<A.catchLoc)return n(A.catchLoc,!0);if(this.prev<A.finallyLoc)return n(A.finallyLoc)}else if(a){if(this.prev<A.catchLoc)return n(A.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<A.finallyLoc)return n(A.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var A=r;break}}A&&("break"===e||"continue"===e)&&A.tryLoc<=t&&t<=A.finallyLoc&&(A=null);var o=A?A.completion:{};return o.type=e,o.arg=t,A?(this.method="next",this.next=A.finallyLoc,h):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var A=r.arg;w(n)}return A}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}));n(py);var gy=py(),my=iy;const vy={xml:!1,decodeEntities:!0},By={_useHtmlParser2:!0,xmlMode:!0};function Ey(e){return(null==e?void 0:e.xml)?"boolean"==typeof e.xml?By:{...By,...e.xml}:null!=e?e:void 0}var yy;!function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(yy||(yy={}));const Cy=yy.Root,by=yy.Text,wy=yy.Directive,Ty=yy.Comment,_y=yy.Script,Iy=yy.Style,Sy=yy.Tag,ky=yy.CDATA,Fy=yy.Doctype;class xy{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return jy(this,e)}}class Ly extends xy{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class Uy extends Ly{constructor(){super(...arguments),this.type=yy.Text}get nodeType(){return 3}}class Ny extends Ly{constructor(){super(...arguments),this.type=yy.Comment}get nodeType(){return 8}}class Dy extends Ly{constructor(e,t){super(t),this.name=e,this.type=yy.Directive}get nodeType(){return 1}}class Oy extends xy{constructor(e){super(),this.children=e}get firstChild(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}}class Qy extends Oy{constructor(){super(...arguments),this.type=yy.CDATA}get nodeType(){return 4}}class Ry extends Oy{constructor(){super(...arguments),this.type=yy.Root}get nodeType(){return 9}}class My extends Oy{constructor(e,t,n=[],r=("script"===e?yy.Script:"style"===e?yy.Style:yy.Tag)){super(n),this.name=e,this.attribs=t,this.type=r}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var t,n;return{name:e,value:this.attribs[e],namespace:null===(t=this["x-attribsNamespace"])||void 0===t?void 0:t[e],prefix:null===(n=this["x-attribsPrefix"])||void 0===n?void 0:n[e]}})}}function Hy(e){return(t=e).type===yy.Tag||t.type===yy.Script||t.type===yy.Style;var t}function Py(e){return e.type===yy.CDATA}function Ky(e){return e.type===yy.Text}function Gy(e){return e.type===yy.Comment}function $y(e){return e.type===yy.Directive}function Vy(e){return e.type===yy.Root}function Wy(e){return Object.prototype.hasOwnProperty.call(e,"children")}function jy(e,t=!1){let n;if(Ky(e))n=new Uy(e.data);else if(Gy(e))n=new Ny(e.data);else if(Hy(e)){const r=t?Yy(e.children):[],A=new My(e.name,{...e.attribs},r);r.forEach(e=>e.parent=A),null!=e.namespace&&(A.namespace=e.namespace),e["x-attribsNamespace"]&&(A["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(A["x-attribsPrefix"]={...e["x-attribsPrefix"]}),n=A}else if(Py(e)){const r=t?Yy(e.children):[],A=new Qy(r);r.forEach(e=>e.parent=A),n=A}else if(Vy(e)){const r=t?Yy(e.children):[],A=new Ry(r);r.forEach(e=>e.parent=A),e["x-mode"]&&(A["x-mode"]=e["x-mode"]),n=A}else{if(!$y(e))throw new Error("Not implemented yet: "+e.type);{const t=new Dy(e.name,e.data);null!=e["x-name"]&&(t["x-name"]=e["x-name"],t["x-publicId"]=e["x-publicId"],t["x-systemId"]=e["x-systemId"]),n=t}}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function Yy(e){const t=e.map(e=>jy(e,!0));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}const Xy={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class zy{constructor(e,t,n){this.dom=[],this.root=new Ry(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=Xy),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:Xy,this.elementCB=null!=n?n:null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new Ry(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;const e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,t){const n=this.options.xmlMode?yy.Tag:void 0,r=new My(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)}ontext(e){const{lastNode:t}=this;if(t&&t.type===yy.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{const t=new Uy(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===yy.Comment)return void(this.lastNode.data+=e);const t=new Ny(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){const e=new Uy(""),t=new Qy([e]);this.addNode(t),e.parent=t,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){const n=new Dy(e,t);this.addNode(n)}handleCallback(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e}addNode(e){const t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null}}const qy=/["&'<>$\x80-\uFFFF]/g,Jy=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),Zy=null!=String.prototype.codePointAt?(e,t)=>e.codePointAt(t):(e,t)=>55296==(64512&e.charCodeAt(t))?1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function eC(e){let t,n="",r=0;for(;null!==(t=qy.exec(e));){const A=t.index,i=e.charCodeAt(A),o=Jy.get(i);void 0!==o?(n+=e.substring(r,A)+o,r=A+1):(n+=`${e.substring(r,A)}&#x${Zy(e,A).toString(16)};`,r=qy.lastIndex+=Number(55296==(64512&i)))}return n+e.substr(r)}function tC(e,t){return function(n){let r,A=0,i="";for(;r=e.exec(n);)A!==r.index&&(i+=n.substring(A,r.index)),i+=t.get(r[0].charCodeAt(0)),A=r.index+1;return i+n.substring(A)}}const nC=tC(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),rC=tC(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),AC=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),iC=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),oC=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function aC(e){return e.replace(/"/g,"&quot;")}const sC=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function cC(e,t={}){const n="length"in e?e:[e];let r="";for(let e=0;e<n.length;e++)r+=lC(n[e],t);return r}function lC(e,t){switch(e.type){case Cy:return cC(e.children,t);case Fy:case wy:return`<${e.data}>`;case Ty:return function(e){return`\x3c!--${e.data}--\x3e`}(e);case ky:return function(e){return`<![CDATA[${e.children[0].data}]]>`}(e);case _y:case Iy:case Sy:return function(e,t){var n;"foreign"===t.xmlMode&&(e.name=null!==(n=AC.get(e.name))&&void 0!==n?n:e.name,e.parent&&uC.has(e.parent.name)&&(t={...t,xmlMode:!1}));!t.xmlMode&&fC.has(e.name)&&(t={...t,xmlMode:"foreign"});let r="<"+e.name;const A=function(e,t){var n;if(!e)return;const r=!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)?aC:t.xmlMode||"utf8"!==t.encodeEntities?eC:nC;return Object.keys(e).map(n=>{var A,i;const o=null!==(A=e[n])&&void 0!==A?A:"";return"foreign"===t.xmlMode&&(n=null!==(i=iC.get(n))&&void 0!==i?i:n),t.emptyAttrs||t.xmlMode||""!==o?`${n}="${r(o)}"`:n}).join(" ")}(e.attribs,t);A&&(r+=" "+A);0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&sC.has(e.name))?(t.xmlMode||(r+=" "),r+="/>"):(r+=">",e.children.length>0&&(r+=cC(e.children,t)),!t.xmlMode&&sC.has(e.name)||(r+=`</${e.name}>`));return r}(e,t);case by:return function(e,t){var n;let r=e.data||"";!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)||!t.xmlMode&&e.parent&&oC.has(e.parent.name)||(r=t.xmlMode||"utf8"!==t.encodeEntities?eC(r):rC(r));return r}(e,t)}}const uC=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),fC=new Set(["svg","math"]);function hC(e,t){return cC(e,t)}function dC(e){return Array.isArray(e)?e.map(dC).join(""):Wy(e)&&!Gy(e)?dC(e.children):Ky(e)?e.data:""}function pC(e){return Array.isArray(e)?e.map(pC).join(""):Wy(e)&&(e.type===yy.Tag||Py(e))?pC(e.children):Ky(e)?e.data:""}function gC(e){return Wy(e)?e.children:[]}function mC(e){return e.parent||null}function vC(e){const t=mC(e);if(null!=t)return gC(t);const n=[e];let{prev:r,next:A}=e;for(;null!=r;)n.unshift(r),({prev:r}=r);for(;null!=A;)n.push(A),({next:A}=A);return n}function BC(e){let{next:t}=e;for(;null!==t&&!Hy(t);)({next:t}=t);return t}function EC(e){let{prev:t}=e;for(;null!==t&&!Hy(t);)({prev:t}=t);return t}function yC(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){const t=e.parent.children;t.splice(t.lastIndexOf(e),1)}}function CC(e,t,n=!0,r=1/0){return Array.isArray(t)||(t=[t]),bC(e,t,n,r)}function bC(e,t,n,r){const A=[];for(const i of t){if(e(i)&&(A.push(i),--r<=0))break;if(n&&Wy(i)&&i.children.length>0){const t=bC(e,i.children,n,r);if(A.push(...t),(r-=t.length)<=0)break}}return A}function wC(e,t,n=!0){let r=null;for(let A=0;A<t.length&&!r;A++){const i=t[A];Hy(i)&&(e(i)?r=i:n&&i.children.length>0&&(r=wC(e,i.children,!0)))}return r}const TC={tag_name:e=>"function"==typeof e?t=>Hy(t)&&e(t.name):"*"===e?Hy:t=>Hy(t)&&t.name===e,tag_type:e=>"function"==typeof e?t=>e(t.type):t=>t.type===e,tag_contains:e=>"function"==typeof e?t=>Ky(t)&&e(t.data):t=>Ky(t)&&t.data===e};function _C(e,t){return"function"==typeof t?n=>Hy(n)&&t(n.attribs[e]):n=>Hy(n)&&n.attribs[e]===t}function IC(e,t){return n=>e(n)||t(n)}function SC(e){const t=Object.keys(e).map(t=>{const n=e[t];return Object.prototype.hasOwnProperty.call(TC,t)?TC[t](n):_C(t,n)});return 0===t.length?null:t.reduce(IC)}function kC(e,t,n=!0,r=1/0){return CC(TC.tag_name(e),t,n,r)}var FC;function xC(e,t){const n=[],r=[];if(e===t)return 0;let A=Wy(e)?e:e.parent;for(;A;)n.unshift(A),A=A.parent;for(A=Wy(t)?t:t.parent;A;)r.unshift(A),A=A.parent;const i=Math.min(n.length,r.length);let o=0;for(;o<i&&n[o]===r[o];)o++;if(0===o)return FC.DISCONNECTED;const a=n[o-1],s=a.children,c=n[o],l=r[o];return s.indexOf(c)>s.indexOf(l)?a===t?FC.FOLLOWING|FC.CONTAINED_BY:FC.FOLLOWING:a===e?FC.PRECEDING|FC.CONTAINS:FC.PRECEDING}function LC(e){return(e=e.filter((e,t,n)=>!n.includes(e,t+1))).sort((e,t)=>{const n=xC(e,t);return n&FC.PRECEDING?-1:n&FC.FOLLOWING?1:0}),e}!function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"}(FC||(FC={}));const UC=["url","type","lang"],NC=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function DC(e){return kC("media:content",e).map(e=>{const{attribs:t}=e,n={medium:t.medium,isDefault:!!t.isDefault};for(const e of UC)t[e]&&(n[e]=t[e]);for(const e of NC)t[e]&&(n[e]=parseInt(t[e],10));return t.expression&&(n.expression=t.expression),n})}function OC(e,t){return kC(e,t,!0,1)[0]}function QC(e,t,n=!1){return dC(kC(e,t,n,1)).trim()}function RC(e,t,n,r,A=!1){const i=QC(n,r,A);i&&(e[t]=i)}function MC(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}var HC=Object.freeze({__proto__:null,isTag:Hy,isCDATA:Py,isText:Ky,isComment:Gy,isDocument:Vy,hasChildren:Wy,getOuterHTML:hC,getInnerHTML:function(e,t){return Wy(e)?e.children.map(e=>hC(e,t)).join(""):""},getText:function e(t){return Array.isArray(t)?t.map(e).join(""):Hy(t)?"br"===t.name?"\n":e(t.children):Py(t)?e(t.children):Ky(t)?t.data:""},textContent:dC,innerText:pC,getChildren:gC,getParent:mC,getSiblings:vC,getAttributeValue:function(e,t){var n;return null===(n=e.attribs)||void 0===n?void 0:n[t]},hasAttrib:function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},getName:function(e){return e.name},nextElementSibling:BC,prevElementSibling:EC,removeElement:yC,replaceElement:function(e,t){const n=t.prev=e.prev;n&&(n.next=t);const r=t.next=e.next;r&&(r.prev=t);const A=t.parent=e.parent;if(A){const n=A.children;n[n.lastIndexOf(e)]=t,e.parent=null}},appendChild:function(e,t){if(yC(t),t.next=null,t.parent=e,e.children.push(t)>1){const n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null},append:function(e,t){yC(t);const{parent:n}=e,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){const e=n.children;e.splice(e.lastIndexOf(r),0,t)}}else n&&n.children.push(t)},prependChild:function(e,t){if(yC(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){const n=e.children[1];n.prev=t,t.next=n}else t.next=null},prepend:function(e,t){yC(t);const{parent:n}=e;if(n){const r=n.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t},filter:CC,find:bC,findOneChild:function(e,t){return t.find(e)},findOne:wC,existsOne:function e(t,n){return n.some(n=>Hy(n)&&(t(n)||n.children.length>0&&e(t,n.children)))},findAll:function(e,t){var n;const r=[],A=t.filter(Hy);let i;for(;i=A.shift();){const t=null===(n=i.children)||void 0===n?void 0:n.filter(Hy);t&&t.length>0&&A.unshift(...t),e(i)&&r.push(i)}return r},testElement:function(e,t){const n=SC(e);return!n||n(t)},getElements:function(e,t,n,r=1/0){const A=SC(e);return A?CC(A,t,n,r):[]},getElementById:function(e,t,n=!0){return Array.isArray(t)||(t=[t]),wC(_C("id",e),t,n)},getElementsByTagName:kC,getElementsByTagType:function(e,t,n=!0,r=1/0){return CC(TC.tag_type(e),t,n,r)},removeSubsets:function(e){let t=e.length;for(;--t>=0;){const n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0)e.splice(t,1);else for(let r=n.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e},get DocumentPosition(){return FC},compareDocumentPosition:xC,uniqueSort:LC,getFeed:function(e){const t=OC(MC,e);return t?"feed"===t.name?function(e){var t;const n=e.children,r={type:"atom",items:kC("entry",n).map(e=>{var t;const{children:n}=e,r={media:DC(n)};RC(r,"id","id",n),RC(r,"title","title",n);const A=null===(t=OC("link",n))||void 0===t?void 0:t.attribs.href;A&&(r.link=A);const i=QC("summary",n)||QC("content",n);i&&(r.description=i);const o=QC("updated",n);return o&&(r.pubDate=new Date(o)),r})};RC(r,"id","id",n),RC(r,"title","title",n);const A=null===(t=OC("link",n))||void 0===t?void 0:t.attribs.href;A&&(r.link=A);RC(r,"description","subtitle",n);const i=QC("updated",n);i&&(r.updated=new Date(i));return RC(r,"author","email",n,!0),r}(t):function(e){var t,n;const r=null!==(n=null===(t=OC("channel",e.children))||void 0===t?void 0:t.children)&&void 0!==n?n:[],A={type:e.name.substr(0,3),id:"",items:kC("item",e.children).map(e=>{const{children:t}=e,n={media:DC(t)};RC(n,"id","guid",t),RC(n,"title","title",t),RC(n,"link","link",t),RC(n,"description","description",t);const r=QC("pubDate",t);return r&&(n.pubDate=new Date(r)),n})};RC(A,"title","title",r),RC(A,"link","link",r),RC(A,"description","description",r);const i=QC("lastBuildDate",r);i&&(A.updated=new Date(i));return RC(A,"author","managingEditor",r,!0),A}(t):null}});function PC(e,t,n){return e?e(null!=t?t:e._root.children,null,void 0,n).toString():""}function KC(e){const t=e||(this?this.root():[]);let n="";for(let e=0;e<t.length;e++)n+=dC(t[e]);return n}function GC(e,t){if(t===e)return!1;let n=t;for(;n&&n!==n.parent;)if(n=n.parent,n===e)return!0;return!1}function $C(e){if(Array.isArray(e))return!0;if("object"!=typeof e||!Object.prototype.hasOwnProperty.call(e,"length")||"number"!=typeof e.length||e.length<0)return!1;for(let t=0;t<e.length;t++)if(!(t in e))return!1;return!0}var VC,WC=Object.freeze({__proto__:null,html:function(e,t){return PC(this,function(e,t){return!t&&"object"==typeof e&&null!=e&&!("length"in e)&&!("type"in e)}(e)?void(t=e):e,{...vy,...null==this?void 0:this._options,...Ey(null!=t?t:{})})},xml:function(e){return PC(this,e,{...this._options,xmlMode:!0})},text:KC,parseHTML:function(e,t,n="boolean"==typeof t&&t){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t);const r=this.load(e,vy,!1);return n||r("script").remove(),r.root()[0].children.slice()},root:function(){return this(this._root)},contains:GC,merge:function(e,t){if(!$C(e)||!$C(t))return;let n=e.length;const r=+t.length;for(let A=0;A<r;A++)e[n++]=t[A];return e.length=n,e}});function jC(e){return null!=e.cheerio}function YC(e,t){const n=e.length;for(let r=0;r<n;r++)t(e[r],r);return e}function XC(e){const t="length"in e?Array.prototype.map.call(e,e=>jy(e,!0)):[jy(e,!0)],n=new Ry(t);return t.forEach(e=>{e.parent=n}),t}function zC(e){const t=e.indexOf("<");if(t<0||t>e.length-3)return!1;const n=e.charCodeAt(t+1);return(n>=VC.LowerA&&n<=VC.LowerZ||n>=VC.UpperA&&n<=VC.UpperZ||n===VC.Exclamation)&&e.includes(">",t+2)}!function(e){e[e.LowerA=97]="LowerA",e[e.LowerZ=122]="LowerZ",e[e.UpperA=65]="UpperA",e[e.UpperZ=90]="UpperZ",e[e.Exclamation=33]="Exclamation"}(VC||(VC={}));const qC=Object.prototype.hasOwnProperty,JC=/\s+/,ZC={null:null,true:!0,false:!1},eb=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,tb=/^{[^]*}$|^\[[^]*]$/;function nb(e,t,n){var r;if(e&&Hy(e))return null!==(r=e.attribs)&&void 0!==r||(e.attribs={}),t?qC.call(e.attribs,t)?!n&&eb.test(t)?t:e.attribs[t]:"option"===e.name&&"value"===t?KC(e.children):"input"!==e.name||"radio"!==e.attribs.type&&"checkbox"!==e.attribs.type||"value"!==t?void 0:"on":e.attribs}function rb(e,t,n){null===n?sb(e,t):e.attribs[t]=""+n}function Ab(e,t,n){if(e&&Hy(e))return t in e?e[t]:!n&&eb.test(t)?void 0!==nb(e,t,!1):nb(e,t,n)}function ib(e,t,n,r){t in e?e[t]=n:rb(e,t,!r&&eb.test(t)?n?"":null:""+n)}function ob(e,t,n){var r;const A=e;null!==(r=A.data)&&void 0!==r||(A.data={}),"object"==typeof t?Object.assign(A.data,t):"string"==typeof t&&void 0!==n&&(A.data[t]=n)}function ab(e,t){let n,r,A;var i;null==t?(n=Object.keys(e.attribs).filter(e=>e.startsWith("data-")),r=n.map(e=>e.slice("data-".length).replace(/[_.-](\w|$)/g,(e,t)=>t.toUpperCase()))):(n=["data-"+(i=t,i.replace(/[A-Z]/g,"-$&").toLowerCase())],r=[t]);for(let t=0;t<n.length;++t){const i=n[t],o=r[t];if(qC.call(e.attribs,i)&&!qC.call(e.data,o)){if(A=e.attribs[i],qC.call(ZC,A))A=ZC[A];else if(A===String(Number(A)))A=Number(A);else if(tb.test(A))try{A=JSON.parse(A)}catch(e){}e.data[o]=A}}return null==t?e.data:A}function sb(e,t){e.attribs&&qC.call(e.attribs,t)&&delete e.attribs[t]}function cb(e){return e?e.trim().split(JC):[]}var lb,ub,fb=Object.freeze({__proto__:null,attr:function(e,t){if("object"==typeof e||void 0!==t){if("function"==typeof t){if("string"!=typeof e)throw new Error("Bad combination of arguments.");return YC(this,(n,r)=>{Hy(n)&&rb(n,e,t.call(n,r,n.attribs[e]))})}return YC(this,n=>{Hy(n)&&("object"==typeof e?Object.keys(e).forEach(t=>{const r=e[t];rb(n,t,r)}):rb(n,e,t))})}return arguments.length>1?this:nb(this[0],e,this.options.xmlMode)},prop:function(e,t){var n;if("string"==typeof e&&void 0===t)switch(e){case"style":{const e=this.css(),t=Object.keys(e);return t.forEach((t,n)=>{e[n]=t}),e.length=t.length,e}case"tagName":case"nodeName":{const e=this[0];return Hy(e)?e.name.toUpperCase():void 0}case"href":case"src":{const t=this[0];if(!Hy(t))return;const r=null===(n=t.attribs)||void 0===n?void 0:n[e];return"undefined"==typeof URL||("href"!==e||"a"!==t.tagName&&"link"!==t.name)&&("src"!==e||"img"!==t.tagName&&"iframe"!==t.tagName&&"audio"!==t.tagName&&"video"!==t.tagName&&"source"!==t.tagName)||void 0===r||!this.options.baseURI?r:new URL(r,this.options.baseURI).href}case"innerText":return pC(this[0]);case"textContent":return dC(this[0]);case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return Ab(this[0],e,this.options.xmlMode)}if("object"==typeof e||void 0!==t){if("function"==typeof t){if("object"==typeof e)throw new Error("Bad combination of arguments.");return YC(this,(n,r)=>{Hy(n)&&ib(n,e,t.call(n,r,Ab(n,e,this.options.xmlMode)),this.options.xmlMode)})}return YC(this,n=>{Hy(n)&&("object"==typeof e?Object.keys(e).forEach(t=>{const r=e[t];ib(n,t,r,this.options.xmlMode)}):ib(n,e,t,this.options.xmlMode))})}},data:function(e,t){var n;const r=this[0];if(!r||!Hy(r))return;const A=r;return null!==(n=A.data)&&void 0!==n||(A.data={}),e?"object"==typeof e||void 0!==t?(YC(this,n=>{Hy(n)&&("object"==typeof e?ob(n,e):ob(n,e,t))}),this):qC.call(A.data,e)?A.data[e]:ab(A,e):ab(A)},val:function(e){const t=0===arguments.length,n=this[0];if(!n||!Hy(n))return t?void 0:this;switch(n.name){case"textarea":return this.text(e);case"select":{const n=this.find("option:selected");if(!t){if(null==this.attr("multiple")&&"object"==typeof e)return this;this.find("option").removeAttr("selected");const t="object"!=typeof e?[e]:e;for(let e=0;e<t.length;e++)this.find(`option[value="${t[e]}"]`).attr("selected","");return this}return this.attr("multiple")?n.toArray().map(e=>KC(e.children)):n.attr("value")}case"input":case"option":return t?this.attr("value"):this.attr("value",e)}},removeAttr:function(e){const t=cb(e);for(let e=0;e<t.length;e++)YC(this,n=>{Hy(n)&&sb(n,t[e])});return this},hasClass:function(e){return this.toArray().some(t=>{const n=Hy(t)&&t.attribs.class;let r=-1;if(n&&e.length)for(;(r=n.indexOf(e,r+1))>-1;){const t=r+e.length;if((0===r||JC.test(n[r-1]))&&(t===n.length||JC.test(n[t])))return!0}return!1})},addClass:function e(t){if("function"==typeof t)return YC(this,(n,r)=>{if(Hy(n)){const A=n.attribs.class||"";e.call([n],t.call(n,r,A))}});if(!t||"string"!=typeof t)return this;const n=t.split(JC),r=this.length;for(let e=0;e<r;e++){const t=this[e];if(!Hy(t))continue;const r=nb(t,"class",!1);if(r){let e=` ${r} `;for(let t=0;t<n.length;t++){const r=n[t]+" ";e.includes(" "+r)||(e+=r)}rb(t,"class",e.trim())}else rb(t,"class",n.join(" ").trim())}return this},removeClass:function e(t){if("function"==typeof t)return YC(this,(n,r)=>{Hy(n)&&e.call([n],t.call(n,r,n.attribs.class||""))});const n=cb(t),r=n.length,A=0===arguments.length;return YC(this,e=>{if(Hy(e))if(A)e.attribs.class="";else{const t=cb(e.attribs.class);let A=!1;for(let e=0;e<r;e++){const r=t.indexOf(n[e]);r>=0&&(t.splice(r,1),A=!0,e--)}A&&(e.attribs.class=t.join(" "))}})},toggleClass:function e(t,n){if("function"==typeof t)return YC(this,(r,A)=>{Hy(r)&&e.call([r],t.call(r,A,r.attribs.class||"",n),n)});if(!t||"string"!=typeof t)return this;const r=t.split(JC),A=r.length,i="boolean"==typeof n?n?1:-1:0,o=this.length;for(let e=0;e<o;e++){const t=this[e];if(!Hy(t))continue;const n=cb(t.attribs.class);for(let e=0;e<A;e++){const t=n.indexOf(r[e]);i>=0&&t<0?n.push(r[e]):i<=0&&t>=0&&n.splice(t,1)}t.attribs.class=n.join(" ")}return this}});!function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"}(lb||(lb={})),function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"}(ub||(ub={}));const hb=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,db=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,pb=new Map([[126,ub.Element],[94,ub.Start],[36,ub.End],[42,ub.Any],[33,ub.Not],[124,ub.Hyphen]]),gb=new Set(["has","not","matches","is","where","host","host-context"]);function mb(e){switch(e.type){case lb.Adjacent:case lb.Child:case lb.Descendant:case lb.Parent:case lb.Sibling:case lb.ColumnCombinator:return!0;default:return!1}}const vb=new Set(["contains","icontains"]);function Bb(e,t,n){const r=parseInt(t,16)-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)}function Eb(e){return e.replace(db,Bb)}function yb(e){return 39===e||34===e}function Cb(e){return 32===e||9===e||10===e||12===e||13===e}function bb(e){const t=[],n=function e(t,n,r){let A=[];function i(e){const t=n.slice(r+e).match(hb);if(!t)throw new Error("Expected name, found "+n.slice(r));const[A]=t;return r+=e+A.length,Eb(A)}function o(e){for(r+=e;r<n.length&&Cb(n.charCodeAt(r));)r++}function a(){const e=r+=1;let t=1;for(;t>0&&r<n.length;r++)40!==n.charCodeAt(r)||s(r)?41!==n.charCodeAt(r)||s(r)||t--:t++;if(t)throw new Error("Parenthesis not matched");return Eb(n.slice(e,r-1))}function s(e){let t=0;for(;92===n.charCodeAt(--e);)t++;return 1==(1&t)}function c(){if(A.length>0&&mb(A[A.length-1]))throw new Error("Did not expect successive traversals.")}function l(e){A.length>0&&A[A.length-1].type===lb.Descendant?A[A.length-1].type=e:(c(),A.push({type:e}))}function u(e,t){A.push({type:lb.Attribute,name:e,action:t,value:i(1),namespace:null,ignoreCase:"quirks"})}function f(){if(A.length&&A[A.length-1].type===lb.Descendant&&A.pop(),0===A.length)throw new Error("Empty sub-selector");t.push(A)}if(o(0),n.length===r)return r;e:for(;r<n.length;){const t=n.charCodeAt(r);switch(t){case 32:case 9:case 10:case 12:case 13:0!==A.length&&A[0].type===lb.Descendant||(c(),A.push({type:lb.Descendant})),o(1);break;case 62:l(lb.Child),o(1);break;case 60:l(lb.Parent),o(1);break;case 126:l(lb.Sibling),o(1);break;case 43:l(lb.Adjacent),o(1);break;case 46:u("class",ub.Element);break;case 35:u("id",ub.Equals);break;case 91:{let e;o(1);let t=null;124===n.charCodeAt(r)?e=i(1):n.startsWith("*|",r)?(t="*",e=i(2)):(e=i(0),124===n.charCodeAt(r)&&61!==n.charCodeAt(r+1)&&(t=e,e=i(1))),o(0);let a=ub.Exists;const c=pb.get(n.charCodeAt(r));if(c){if(a=c,61!==n.charCodeAt(r+1))throw new Error("Expected `=`");o(2)}else 61===n.charCodeAt(r)&&(a=ub.Equals,o(1));let l="",u=null;if("exists"!==a){if(yb(n.charCodeAt(r))){const e=n.charCodeAt(r);let t=r+1;for(;t<n.length&&(n.charCodeAt(t)!==e||s(t));)t+=1;if(n.charCodeAt(t)!==e)throw new Error("Attribute value didn't end");l=Eb(n.slice(r+1,t)),r=t+1}else{const e=r;for(;r<n.length&&(!Cb(n.charCodeAt(r))&&93!==n.charCodeAt(r)||s(r));)r+=1;l=Eb(n.slice(e,r))}o(0);const e=32|n.charCodeAt(r);115===e?(u=!1,o(1)):105===e&&(u=!0,o(1))}if(93!==n.charCodeAt(r))throw new Error("Attribute selector didn't terminate");r+=1;const f={type:lb.Attribute,name:e,action:a,value:l,namespace:t,ignoreCase:u};A.push(f);break}case 58:{if(58===n.charCodeAt(r+1)){A.push({type:lb.PseudoElement,name:i(2).toLowerCase(),data:40===n.charCodeAt(r)?a():null});continue}const t=i(1).toLowerCase();let o=null;if(40===n.charCodeAt(r))if(gb.has(t)){if(yb(n.charCodeAt(r+1)))throw new Error(`Pseudo-selector ${t} cannot be quoted`);if(o=[],r=e(o,n,r+1),41!==n.charCodeAt(r))throw new Error(`Missing closing parenthesis in :${t} (${n})`);r+=1}else{if(o=a(),vb.has(t)){const e=o.charCodeAt(0);e===o.charCodeAt(o.length-1)&&yb(e)&&(o=o.slice(1,-1))}o=Eb(o)}A.push({type:lb.Pseudo,name:t,data:o});break}case 44:f(),A=[],o(1);break;default:{if(n.startsWith("/*",r)){const e=n.indexOf("*/",r+2);if(e<0)throw new Error("Comment was not terminated");r=e+2,0===A.length&&o(0);break}let e,a=null;if(42===t)r+=1,e="*";else if(124===t){if(e="",124===n.charCodeAt(r+1)){l(lb.ColumnCombinator),o(2);break}}else{if(!hb.test(n.slice(r)))break e;e=i(0)}124===n.charCodeAt(r)&&124!==n.charCodeAt(r+1)&&(a=e,42===n.charCodeAt(r+1)?(e="*",r+=2):e=i(1)),A.push("*"===e?{type:lb.Universal,namespace:a}:{type:lb.Tag,name:e,namespace:a})}}}return f(),r}(t,""+e,0);if(n<e.length)throw new Error("Unmatched selector: "+e.slice(n));return t}var wb={trueFunc:function(){return!0},falseFunc:function(){return!1}},Tb=wb.trueFunc,_b=wb.falseFunc;const Ib=new Map([[lb.Universal,50],[lb.Tag,30],[lb.Attribute,1],[lb.Pseudo,0]]);function Sb(e){return!Ib.has(e.type)}const kb=new Map([[ub.Exists,10],[ub.Equals,8],[ub.Not,7],[ub.Start,6],[ub.End,6],[ub.Any,5]]);function Fb(e){const t=e.map(xb);for(let n=1;n<e.length;n++){const r=t[n];if(!(r<0))for(let A=n-1;A>=0&&r<t[A];A--){const n=e[A+1];e[A+1]=e[A],e[A]=n,t[A+1]=t[A],t[A]=r}}}function xb(e){var t,n;let r=null!==(t=Ib.get(e.type))&&void 0!==t?t:-1;return e.type===lb.Attribute?(r=null!==(n=kb.get(e.action))&&void 0!==n?n:4,e.action===ub.Equals&&"id"===e.name&&(r=9),e.ignoreCase&&(r>>=1)):e.type===lb.Pseudo&&(e.data?"has"===e.name||"contains"===e.name?r=0:Array.isArray(e.data)?(r=Math.min(...e.data.map(e=>Math.min(...e.map(xb)))),r<0&&(r=0)):r=2:r=3),r}const Lb=/[-[\]{}()*+?.,\\^$|#\s]/g;function Ub(e){return e.replace(Lb,"\\$&")}const Nb=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function Db(e,t){return"boolean"==typeof e.ignoreCase?e.ignoreCase:"quirks"===e.ignoreCase?!!t.quirksMode:!t.xmlMode&&Nb.has(e.name)}const Ob={equals(e,t,n){const{adapter:r}=n,{name:A}=t;let{value:i}=t;return Db(t,n)?(i=i.toLowerCase(),t=>{const n=r.getAttributeValue(t,A);return null!=n&&n.length===i.length&&n.toLowerCase()===i&&e(t)}):t=>r.getAttributeValue(t,A)===i&&e(t)},hyphen(e,t,n){const{adapter:r}=n,{name:A}=t;let{value:i}=t;const o=i.length;return Db(t,n)?(i=i.toLowerCase(),function(t){const n=r.getAttributeValue(t,A);return null!=n&&(n.length===o||"-"===n.charAt(o))&&n.substr(0,o).toLowerCase()===i&&e(t)}):function(t){const n=r.getAttributeValue(t,A);return null!=n&&(n.length===o||"-"===n.charAt(o))&&n.substr(0,o)===i&&e(t)}},element(e,t,n){const{adapter:r}=n,{name:A,value:i}=t;if(/\s/.test(i))return wb.falseFunc;const o=new RegExp(`(?:^|\\s)${Ub(i)}(?:$|\\s)`,Db(t,n)?"i":"");return function(t){const n=r.getAttributeValue(t,A);return null!=n&&n.length>=i.length&&o.test(n)&&e(t)}},exists:(e,{name:t},{adapter:n})=>r=>n.hasAttrib(r,t)&&e(r),start(e,t,n){const{adapter:r}=n,{name:A}=t;let{value:i}=t;const o=i.length;return 0===o?wb.falseFunc:Db(t,n)?(i=i.toLowerCase(),t=>{const n=r.getAttributeValue(t,A);return null!=n&&n.length>=o&&n.substr(0,o).toLowerCase()===i&&e(t)}):t=>{var n;return!!(null===(n=r.getAttributeValue(t,A))||void 0===n?void 0:n.startsWith(i))&&e(t)}},end(e,t,n){const{adapter:r}=n,{name:A}=t;let{value:i}=t;const o=-i.length;return 0===o?wb.falseFunc:Db(t,n)?(i=i.toLowerCase(),t=>{var n;return(null===(n=r.getAttributeValue(t,A))||void 0===n?void 0:n.substr(o).toLowerCase())===i&&e(t)}):t=>{var n;return!!(null===(n=r.getAttributeValue(t,A))||void 0===n?void 0:n.endsWith(i))&&e(t)}},any(e,t,n){const{adapter:r}=n,{name:A,value:i}=t;if(""===i)return wb.falseFunc;if(Db(t,n)){const t=new RegExp(Ub(i),"i");return function(n){const o=r.getAttributeValue(n,A);return null!=o&&o.length>=i.length&&t.test(o)&&e(n)}}return t=>{var n;return!!(null===(n=r.getAttributeValue(t,A))||void 0===n?void 0:n.includes(i))&&e(t)}},not(e,t,n){const{adapter:r}=n,{name:A}=t;let{value:i}=t;return""===i?t=>!!r.getAttributeValue(t,A)&&e(t):Db(t,n)?(i=i.toLowerCase(),t=>{const n=r.getAttributeValue(t,A);return(null==n||n.length!==i.length||n.toLowerCase()!==i)&&e(t)}):t=>r.getAttributeValue(t,A)!==i&&e(t)}},Qb=new Set([9,10,12,13,32]),Rb="0".charCodeAt(0),Mb="9".charCodeAt(0);function Hb(e){return function(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return _b;if(-1===t)return e=>e<=n;if(0===t)return e=>e===n;if(1===t)return n<0?Tb:e=>e>=n;const r=Math.abs(t),A=(n%r+r)%r;return t>1?e=>e>=n&&e%r===A:e=>e<=n&&e%r===A}(function(e){if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];let t=0,n=0,r=i(),A=o();if(t<e.length&&"n"===e.charAt(t)&&(t++,n=r*(null!=A?A:1),a(),t<e.length?(r=i(),a(),A=o()):r=A=0),null===A||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[n,r*A];function i(){return"-"===e.charAt(t)?(t++,-1):("+"===e.charAt(t)&&t++,1)}function o(){const n=t;let r=0;for(;t<e.length&&e.charCodeAt(t)>=Rb&&e.charCodeAt(t)<=Mb;)r=10*r+(e.charCodeAt(t)-Rb),t++;return t===n?null:r}function a(){for(;t<e.length&&Qb.has(e.charCodeAt(t));)t++}}(e))}function Pb(e,t){return n=>{const r=t.getParent(n);return null!=r&&t.isTag(r)&&e(n)}}const Kb={contains:(e,t,{adapter:n})=>function(r){return e(r)&&n.getText(r).includes(t)},icontains(e,t,{adapter:n}){const r=t.toLowerCase();return function(t){return e(t)&&n.getText(t).toLowerCase().includes(r)}},"nth-child"(e,t,{adapter:n,equals:r}){const A=Hb(t);return A===wb.falseFunc?wb.falseFunc:A===wb.trueFunc?Pb(e,n):function(t){const i=n.getSiblings(t);let o=0;for(let e=0;e<i.length&&!r(t,i[e]);e++)n.isTag(i[e])&&o++;return A(o)&&e(t)}},"nth-last-child"(e,t,{adapter:n,equals:r}){const A=Hb(t);return A===wb.falseFunc?wb.falseFunc:A===wb.trueFunc?Pb(e,n):function(t){const i=n.getSiblings(t);let o=0;for(let e=i.length-1;e>=0&&!r(t,i[e]);e--)n.isTag(i[e])&&o++;return A(o)&&e(t)}},"nth-of-type"(e,t,{adapter:n,equals:r}){const A=Hb(t);return A===wb.falseFunc?wb.falseFunc:A===wb.trueFunc?Pb(e,n):function(t){const i=n.getSiblings(t);let o=0;for(let e=0;e<i.length;e++){const A=i[e];if(r(t,A))break;n.isTag(A)&&n.getName(A)===n.getName(t)&&o++}return A(o)&&e(t)}},"nth-last-of-type"(e,t,{adapter:n,equals:r}){const A=Hb(t);return A===wb.falseFunc?wb.falseFunc:A===wb.trueFunc?Pb(e,n):function(t){const i=n.getSiblings(t);let o=0;for(let e=i.length-1;e>=0;e--){const A=i[e];if(r(t,A))break;n.isTag(A)&&n.getName(A)===n.getName(t)&&o++}return A(o)&&e(t)}},root:(e,t,{adapter:n})=>t=>{const r=n.getParent(t);return(null==r||!n.isTag(r))&&e(t)},scope(e,t,n,r){const{equals:A}=n;return r&&0!==r.length?1===r.length?t=>A(r[0],t)&&e(t):t=>r.includes(t)&&e(t):Kb.root(e,t,n)},hover:Gb("isHovered"),visited:Gb("isVisited"),active:Gb("isActive")};function Gb(e){return function(t,n,{adapter:r}){const A=r[e];return"function"!=typeof A?wb.falseFunc:function(e){return A(e)&&t(e)}}}const $b={empty:(e,{adapter:t})=>!t.getChildren(e).some(e=>t.isTag(e)||""!==t.getText(e)),"first-child"(e,{adapter:t,equals:n}){if(t.prevElementSibling)return null==t.prevElementSibling(e);const r=t.getSiblings(e).find(e=>t.isTag(e));return null!=r&&n(e,r)},"last-child"(e,{adapter:t,equals:n}){const r=t.getSiblings(e);for(let A=r.length-1;A>=0;A--){if(n(e,r[A]))return!0;if(t.isTag(r[A]))break}return!1},"first-of-type"(e,{adapter:t,equals:n}){const r=t.getSiblings(e),A=t.getName(e);for(let i=0;i<r.length;i++){const o=r[i];if(n(e,o))return!0;if(t.isTag(o)&&t.getName(o)===A)break}return!1},"last-of-type"(e,{adapter:t,equals:n}){const r=t.getSiblings(e),A=t.getName(e);for(let i=r.length-1;i>=0;i--){const o=r[i];if(n(e,o))return!0;if(t.isTag(o)&&t.getName(o)===A)break}return!1},"only-of-type"(e,{adapter:t,equals:n}){const r=t.getName(e);return t.getSiblings(e).every(A=>n(e,A)||!t.isTag(A)||t.getName(A)!==r)},"only-child":(e,{adapter:t,equals:n})=>t.getSiblings(e).every(r=>n(e,r)||!t.isTag(r))};function Vb(e,t,n,r){if(null===n){if(e.length>r)throw new Error(`Pseudo-class :${t} requires an argument`)}else if(e.length===r)throw new Error(`Pseudo-class :${t} doesn't have any arguments`)}const Wb={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:":is(\n :is(button, input, select, textarea, optgroup, option)[disabled],\n optgroup[disabled] > option,\n fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)\n )",enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},jb={};function Yb(e,t){const n=t.getSiblings(e);if(n.length<=1)return[];const r=n.indexOf(e);return r<0||r===n.length-1?[]:n.slice(r+1).filter(t.isTag)}function Xb(e){return{xmlMode:!!e.xmlMode,lowerCaseAttributeNames:!!e.lowerCaseAttributeNames,lowerCaseTags:!!e.lowerCaseTags,quirksMode:!!e.quirksMode,cacheResults:!!e.cacheResults,pseudos:e.pseudos,adapter:e.adapter,equals:e.equals}}const zb=(e,t,n,r,A)=>{const i=A(t,Xb(n),r);return i===wb.trueFunc?e:i===wb.falseFunc?wb.falseFunc:t=>i(t)&&e(t)},qb={is:zb,matches:zb,where:zb,not(e,t,n,r,A){const i=A(t,Xb(n),r);return i===wb.falseFunc?e:i===wb.trueFunc?wb.falseFunc:t=>!i(t)&&e(t)},has(e,t,n,r,A){const{adapter:i}=n,o=Xb(n);o.relativeSelector=!0;const a=t.some(e=>e.some(Sb))?[jb]:void 0,s=A(t,o,a);if(s===wb.falseFunc)return wb.falseFunc;const c=function(e,t){return e===wb.falseFunc?wb.falseFunc:n=>t.isTag(n)&&e(n)}(s,i);if(a&&s!==wb.trueFunc){const{shouldTestNextSiblings:t=!1}=s;return n=>{if(!e(n))return!1;a[0]=n;const r=i.getChildren(n),A=t?[...r,...Yb(n,i)]:r;return i.existsOne(c,A)}}return t=>e(t)&&i.existsOne(c,i.getChildren(t))}};function Jb(e,t){const n=t.getParent(e);return n&&t.isTag(n)?n:null}function Zb(e,t,n,r,A){const{adapter:i,equals:o}=n;switch(t.type){case lb.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case lb.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case lb.Attribute:if(null!=t.namespace)throw new Error("Namespaced attributes are not yet supported by css-select");return n.xmlMode&&!n.lowerCaseAttributeNames||(t.name=t.name.toLowerCase()),Ob[t.action](e,t,n);case lb.Pseudo:return function(e,t,n,r,A){var i;const{name:o,data:a}=t;if(Array.isArray(a)){if(!(o in qb))throw new Error(`Unknown pseudo-class :${o}(${a})`);return qb[o](e,a,n,r,A)}const s=null===(i=n.pseudos)||void 0===i?void 0:i[o],c="string"==typeof s?s:Wb[o];if("string"==typeof c){if(null!=a)throw new Error(`Pseudo ${o} doesn't have any arguments`);const t=bb(c);return qb.is(e,t,n,r,A)}if("function"==typeof s)return Vb(s,o,a,1),t=>s(t,a)&&e(t);if(o in Kb)return Kb[o](e,a,n,r);if(o in $b){const t=$b[o];return Vb(t,o,a,2),r=>t(r,n,a)&&e(r)}throw new Error("Unknown pseudo-class :"+o)}(e,t,n,r,A);case lb.Tag:{if(null!=t.namespace)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:r}=t;return n.xmlMode&&!n.lowerCaseTags||(r=r.toLowerCase()),function(t){return i.getName(t)===r&&e(t)}}case lb.Descendant:{if(!1===n.cacheResults||"undefined"==typeof WeakSet)return function(t){let n=t;for(;n=Jb(n,i);)if(e(n))return!0;return!1};const t=new WeakSet;return function(n){let r=n;for(;r=Jb(r,i);)if(!t.has(r)){if(i.isTag(r)&&e(r))return!0;t.add(r)}return!1}}case"_flexibleDescendant":return function(t){let n=t;do{if(e(n))return!0}while(n=Jb(n,i));return!1};case lb.Parent:return function(t){return i.getChildren(t).some(t=>i.isTag(t)&&e(t))};case lb.Child:return function(t){const n=i.getParent(t);return null!=n&&i.isTag(n)&&e(n)};case lb.Sibling:return function(t){const n=i.getSiblings(t);for(let r=0;r<n.length;r++){const A=n[r];if(o(t,A))break;if(i.isTag(A)&&e(A))return!0}return!1};case lb.Adjacent:return i.prevElementSibling?function(t){const n=i.prevElementSibling(t);return null!=n&&e(n)}:function(t){const n=i.getSiblings(t);let r;for(let e=0;e<n.length;e++){const A=n[e];if(o(t,A))break;i.isTag(A)&&(r=A)}return!!r&&e(r)};case lb.Universal:if(null!=t.namespace&&"*"!==t.namespace)throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}function ew(e){return e.type===lb.Pseudo&&("scope"===e.name||Array.isArray(e.data)&&e.data.some(e=>e.some(ew)))}const tw={type:lb.Descendant},nw={type:"_flexibleDescendant"},rw={type:lb.Pseudo,name:"scope",data:null};function Aw(e,t,n){var r;e.forEach(Fb),n=null!==(r=t.context)&&void 0!==r?r:n;const A=Array.isArray(n),i=n&&(Array.isArray(n)?n:[n]);if(!1!==t.relativeSelector)!function(e,{adapter:t},n){const r=!!(null==n?void 0:n.every(e=>{const n=t.isTag(e)&&t.getParent(e);return e===jb||n&&t.isTag(n)}));for(const t of e){if(t.length>0&&Sb(t[0])&&t[0].type!==lb.Descendant);else{if(!r||t.some(ew))continue;t.unshift(tw)}t.unshift(rw)}}(e,t,i);else if(e.some(e=>e.length>0&&Sb(e[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let o=!1;const a=e.map(e=>{if(e.length>=2){const[t,n]=e;t.type!==lb.Pseudo||"scope"!==t.name||(A&&n.type===lb.Descendant?e[1]=nw:n.type!==lb.Adjacent&&n.type!==lb.Sibling||(o=!0))}return function(e,t,n){var r;return e.reduce((e,r)=>e===wb.falseFunc?wb.falseFunc:Zb(e,r,t,n,Aw),null!==(r=t.rootFunc)&&void 0!==r?r:wb.trueFunc)}(e,t,i)}).reduce(iw,wb.falseFunc);return a.shouldTestNextSiblings=o,a}function iw(e,t){return t===wb.falseFunc||e===wb.trueFunc?e:e===wb.falseFunc||t===wb.trueFunc?t:function(n){return e(n)||t(n)}}const ow=(e,t)=>e===t,aw={adapter:HC,equals:ow};const sw=(cw=Aw,function(e,t,n){const r=function(e){var t,n,r,A;const i=null!=e?e:aw;return null!==(t=i.adapter)&&void 0!==t||(i.adapter=HC),null!==(n=i.equals)&&void 0!==n||(i.equals=null!==(A=null===(r=i.adapter)||void 0===r?void 0:r.equals)&&void 0!==A?A:ow),i}(t);return cw(e,r,n)});var cw;function lw(e,t,n=!1){return n&&(e=function(e,t){const n=Array.isArray(e)?e.slice(0):[e],r=n.length;for(let e=0;e<r;e++){const r=Yb(n[e],t);n.push(...r)}return n}(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}const uw=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function fw(e){return"pseudo"===e.type&&(!!uw.has(e.name)||!("not"!==e.name||!Array.isArray(e.data))&&e.data.some(e=>e.some(fw)))}function hw(e){const t=[],n=[];for(const r of e)r.some(fw)?t.push(r):n.push(r);return[n,t]}const dw={type:lb.Universal,namespace:null},pw={type:lb.Pseudo,name:"scope",data:null};function gw(e,t,n={}){return mw([e],t,n)}function mw(e,t,n={}){if("function"==typeof t)return e.some(t);const[r,A]=hw(bb(t));return r.length>0&&e.some(sw(r,n))||A.some(t=>Ew(t,e,n).length>0)}function vw(e,t,n={}){return Bw(bb(e),t,n)}function Bw(e,t,n){if(0===t.length)return[];const[r,A]=hw(e);let i;if(r.length){const e=ww(t,r,n);if(0===A.length)return e;e.length&&(i=new Set(e))}for(let e=0;e<A.length&&(null==i?void 0:i.size)!==t.length;e++){const r=A[e];if(0===(i?t.filter(e=>Hy(e)&&!i.has(e)):t).length)break;const o=Ew(r,t,n);if(o.length)if(i)o.forEach(e=>i.add(e));else{if(e===A.length-1)return o;i=new Set(o)}}return void 0!==i?i.size===t.length?t:t.filter(e=>i.has(e)):[]}function Ew(e,t,n){var r;if(e.some(mb)){const A=null!==(r=n.root)&&void 0!==r?r:function(e){for(;e.parent;)e=e.parent;return e}(t[0]),i={...n,context:t,relativeSelector:!1};return e.push(pw),yw(A,e,i,!0,t.length)}return yw(t,e,n,!1,t.length)}function yw(e,t,n,r,A){const i=t.findIndex(fw),o=t.slice(0,i),a=t[i],s=t.length-1===i?A:1/0,c=function(e,t,n){const r=null!=t?parseInt(t,10):NaN;switch(e){case"first":return 1;case"nth":case"eq":return isFinite(r)?r>=0?r+1:1/0:0;case"lt":return isFinite(r)?r>=0?Math.min(r,n):1/0:0;case"gt":return isFinite(r)?1/0:0;case"odd":return 2*n;case"even":return 2*n-1;case"last":case"not":return 1/0}}(a.name,a.data,s);if(0===c)return[];const l=(0!==o.length||Array.isArray(e)?0===o.length?(Array.isArray(e)?e:[e]).filter(Hy):r||o.some(mb)?Cw(e,[o],n,c):ww(e,[o],n):gC(e).filter(Hy)).slice(0,c);let u=function(e,t,n,r){const A="string"==typeof n?parseInt(n,10):NaN;switch(e){case"first":case"lt":return t;case"last":return t.length>0?[t[t.length-1]]:t;case"nth":case"eq":return isFinite(A)&&Math.abs(A)<t.length?[A<0?t[t.length+A]:t[A]]:[];case"gt":return isFinite(A)?t.slice(A+1):[];case"even":return t.filter((e,t)=>t%2==0);case"odd":return t.filter((e,t)=>t%2==1);case"not":{const e=new Set(Bw(n,t,r));return t.filter(t=>!e.has(t))}}}(a.name,l,a.data,n);if(0===u.length||t.length===i+1)return u;const f=t.slice(i+1),h=f.some(mb);if(h){if(mb(f[0])){const{type:e}=f[0];e!==lb.Sibling&&e!==lb.Adjacent||(u=lw(u,HC,!0)),f.unshift(dw)}n={...n,relativeSelector:!1,rootFunc:e=>u.includes(e)}}else n.rootFunc&&n.rootFunc!==Tb&&(n={...n,rootFunc:Tb});return f.some(fw)?yw(u,f,n,!1,A):h?Cw(u,[f],n,A):ww(u,[f],n)}function Cw(e,t,n,r){return bw(e,sw(t,n,e),r)}function bw(e,t,n=1/0){return bC(e=>Hy(e)&&t(e),lw(e,HC,t.shouldTestNextSiblings),!0,n)}function ww(e,t,n){const r=(Array.isArray(e)?e:[e]).filter(Hy);if(0===r.length)return r;const A=sw(t,n);return A===Tb?r:r.filter(A)}const Tw=/^\s*[~+]/;function _w(e){return function(t,...n){return function(r){var A;let i=e(t,this);return r&&(i=Gw(i,r,this.options.xmlMode,null===(A=this._root)||void 0===A?void 0:A[0])),this._make(this.length>1&&i.length>1?n.reduce((e,t)=>t(e),i):i)}}}const Iw=_w((e,t)=>{const n=[];for(let r=0;r<t.length;r++){const A=e(t[r]);n.push(A)}return(new Array).concat(...n)}),Sw=_w((e,t)=>{const n=[];for(let r=0;r<t.length;r++){const A=e(t[r]);null!==A&&n.push(A)}return n});function kw(e,...t){let n=null;const r=_w((e,t)=>{const r=[];return YC(t,t=>{for(let A;(A=e(t))&&!(null==n?void 0:n(A,r.length));t=A)r.push(A)}),r})(e,...t);return function(e,t){n="string"==typeof e?t=>gw(t,e,this.options):e?Kw(e):null;const A=r.call(this,t);return n=null,A}}function Fw(e){return Array.from(new Set(e))}const xw=Sw(({parent:e})=>e&&!Vy(e)?e:null,Fw),Lw=Iw(e=>{const t=[];for(;e.parent&&!Vy(e.parent);)t.push(e.parent),e=e.parent;return t},LC,e=>e.reverse()),Uw=kw(({parent:e})=>e&&!Vy(e)?e:null,LC,e=>e.reverse());const Nw=Sw(e=>BC(e)),Dw=Iw(e=>{const t=[];for(;e.next;)Hy(e=e.next)&&t.push(e);return t},Fw),Ow=kw(e=>BC(e),Fw),Qw=Sw(e=>EC(e)),Rw=Iw(e=>{const t=[];for(;e.prev;)Hy(e=e.prev)&&t.push(e);return t},Fw),Mw=kw(e=>EC(e),Fw),Hw=Iw(e=>vC(e).filter(t=>Hy(t)&&t!==e),LC),Pw=Iw(e=>gC(e).filter(Hy),Fw);function Kw(e){return"function"==typeof e?(t,n)=>e.call(t,n,t):jC(e)?t=>Array.prototype.includes.call(e,t):function(t){return e===t}}function Gw(e,t,n,r){return"string"==typeof t?vw(t,e,{xmlMode:n,root:r}):e.filter(Kw(t))}var $w=Object.freeze({__proto__:null,find:function(e){var t;if(!e)return this._make([]);const n=this.toArray();if("string"!=typeof e){const t=jC(e)?e.toArray():[e];return this._make(t.filter(e=>n.some(t=>GC(t,e))))}const r=Tw.test(e)?n:this.children().toArray(),A={context:n,root:null===(t=this._root)||void 0===t?void 0:t[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(function(e,t,n={},r=1/0){if("function"==typeof e)return bw(t,e);const[A,i]=hw(bb(e)),o=i.map(e=>yw(t,e,n,!0,r));return A.length&&o.push(Cw(t,A,n,r)),0===o.length?[]:1===o.length?o[0]:LC(o.reduce((e,t)=>[...e,...t]))}(e,r,A))},parent:xw,parents:Lw,parentsUntil:Uw,closest:function(e){var t;const n=[];if(!e)return this._make(n);const r={xmlMode:this.options.xmlMode,root:null===(t=this._root)||void 0===t?void 0:t[0]},A="string"==typeof e?t=>gw(t,e,r):Kw(e);return YC(this,e=>{for(;e&&Hy(e);){if(A(e,0)){n.includes(e)||n.push(e);break}e=e.parent}}),this._make(n)},next:Nw,nextAll:Dw,nextUntil:Ow,prev:Qw,prevAll:Rw,prevUntil:Mw,siblings:Hw,children:Pw,contents:function(){const e=this.toArray().reduce((e,t)=>Wy(t)?e.concat(t.children):e,[]);return this._make(e)},each:function(e){let t=0;const n=this.length;for(;t<n&&!1!==e.call(this[t],t,this[t]);)++t;return this},map:function(e){let t=[];for(let n=0;n<this.length;n++){const r=this[n],A=e.call(r,n,r);null!=A&&(t=t.concat(A))}return this._make(t)},filter:function(e){var t;return this._make(Gw(this.toArray(),e,this.options.xmlMode,null===(t=this._root)||void 0===t?void 0:t[0]))},filterArray:Gw,is:function(e){const t=this.toArray();return"string"==typeof e?mw(t.filter(Hy),e,this.options):!!e&&t.some(Kw(e))},not:function(e){let t=this.toArray();if("string"==typeof e){const n=new Set(vw(e,t,this.options));t=t.filter(e=>!n.has(e))}else{const n=Kw(e);t=t.filter((e,t)=>!n(e,t))}return this._make(t)},has:function(e){return this.filter("string"==typeof e?`:has(${e})`:(t,n)=>this._make(n).find(e).length>0)},first:function(){return this.length>1?this._make(this[0]):this},last:function(){return this.length>0?this._make(this[this.length-1]):this},eq:function(e){var t;return 0===(e=+e)&&this.length<=1?this:(e<0&&(e=this.length+e),this._make(null!==(t=this[e])&&void 0!==t?t:[]))},get:function(e){return null==e?this.toArray():this[e<0?this.length+e:e]},toArray:function(){return Array.prototype.slice.call(this)},index:function(e){let t,n;return null==e?(t=this.parent().children(),n=this[0]):"string"==typeof e?(t=this._make(e),n=this[0]):(t=this,n=jC(e)?e[0]:e),Array.prototype.indexOf.call(t,n)},slice:function(e,t){return this._make(Array.prototype.slice.call(this,e,t))},end:function(){var e;return null!==(e=this.prevObject)&&void 0!==e?e:this._make([])},add:function(e,t){const n=this._make(e,t),r=LC([...this.get(),...n.get()]);return this._make(r)},addBack:function(e){return this.prevObject?this.add(e?this.prevObject.filter(e):this.prevObject):this}});function Vw(e,t){const n=Array.isArray(e)?e:[e];t?t.children=n:t=null;for(let e=0;e<n.length;e++){const r=n[e];r.parent&&r.parent.children!==n&&yC(r),t?(r.prev=n[e-1]||null,r.next=n[e+1]||null):r.prev=r.next=null,r.parent=t}return t}function Ww(e){return function(...t){const n=this.length-1;return YC(this,(r,A)=>{if(!Wy(r))return;const i="function"==typeof t[0]?t[0].call(r,A,this._render(r.children)):t,o=this._makeDomArray(i,A<n);e(o,r.children,r)})}}function jw(e,t,n,r,A){var i,o;const a=[t,n,...r],s=0===t?null:e[t-1],c=t+n>=e.length?null:e[t+n];for(let e=0;e<r.length;++e){const n=r[e],l=n.parent;if(l){const e=l.children.indexOf(n);e>-1&&(l.children.splice(e,1),A===l&&t>e&&a[0]--)}n.parent=A,n.prev&&(n.prev.next=null!==(i=n.next)&&void 0!==i?i:null),n.next&&(n.next.prev=null!==(o=n.prev)&&void 0!==o?o:null),n.prev=0===e?s:r[e-1],n.next=e===r.length-1?c:r[e+1]}return s&&(s.next=r[0]),c&&(c.prev=r[r.length-1]),e.splice(...a)}const Yw=Ww((e,t,n)=>{jw(t,t.length,0,e,n)}),Xw=Ww((e,t,n)=>{jw(t,0,0,e,n)});function zw(e){return function(t){const n=this.length-1,r=this.parents().last();for(let A=0;A<this.length;A++){const i=this[A],o="function"==typeof t?t.call(i,A,i):"string"!=typeof t||zC(t)?t:r.find(t).clone(),[a]=this._makeDomArray(o,A<n);if(!a||!Wy(a))continue;let s=a,c=0;for(;c<s.children.length;){const e=s.children[c];Hy(e)?(s=e,c=0):c++}e(i,s,[a])}return this}}const qw=zw((e,t,n)=>{const{parent:r}=e;if(!r)return;const A=r.children,i=A.indexOf(e);Vw([e],t),jw(A,i,0,n,r)}),Jw=zw((e,t,n)=>{Wy(e)&&(Vw(e.children,t),Vw(n,e))});var Zw=Object.freeze({__proto__:null,_makeDomArray:function(e,t){return null==e?[]:jC(e)?t?XC(e.get()):e.get():Array.isArray(e)?e.reduce((e,n)=>e.concat(this._makeDomArray(n,t)),[]):"string"==typeof e?this._parse(e,this.options,!1,null).children:t?XC([e]):[e]},appendTo:function(e){return(jC(e)?e:this._make(e)).append(this),this},prependTo:function(e){return(jC(e)?e:this._make(e)).prepend(this),this},append:Yw,prepend:Xw,wrap:qw,wrapInner:Jw,unwrap:function(e){return this.parent(e).not("body").each((e,t)=>{this._make(t).replaceWith(t.children)}),this},wrapAll:function(e){const t=this[0];if(t){const n=this._make("function"==typeof e?e.call(t,0,t):e).insertBefore(t);let r;for(let e=0;e<n.length;e++)"tag"===n[e].type&&(r=n[e]);let A=0;for(;r&&A<r.children.length;){const e=r.children[A];"tag"===e.type?(r=e,A=0):A++}r&&this._make(r).append(this)}return this},after:function(...e){const t=this.length-1;return YC(this,(n,r)=>{const{parent:A}=n;if(!Wy(n)||!A)return;const i=A.children,o=i.indexOf(n);if(o<0)return;const a="function"==typeof e[0]?e[0].call(n,r,this._render(n.children)):e;jw(i,o+1,0,this._makeDomArray(a,r<t),A)})},insertAfter:function(e){"string"==typeof e&&(e=this._make(e)),this.remove();const t=[];return this._makeDomArray(e).forEach(e=>{const n=this.clone().toArray(),{parent:r}=e;if(!r)return;const A=r.children,i=A.indexOf(e);i<0||(jw(A,i+1,0,n,r),t.push(...n))}),this._make(t)},before:function(...e){const t=this.length-1;return YC(this,(n,r)=>{const{parent:A}=n;if(!Wy(n)||!A)return;const i=A.children,o=i.indexOf(n);if(o<0)return;const a="function"==typeof e[0]?e[0].call(n,r,this._render(n.children)):e;jw(i,o,0,this._makeDomArray(a,r<t),A)})},insertBefore:function(e){const t=this._make(e);this.remove();const n=[];return YC(t,e=>{const t=this.clone().toArray(),{parent:r}=e;if(!r)return;const A=r.children,i=A.indexOf(e);i<0||(jw(A,i,0,t,r),n.push(...t))}),this._make(n)},remove:function(e){return YC(e?this.filter(e):this,e=>{yC(e),e.prev=e.next=e.parent=null}),this},replaceWith:function(e){return YC(this,(t,n)=>{const{parent:r}=t;if(!r)return;const A=r.children,i="function"==typeof e?e.call(t,n,t):e,o=this._makeDomArray(i);Vw(o,null);const a=A.indexOf(t);jw(A,a,1,o,r),o.includes(t)||(t.parent=t.prev=t.next=null)})},empty:function(){return YC(this,e=>{Wy(e)&&(e.children.forEach(e=>{e.next=e.prev=e.parent=null}),e.children.length=0)})},html:function(e){if(void 0===e){const e=this[0];return e&&Wy(e)?this._render(e.children):null}return YC(this,t=>{if(!Wy(t))return;t.children.forEach(e=>{e.next=e.prev=e.parent=null});Vw(jC(e)?e.toArray():this._parse(""+e,this.options,!1,t).children,t)})},toString:function(){return this._render(this)},text:function(e){return void 0===e?KC(this):YC(this,"function"==typeof e?(t,n)=>this._make(t).text(e.call(t,n,KC([t]))):t=>{if(!Wy(t))return;t.children.forEach(e=>{e.next=e.prev=e.parent=null});Vw(new Uy(""+e),t)})},clone:function(){return this._make(XC(this.get()))}});function eT(e,t){if(!e||!Hy(e))return;const n=function(e){if(!(e=(e||"").trim()))return{};const t={};let n;for(const r of e.split(";")){const e=r.indexOf(":");if(e<1||e===r.length-1){const e=r.trimEnd();e.length>0&&void 0!==n&&(t[n]+=";"+e)}else n=r.slice(0,e).trim(),t[n]=r.slice(e+1).trim()}return t}(e.attribs.style);if("string"==typeof t)return n[t];if(Array.isArray(t)){const e={};return t.forEach(t=>{null!=n[t]&&(e[t]=n[t])}),e}return n}var tT=Object.freeze({__proto__:null,css:function(e,t){return null!=e&&null!=t||"object"==typeof e&&!Array.isArray(e)?YC(this,(n,r)=>{Hy(n)&&function e(t,n,r,A){if("string"==typeof n){const e=eT(t),o="function"==typeof r?r.call(t,A,e[n]):r;""===o?delete e[n]:null!=o&&(e[n]=o),t.attribs.style=(i=e,Object.keys(i).reduce((e,t)=>`${e}${e?" ":""}${t}: ${i[t]};`,""))}else"object"==typeof n&&Object.keys(n).forEach((r,A)=>{e(t,r,n[r],A)});var i}(n,e,t,r)}):0!==this.length?eT(this[0],e):void 0}});const nT=/%20/g,rT=/\r?\n/g;var AT=Object.freeze({__proto__:null,serialize:function(){return this.serializeArray().map(e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`).join("&").replace(nT,"+")},serializeArray:function(){return this.map((e,t)=>{const n=this._make(t);return Hy(t)&&"form"===t.name?n.find("input,select,textarea,keygen").toArray():n.filter("input,select,textarea,keygen").toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((e,t)=>{var n;const r=this._make(t),A=r.attr("name"),i=null!==(n=r.val())&&void 0!==n?n:"";return Array.isArray(i)?i.map(e=>({name:A,value:e.replace(rT,"\r\n")})):{name:A,value:i.replace(rT,"\r\n")}}).toArray()}});class iT{constructor(e,t,n){if(this.length=0,this.options=n,this._root=t,e){for(let t=0;t<e.length;t++)this[t]=e[t];this.length=e.length}}}iT.prototype.cheerio="[cheerio object]",iT.prototype.splice=Array.prototype.splice,iT.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(iT.prototype,fb,$w,Zw,tT,AT);const oT=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);var aT;!function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",e[e.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_F=102]="LATIN_SMALL_F",e[e.LATIN_SMALL_X=120]="LATIN_SMALL_X",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",e[e.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"}(aT||(aT={}));const sT="--",cT="[CDATA[",lT="doctype",uT="script",fT="public",hT="system";function dT(e){return e>=55296&&e<=57343}function pT(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function gT(e){return e>=64976&&e<=65007||oT.has(e)}var mT;!function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"}(mT||(mT={}));class vT{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e){const{line:t,col:n,offset:r}=this;return{code:e,startLine:t,endLine:t,startCol:n,endCol:n,startOffset:r,endOffset:r}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,aT.EOF;return this._err(mT.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t<e.length;t++){if((32|this.html.charCodeAt(this.pos+t))!==e.charCodeAt(t))return!1}return!0}peek(e){const t=this.pos+e;return t>=this.html.length?(this.endOfChunkHit=!this.lastChunkWritten,aT.EOF):this.html.charCodeAt(t)}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,aT.EOF;let e=this.html.charCodeAt(this.pos);if(e===aT.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,aT.LINE_FEED;if(e===aT.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance();this.skipNextNewLine=!1,dT(e)&&(e=this._processSurrogate(e));return null===this.handler.onParseError||e>31&&e<127||e===aT.LINE_FEED||e===aT.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){pT(e)?this._err(mT.controlCharacterInInputStream):gT(e)&&this._err(mT.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var BT;function ET(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}!function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"}(BT||(BT={}));var yT=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array([7489,60,213,305,650,1181,1403,1488,1653,1758,1954,2006,2063,2634,2705,3489,3693,3849,3878,4298,4648,4833,5141,5277,5315,5343,5413,0,0,0,0,0,0,5483,5837,6541,7186,7645,8062,8288,8624,8845,9152,9211,9282,10276,10514,11528,11848,12238,12310,12986,13881,14252,14590,14888,14961,15072,15150,2048,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,92,98,102,109,115,127,132,139,144,149,152,166,179,185,200,207,108,105,103,32827,198,16582,80,32827,38,16422,99,117,116,101,32827,193,16577,114,101,118,101,59,16642,256,105,121,120,125,114,99,32827,194,16578,59,17424,114,59,49152,55349,56580,114,97,118,101,32827,192,16576,112,104,97,59,17297,97,99,114,59,16640,100,59,27219,256,103,112,157,161,111,110,59,16644,102,59,49152,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,24673,105,110,103,32827,197,16581,256,99,115,190,195,114,59,49152,55349,56476,105,103,110,59,25172,105,108,100,101,32827,195,16579,109,108,32827,196,16580,1024,97,99,101,102,111,114,115,117,229,251,254,279,284,290,295,298,256,99,114,234,242,107,115,108,97,115,104,59,25110,374,246,248,59,27367,101,100,59,25350,121,59,17425,384,99,114,116,261,267,276,97,117,115,101,59,25141,110,111,117,108,108,105,115,59,24876,97,59,17298,114,59,49152,55349,56581,112,102,59,49152,55349,56633,101,118,101,59,17112,99,242,275,109,112,101,113,59,25166,1792,72,79,97,99,100,101,102,104,105,108,111,114,115,117,333,337,342,384,414,418,437,439,442,476,533,627,632,638,99,121,59,17447,80,89,32827,169,16553,384,99,112,121,349,354,378,117,116,101,59,16646,256,59,105,359,360,25298,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,24901,108,101,121,115,59,24877,512,97,101,105,111,393,398,404,408,114,111,110,59,16652,100,105,108,32827,199,16583,114,99,59,16648,110,105,110,116,59,25136,111,116,59,16650,256,100,110,423,429,105,108,108,97,59,16568,116,101,114,68,111,116,59,16567,242,383,105,59,17319,114,99,108,101,512,68,77,80,84,455,459,465,470,111,116,59,25241,105,110,117,115,59,25238,108,117,115,59,25237,105,109,101,115,59,25239,111,256,99,115,482,504,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,25138,101,67,117,114,108,121,256,68,81,515,527,111,117,98,108,101,81,117,111,116,101,59,24605,117,111,116,101,59,24601,512,108,110,112,117,542,552,583,597,111,110,256,59,101,549,550,25143,59,27252,384,103,105,116,559,566,570,114,117,101,110,116,59,25185,110,116,59,25135,111,117,114,73,110,116,101,103,114,97,108,59,25134,256,102,114,588,590,59,24834,111,100,117,99,116,59,25104,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,25139,111,115,115,59,27183,99,114,59,49152,55349,56478,112,256,59,67,644,645,25299,97,112,59,25165,1408,68,74,83,90,97,99,101,102,105,111,115,672,684,688,692,696,715,727,737,742,819,1165,256,59,111,377,677,116,114,97,104,100,59,26897,99,121,59,17410,99,121,59,17413,99,121,59,17423,384,103,114,115,703,708,711,103,101,114,59,24609,114,59,24993,104,118,59,27364,256,97,121,720,725,114,111,110,59,16654,59,17428,108,256,59,116,733,734,25095,97,59,17300,114,59,49152,55349,56583,256,97,102,747,807,256,99,109,752,802,114,105,116,105,99,97,108,512,65,68,71,84,768,774,790,796,99,117,116,101,59,16564,111,372,779,781,59,17113,98,108,101,65,99,117,116,101,59,17117,114,97,118,101,59,16480,105,108,100,101,59,17116,111,110,100,59,25284,102,101,114,101,110,116,105,97,108,68,59,24902,1136,829,0,0,0,834,852,0,1029,102,59,49152,55349,56635,384,59,68,69,840,841,845,16552,111,116,59,24796,113,117,97,108,59,25168,98,108,101,768,67,68,76,82,85,86,867,882,898,975,994,1016,111,110,116,111,117,114,73,110,116,101,103,114,97,236,569,111,628,889,0,0,891,187,841,110,65,114,114,111,119,59,25043,256,101,111,903,932,102,116,384,65,82,84,912,918,929,114,114,111,119,59,25040,105,103,104,116,65,114,114,111,119,59,25044,101,229,714,110,103,256,76,82,939,964,101,102,116,256,65,82,947,953,114,114,111,119,59,26616,105,103,104,116,65,114,114,111,119,59,26618,105,103,104,116,65,114,114,111,119,59,26617,105,103,104,116,256,65,84,984,990,114,114,111,119,59,25042,101,101,59,25256,112,577,1001,0,0,1007,114,114,111,119,59,25041,111,119,110,65,114,114,111,119,59,25045,101,114,116,105,99,97,108,66,97,114,59,25125,110,768,65,66,76,82,84,97,1042,1066,1072,1118,1151,892,114,114,111,119,384,59,66,85,1053,1054,1058,24979,97,114,59,26899,112,65,114,114,111,119,59,25077,114,101,118,101,59,17169,101,102,116,722,1082,0,1094,0,1104,105,103,104,116,86,101,99,116,111,114,59,26960,101,101,86,101,99,116,111,114,59,26974,101,99,116,111,114,256,59,66,1113,1114,25021,97,114,59,26966,105,103,104,116,468,1127,0,1137,101,101,86,101,99,116,111,114,59,26975,101,99,116,111,114,256,59,66,1146,1147,25025,97,114,59,26967,101,101,256,59,65,1158,1159,25252,114,114,111,119,59,24999,256,99,116,1170,1175,114,59,49152,55349,56479,114,111,107,59,16656,2048,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1213,1216,1220,1227,1246,1250,1255,1262,1269,1313,1327,1334,1362,1373,1376,1381,71,59,16714,72,32827,208,16592,99,117,116,101,32827,201,16585,384,97,105,121,1234,1239,1244,114,111,110,59,16666,114,99,32827,202,16586,59,17453,111,116,59,16662,114,59,49152,55349,56584,114,97,118,101,32827,200,16584,101,109,101,110,116,59,25096,256,97,112,1274,1278,99,114,59,16658,116,121,595,1286,0,0,1298,109,97,108,108,83,113,117,97,114,101,59,26107,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,26027,256,103,112,1318,1322,111,110,59,16664,102,59,49152,55349,56636,115,105,108,111,110,59,17301,117,256,97,105,1340,1353,108,256,59,84,1346,1347,27253,105,108,100,101,59,25154,108,105,98,114,105,117,109,59,25036,256,99,105,1367,1370,114,59,24880,109,59,27251,97,59,17303,109,108,32827,203,16587,256,105,112,1386,1391,115,116,115,59,25091,111,110,101,110,116,105,97,108,69,59,24903,640,99,102,105,111,115,1413,1416,1421,1458,1484,121,59,17444,114,59,49152,55349,56585,108,108,101,100,595,1431,0,0,1443,109,97,108,108,83,113,117,97,114,101,59,26108,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,26026,880,1466,0,1471,0,0,1476,102,59,49152,55349,56637,65,108,108,59,25088,114,105,101,114,116,114,102,59,24881,99,242,1483,1536,74,84,97,98,99,100,102,103,111,114,115,116,1512,1516,1519,1530,1536,1554,1558,1563,1565,1571,1644,1650,99,121,59,17411,32827,62,16446,109,109,97,256,59,100,1527,1528,17299,59,17372,114,101,118,101,59,16670,384,101,105,121,1543,1548,1552,100,105,108,59,16674,114,99,59,16668,59,17427,111,116,59,16672,114,59,49152,55349,56586,59,25305,112,102,59,49152,55349,56638,101,97,116,101,114,768,69,70,71,76,83,84,1589,1604,1614,1622,1627,1638,113,117,97,108,256,59,76,1598,1599,25189,101,115,115,59,25307,117,108,108,69,113,117,97,108,59,25191,114,101,97,116,101,114,59,27298,101,115,115,59,25207,108,97,110,116,69,113,117,97,108,59,27262,105,108,100,101,59,25203,99,114,59,49152,55349,56482,59,25195,1024,65,97,99,102,105,111,115,117,1669,1675,1686,1691,1694,1706,1726,1738,82,68,99,121,59,17450,256,99,116,1680,1684,101,107,59,17095,59,16478,105,114,99,59,16676,114,59,24844,108,98,101,114,116,83,112,97,99,101,59,24843,496,1711,0,1714,102,59,24845,105,122,111,110,116,97,108,76,105,110,101,59,25856,256,99,116,1731,1733,242,1705,114,111,107,59,16678,109,112,324,1744,1752,111,119,110,72,117,109,240,303,113,117,97,108,59,25167,1792,69,74,79,97,99,100,102,103,109,110,111,115,116,117,1786,1790,1795,1799,1806,1818,1822,1825,1832,1860,1912,1931,1935,1941,99,121,59,17429,108,105,103,59,16690,99,121,59,17409,99,117,116,101,32827,205,16589,256,105,121,1811,1816,114,99,32827,206,16590,59,17432,111,116,59,16688,114,59,24849,114,97,118,101,32827,204,16588,384,59,97,112,1824,1839,1855,256,99,103,1844,1847,114,59,16682,105,110,97,114,121,73,59,24904,108,105,101,243,989,500,1865,0,1890,256,59,101,1869,1870,25132,256,103,114,1875,1880,114,97,108,59,25131,115,101,99,116,105,111,110,59,25282,105,115,105,98,108,101,256,67,84,1900,1906,111,109,109,97,59,24675,105,109,101,115,59,24674,384,103,112,116,1919,1923,1928,111,110,59,16686,102,59,49152,55349,56640,97,59,17305,99,114,59,24848,105,108,100,101,59,16680,491,1946,0,1950,99,121,59,17414,108,32827,207,16591,640,99,102,111,115,117,1964,1975,1980,1986,2e3,256,105,121,1969,1973,114,99,59,16692,59,17433,114,59,49152,55349,56589,112,102,59,49152,55349,56641,483,1991,0,1996,114,59,49152,55349,56485,114,99,121,59,17416,107,99,121,59,17412,896,72,74,97,99,102,111,115,2020,2024,2028,2033,2045,2050,2056,99,121,59,17445,99,121,59,17420,112,112,97,59,17306,256,101,121,2038,2043,100,105,108,59,16694,59,17434,114,59,49152,55349,56590,112,102,59,49152,55349,56642,99,114,59,49152,55349,56486,1408,74,84,97,99,101,102,108,109,111,115,116,2085,2089,2092,2128,2147,2483,2488,2503,2509,2615,2631,99,121,59,17417,32827,60,16444,640,99,109,110,112,114,2103,2108,2113,2116,2125,117,116,101,59,16697,98,100,97,59,17307,103,59,26602,108,97,99,101,116,114,102,59,24850,114,59,24990,384,97,101,121,2135,2140,2145,114,111,110,59,16701,100,105,108,59,16699,59,17435,256,102,115,2152,2416,116,1280,65,67,68,70,82,84,85,86,97,114,2174,2217,2225,2272,2278,2300,2351,2395,912,2410,256,110,114,2179,2191,103,108,101,66,114,97,99,107,101,116,59,26600,114,111,119,384,59,66,82,2201,2202,2206,24976,97,114,59,25060,105,103,104,116,65,114,114,111,119,59,25030,101,105,108,105,110,103,59,25352,111,501,2231,0,2243,98,108,101,66,114,97,99,107,101,116,59,26598,110,468,2248,0,2258,101,101,86,101,99,116,111,114,59,26977,101,99,116,111,114,256,59,66,2267,2268,25027,97,114,59,26969,108,111,111,114,59,25354,105,103,104,116,256,65,86,2287,2293,114,114,111,119,59,24980,101,99,116,111,114,59,26958,256,101,114,2305,2327,101,384,59,65,86,2313,2314,2320,25251,114,114,111,119,59,24996,101,99,116,111,114,59,26970,105,97,110,103,108,101,384,59,66,69,2340,2341,2345,25266,97,114,59,27087,113,117,97,108,59,25268,112,384,68,84,86,2359,2370,2380,111,119,110,86,101,99,116,111,114,59,26961,101,101,86,101,99,116,111,114,59,26976,101,99,116,111,114,256,59,66,2390,2391,25023,97,114,59,26968,101,99,116,111,114,256,59,66,2405,2406,25020,97,114,59,26962,105,103,104,116,225,924,115,768,69,70,71,76,83,84,2430,2443,2453,2461,2466,2477,113,117,97,108,71,114,101,97,116,101,114,59,25306,117,108,108,69,113,117,97,108,59,25190,114,101,97,116,101,114,59,25206,101,115,115,59,27297,108,97,110,116,69,113,117,97,108,59,27261,105,108,100,101,59,25202,114,59,49152,55349,56591,256,59,101,2493,2494,25304,102,116,97,114,114,111,119,59,25050,105,100,111,116,59,16703,384,110,112,119,2516,2582,2587,103,512,76,82,108,114,2526,2551,2562,2576,101,102,116,256,65,82,2534,2540,114,114,111,119,59,26613,105,103,104,116,65,114,114,111,119,59,26615,105,103,104,116,65,114,114,111,119,59,26614,101,102,116,256,97,114,947,2570,105,103,104,116,225,959,105,103,104,116,225,970,102,59,49152,55349,56643,101,114,256,76,82,2594,2604,101,102,116,65,114,114,111,119,59,24985,105,103,104,116,65,114,114,111,119,59,24984,384,99,104,116,2622,2624,2626,242,2124,59,25008,114,111,107,59,16705,59,25194,1024,97,99,101,102,105,111,115,117,2650,2653,2656,2679,2684,2693,2699,2702,112,59,26885,121,59,17436,256,100,108,2661,2671,105,117,109,83,112,97,99,101,59,24671,108,105,110,116,114,102,59,24883,114,59,49152,55349,56592,110,117,115,80,108,117,115,59,25107,112,102,59,49152,55349,56644,99,242,2678,59,17308,1152,74,97,99,101,102,111,115,116,117,2723,2727,2733,2752,2836,2841,3473,3479,3486,99,121,59,17418,99,117,116,101,59,16707,384,97,101,121,2740,2745,2750,114,111,110,59,16711,100,105,108,59,16709,59,17437,384,103,115,119,2759,2800,2830,97,116,105,118,101,384,77,84,86,2771,2783,2792,101,100,105,117,109,83,112,97,99,101,59,24587,104,105,256,99,110,2790,2776,235,2777,101,114,121,84,104,105,238,2777,116,101,100,256,71,76,2808,2822,114,101,97,116,101,114,71,114,101,97,116,101,242,1651,101,115,115,76,101,115,243,2632,76,105,110,101,59,16394,114,59,49152,55349,56593,512,66,110,112,116,2850,2856,2871,2874,114,101,97,107,59,24672,66,114,101,97,107,105,110,103,83,112,97,99,101,59,16544,102,59,24853,1664,59,67,68,69,71,72,76,78,80,82,83,84,86,2901,2902,2922,2940,2977,3051,3076,3166,3204,3238,3288,3425,3461,27372,256,111,117,2907,2916,110,103,114,117,101,110,116,59,25186,112,67,97,112,59,25197,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,25126,384,108,113,120,2947,2954,2971,101,109,101,110,116,59,25097,117,97,108,256,59,84,2962,2963,25184,105,108,100,101,59,49152,8770,824,105,115,116,115,59,25092,114,101,97,116,101,114,896,59,69,70,71,76,83,84,2998,2999,3005,3017,3027,3032,3045,25199,113,117,97,108,59,25201,117,108,108,69,113,117,97,108,59,49152,8807,824,114,101,97,116,101,114,59,49152,8811,824,101,115,115,59,25209,108,97,110,116,69,113,117,97,108,59,49152,10878,824,105,108,100,101,59,25205,117,109,112,324,3058,3069,111,119,110,72,117,109,112,59,49152,8782,824,113,117,97,108,59,49152,8783,824,101,256,102,115,3082,3111,116,84,114,105,97,110,103,108,101,384,59,66,69,3098,3099,3105,25322,97,114,59,49152,10703,824,113,117,97,108,59,25324,115,768,59,69,71,76,83,84,3125,3126,3132,3140,3147,3160,25198,113,117,97,108,59,25200,114,101,97,116,101,114,59,25208,101,115,115,59,49152,8810,824,108,97,110,116,69,113,117,97,108,59,49152,10877,824,105,108,100,101,59,25204,101,115,116,101,100,256,71,76,3176,3193,114,101,97,116,101,114,71,114,101,97,116,101,114,59,49152,10914,824,101,115,115,76,101,115,115,59,49152,10913,824,114,101,99,101,100,101,115,384,59,69,83,3218,3219,3227,25216,113,117,97,108,59,49152,10927,824,108,97,110,116,69,113,117,97,108,59,25312,256,101,105,3243,3257,118,101,114,115,101,69,108,101,109,101,110,116,59,25100,103,104,116,84,114,105,97,110,103,108,101,384,59,66,69,3275,3276,3282,25323,97,114,59,49152,10704,824,113,117,97,108,59,25325,256,113,117,3293,3340,117,97,114,101,83,117,256,98,112,3304,3321,115,101,116,256,59,69,3312,3315,49152,8847,824,113,117,97,108,59,25314,101,114,115,101,116,256,59,69,3331,3334,49152,8848,824,113,117,97,108,59,25315,384,98,99,112,3347,3364,3406,115,101,116,256,59,69,3355,3358,49152,8834,8402,113,117,97,108,59,25224,99,101,101,100,115,512,59,69,83,84,3378,3379,3387,3398,25217,113,117,97,108,59,49152,10928,824,108,97,110,116,69,113,117,97,108,59,25313,105,108,100,101,59,49152,8831,824,101,114,115,101,116,256,59,69,3416,3419,49152,8835,8402,113,117,97,108,59,25225,105,108,100,101,512,59,69,70,84,3438,3439,3445,3455,25153,113,117,97,108,59,25156,117,108,108,69,113,117,97,108,59,25159,105,108,100,101,59,25161,101,114,116,105,99,97,108,66,97,114,59,25124,99,114,59,49152,55349,56489,105,108,100,101,32827,209,16593,59,17309,1792,69,97,99,100,102,103,109,111,112,114,115,116,117,118,3517,3522,3529,3541,3547,3552,3559,3580,3586,3616,3618,3634,3647,3652,108,105,103,59,16722,99,117,116,101,32827,211,16595,256,105,121,3534,3539,114,99,32827,212,16596,59,17438,98,108,97,99,59,16720,114,59,49152,55349,56594,114,97,118,101,32827,210,16594,384,97,101,105,3566,3570,3574,99,114,59,16716,103,97,59,17321,99,114,111,110,59,17311,112,102,59,49152,55349,56646,101,110,67,117,114,108,121,256,68,81,3598,3610,111,117,98,108,101,81,117,111,116,101,59,24604,117,111,116,101,59,24600,59,27220,256,99,108,3623,3628,114,59,49152,55349,56490,97,115,104,32827,216,16600,105,364,3639,3644,100,101,32827,213,16597,101,115,59,27191,109,108,32827,214,16598,101,114,256,66,80,3659,3680,256,97,114,3664,3667,114,59,24638,97,99,256,101,107,3674,3676,59,25566,101,116,59,25524,97,114,101,110,116,104,101,115,105,115,59,25564,1152,97,99,102,104,105,108,111,114,115,3711,3719,3722,3727,3730,3732,3741,3760,3836,114,116,105,97,108,68,59,25090,121,59,17439,114,59,49152,55349,56595,105,59,17318,59,17312,117,115,77,105,110,117,115,59,16561,256,105,112,3746,3757,110,99,97,114,101,112,108,97,110,229,1693,102,59,24857,512,59,101,105,111,3769,3770,3808,3812,27323,99,101,100,101,115,512,59,69,83,84,3784,3785,3791,3802,25210,113,117,97,108,59,27311,108,97,110,116,69,113,117,97,108,59,25212,105,108,100,101,59,25214,109,101,59,24627,256,100,112,3817,3822,117,99,116,59,25103,111,114,116,105,111,110,256,59,97,549,3833,108,59,25117,256,99,105,3841,3846,114,59,49152,55349,56491,59,17320,512,85,102,111,115,3857,3862,3867,3871,79,84,32827,34,16418,114,59,49152,55349,56596,112,102,59,24858,99,114,59,49152,55349,56492,1536,66,69,97,99,101,102,104,105,111,114,115,117,3902,3907,3911,3936,3955,4007,4010,4013,4246,4265,4276,4286,97,114,114,59,26896,71,32827,174,16558,384,99,110,114,3918,3923,3926,117,116,101,59,16724,103,59,26603,114,256,59,116,3932,3933,24992,108,59,26902,384,97,101,121,3943,3948,3953,114,111,110,59,16728,100,105,108,59,16726,59,17440,256,59,118,3960,3961,24860,101,114,115,101,256,69,85,3970,3993,256,108,113,3975,3982,101,109,101,110,116,59,25099,117,105,108,105,98,114,105,117,109,59,25035,112,69,113,117,105,108,105,98,114,105,117,109,59,26991,114,187,3961,111,59,17313,103,104,116,1024,65,67,68,70,84,85,86,97,4033,4075,4083,4130,4136,4187,4231,984,256,110,114,4038,4050,103,108,101,66,114,97,99,107,101,116,59,26601,114,111,119,384,59,66,76,4060,4061,4065,24978,97,114,59,25061,101,102,116,65,114,114,111,119,59,25028,101,105,108,105,110,103,59,25353,111,501,4089,0,4101,98,108,101,66,114,97,99,107,101,116,59,26599,110,468,4106,0,4116,101,101,86,101,99,116,111,114,59,26973,101,99,116,111,114,256,59,66,4125,4126,25026,97,114,59,26965,108,111,111,114,59,25355,256,101,114,4141,4163,101,384,59,65,86,4149,4150,4156,25250,114,114,111,119,59,24998,101,99,116,111,114,59,26971,105,97,110,103,108,101,384,59,66,69,4176,4177,4181,25267,97,114,59,27088,113,117,97,108,59,25269,112,384,68,84,86,4195,4206,4216,111,119,110,86,101,99,116,111,114,59,26959,101,101,86,101,99,116,111,114,59,26972,101,99,116,111,114,256,59,66,4226,4227,25022,97,114,59,26964,101,99,116,111,114,256,59,66,4241,4242,25024,97,114,59,26963,256,112,117,4251,4254,102,59,24861,110,100,73,109,112,108,105,101,115,59,26992,105,103,104,116,97,114,114,111,119,59,25051,256,99,104,4281,4284,114,59,24859,59,25009,108,101,68,101,108,97,121,101,100,59,27124,1664,72,79,97,99,102,104,105,109,111,113,115,116,117,4324,4337,4343,4349,4377,4382,4433,4438,4449,4455,4533,4539,4543,256,67,99,4329,4334,72,99,121,59,17449,121,59,17448,70,84,99,121,59,17452,99,117,116,101,59,16730,640,59,97,101,105,121,4360,4361,4366,4371,4375,27324,114,111,110,59,16736,100,105,108,59,16734,114,99,59,16732,59,17441,114,59,49152,55349,56598,111,114,116,512,68,76,82,85,4394,4404,4414,4425,111,119,110,65,114,114,111,119,187,1054,101,102,116,65,114,114,111,119,187,2202,105,103,104,116,65,114,114,111,119,187,4061,112,65,114,114,111,119,59,24977,103,109,97,59,17315,97,108,108,67,105,114,99,108,101,59,25112,112,102,59,49152,55349,56650,626,4461,0,0,4464,116,59,25114,97,114,101,512,59,73,83,85,4475,4476,4489,4527,26017,110,116,101,114,115,101,99,116,105,111,110,59,25235,117,256,98,112,4495,4510,115,101,116,256,59,69,4503,4504,25231,113,117,97,108,59,25233,101,114,115,101,116,256,59,69,4520,4521,25232,113,117,97,108,59,25234,110,105,111,110,59,25236,99,114,59,49152,55349,56494,97,114,59,25286,512,98,99,109,112,4552,4571,4617,4619,256,59,115,4557,4558,25296,101,116,256,59,69,4557,4565,113,117,97,108,59,25222,256,99,104,4576,4613,101,101,100,115,512,59,69,83,84,4589,4590,4596,4607,25211,113,117,97,108,59,27312,108,97,110,116,69,113,117,97,108,59,25213,105,108,100,101,59,25215,84,104,225,3980,59,25105,384,59,101,115,4626,4627,4643,25297,114,115,101,116,256,59,69,4636,4637,25219,113,117,97,108,59,25223,101,116,187,4627,1408,72,82,83,97,99,102,104,105,111,114,115,4670,4676,4681,4693,4702,4721,4726,4767,4802,4808,4817,79,82,78,32827,222,16606,65,68,69,59,24866,256,72,99,4686,4690,99,121,59,17419,121,59,17446,256,98,117,4698,4700,59,16393,59,17316,384,97,101,121,4709,4714,4719,114,111,110,59,16740,100,105,108,59,16738,59,17442,114,59,49152,55349,56599,256,101,105,4731,4745,498,4736,0,4743,101,102,111,114,101,59,25140,97,59,17304,256,99,110,4750,4760,107,83,112,97,99,101,59,49152,8287,8202,83,112,97,99,101,59,24585,108,100,101,512,59,69,70,84,4779,4780,4786,4796,25148,113,117,97,108,59,25155,117,108,108,69,113,117,97,108,59,25157,105,108,100,101,59,25160,112,102,59,49152,55349,56651,105,112,108,101,68,111,116,59,24795,256,99,116,4822,4827,114,59,49152,55349,56495,114,111,107,59,16742,2785,4855,4878,4890,4902,0,4908,4913,0,0,0,0,0,4920,4925,4983,4997,0,5119,5124,5130,5136,256,99,114,4859,4865,117,116,101,32827,218,16602,114,256,59,111,4871,4872,24991,99,105,114,59,26953,114,483,4883,0,4886,121,59,17422,118,101,59,16748,256,105,121,4894,4899,114,99,32827,219,16603,59,17443,98,108,97,99,59,16752,114,59,49152,55349,56600,114,97,118,101,32827,217,16601,97,99,114,59,16746,256,100,105,4929,4969,101,114,256,66,80,4936,4957,256,97,114,4941,4944,114,59,16479,97,99,256,101,107,4951,4953,59,25567,101,116,59,25525,97,114,101,110,116,104,101,115,105,115,59,25565,111,110,256,59,80,4976,4977,25283,108,117,115,59,25230,256,103,112,4987,4991,111,110,59,16754,102,59,49152,55349,56652,1024,65,68,69,84,97,100,112,115,5013,5038,5048,5060,1e3,5074,5079,5107,114,114,111,119,384,59,66,68,4432,5024,5028,97,114,59,26898,111,119,110,65,114,114,111,119,59,25029,111,119,110,65,114,114,111,119,59,24981,113,117,105,108,105,98,114,105,117,109,59,26990,101,101,256,59,65,5067,5068,25253,114,114,111,119,59,24997,111,119,110,225,1011,101,114,256,76,82,5086,5096,101,102,116,65,114,114,111,119,59,24982,105,103,104,116,65,114,114,111,119,59,24983,105,256,59,108,5113,5114,17362,111,110,59,17317,105,110,103,59,16750,99,114,59,49152,55349,56496,105,108,100,101,59,16744,109,108,32827,220,16604,1152,68,98,99,100,101,102,111,115,118,5159,5164,5168,5171,5182,5253,5258,5264,5270,97,115,104,59,25259,97,114,59,27371,121,59,17426,97,115,104,256,59,108,5179,5180,25257,59,27366,256,101,114,5187,5189,59,25281,384,98,116,121,5196,5200,5242,97,114,59,24598,256,59,105,5199,5205,99,97,108,512,66,76,83,84,5217,5221,5226,5236,97,114,59,25123,105,110,101,59,16508,101,112,97,114,97,116,111,114,59,26456,105,108,100,101,59,25152,84,104,105,110,83,112,97,99,101,59,24586,114,59,49152,55349,56601,112,102,59,49152,55349,56653,99,114,59,49152,55349,56497,100,97,115,104,59,25258,640,99,101,102,111,115,5287,5292,5297,5302,5308,105,114,99,59,16756,100,103,101,59,25280,114,59,49152,55349,56602,112,102,59,49152,55349,56654,99,114,59,49152,55349,56498,512,102,105,111,115,5323,5328,5330,5336,114,59,49152,55349,56603,59,17310,112,102,59,49152,55349,56655,99,114,59,49152,55349,56499,1152,65,73,85,97,99,102,111,115,117,5361,5365,5369,5373,5380,5391,5396,5402,5408,99,121,59,17455,99,121,59,17415,99,121,59,17454,99,117,116,101,32827,221,16605,256,105,121,5385,5389,114,99,59,16758,59,17451,114,59,49152,55349,56604,112,102,59,49152,55349,56656,99,114,59,49152,55349,56500,109,108,59,16760,1024,72,97,99,100,101,102,111,115,5429,5433,5439,5451,5455,5469,5472,5476,99,121,59,17430,99,117,116,101,59,16761,256,97,121,5444,5449,114,111,110,59,16765,59,17431,111,116,59,16763,498,5460,0,5467,111,87,105,100,116,232,2777,97,59,17302,114,59,24872,112,102,59,24868,99,114,59,49152,55349,56501,3041,5507,5514,5520,0,5552,5558,5567,0,0,0,0,5574,5595,5611,5727,5741,0,5781,5787,5810,5817,0,5822,99,117,116,101,32827,225,16609,114,101,118,101,59,16643,768,59,69,100,105,117,121,5532,5533,5537,5539,5544,5549,25150,59,49152,8766,819,59,25151,114,99,32827,226,16610,116,101,32955,180,774,59,17456,108,105,103,32827,230,16614,256,59,114,178,5562,59,49152,55349,56606,114,97,118,101,32827,224,16608,256,101,112,5578,5590,256,102,112,5583,5588,115,121,109,59,24885,232,5587,104,97,59,17329,256,97,112,5599,99,256,99,108,5604,5607,114,59,16641,103,59,27199,612,5616,0,0,5642,640,59,97,100,115,118,5626,5627,5631,5633,5639,25127,110,100,59,27221,59,27228,108,111,112,101,59,27224,59,27226,896,59,101,108,109,114,115,122,5656,5657,5659,5662,5695,5711,5721,25120,59,27044,101,187,5657,115,100,256,59,97,5669,5670,25121,1121,5680,5682,5684,5686,5688,5690,5692,5694,59,27048,59,27049,59,27050,59,27051,59,27052,59,27053,59,27054,59,27055,116,256,59,118,5701,5702,25119,98,256,59,100,5708,5709,25278,59,27037,256,112,116,5716,5719,104,59,25122,187,185,97,114,114,59,25468,256,103,112,5731,5735,111,110,59,16645,102,59,49152,55349,56658,896,59,69,97,101,105,111,112,4801,5755,5757,5762,5764,5767,5770,59,27248,99,105,114,59,27247,59,25162,100,59,25163,115,59,16423,114,111,120,256,59,101,4801,5778,241,5763,105,110,103,32827,229,16613,384,99,116,121,5793,5798,5800,114,59,49152,55349,56502,59,16426,109,112,256,59,101,4801,5807,241,648,105,108,100,101,32827,227,16611,109,108,32827,228,16612,256,99,105,5826,5832,111,110,105,110,244,626,110,116,59,27153,2048,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,5869,5873,5936,5948,5955,5960,6008,6013,6112,6118,6201,6224,5901,6461,6472,6512,111,116,59,27373,256,99,114,5878,5918,107,512,99,101,112,115,5888,5893,5901,5907,111,110,103,59,25164,112,115,105,108,111,110,59,17398,114,105,109,101,59,24629,105,109,256,59,101,5914,5915,25149,113,59,25293,374,5922,5926,101,101,59,25277,101,100,256,59,103,5932,5933,25349,101,187,5933,114,107,256,59,116,4956,5943,98,114,107,59,25526,256,111,121,5889,5953,59,17457,113,117,111,59,24606,640,99,109,112,114,116,5971,5979,5985,5988,5992,97,117,115,256,59,101,266,265,112,116,121,118,59,27056,115,233,5900,110,111,245,275,384,97,104,119,5999,6001,6003,59,17330,59,24886,101,101,110,59,25196,114,59,49152,55349,56607,103,896,99,111,115,116,117,118,119,6029,6045,6067,6081,6101,6107,6110,384,97,105,117,6036,6038,6042,240,1888,114,99,59,26095,112,187,4977,384,100,112,116,6052,6056,6061,111,116,59,27136,108,117,115,59,27137,105,109,101,115,59,27138,625,6073,0,0,6078,99,117,112,59,27142,97,114,59,26117,114,105,97,110,103,108,101,256,100,117,6093,6098,111,119,110,59,26045,112,59,26035,112,108,117,115,59,27140,101,229,5188,229,5293,97,114,111,119,59,26893,384,97,107,111,6125,6182,6197,256,99,110,6130,6179,107,384,108,115,116,6138,1451,6146,111,122,101,110,103,101,59,27115,114,105,97,110,103,108,101,512,59,100,108,114,6162,6163,6168,6173,26036,111,119,110,59,26046,101,102,116,59,26050,105,103,104,116,59,26040,107,59,25635,433,6187,0,6195,434,6191,0,6193,59,26002,59,26001,52,59,26003,99,107,59,25992,256,101,111,6206,6221,256,59,113,6211,6214,49152,61,8421,117,105,118,59,49152,8801,8421,116,59,25360,512,112,116,119,120,6233,6238,6247,6252,102,59,49152,55349,56659,256,59,116,5067,6243,111,109,187,5068,116,105,101,59,25288,1536,68,72,85,86,98,100,104,109,112,116,117,118,6277,6294,6314,6331,6359,6363,6380,6399,6405,6410,6416,6433,512,76,82,108,114,6286,6288,6290,6292,59,25943,59,25940,59,25942,59,25939,640,59,68,85,100,117,6305,6306,6308,6310,6312,25936,59,25958,59,25961,59,25956,59,25959,512,76,82,108,114,6323,6325,6327,6329,59,25949,59,25946,59,25948,59,25945,896,59,72,76,82,104,108,114,6346,6347,6349,6351,6353,6355,6357,25937,59,25964,59,25955,59,25952,59,25963,59,25954,59,25951,111,120,59,27081,512,76,82,108,114,6372,6374,6376,6378,59,25941,59,25938,59,25872,59,25868,640,59,68,85,100,117,1725,6391,6393,6395,6397,59,25957,59,25960,59,25900,59,25908,105,110,117,115,59,25247,108,117,115,59,25246,105,109,101,115,59,25248,512,76,82,108,114,6425,6427,6429,6431,59,25947,59,25944,59,25880,59,25876,896,59,72,76,82,104,108,114,6448,6449,6451,6453,6455,6457,6459,25858,59,25962,59,25953,59,25950,59,25916,59,25892,59,25884,256,101,118,291,6466,98,97,114,32827,166,16550,512,99,101,105,111,6481,6486,6490,6496,114,59,49152,55349,56503,109,105,59,24655,109,256,59,101,5914,5916,108,384,59,98,104,6504,6505,6507,16476,59,27077,115,117,98,59,26568,364,6516,6526,108,256,59,101,6521,6522,24610,116,187,6522,112,384,59,69,101,303,6533,6535,59,27310,256,59,113,1756,1755,3297,6567,0,6632,6673,6677,6706,0,6711,6736,0,0,6836,0,0,6849,0,0,6945,6958,6989,6994,0,7165,0,7180,384,99,112,114,6573,6578,6621,117,116,101,59,16647,768,59,97,98,99,100,115,6591,6592,6596,6602,6613,6617,25129,110,100,59,27204,114,99,117,112,59,27209,256,97,117,6607,6610,112,59,27211,112,59,27207,111,116,59,27200,59,49152,8745,65024,256,101,111,6626,6629,116,59,24641,238,1683,512,97,101,105,117,6640,6651,6657,6661,496,6645,0,6648,115,59,27213,111,110,59,16653,100,105,108,32827,231,16615,114,99,59,16649,112,115,256,59,115,6668,6669,27212,109,59,27216,111,116,59,16651,384,100,109,110,6683,6688,6694,105,108,32955,184,429,112,116,121,118,59,27058,116,33024,162,59,101,6701,6702,16546,114,228,434,114,59,49152,55349,56608,384,99,101,105,6717,6720,6733,121,59,17479,99,107,256,59,109,6727,6728,26387,97,114,107,187,6728,59,17351,114,896,59,69,99,101,102,109,115,6751,6752,6754,6763,6820,6826,6830,26059,59,27075,384,59,101,108,6761,6762,6765,17094,113,59,25175,101,609,6772,0,0,6792,114,114,111,119,256,108,114,6780,6785,101,102,116,59,25018,105,103,104,116,59,25019,640,82,83,97,99,100,6802,6804,6806,6810,6815,187,3911,59,25800,115,116,59,25243,105,114,99,59,25242,97,115,104,59,25245,110,105,110,116,59,27152,105,100,59,27375,99,105,114,59,27074,117,98,115,256,59,117,6843,6844,26211,105,116,187,6844,748,6855,6868,6906,0,6922,111,110,256,59,101,6861,6862,16442,256,59,113,199,198,621,6873,0,0,6882,97,256,59,116,6878,6879,16428,59,16448,384,59,102,108,6888,6889,6891,25089,238,4448,101,256,109,120,6897,6902,101,110,116,187,6889,101,243,589,487,6910,0,6919,256,59,100,4795,6914,111,116,59,27245,110,244,582,384,102,114,121,6928,6932,6935,59,49152,55349,56660,111,228,596,33024,169,59,115,341,6941,114,59,24855,256,97,111,6949,6953,114,114,59,25013,115,115,59,26391,256,99,117,6962,6967,114,59,49152,55349,56504,256,98,112,6972,6980,256,59,101,6977,6978,27343,59,27345,256,59,101,6985,6986,27344,59,27346,100,111,116,59,25327,896,100,101,108,112,114,118,119,7008,7020,7031,7042,7084,7124,7161,97,114,114,256,108,114,7016,7018,59,26936,59,26933,624,7026,0,0,7029,114,59,25310,99,59,25311,97,114,114,256,59,112,7039,7040,25014,59,26941,768,59,98,99,100,111,115,7055,7056,7062,7073,7077,7080,25130,114,99,97,112,59,27208,256,97,117,7067,7070,112,59,27206,112,59,27210,111,116,59,25229,114,59,27205,59,49152,8746,65024,512,97,108,114,118,7093,7103,7134,7139,114,114,256,59,109,7100,7101,25015,59,26940,121,384,101,118,119,7111,7124,7128,113,624,7118,0,0,7122,114,101,227,7027,117,227,7029,101,101,59,25294,101,100,103,101,59,25295,101,110,32827,164,16548,101,97,114,114,111,119,256,108,114,7150,7155,101,102,116,187,7040,105,103,104,116,187,7101,101,228,7133,256,99,105,7169,7175,111,110,105,110,244,503,110,116,59,25137,108,99,116,121,59,25389,2432,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,7224,7227,7231,7261,7273,7285,7306,7326,7340,7351,7419,7423,7437,7547,7569,7595,7611,7622,7629,114,242,897,97,114,59,26981,512,103,108,114,115,7240,7245,7250,7252,103,101,114,59,24608,101,116,104,59,24888,242,4403,104,256,59,118,7258,7259,24592,187,2314,363,7265,7271,97,114,111,119,59,26895,97,227,789,256,97,121,7278,7283,114,111,110,59,16655,59,17460,384,59,97,111,818,7292,7300,256,103,114,703,7297,114,59,25034,116,115,101,113,59,27255,384,103,108,109,7313,7316,7320,32827,176,16560,116,97,59,17332,112,116,121,118,59,27057,256,105,114,7331,7336,115,104,116,59,27007,59,49152,55349,56609,97,114,256,108,114,7347,7349,187,2268,187,4126,640,97,101,103,115,118,7362,888,7382,7388,7392,109,384,59,111,115,806,7370,7380,110,100,256,59,115,806,7377,117,105,116,59,26214,97,109,109,97,59,17373,105,110,59,25330,384,59,105,111,7399,7400,7416,16631,100,101,33024,247,59,111,7399,7408,110,116,105,109,101,115,59,25287,110,248,7415,99,121,59,17490,99,623,7430,0,0,7434,114,110,59,25374,111,112,59,25357,640,108,112,116,117,119,7448,7453,7458,7497,7509,108,97,114,59,16420,102,59,49152,55349,56661,640,59,101,109,112,115,779,7469,7479,7485,7490,113,256,59,100,850,7475,111,116,59,25169,105,110,117,115,59,25144,108,117,115,59,25108,113,117,97,114,101,59,25249,98,108,101,98,97,114,119,101,100,103,229,250,110,384,97,100,104,4398,7517,7527,111,119,110,97,114,114,111,119,243,7299,97,114,112,111,111,110,256,108,114,7538,7542,101,102,244,7348,105,103,104,244,7350,354,7551,7557,107,97,114,111,247,3906,623,7562,0,0,7566,114,110,59,25375,111,112,59,25356,384,99,111,116,7576,7587,7590,256,114,121,7581,7585,59,49152,55349,56505,59,17493,108,59,27126,114,111,107,59,16657,256,100,114,7600,7604,111,116,59,25329,105,256,59,102,7610,6166,26047,256,97,104,7616,7619,114,242,1065,97,242,4006,97,110,103,108,101,59,27046,256,99,105,7634,7637,121,59,17503,103,114,97,114,114,59,26623,2304,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,7681,7689,7705,7736,1400,7740,7753,7777,7806,7845,7855,7869,7905,7978,7991,8004,8014,8026,256,68,111,7686,7476,111,244,7305,256,99,115,7694,7700,117,116,101,32827,233,16617,116,101,114,59,27246,512,97,105,111,121,7714,7719,7729,7734,114,111,110,59,16667,114,256,59,99,7725,7726,25174,32827,234,16618,108,111,110,59,25173,59,17485,111,116,59,16663,256,68,114,7745,7749,111,116,59,25170,59,49152,55349,56610,384,59,114,115,7760,7761,7767,27290,97,118,101,32827,232,16616,256,59,100,7772,7773,27286,111,116,59,27288,512,59,105,108,115,7786,7787,7794,7796,27289,110,116,101,114,115,59,25575,59,24851,256,59,100,7801,7802,27285,111,116,59,27287,384,97,112,115,7813,7817,7831,99,114,59,16659,116,121,384,59,115,118,7826,7827,7829,25093,101,116,187,7827,112,256,49,59,7837,7844,307,7841,7843,59,24580,59,24581,24579,256,103,115,7850,7852,59,16715,112,59,24578,256,103,112,7860,7864,111,110,59,16665,102,59,49152,55349,56662,384,97,108,115,7876,7886,7890,114,256,59,115,7882,7883,25301,108,59,27107,117,115,59,27249,105,384,59,108,118,7898,7899,7903,17333,111,110,187,7899,59,17397,512,99,115,117,118,7914,7923,7947,7971,256,105,111,7919,7729,114,99,187,7726,617,7929,0,0,7931,237,1352,97,110,116,256,103,108,7938,7942,116,114,187,7773,101,115,115,187,7802,384,97,101,105,7954,7958,7962,108,115,59,16445,115,116,59,25183,118,256,59,68,565,7968,68,59,27256,112,97,114,115,108,59,27109,256,68,97,7983,7987,111,116,59,25171,114,114,59,26993,384,99,100,105,7998,8001,7928,114,59,24879,111,244,850,256,97,104,8009,8011,59,17335,32827,240,16624,256,109,114,8019,8023,108,32827,235,16619,111,59,24748,384,99,105,112,8033,8036,8039,108,59,16417,115,244,1390,256,101,111,8044,8052,99,116,97,116,105,111,238,1369,110,101,110,116,105,97,108,229,1401,2529,8082,0,8094,0,8097,8103,0,0,8134,8140,0,8147,0,8166,8170,8192,0,8200,8282,108,108,105,110,103,100,111,116,115,101,241,7748,121,59,17476,109,97,108,101,59,26176,384,105,108,114,8109,8115,8129,108,105,103,59,32768,64259,617,8121,0,0,8125,103,59,32768,64256,105,103,59,32768,64260,59,49152,55349,56611,108,105,103,59,32768,64257,108,105,103,59,49152,102,106,384,97,108,116,8153,8156,8161,116,59,26221,105,103,59,32768,64258,110,115,59,26033,111,102,59,16786,496,8174,0,8179,102,59,49152,55349,56663,256,97,107,1471,8183,256,59,118,8188,8189,25300,59,27353,97,114,116,105,110,116,59,27149,256,97,111,8204,8277,256,99,115,8209,8274,945,8218,8240,8248,8261,8264,0,8272,946,8226,8229,8231,8234,8236,0,8238,32827,189,16573,59,24915,32827,188,16572,59,24917,59,24921,59,24923,435,8244,0,8246,59,24916,59,24918,692,8254,8257,0,0,8259,32827,190,16574,59,24919,59,24924,53,59,24920,438,8268,0,8270,59,24922,59,24925,56,59,24926,108,59,24644,119,110,59,25378,99,114,59,49152,55349,56507,2176,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,8322,8329,8351,8357,8368,8372,8432,8437,8442,8447,8451,8466,8504,791,8510,8530,8606,256,59,108,1613,8327,59,27276,384,99,109,112,8336,8341,8349,117,116,101,59,16885,109,97,256,59,100,8348,7386,17331,59,27270,114,101,118,101,59,16671,256,105,121,8362,8366,114,99,59,16669,59,17459,111,116,59,16673,512,59,108,113,115,1598,1602,8381,8393,384,59,113,115,1598,1612,8388,108,97,110,244,1637,512,59,99,100,108,1637,8402,8405,8421,99,59,27305,111,116,256,59,111,8412,8413,27264,256,59,108,8418,8419,27266,59,27268,256,59,101,8426,8429,49152,8923,65024,115,59,27284,114,59,49152,55349,56612,256,59,103,1651,1563,109,101,108,59,24887,99,121,59,17491,512,59,69,97,106,1626,8460,8462,8464,59,27282,59,27301,59,27300,512,69,97,101,115,8475,8477,8489,8500,59,25193,112,256,59,112,8483,8484,27274,114,111,120,187,8484,256,59,113,8494,8495,27272,256,59,113,8494,8475,105,109,59,25319,112,102,59,49152,55349,56664,256,99,105,8515,8518,114,59,24842,109,384,59,101,108,1643,8526,8528,59,27278,59,27280,33536,62,59,99,100,108,113,114,1518,8544,8554,8558,8563,8569,256,99,105,8549,8551,59,27303,114,59,27258,111,116,59,25303,80,97,114,59,27029,117,101,115,116,59,27260,640,97,100,101,108,115,8580,8554,8592,1622,8603,496,8585,0,8590,112,114,111,248,8350,114,59,27e3,113,256,108,113,1599,8598,108,101,115,243,8328,105,237,1643,256,101,110,8611,8621,114,116,110,101,113,113,59,49152,8809,65024,197,8618,1280,65,97,98,99,101,102,107,111,115,121,8644,8647,8689,8693,8698,8728,8733,8751,8808,8829,114,242,928,512,105,108,109,114,8656,8660,8663,8667,114,115,240,5252,102,187,8228,105,108,244,1705,256,100,114,8672,8676,99,121,59,17482,384,59,99,119,2292,8683,8687,105,114,59,26952,59,25005,97,114,59,24847,105,114,99,59,16677,384,97,108,114,8705,8718,8723,114,116,115,256,59,117,8713,8714,26213,105,116,187,8714,108,105,112,59,24614,99,111,110,59,25273,114,59,49152,55349,56613,115,256,101,119,8739,8745,97,114,111,119,59,26917,97,114,111,119,59,26918,640,97,109,111,112,114,8762,8766,8771,8798,8803,114,114,59,25087,116,104,116,59,25147,107,256,108,114,8777,8787,101,102,116,97,114,114,111,119,59,25001,105,103,104,116,97,114,114,111,119,59,25002,102,59,49152,55349,56665,98,97,114,59,24597,384,99,108,116,8815,8820,8824,114,59,49152,55349,56509,97,115,232,8692,114,111,107,59,16679,256,98,112,8834,8839,117,108,108,59,24643,104,101,110,187,7259,2785,8867,0,8874,0,8888,8901,8910,0,8917,8947,0,0,8952,8994,9063,9058,9087,0,9094,9130,9140,99,117,116,101,32827,237,16621,384,59,105,121,1905,8880,8885,114,99,32827,238,16622,59,17464,256,99,120,8892,8895,121,59,17461,99,108,32827,161,16545,256,102,114,927,8905,59,49152,55349,56614,114,97,118,101,32827,236,16620,512,59,105,110,111,1854,8925,8937,8942,256,105,110,8930,8934,110,116,59,27148,116,59,25133,102,105,110,59,27100,116,97,59,24873,108,105,103,59,16691,384,97,111,112,8958,8986,8989,384,99,103,116,8965,8968,8983,114,59,16683,384,101,108,112,1823,8975,8979,105,110,229,1934,97,114,244,1824,104,59,16689,102,59,25271,101,100,59,16821,640,59,99,102,111,116,1268,9004,9009,9021,9025,97,114,101,59,24837,105,110,256,59,116,9016,9017,25118,105,101,59,27101,100,111,244,8985,640,59,99,101,108,112,1879,9036,9040,9051,9057,97,108,59,25274,256,103,114,9045,9049,101,114,243,5475,227,9037,97,114,104,107,59,27159,114,111,100,59,27196,512,99,103,112,116,9071,9074,9078,9083,121,59,17489,111,110,59,16687,102,59,49152,55349,56666,97,59,17337,117,101,115,116,32827,191,16575,256,99,105,9098,9103,114,59,49152,55349,56510,110,640,59,69,100,115,118,1268,9115,9117,9121,1267,59,25337,111,116,59,25333,256,59,118,9126,9127,25332,59,25331,256,59,105,1911,9134,108,100,101,59,16681,491,9144,0,9148,99,121,59,17494,108,32827,239,16623,768,99,102,109,111,115,117,9164,9175,9180,9185,9191,9205,256,105,121,9169,9173,114,99,59,16693,59,17465,114,59,49152,55349,56615,97,116,104,59,16951,112,102,59,49152,55349,56667,483,9196,0,9201,114,59,49152,55349,56511,114,99,121,59,17496,107,99,121,59,17492,1024,97,99,102,103,104,106,111,115,9227,9238,9250,9255,9261,9265,9269,9275,112,112,97,256,59,118,9235,9236,17338,59,17392,256,101,121,9243,9248,100,105,108,59,16695,59,17466,114,59,49152,55349,56616,114,101,101,110,59,16696,99,121,59,17477,99,121,59,17500,112,102,59,49152,55349,56668,99,114,59,49152,55349,56512,2944,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,9328,9345,9350,9357,9361,9486,9533,9562,9600,9806,9822,9829,9849,9853,9882,9906,9944,10077,10088,10123,10176,10241,10258,384,97,114,116,9335,9338,9340,114,242,2502,242,917,97,105,108,59,26907,97,114,114,59,26894,256,59,103,2452,9355,59,27275,97,114,59,26978,2403,9381,0,9386,0,9393,0,0,0,0,0,9397,9402,0,9414,9416,9421,0,9465,117,116,101,59,16698,109,112,116,121,118,59,27060,114,97,238,2124,98,100,97,59,17339,103,384,59,100,108,2190,9409,9411,59,27025,229,2190,59,27269,117,111,32827,171,16555,114,1024,59,98,102,104,108,112,115,116,2201,9438,9446,9449,9451,9454,9457,9461,256,59,102,2205,9443,115,59,26911,115,59,26909,235,8786,112,59,25003,108,59,26937,105,109,59,26995,108,59,24994,384,59,97,101,9471,9472,9476,27307,105,108,59,26905,256,59,115,9481,9482,27309,59,49152,10925,65024,384,97,98,114,9493,9497,9501,114,114,59,26892,114,107,59,26482,256,97,107,9506,9516,99,256,101,107,9512,9514,59,16507,59,16475,256,101,115,9521,9523,59,27019,108,256,100,117,9529,9531,59,27023,59,27021,512,97,101,117,121,9542,9547,9558,9560,114,111,110,59,16702,256,100,105,9552,9556,105,108,59,16700,236,2224,226,9513,59,17467,512,99,113,114,115,9571,9574,9581,9597,97,59,26934,117,111,256,59,114,3609,5958,256,100,117,9586,9591,104,97,114,59,26983,115,104,97,114,59,26955,104,59,25010,640,59,102,103,113,115,9611,9612,2441,9715,9727,25188,116,640,97,104,108,114,116,9624,9636,9655,9666,9704,114,114,111,119,256,59,116,2201,9633,97,233,9462,97,114,112,111,111,110,256,100,117,9647,9652,111,119,110,187,1114,112,187,2406,101,102,116,97,114,114,111,119,115,59,25031,105,103,104,116,384,97,104,115,9677,9686,9694,114,114,111,119,256,59,115,2292,2215,97,114,112,111,111,110,243,3992,113,117,105,103,97,114,114,111,247,8688,104,114,101,101,116,105,109,101,115,59,25291,384,59,113,115,9611,2451,9722,108,97,110,244,2476,640,59,99,100,103,115,2476,9738,9741,9757,9768,99,59,27304,111,116,256,59,111,9748,9749,27263,256,59,114,9754,9755,27265,59,27267,256,59,101,9762,9765,49152,8922,65024,115,59,27283,640,97,100,101,103,115,9779,9785,9789,9801,9803,112,112,114,111,248,9414,111,116,59,25302,113,256,103,113,9795,9797,244,2441,103,116,242,9356,244,2459,105,237,2482,384,105,108,114,9813,2273,9818,115,104,116,59,27004,59,49152,55349,56617,256,59,69,2460,9827,59,27281,353,9833,9846,114,256,100,117,9650,9838,256,59,108,2405,9843,59,26986,108,107,59,25988,99,121,59,17497,640,59,97,99,104,116,2632,9864,9867,9873,9878,114,242,9665,111,114,110,101,242,7432,97,114,100,59,26987,114,105,59,26106,256,105,111,9887,9892,100,111,116,59,16704,117,115,116,256,59,97,9900,9901,25520,99,104,101,187,9901,512,69,97,101,115,9915,9917,9929,9940,59,25192,112,256,59,112,9923,9924,27273,114,111,120,187,9924,256,59,113,9934,9935,27271,256,59,113,9934,9915,105,109,59,25318,1024,97,98,110,111,112,116,119,122,9961,9972,9975,10010,10031,10049,10055,10064,256,110,114,9966,9969,103,59,26604,114,59,25085,114,235,2241,103,384,108,109,114,9983,9997,10004,101,102,116,256,97,114,2534,9991,105,103,104,116,225,2546,97,112,115,116,111,59,26620,105,103,104,116,225,2557,112,97,114,114,111,119,256,108,114,10021,10025,101,102,244,9453,105,103,104,116,59,25004,384,97,102,108,10038,10041,10045,114,59,27013,59,49152,55349,56669,117,115,59,27181,105,109,101,115,59,27188,353,10059,10063,115,116,59,25111,225,4942,384,59,101,102,10071,10072,6144,26058,110,103,101,187,10072,97,114,256,59,108,10084,10085,16424,116,59,27027,640,97,99,104,109,116,10099,10102,10108,10117,10119,114,242,2216,111,114,110,101,242,7564,97,114,256,59,100,3992,10115,59,26989,59,24590,114,105,59,25279,768,97,99,104,105,113,116,10136,10141,2624,10146,10158,10171,113,117,111,59,24633,114,59,49152,55349,56513,109,384,59,101,103,2482,10154,10156,59,27277,59,27279,256,98,117,9514,10163,111,256,59,114,3615,10169,59,24602,114,111,107,59,16706,33792,60,59,99,100,104,105,108,113,114,2091,10194,9785,10204,10208,10213,10218,10224,256,99,105,10199,10201,59,27302,114,59,27257,114,101,229,9714,109,101,115,59,25289,97,114,114,59,26998,117,101,115,116,59,27259,256,80,105,10229,10233,97,114,59,27030,384,59,101,102,10240,2349,6171,26051,114,256,100,117,10247,10253,115,104,97,114,59,26954,104,97,114,59,26982,256,101,110,10263,10273,114,116,110,101,113,113,59,49152,8808,65024,197,10270,1792,68,97,99,100,101,102,104,105,108,110,111,112,115,117,10304,10309,10370,10382,10387,10400,10405,10408,10458,10466,10468,2691,10483,10498,68,111,116,59,25146,512,99,108,112,114,10318,10322,10339,10365,114,32827,175,16559,256,101,116,10327,10329,59,26178,256,59,101,10334,10335,26400,115,101,187,10335,256,59,115,4155,10344,116,111,512,59,100,108,117,4155,10355,10359,10363,111,119,238,1164,101,102,244,2319,240,5073,107,101,114,59,26030,256,111,121,10375,10380,109,109,97,59,27177,59,17468,97,115,104,59,24596,97,115,117,114,101,100,97,110,103,108,101,187,5670,114,59,49152,55349,56618,111,59,24871,384,99,100,110,10415,10420,10441,114,111,32827,181,16565,512,59,97,99,100,5220,10429,10432,10436,115,244,5799,105,114,59,27376,111,116,32955,183,437,117,115,384,59,98,100,10450,6403,10451,25106,256,59,117,7484,10456,59,27178,355,10462,10465,112,59,27355,242,8722,240,2689,256,100,112,10473,10478,101,108,115,59,25255,102,59,49152,55349,56670,256,99,116,10488,10493,114,59,49152,55349,56514,112,111,115,187,5533,384,59,108,109,10505,10506,10509,17340,116,105,109,97,112,59,25272,3072,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,10562,10579,10622,10633,10648,10714,10729,10773,10778,10840,10845,10883,10901,10916,10920,11012,11015,11076,11135,11182,11316,11367,11388,11497,256,103,116,10567,10571,59,49152,8921,824,256,59,118,10576,3023,49152,8811,8402,384,101,108,116,10586,10610,10614,102,116,256,97,114,10593,10599,114,114,111,119,59,25037,105,103,104,116,97,114,114,111,119,59,25038,59,49152,8920,824,256,59,118,10619,3143,49152,8810,8402,105,103,104,116,97,114,114,111,119,59,25039,256,68,100,10638,10643,97,115,104,59,25263,97,115,104,59,25262,640,98,99,110,112,116,10659,10663,10668,10673,10700,108,97,187,734,117,116,101,59,16708,103,59,49152,8736,8402,640,59,69,105,111,112,3460,10684,10688,10693,10696,59,49152,10864,824,100,59,49152,8779,824,115,59,16713,114,111,248,3460,117,114,256,59,97,10707,10708,26222,108,256,59,115,10707,2872,499,10719,0,10723,112,32955,160,2871,109,112,256,59,101,3065,3072,640,97,101,111,117,121,10740,10750,10755,10768,10771,496,10745,0,10747,59,27203,111,110,59,16712,100,105,108,59,16710,110,103,256,59,100,3454,10762,111,116,59,49152,10861,824,112,59,27202,59,17469,97,115,104,59,24595,896,59,65,97,100,113,115,120,2962,10793,10797,10811,10817,10821,10832,114,114,59,25047,114,256,104,114,10803,10806,107,59,26916,256,59,111,5106,5104,111,116,59,49152,8784,824,117,105,246,2915,256,101,105,10826,10830,97,114,59,26920,237,2968,105,115,116,256,59,115,2976,2975,114,59,49152,55349,56619,512,69,101,115,116,3013,10854,10873,10876,384,59,113,115,3004,10861,3041,384,59,113,115,3004,3013,10868,108,97,110,244,3042,105,237,3050,256,59,114,2998,10881,187,2999,384,65,97,112,10890,10893,10897,114,242,10609,114,114,59,25006,97,114,59,27378,384,59,115,118,3981,10908,3980,256,59,100,10913,10914,25340,59,25338,99,121,59,17498,896,65,69,97,100,101,115,116,10935,10938,10942,10946,10949,10998,11001,114,242,10598,59,49152,8806,824,114,114,59,24986,114,59,24613,512,59,102,113,115,3131,10958,10979,10991,116,256,97,114,10964,10969,114,114,111,247,10945,105,103,104,116,97,114,114,111,247,10896,384,59,113,115,3131,10938,10986,108,97,110,244,3157,256,59,115,3157,10996,187,3126,105,237,3165,256,59,114,3125,11006,105,256,59,101,3098,3109,105,228,3472,256,112,116,11020,11025,102,59,49152,55349,56671,33152,172,59,105,110,11033,11034,11062,16556,110,512,59,69,100,118,2953,11044,11048,11054,59,49152,8953,824,111,116,59,49152,8949,824,481,2953,11059,11061,59,25335,59,25334,105,256,59,118,3256,11068,481,3256,11073,11075,59,25342,59,25341,384,97,111,114,11083,11107,11113,114,512,59,97,115,116,2939,11093,11098,11103,108,108,101,236,2939,108,59,49152,11005,8421,59,49152,8706,824,108,105,110,116,59,27156,384,59,99,101,3218,11120,11123,117,229,3237,256,59,99,3224,11128,256,59,101,3218,11133,241,3224,512,65,97,105,116,11144,11147,11165,11175,114,242,10632,114,114,384,59,99,119,11156,11157,11161,24987,59,49152,10547,824,59,49152,8605,824,103,104,116,97,114,114,111,119,187,11157,114,105,256,59,101,3275,3286,896,99,104,105,109,112,113,117,11197,11213,11225,11012,2936,11236,11247,512,59,99,101,114,3378,11206,3383,11209,117,229,3397,59,49152,55349,56515,111,114,116,621,11013,0,0,11222,97,114,225,11094,109,256,59,101,3438,11231,256,59,113,3444,3443,115,117,256,98,112,11243,11245,229,3320,229,3339,384,98,99,112,11254,11281,11289,512,59,69,101,115,11263,11264,3362,11268,25220,59,49152,10949,824,101,116,256,59,101,3355,11275,113,256,59,113,3363,11264,99,256,59,101,3378,11287,241,3384,512,59,69,101,115,11298,11299,3423,11303,25221,59,49152,10950,824,101,116,256,59,101,3416,11310,113,256,59,113,3424,11299,512,103,105,108,114,11325,11327,11333,11335,236,3031,108,100,101,32827,241,16625,231,3139,105,97,110,103,108,101,256,108,114,11346,11356,101,102,116,256,59,101,3098,11354,241,3110,105,103,104,116,256,59,101,3275,11365,241,3287,256,59,109,11372,11373,17341,384,59,101,115,11380,11381,11385,16419,114,111,59,24854,112,59,24583,1152,68,72,97,100,103,105,108,114,115,11407,11412,11417,11422,11427,11440,11446,11475,11491,97,115,104,59,25261,97,114,114,59,26884,112,59,49152,8781,8402,97,115,104,59,25260,256,101,116,11432,11436,59,49152,8805,8402,59,49152,62,8402,110,102,105,110,59,27102,384,65,101,116,11453,11457,11461,114,114,59,26882,59,49152,8804,8402,256,59,114,11466,11469,49152,60,8402,105,101,59,49152,8884,8402,256,65,116,11480,11484,114,114,59,26883,114,105,101,59,49152,8885,8402,105,109,59,49152,8764,8402,384,65,97,110,11504,11508,11522,114,114,59,25046,114,256,104,114,11514,11517,107,59,26915,256,59,111,5095,5093,101,97,114,59,26919,4691,6805,0,0,0,0,0,0,0,0,0,0,0,0,0,11565,0,11576,11592,11616,11621,11634,11652,6919,0,0,11661,11691,0,11720,11726,0,11740,11801,11819,11838,11843,256,99,115,11569,6807,117,116,101,32827,243,16627,256,105,121,11580,11589,114,256,59,99,6814,11586,32827,244,16628,59,17470,640,97,98,105,111,115,6816,11602,11607,456,11610,108,97,99,59,16721,118,59,27192,111,108,100,59,27068,108,105,103,59,16723,256,99,114,11625,11629,105,114,59,27071,59,49152,55349,56620,879,11641,0,0,11644,0,11650,110,59,17115,97,118,101,32827,242,16626,59,27073,256,98,109,11656,3572,97,114,59,27061,512,97,99,105,116,11669,11672,11685,11688,114,242,6784,256,105,114,11677,11680,114,59,27070,111,115,115,59,27067,110,229,3666,59,27072,384,97,101,105,11697,11701,11705,99,114,59,16717,103,97,59,17353,384,99,100,110,11712,11717,461,114,111,110,59,17343,59,27062,112,102,59,49152,55349,56672,384,97,101,108,11732,11735,466,114,59,27063,114,112,59,27065,896,59,97,100,105,111,115,118,11754,11755,11758,11784,11789,11792,11798,25128,114,242,6790,512,59,101,102,109,11767,11768,11778,11781,27229,114,256,59,111,11774,11775,24884,102,187,11775,32827,170,16554,32827,186,16570,103,111,102,59,25270,114,59,27222,108,111,112,101,59,27223,59,27227,384,99,108,111,11807,11809,11815,242,11777,97,115,104,32827,248,16632,108,59,25240,105,364,11823,11828,100,101,32827,245,16629,101,115,256,59,97,475,11834,115,59,27190,109,108,32827,246,16630,98,97,114,59,25405,2785,11870,0,11901,0,11904,11933,0,11938,11961,0,0,11979,3740,0,12051,0,0,12075,12220,0,12232,114,512,59,97,115,116,1027,11879,11890,3717,33024,182,59,108,11885,11886,16566,108,101,236,1027,617,11896,0,0,11899,109,59,27379,59,27389,121,59,17471,114,640,99,105,109,112,116,11915,11919,11923,6245,11927,110,116,59,16421,111,100,59,16430,105,108,59,24624,101,110,107,59,24625,114,59,49152,55349,56621,384,105,109,111,11944,11952,11956,256,59,118,11949,11950,17350,59,17365,109,97,244,2678,110,101,59,26126,384,59,116,118,11967,11968,11976,17344,99,104,102,111,114,107,187,8189,59,17366,256,97,117,11983,11999,110,256,99,107,11989,11997,107,256,59,104,8692,11995,59,24846,246,8692,115,1152,59,97,98,99,100,101,109,115,116,12019,12020,6408,12025,12029,12036,12038,12042,12046,16427,99,105,114,59,27171,105,114,59,27170,256,111,117,7488,12034,59,27173,59,27250,110,32955,177,3741,105,109,59,27174,119,111,59,27175,384,105,112,117,12057,12064,12069,110,116,105,110,116,59,27157,102,59,49152,55349,56673,110,100,32827,163,16547,1280,59,69,97,99,101,105,110,111,115,117,3784,12095,12097,12100,12103,12161,12169,12178,12158,12214,59,27315,112,59,27319,117,229,3801,256,59,99,3790,12108,768,59,97,99,101,110,115,3784,12121,12127,12134,12136,12158,112,112,114,111,248,12099,117,114,108,121,101,241,3801,241,3790,384,97,101,115,12143,12150,12154,112,112,114,111,120,59,27321,113,113,59,27317,105,109,59,25320,105,237,3807,109,101,256,59,115,12168,3758,24626,384,69,97,115,12152,12176,12154,240,12149,384,100,102,112,3820,12185,12207,384,97,108,115,12192,12197,12202,108,97,114,59,25390,105,110,101,59,25362,117,114,102,59,25363,256,59,116,3835,12212,239,3835,114,101,108,59,25264,256,99,105,12224,12229,114,59,49152,55349,56517,59,17352,110,99,115,112,59,24584,768,102,105,111,112,115,117,12250,8930,12255,12261,12267,12273,114,59,49152,55349,56622,112,102,59,49152,55349,56674,114,105,109,101,59,24663,99,114,59,49152,55349,56518,384,97,101,111,12280,12297,12307,116,256,101,105,12286,12293,114,110,105,111,110,243,1712,110,116,59,27158,115,116,256,59,101,12304,12305,16447,241,7961,244,3860,2688,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,12352,12369,12373,12377,12512,12558,12587,12615,12642,12658,12686,12806,12821,12836,12841,12888,12910,12914,12944,12976,12983,384,97,114,116,12359,12362,12364,114,242,4275,242,989,97,105,108,59,26908,97,114,242,7269,97,114,59,26980,896,99,100,101,110,113,114,116,12392,12405,12408,12415,12431,12436,12492,256,101,117,12397,12401,59,49152,8765,817,116,101,59,16725,105,227,4462,109,112,116,121,118,59,27059,103,512,59,100,101,108,4049,12425,12427,12429,59,27026,59,27045,229,4049,117,111,32827,187,16571,114,1408,59,97,98,99,102,104,108,112,115,116,119,4060,12460,12463,12471,12473,12476,12478,12480,12483,12487,12490,112,59,26997,256,59,102,4064,12468,115,59,26912,59,26931,115,59,26910,235,8797,240,10030,108,59,26949,105,109,59,26996,108,59,24995,59,24989,256,97,105,12497,12501,105,108,59,26906,111,256,59,110,12507,12508,25142,97,108,243,3870,384,97,98,114,12519,12522,12526,114,242,6117,114,107,59,26483,256,97,107,12531,12541,99,256,101,107,12537,12539,59,16509,59,16477,256,101,115,12546,12548,59,27020,108,256,100,117,12554,12556,59,27022,59,27024,512,97,101,117,121,12567,12572,12583,12585,114,111,110,59,16729,256,100,105,12577,12581,105,108,59,16727,236,4082,226,12538,59,17472,512,99,108,113,115,12596,12599,12605,12612,97,59,26935,100,104,97,114,59,26985,117,111,256,59,114,526,525,104,59,25011,384,97,99,103,12622,12639,3908,108,512,59,105,112,115,3960,12632,12635,4252,110,229,4283,97,114,244,4009,116,59,26029,384,105,108,114,12649,4131,12654,115,104,116,59,27005,59,49152,55349,56623,256,97,111,12663,12678,114,256,100,117,12669,12671,187,1147,256,59,108,4241,12676,59,26988,256,59,118,12683,12684,17345,59,17393,384,103,110,115,12693,12793,12796,104,116,768,97,104,108,114,115,116,12708,12720,12738,12760,12772,12782,114,114,111,119,256,59,116,4060,12717,97,233,12488,97,114,112,111,111,110,256,100,117,12731,12735,111,119,238,12670,112,187,4242,101,102,116,256,97,104,12746,12752,114,114,111,119,243,4074,97,114,112,111,111,110,243,1361,105,103,104,116,97,114,114,111,119,115,59,25033,113,117,105,103,97,114,114,111,247,12491,104,114,101,101,116,105,109,101,115,59,25292,103,59,17114,105,110,103,100,111,116,115,101,241,7986,384,97,104,109,12813,12816,12819,114,242,4074,97,242,1361,59,24591,111,117,115,116,256,59,97,12830,12831,25521,99,104,101,187,12831,109,105,100,59,27374,512,97,98,112,116,12850,12861,12864,12882,256,110,114,12855,12858,103,59,26605,114,59,25086,114,235,4099,384,97,102,108,12871,12874,12878,114,59,27014,59,49152,55349,56675,117,115,59,27182,105,109,101,115,59,27189,256,97,112,12893,12903,114,256,59,103,12899,12900,16425,116,59,27028,111,108,105,110,116,59,27154,97,114,242,12771,512,97,99,104,113,12923,12928,4284,12933,113,117,111,59,24634,114,59,49152,55349,56519,256,98,117,12539,12938,111,256,59,114,532,531,384,104,105,114,12951,12955,12960,114,101,229,12792,109,101,115,59,25290,105,512,59,101,102,108,12970,4185,6177,12971,26041,116,114,105,59,27086,108,117,104,97,114,59,26984,59,24862,3425,13013,13019,13023,13100,13112,13169,0,13178,13220,0,0,13292,13296,0,13352,13384,13402,13485,13489,13514,13553,0,13846,0,0,13875,99,117,116,101,59,16731,113,117,239,10170,1280,59,69,97,99,101,105,110,112,115,121,4589,13043,13045,13055,13058,13067,13071,13087,13094,13097,59,27316,496,13050,0,13052,59,27320,111,110,59,16737,117,229,4606,256,59,100,4595,13063,105,108,59,16735,114,99,59,16733,384,69,97,115,13078,13080,13083,59,27318,112,59,27322,105,109,59,25321,111,108,105,110,116,59,27155,105,237,4612,59,17473,111,116,384,59,98,101,13108,7495,13109,25285,59,27238,896,65,97,99,109,115,116,120,13126,13130,13143,13147,13150,13155,13165,114,114,59,25048,114,256,104,114,13136,13138,235,8744,256,59,111,2614,2612,116,32827,167,16551,105,59,16443,119,97,114,59,26921,109,256,105,110,13161,240,110,117,243,241,116,59,26422,114,256,59,111,13174,8277,49152,55349,56624,512,97,99,111,121,13186,13190,13201,13216,114,112,59,26223,256,104,121,13195,13199,99,121,59,17481,59,17480,114,116,621,13209,0,0,13212,105,228,5220,97,114,97,236,11887,32827,173,16557,256,103,109,13224,13236,109,97,384,59,102,118,13233,13234,13234,17347,59,17346,1024,59,100,101,103,108,110,112,114,4779,13253,13257,13262,13270,13278,13281,13286,111,116,59,27242,256,59,113,4785,4784,256,59,69,13267,13268,27294,59,27296,256,59,69,13275,13276,27293,59,27295,101,59,25158,108,117,115,59,27172,97,114,114,59,26994,97,114,242,4413,512,97,101,105,116,13304,13320,13327,13335,256,108,115,13309,13316,108,115,101,116,109,233,13162,104,112,59,27187,112,97,114,115,108,59,27108,256,100,108,5219,13332,101,59,25379,256,59,101,13340,13341,27306,256,59,115,13346,13347,27308,59,49152,10924,65024,384,102,108,112,13358,13363,13378,116,99,121,59,17484,256,59,98,13368,13369,16431,256,59,97,13374,13375,27076,114,59,25407,102,59,49152,55349,56676,97,256,100,114,13389,1026,101,115,256,59,117,13396,13397,26208,105,116,187,13397,384,99,115,117,13408,13433,13471,256,97,117,13413,13423,112,256,59,115,4488,13419,59,49152,8851,65024,112,256,59,115,4532,13429,59,49152,8852,65024,117,256,98,112,13439,13455,384,59,101,115,4503,4508,13446,101,116,256,59,101,4503,13453,241,4509,384,59,101,115,4520,4525,13462,101,116,256,59,101,4520,13469,241,4526,384,59,97,102,4475,13478,1456,114,357,13483,1457,187,4476,97,114,242,4424,512,99,101,109,116,13497,13502,13506,13509,114,59,49152,55349,56520,116,109,238,241,105,236,13333,97,114,230,4542,256,97,114,13518,13525,114,256,59,102,13524,6079,26118,256,97,110,13530,13549,105,103,104,116,256,101,112,13539,13546,112,115,105,108,111,238,7904,104,233,11951,115,187,10322,640,98,99,109,110,112,13563,13662,4617,13707,13710,1152,59,69,100,101,109,110,112,114,115,13582,13583,13585,13589,13598,13603,13612,13617,13622,25218,59,27333,111,116,59,27325,256,59,100,4570,13594,111,116,59,27331,117,108,116,59,27329,256,69,101,13608,13610,59,27339,59,25226,108,117,115,59,27327,97,114,114,59,27001,384,101,105,117,13629,13650,13653,116,384,59,101,110,13582,13637,13643,113,256,59,113,4570,13583,101,113,256,59,113,13611,13608,109,59,27335,256,98,112,13658,13660,59,27349,59,27347,99,768,59,97,99,101,110,115,4589,13676,13682,13689,13691,13094,112,112,114,111,248,13050,117,114,108,121,101,241,4606,241,4595,384,97,101,115,13698,13704,13083,112,112,114,111,248,13082,113,241,13079,103,59,26218,1664,49,50,51,59,69,100,101,104,108,109,110,112,115,13737,13740,13743,4636,13746,13748,13760,13769,13781,13786,13791,13800,13805,32827,185,16569,32827,178,16562,32827,179,16563,59,27334,256,111,115,13753,13756,116,59,27326,117,98,59,27352,256,59,100,4642,13765,111,116,59,27332,115,256,111,117,13775,13778,108,59,26569,98,59,27351,97,114,114,59,27003,117,108,116,59,27330,256,69,101,13796,13798,59,27340,59,25227,108,117,115,59,27328,384,101,105,117,13812,13833,13836,116,384,59,101,110,4636,13820,13826,113,256,59,113,4642,13746,101,113,256,59,113,13799,13796,109,59,27336,256,98,112,13841,13843,59,27348,59,27350,384,65,97,110,13852,13856,13869,114,114,59,25049,114,256,104,114,13862,13864,235,8750,256,59,111,2603,2601,119,97,114,59,26922,108,105,103,32827,223,16607,3041,13905,13917,13920,4814,13939,13945,0,13950,14018,0,0,0,0,0,14043,14083,0,14089,14188,0,0,0,14215,626,13910,0,0,13915,103,101,116,59,25366,59,17348,114,235,3679,384,97,101,121,13926,13931,13936,114,111,110,59,16741,100,105,108,59,16739,59,17474,108,114,101,99,59,25365,114,59,49152,55349,56625,512,101,105,107,111,13958,13981,14005,14012,498,13963,0,13969,101,256,52,102,4740,4737,97,384,59,115,118,13976,13977,13979,17336,121,109,59,17361,256,99,110,13986,14002,107,256,97,115,13992,13998,112,112,114,111,248,4801,105,109,187,4780,115,240,4766,256,97,115,14010,13998,240,4801,114,110,32827,254,16638,492,799,14022,8935,101,115,33152,215,59,98,100,14031,14032,14040,16599,256,59,97,6415,14037,114,59,27185,59,27184,384,101,112,115,14049,14051,14080,225,10829,512,59,98,99,102,1158,14060,14064,14068,111,116,59,25398,105,114,59,27377,256,59,111,14073,14076,49152,55349,56677,114,107,59,27354,225,13154,114,105,109,101,59,24628,384,97,105,112,14095,14098,14180,100,229,4680,896,97,100,101,109,112,115,116,14113,14157,14144,14161,14167,14172,14175,110,103,108,101,640,59,100,108,113,114,14128,14129,14134,14144,14146,26037,111,119,110,187,7611,101,102,116,256,59,101,10240,14142,241,2350,59,25180,105,103,104,116,256,59,101,12970,14155,241,4186,111,116,59,26092,105,110,117,115,59,27194,108,117,115,59,27193,98,59,27085,105,109,101,59,27195,101,122,105,117,109,59,25570,384,99,104,116,14194,14205,14209,256,114,121,14199,14203,59,49152,55349,56521,59,17478,99,121,59,17499,114,111,107,59,16743,256,105,111,14219,14222,120,244,6007,104,101,97,100,256,108,114,14231,14240,101,102,116,97,114,114,111,247,2127,105,103,104,116,97,114,114,111,119,187,3933,2304,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,14288,14291,14295,14308,14320,14332,14350,14364,14371,14388,14417,14429,14443,14505,14540,14546,14570,14582,114,242,1005,97,114,59,26979,256,99,114,14300,14306,117,116,101,32827,250,16634,242,4432,114,483,14314,0,14317,121,59,17502,118,101,59,16749,256,105,121,14325,14330,114,99,32827,251,16635,59,17475,384,97,98,104,14339,14342,14347,114,242,5037,108,97,99,59,16753,97,242,5059,256,105,114,14355,14360,115,104,116,59,27006,59,49152,55349,56626,114,97,118,101,32827,249,16633,353,14375,14385,114,256,108,114,14380,14382,187,2391,187,4227,108,107,59,25984,256,99,116,14393,14413,623,14399,0,0,14410,114,110,256,59,101,14405,14406,25372,114,187,14406,111,112,59,25359,114,105,59,26104,256,97,108,14422,14426,99,114,59,16747,32955,168,841,256,103,112,14434,14438,111,110,59,16755,102,59,49152,55349,56678,768,97,100,104,108,115,117,4427,14456,14461,4978,14481,14496,111,119,110,225,5043,97,114,112,111,111,110,256,108,114,14472,14476,101,102,244,14381,105,103,104,244,14383,105,384,59,104,108,14489,14490,14492,17349,187,5114,111,110,187,14490,112,97,114,114,111,119,115,59,25032,384,99,105,116,14512,14532,14536,623,14518,0,0,14529,114,110,256,59,101,14524,14525,25373,114,187,14525,111,112,59,25358,110,103,59,16751,114,105,59,26105,99,114,59,49152,55349,56522,384,100,105,114,14553,14557,14562,111,116,59,25328,108,100,101,59,16745,105,256,59,102,14128,14568,187,6163,256,97,109,14575,14578,114,242,14504,108,32827,252,16636,97,110,103,108,101,59,27047,1920,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,14620,14623,14633,14637,14773,14776,14781,14815,14820,14824,14835,14841,14845,14849,14880,114,242,1015,97,114,256,59,118,14630,14631,27368,59,27369,97,115,232,993,256,110,114,14642,14647,103,114,116,59,27036,896,101,107,110,112,114,115,116,13539,14662,14667,14674,14685,14692,14742,97,112,112,225,9237,111,116,104,105,110,231,7830,384,104,105,114,13547,11976,14681,111,112,244,12213,256,59,104,5047,14690,239,12685,256,105,117,14697,14701,103,109,225,13235,256,98,112,14706,14724,115,101,116,110,101,113,256,59,113,14717,14720,49152,8842,65024,59,49152,10955,65024,115,101,116,110,101,113,256,59,113,14735,14738,49152,8843,65024,59,49152,10956,65024,256,104,114,14747,14751,101,116,225,13980,105,97,110,103,108,101,256,108,114,14762,14767,101,102,116,187,2341,105,103,104,116,187,4177,121,59,17458,97,115,104,187,4150,384,101,108,114,14788,14802,14807,384,59,98,101,11754,14795,14799,97,114,59,25275,113,59,25178,108,105,112,59,25326,256,98,116,14812,5224,97,242,5225,114,59,49152,55349,56627,116,114,233,14766,115,117,256,98,112,14831,14833,187,3356,187,3417,112,102,59,49152,55349,56679,114,111,240,3835,116,114,233,14772,256,99,117,14854,14859,114,59,49152,55349,56523,256,98,112,14864,14872,110,256,69,101,14720,14870,187,14718,110,256,69,101,14738,14878,187,14736,105,103,122,97,103,59,27034,896,99,101,102,111,112,114,115,14902,14907,14934,14939,14932,14945,14954,105,114,99,59,16757,256,100,105,14912,14929,256,98,103,14917,14921,97,114,59,27231,101,256,59,113,5626,14927,59,25177,101,114,112,59,24856,114,59,49152,55349,56628,112,102,59,49152,55349,56680,256,59,101,5241,14950,97,116,232,5241,99,114,59,49152,55349,56524,2787,6030,14983,0,14987,0,14992,15003,0,0,15005,15016,15019,15023,0,0,15043,15054,0,15064,6108,6111,116,114,233,6097,114,59,49152,55349,56629,256,65,97,14996,14999,114,242,963,114,242,2550,59,17342,256,65,97,15009,15012,114,242,952,114,242,2539,97,240,10003,105,115,59,25339,384,100,112,116,6052,15029,15038,256,102,108,15034,6057,59,49152,55349,56681,105,109,229,6066,256,65,97,15047,15050,114,242,974,114,242,2561,256,99,113,15058,6072,114,59,49152,55349,56525,256,112,116,6102,15068,114,233,6100,1024,97,99,101,102,105,111,115,117,15088,15101,15112,15116,15121,15125,15131,15137,99,256,117,121,15094,15099,116,101,32827,253,16637,59,17487,256,105,121,15106,15110,114,99,59,16759,59,17483,110,32827,165,16549,114,59,49152,55349,56630,99,121,59,17495,112,102,59,49152,55349,56682,99,114,59,49152,55349,56526,256,99,109,15142,15145,121,59,17486,108,32827,255,16639,1280,97,99,100,101,102,104,105,111,115,119,15170,15176,15188,15192,15204,15209,15213,15220,15226,15232,99,117,116,101,59,16762,256,97,121,15181,15186,114,111,110,59,16766,59,17463,111,116,59,16764,256,101,116,15197,15201,116,114,230,5471,97,59,17334,114,59,49152,55349,56631,99,121,59,17462,103,114,97,114,114,59,25053,112,102,59,49152,55349,56683,99,114,59,49152,55349,56527,256,106,110,15237,15239,59,24589,106,59,24588])}));n(yT);var CT=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array([512,97,103,108,113,9,21,24,27,621,15,0,0,18,112,59,16422,111,115,59,16423,116,59,16446,116,59,16444,117,111,116,59,16418])}));n(CT);var bT=r((function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function A(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=r.get(e))&&void 0!==t?t:e}t.fromCodePoint=null!==(n=String.fromCodePoint)&&void 0!==n?n:function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)},t.replaceCodePoint=A,t.default=function(e){return(0,t.fromCodePoint)(A(e))}}));n(bT);bT.replaceCodePoint,bT.fromCodePoint;var wT=r((function(e,n){var r=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.decodeXML=n.decodeHTMLStrict=n.decodeHTML=n.determineBranch=n.BinTrieFlags=n.fromCodePoint=n.replaceCodePoint=n.decodeCodePoint=n.xmlDecodeTree=n.htmlDecodeTree=void 0;var A=r(yT);n.htmlDecodeTree=A.default;var i=r(CT);n.xmlDecodeTree=i.default;var o=r(bT);n.decodeCodePoint=o.default;var a,s,c=bT;function l(e){return function(t,n){for(var r="",A=0,i=0;(i=t.indexOf("&",i))>=0;)if(r+=t.slice(A,i),A=i,i+=1,t.charCodeAt(i)!==a.NUM){for(var c=0,l=1,f=0,h=e[f];i<t.length&&!((f=u(e,h,f+1,t.charCodeAt(i)))<0);i++,l++){var d=(h=e[f])&s.VALUE_LENGTH;if(d){var p;if(n&&t.charCodeAt(i)!==a.SEMI||(c=f,l=0),0===(p=(d>>14)-1))break;f+=p}}if(0!==c)r+=1===(p=(e[c]&s.VALUE_LENGTH)>>14)?String.fromCharCode(e[c]&~s.VALUE_LENGTH):2===p?String.fromCharCode(e[c+1]):String.fromCharCode(e[c+1],e[c+2]),A=i-l+1}else{var g=i+1,m=10,v=t.charCodeAt(g);(v|a.To_LOWER_BIT)===a.LOWER_X&&(m=16,i+=1,g+=1);do{v=t.charCodeAt(++i)}while(v>=a.ZERO&&v<=a.NINE||16===m&&(v|a.To_LOWER_BIT)>=a.LOWER_A&&(v|a.To_LOWER_BIT)<=a.LOWER_F);if(g!==i){var B=t.substring(g,i),E=parseInt(B,m);if(t.charCodeAt(i)===a.SEMI)i+=1;else if(n)continue;r+=(0,o.default)(E),A=i}}return r+t.slice(A)}}function u(e,t,n,r){var A=(t&s.BRANCH_LENGTH)>>7,i=t&s.JUMP_TABLE;if(0===A)return 0!==i&&r===i?n:-1;if(i){var o=r-i;return o<0||o>A?-1:e[n+o]-1}for(var a=n,c=a+A-1;a<=c;){var l=a+c>>>1,u=e[l];if(u<r)a=l+1;else{if(!(u>r))return e[l+A];c=l-1}}return-1}Object.defineProperty(n,"replaceCodePoint",{enumerable:!0,get:function(){return c.replaceCodePoint}}),Object.defineProperty(n,"fromCodePoint",{enumerable:!0,get:function(){return c.fromCodePoint}}),function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.To_LOWER_BIT=32]="To_LOWER_BIT"}(a||(a={})),function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(s=n.BinTrieFlags||(n.BinTrieFlags={})),n.determineBranch=u;var f=l(A.default),h=l(i.default);n.decodeHTML=function(e){return f(e,!1)},n.decodeHTMLStrict=function(e){return f(e,!0)},n.decodeXML=function(e){return h(e,!0)}}));n(wT);wT.decodeXML,wT.decodeHTMLStrict,wT.decodeHTML;var TT,_T,IT,ST,kT,FT=wT.determineBranch,xT=wT.BinTrieFlags,LT=wT.fromCodePoint,UT=wT.replaceCodePoint,NT=(wT.decodeCodePoint,wT.xmlDecodeTree),DT=wT.htmlDecodeTree;!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"}(TT||(TT={})),function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"}(_T||(_T={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(IT||(IT={})),function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"}(ST||(ST={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"}(kT||(kT={}));const OT=new Map([[ST.A,kT.A],[ST.ADDRESS,kT.ADDRESS],[ST.ANNOTATION_XML,kT.ANNOTATION_XML],[ST.APPLET,kT.APPLET],[ST.AREA,kT.AREA],[ST.ARTICLE,kT.ARTICLE],[ST.ASIDE,kT.ASIDE],[ST.B,kT.B],[ST.BASE,kT.BASE],[ST.BASEFONT,kT.BASEFONT],[ST.BGSOUND,kT.BGSOUND],[ST.BIG,kT.BIG],[ST.BLOCKQUOTE,kT.BLOCKQUOTE],[ST.BODY,kT.BODY],[ST.BR,kT.BR],[ST.BUTTON,kT.BUTTON],[ST.CAPTION,kT.CAPTION],[ST.CENTER,kT.CENTER],[ST.CODE,kT.CODE],[ST.COL,kT.COL],[ST.COLGROUP,kT.COLGROUP],[ST.DD,kT.DD],[ST.DESC,kT.DESC],[ST.DETAILS,kT.DETAILS],[ST.DIALOG,kT.DIALOG],[ST.DIR,kT.DIR],[ST.DIV,kT.DIV],[ST.DL,kT.DL],[ST.DT,kT.DT],[ST.EM,kT.EM],[ST.EMBED,kT.EMBED],[ST.FIELDSET,kT.FIELDSET],[ST.FIGCAPTION,kT.FIGCAPTION],[ST.FIGURE,kT.FIGURE],[ST.FONT,kT.FONT],[ST.FOOTER,kT.FOOTER],[ST.FOREIGN_OBJECT,kT.FOREIGN_OBJECT],[ST.FORM,kT.FORM],[ST.FRAME,kT.FRAME],[ST.FRAMESET,kT.FRAMESET],[ST.H1,kT.H1],[ST.H2,kT.H2],[ST.H3,kT.H3],[ST.H4,kT.H4],[ST.H5,kT.H5],[ST.H6,kT.H6],[ST.HEAD,kT.HEAD],[ST.HEADER,kT.HEADER],[ST.HGROUP,kT.HGROUP],[ST.HR,kT.HR],[ST.HTML,kT.HTML],[ST.I,kT.I],[ST.IMG,kT.IMG],[ST.IMAGE,kT.IMAGE],[ST.INPUT,kT.INPUT],[ST.IFRAME,kT.IFRAME],[ST.KEYGEN,kT.KEYGEN],[ST.LABEL,kT.LABEL],[ST.LI,kT.LI],[ST.LINK,kT.LINK],[ST.LISTING,kT.LISTING],[ST.MAIN,kT.MAIN],[ST.MALIGNMARK,kT.MALIGNMARK],[ST.MARQUEE,kT.MARQUEE],[ST.MATH,kT.MATH],[ST.MENU,kT.MENU],[ST.META,kT.META],[ST.MGLYPH,kT.MGLYPH],[ST.MI,kT.MI],[ST.MO,kT.MO],[ST.MN,kT.MN],[ST.MS,kT.MS],[ST.MTEXT,kT.MTEXT],[ST.NAV,kT.NAV],[ST.NOBR,kT.NOBR],[ST.NOFRAMES,kT.NOFRAMES],[ST.NOEMBED,kT.NOEMBED],[ST.NOSCRIPT,kT.NOSCRIPT],[ST.OBJECT,kT.OBJECT],[ST.OL,kT.OL],[ST.OPTGROUP,kT.OPTGROUP],[ST.OPTION,kT.OPTION],[ST.P,kT.P],[ST.PARAM,kT.PARAM],[ST.PLAINTEXT,kT.PLAINTEXT],[ST.PRE,kT.PRE],[ST.RB,kT.RB],[ST.RP,kT.RP],[ST.RT,kT.RT],[ST.RTC,kT.RTC],[ST.RUBY,kT.RUBY],[ST.S,kT.S],[ST.SCRIPT,kT.SCRIPT],[ST.SECTION,kT.SECTION],[ST.SELECT,kT.SELECT],[ST.SOURCE,kT.SOURCE],[ST.SMALL,kT.SMALL],[ST.SPAN,kT.SPAN],[ST.STRIKE,kT.STRIKE],[ST.STRONG,kT.STRONG],[ST.STYLE,kT.STYLE],[ST.SUB,kT.SUB],[ST.SUMMARY,kT.SUMMARY],[ST.SUP,kT.SUP],[ST.TABLE,kT.TABLE],[ST.TBODY,kT.TBODY],[ST.TEMPLATE,kT.TEMPLATE],[ST.TEXTAREA,kT.TEXTAREA],[ST.TFOOT,kT.TFOOT],[ST.TD,kT.TD],[ST.TH,kT.TH],[ST.THEAD,kT.THEAD],[ST.TITLE,kT.TITLE],[ST.TR,kT.TR],[ST.TRACK,kT.TRACK],[ST.TT,kT.TT],[ST.U,kT.U],[ST.UL,kT.UL],[ST.SVG,kT.SVG],[ST.VAR,kT.VAR],[ST.WBR,kT.WBR],[ST.XMP,kT.XMP]]);function QT(e){var t;return null!==(t=OT.get(e))&&void 0!==t?t:kT.UNKNOWN}const RT=kT,MT={[TT.HTML]:new Set([RT.ADDRESS,RT.APPLET,RT.AREA,RT.ARTICLE,RT.ASIDE,RT.BASE,RT.BASEFONT,RT.BGSOUND,RT.BLOCKQUOTE,RT.BODY,RT.BR,RT.BUTTON,RT.CAPTION,RT.CENTER,RT.COL,RT.COLGROUP,RT.DD,RT.DETAILS,RT.DIR,RT.DIV,RT.DL,RT.DT,RT.EMBED,RT.FIELDSET,RT.FIGCAPTION,RT.FIGURE,RT.FOOTER,RT.FORM,RT.FRAME,RT.FRAMESET,RT.H1,RT.H2,RT.H3,RT.H4,RT.H5,RT.H6,RT.HEAD,RT.HEADER,RT.HGROUP,RT.HR,RT.HTML,RT.IFRAME,RT.IMG,RT.INPUT,RT.LI,RT.LINK,RT.LISTING,RT.MAIN,RT.MARQUEE,RT.MENU,RT.META,RT.NAV,RT.NOEMBED,RT.NOFRAMES,RT.NOSCRIPT,RT.OBJECT,RT.OL,RT.P,RT.PARAM,RT.PLAINTEXT,RT.PRE,RT.SCRIPT,RT.SECTION,RT.SELECT,RT.SOURCE,RT.STYLE,RT.SUMMARY,RT.TABLE,RT.TBODY,RT.TD,RT.TEMPLATE,RT.TEXTAREA,RT.TFOOT,RT.TH,RT.THEAD,RT.TITLE,RT.TR,RT.TRACK,RT.UL,RT.WBR,RT.XMP]),[TT.MATHML]:new Set([RT.MI,RT.MO,RT.MN,RT.MS,RT.MTEXT,RT.ANNOTATION_XML]),[TT.SVG]:new Set([RT.TITLE,RT.FOREIGN_OBJECT,RT.DESC]),[TT.XLINK]:new Set,[TT.XML]:new Set,[TT.XMLNS]:new Set};function HT(e){return e===RT.H1||e===RT.H2||e===RT.H3||e===RT.H4||e===RT.H5||e===RT.H6}const PT=new Set([ST.STYLE,ST.SCRIPT,ST.XMP,ST.IFRAME,ST.NOEMBED,ST.NOFRAMES,ST.PLAINTEXT]);const KT=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var GT;!function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.DECIMAL_CHARACTER_REFERENCE_START=76]="DECIMAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=77]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=78]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=79]="NUMERIC_CHARACTER_REFERENCE_END"}(GT||(GT={}));const $T={DATA:GT.DATA,RCDATA:GT.RCDATA,RAWTEXT:GT.RAWTEXT,SCRIPT_DATA:GT.SCRIPT_DATA,PLAINTEXT:GT.PLAINTEXT,CDATA_SECTION:GT.CDATA_SECTION};function VT(e){return e>=aT.DIGIT_0&&e<=aT.DIGIT_9}function WT(e){return e>=aT.LATIN_CAPITAL_A&&e<=aT.LATIN_CAPITAL_Z}function jT(e){return function(e){return e>=aT.LATIN_SMALL_A&&e<=aT.LATIN_SMALL_Z}(e)||WT(e)}function YT(e){return jT(e)||VT(e)}function XT(e){return e>=aT.LATIN_CAPITAL_A&&e<=aT.LATIN_CAPITAL_F}function zT(e){return e>=aT.LATIN_SMALL_A&&e<=aT.LATIN_SMALL_F}function qT(e){return e+32}function JT(e){return e===aT.SPACE||e===aT.LINE_FEED||e===aT.TABULATION||e===aT.FORM_FEED}function ZT(e){return JT(e)||e===aT.SOLIDUS||e===aT.GREATER_THAN_SIGN}class e_{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=GT.DATA,this.returnState=GT.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new vT(t),this.currentLocation=this.getCurrentLocation(-1)}_err(e){var t,n;null===(n=(t=this.handler).onParseError)||void 0===n||n.call(t,this.preprocessor.getError(e))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(e){this.consumedAfterSnapshot-=e,this.preprocessor.retreat(e)}_reconsumeInState(e){this.state=e,this._unconsume(1)}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:BT.START_TAG,tagName:"",tagID:kT.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:BT.END_TAG,tagName:"",tagID:kT.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:BT.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:BT.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const n=this.currentToken;if(null===ET(n,this.currentAttr.name)){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){(null!==(e=(t=n.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(mT.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=QT(e.tagName),e.type===BT.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(mT.endTagWithAttributes),e.selfClosing&&this._err(mT.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case BT.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case BT.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case BT.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:BT.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){let t=BT.CHARACTER;JT(e)?t=BT.WHITESPACE_CHARACTER:e===aT.NULL&&(t=BT.NULL_CHARACTER),this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(BT.CHARACTER,e)}_matchNamedCharacterReference(e){let t=null,n=0,r=!1;for(let i=0,o=DT[0];i>=0&&(i=FT(DT,o,i+1,e),!(i<0));e=this._consume()){n+=1,o=DT[i];const a=o&xT.VALUE_LENGTH;if(a){const o=(a>>14)-1;if(e!==aT.SEMICOLON&&this._isCharacterReferenceInAttribute()&&((A=this.preprocessor.peek(1))===aT.EQUALS_SIGN||YT(A))?(t=[aT.AMPERSAND],i+=o):(t=0===o?[DT[i]&~xT.VALUE_LENGTH]:1===o?[DT[++i]]:[DT[++i],DT[++i]],n=0,r=e!==aT.SEMICOLON),0===o){this._consume();break}}}var A;return this._unconsume(n),r&&!this.preprocessor.endOfChunkHit&&this._err(mT.missingSemicolonAfterCharacterReference),this._unconsume(1),t}_isCharacterReferenceInAttribute(){return this.returnState===GT.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===GT.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===GT.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case GT.DATA:this._stateData(e);break;case GT.RCDATA:this._stateRcdata(e);break;case GT.RAWTEXT:this._stateRawtext(e);break;case GT.SCRIPT_DATA:this._stateScriptData(e);break;case GT.PLAINTEXT:this._statePlaintext(e);break;case GT.TAG_OPEN:this._stateTagOpen(e);break;case GT.END_TAG_OPEN:this._stateEndTagOpen(e);break;case GT.TAG_NAME:this._stateTagName(e);break;case GT.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case GT.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case GT.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case GT.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case GT.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case GT.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case GT.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case GT.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case GT.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case GT.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case GT.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case GT.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case GT.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case GT.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case GT.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case GT.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case GT.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case GT.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case GT.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case GT.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case GT.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case GT.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case GT.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case GT.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case GT.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case GT.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case GT.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case GT.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case GT.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case GT.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case GT.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case GT.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case GT.BOGUS_COMMENT:this._stateBogusComment(e);break;case GT.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case GT.COMMENT_START:this._stateCommentStart(e);break;case GT.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case GT.COMMENT:this._stateComment(e);break;case GT.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case GT.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case GT.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case GT.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case GT.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case GT.COMMENT_END:this._stateCommentEnd(e);break;case GT.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case GT.DOCTYPE:this._stateDoctype(e);break;case GT.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case GT.DOCTYPE_NAME:this._stateDoctypeName(e);break;case GT.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case GT.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case GT.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case GT.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case GT.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case GT.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case GT.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case GT.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case GT.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case GT.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case GT.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case GT.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case GT.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case GT.CDATA_SECTION:this._stateCdataSection(e);break;case GT.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case GT.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case GT.CHARACTER_REFERENCE:this._stateCharacterReference(e);break;case GT.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(e);break;case GT.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;case GT.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(e);break;case GT.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(e);break;case GT.DECIMAL_CHARACTER_REFERENCE_START:this._stateDecimalCharacterReferenceStart(e);break;case GT.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(e);break;case GT.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e);break;case GT.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd();break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case aT.LESS_THAN_SIGN:this.state=GT.TAG_OPEN;break;case aT.AMPERSAND:this.returnState=GT.DATA,this.state=GT.CHARACTER_REFERENCE;break;case aT.NULL:this._err(mT.unexpectedNullCharacter),this._emitCodePoint(e);break;case aT.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case aT.AMPERSAND:this.returnState=GT.RCDATA,this.state=GT.CHARACTER_REFERENCE;break;case aT.LESS_THAN_SIGN:this.state=GT.RCDATA_LESS_THAN_SIGN;break;case aT.NULL:this._err(mT.unexpectedNullCharacter),this._emitChars("<22>");break;case aT.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case aT.LESS_THAN_SIGN:this.state=GT.RAWTEXT_LESS_THAN_SIGN;break;case aT.NULL:this._err(mT.unexpectedNullCharacter),this._emitChars("<22>");break;case aT.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case aT.LESS_THAN_SIGN:this.state=GT.SCRIPT_DATA_LESS_THAN_SIGN;break;case aT.NULL:this._err(mT.unexpectedNullCharacter),this._emitChars("<22>");break;case aT.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case aT.NULL:this._err(mT.unexpectedNullCharacter),this._emitChars("<22>");break;case aT.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(jT(e))this._createStartTagToken(),this.state=GT.TAG_NAME,this._stateTagName(e);else switch(e){case aT.EXCLAMATION_MARK:this.state=GT.MARKUP_DECLARATION_OPEN;break;case aT.SOLIDUS:this.state=GT.END_TAG_OPEN;break;case aT.QUESTION_MARK:this._err(mT.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=GT.BOGUS_COMMENT,this._stateBogusComment(e);break;case aT.EOF:this._err(mT.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(mT.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=GT.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(jT(e))this._createEndTagToken(),this.state=GT.TAG_NAME,this._stateTagName(e);else switch(e){case aT.GREATER_THAN_SIGN:this._err(mT.missingEndTagName),this.state=GT.DATA;break;case aT.EOF:this._err(mT.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(mT.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=GT.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case aT.SPACE:case aT.LINE_FEED:case aT.TABULATION:case aT.FORM_FEED:this.state=GT.BEFORE_ATTRIBUTE_NAME;break;case aT.SOLIDUS:this.state=GT.SELF_CLOSING_START_TAG;break;case aT.GREATER_THAN_SIGN:this.state=GT.DATA,this.emitCurrentTagToken();break;case aT.NULL:this._err(mT.unexpectedNullCharacter),t.tagName+="<22>";break;case aT.EOF:this._err(mT.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(WT(e)?qT(e):e)}}_stateRcdataLessThanSign(e){e===aT.SOLIDUS?this.state=GT.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=GT.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){jT(e)?(this.state=GT.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=GT.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();this.currentToken.tagName=this.lastStartTagName;switch(this.preprocessor.peek(this.lastStartTagName.length)){case aT.SPACE:case aT.LINE_FEED:case aT.TABULATION:case aT.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=GT.BEFORE_ATTRIBUTE_NAME,!1;case aT.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=GT.SELF_CLOSING_START_TAG,!1;case aT.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=GT.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=GT.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===aT.SOLIDUS?this.state=GT.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=GT.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){jT(e)?(this.state=GT.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=GT.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=GT.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case aT.SOLIDUS:this.state=GT.SCRIPT_DATA_END_TAG_OPEN;break;case aT.EXCLAMATION_MARK:this.state=GT.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=GT.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){jT(e)?(this.state=GT.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=GT.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=GT.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===aT.HYPHEN_MINUS?(this.state=GT.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=GT.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===aT.HYPHEN_MINUS?(this.state=GT.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=GT.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case aT.HYPHEN_MINUS:this.state=GT.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case aT.LESS_THAN_SIGN:this.state=GT.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case aT.NULL:this._err(mT.unexpectedNullCharacter),this._emitChars("<22>");break;case aT.EOF:this._err(mT.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case aT.HYPHEN_MINUS:this.state=GT.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case aT.LESS_THAN_SIGN:this.state=GT.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case aT.NULL:this._err(mT.unexpectedNullCharacter),this.state=GT.SCRIPT_DATA_ESCAPED,this._emitChars("<22>");break;case aT.EOF:this._err(mT.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=GT.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case aT.HYPHEN_MINUS:this._emitChars("-");break;case aT.LESS_THAN_SIGN:this.state=GT.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case aT.GREATER_THAN_SIGN:this.state=GT.SCRIPT_DATA,this._emitChars(">");break;case aT.NULL:this._err(mT.unexpectedNullCharacter),this.state=GT.SCRIPT_DATA_ESCAPED,this._emitChars("<22>");break;case aT.EOF:this._err(mT.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=GT.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===aT.SOLIDUS?this.state=GT.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:jT(e)?(this._emitChars("<"),this.state=GT.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=GT.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){jT(e)?(this.state=GT.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=GT.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=GT.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(uT,!1)&&ZT(this.preprocessor.peek(uT.length))){this._emitCodePoint(e);for(let e=0;e<uT.length;e++)this._emitCodePoint(this._consume());this.state=GT.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=GT.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case aT.HYPHEN_MINUS:this.state=GT.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case aT.LESS_THAN_SIGN:this.state=GT.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case aT.NULL:this._err(mT.unexpectedNullCharacter),this._emitChars("<22>");break;case aT.EOF:this._err(mT.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case aT.HYPHEN_MINUS:this.state=GT.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case aT.LESS_THAN_SIGN:this.state=GT.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case aT.NULL:this._err(mT.unexpectedNullCharacter),this.state=GT.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("<22>");break;case aT.EOF:this._err(mT.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=GT.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case aT.HYPHEN_MINUS:this._emitChars("-");break;case aT.LESS_THAN_SIGN:this.state=GT.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case aT.GREATER_THAN_SIGN:this.state=GT.SCRIPT_DATA,this._emitChars(">");break;case aT.NULL:this._err(mT.unexpectedNullCharacter),this.state=GT.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("<22>");break;case aT.EOF:this._err(mT.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=GT.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===aT.SOLIDUS?(this.state=GT.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=GT.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(uT,!1)&&ZT(this.preprocessor.peek(uT.length))){this._emitCodePoint(e);for(let e=0;e<uT.length;e++)this._emitCodePoint(this._consume());this.state=GT.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=GT.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case aT.SPACE:case aT.LINE_FEED:case aT.TABULATION:case aT.FORM_FEED:break;case aT.SOLIDUS:case aT.GREATER_THAN_SIGN:case aT.EOF:this.state=GT.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case aT.EQUALS_SIGN:this._err(mT.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=GT.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=GT.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case aT.SPACE:case aT.LINE_FEED:case aT.TABULATION:case aT.FORM_FEED:case aT.SOLIDUS:case aT.GREATER_THAN_SIGN:case aT.EOF:this._leaveAttrName(),this.state=GT.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case aT.EQUALS_SIGN:this._leaveAttrName(),this.state=GT.BEFORE_ATTRIBUTE_VALUE;break;case aT.QUOTATION_MARK:case aT.APOSTROPHE:case aT.LESS_THAN_SIGN:this._err(mT.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case aT.NULL:this._err(mT.unexpectedNullCharacter),this.currentAttr.name+="<22>";break;default:this.currentAttr.name+=String.fromCodePoint(WT(e)?qT(e):e)}}_stateAfterAttributeName(e){switch(e){case aT.SPACE:case aT.LINE_FEED:case aT.TABULATION:case aT.FORM_FEED:break;case aT.SOLIDUS:this.state=GT.SELF_CLOSING_START_TAG;break;case aT.EQUALS_SIGN:this.state=GT.BEFORE_ATTRIBUTE_VALUE;break;case aT.GREATER_THAN_SIGN:this.state=GT.DATA,this.emitCurrentTagToken();break;case aT.EOF:this._err(mT.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=GT.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case aT.SPACE:case aT.LINE_FEED:case aT.TABULATION:case aT.FORM_FEED:break;case aT.QUOTATION_MARK:this.state=GT.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case aT.APOSTROPHE:this.state=GT.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case aT.GREATER_THAN_SIGN:this._err(mT.missingAttributeValue),this.state=GT.DATA,this.emitCurrentTagToken();break;default:this.state=GT.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case aT.QUOTATION_MARK:this.state=GT.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case aT.AMPERSAND:this.returnState=GT.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=GT.CHARACTER_REFERENCE;break;case aT.NULL:this._err(mT.unexpectedNullCharacter),this.currentAttr.value+="<22>";break;case aT.EOF:this._err(mT.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case aT.APOSTROPHE:this.state=GT.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case aT.AMPERSAND:this.returnState=GT.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=GT.CHARACTER_REFERENCE;break;case aT.NULL:this._err(mT.unexpectedNullCharacter),this.currentAttr.value+="<22>";break;case aT.EOF:this._err(mT.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case aT.SPACE:case aT.LINE_FEED:case aT.TABULATION:case aT.FORM_FEED:this._leaveAttrValue(),this.state=GT.BEFORE_ATTRIBUTE_NAME;break;case aT.AMPERSAND:this.returnState=GT.ATTRIBUTE_VALUE_UNQUOTED,this.state=GT.CHARACTER_REFERENCE;break;case aT.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=GT.DATA,this.emitCurrentTagToken();break;case aT.NULL:this._err(mT.unexpectedNullCharacter),this.currentAttr.value+="<22>";break;case aT.QUOTATION_MARK:case aT.APOSTROPHE:case aT.LESS_THAN_SIGN:case aT.EQUALS_SIGN:case aT.GRAVE_ACCENT:this._err(mT.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case aT.EOF:this._err(mT.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case aT.SPACE:case aT.LINE_FEED:case aT.TABULATION:case aT.FORM_FEED:this._leaveAttrValue(),this.state=GT.BEFORE_ATTRIBUTE_NAME;break;case aT.SOLIDUS:this._leaveAttrValue(),this.state=GT.SELF_CLOSING_START_TAG;break;case aT.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=GT.DATA,this.emitCurrentTagToken();break;case aT.EOF:this._err(mT.eofInTag),this._emitEOFToken();break;default:this._err(mT.missingWhitespaceBetweenAttributes),this.state=GT.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case aT.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=GT.DATA,this.emitCurrentTagToken();break;case aT.EOF:this._err(mT.eofInTag),this._emitEOFToken();break;default:this._err(mT.unexpectedSolidusInTag),this.state=GT.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case aT.GREATER_THAN_SIGN:this.state=GT.DATA,this.emitCurrentComment(t);break;case aT.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case aT.NULL:this._err(mT.unexpectedNullCharacter),t.data+="<22>";break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(sT,!0)?(this._createCommentToken(sT.length+1),this.state=GT.COMMENT_START):this._consumeSequenceIfMatch(lT,!1)?(this.currentLocation=this.getCurrentLocation(lT.length+1),this.state=GT.DOCTYPE):this._consumeSequenceIfMatch(cT,!0)?this.inForeignNode?this.state=GT.CDATA_SECTION:(this._err(mT.cdataInHtmlContent),this._createCommentToken(cT.length+1),this.currentToken.data="[CDATA[",this.state=GT.BOGUS_COMMENT):this._ensureHibernation()||(this._err(mT.incorrectlyOpenedComment),this._createCommentToken(2),this.state=GT.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case aT.HYPHEN_MINUS:this.state=GT.COMMENT_START_DASH;break;case aT.GREATER_THAN_SIGN:{this._err(mT.abruptClosingOfEmptyComment),this.state=GT.DATA;const e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=GT.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case aT.HYPHEN_MINUS:this.state=GT.COMMENT_END;break;case aT.GREATER_THAN_SIGN:this._err(mT.abruptClosingOfEmptyComment),this.state=GT.DATA,this.emitCurrentComment(t);break;case aT.EOF:this._err(mT.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=GT.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case aT.HYPHEN_MINUS:this.state=GT.COMMENT_END_DASH;break;case aT.LESS_THAN_SIGN:t.data+="<",this.state=GT.COMMENT_LESS_THAN_SIGN;break;case aT.NULL:this._err(mT.unexpectedNullCharacter),t.data+="<22>";break;case aT.EOF:this._err(mT.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case aT.EXCLAMATION_MARK:t.data+="!",this.state=GT.COMMENT_LESS_THAN_SIGN_BANG;break;case aT.LESS_THAN_SIGN:t.data+="<";break;default:this.state=GT.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===aT.HYPHEN_MINUS?this.state=GT.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=GT.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===aT.HYPHEN_MINUS?this.state=GT.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=GT.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==aT.GREATER_THAN_SIGN&&e!==aT.EOF&&this._err(mT.nestedComment),this.state=GT.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case aT.HYPHEN_MINUS:this.state=GT.COMMENT_END;break;case aT.EOF:this._err(mT.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=GT.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case aT.GREATER_THAN_SIGN:this.state=GT.DATA,this.emitCurrentComment(t);break;case aT.EXCLAMATION_MARK:this.state=GT.COMMENT_END_BANG;break;case aT.HYPHEN_MINUS:t.data+="-";break;case aT.EOF:this._err(mT.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=GT.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case aT.HYPHEN_MINUS:t.data+="--!",this.state=GT.COMMENT_END_DASH;break;case aT.GREATER_THAN_SIGN:this._err(mT.incorrectlyClosedComment),this.state=GT.DATA,this.emitCurrentComment(t);break;case aT.EOF:this._err(mT.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=GT.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case aT.SPACE:case aT.LINE_FEED:case aT.TABULATION:case aT.FORM_FEED:this.state=GT.BEFORE_DOCTYPE_NAME;break;case aT.GREATER_THAN_SIGN:this.state=GT.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case aT.EOF:{this._err(mT.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(mT.missingWhitespaceBeforeDoctypeName),this.state=GT.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(WT(e))this._createDoctypeToken(String.fromCharCode(qT(e))),this.state=GT.DOCTYPE_NAME;else switch(e){case aT.SPACE:case aT.LINE_FEED:case aT.TABULATION:case aT.FORM_FEED:break;case aT.NULL:this._err(mT.unexpectedNullCharacter),this._createDoctypeToken("<22>"),this.state=GT.DOCTYPE_NAME;break;case aT.GREATER_THAN_SIGN:{this._err(mT.missingDoctypeName),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=GT.DATA;break}case aT.EOF:{this._err(mT.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=GT.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case aT.SPACE:case aT.LINE_FEED:case aT.TABULATION:case aT.FORM_FEED:this.state=GT.AFTER_DOCTYPE_NAME;break;case aT.GREATER_THAN_SIGN:this.state=GT.DATA,this.emitCurrentDoctype(t);break;case aT.NULL:this._err(mT.unexpectedNullCharacter),t.name+="<22>";break;case aT.EOF:this._err(mT.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(WT(e)?qT(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case aT.SPACE:case aT.LINE_FEED:case aT.TABULATION:case aT.FORM_FEED:break;case aT.GREATER_THAN_SIGN:this.state=GT.DATA,this.emitCurrentDoctype(t);break;case aT.EOF:this._err(mT.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(fT,!1)?this.state=GT.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(hT,!1)?this.state=GT.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(mT.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=GT.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case aT.SPACE:case aT.LINE_FEED:case aT.TABULATION:case aT.FORM_FEED:this.state=GT.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case aT.QUOTATION_MARK:this._err(mT.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=GT.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case aT.APOSTROPHE:this._err(mT.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=GT.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case aT.GREATER_THAN_SIGN:this._err(mT.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=GT.DATA,this.emitCurrentDoctype(t);break;case aT.EOF:this._err(mT.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(mT.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=GT.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case aT.SPACE:case aT.LINE_FEED:case aT.TABULATION:case aT.FORM_FEED:break;case aT.QUOTATION_MARK:t.publicId="",this.state=GT.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case aT.APOSTROPHE:t.publicId="",this.state=GT.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case aT.GREATER_THAN_SIGN:this._err(mT.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=GT.DATA,this.emitCurrentDoctype(t);break;case aT.EOF:this._err(mT.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(mT.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=GT.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case aT.QUOTATION_MARK:this.state=GT.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case aT.NULL:this._err(mT.unexpectedNullCharacter),t.publicId+="<22>";break;case aT.GREATER_THAN_SIGN:this._err(mT.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=GT.DATA;break;case aT.EOF:this._err(mT.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case aT.APOSTROPHE:this.state=GT.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case aT.NULL:this._err(mT.unexpectedNullCharacter),t.publicId+="<22>";break;case aT.GREATER_THAN_SIGN:this._err(mT.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=GT.DATA;break;case aT.EOF:this._err(mT.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case aT.SPACE:case aT.LINE_FEED:case aT.TABULATION:case aT.FORM_FEED:this.state=GT.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case aT.GREATER_THAN_SIGN:this.state=GT.DATA,this.emitCurrentDoctype(t);break;case aT.QUOTATION_MARK:this._err(mT.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=GT.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case aT.APOSTROPHE:this._err(mT.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=GT.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case aT.EOF:this._err(mT.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(mT.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=GT.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case aT.SPACE:case aT.LINE_FEED:case aT.TABULATION:case aT.FORM_FEED:break;case aT.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=GT.DATA;break;case aT.QUOTATION_MARK:t.systemId="",this.state=GT.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case aT.APOSTROPHE:t.systemId="",this.state=GT.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case aT.EOF:this._err(mT.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(mT.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=GT.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case aT.SPACE:case aT.LINE_FEED:case aT.TABULATION:case aT.FORM_FEED:this.state=GT.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case aT.QUOTATION_MARK:this._err(mT.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=GT.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case aT.APOSTROPHE:this._err(mT.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=GT.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case aT.GREATER_THAN_SIGN:this._err(mT.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=GT.DATA,this.emitCurrentDoctype(t);break;case aT.EOF:this._err(mT.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(mT.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=GT.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case aT.SPACE:case aT.LINE_FEED:case aT.TABULATION:case aT.FORM_FEED:break;case aT.QUOTATION_MARK:t.systemId="",this.state=GT.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case aT.APOSTROPHE:t.systemId="",this.state=GT.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case aT.GREATER_THAN_SIGN:this._err(mT.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=GT.DATA,this.emitCurrentDoctype(t);break;case aT.EOF:this._err(mT.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(mT.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=GT.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case aT.QUOTATION_MARK:this.state=GT.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case aT.NULL:this._err(mT.unexpectedNullCharacter),t.systemId+="<22>";break;case aT.GREATER_THAN_SIGN:this._err(mT.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=GT.DATA;break;case aT.EOF:this._err(mT.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case aT.APOSTROPHE:this.state=GT.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case aT.NULL:this._err(mT.unexpectedNullCharacter),t.systemId+="<22>";break;case aT.GREATER_THAN_SIGN:this._err(mT.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=GT.DATA;break;case aT.EOF:this._err(mT.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case aT.SPACE:case aT.LINE_FEED:case aT.TABULATION:case aT.FORM_FEED:break;case aT.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=GT.DATA;break;case aT.EOF:this._err(mT.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(mT.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=GT.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case aT.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=GT.DATA;break;case aT.NULL:this._err(mT.unexpectedNullCharacter);break;case aT.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case aT.RIGHT_SQUARE_BRACKET:this.state=GT.CDATA_SECTION_BRACKET;break;case aT.EOF:this._err(mT.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===aT.RIGHT_SQUARE_BRACKET?this.state=GT.CDATA_SECTION_END:(this._emitChars("]"),this.state=GT.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case aT.GREATER_THAN_SIGN:this.state=GT.DATA;break;case aT.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=GT.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(e){e===aT.NUMBER_SIGN?this.state=GT.NUMERIC_CHARACTER_REFERENCE:YT(e)?(this.state=GT.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(e)):(this._flushCodePointConsumedAsCharacterReference(aT.AMPERSAND),this._reconsumeInState(this.returnState))}_stateNamedCharacterReference(e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation());else if(t){for(let e=0;e<t.length;e++)this._flushCodePointConsumedAsCharacterReference(t[e]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(aT.AMPERSAND),this.state=GT.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(e){YT(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===aT.SEMICOLON&&this._err(mT.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}_stateNumericCharacterReference(e){this.charRefCode=0,e===aT.LATIN_SMALL_X||e===aT.LATIN_CAPITAL_X?this.state=GT.HEXADEMICAL_CHARACTER_REFERENCE_START:(this.state=GT.DECIMAL_CHARACTER_REFERENCE_START,this._stateDecimalCharacterReferenceStart(e))}_stateHexademicalCharacterReferenceStart(e){!function(e){return VT(e)||XT(e)||zT(e)}(e)?(this._err(mT.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(aT.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(aT.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState):(this.state=GT.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(e))}_stateDecimalCharacterReferenceStart(e){VT(e)?(this.state=GT.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(e)):(this._err(mT.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(aT.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(aT.NUMBER_SIGN),this._reconsumeInState(this.returnState))}_stateHexademicalCharacterReference(e){XT(e)?this.charRefCode=16*this.charRefCode+e-55:zT(e)?this.charRefCode=16*this.charRefCode+e-87:VT(e)?this.charRefCode=16*this.charRefCode+e-48:e===aT.SEMICOLON?this.state=GT.NUMERIC_CHARACTER_REFERENCE_END:(this._err(mT.missingSemicolonAfterCharacterReference),this.state=GT.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd())}_stateDecimalCharacterReference(e){VT(e)?this.charRefCode=10*this.charRefCode+e-48:e===aT.SEMICOLON?this.state=GT.NUMERIC_CHARACTER_REFERENCE_END:(this._err(mT.missingSemicolonAfterCharacterReference),this.state=GT.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd())}_stateNumericCharacterReferenceEnd(){if(this.charRefCode===aT.NULL)this._err(mT.nullCharacterReference),this.charRefCode=aT.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(mT.characterReferenceOutsideUnicodeRange),this.charRefCode=aT.REPLACEMENT_CHARACTER;else if(dT(this.charRefCode))this._err(mT.surrogateCharacterReference),this.charRefCode=aT.REPLACEMENT_CHARACTER;else if(gT(this.charRefCode))this._err(mT.noncharacterCharacterReference);else if(pT(this.charRefCode)||this.charRefCode===aT.CARRIAGE_RETURN){this._err(mT.controlCharacterReference);const e=KT.get(this.charRefCode);void 0!==e&&(this.charRefCode=e)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState)}}const t_=new Set([kT.DD,kT.DT,kT.LI,kT.OPTGROUP,kT.OPTION,kT.P,kT.RB,kT.RP,kT.RT,kT.RTC]),n_=new Set([...t_,kT.CAPTION,kT.COLGROUP,kT.TBODY,kT.TD,kT.TFOOT,kT.TH,kT.THEAD,kT.TR]),r_=new Map([[kT.APPLET,TT.HTML],[kT.CAPTION,TT.HTML],[kT.HTML,TT.HTML],[kT.MARQUEE,TT.HTML],[kT.OBJECT,TT.HTML],[kT.TABLE,TT.HTML],[kT.TD,TT.HTML],[kT.TEMPLATE,TT.HTML],[kT.TH,TT.HTML],[kT.ANNOTATION_XML,TT.MATHML],[kT.MI,TT.MATHML],[kT.MN,TT.MATHML],[kT.MO,TT.MATHML],[kT.MS,TT.MATHML],[kT.MTEXT,TT.MATHML],[kT.DESC,TT.SVG],[kT.FOREIGN_OBJECT,TT.SVG],[kT.TITLE,TT.SVG]]),A_=[kT.H1,kT.H2,kT.H3,kT.H4,kT.H5,kT.H6],i_=[kT.TR,kT.TEMPLATE,kT.HTML],o_=[kT.TBODY,kT.TFOOT,kT.THEAD,kT.TEMPLATE,kT.HTML],a_=[kT.TABLE,kT.TEMPLATE,kT.HTML],s_=[kT.TD,kT.TH];class c_{constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=kT.UNKNOWN,this.current=e}get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===kT.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===TT.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){const r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==TT.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(t<0?0:t)}popUntilPopped(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n<0?0:n)}popUntilNumberedHeaderPopped(){this.popUntilPopped(A_,TT.HTML)}popUntilTableCellPopped(){this.popUntilPopped(s_,TT.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.includes(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(a_,TT.HTML)}clearBackToTableBodyContext(){this.clearBackTo(o_,TT.HTML)}clearBackToTableRowContext(){this.clearBackTo(i_,TT.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===kT.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===kT.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===TT.HTML)return!0;if(r_.get(n)===r)return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e],n=this.treeAdapter.getNamespaceURI(this.items[e]);if(HT(t)&&n===TT.HTML)return!0;if(r_.get(t)===n)return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===TT.HTML)return!0;if((n===kT.UL||n===kT.OL)&&r===TT.HTML||r_.get(n)===r)return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===TT.HTML)return!0;if(n===kT.BUTTON&&r===TT.HTML||r_.get(n)===r)return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===TT.HTML){if(n===e)return!0;if(n===kT.TABLE||n===kT.TEMPLATE||n===kT.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];if(this.treeAdapter.getNamespaceURI(this.items[e])===TT.HTML){if(t===kT.TBODY||t===kT.THEAD||t===kT.TFOOT)return!0;if(t===kT.TABLE||t===kT.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===TT.HTML){if(n===e)return!0;if(n!==kT.OPTION&&n!==kT.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;t_.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;n_.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&n_.has(this.currentTagId);)this.pop()}}var l_;!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(l_||(l_={}));const u_={type:l_.Marker};class f_{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[],r=t.length,A=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){const t=this.entries[e];if(t.type===l_.Marker)break;const{element:o}=t;if(this.treeAdapter.getTagName(o)===A&&this.treeAdapter.getNamespaceURI(o)===i){const t=this.treeAdapter.getAttrList(o);t.length===r&&n.push({idx:e,attrs:t})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;const t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;const r=new Map(t.map(e=>[e.name,e.value]));let A=0;for(let e=0;e<n.length;e++){const t=n[e];t.attrs.every(e=>r.get(e.name)===e.value)&&(A+=1,A>=3&&this.entries.splice(t.idx,1))}}insertMarker(){this.entries.unshift(u_)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:l_.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:l_.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(u_);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){const t=this.entries.find(t=>t.type===l_.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===l_.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===l_.Element&&t.element===e)}}var h_;function d_(e){return{nodeName:h_.Text,value:e,parentNode:null}}!function(e){e.Document="#document",e.DocumentFragment="#document-fragment",e.Comment="#comment",e.Text="#text",e.DocumentType="#documentType"}(h_||(h_={}));const p_={createDocument:()=>({nodeName:h_.Document,mode:IT.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:h_.DocumentFragment,childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:h_.Comment,data:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){const A=e.childNodes.find(e=>e.nodeName===h_.DocumentType);if(A)A.name=t,A.publicId=n,A.systemId=r;else{const A={nodeName:h_.DocumentType,name:t,publicId:n,systemId:r,parentNode:null};p_.appendChild(e,A)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(p_.isTextNode(n))return void(n.value+=t)}p_.appendChild(e,d_(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&p_.isTextNode(r)?r.value+=t:p_.insertBefore(e,d_(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(e=>e.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>e.nodeName===h_.DocumentType,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},g_=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],m_=[...g_,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],v_=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),B_=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],E_=[...B_,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function y_(e,t){return t.some(t=>e.startsWith(t))}const C_="text/html",b_="application/xhtml+xml",w_=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),T_=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:TT.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:TT.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:TT.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:TT.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:TT.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:TT.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:TT.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:TT.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:TT.XML}],["xml:space",{prefix:"xml",name:"space",namespace:TT.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:TT.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:TT.XMLNS}]]),__=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),I_=new Set([kT.B,kT.BIG,kT.BLOCKQUOTE,kT.BODY,kT.BR,kT.CENTER,kT.CODE,kT.DD,kT.DIV,kT.DL,kT.DT,kT.EM,kT.EMBED,kT.H1,kT.H2,kT.H3,kT.H4,kT.H5,kT.H6,kT.HEAD,kT.HR,kT.I,kT.IMG,kT.LI,kT.LISTING,kT.MENU,kT.META,kT.NOBR,kT.OL,kT.P,kT.PRE,kT.RUBY,kT.S,kT.SMALL,kT.SPAN,kT.STRONG,kT.STRIKE,kT.SUB,kT.SUP,kT.TABLE,kT.TT,kT.U,kT.UL,kT.VAR]);function S_(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function k_(e){for(let t=0;t<e.attrs.length;t++){const n=w_.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function F_(e){for(let t=0;t<e.attrs.length;t++){const n=T_.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function x_(e,t,n,r){return(!r||r===TT.HTML)&&function(e,t,n){if(t===TT.MATHML&&e===kT.ANNOTATION_XML)for(let e=0;e<n.length;e++)if(n[e].name===_T.ENCODING){const t=n[e].value.toLowerCase();return t===C_||t===b_}return t===TT.SVG&&(e===kT.FOREIGN_OBJECT||e===kT.DESC||e===kT.TITLE)}(e,t,n)||(!r||r===TT.MATHML)&&function(e,t){return t===TT.MATHML&&(e===kT.MI||e===kT.MO||e===kT.MN||e===kT.MS||e===kT.MTEXT)}(e,t)}var L_;!function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"}(L_||(L_={}));const U_={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},N_=new Set([kT.TABLE,kT.TBODY,kT.TFOOT,kT.THEAD,kT.TR]),D_={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:p_,onParseError:null};class O_{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=L_.INITIAL,this.originalInsertionMode=L_.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...D_,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new e_(this.options,this),this.activeFormattingElements=new f_(this.treeAdapter),this.fragmentContextID=n?QT(this.treeAdapter.getTagName(n)):kT.UNKNOWN,this._setContextModes(null!=n?n:this.document,this.fragmentContextID),this.openElements=new c_(this.document,this.treeAdapter,this)}static parse(e,t){const n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){const n={...D_,...t};null!=e||(e=n.treeAdapter.createElement(ST.TEMPLATE,TT.HTML,[]));const r=n.treeAdapter.createElement("documentmock",TT.HTML,[]),A=new this(n,r,e);return A.fragmentContextID===kT.TEMPLATE&&A.tmplInsertionModeStack.unshift(L_.IN_TEMPLATE),A._initTokenizerForFragmentParsing(),A._insertFakeRootElement(),A._resetInsertionMode(),A._findFormInFragmentContext(),A}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;const A=null!==(r=e.location)&&void 0!==r?r:U_,i={code:t,startLine:A.startLine,startCol:A.startCol,startOffset:A.startOffset,endLine:n?A.startLine:A.endLine,endCol:n?A.startCol:A.endCol,endOffset:n?A.startOffset:A.endOffset};this.onParseError(i)}onItemPush(e,t,n){var r,A;null===(A=(r=this.treeAdapter).onItemPush)||void 0===A||A.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setContextModes(e,t){const n=e===this.document||this.treeAdapter.getNamespaceURI(e)===TT.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,TT.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=L_.TEXT}switchToPlaintextParsing(){this.insertionMode=L_.TEXT,this.originalInsertionMode=L_.IN_BODY,this.tokenizer.state=$T.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===ST.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===TT.HTML)switch(this.fragmentContextID){case kT.TITLE:case kT.TEXTAREA:this.tokenizer.state=$T.RCDATA;break;case kT.STYLE:case kT.XMP:case kT.IFRAME:case kT.NOEMBED:case kT.NOFRAMES:case kT.NOSCRIPT:this.tokenizer.state=$T.RAWTEXT;break;case kT.SCRIPT:this.tokenizer.state=$T.SCRIPT_DATA;break;case kT.PLAINTEXT:this.tokenizer.state=$T.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){const t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,TT.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,TT.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(ST.HTML,TT.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,kT.HTML)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:n}=this._findFosterParentingLocation()),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const r=this.treeAdapter.getChildNodes(t),A=n?r.lastIndexOf(n):r.length,i=r[A-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){const{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),A=t.type===BT.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,A)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):({current:t,currentTagId:n}=this.openElements),(e.tagID!==kT.SVG||this.treeAdapter.getTagName(t)!==ST.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==TT.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===kT.MGLYPH||e.tagID===kT.MALIGNMARK)&&!this._isIntegrationPoint(n,t,TT.HTML))}_processToken(e){switch(e.type){case BT.CHARACTER:this.onCharacter(e);break;case BT.NULL_CHARACTER:this.onNullCharacter(e);break;case BT.COMMENT:this.onComment(e);break;case BT.DOCTYPE:this.onDoctype(e);break;case BT.START_TAG:this._processStartTag(e);break;case BT.END_TAG:this.onEndTag(e);break;case BT.EOF:this.onEof(e);break;case BT.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return x_(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex(e=>e.type===l_.Marker||this.openElements.contains(e.element));for(let n=t<0?e-1:t-1;n>=0;n--){const e=this.activeFormattingElements.entries[n];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=L_.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(kT.P),this.openElements.popUntilTagNamePopped(kT.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case kT.TR:return void(this.insertionMode=L_.IN_ROW);case kT.TBODY:case kT.THEAD:case kT.TFOOT:return void(this.insertionMode=L_.IN_TABLE_BODY);case kT.CAPTION:return void(this.insertionMode=L_.IN_CAPTION);case kT.COLGROUP:return void(this.insertionMode=L_.IN_COLUMN_GROUP);case kT.TABLE:return void(this.insertionMode=L_.IN_TABLE);case kT.BODY:return void(this.insertionMode=L_.IN_BODY);case kT.FRAMESET:return void(this.insertionMode=L_.IN_FRAMESET);case kT.SELECT:return void this._resetInsertionModeForSelect(e);case kT.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case kT.HTML:return void(this.insertionMode=this.headElement?L_.AFTER_HEAD:L_.BEFORE_HEAD);case kT.TD:case kT.TH:if(e>0)return void(this.insertionMode=L_.IN_CELL);break;case kT.HEAD:if(e>0)return void(this.insertionMode=L_.IN_HEAD)}this.insertionMode=L_.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===kT.TEMPLATE)break;if(e===kT.TABLE)return void(this.insertionMode=L_.IN_SELECT_IN_TABLE)}this.insertionMode=L_.IN_SELECT}_isElementCausesFosterParenting(e){return N_.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case kT.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===TT.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case kT.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e);return MT[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){case L_.INITIAL:W_(this,e);break;case L_.BEFORE_HTML:j_(this,e);break;case L_.BEFORE_HEAD:Y_(this,e);break;case L_.IN_HEAD:q_(this,e);break;case L_.IN_HEAD_NO_SCRIPT:J_(this,e);break;case L_.AFTER_HEAD:Z_(this,e);break;case L_.IN_BODY:case L_.IN_CAPTION:case L_.IN_CELL:case L_.IN_TEMPLATE:nI(this,e);break;case L_.TEXT:case L_.IN_SELECT:case L_.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case L_.IN_TABLE:case L_.IN_TABLE_BODY:case L_.IN_ROW:uI(this,e);break;case L_.IN_TABLE_TEXT:gI(this,e);break;case L_.IN_COLUMN_GROUP:EI(this,e);break;case L_.AFTER_BODY:kI(this,e);break;case L_.AFTER_AFTER_BODY:FI(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars="<22>",e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case L_.INITIAL:W_(this,e);break;case L_.BEFORE_HTML:j_(this,e);break;case L_.BEFORE_HEAD:Y_(this,e);break;case L_.IN_HEAD:q_(this,e);break;case L_.IN_HEAD_NO_SCRIPT:J_(this,e);break;case L_.AFTER_HEAD:Z_(this,e);break;case L_.TEXT:this._insertCharacters(e);break;case L_.IN_TABLE:case L_.IN_TABLE_BODY:case L_.IN_ROW:uI(this,e);break;case L_.IN_COLUMN_GROUP:EI(this,e);break;case L_.AFTER_BODY:kI(this,e);break;case L_.AFTER_AFTER_BODY:FI(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)$_(this,e);else switch(this.insertionMode){case L_.INITIAL:case L_.BEFORE_HTML:case L_.BEFORE_HEAD:case L_.IN_HEAD:case L_.IN_HEAD_NO_SCRIPT:case L_.AFTER_HEAD:case L_.IN_BODY:case L_.IN_TABLE:case L_.IN_CAPTION:case L_.IN_COLUMN_GROUP:case L_.IN_TABLE_BODY:case L_.IN_ROW:case L_.IN_CELL:case L_.IN_SELECT:case L_.IN_SELECT_IN_TABLE:case L_.IN_TEMPLATE:case L_.IN_FRAMESET:case L_.AFTER_FRAMESET:$_(this,e);break;case L_.IN_TABLE_TEXT:mI(this,e);break;case L_.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case L_.AFTER_AFTER_BODY:case L_.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case L_.INITIAL:!function(e,t){e._setDocumentType(t);const n=t.forceQuirks?IT.QUIRKS:function(e){if("html"!==e.name)return IT.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return IT.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),v_.has(n))return IT.QUIRKS;let e=null===t?m_:g_;if(y_(n,e))return IT.QUIRKS;if(e=null===t?B_:E_,y_(n,e))return IT.LIMITED_QUIRKS}return IT.NO_QUIRKS}(t);(function(e){return"html"===e.name&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)})(t)||e._err(t,mT.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=L_.BEFORE_HTML}(this,e);break;case L_.BEFORE_HEAD:case L_.IN_HEAD:case L_.IN_HEAD_NO_SCRIPT:case L_.AFTER_HEAD:this._err(e,mT.misplacedDoctype);break;case L_.IN_TABLE_TEXT:mI(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,mT.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===kT.FONT&&e.attrs.some(({name:e})=>e===_T.COLOR||e===_T.SIZE||e===_T.FACE)||I_.has(t)}(t))xI(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===TT.MATHML?S_(t):r===TT.SVG&&(!function(e){const t=__.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=QT(e.tagName))}(t),k_(t)),F_(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case L_.INITIAL:W_(this,e);break;case L_.BEFORE_HTML:!function(e,t){t.tagID===kT.HTML?(e._insertElement(t,TT.HTML),e.insertionMode=L_.BEFORE_HEAD):j_(e,t)}(this,e);break;case L_.BEFORE_HEAD:!function(e,t){switch(t.tagID){case kT.HTML:aI(e,t);break;case kT.HEAD:e._insertElement(t,TT.HTML),e.headElement=e.openElements.current,e.insertionMode=L_.IN_HEAD;break;default:Y_(e,t)}}(this,e);break;case L_.IN_HEAD:X_(this,e);break;case L_.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case kT.HTML:aI(e,t);break;case kT.BASEFONT:case kT.BGSOUND:case kT.HEAD:case kT.LINK:case kT.META:case kT.NOFRAMES:case kT.STYLE:X_(e,t);break;case kT.NOSCRIPT:e._err(t,mT.nestedNoscriptInHead);break;default:J_(e,t)}}(this,e);break;case L_.AFTER_HEAD:!function(e,t){switch(t.tagID){case kT.HTML:aI(e,t);break;case kT.BODY:e._insertElement(t,TT.HTML),e.framesetOk=!1,e.insertionMode=L_.IN_BODY;break;case kT.FRAMESET:e._insertElement(t,TT.HTML),e.insertionMode=L_.IN_FRAMESET;break;case kT.BASE:case kT.BASEFONT:case kT.BGSOUND:case kT.LINK:case kT.META:case kT.NOFRAMES:case kT.SCRIPT:case kT.STYLE:case kT.TEMPLATE:case kT.TITLE:e._err(t,mT.abandonedHeadElementChild),e.openElements.push(e.headElement,kT.HEAD),X_(e,t),e.openElements.remove(e.headElement);break;case kT.HEAD:e._err(t,mT.misplacedStartTagForHeadElement);break;default:Z_(e,t)}}(this,e);break;case L_.IN_BODY:aI(this,e);break;case L_.IN_TABLE:fI(this,e);break;case L_.IN_TABLE_TEXT:mI(this,e);break;case L_.IN_CAPTION:!function(e,t){const n=t.tagID;vI.has(n)?e.openElements.hasInTableScope(kT.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(kT.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=L_.IN_TABLE,fI(e,t)):aI(e,t)}(this,e);break;case L_.IN_COLUMN_GROUP:BI(this,e);break;case L_.IN_TABLE_BODY:yI(this,e);break;case L_.IN_ROW:bI(this,e);break;case L_.IN_CELL:!function(e,t){const n=t.tagID;vI.has(n)?(e.openElements.hasInTableScope(kT.TD)||e.openElements.hasInTableScope(kT.TH))&&(e._closeTableCell(),bI(e,t)):aI(e,t)}(this,e);break;case L_.IN_SELECT:TI(this,e);break;case L_.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===kT.CAPTION||n===kT.TABLE||n===kT.TBODY||n===kT.TFOOT||n===kT.THEAD||n===kT.TR||n===kT.TD||n===kT.TH?(e.openElements.popUntilTagNamePopped(kT.SELECT),e._resetInsertionMode(),e._processStartTag(t)):TI(e,t)}(this,e);break;case L_.IN_TEMPLATE:!function(e,t){switch(t.tagID){case kT.BASE:case kT.BASEFONT:case kT.BGSOUND:case kT.LINK:case kT.META:case kT.NOFRAMES:case kT.SCRIPT:case kT.STYLE:case kT.TEMPLATE:case kT.TITLE:X_(e,t);break;case kT.CAPTION:case kT.COLGROUP:case kT.TBODY:case kT.TFOOT:case kT.THEAD:e.tmplInsertionModeStack[0]=L_.IN_TABLE,e.insertionMode=L_.IN_TABLE,fI(e,t);break;case kT.COL:e.tmplInsertionModeStack[0]=L_.IN_COLUMN_GROUP,e.insertionMode=L_.IN_COLUMN_GROUP,BI(e,t);break;case kT.TR:e.tmplInsertionModeStack[0]=L_.IN_TABLE_BODY,e.insertionMode=L_.IN_TABLE_BODY,yI(e,t);break;case kT.TD:case kT.TH:e.tmplInsertionModeStack[0]=L_.IN_ROW,e.insertionMode=L_.IN_ROW,bI(e,t);break;default:e.tmplInsertionModeStack[0]=L_.IN_BODY,e.insertionMode=L_.IN_BODY,aI(e,t)}}(this,e);break;case L_.AFTER_BODY:!function(e,t){t.tagID===kT.HTML?aI(e,t):kI(e,t)}(this,e);break;case L_.IN_FRAMESET:!function(e,t){switch(t.tagID){case kT.HTML:aI(e,t);break;case kT.FRAMESET:e._insertElement(t,TT.HTML);break;case kT.FRAME:e._appendElement(t,TT.HTML),t.ackSelfClosing=!0;break;case kT.NOFRAMES:X_(e,t)}}(this,e);break;case L_.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case kT.HTML:aI(e,t);break;case kT.NOFRAMES:X_(e,t)}}(this,e);break;case L_.AFTER_AFTER_BODY:!function(e,t){t.tagID===kT.HTML?aI(e,t):FI(e,t)}(this,e);break;case L_.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case kT.HTML:aI(e,t);break;case kT.NOFRAMES:X_(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===kT.P||t.tagID===kT.BR)return xI(e),void e._endTagOutsideForeignContent(t);for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===TT.HTML){e._endTagOutsideForeignContent(t);break}const A=e.treeAdapter.getTagName(r);if(A.toLowerCase()===t.tagName){t.tagName=A,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case L_.INITIAL:W_(this,e);break;case L_.BEFORE_HTML:!function(e,t){const n=t.tagID;n!==kT.HTML&&n!==kT.HEAD&&n!==kT.BODY&&n!==kT.BR||j_(e,t)}(this,e);break;case L_.BEFORE_HEAD:!function(e,t){const n=t.tagID;n===kT.HEAD||n===kT.BODY||n===kT.HTML||n===kT.BR?Y_(e,t):e._err(t,mT.endTagWithoutMatchingOpenElement)}(this,e);break;case L_.IN_HEAD:z_(this,e);break;case L_.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case kT.NOSCRIPT:e.openElements.pop(),e.insertionMode=L_.IN_HEAD;break;case kT.BR:J_(e,t);break;default:e._err(t,mT.endTagWithoutMatchingOpenElement)}}(this,e);break;case L_.AFTER_HEAD:!function(e,t){switch(t.tagID){case kT.BODY:case kT.HTML:case kT.BR:Z_(e,t);break;case kT.TEMPLATE:z_(e,t);break;default:e._err(t,mT.endTagWithoutMatchingOpenElement)}}(this,e);break;case L_.IN_BODY:cI(this,e);break;case L_.TEXT:!function(e,t){var n;t.tagID===kT.SCRIPT&&(null===(n=e.scriptHandler)||void 0===n||n.call(e,e.openElements.current));e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break;case L_.IN_TABLE:hI(this,e);break;case L_.IN_TABLE_TEXT:mI(this,e);break;case L_.IN_CAPTION:!function(e,t){const n=t.tagID;switch(n){case kT.CAPTION:case kT.TABLE:e.openElements.hasInTableScope(kT.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(kT.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=L_.IN_TABLE,n===kT.TABLE&&hI(e,t));break;case kT.BODY:case kT.COL:case kT.COLGROUP:case kT.HTML:case kT.TBODY:case kT.TD:case kT.TFOOT:case kT.TH:case kT.THEAD:case kT.TR:break;default:cI(e,t)}}(this,e);break;case L_.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case kT.COLGROUP:e.openElements.currentTagId===kT.COLGROUP&&(e.openElements.pop(),e.insertionMode=L_.IN_TABLE);break;case kT.TEMPLATE:z_(e,t);break;case kT.COL:break;default:EI(e,t)}}(this,e);break;case L_.IN_TABLE_BODY:CI(this,e);break;case L_.IN_ROW:wI(this,e);break;case L_.IN_CELL:!function(e,t){const n=t.tagID;switch(n){case kT.TD:case kT.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=L_.IN_ROW);break;case kT.TABLE:case kT.TBODY:case kT.TFOOT:case kT.THEAD:case kT.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),wI(e,t));break;case kT.BODY:case kT.CAPTION:case kT.COL:case kT.COLGROUP:case kT.HTML:break;default:cI(e,t)}}(this,e);break;case L_.IN_SELECT:_I(this,e);break;case L_.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===kT.CAPTION||n===kT.TABLE||n===kT.TBODY||n===kT.TFOOT||n===kT.THEAD||n===kT.TR||n===kT.TD||n===kT.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(kT.SELECT),e._resetInsertionMode(),e.onEndTag(t)):_I(e,t)}(this,e);break;case L_.IN_TEMPLATE:!function(e,t){t.tagID===kT.TEMPLATE&&z_(e,t)}(this,e);break;case L_.AFTER_BODY:SI(this,e);break;case L_.IN_FRAMESET:!function(e,t){t.tagID!==kT.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===kT.FRAMESET||(e.insertionMode=L_.AFTER_FRAMESET))}(this,e);break;case L_.AFTER_FRAMESET:!function(e,t){t.tagID===kT.HTML&&(e.insertionMode=L_.AFTER_AFTER_FRAMESET)}(this,e);break;case L_.AFTER_AFTER_BODY:FI(this,e)}}onEof(e){switch(this.insertionMode){case L_.INITIAL:W_(this,e);break;case L_.BEFORE_HTML:j_(this,e);break;case L_.BEFORE_HEAD:Y_(this,e);break;case L_.IN_HEAD:q_(this,e);break;case L_.IN_HEAD_NO_SCRIPT:J_(this,e);break;case L_.AFTER_HEAD:Z_(this,e);break;case L_.IN_BODY:case L_.IN_TABLE:case L_.IN_CAPTION:case L_.IN_COLUMN_GROUP:case L_.IN_TABLE_BODY:case L_.IN_ROW:case L_.IN_CELL:case L_.IN_SELECT:case L_.IN_SELECT_IN_TABLE:lI(this,e);break;case L_.TEXT:!function(e,t){e._err(t,mT.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case L_.IN_TABLE_TEXT:mI(this,e);break;case L_.IN_TEMPLATE:II(this,e);break;case L_.AFTER_BODY:case L_.IN_FRAMESET:case L_.AFTER_FRAMESET:case L_.AFTER_AFTER_BODY:case L_.AFTER_AFTER_FRAMESET:V_(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===aT.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case L_.IN_HEAD:case L_.IN_HEAD_NO_SCRIPT:case L_.AFTER_HEAD:case L_.TEXT:case L_.IN_COLUMN_GROUP:case L_.IN_SELECT:case L_.IN_SELECT_IN_TABLE:case L_.IN_FRAMESET:case L_.AFTER_FRAMESET:this._insertCharacters(e);break;case L_.IN_BODY:case L_.IN_CAPTION:case L_.IN_CELL:case L_.IN_TEMPLATE:case L_.AFTER_BODY:case L_.AFTER_AFTER_BODY:case L_.AFTER_AFTER_FRAMESET:tI(this,e);break;case L_.IN_TABLE:case L_.IN_TABLE_BODY:case L_.IN_ROW:uI(this,e);break;case L_.IN_TABLE_TEXT:pI(this,e)}}}function Q_(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):sI(e,t),n}function R_(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const A=e.openElements.items[r];if(A===t.element)break;e._isSpecialElement(A,e.openElements.tagIDs[r])&&(n=A)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function M_(e,t,n){let r=t,A=e.openElements.getCommonAncestor(t);for(let i=0,o=A;o!==n;i++,o=A){A=e.openElements.getCommonAncestor(o);const n=e.activeFormattingElements.getElementEntry(o),a=n&&i>=3;!n||a?(a&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(o)):(o=H_(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function H_(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function P_(e,t,n){const r=QT(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{const A=e.treeAdapter.getNamespaceURI(t);r===kT.TEMPLATE&&A===TT.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function K_(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:A}=n,i=e.treeAdapter.createElement(A.tagName,r,A.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,A),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,A.tagID)}function G_(e,t){for(let n=0;n<8;n++){const n=Q_(e,t);if(!n)break;const r=R_(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;const A=M_(e,r,n.element),i=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(A),i&&P_(e,i,A),K_(e,r,n)}}function $_(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function V_(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function W_(e,t){e._err(t,mT.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,IT.QUIRKS),e.insertionMode=L_.BEFORE_HTML,e._processToken(t)}function j_(e,t){e._insertFakeRootElement(),e.insertionMode=L_.BEFORE_HEAD,e._processToken(t)}function Y_(e,t){e._insertFakeElement(ST.HEAD,kT.HEAD),e.headElement=e.openElements.current,e.insertionMode=L_.IN_HEAD,e._processToken(t)}function X_(e,t){switch(t.tagID){case kT.HTML:aI(e,t);break;case kT.BASE:case kT.BASEFONT:case kT.BGSOUND:case kT.LINK:case kT.META:e._appendElement(t,TT.HTML),t.ackSelfClosing=!0;break;case kT.TITLE:e._switchToTextParsing(t,$T.RCDATA);break;case kT.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,$T.RAWTEXT):(e._insertElement(t,TT.HTML),e.insertionMode=L_.IN_HEAD_NO_SCRIPT);break;case kT.NOFRAMES:case kT.STYLE:e._switchToTextParsing(t,$T.RAWTEXT);break;case kT.SCRIPT:e._switchToTextParsing(t,$T.SCRIPT_DATA);break;case kT.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=L_.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(L_.IN_TEMPLATE);break;case kT.HEAD:e._err(t,mT.misplacedStartTagForHeadElement);break;default:q_(e,t)}}function z_(e,t){switch(t.tagID){case kT.HEAD:e.openElements.pop(),e.insertionMode=L_.AFTER_HEAD;break;case kT.BODY:case kT.BR:case kT.HTML:q_(e,t);break;case kT.TEMPLATE:e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==kT.TEMPLATE&&e._err(t,mT.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(kT.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,mT.endTagWithoutMatchingOpenElement);break;default:e._err(t,mT.endTagWithoutMatchingOpenElement)}}function q_(e,t){e.openElements.pop(),e.insertionMode=L_.AFTER_HEAD,e._processToken(t)}function J_(e,t){const n=t.type===BT.EOF?mT.openElementsLeftAfterEof:mT.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=L_.IN_HEAD,e._processToken(t)}function Z_(e,t){e._insertFakeElement(ST.BODY,kT.BODY),e.insertionMode=L_.IN_BODY,eI(e,t)}function eI(e,t){switch(t.type){case BT.CHARACTER:nI(e,t);break;case BT.WHITESPACE_CHARACTER:tI(e,t);break;case BT.COMMENT:$_(e,t);break;case BT.START_TAG:aI(e,t);break;case BT.END_TAG:cI(e,t);break;case BT.EOF:lI(e,t)}}function tI(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function nI(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function rI(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,TT.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function AI(e){const t=ET(e,_T.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function iI(e,t){e._switchToTextParsing(t,$T.RAWTEXT)}function oI(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,TT.HTML)}function aI(e,t){switch(t.tagID){case kT.I:case kT.S:case kT.B:case kT.U:case kT.EM:case kT.TT:case kT.BIG:case kT.CODE:case kT.FONT:case kT.SMALL:case kT.STRIKE:case kT.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,TT.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case kT.A:!function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(ST.A);n&&(G_(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,TT.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case kT.H1:case kT.H2:case kT.H3:case kT.H4:case kT.H5:case kT.H6:!function(e,t){e.openElements.hasInButtonScope(kT.P)&&e._closePElement(),HT(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,TT.HTML)}(e,t);break;case kT.P:case kT.DL:case kT.OL:case kT.UL:case kT.DIV:case kT.DIR:case kT.NAV:case kT.MAIN:case kT.MENU:case kT.ASIDE:case kT.CENTER:case kT.FIGURE:case kT.FOOTER:case kT.HEADER:case kT.HGROUP:case kT.DIALOG:case kT.DETAILS:case kT.ADDRESS:case kT.ARTICLE:case kT.SECTION:case kT.SUMMARY:case kT.FIELDSET:case kT.BLOCKQUOTE:case kT.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(kT.P)&&e._closePElement(),e._insertElement(t,TT.HTML)}(e,t);break;case kT.LI:case kT.DD:case kT.DT:!function(e,t){e.framesetOk=!1;const n=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){const r=e.openElements.tagIDs[t];if(n===kT.LI&&r===kT.LI||(n===kT.DD||n===kT.DT)&&(r===kT.DD||r===kT.DT)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r);break}if(r!==kT.ADDRESS&&r!==kT.DIV&&r!==kT.P&&e._isSpecialElement(e.openElements.items[t],r))break}e.openElements.hasInButtonScope(kT.P)&&e._closePElement(),e._insertElement(t,TT.HTML)}(e,t);break;case kT.BR:case kT.IMG:case kT.WBR:case kT.AREA:case kT.EMBED:case kT.KEYGEN:rI(e,t);break;case kT.HR:!function(e,t){e.openElements.hasInButtonScope(kT.P)&&e._closePElement(),e._appendElement(t,TT.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case kT.RB:case kT.RTC:!function(e,t){e.openElements.hasInScope(kT.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,TT.HTML)}(e,t);break;case kT.RT:case kT.RP:!function(e,t){e.openElements.hasInScope(kT.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(kT.RTC),e._insertElement(t,TT.HTML)}(e,t);break;case kT.PRE:case kT.LISTING:!function(e,t){e.openElements.hasInButtonScope(kT.P)&&e._closePElement(),e._insertElement(t,TT.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case kT.XMP:!function(e,t){e.openElements.hasInButtonScope(kT.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,$T.RAWTEXT)}(e,t);break;case kT.SVG:!function(e,t){e._reconstructActiveFormattingElements(),k_(t),F_(t),t.selfClosing?e._appendElement(t,TT.SVG):e._insertElement(t,TT.SVG),t.ackSelfClosing=!0}(e,t);break;case kT.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case kT.BASE:case kT.LINK:case kT.META:case kT.STYLE:case kT.TITLE:case kT.SCRIPT:case kT.BGSOUND:case kT.BASEFONT:case kT.TEMPLATE:X_(e,t);break;case kT.BODY:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case kT.FORM:!function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(kT.P)&&e._closePElement(),e._insertElement(t,TT.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case kT.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(kT.NOBR)&&(G_(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,TT.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case kT.MATH:!function(e,t){e._reconstructActiveFormattingElements(),S_(t),F_(t),t.selfClosing?e._appendElement(t,TT.MATHML):e._insertElement(t,TT.MATHML),t.ackSelfClosing=!0}(e,t);break;case kT.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==IT.QUIRKS&&e.openElements.hasInButtonScope(kT.P)&&e._closePElement(),e._insertElement(t,TT.HTML),e.framesetOk=!1,e.insertionMode=L_.IN_TABLE}(e,t);break;case kT.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,TT.HTML),AI(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case kT.PARAM:case kT.TRACK:case kT.SOURCE:!function(e,t){e._appendElement(t,TT.HTML),t.ackSelfClosing=!0}(e,t);break;case kT.IMAGE:!function(e,t){t.tagName=ST.IMG,t.tagID=kT.IMG,rI(e,t)}(e,t);break;case kT.BUTTON:!function(e,t){e.openElements.hasInScope(kT.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(kT.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,TT.HTML),e.framesetOk=!1}(e,t);break;case kT.APPLET:case kT.OBJECT:case kT.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,TT.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case kT.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,$T.RAWTEXT)}(e,t);break;case kT.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,TT.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===L_.IN_TABLE||e.insertionMode===L_.IN_CAPTION||e.insertionMode===L_.IN_TABLE_BODY||e.insertionMode===L_.IN_ROW||e.insertionMode===L_.IN_CELL?L_.IN_SELECT_IN_TABLE:L_.IN_SELECT}(e,t);break;case kT.OPTION:case kT.OPTGROUP:!function(e,t){e.openElements.currentTagId===kT.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,TT.HTML)}(e,t);break;case kT.NOEMBED:iI(e,t);break;case kT.FRAMESET:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,TT.HTML),e.insertionMode=L_.IN_FRAMESET)}(e,t);break;case kT.TEXTAREA:!function(e,t){e._insertElement(t,TT.HTML),e.skipNextNewLine=!0,e.tokenizer.state=$T.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=L_.TEXT}(e,t);break;case kT.NOSCRIPT:e.options.scriptingEnabled?iI(e,t):oI(e,t);break;case kT.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(kT.P)&&e._closePElement(),e._insertElement(t,TT.HTML),e.tokenizer.state=$T.PLAINTEXT}(e,t);break;case kT.COL:case kT.TH:case kT.TD:case kT.TR:case kT.HEAD:case kT.FRAME:case kT.TBODY:case kT.TFOOT:case kT.THEAD:case kT.CAPTION:case kT.COLGROUP:break;default:oI(e,t)}}function sI(e,t){const n=t.tagName,r=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){const A=e.openElements.items[t],i=e.openElements.tagIDs[t];if(r===i&&(r!==kT.UNKNOWN||e.treeAdapter.getTagName(A)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(A,i))break}}function cI(e,t){switch(t.tagID){case kT.A:case kT.B:case kT.I:case kT.S:case kT.U:case kT.EM:case kT.TT:case kT.BIG:case kT.CODE:case kT.FONT:case kT.NOBR:case kT.SMALL:case kT.STRIKE:case kT.STRONG:G_(e,t);break;case kT.P:!function(e){e.openElements.hasInButtonScope(kT.P)||e._insertFakeElement(ST.P,kT.P),e._closePElement()}(e);break;case kT.DL:case kT.UL:case kT.OL:case kT.DIR:case kT.DIV:case kT.NAV:case kT.PRE:case kT.MAIN:case kT.MENU:case kT.ASIDE:case kT.CENTER:case kT.FIGURE:case kT.FOOTER:case kT.HEADER:case kT.HGROUP:case kT.DIALOG:case kT.ADDRESS:case kT.ARTICLE:case kT.DETAILS:case kT.SECTION:case kT.SUMMARY:case kT.LISTING:case kT.FIELDSET:case kT.BLOCKQUOTE:case kT.FIGCAPTION:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case kT.LI:!function(e){e.openElements.hasInListItemScope(kT.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(kT.LI),e.openElements.popUntilTagNamePopped(kT.LI))}(e);break;case kT.DD:case kT.DT:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case kT.H1:case kT.H2:case kT.H3:case kT.H4:case kT.H5:case kT.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case kT.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(ST.BR,kT.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case kT.BODY:!function(e,t){if(e.openElements.hasInScope(kT.BODY)&&(e.insertionMode=L_.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case kT.HTML:!function(e,t){e.openElements.hasInScope(kT.BODY)&&(e.insertionMode=L_.AFTER_BODY,SI(e,t))}(e,t);break;case kT.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(kT.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(kT.FORM):n&&e.openElements.remove(n))}(e);break;case kT.APPLET:case kT.OBJECT:case kT.MARQUEE:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case kT.TEMPLATE:z_(e,t);break;default:sI(e,t)}}function lI(e,t){e.tmplInsertionModeStack.length>0?II(e,t):V_(e,t)}function uI(e,t){if(N_.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=L_.IN_TABLE_TEXT,t.type){case BT.CHARACTER:gI(e,t);break;case BT.WHITESPACE_CHARACTER:pI(e,t)}else dI(e,t)}function fI(e,t){switch(t.tagID){case kT.TD:case kT.TH:case kT.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(ST.TBODY,kT.TBODY),e.insertionMode=L_.IN_TABLE_BODY,yI(e,t)}(e,t);break;case kT.STYLE:case kT.SCRIPT:case kT.TEMPLATE:X_(e,t);break;case kT.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(ST.COLGROUP,kT.COLGROUP),e.insertionMode=L_.IN_COLUMN_GROUP,BI(e,t)}(e,t);break;case kT.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,TT.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case kT.TABLE:!function(e,t){e.openElements.hasInTableScope(kT.TABLE)&&(e.openElements.popUntilTagNamePopped(kT.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case kT.TBODY:case kT.TFOOT:case kT.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,TT.HTML),e.insertionMode=L_.IN_TABLE_BODY}(e,t);break;case kT.INPUT:!function(e,t){AI(t)?e._appendElement(t,TT.HTML):dI(e,t),t.ackSelfClosing=!0}(e,t);break;case kT.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,TT.HTML),e.insertionMode=L_.IN_CAPTION}(e,t);break;case kT.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,TT.HTML),e.insertionMode=L_.IN_COLUMN_GROUP}(e,t);break;default:dI(e,t)}}function hI(e,t){switch(t.tagID){case kT.TABLE:e.openElements.hasInTableScope(kT.TABLE)&&(e.openElements.popUntilTagNamePopped(kT.TABLE),e._resetInsertionMode());break;case kT.TEMPLATE:z_(e,t);break;case kT.BODY:case kT.CAPTION:case kT.COL:case kT.COLGROUP:case kT.HTML:case kT.TBODY:case kT.TD:case kT.TFOOT:case kT.TH:case kT.THEAD:case kT.TR:break;default:dI(e,t)}}function dI(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,eI(e,t),e.fosterParentingEnabled=n}function pI(e,t){e.pendingCharacterTokens.push(t)}function gI(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function mI(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)dI(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const vI=new Set([kT.CAPTION,kT.COL,kT.COLGROUP,kT.TBODY,kT.TD,kT.TFOOT,kT.TH,kT.THEAD,kT.TR]);function BI(e,t){switch(t.tagID){case kT.HTML:aI(e,t);break;case kT.COL:e._appendElement(t,TT.HTML),t.ackSelfClosing=!0;break;case kT.TEMPLATE:X_(e,t);break;default:EI(e,t)}}function EI(e,t){e.openElements.currentTagId===kT.COLGROUP&&(e.openElements.pop(),e.insertionMode=L_.IN_TABLE,e._processToken(t))}function yI(e,t){switch(t.tagID){case kT.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,TT.HTML),e.insertionMode=L_.IN_ROW;break;case kT.TH:case kT.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(ST.TR,kT.TR),e.insertionMode=L_.IN_ROW,bI(e,t);break;case kT.CAPTION:case kT.COL:case kT.COLGROUP:case kT.TBODY:case kT.TFOOT:case kT.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=L_.IN_TABLE,fI(e,t));break;default:fI(e,t)}}function CI(e,t){const n=t.tagID;switch(t.tagID){case kT.TBODY:case kT.TFOOT:case kT.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=L_.IN_TABLE);break;case kT.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=L_.IN_TABLE,hI(e,t));break;case kT.BODY:case kT.CAPTION:case kT.COL:case kT.COLGROUP:case kT.HTML:case kT.TD:case kT.TH:case kT.TR:break;default:hI(e,t)}}function bI(e,t){switch(t.tagID){case kT.TH:case kT.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,TT.HTML),e.insertionMode=L_.IN_CELL,e.activeFormattingElements.insertMarker();break;case kT.CAPTION:case kT.COL:case kT.COLGROUP:case kT.TBODY:case kT.TFOOT:case kT.THEAD:case kT.TR:e.openElements.hasInTableScope(kT.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L_.IN_TABLE_BODY,yI(e,t));break;default:fI(e,t)}}function wI(e,t){switch(t.tagID){case kT.TR:e.openElements.hasInTableScope(kT.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L_.IN_TABLE_BODY);break;case kT.TABLE:e.openElements.hasInTableScope(kT.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L_.IN_TABLE_BODY,CI(e,t));break;case kT.TBODY:case kT.TFOOT:case kT.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(kT.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=L_.IN_TABLE_BODY,CI(e,t));break;case kT.BODY:case kT.CAPTION:case kT.COL:case kT.COLGROUP:case kT.HTML:case kT.TD:case kT.TH:break;default:hI(e,t)}}function TI(e,t){switch(t.tagID){case kT.HTML:aI(e,t);break;case kT.OPTION:e.openElements.currentTagId===kT.OPTION&&e.openElements.pop(),e._insertElement(t,TT.HTML);break;case kT.OPTGROUP:e.openElements.currentTagId===kT.OPTION&&e.openElements.pop(),e.openElements.currentTagId===kT.OPTGROUP&&e.openElements.pop(),e._insertElement(t,TT.HTML);break;case kT.INPUT:case kT.KEYGEN:case kT.TEXTAREA:case kT.SELECT:e.openElements.hasInSelectScope(kT.SELECT)&&(e.openElements.popUntilTagNamePopped(kT.SELECT),e._resetInsertionMode(),t.tagID!==kT.SELECT&&e._processStartTag(t));break;case kT.SCRIPT:case kT.TEMPLATE:X_(e,t)}}function _I(e,t){switch(t.tagID){case kT.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===kT.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===kT.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===kT.OPTGROUP&&e.openElements.pop();break;case kT.OPTION:e.openElements.currentTagId===kT.OPTION&&e.openElements.pop();break;case kT.SELECT:e.openElements.hasInSelectScope(kT.SELECT)&&(e.openElements.popUntilTagNamePopped(kT.SELECT),e._resetInsertionMode());break;case kT.TEMPLATE:z_(e,t)}}function II(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(kT.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):V_(e,t)}function SI(e,t){var n;if(t.tagID===kT.HTML){if(e.fragmentContext||(e.insertionMode=L_.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===kT.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)&&e._setEndLocation(r,t)}}else kI(e,t)}function kI(e,t){e.insertionMode=L_.IN_BODY,eI(e,t)}function FI(e,t){e.insertionMode=L_.IN_BODY,eI(e,t)}function xI(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==TT.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}var LI=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var n=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);function r(e){for(var r,A="",i=0;null!==(r=t.xmlReplacer.exec(e));){var o=r.index,a=e.charCodeAt(o),s=n.get(a);void 0!==s?(A+=e.substring(i,o)+s,i=o+1):(A+="".concat(e.substring(i,o),"&#x").concat((0,t.getCodePoint)(e,o).toString(16),";"),i=t.xmlReplacer.lastIndex+=Number(55296==(64512&a)))}return A+e.substr(i)}function A(e,t){return function(n){for(var r,A=0,i="";r=e.exec(n);)A!==r.index&&(i+=n.substring(A,r.index)),i+=t.get(r[0].charCodeAt(0)),A=r.index+1;return i+n.substring(A)}}t.getCodePoint=null!=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){return 55296==(64512&e.charCodeAt(t))?1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)},t.encodeXML=r,t.escape=r,t.escapeUTF8=A(/[&<>'"]/g,n),t.escapeAttribute=A(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),t.escapeText=A(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))}));n(LI);var UI=LI.escapeText,NI=LI.escapeAttribute;LI.escapeUTF8,LI.escape,LI.encodeXML,LI.getCodePoint,LI.xmlReplacer;const DI=new Set([ST.AREA,ST.BASE,ST.BASEFONT,ST.BGSOUND,ST.BR,ST.COL,ST.EMBED,ST.FRAME,ST.HR,ST.IMG,ST.INPUT,ST.KEYGEN,ST.LINK,ST.META,ST.PARAM,ST.SOURCE,ST.TRACK,ST.WBR]);const OI={treeAdapter:p_,scriptingEnabled:!0};function QI(e,t){return RI(e,{...OI,...t})}function RI(e,t){return t.treeAdapter.isElementNode(e)?function(e,t){const n=t.treeAdapter.getTagName(e);return`<${n}${function(e,{treeAdapter:t}){let n="";for(const r of t.getAttrList(e)){if(n+=" ",r.namespace)switch(r.namespace){case TT.XML:n+="xml:"+r.name;break;case TT.XMLNS:"xmlns"!==r.name&&(n+="xmlns:"),n+=r.name;break;case TT.XLINK:n+="xlink:"+r.name;break;default:n+=`${r.prefix}:${r.name}`}else n+=r.name;n+=`="${NI(r.value)}"`}return n}(e,t)}>${function(e,t){return t.treeAdapter.isElementNode(e)&&t.treeAdapter.getNamespaceURI(e)===TT.HTML&&DI.has(t.treeAdapter.getTagName(e))}(e,t)?"":`${function(e,t){let n="";const r=t.treeAdapter.isElementNode(e)&&t.treeAdapter.getTagName(e)===ST.TEMPLATE&&t.treeAdapter.getNamespaceURI(e)===TT.HTML?t.treeAdapter.getTemplateContent(e):e,A=t.treeAdapter.getChildNodes(r);if(A)for(const e of A)n+=RI(e,t);return n}(e,t)}</${n}>`}`}(e,t):t.treeAdapter.isTextNode(e)?function(e,t){const{treeAdapter:n}=t,r=n.getTextNodeContent(e),A=n.getParentNode(e),i=A&&n.isElementNode(A)&&n.getTagName(A);return i&&n.getNamespaceURI(A)===TT.HTML&&(o=i,a=t.scriptingEnabled,PT.has(o)||a&&o===ST.NOSCRIPT)?r:UI(r);var o,a}(e,t):t.treeAdapter.isCommentNode(e)?function(e,{treeAdapter:t}){return`\x3c!--${t.getCommentNodeContent(e)}--\x3e`}(e,t):t.treeAdapter.isDocumentTypeNode(e)?function(e,{treeAdapter:t}){return`<!DOCTYPE ${t.getDocumentTypeNodeName(e)}>`}(e,t):""}Gl("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),ql);var MI=Q.Set,HI=Math.min,PI=[].lastIndexOf,KI=!!PI&&1/[1].lastIndexOf(1,-0)<0,GI=wi("lastIndexOf"),$I=KI||!GI?function(e){if(KI)return h(PI,this,arguments)||0;var t=D(this),n=Lt(t),r=n-1;for(arguments.length>1&&(r=HI(r,_t(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}:PI;Xe({target:"Array",proto:!0,forced:$I!==[].lastIndexOf},{lastIndexOf:$I});mn("Array").lastIndexOf,mn("Array").entries;var VI,WI,jI,YI,XI,zI,qI,JI,ZI,eS=Jl;new MI([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);!function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",e[e.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_F=102]="LATIN_SMALL_F",e[e.LATIN_SMALL_X=120]="LATIN_SMALL_X",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",e[e.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"}(VI||(VI={})),function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"}(WI||(WI={})),function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"}(jI||(jI={})),function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"}(XI||(XI={})),function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"}(zI||(zI={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(qI||(qI={})),function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"}(JI||(JI={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"}(ZI||(ZI={}));new eS([[JI.A,ZI.A],[JI.ADDRESS,ZI.ADDRESS],[JI.ANNOTATION_XML,ZI.ANNOTATION_XML],[JI.APPLET,ZI.APPLET],[JI.AREA,ZI.AREA],[JI.ARTICLE,ZI.ARTICLE],[JI.ASIDE,ZI.ASIDE],[JI.B,ZI.B],[JI.BASE,ZI.BASE],[JI.BASEFONT,ZI.BASEFONT],[JI.BGSOUND,ZI.BGSOUND],[JI.BIG,ZI.BIG],[JI.BLOCKQUOTE,ZI.BLOCKQUOTE],[JI.BODY,ZI.BODY],[JI.BR,ZI.BR],[JI.BUTTON,ZI.BUTTON],[JI.CAPTION,ZI.CAPTION],[JI.CENTER,ZI.CENTER],[JI.CODE,ZI.CODE],[JI.COL,ZI.COL],[JI.COLGROUP,ZI.COLGROUP],[JI.DD,ZI.DD],[JI.DESC,ZI.DESC],[JI.DETAILS,ZI.DETAILS],[JI.DIALOG,ZI.DIALOG],[JI.DIR,ZI.DIR],[JI.DIV,ZI.DIV],[JI.DL,ZI.DL],[JI.DT,ZI.DT],[JI.EM,ZI.EM],[JI.EMBED,ZI.EMBED],[JI.FIELDSET,ZI.FIELDSET],[JI.FIGCAPTION,ZI.FIGCAPTION],[JI.FIGURE,ZI.FIGURE],[JI.FONT,ZI.FONT],[JI.FOOTER,ZI.FOOTER],[JI.FOREIGN_OBJECT,ZI.FOREIGN_OBJECT],[JI.FORM,ZI.FORM],[JI.FRAME,ZI.FRAME],[JI.FRAMESET,ZI.FRAMESET],[JI.H1,ZI.H1],[JI.H2,ZI.H2],[JI.H3,ZI.H3],[JI.H4,ZI.H4],[JI.H5,ZI.H5],[JI.H6,ZI.H6],[JI.HEAD,ZI.HEAD],[JI.HEADER,ZI.HEADER],[JI.HGROUP,ZI.HGROUP],[JI.HR,ZI.HR],[JI.HTML,ZI.HTML],[JI.I,ZI.I],[JI.IMG,ZI.IMG],[JI.IMAGE,ZI.IMAGE],[JI.INPUT,ZI.INPUT],[JI.IFRAME,ZI.IFRAME],[JI.KEYGEN,ZI.KEYGEN],[JI.LABEL,ZI.LABEL],[JI.LI,ZI.LI],[JI.LINK,ZI.LINK],[JI.LISTING,ZI.LISTING],[JI.MAIN,ZI.MAIN],[JI.MALIGNMARK,ZI.MALIGNMARK],[JI.MARQUEE,ZI.MARQUEE],[JI.MATH,ZI.MATH],[JI.MENU,ZI.MENU],[JI.META,ZI.META],[JI.MGLYPH,ZI.MGLYPH],[JI.MI,ZI.MI],[JI.MO,ZI.MO],[JI.MN,ZI.MN],[JI.MS,ZI.MS],[JI.MTEXT,ZI.MTEXT],[JI.NAV,ZI.NAV],[JI.NOBR,ZI.NOBR],[JI.NOFRAMES,ZI.NOFRAMES],[JI.NOEMBED,ZI.NOEMBED],[JI.NOSCRIPT,ZI.NOSCRIPT],[JI.OBJECT,ZI.OBJECT],[JI.OL,ZI.OL],[JI.OPTGROUP,ZI.OPTGROUP],[JI.OPTION,ZI.OPTION],[JI.P,ZI.P],[JI.PARAM,ZI.PARAM],[JI.PLAINTEXT,ZI.PLAINTEXT],[JI.PRE,ZI.PRE],[JI.RB,ZI.RB],[JI.RP,ZI.RP],[JI.RT,ZI.RT],[JI.RTC,ZI.RTC],[JI.RUBY,ZI.RUBY],[JI.S,ZI.S],[JI.SCRIPT,ZI.SCRIPT],[JI.SECTION,ZI.SECTION],[JI.SELECT,ZI.SELECT],[JI.SOURCE,ZI.SOURCE],[JI.SMALL,ZI.SMALL],[JI.SPAN,ZI.SPAN],[JI.STRIKE,ZI.STRIKE],[JI.STRONG,ZI.STRONG],[JI.STYLE,ZI.STYLE],[JI.SUB,ZI.SUB],[JI.SUMMARY,ZI.SUMMARY],[JI.SUP,ZI.SUP],[JI.TABLE,ZI.TABLE],[JI.TBODY,ZI.TBODY],[JI.TEMPLATE,ZI.TEMPLATE],[JI.TEXTAREA,ZI.TEXTAREA],[JI.TFOOT,ZI.TFOOT],[JI.TD,ZI.TD],[JI.TH,ZI.TH],[JI.THEAD,ZI.THEAD],[JI.TITLE,ZI.TITLE],[JI.TR,ZI.TR],[JI.TRACK,ZI.TRACK],[JI.TT,ZI.TT],[JI.U,ZI.U],[JI.UL,ZI.UL],[JI.SVG,ZI.SVG],[JI.VAR,ZI.VAR],[JI.WBR,ZI.WBR],[JI.XMP,ZI.XMP]]);var tS,nS=ZI;so(YI={},XI.HTML,new MI([nS.ADDRESS,nS.APPLET,nS.AREA,nS.ARTICLE,nS.ASIDE,nS.BASE,nS.BASEFONT,nS.BGSOUND,nS.BLOCKQUOTE,nS.BODY,nS.BR,nS.BUTTON,nS.CAPTION,nS.CENTER,nS.COL,nS.COLGROUP,nS.DD,nS.DETAILS,nS.DIR,nS.DIV,nS.DL,nS.DT,nS.EMBED,nS.FIELDSET,nS.FIGCAPTION,nS.FIGURE,nS.FOOTER,nS.FORM,nS.FRAME,nS.FRAMESET,nS.H1,nS.H2,nS.H3,nS.H4,nS.H5,nS.H6,nS.HEAD,nS.HEADER,nS.HGROUP,nS.HR,nS.HTML,nS.IFRAME,nS.IMG,nS.INPUT,nS.LI,nS.LINK,nS.LISTING,nS.MAIN,nS.MARQUEE,nS.MENU,nS.META,nS.NAV,nS.NOEMBED,nS.NOFRAMES,nS.NOSCRIPT,nS.OBJECT,nS.OL,nS.P,nS.PARAM,nS.PLAINTEXT,nS.PRE,nS.SCRIPT,nS.SECTION,nS.SELECT,nS.SOURCE,nS.STYLE,nS.SUMMARY,nS.TABLE,nS.TBODY,nS.TD,nS.TEMPLATE,nS.TEXTAREA,nS.TFOOT,nS.TH,nS.THEAD,nS.TITLE,nS.TR,nS.TRACK,nS.UL,nS.WBR,nS.XMP])),so(YI,XI.MATHML,new MI([nS.MI,nS.MO,nS.MN,nS.MS,nS.MTEXT,nS.ANNOTATION_XML])),so(YI,XI.SVG,new MI([nS.TITLE,nS.FOREIGN_OBJECT,nS.DESC])),so(YI,XI.XLINK,new MI),so(YI,XI.XML,new MI),so(YI,XI.XMLNS,new MI),new MI([JI.STYLE,JI.SCRIPT,JI.XMP,JI.IFRAME,JI.NOEMBED,JI.NOFRAMES,JI.PLAINTEXT]),new eS([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);!function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.DECIMAL_CHARACTER_REFERENCE_START=76]="DECIMAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=77]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=78]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=79]="NUMERIC_CHARACTER_REFERENCE_END"}(tS||(tS={}));tS.DATA,tS.RCDATA,tS.RAWTEXT,tS.SCRIPT_DATA,tS.PLAINTEXT,tS.CDATA_SECTION;var rS,AS,iS=new MI([ZI.DD,ZI.DT,ZI.LI,ZI.OPTGROUP,ZI.OPTION,ZI.P,ZI.RB,ZI.RP,ZI.RT,ZI.RTC]);new MI(uo(rS=[]).call(rS,Gu(iS),[ZI.CAPTION,ZI.COLGROUP,ZI.TBODY,ZI.TD,ZI.TFOOT,ZI.TH,ZI.THEAD,ZI.TR])),new eS([[ZI.APPLET,XI.HTML],[ZI.CAPTION,XI.HTML],[ZI.HTML,XI.HTML],[ZI.MARQUEE,XI.HTML],[ZI.OBJECT,XI.HTML],[ZI.TABLE,XI.HTML],[ZI.TD,XI.HTML],[ZI.TEMPLATE,XI.HTML],[ZI.TH,XI.HTML],[ZI.ANNOTATION_XML,XI.MATHML],[ZI.MI,XI.MATHML],[ZI.MN,XI.MATHML],[ZI.MO,XI.MATHML],[ZI.MS,XI.MATHML],[ZI.MTEXT,XI.MATHML],[ZI.DESC,XI.SVG],[ZI.FOREIGN_OBJECT,XI.SVG],[ZI.TITLE,XI.SVG]]),ZI.H1,ZI.H2,ZI.H3,ZI.H4,ZI.H5,ZI.H6,ZI.TR,ZI.TEMPLATE,ZI.HTML,ZI.TBODY,ZI.TFOOT,ZI.THEAD,ZI.TEMPLATE,ZI.HTML,ZI.TABLE,ZI.TEMPLATE,ZI.HTML,ZI.TD,ZI.TH;!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(AS||(AS={}));var oS,aS,sS;AS.Marker;!function(e){e.Document="#document",e.DocumentFragment="#document-fragment",e.Comment="#comment",e.Text="#text",e.DocumentType="#documentType"}(oS||(oS={}));var cS,lS,uS;uo(aS=[]).call(aS,["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),new MI(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),uo(sS=[]).call(sS,["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),new eS(Cl(cS=["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"]).call(cS,(function(e){return[e.toLowerCase(),e]}))),new eS([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:XI.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:XI.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:XI.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:XI.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:XI.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:XI.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:XI.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:XI.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:XI.XML}],["xml:space",{prefix:"xml",name:"space",namespace:XI.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:XI.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:XI.XMLNS}]]),new eS(Cl(lS=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"]).call(lS,(function(e){return[e.toLowerCase(),e]}))),new MI([ZI.B,ZI.BIG,ZI.BLOCKQUOTE,ZI.BODY,ZI.BR,ZI.CENTER,ZI.CODE,ZI.DD,ZI.DIV,ZI.DL,ZI.DT,ZI.EM,ZI.EMBED,ZI.H1,ZI.H2,ZI.H3,ZI.H4,ZI.H5,ZI.H6,ZI.HEAD,ZI.HR,ZI.I,ZI.IMG,ZI.LI,ZI.LISTING,ZI.MENU,ZI.META,ZI.NOBR,ZI.OL,ZI.P,ZI.PRE,ZI.RUBY,ZI.S,ZI.SMALL,ZI.SPAN,ZI.STRONG,ZI.STRIKE,ZI.SUB,ZI.SUP,ZI.TABLE,ZI.TT,ZI.U,ZI.UL,ZI.VAR]);!function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"}(uS||(uS={}));new MI([ZI.TABLE,ZI.TBODY,ZI.TFOOT,ZI.THEAD,ZI.TR]),new MI([ZI.CAPTION,ZI.COL,ZI.COLGROUP,ZI.TBODY,ZI.TD,ZI.TFOOT,ZI.TH,ZI.THEAD,ZI.TR]),new MI([JI.AREA,JI.BASE,JI.BASEFONT,JI.BGSOUND,JI.BR,JI.COL,JI.EMBED,JI.FRAME,JI.HR,JI.IMG,JI.INPUT,JI.KEYGEN,JI.LINK,JI.META,JI.PARAM,JI.SOURCE,JI.TRACK,JI.WBR]);function fS(e,t){var n=fi(e);if(di){var r=di(e);t&&(r=Bi(r).call(r,(function(t){return bi(e,t).enumerable}))),n.push.apply(n,r)}return n}function hS(e){for(var t=1;t<arguments.length;t++){var n,r,A=null!=arguments[t]?arguments[t]:{};t%2?xi(n=fS(Object(A),!0)).call(n,(function(t){so(e,t,A[t])})):Ni?Oi(e,Ni(A)):xi(r=fS(Object(A))).call(r,(function(t){Mi(e,t,bi(A,t))}))}return e}function dS(e){return new Uy(e)}function pS(e){var t=fp(e).call(e,'"')?"'":'"';return t+e+t}var gS={isCommentNode:Gy,isElementNode:Hy,isTextNode:Ky,createDocument:function(){var e=new Ry([]);return e["x-mode"]=qI.NO_QUIRKS,e},createDocumentFragment:function(){return new Ry([])},createElement:function(e,t,n){for(var r=Mc(null),A=Mc(null),i=Mc(null),o=0;o<n.length;o++){var a=n[o].name;r[a]=n[o].value,A[a]=n[o].namespace,i[a]=n[o].prefix}var s=new My(e,r,[]);return s.namespace=t,s["x-attribsNamespace"]=A,s["x-attribsPrefix"]=i,s},createCommentNode:function(e){return new Ny(e)},appendChild:function(e,t){var n=e.children[e.children.length-1];n&&(n.next=t,t.prev=n),e.children.push(t),t.parent=e},insertBefore:function(e,t,n){var r,A,i=Rc(r=e.children).call(r,n),o=n.prev;o&&(o.next=t,t.prev=o),n.prev=t,t.next=n,dl(A=e.children).call(A,i,0,t),t.parent=e},setTemplateContent:function(e,t){gS.appendChild(e,t)},getTemplateContent:function(e){return e.children[0]},setDocumentType:function(e,t,n,r){var A,i=function(e,t,n){var r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC ".concat(pS(t)):n&&(r+=" SYSTEM"),n&&(r+=" ".concat(pS(n))),r}(t,n,r),o=Pm(A=e.children).call(A,(function(e){return $y(e)&&"!doctype"===e.name}));o?o.data=null!=i?i:null:(o=new Dy("!doctype",i),gS.appendChild(e,o)),o["x-name"]=null!=t?t:void 0,o["x-publicId"]=null!=n?n:void 0,o["x-systemId"]=null!=r?r:void 0},setDocumentMode:function(e,t){e["x-mode"]=t},getDocumentMode:function(e){return e["x-mode"]},detachNode:function(e){if(e.parent){var t,n,r=Rc(t=e.parent.children).call(t,e),A=e.prev,i=e.next;e.prev=null,e.next=null,A&&(A.next=i),i&&(i.prev=A),dl(n=e.parent.children).call(n,r,1),e.parent=null}},insertText:function(e,t){var n=e.children[e.children.length-1];n&&Ky(n)?n.data+=t:gS.appendChild(e,dS(t))},insertTextBefore:function(e,t,n){var r,A=e.children[Rc(r=e.children).call(r,n)-1];A&&Ky(A)?A.data+=t:gS.insertBefore(e,dS(t),n)},adoptAttributes:function(e,t){for(var n=0;n<t.length;n++){var r=t[n].name;void 0===e.attribs[r]&&(e.attribs[r]=t[n].value,e["x-attribsNamespace"][r]=t[n].namespace,e["x-attribsPrefix"][r]=t[n].prefix)}},getFirstChild:function(e){return e.children[0]},getChildNodes:function(e){return e.children},getParentNode:function(e){return e.parent},getAttrList:function(e){return e.attributes},getTagName:function(e){return e.name},getNamespaceURI:function(e){return e.namespace},getTextNodeContent:function(e){return e.data},getCommentNodeContent:function(e){return e.data},getDocumentTypeNodeName:function(e){var t;return null!==(t=e["x-name"])&&void 0!==t?t:""},getDocumentTypeNodePublicId:function(e){var t;return null!==(t=e["x-publicId"])&&void 0!==t?t:""},getDocumentTypeNodeSystemId:function(e){var t;return null!==(t=e["x-systemId"])&&void 0!==t?t:""},isDocumentTypeNode:function(e){return $y(e)&&"!doctype"===e.name},setNodeSourceCodeLocation:function(e,t){t&&(e.startIndex=t.startOffset,e.endIndex=t.endOffset),e.sourceCodeLocation=t},getNodeSourceCodeLocation:function(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation:function(e,t){null!=t.endOffset&&(e.endIndex=t.endOffset),e.sourceCodeLocation=hS(hS({},e.sourceCodeLocation),t)}};function mS(e,t,n,r){const A={scriptingEnabled:"boolean"!=typeof t.scriptingEnabled||t.scriptingEnabled,treeAdapter:gS,sourceCodeLocationInfo:t.sourceCodeLocationInfo};return n?function(e,t){return O_.parse(e,t)}(e,A):function(e,t,n){"string"==typeof e&&(n=t,t=e,e=null);const r=O_.getFragmentParser(e,n);return r.tokenizer.write(t,!0),r.getFragment()}(r,e,A)}const vS={treeAdapter:gS};var BS,ES,yS;function CS(e){return e===BS.Space||e===BS.NewLine||e===BS.Tab||e===BS.FormFeed||e===BS.CarriageReturn}function bS(e){return e===BS.Slash||e===BS.Gt||CS(e)}function wS(e){return e>=BS.Zero&&e<=BS.Nine}!function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Num=35]="Num",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"}(BS||(BS={})),function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"}(ES||(ES={})),function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"}(yS||(yS={}));const TS={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])};class _S{constructor({xmlMode:e=!1,decodeEntities:t=!0},n){this.cbs=n,this.state=ES.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=ES.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=e,this.decodeEntities=t,this.entityTrie=e?NT:DT}reset(){this.state=ES.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=ES.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}getIndex(){return this.index}getSectionStart(){return this.sectionStart}stateText(e){e===BS.Lt||!this.decodeEntities&&this.fastForwardTo(BS.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=ES.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===BS.Amp&&(this.state=ES.BeforeEntity)}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?bS(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=ES.InTagName,this.stateInTagName(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(e===BS.Gt||CS(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart<t){const e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}return this.isSpecial=!1,this.sectionStart=t+2,void this.stateInClosingTagName(e)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===TS.TitleEnd?this.decodeEntities&&e===BS.Amp&&(this.state=ES.BeforeEntity):this.fastForwardTo(BS.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===BS.Lt)}stateCDATASequence(e){e===TS.Cdata[this.sequenceIndex]?++this.sequenceIndex===TS.Cdata.length&&(this.state=ES.InCommentLike,this.currentSequence=TS.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=ES.InDeclaration,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===TS.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=ES.Text):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(e){return this.xmlMode?!bS(e):function(e){return e>=BS.LowerA&&e<=BS.LowerZ||e>=BS.UpperA&&e<=BS.UpperZ}(e)}startSpecial(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=ES.SpecialStartSequence}stateBeforeTagName(e){if(e===BS.ExclamationMark)this.state=ES.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===BS.Questionmark)this.state=ES.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){const t=32|e;this.sectionStart=this.index,this.xmlMode||t!==TS.TitleEnd[2]?this.state=this.xmlMode||t!==TS.ScriptEnd[2]?ES.InTagName:ES.BeforeSpecialS:this.startSpecial(TS.TitleEnd,3)}else e===BS.Slash?this.state=ES.BeforeClosingTagName:(this.state=ES.Text,this.stateText(e))}stateInTagName(e){bS(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=ES.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){CS(e)||(e===BS.Gt?this.state=ES.Text:(this.state=this.isTagStartChar(e)?ES.InClosingTagName:ES.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(e){(e===BS.Gt||CS(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=ES.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===BS.Gt||this.fastForwardTo(BS.Gt))&&(this.state=ES.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===BS.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=ES.InSpecialTag,this.sequenceIndex=0):this.state=ES.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===BS.Slash?this.state=ES.InSelfClosingTag:CS(e)||(this.state=ES.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===BS.Gt?(this.cbs.onselfclosingtag(this.index),this.state=ES.Text,this.baseState=ES.Text,this.sectionStart=this.index+1,this.isSpecial=!1):CS(e)||(this.state=ES.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===BS.Eq||bS(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=ES.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===BS.Eq?this.state=ES.BeforeAttributeValue:e===BS.Slash||e===BS.Gt?(this.cbs.onattribend(yS.NoValue,this.index),this.state=ES.BeforeAttributeName,this.stateBeforeAttributeName(e)):CS(e)||(this.cbs.onattribend(yS.NoValue,this.index),this.state=ES.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===BS.DoubleQuote?(this.state=ES.InAttributeValueDq,this.sectionStart=this.index+1):e===BS.SingleQuote?(this.state=ES.InAttributeValueSq,this.sectionStart=this.index+1):CS(e)||(this.sectionStart=this.index,this.state=ES.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===BS.DoubleQuote?yS.Double:yS.Single,this.index),this.state=ES.BeforeAttributeName):this.decodeEntities&&e===BS.Amp&&(this.baseState=this.state,this.state=ES.BeforeEntity)}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,BS.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,BS.SingleQuote)}stateInAttributeValueNoQuotes(e){CS(e)||e===BS.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(yS.Unquoted,this.index),this.state=ES.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===BS.Amp&&(this.baseState=this.state,this.state=ES.BeforeEntity)}stateBeforeDeclaration(e){e===BS.OpeningSquareBracket?(this.state=ES.CDATASequence,this.sequenceIndex=0):this.state=e===BS.Dash?ES.BeforeComment:ES.InDeclaration}stateInDeclaration(e){(e===BS.Gt||this.fastForwardTo(BS.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=ES.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===BS.Gt||this.fastForwardTo(BS.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=ES.Text,this.sectionStart=this.index+1)}stateBeforeComment(e){e===BS.Dash?(this.state=ES.InCommentLike,this.currentSequence=TS.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=ES.InDeclaration}stateInSpecialComment(e){(e===BS.Gt||this.fastForwardTo(BS.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=ES.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){const t=32|e;t===TS.ScriptEnd[3]?this.startSpecial(TS.ScriptEnd,4):t===TS.StyleEnd[3]?this.startSpecial(TS.StyleEnd,4):(this.state=ES.InTagName,this.stateInTagName(e))}stateBeforeEntity(e){this.entityExcess=1,this.entityResult=0,e===BS.Num?this.state=ES.BeforeNumericEntity:e===BS.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=ES.InNamedEntity,this.stateInNamedEntity(e))}stateInNamedEntity(e){if(this.entityExcess+=1,this.trieIndex=FT(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0)return this.emitNamedEntity(),void this.index--;this.trieCurrent=this.entityTrie[this.trieIndex];const t=this.trieCurrent&xT.VALUE_LENGTH;if(t){const n=(t>>14)-1;if(this.allowLegacyEntity()||e===BS.Semi){const e=this.index-this.entityExcess+1;e>this.sectionStart&&this.emitPartial(this.sectionStart,e),this.entityResult=this.trieIndex,this.trieIndex+=n,this.entityExcess=0,this.sectionStart=this.index+1,0===n&&this.emitNamedEntity()}else this.trieIndex+=n}}emitNamedEntity(){if(this.state=this.baseState,0===this.entityResult)return;switch((this.entityTrie[this.entityResult]&xT.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~xT.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(e){(32|e)===BS.LowerX?(this.entityExcess++,this.state=ES.InHexEntity):(this.state=ES.InNumericEntity,this.stateInNumericEntity(e))}emitNumericEntity(e){const t=this.index-this.entityExcess-1;t+2+Number(this.state===ES.InHexEntity)!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint(UT(this.entityResult))),this.state=this.baseState}stateInNumericEntity(e){e===BS.Semi?this.emitNumericEntity(!0):wS(e)?(this.entityResult=10*this.entityResult+(e-BS.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(e){e===BS.Semi?this.emitNumericEntity(!0):wS(e)?(this.entityResult=16*this.entityResult+(e-BS.Zero),this.entityExcess++):!function(e){return e>=BS.UpperA&&e<=BS.UpperF||e>=BS.LowerA&&e<=BS.LowerF}(e)?(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--):(this.entityResult=16*this.entityResult+((32|e)-BS.LowerA+10),this.entityExcess++)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===ES.Text||this.baseState===ES.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===ES.Text||this.state===ES.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.state!==ES.InAttributeValueDq&&this.state!==ES.InAttributeValueSq&&this.state!==ES.InAttributeValueNq||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){const e=this.buffer.charCodeAt(this.index-this.offset);this.state===ES.Text?this.stateText(e):this.state===ES.SpecialStartSequence?this.stateSpecialStartSequence(e):this.state===ES.InSpecialTag?this.stateInSpecialTag(e):this.state===ES.CDATASequence?this.stateCDATASequence(e):this.state===ES.InAttributeValueDq?this.stateInAttributeValueDoubleQuotes(e):this.state===ES.InAttributeName?this.stateInAttributeName(e):this.state===ES.InCommentLike?this.stateInCommentLike(e):this.state===ES.InSpecialComment?this.stateInSpecialComment(e):this.state===ES.BeforeAttributeName?this.stateBeforeAttributeName(e):this.state===ES.InTagName?this.stateInTagName(e):this.state===ES.InClosingTagName?this.stateInClosingTagName(e):this.state===ES.BeforeTagName?this.stateBeforeTagName(e):this.state===ES.AfterAttributeName?this.stateAfterAttributeName(e):this.state===ES.InAttributeValueSq?this.stateInAttributeValueSingleQuotes(e):this.state===ES.BeforeAttributeValue?this.stateBeforeAttributeValue(e):this.state===ES.BeforeClosingTagName?this.stateBeforeClosingTagName(e):this.state===ES.AfterClosingTagName?this.stateAfterClosingTagName(e):this.state===ES.BeforeSpecialS?this.stateBeforeSpecialS(e):this.state===ES.InAttributeValueNq?this.stateInAttributeValueNoQuotes(e):this.state===ES.InSelfClosingTag?this.stateInSelfClosingTag(e):this.state===ES.InDeclaration?this.stateInDeclaration(e):this.state===ES.BeforeDeclaration?this.stateBeforeDeclaration(e):this.state===ES.BeforeComment?this.stateBeforeComment(e):this.state===ES.InProcessingInstruction?this.stateInProcessingInstruction(e):this.state===ES.InNamedEntity?this.stateInNamedEntity(e):this.state===ES.BeforeEntity?this.stateBeforeEntity(e):this.state===ES.InHexEntity?this.stateInHexEntity(e):this.state===ES.InNumericEntity?this.stateInNumericEntity(e):this.stateBeforeNumericEntity(e),this.index++}this.cleanup()}finish(){this.state===ES.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length+this.offset;this.state===ES.InCommentLike?this.currentSequence===TS.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===ES.InNumericEntity&&this.allowLegacyEntity()||this.state===ES.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===ES.InTagName||this.state===ES.BeforeAttributeName||this.state===ES.BeforeAttributeValue||this.state===ES.AfterAttributeName||this.state===ES.InAttributeName||this.state===ES.InAttributeValueSq||this.state===ES.InAttributeValueDq||this.state===ES.InAttributeValueNq||this.state===ES.InClosingTagName||this.cbs.ontext(this.sectionStart,e)}emitPartial(e,t){this.baseState!==ES.Text&&this.baseState!==ES.InSpecialTag?this.cbs.onattribdata(e,t):this.cbs.ontext(e,t)}emitCodePoint(e){this.baseState!==ES.Text&&this.baseState!==ES.InSpecialTag?this.cbs.onattribentity(e):this.cbs.ontextentity(e)}}const IS=new Set(["input","option","optgroup","select","button","datalist","textarea"]),SS=new Set(["p"]),kS=new Set(["thead","tbody"]),FS=new Set(["dd","dt"]),xS=new Set(["rt","rp"]),LS=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",SS],["h1",SS],["h2",SS],["h3",SS],["h4",SS],["h5",SS],["h6",SS],["select",IS],["input",IS],["output",IS],["button",IS],["datalist",IS],["textarea",IS],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",FS],["dt",FS],["address",SS],["article",SS],["aside",SS],["blockquote",SS],["details",SS],["div",SS],["dl",SS],["fieldset",SS],["figcaption",SS],["figure",SS],["footer",SS],["form",SS],["header",SS],["hr",SS],["main",SS],["nav",SS],["ol",SS],["pre",SS],["section",SS],["table",SS],["ul",SS],["rt",xS],["rp",xS],["tbody",kS],["tfoot",kS]]),US=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),NS=new Set(["math","svg"]),DS=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),OS=/\s|\//;class QS{constructor(e,t={}){var n,r,A,i,o;this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(n=t.lowerCaseTags)&&void 0!==n?n:!t.xmlMode,this.lowerCaseAttributeNames=null!==(r=t.lowerCaseAttributeNames)&&void 0!==r?r:!t.xmlMode,this.tokenizer=new(null!==(A=t.Tokenizer)&&void 0!==A?A:_S)(this.options,this),null===(o=(i=this.cbs).onparserinit)||void 0===o||o.call(i,this)}ontext(e,t){var n,r;const A=this.getSlice(e,t);this.endIndex=t-1,null===(r=(n=this.cbs).ontext)||void 0===r||r.call(n,A),this.startIndex=t}ontextentity(e){var t,n;const r=this.tokenizer.getSectionStart();this.endIndex=r-1,null===(n=(t=this.cbs).ontext)||void 0===n||n.call(t,LT(e)),this.startIndex=r}isVoidElement(e){return!this.options.xmlMode&&US.has(e)}onopentagname(e,t){this.endIndex=t;let n=this.getSlice(e,t);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)}emitOpenTag(e){var t,n,r,A;this.openTagStart=this.startIndex,this.tagname=e;const i=!this.options.xmlMode&&LS.get(e);if(i)for(;this.stack.length>0&&i.has(this.stack[this.stack.length-1]);){const e=this.stack.pop();null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,e,!0)}this.isVoidElement(e)||(this.stack.push(e),NS.has(e)?this.foreignContext.push(!0):DS.has(e)&&this.foreignContext.push(!1)),null===(A=(r=this.cbs).onopentagname)||void 0===A||A.call(r,e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){var t,n;this.startIndex=this.openTagStart,this.attribs&&(null===(n=(t=this.cbs).onopentag)||void 0===n||n.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,t){var n,r,A,i,o,a;this.endIndex=t;let s=this.getSlice(e,t);if(this.lowerCaseTagNames&&(s=s.toLowerCase()),(NS.has(s)||DS.has(s))&&this.foreignContext.pop(),this.isVoidElement(s))this.options.xmlMode||"br"!==s||(null===(r=(n=this.cbs).onopentagname)||void 0===r||r.call(n,"br"),null===(i=(A=this.cbs).onopentag)||void 0===i||i.call(A,"br",{},!0),null===(a=(o=this.cbs).onclosetag)||void 0===a||a.call(o,"br",!1));else{const e=this.stack.lastIndexOf(s);if(-1!==e)if(this.cbs.onclosetag){let t=this.stack.length-e;for(;t--;)this.cbs.onclosetag(this.stack.pop(),0!==t)}else this.stack.length=e;else this.options.xmlMode||"p"!==s||(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1}onselfclosingtag(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}closeCurrentTag(e){var t,n;const r=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===r&&(null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,r,!e),this.stack.pop())}onattribname(e,t){this.startIndex=e;const n=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n}onattribdata(e,t){this.attribvalue+=this.getSlice(e,t)}onattribentity(e){this.attribvalue+=LT(e)}onattribend(e,t){var n,r;this.endIndex=t,null===(r=(n=this.cbs).onattribute)||void 0===r||r.call(n,this.attribname,this.attribvalue,e===yS.Double?'"':e===yS.Single?"'":e===yS.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(e){const t=e.search(OS);let n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n}ondeclaration(e,t){this.endIndex=t;const n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){const e=this.getInstructionName(n);this.cbs.onprocessinginstruction("!"+e,"!"+n)}this.startIndex=t+1}onprocessinginstruction(e,t){this.endIndex=t;const n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){const e=this.getInstructionName(n);this.cbs.onprocessinginstruction("?"+e,"?"+n)}this.startIndex=t+1}oncomment(e,t,n){var r,A,i,o;this.endIndex=t,null===(A=(r=this.cbs).oncomment)||void 0===A||A.call(r,this.getSlice(e,t-n)),null===(o=(i=this.cbs).oncommentend)||void 0===o||o.call(i),this.startIndex=t+1}oncdata(e,t,n){var r,A,i,o,a,s,c,l,u,f;this.endIndex=t;const h=this.getSlice(e,t-n);this.options.xmlMode||this.options.recognizeCDATA?(null===(A=(r=this.cbs).oncdatastart)||void 0===A||A.call(r),null===(o=(i=this.cbs).ontext)||void 0===o||o.call(i,h),null===(s=(a=this.cbs).oncdataend)||void 0===s||s.call(a)):(null===(l=(c=this.cbs).oncomment)||void 0===l||l.call(c,`[CDATA[${h}]]`),null===(f=(u=this.cbs).oncommentend)||void 0===f||f.call(u)),this.startIndex=t+1}onend(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let e=this.stack.length;e>0;this.cbs.onclosetag(this.stack[--e],!0));}null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)}reset(){var e,t,n,r;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null===(r=(n=this.cbs).onparserinit)||void 0===r||r.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(e){this.reset(),this.end(e)}getSlice(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".write() after done!")):(this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++))}end(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,Error(".end() after done!")):(e&&this.write(e),this.ended=!0,this.tokenizer.end())}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(e){this.write(e)}done(e){this.end(e)}}var RS=function(e,t){return function n(r,A,i=!0){if(null==r)throw new Error("cheerio.load() expects a string");const o={...vy,...Ey(A)},a=e(r,o,i,null);class s extends iT{_make(e,t){const n=c(e,t);return n.prevObject=this,n}_parse(t,n,r,A){return e(t,n,r,A)}_render(e){return t(e,this.options)}}function c(t,n,r=a,A){if(t&&jC(t))return t;const i={...o,...Ey(A)},c="string"==typeof r?[e(r,i,!1,null)]:"length"in r?r:[r],l=jC(c)?c:new s(c,null,i);if(l._root=l,!t)return new s(void 0,l,i);const u="string"==typeof t&&zC(t)?e(t,i,!1,null).children:(f=t).name||"root"===f.type||"text"===f.type||"comment"===f.type?[t]:Array.isArray(t)?t:void 0;var f;const h=new s(u,l,i);if(u)return h;if("string"!=typeof t)throw new Error("Unexpected type of selector");let d=t;const p=n?"string"==typeof n?zC(n)?new s([e(n,i,!1,null)],l,i):(d=`${n} ${d}`,l):jC(n)?n:new s(Array.isArray(n)?n:[n],l,i):l;return p?p.find(d):h}return Object.assign(c,WC,{load:n,_root:a,_options:o,fn:s.prototype,prototype:s.prototype}),c}}(function(e){return function(t,n,r,A){if("undefined"!=typeof Buffer&&Buffer.isBuffer(t)&&(t=t.toString()),"string"==typeof t)return e(t,n,r,A);const i=t;if(!Array.isArray(i)&&Vy(i))return i;const o=new Ry([]);return Vw(i,o),o}}((e,t,n,r)=>t.xmlMode||t._useHtmlParser2?function(e,t){const n=new zy(void 0,t);return new QS(n,t).end(e),n.root}(e,t):mS(e,t,n,r)),(e,t)=>t.xmlMode||t._useHtmlParser2?cC(e,t):function(e){const t="length"in e?e:[e];for(let e=0;e<t.length;e+=1){const n=t[e];Vy(n)&&Array.prototype.splice.call(t,e,1,...n.children)}let n="";for(let e=0;e<t.length;e+=1){n+=QI(t[e],vS)}return n}(e))([]),MS=r((function(e,t){function n(e){var t=[].slice.call(arguments,1);t.unshift("["+e+"]"),process.stderr.write(t.join(" ")+"\n")}e.exports=function(e){return n.bind(null,e)}})),HS=r((function(e,t){MS("lex");e.exports=function(e){var t,n="",r=0,A=-1,i=0,o=1,a="before-selector",s=[a],c={},l=[],u=["media","keyframes",{name:"-webkit-keyframes",type:"keyframes",prefix:"-webkit-"},{name:"-moz-keyframes",type:"keyframes",prefix:"-moz-"},{name:"-ms-keyframes",type:"keyframes",prefix:"-ms-"},{name:"-o-keyframes",type:"keyframes",prefix:"-o-"},"font-face",{name:"import",state:"before-at-value"},{name:"charset",state:"before-at-value"},"supports","viewport",{name:"namespace",state:"before-at-value"},"document",{name:"-moz-document",type:"document",prefix:"-moz-"},"page"];function f(e){return e?s[s.length-1-e]:a}function h(t){var n=e.slice(A).indexOf(t);return n>0&&n}function d(e){return e===p(1)}function p(t){return e[A+(t||1)]}function g(){var e=s.pop();return a=s[s.length-1],e}function m(e){return a=e,s.push(a),s.length}function v(e){var t=a;return s[s.length-1]=a=e,t}function B(t){if(1==(t||1))"\n"==e[A]?(o++,r=1):r++,A++;else{var n=e.slice(A,A+t).split("\n");n.length>1&&(o+=n.length-1,r=1),r+=n[n.length-1].length,A+=t}}function E(){c.end={line:o,col:r},l.push(c),n="",c={}}function y(e){c={type:e,start:{line:o,col:r}}}for(;B(),t=e[A];)switch(t){case" ":switch(f()){case"selector":case"value":case"value-paren":case"at-group":case"at-value":case"comment":case"double-string":case"single-string":n+=t}break;case"\n":case"\t":case"\r":case"\f":switch(f()){case"value":case"value-paren":case"at-group":case"comment":case"single-string":case"double-string":case"selector":n+=t;break;case"at-value":"\n"===t&&(c.value=n.trim(),E(),g())}break;case":":switch(f()){case"name":c.name=n.trim(),n="",v("before-value");break;case"before-selector":n+=t,y("selector"),m("selector");break;case"before-value":v("value"),n+=t;break;default:n+=t}break;case";":switch(f()){case"name":case"before-value":case"value":n.trim().length>0&&(c.value=n.trim(),E()),v("before-name");break;case"value-paren":n+=t;break;case"at-value":c.value=n.trim(),E(),g();break;case"before-name":break;default:n+=t}break;case"{":switch(f()){case"selector":if("\\"===p(-1)){n+=t;break}c.text=n.trim(),E(),v("before-name"),i+=1;break;case"at-group":switch(c.name=n.trim(),c.type){case"font-face":case"viewport":case"page":m("before-name");break;default:m("before-selector")}E(),i+=1;break;case"name":case"at-rule":c.name=n.trim(),E(),m("before-name"),i+=1;break;case"comment":case"double-string":case"single-string":n+=t;break;case"before-value":v("value"),n+=t}break;case"}":switch(f()){case"before-name":case"name":case"before-value":case"value":n&&(c.value=n.trim()),c.name&&c.value&&E(),y("end"),E(),g(),"at-group"===f()&&(y("at-group-end"),E(),g()),i>0&&(i-=1);break;case"at-group":case"before-selector":case"selector":if("\\"===p(-1)){n+=t;break}i>0&&"at-group"===f(1)&&(y("at-group-end"),E()),i>1&&g(),i>0&&(i-=1);break;case"double-string":case"single-string":case"comment":n+=t}break;case'"':case"'":switch(f()){case"double-string":'"'===t&&"\\"!==p(-1)&&g();break;case"single-string":"'"===t&&"\\"!==p(-1)&&g();break;case"before-at-value":v("at-value"),m('"'===t?"double-string":"single-string");break;case"before-value":v("value"),m('"'===t?"double-string":"single-string");break;case"comment":break;default:"\\"!==p(-1)&&m('"'===t?"double-string":"single-string")}n+=t;break;case"/":switch(f()){case"comment":case"double-string":case"single-string":n+=t;break;case"before-value":case"selector":case"name":case"value":if(d("*")){var C=h("*/");C&&B(C+1)}else"before-value"==f()&&v("value"),n+=t;break;default:d("*")?(y("comment"),m("comment"),B()):n+=t}break;case"*":switch(f()){case"comment":d("/")?(c.text=n,B(),E(),g()):n+=t;break;case"before-selector":n+=t,y("selector"),m("selector");break;case"before-value":v("value"),n+=t;break;default:n+=t}break;case"@":switch(f()){case"comment":case"double-string":case"single-string":n+=t;break;case"before-value":v("value"),n+=t;break;default:for(var b,w,T=!1,_=0,I=u.length;!T&&_<I;++_)b=(w=u[_]).name||w,k=void 0,k=A+1,(S=b)===e.slice(k,k+S.length)&&(T=!0,y(b),m(w.state||"at-group"),B(b.length),w.prefix&&(c.prefix=w.prefix),w.type&&(c.type=w.type));T||(n+=t)}break;case"(":switch(f()){case"value":m("value-paren");break;case"before-value":v("value")}n+=t;break;case")":switch(f()){case"value-paren":g();break;case"before-value":v("value")}n+=t;break;default:switch(f()){case"before-selector":y("selector"),m("selector");break;case"before-name":y("property"),v("name");break;case"before-value":v("value");break;case"before-at-value":v("at-value")}n+=t}var S,k;return l}})),PS=r((function(e,t){var n,r,A,i;MS("parse");function o(e,t){var n;t||(t={});for(var r=["type","name","value"],i={},o=0;o<r.length;++o)e[n=r[o]]&&(i[n]=t[n]||e[n]);for(r=Object.keys(t),o=0;o<r.length;++o)i[n=r[o]]||(i[n]=t[n]);return A&&(i.position={start:e.start,end:e.end}),i}function a(){return i.shift()}function s(e){r+=1;var t={};switch(e.type){case"font-face":case"viewport":t.declarations=u();break;case"page":t.prefix=e.prefix,t.declarations=u();break;default:t.prefix=e.prefix,t.rules=l((function(){return r}))}return o(e,t)}function c(e){switch(e.type){case"property":return function(e){return o(e)}(e);case"selector":return function(e){return o(e,{type:"rule",selectors:e.text.split(",").map((function(e){return e.trim()})),declarations:u()})}(e);case"at-group-end":return void(r-=1);case"media":case"keyframes":return s(e);case"comment":if(n)return function(e){return o(e,{text:e.text})}(e);break;case"charset":case"import":case"namespace":return function(e){return o(e)}(e);case"font-face":case"supports":case"viewport":case"document":case"page":return s(e)}}function l(e){for(var t,n,r=[];(n=a())&&e&&e(n);)(t=c(n))&&r.push(t);return n&&"end"!==n.type&&i.unshift(n),r}function u(){return l((function(e){return"property"===e.type||"comment"===e.type}))}e.exports=function(e,t){var o;t||(t={}),n=!!t.comments,A=!!t.position,r=0,i=Array.isArray(e)?e.slice():HS(e);var s,l=[];for(;s=a();)(o=c(s))&&l.push(o);return{type:"stylesheet",stylesheet:{rules:l}}}})),KS=r((function(e,t){var n,r,A,i,o,a;MS("stringify");function s(e){if(!e)return r?"":Array(i).join(A||"");i+=e}function c(e){var t="",n=e.prefix||"";e.name&&(t=" "+e.name);var r="page"!==e.type;return"@"+n+e.type+t+a+h(e,r)+o}function l(e){return n?"/*"+(e.text||"")+"*/"+o:""}function u(e){var t;return e.selectors?t=e.selectors.join(","+o):(t="@"+e.type,t+=e.name?" "+e.name:""),s()+t+a+h(e)+o}function f(e,t){return e.reduce((function(e,n){var r="comment"===n.type?l(n):t(n);return r&&e.push(r),e}),[])}function h(e,t){var n=e.declarations,r=d;return e.rules&&(n=e.rules,r=u),(n=function(e,t){if(!e)return"";s(1);var n=f(e,t);if(s(-1),!n.length)return"";return n.join(o)}(n,r))&&(n=o+n+(t?"":o)),"{"+n+s()+"}"}function d(e){if("property"===e.type)return function(e){var t=e.name?e.name+":"+a:"";return s()+t+e.value+";"}(e)}function p(e){switch(e.type){case"rule":return u(e);case"media":case"keyframes":return c(e);case"comment":return l(e);case"import":case"charset":case"namespace":return function(e){return"@"+e.type+" "+e.value+";"+o}(e);case"font-face":case"supports":case"viewport":case"document":case"page":return c(e)}}e.exports=function(e,t){t||(t={}),A=t.indentation||"",r=!!t.compress,n=!!t.comments,i=1,r?o=a="":(o="\n",a=" ");return f(e.stylesheet.rules,p).join("\n").trim()}})),GS={lex:HS,parse:PS,stringify:KS},$S=/([-.*+?^${}()|[\]\/\\])/g,VS=/\\/g,WS=function(e){return(e+"").replace($S,"\\$1")},jS=function(e){return(e+"").replace(VS,"")},YS=RegExp("^(?:\\s*(,)\\s*|\\s*(<combinator>+)\\s*|(\\s+)|(<unicode>+|\\*)|\\#(<unicode>+)|\\.(<unicode>+)|\\[\\s*(<unicode1>+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:([\"']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(<unicode>+)(?:\\((?:(?:([\"'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)".replace(/<combinator>/,"["+WS(">+~`!@$%^&={}\\;</")+"]").replace(/<unicode>/g,"(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])").replace(/<unicode1>/g,"(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])")),XS=function(e){this.combinator=e||" ",this.tag="*"};XS.prototype.toString=function(){if(!this.raw){var e,t,n="";if(n+=this.tag||"*",this.id&&(n+="#"+this.id),this.classes&&(n+="."+this.classList.join(".")),this.attributes)for(e=0;t=this.attributes[e++];)n+="["+t.name+(t.operator?t.operator+'"'+t.value+'"':"")+"]";if(this.pseudos)for(e=0;t=this.pseudos[e++];)n+=":"+t.name,t.value&&(n+="("+t.value+")");this.raw=n}return this.raw};var zS=function(){this.length=0};zS.prototype.toString=function(){if(!this.raw){for(var e,t="",n=0;e=this[n++];)1!==n&&(t+=" ")," "!==e.combinator&&(t+=e.combinator+" "),t+=e;this.raw=t}return this.raw};var qS=function(e,t,n,r,A,i,o,a,s,c,l,u,f,h,d,p){var g,m;if((t||!this.length)&&(g=this[this.length++]=new zS,t))return"";if(g||(g=this[this.length-1]),(n||r||!g.length)&&(m=g[g.length++]=new XS(n)),m||(m=g[g.length-1]),A)m.tag=jS(A);else if(i)m.id=jS(i);else if(o){var v=jS(o),B=m.classes||(m.classes={});if(!B[v]){B[v]=WS(o);var E=m.classList||(m.classList=[]);E.push(v),E.sort()}}else f?(p=p||d,(m.pseudos||(m.pseudos=[])).push({type:1==u.length?"class":"element",name:jS(f),escapedName:WS(f),value:p?jS(p):null,escapedValue:p?WS(p):null})):a&&(l=l?WS(l):null,(m.attributes||(m.attributes=[])).push({operator:s,name:jS(a),escapedName:WS(a),value:l?jS(l):null,escapedValue:l?WS(l):null}));return""},JS=function(e){this.length=0;for(var t,n=this,r=e;e;){if((t=e.replace(YS,(function(){return qS.apply(n,arguments)})))===e)throw new Error(r+" is an invalid expression");e=t}};JS.prototype.toString=function(){if(!this.raw){for(var e,t=[],n=0;e=this[n++];)t.push(e);this.raw=t.join(", ")}return this.raw};var ZS={},ek=function(e){return null==e?null:(e=(""+e).replace(/^\s+|\s+$/g,""),ZS[e]||(ZS[e]=new JS(e)))},tk=r((function(e,t){function n(e,t){this.text=e,this.spec=void 0,this.styleAttribute=t||!1}function r(e){try{return ek(e)[0]}catch(e){return[]}}e.exports=n,n.prototype.parsed=function(){return this.tokens||(this.tokens=r(this.text)),this.tokens},n.prototype.specificity=function(){var e=this.styleAttribute;return this.spec||(this.spec=function t(n,A){for(var i=A||r(n),o=[e?1:0,0,0,0],a=[],s=0;s<i.length;s++){var c=i[s],l=c.pseudos;if(c.id&&o[1]++,c.attributes&&(o[2]+=c.attributes.length),c.classList&&(o[2]+=c.classList.length),c.tag&&"*"!==c.tag&&o[3]++,l){o[3]+=l.length;for(var u=0;u<l.length;u++)"not"===l[u].name&&(a.push(l[u].value),o[3]--)}}for(var f=a.length;f--;)for(var h=t(a[f]),d=4;d--;)o[d]+=h[d];return o}(this.text,this.parsed())),this.spec}})),nk=r((function(e,t){function n(e,t,n,r,A){this.prop=e,this.value=t,this.selector=n,this.priority=r||0,this.additionalPriority=A||[]}e.exports=n,n.prototype.compareFunc=function(e){var t=[];t.push.apply(t,this.selector.specificity()),t.push.apply(t,this.additionalPriority),t[0]+=this.priority;var n=[];return n.push.apply(n,e.selector.specificity()),n.push.apply(n,e.additionalPriority),n[0]+=e.priority,rk.compareFunc(t,n)},n.prototype.compare=function(e){return 1===this.compareFunc(e)?this:e},n.prototype.toString=function(){return this.prop+": "+this.value.replace(/['"]+/g,"")+";"}})),rk=r((function(e,t){t.Selector=tk,t.Property=nk,t.extract=function(e){for(var t=0,n=[],r="",A=0,i=e.length;A<i;A++){var o=e.charAt(A);t?("]"!==o&&")"!==o||t--,r+=o):","===o?(n.push(r),r=""):("["!==o&&"("!==o||t++,(r.length||","!==o&&"\n"!==o&&" "!==o)&&(r+=o))}return r.length&&n.push(r),n},t.parseCSS=function(e){for(var t=GS.parse(e,{position:!0,comments:!0}),n=void 0!==t.stylesheet&&t.stylesheet.rules?t.stylesheet.rules:[],r=[],A=0,i=n.length;A<i;A++)if("rule"==n[A].type)for(var o=n[A],a=o.selectors,s=0,c=a.length;s<c;s++)r.push([a[s],o.declarations]);return r},t.getPreservedText=function(e,t,n){for(var r=GS.parse(e,{position:!0,comments:!0}),A=void 0!==r.stylesheet&&r.stylesheet.rules?r.stylesheet.rules:[],i=[],o=A.length-1;o>=0;o--)(t.fontFaces&&"font-face"===A[o].type||t.mediaQueries&&"media"===A[o].type||t.keyFrames&&"keyframes"===A[o].type||t.pseudos&&A[o].selectors&&this.matchesPseudo(A[o].selectors[0],n))&&i.unshift(GS.stringify({stylesheet:{rules:[A[o]]}},{comments:!1,indentation:" "})),A[o].position.start;return 0!==i.length&&"\n"+i.join("\n")+"\n"},t.normalizeLineEndings=function(e){return e.replace(/\r\n/g,"\n").replace(/\n/g,"\r\n")},t.matchesPseudo=function(e,t){return t.find((function(t){return e.indexOf(t)>-1}))},t.compareFunc=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e[r]!==t[r])return e[r]>t[r]?1:-1;return e.length-t.length},t.compare=function(e,n){return 1==t.compareFunc(e,n)?e:n},t.getDefaultOptions=function(e){var t=Object.assign({extraCss:"",insertPreservedExtraCss:!0,applyStyleTags:!0,removeStyleTags:!0,preserveMediaQueries:!0,preserveFontFaces:!0,preserveKeyFrames:!0,preservePseudos:!0,applyWidthAttributes:!0,applyHeightAttributes:!0,applyAttributesTableElements:!0,url:""},e);return t.webResources=t.webResources||{},t}})),Ak=(rk.Selector,rk.Property,rk.extract,rk.parseCSS,rk.getPreservedText,rk.normalizeLineEndings,rk.matchesPseudo,rk.compareFunc,rk.compare,rk.getDefaultOptions,r((function(e){e.exports=function(t,n,r,A){var i,o=(i=[],{encodeEntities:function(t){var n=e.exports.codeBlocks;return Object.keys(n).forEach((function(e){var r=new RegExp(n[e].start+"([\\S\\s]*?)"+n[e].end,"g");t=t.replace(r,(function(e,t){return i.push(e),"JUICE_CODE_BLOCK_"+(i.length-1)+"_"}))})),t},decodeEntities:function(e){for(var t=0;t<i.length;t++){var n=new RegExp("JUICE_CODE_BLOCK_"+t+'_(="")?',"gi");e=e.replace(n,(function(){return i[t]}))}return e}}),a=function(e,t,n){return t=Object.assign({decodeEntities:!1,_useHtmlParser2:!0},t),e=n(e),RS.load(e,t)}(t,n,o.encodeEntities),s=[a];s.push.apply(s,A);var c=r.apply(void 0,s)||a;return n&&n.xmlMode?o.decodeEntities(c.xml()):o.decodeEntities(c.html())},e.exports.codeBlocks={EJS:{start:"<%",end:"%>"},HBS:{start:"{{",end:"}}"}}}))),ik=(Ak.codeBlocks,function(e){if(isNaN(e))return NaN;for(var t=String(+e).split(""),n=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"],r="",A=3;A--;)r=(n[+t.pop()+10*A]||"")+r;return Array(+t.join("")+1).join("M")+r}),ok=function(e){for(var t,n="";e>0;)t=(e-1)%26,n=String.fromCharCode(65+t)+n,e=(e-t)/26|0;return n||void 0},ak=function(e){function t(t,o,a){a=a||{};var s=rk.parseCSS(o),c=[],l="style",u={};if(a.styleAttributeName&&(l=a.styleAttributeName),s.forEach((function(r){var A=r[0],o=r[1],s=new rk.Selector(A),f=s.parsed();if(!f)return;for(var h,d=function(e){if(0===e.length)return;var t=e[e.length-1].pseudos;if(!t)return;for(var n=0;n<t.length;n++)if(i(t[n]))return t[n].name}(f),p=0;p<f.length;++p){var g=f[p];if(g.pseudos)for(var m=0;m<g.pseudos.length;++m){var v=g.pseudos[m];if(e.ignoredPseudos.indexOf(v.name)>=0)return}}if(d){var B=f[f.length-1],E=B.pseudos;B.pseudos=function(e){return e.filter((function(e){return!i(e)}))}(B.pseudos),A=f.toString(),B.pseudos=E}try{h=t(A)}catch(e){return}h.each((function(){var r=this;if(!(r.name&&e.nonVisualElements.indexOf(r.name.toUpperCase())>=0)){if(d){var A="pseudo"+d,i=r[A];i||((i=r[A]=t("<span />").get(0)).pseudoElementType=d,i.pseudoElementParent=r,i.counterProps=r.counterProps,r[A]=i),r=i}if(!r.styleProps){if(r.styleProps={},t(r).attr(l)){var f="* { "+t(r).attr(l)+" } ";g(rk.parseCSS(f)[0][1],new rk.Selector("<style>",!0))}c.push(r)}r.counterProps||(r.counterProps=r.parent&&r.parent.counterProps?Object.create(r.parent.counterProps):{}),g(o,s)}function h(e,t){for(var n=t.split(/\s+/),r=0;r<n.length;r++){var A=n[r],i=parseInt(n[r+1],10);isNaN(i)?e.counterProps[A]=u[A]=0:e.counterProps[A]=u[n[r++]]=i}}function p(e,t){for(var n=t.split(/\s+/),r=0;r<n.length;r++){var A=n[r];if(void 0!==e.counterProps[A]){var i=parseInt(n[r+1],10);isNaN(i)?e.counterProps[A]=u[A]+=1:e.counterProps[A]=u[n[r++]]+=i}}}function g(t,A){for(var i=0,o=t.length;i<o;i++)if("property"==t[i].type){var s=t[i].name,c=t[i].value;"counter-reset"===s&&h(r,c),"counter-increment"===s&&p(r,c);var l=null!==c.match(/!important$/);l&&!a.preserveImportant&&(c=n(c));var u=[t[i].position.start.line,t[i].position.start.col],f=new rk.Property(s,c,A,l?2:0,u),d=r.styleProps[s];e.excludedProperties.indexOf(s)<0&&(d&&d.compare(f)===f||!d)&&(d&&d.selector!==A?delete r.styleProps[s]:d&&(f.nextProp=d),r.styleProps[s]=f)}}}))})),c.forEach((function(e){Object.keys(e.styleProps).length;var n=[];Object.keys(e.styleProps).forEach((function(t){for(var r=e.styleProps[t];void 0!==r;)n.push(r),r=r.nextProp})),n.sort((function(e,t){return e.compareFunc(t)}));var r=n.filter((function(e){return"content"!==e.prop})).map((function(e){return e.prop+": "+e.value.replace(/["]/g,"'")+";"})).join(" ");r&&t(e).attr(l,r)})),a.inlinePseudoElements&&c.forEach((function(e){if(e.pseudoElementType&&e.styleProps.content){var n=function(e){var t=e.styleProps.content.value;if("none"===t||"normal"===t)return"";var n=t.match(/^\s*url\s*\(\s*(.*?)\s*\)\s*$/i);if(n){return{img:n[1].replace(/^['"]|['"]$/g,"")}}for(var i=[],o=t.split(/['"]/),a=0;a<o.length;a++)if(""!==o[a]){var s=o[a].match(/var\s*\(\s*(.*?)\s*(,\s*(.*?)\s*)?\s*\)/i);if(s){var c=r(e,s[1])||s[2];i.push(c.replace(/^['"]|['"]$/g,""))}else{var l=o[a].match(/counter\s*\(\s*(.*?)\s*(,\s*(.*?)\s*)?\s*\)/i);if(l&&l[1]in e.counterProps){var u=e.counterProps[l[1]];i.push(A(u,l[3]))}else{var f=o[a].match(/attr\s*\(\s*(.*?)\s*\)/i);if(f){var h=f[1];i.push(e.pseudoElementParent?e.pseudoElementParent.attribs[h]:e.attribs[h])}else i.push(o[a])}}}return t=(t=i.join("")).replace(/\\/g,"")}(e);n.img?(e.name="img",t(e).attr("src",n.img)):t(e).text(n);var i=e.pseudoElementParent;"before"===e.pseudoElementType?t(i).prepend(e):t(i).append(e)}})),a.applyWidthAttributes&&c.forEach((function(e){d(e,"width")})),a.applyHeightAttributes&&c.forEach((function(e){d(e,"height")})),a.applyAttributesTableElements&&c.forEach((function(r){if(!r.name)return;var A=r.name.toUpperCase(),i=Object.keys(e.styleToAttribute);if(e.tableElements.indexOf(A)>-1)for(var o in r.styleProps)if(i.indexOf(r.styleProps[o].prop)>-1){var s=e.styleToAttribute[r.styleProps[o].prop],c=r.styleProps[o].value;if(a.preserveImportant&&(c=n(c)),"background"===s&&(c=p(c)),/(linear|radial)-gradient\(/i.test(c))continue;t(r).attr(s,c)}})),a.insertPreservedExtraCss&&a.extraCss){var f=rk.getPreservedText(a.extraCss,{mediaQueries:a.preserveMediaQueries,fontFaces:a.preserveFontFaces,keyFrames:a.preserveKeyFrames});if(f){var h=null;!0!==a.insertPreservedExtraCss?h=t(a.insertPreservedExtraCss):((h=t("head")).length||(h=t("body")),h.length||(h=t.root())),h.first().append("<style>"+f+"</style>")}}function d(r,A){if(r.name){var i=r.name.toUpperCase();if(e[A+"Elements"].indexOf(i)>-1)for(var o in r.styleProps)if(r.styleProps[o].prop===A){var s=r.styleProps[o].value;if(a.preserveImportant&&(s=n(s)),s.match(/px/)){var c=s.replace("px","");return void t(r).attr(A,c)}if(e.tableElements.indexOf(i)>-1&&s.match(/\%/))return void t(r).attr(A,s)}}}function p(e){return 0!==e.indexOf("url(")?e:e.replace(/^url\((["'])?([^"']+)\1\)$/,"$2")}}function n(e){return e.replace(/\s*!important$/,"")}function r(e,t){for(;e;){if(t in e.styleProps)return e.styleProps[t].value;e=e.parent||e.pseudoElementParent}}function A(e,t){switch(t){case"lower-roman":return ik(e).toLowerCase();case"upper-roman":return ik(e);case"lower-latin":case"lower-alpha":return ok(e).toLowerCase();case"upper-latin":case"upper-alpha":return ok(e);default:return e.toString()}}function i(e){return"before"===e.name||"after"===e.name}return e.ignoredPseudos=["hover","active","focus","visited","link"],e.widthElements=["TABLE","TD","TH","IMG"],e.heightElements=["TABLE","TD","TH","IMG"],e.tableElements=["TABLE","TH","TR","TD","CAPTION","COLGROUP","COL","THEAD","TBODY","TFOOT"],e.nonVisualElements=["HEAD","TITLE","BASE","LINK","STYLE","META","SCRIPT","NOSCRIPT"],e.styleToAttribute={"background-color":"bgcolor","background-image":"background","text-align":"align","vertical-align":"valign"},e.excludedProperties=[],e.juiceDocument=function(n,r){r=rk.getDefaultOptions(r);var A=function(t,n){return function(t,n){var r,A,i,o=[];return t("style").each((function(){var a=!!(i=this).childNodes;if(1===(r=a?i.childNodes:i.children).length){if(A=r[0].data,n.applyStyleTags&&void 0===t(i).attr("data-embed")&&o.push(A),n.removeStyleTags&&void 0===t(i).attr("data-embed")){var s=a?i.childNodes[0].nodeValue:i.children[0].data,c=rk.getPreservedText(s,{mediaQueries:n.preserveMediaQueries,fontFaces:n.preserveFontFaces,keyFrames:n.preserveKeyFrames,pseudos:n.preservePseudos},e.ignoredPseudos);c?a?i.childNodes[0].nodeValue=c:i.children[0].data=c:t(i).remove()}t(i).removeAttr("data-embed")}else n.removeStyleTags&&t(i).remove()})),o}(t,n).join("\n")}(n,r);return A+="\n"+r.extraCss,t(n,A,r),n},e.inlineDocument=t,e}((function(e,t){return Ak(e,{xmlMode:t&&t.xmlMode},sk,[t])})),sk=function(e,t){return ak.juiceDocument(e,t)};ak.inlineContent=function(e,t,n){return Ak(e,{xmlMode:n&&n.xmlMode},ak.inlineDocument,[t,n])};var ck=ak;function lk(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var uk={bold:ym,italic:bm,"|":Tm,strikethrough:Im,sub:km,sup:xm,header:Om,insert:Vm,list:jm,graph:Jm,size:ev,checklist:nv,h1:Av,h2:ov,h3:sv,color:Um,quote:pv,quickTable:mv,togglePreview:Bv,code:Iv,codeTheme:kv,export:xv,settings:Uv,fullScreen:yv,mobilePreview:dB,copy:function(e){qi(r,vm);var t,n=lk(r);function r(e,t,A){var i;return Pi(this,r),(i=n.call(this,e)).previewer=A.options.previewer,i.isLoading=!1,i.updateMarkdown=!1,i.setName("copy","copy"),i}return Gi(r,[{key:"adaptWechat",value:(t=sy(gy.mark((function e(t){var n,r,A,i,o;return gy.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=/(<figure data-lines=.+?<)div(.+?<\/)div(>.*?<\/figure>)/g,r=t.replace(n,(function(e,t,n,r){var A,i;return uo(A=uo(i="".concat(t,"p")).call(i,n,"p")).call(A,r)})),A=/(<img.+?src=")(.+?)(".*?>)/g,i=[],r.replace(A,(function(e,t,n){var r,A;i.push((r=n,new my((function(e){var t=document.createElement("CANVAS"),n=t.getContext("2d"),i=new Image;i.crossOrigin="Anonymous",i.onload=function(){t.height=i.height,t.width=i.width,n.drawImage(i,0,0);var r=t.toDataURL(A||"image/png");e(r),t=null},i.src=r}))))})),e.next=7,my.all(i);case 7:return o=e.sent,e.abrupt("return",r.replace(A,(function(e,t,n,r){return t+o.shift()+r})));case 9:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"getStyleFromSheets",value:function(e){var t,n=Bi(t=Qr(document.styleSheets)).call(t,(function(t){var n;return Rc(n=t.cssRules[0].cssText).call(n,e)>-1}));return"<style>".concat(Th(n).call(n,(function(e,t){var n;return e+Th(n=Qr(t.cssRules)).call(n,(function(e,t){return e+t.cssText}),"")}),""),"</style>")}},{key:"computeStyle",value:function(){return{mathStyle:this.getStyleFromSheets("mjx-container"),echartStyle:"<style>figure>p{overflow:hidden;position:relative;width:500px;height:300px;background:transparent;}</style>",cherryStyle:this.getStyleFromSheets("cherry")}}},{key:"toggleLoading",value:function(){this.isLoading?document.querySelector(".icon-loading").outerHTML='<i class="ch-icon ch-icon-copy" title="复制内容"></i>':document.querySelector(".ch-icon-copy").outerHTML='<div class="icon-loading loading"></div>';this.isLoading=!this.isLoading}},{key:"onClick",value:function(e){var t=this;this.toggleLoading();var n=document.querySelector(".cherry").getAttribute("data-inline-code-theme"),r=document.querySelector(".cherry").getAttribute("data-code-block-theme"),A=this.computeStyle(),i=A.mathStyle,o=A.echartStyle,a=A.cherryStyle,s=this.previewer.isPreviewerHidden()?this.previewer.options.previewerCache.html:this.previewer.getValue();this.adaptWechat(s).then((function(e){var A,s,c;qg(ck(uo(A=uo(s=uo(c='<div data-inline-code-theme="'.concat(n,'" data-code-block-theme="')).call(c,r,'">\n <div class="cherry-markdown">')).call(s,e,"</div>\n </div>")).call(A,i+o+a))),t.toggleLoading()}))}}]),r}(),undo:bv,redo:Tv,underline:Dv,switchModel:Qv,image:Hv,audio:Kv,video:$v,br:Wv,hr:Yv,formula:zv,link:Jv,table:eB,toc:nB,lineTable:AB,barTable:oB,pdf:sB,word:lB,ruby:fB},fk=function(){function e(t){return Pi(this,e),this.init(t)}return Gi(e,[{key:"init",value:function(e){var t=e.options,n=t.buttonConfig,r=t.editor,A=t.customMenu,i=t.engine;return Th(n).call(n,(function(t,n){if("string"==typeof n)uk[n]?t.push(new uk[n](r,i,e)):A[n]&&t.push(new A[n](r,i,e));else if("object"===no(n)){var o=fi(n);if(1!==o.length)return t;var a=Qc(o,1)[0];uk[a]?t.push(new uk[a](r,n[a],i,e)):A[a]&&t.push(new A[a](r,n[a],i,e))}return t}),[])}}]),e}();function hk(e,t){var n=fi(e);if(di){var r=di(e);t&&(r=Bi(r).call(r,(function(t){return bi(e,t).enumerable}))),n.push.apply(n,r)}return n}function dk(e){for(var t=1;t<arguments.length;t++){var n,r,A=null!=arguments[t]?arguments[t]:{};t%2?xi(n=hk(Object(A),!0)).call(n,(function(t){so(e,t,A[t])})):Ni?Oi(e,Ni(A)):xi(r=hk(Object(A))).call(r,(function(t){Mi(e,t,bi(A,t))}))}return e}function pk(e){var t="";return e.ctrlKey&&(t+="Ctrl-"),e.altKey&&(t+="Alt-"),e.metaKey&&fm&&(t+="Command-"),e.key&&(t+=e.key.toLowerCase()),t}var gk=function(){function e(t){Pi(this,e),this.instanceId="cherry-toolbar-".concat((new Date).getTime()),this.options={dom:document.createElement("div"),buttonConfig:["bold"],editor:{},extensions:[],keysmap:{},engine:{},customMenu:[]},pc(this.options,t),this.initExtension(),this.init()}return Gi(e,[{key:"init",value:function(){this.collectShortcutKey()}},{key:"previewOnly",value:function(){this.options.dom.classList.add("preview-only"),$g.emit(this.instanceId,$g.Events.toolbarHide)}},{key:"showToolbar",value:function(){this.options.dom.classList.remove("preview-only"),$g.emit(this.instanceId,$g.Events.toolbarShow)}},{key:"initExtension",value:function(){var e;this.options.extensions=new fk(this);var t=document.createDocumentFragment();xi(e=this.options.extensions).call(e,(function(e){t.appendChild(e.createBtn())})),this.options.dom.appendChild(t)}},{key:"collectShortcutKey",value:function(){var e,t=this;xi(e=this.options.extensions).call(e,(function(e){e.shortcutKey&&(t.options.keysmap=dk(dk({},t.options.keysmap),e.shortcutKey({isMac:fm})))}))}},{key:"collectToolbarHandler",value:function(){var e;xi(e=this.options.extensions).call(e,(function(e){e.onClick}))}},{key:"matchShortcutKey",value:function(e){var t,n=this,r=pk(e);return $d(t=this.options.extensions).call(t,(function(e){return n.options.keysmap[r]}))}},{key:"fireShortcutKey",value:function(e,t){var n=pk(e);this.options.keysmap[n]&&this.options.keysmap[n](e,t)}}]),e}();function mk(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var vk=function(e){qi(n,gk);var t=mk(n);function n(){return Pi(this,n),t.apply(this,arguments)}return Gi(n,[{key:"init",value:function(){this.addSelectionChangeListener(),this.bubbleDom=this.options.dom,this.editorDom=this.options.editor.getEditorDom(),this.initBubbleDom(),this.editorDom.querySelector(".CodeMirror").appendChild(this.bubbleDom)}},{key:"getScrollTop",value:function(){return this.options.editor.editor.getScrollInfo().top}},{key:"updatePositionWhenScroll",value:function(){"block"===this.bubbleDom.style.display&&(this.bubbleDom.style.marginTop="".concat(sd(this.bubbleDom.dataset.scrollTop)-this.getScrollTop(),"px"),vm.cleanSubMenu())}},{key:"showBubble",value:function(e,t){"block"!==this.bubbleDom.style.display&&(this.bubbleDom.style.display="block",this.bubbleDom.style.marginTop="0",this.bubbleDom.dataset.scrollTop=String(this.getScrollTop())),this.bubbleDom.style.visibility="visible";var n=this.editorDom.querySelector(".CodeMirror-lines").firstChild.getBoundingClientRect(),r=this.editorDom.getBoundingClientRect(),A=n.left-r.left,i=n.width+A,o=e;o<2*this.bubbleDom.offsetHeight?(o+=this.bubbleDom.offsetHeight-this.bubbleTop.getBoundingClientRect().height,this.bubbleTop.style.display="block",this.bubbleBottom.style.display="none"):(o-=this.bubbleDom.offsetHeight+2*this.bubbleBottom.getBoundingClientRect().height,this.bubbleTop.style.display="none",this.bubbleBottom.style.display="block"),this.bubbleDom.style.top="".concat(o,"px");var a=t-this.bubbleDom.offsetWidth/2;a<A?(a=A,this.$setBubbleCursorPosition("".concat(t-A,"px"))):a+this.bubbleDom.offsetWidth>i?(a=i-this.bubbleDom.offsetWidth,this.$setBubbleCursorPosition("".concat(t-a,"px"))):this.$setBubbleCursorPosition("50%"),this.bubbleDom.style.left="".concat(a,"px")}},{key:"hideBubble",value:function(){"none"!==this.bubbleDom.style.display&&(this.bubbleDom.style.display="none")}},{key:"$setBubbleCursorPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"50%";if("50%"===e)this.bubbleTop.style.left="50%",this.bubbleBottom.style.left="50%";else{var t=sd(e)<10?"10px":e;this.bubbleTop.style.left=t,this.bubbleBottom.style.left=t}}},{key:"initBubbleDom",value:function(){var e=document.createElement("div");e.className="cherry-bubble-top";var t=document.createElement("div");t.className="cherry-bubble-bottom",this.bubbleTop=e,this.bubbleBottom=t,this.bubbleDom.appendChild(e),this.bubbleDom.appendChild(t)}},{key:"getBubbleDom",value:function(){return this.bubbleDom}},{key:"addSelectionChangeListener",value:function(){var e=this;this.options.editor.addListener("change",(function(t){e.hideBubble(),vm.cleanSubMenu()})),this.options.editor.addListener("refresh",(function(t){e.hideBubble(),vm.cleanSubMenu()})),this.options.editor.addListener("scroll",(function(t){e.updatePositionWhenScroll()})),this.options.editor.addListener("beforeSelectionChange",(function(t,n){if("*mouse"!==n.origin&&(null!==n.origin||void 0===n.origin))return!0;if(!n.ranges[0])return!0;var r=1e6*n.ranges[0].anchor.line+n.ranges[0].anchor.ch,A=1e6*n.ranges[0].head.line+n.ranges[0].head.ch,i="asc";r>A&&(i="desc"),vm.cleanSubMenu(),To((function(){if(t.getSelections().join("").length<=0)e.hideBubble();else{var n=t.getWrapperElement().getElementsByClassName("CodeMirror-selected"),r=e.editorDom.getBoundingClientRect(),A=0,o=0;if("object"!==no(n)||n.length<=0)e.hideBubble();else{for(var a=0;a<n.length;a++){var s=n[a].getBoundingClientRect(),c=s.top-r.top;"asc"===i?c>=o&&(o=c,A=s.left-r.left+s.width/2):(c<=o||o<=0)&&(o=c,A=s.left-r.left+s.width/2)}e.showBubble(o,A)}}}),10)}))}}]),n}();function Bk(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var Ek=function(e){qi(n,gk);var t=Bk(n);function n(){return Pi(this,n),t.apply(this,arguments)}return Gi(n,[{key:"init",value:function(){this.editorDom=this.options.editor.getEditorDom(),this.editorDom.querySelector(".CodeMirror-scroll").appendChild(this.options.dom),this.initAction()}},{key:"initAction",value:function(){var e=this;this.options.editor.addListener("cursorActivity",(function(t,n){e.cursorActivity(n,t)})),this.options.editor.addListener("update",(function(t,n){e.cursorActivity(n,t)})),this.options.editor.addListener("refresh",(function(t,n){To((function(){e.cursorActivity(n,t)}),0)}))}},{key:"update",value:function(e,t){var n=t.getCursor();if(this.isHidden(n.line,t))return this.options.dom.style.display="none",!1;this.options.dom.style.display="inline-block"}},{key:"cursorActivity",value:function(e,t){var n=t.getCursor(),r=document.querySelector(".cherry-editor .CodeMirror-lines");if(!r)return!1;var A=getComputedStyle(r),i=sd(A.paddingLeft),o=sd(A.paddingTop);if(this.isHidden(n.line,t))return this.options.dom.style.display="none",!1;this.options.dom.style.display="inline-block",this.options.dom.style.left="".concat(i,"px"),this.options.dom.style.top="".concat(this.getLineHeight(n.line,t)+o,"px")}},{key:"isHidden",value:function(e,t){return t.getSelections().length>1||(t.getSelection().length>0||!!t.getLine(e))}},{key:"getLineHeight",value:function(e,t){var n=0;return t.getDoc().eachLine(0,e,(function(e){n+=e.height})),n}}]),n}();function yk(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}var Ck=function(e){qi(n,gk);var t=yk(n);function n(e){var r;return Pi(this,n),(r=t.call(this)).options={dom:document.createElement("div"),buttonConfig:["mobilePreview","copy"],editor:{},previewer:{},extensions:[],keysmap:{},engine:{},customMenu:[]},pc(r.options,e),r.initExtension(),r}return Gi(n)}();function bk(e,t){if(ci(t))return t}function wk(e,t,n,r){if(e===t)return e?[[0,e]]:[];if(null!=n){var A=function(e,t,n){var r="number"==typeof n?{index:n,length:0}:n.oldRange,A="number"==typeof n?null:n.newRange,i=e.length,o=t.length;if(0===r.length&&(null===A||0===A.length)){var a=r.index,s=e.slice(0,a),c=e.slice(a),l=A?A.index:null,u=a+o-i;if((null===l||l===u)&&!(u<0||u>o)){var f=t.slice(0,u);if((B=t.slice(u))===c){var h=Math.min(a,u),d=s.slice(0,h),p=f.slice(0,h);if(d===p){var g=s.slice(h),m=f.slice(h);return Lk(d,g,m,c)}}}if(null===l||l===a){var v=a,B=(f=t.slice(0,v),t.slice(v));if(f===s){var E=Math.min(i-v,o-v),y=c.slice(c.length-E),C=B.slice(B.length-E);if(y===C){g=c.slice(0,c.length-E),m=B.slice(0,B.length-E);return Lk(s,g,m,y)}}}}if(r.length>0&&A&&0===A.length){d=e.slice(0,r.index),y=e.slice(r.index+r.length),h=d.length,E=y.length;if(!(o<h+E)){p=t.slice(0,h),C=t.slice(o-E);if(d===p&&y===C){g=e.slice(h,i-E),m=t.slice(h,o-E);return Lk(d,g,m,y)}}}return null}(e,t,n);if(A)return A}var i=_k(e,t),o=e.substring(0,i);i=Ik(e=e.substring(i),t=t.substring(i));var a=e.substring(e.length-i),s=function(e,t){var n;if(!e)return[[1,t]];if(!t)return[[-1,e]];var r=e.length>t.length?e:t,A=e.length>t.length?t:e,i=r.indexOf(A);if(-1!==i)return n=[[1,r.substring(0,i)],[0,A],[1,r.substring(i+A.length)]],e.length>t.length&&(n[0][0]=n[2][0]=-1),n;if(1===A.length)return[[-1,e],[1,t]];var o=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function A(e,t,n){for(var r,A,i,o,a=e.substring(n,n+Math.floor(e.length/4)),s=-1,c="";-1!==(s=t.indexOf(a,s+1));){var l=_k(e.substring(n),t.substring(s)),u=Ik(e.substring(0,n),t.substring(0,s));c.length<u+l&&(c=t.substring(s-u,s)+t.substring(s,s+l),r=e.substring(0,n-u),A=e.substring(n+l),i=t.substring(0,s-u),o=t.substring(s+l))}return 2*c.length>=e.length?[r,A,i,o,c]:null}var i,o,a,s,c,l=A(n,r,Math.ceil(n.length/4)),u=A(n,r,Math.ceil(n.length/2));if(!l&&!u)return null;i=u?l&&l[4].length>u[4].length?l:u:l;e.length>t.length?(o=i[0],a=i[1],s=i[2],c=i[3]):(s=i[0],c=i[1],o=i[2],a=i[3]);var f=i[4];return[o,a,s,c,f]}(e,t);if(o){var a=o[0],s=o[1],c=o[2],l=o[3],u=o[4],f=wk(a,c),h=wk(s,l);return f.concat([[0,u]],h)}return function(e,t){for(var n=e.length,r=t.length,A=Math.ceil((n+r)/2),i=A,o=2*A,a=new Array(o),s=new Array(o),c=0;c<o;c++)a[c]=-1,s[c]=-1;a[i+1]=0,s[i+1]=0;for(var l=n-r,u=l%2!=0,f=0,h=0,d=0,p=0,g=0;g<A;g++){for(var m=-g+f;m<=g-h;m+=2){for(var v=i+m,B=(w=m===-g||m!==g&&a[v-1]<a[v+1]?a[v+1]:a[v-1]+1)-m;w<n&&B<r&&e.charAt(w)===t.charAt(B);)w++,B++;if(a[v]=w,w>n)h+=2;else if(B>r)f+=2;else if(u){if((C=i+l-m)>=0&&C<o&&-1!==s[C]){var E=n-s[C];if(w>=E)return Tk(e,t,w,B)}}}for(var y=-g+d;y<=g-p;y+=2){for(var C=i+y,b=(E=y===-g||y!==g&&s[C-1]<s[C+1]?s[C+1]:s[C-1]+1)-y;E<n&&b<r&&e.charAt(n-E-1)===t.charAt(r-b-1);)E++,b++;if(s[C]=E,E>n)p+=2;else if(b>r)d+=2;else if(!u){if((v=i+l-y)>=0&&v<o&&-1!==a[v]){var w=a[v];B=i+w-v;if(w>=(E=n-E))return Tk(e,t,w,B)}}}}return[[-1,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-i),t=t.substring(0,t.length-i));return o&&s.unshift([0,o]),a&&s.push([0,a]),function e(t,n){t.push([0,""]);var r,A=0,i=0,o=0,a="",s="";for(;A<t.length;)if(A<t.length-1&&!t[A][1])t.splice(A,1);else switch(t[A][0]){case 1:o++,s+=t[A][1],A++;break;case-1:i++,a+=t[A][1],A++;break;case 0:var c=A-o-i-1;if(n){if(c>=0&&xk(t[c][1])){var l=t[c][1].slice(-1);if(t[c][1]=t[c][1].slice(0,-1),a=l+a,s=l+s,!t[c][1]){t.splice(c,1),A--;var u=c-1;t[u]&&1===t[u][0]&&(o++,s=t[u][1]+s,u--),t[u]&&-1===t[u][0]&&(i++,a=t[u][1]+a,u--),c=u}}if(Fk(t[A][1])){l=t[A][1].charAt(0);t[A][1]=t[A][1].slice(1),a+=l,s+=l}}if(A<t.length-1&&!t[A][1]){t.splice(A,1);break}if(a.length>0||s.length>0){a.length>0&&s.length>0&&(0!==(r=_k(s,a))&&(c>=0?t[c][1]+=s.substring(0,r):(t.splice(0,0,[0,s.substring(0,r)]),A++),s=s.substring(r),a=a.substring(r)),0!==(r=Ik(s,a))&&(t[A][1]=s.substring(s.length-r)+t[A][1],s=s.substring(0,s.length-r),a=a.substring(0,a.length-r)));var f=o+i;0===a.length&&0===s.length?(t.splice(A-f,f),A-=f):0===a.length?(t.splice(A-f,f,[1,s]),A=A-f+1):0===s.length?(t.splice(A-f,f,[-1,a]),A=A-f+1):(t.splice(A-f,f,[-1,a],[1,s]),A=A-f+2)}0!==A&&0===t[A-1][0]?(t[A-1][1]+=t[A][1],t.splice(A,1)):A++,o=0,i=0,a="",s=""}""===t[t.length-1][1]&&t.pop();var h=!1;A=1;for(;A<t.length-1;)0===t[A-1][0]&&0===t[A+1][0]&&(t[A][1].substring(t[A][1].length-t[A-1][1].length)===t[A-1][1]?(t[A][1]=t[A-1][1]+t[A][1].substring(0,t[A][1].length-t[A-1][1].length),t[A+1][1]=t[A-1][1]+t[A+1][1],t.splice(A-1,1),h=!0):t[A][1].substring(0,t[A+1][1].length)==t[A+1][1]&&(t[A-1][1]+=t[A+1][1],t[A][1]=t[A][1].substring(t[A+1][1].length)+t[A+1][1],t.splice(A+1,1),h=!0)),A++;h&&e(t,n)}(s,r),s}function Tk(e,t,n,r){var A=e.substring(0,n),i=t.substring(0,r),o=e.substring(n),a=t.substring(r),s=wk(A,i),c=wk(o,a);return s.concat(c)}function _k(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),A=r,i=0;n<A;)e.substring(i,A)==t.substring(i,A)?i=n=A:r=A,A=Math.floor((r-n)/2+n);return Sk(e.charCodeAt(A-1))&&A--,A}function Ik(e,t){if(!e||!t||e.slice(-1)!==t.slice(-1))return 0;for(var n=0,r=Math.min(e.length,t.length),A=r,i=0;n<A;)e.substring(e.length-A,e.length-i)==t.substring(t.length-A,t.length-i)?i=n=A:r=A,A=Math.floor((r-n)/2+n);return kk(e.charCodeAt(e.length-A))&&A--,A}function Sk(e){return e>=55296&&e<=56319}function kk(e){return e>=56320&&e<=57343}function Fk(e){return kk(e.charCodeAt(0))}function xk(e){return Sk(e.charCodeAt(e.length-1))}function Lk(e,t,n,r){return xk(e)||Fk(r)?null:function(e){for(var t=[],n=0;n<e.length;n++)e[n][1].length>0&&t.push(e[n]);return t}([[0,e],[-1,t],[1,n],[0,r]])}function Uk(e,t,n){return wk(e,t,n,!0)}Uk.INSERT=1,Uk.DELETE=-1,Uk.EQUAL=0;var Nk=Uk;function Dk(e,t,n){for(var r=Nk(t,n),A=e,i=e,o=0;o<r.length;o++){var a=r[o];if(i<=0)return A;var s=a[0],c=a[1].length;switch(s){case Nk.EQUAL:if(i<=c)return A;i-=c;break;case Nk.DELETE:if(i<=c)return A-c+i;i-=c,A-=c;break;case Nk.INSERT:A+=c}}return A}var Ok=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},Qk=Xa(Object.keys,Object),Rk=Object.prototype.hasOwnProperty;var Mk=function(e){if(!Ja(e))return Qk(e);var t=[];for(var n in Object(e))Rk.call(e,n)&&"constructor"!=n&&t.push(n);return t};var Hk=function(e){return ss(e)?Ls(e):Mk(e)};var Pk=function(e,t){return e&&Is(t,Hk(t),e)};var Kk=function(e,t){return e&&Is(t,Os(t),e)};var Gk=function(e,t){for(var n=-1,r=null==e?0:e.length,A=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[A++]=o)}return i};var $k=function(){return[]},Vk=Object.prototype.propertyIsEnumerable,Wk=Object.getOwnPropertySymbols,jk=Wk?function(e){return null==e?[]:(e=Object(e),Gk(Wk(e),(function(t){return Vk.call(e,t)})))}:$k;var Yk=function(e,t){return Is(e,jk(e),t)};var Xk=function(e,t){for(var n=-1,r=t.length,A=e.length;++n<r;)e[A+n]=t[n];return e},zk=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Xk(t,jk(e)),e=za(e);return t}:$k;var qk=function(e,t){return Is(e,zk(e),t)};var Jk=function(e,t,n){var r=t(e);return os(e)?r:Xk(r,n(e))};var Zk=function(e){return Jk(e,Hk,jk)};var eF=function(e){return Jk(e,Os,zk)},tF=da(Ko,"DataView"),nF=da(Ko,"Promise"),rF=da(Ko,"Set"),AF=da(Ko,"WeakMap"),iF=ia(tF),oF=ia(pa),aF=ia(nF),sF=ia(rF),cF=ia(AF),lF=Jo;(tF&&"[object DataView]"!=lF(new tF(new ArrayBuffer(1)))||pa&&"[object Map]"!=lF(new pa)||nF&&"[object Promise]"!=lF(nF.resolve())||rF&&"[object Set]"!=lF(new rF)||AF&&"[object WeakMap]"!=lF(new AF))&&(lF=function(e){var t=Jo(e),n="[object Object]"==t?e.constructor:void 0,r=n?ia(n):"";if(r)switch(r){case iF:return"[object DataView]";case oF:return"[object Map]";case aF:return"[object Promise]";case sF:return"[object Set]";case cF:return"[object WeakMap]"}return t});var uF=lF,fF=Object.prototype.hasOwnProperty;var hF=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&fF.call(e,"index")&&(n.index=e.index,n.input=e.input),n};var dF=function(e,t){var n=t?$a(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},pF=/\w*$/;var gF=function(e){var t=new e.constructor(e.source,pF.exec(e));return t.lastIndex=e.lastIndex,t},mF=Go?Go.prototype:void 0,vF=mF?mF.valueOf:void 0;var BF=function(e){return vF?Object(vF.call(e)):{}};var EF=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return $a(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return dF(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Va(e,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return gF(e);case"[object Set]":return new r;case"[object Symbol]":return BF(e)}};var yF=function(e){return es(e)&&"[object Map]"==uF(e)},CF=ys&&ys.isMap,bF=CF?Es(CF):yF;var wF=function(e){return es(e)&&"[object Set]"==uF(e)},TF=ys&&ys.isSet,_F=TF?Es(TF):wF,IF={};IF["[object Arguments]"]=IF["[object Array]"]=IF["[object ArrayBuffer]"]=IF["[object DataView]"]=IF["[object Boolean]"]=IF["[object Date]"]=IF["[object Float32Array]"]=IF["[object Float64Array]"]=IF["[object Int8Array]"]=IF["[object Int16Array]"]=IF["[object Int32Array]"]=IF["[object Map]"]=IF["[object Number]"]=IF["[object Object]"]=IF["[object RegExp]"]=IF["[object Set]"]=IF["[object String]"]=IF["[object Symbol]"]=IF["[object Uint8Array]"]=IF["[object Uint8ClampedArray]"]=IF["[object Uint16Array]"]=IF["[object Uint32Array]"]=!0,IF["[object Error]"]=IF["[object Function]"]=IF["[object WeakMap]"]=!1;var SF=function e(t,n,r,A,i,o){var a,s=1&n,c=2&n,l=4&n;if(r&&(a=i?r(t,A,i,o):r(t)),void 0!==a)return a;if(!Zo(t))return t;var u=os(t);if(u){if(a=hF(t),!s)return Wa(t,a)}else{var f=uF(t),h="[object Function]"==f||"[object GeneratorFunction]"==f;if(us(t))return Ka(t,s);if("[object Object]"==f||"[object Arguments]"==f||h&&!i){if(a=c||h?{}:Za(t),!s)return c?qk(t,Kk(a,t)):Yk(t,Pk(a,t))}else{if(!IF[f])return i?t:{};a=EF(t,f,s)}}o||(o=new Qa);var d=o.get(t);if(d)return d;o.set(t,a),_F(t)?t.forEach((function(A){a.add(e(A,n,r,A,t,o))})):bF(t)&&t.forEach((function(A,i){a.set(i,e(A,n,r,i,t,o))}));var p=u?void 0:(l?c?eF:Zk:c?Os:Hk)(t);return Ok(p||t,(function(A,i){p&&(A=t[i=A]),_s(a,i,e(A,n,r,i,t,o))})),a};var kF=function(e){return SF(e,5)},FF={urlProcessor:function(e,t){return e},fileUpload:function(e,t){t("images/demo-dog.png")},afterChange:function(e,t){},afterInit:function(e,t){},beforeImageMounted:function(e,t){return{srcProp:e,src:t}},onClickPreview:function(e){},onCopyCode:function(e,t){return t},changeString2Pinyin:function(e){return e}},xF=kF({externals:{},engine:{global:{classicBr:!1,urlProcessor:FF.urlProcessor,htmlWhiteList:""},syntax:{list:{listNested:!1,indentSpace:2},table:{enableChart:!1},inlineCode:{theme:"red"},codeBlock:{theme:"dark",wrap:!0,lineNumber:!0,customRenderer:{},indentedCodeBlock:!0},emoji:{useUnicode:!0},fontEmphasis:{allowWhitespace:!1},strikethrough:{needWhitespace:!1},mathBlock:{engine:"MathJax",src:"",plugins:!0},inlineMath:{engine:"MathJax",src:""},toc:{allowMultiToc:!1},header:{anchorStyle:"default"}}},editor:{theme:"default",height:"100%",defaultModel:"edit&preview",convertWhenPaste:!0,codemirror:{autofocus:!0}},toolbars:{theme:"dark",showToolbar:!0,toolbar:["bold","italic","strikethrough","|","color","header","ruby","|","list",{insert:["image","audio","video","link","hr","br","code","formula","toc","table","line-table","bar-table","pdf","word"]},"graph","settings"],sidebar:[],bubble:["bold","italic","underline","strikethrough","sub","sup","quote","|","size","color"],float:["h1","h2","h3","|","checklist","quote","quickTable","code"]},fileUpload:FF.fileUpload,callback:{afterChange:FF.afterChange,afterInit:FF.afterInit,beforeImageMounted:FF.beforeImageMounted,onClickPreview:FF.onClickPreview,onCopyCode:FF.onCopyCode,changeString2Pinyin:FF.changeString2Pinyin},previewer:{dom:!1,className:"cherry-markdown",enablePreviewerBubble:!0,lazyLoadImg:{loadingImgPath:"",maxNumPerTime:2,noLoadImgNum:5,autoLoadImgNum:5,maxTryTimesPerSrc:2,beforeLoadOneImgCallback:function(e){return!0},failLoadOneImgCallback:function(e){},afterLoadOneImgCallback:function(e){},afterLoadAllImgCallback:function(){}}},isPreviewOnly:!1,autoScrollByCursor:!0,forceAppend:!0});function LF(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}function UF(e,t,n){var r,A={};return xi(r=fi(e)).call(r,(function(r){-1!==Rc(t).call(t,r)&&("object"===no(n)?"string"==typeof n[r]?no(e[r])===n[r]&&(A[r]=e[r]):e[r]instanceof n[r]&&(A[r]=e[r]):"string"==typeof n&&no(e[r])===n&&(A[r]=e[r]))})),A}var NF={HOOKS_TYPE_LIST:gl},DF=[];Fh()||xi(DF).call(DF,(function(e){}));var OF=function(){function e(){Pi(this,e)}return Gi(e,null,[{key:"usePlugin",value:function(t){var n;if(this===e)throw new Error("`usePlugin` is not allowed to called through CherryStatic class.");if(this.initialized)throw new Error("The function `usePlugin` should be called before Cherry is instantiated.");if(!0!==t.$cherry$mounted){for(var r=arguments.length,A=new Array(r>1?r-1:0),i=1;i<r;i++)A[i-1]=arguments[i];t.install.apply(t,uo(n=[this.config.defaults]).call(n,A)),t.$cherry$mounted=!0}}}]),e}();function QF(e,t){var n=fi(e);if(di){var r=di(e);t&&(r=Bi(r).call(r,(function(t){return bi(e,t).enumerable}))),n.push.apply(n,r)}return n}function RF(e,t){var n=void 0!==oi&&ai(e)||e["@@iterator"];if(!n){if(ci(e)||(n=function(e,t){var n;if(!e)return;if("string"==typeof e)return MF(e,t);var r=yn(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Qr(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return MF(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,A=function(){};return{s:A,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:A}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw i}}}}function MF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function HF(e){var t=function(){if("undefined"==typeof Reflect||!An)return!1;if(An.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(An(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ao(e);if(t){var A=ao(this).constructor;n=An(r,arguments,A)}else n=r.apply(this,arguments);return ro(this,n)}}so(OF,"createSyntaxHook",(function(e,t,n){var r,A=t===gl.PAR?Il:ml,i=UF(n,["beforeMakeHtml","makeHtml","afterMakeHtml","rule","test"],"function"),o={needCache:n.needCache,defaultCache:n.defaultCache};return so(r=function(e){qi(r,e);var n=LF(r);function r(){var e,A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Pi(this,r),(e=t===gl.PAR?n.call(this,{needCache:!!o.needCache,defaultCache:o.defaultCache}):n.call(this)).config=A.config,ro(e)}return Gi(r,[{key:"beforeMakeHtml",value:function(){for(var e,t,n=arguments.length,A=new Array(n),o=0;o<n;o++)A[o]=arguments[o];return i.beforeMakeHtml?i.beforeMakeHtml.apply(this,A):(e=ch(ao(r.prototype),"beforeMakeHtml",this)).call.apply(e,uo(t=[this]).call(t,A))}},{key:"makeHtml",value:function(){for(var e,t,n=arguments.length,A=new Array(n),o=0;o<n;o++)A[o]=arguments[o];return i.makeHtml?i.makeHtml.apply(this,A):(e=ch(ao(r.prototype),"makeHtml",this)).call.apply(e,uo(t=[this]).call(t,A))}},{key:"afterMakeHtml",value:function(){for(var e,t,n=arguments.length,A=new Array(n),o=0;o<n;o++)A[o]=arguments[o];return i.afterMakeHtml?i.afterMakeHtml.apply(this,A):(e=ch(ao(r.prototype),"afterMakeHtml",this)).call.apply(e,uo(t=[this]).call(t,A))}},{key:"test",value:function(){for(var e,t,n=arguments.length,A=new Array(n),o=0;o<n;o++)A[o]=arguments[o];return i.test?i.test.apply(this,A):(e=ch(ao(r.prototype),"test",this)).call.apply(e,uo(t=[this]).call(t,A))}},{key:"rule",value:function(){for(var e,t,n=arguments.length,A=new Array(n),o=0;o<n;o++)A[o]=arguments[o];return i.rule?i.rule.apply(this,A):(e=ch(ao(r.prototype),"rule",this)).call.apply(e,uo(t=[this]).call(t,A))}}]),r}(A),"HOOK_NAME",e),r})),so(OF,"createMenuHook",(function(e,t){var n=UF(t,["subMenuConfig","onClick","shortcutKeys","iconName"],{subMenuConfig:Array,onClick:"function",shortcutKeys:Array,iconName:"string"});return function(t){qi(A,vm);var r=LF(A);function A(t){var i;return Pi(this,A),(i=r.call(this,t)).setName(e,n.iconName),i.subMenuConfig=n.subMenuConfig||[],i}return Gi(A,[{key:"onClick",value:function(){for(var e,t,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n.onClick?n.onClick.apply(this,i):(e=ch(ao(A.prototype),"onClick",this)).call.apply(e,uo(t=[this]).call(t,i))}},{key:"shortcutKeys",get:function(){return n.shortcutKeys?n.shortcutKeys:[]}}]),A}()})),so(OF,"constants",NF),so(OF,"VERSION","0.7.6");var PF=function(e){qi(n,OF);var t=HF(n);function n(e){var r,A;Pi(this,n),A=t.call(this),n.initialized=!0;var i,o=kF(n.config.defaults);return A.defaultToolbar=o.toolbars.toolbar,mu(e,Object),A.options=zs({},o,e,bk),"function"==typeof A.options.engine.global.urlProcessor&&(A.options.engine.global.urlProcessor=(i=A.options.engine.global.urlProcessor,function(e,t){if(Yf.isInnerLink(e)){var n=i(Yf.get(e),t);return Yf.replace(e,n)}return i(e,t)})),A.status={toolbar:"show",previewer:"show",editor:"show"},(A.options.isPreviewOnly||"previewOnly"===A.options.editor.defaultModel)&&(A.options.toolbars.showToolbar=!1,A.options.editor.defaultModel="previewOnly",A.status.editor="hide",A.status.toolbar="hide"),A.instanceId=uo(r="cherry-".concat((new Date).getTime())).call(r,Math.random()),A.options.instanceId=A.instanceId,A.engine=new Fp(A.options,Vi(A)),A.init(),A}return Gi(n,[{key:"init",value:function(){var e,t=this,n=this.options.id?document.getElementById(this.options.id):this.options.el;if(!n){if(!this.options.forceAppend)return!1;(n=document.createElement("div")).id=this.options.id||"cherry-markdown",document.body.appendChild(n)}n.style.height||(n.style.height=this.options.editor.height),this.cherryDom=n;var r=this.createWrapper(),A=this.createEditor(),i=this.createPreviewer();!1!==this.options.toolbars.showToolbar&&!1!==this.options.toolbars.toolbar||(r.classList.add("cherry--no-toolbar"),this.options.toolbars.toolbar=this.defaultToolbar),mu(this.options.toolbars.toolbar,Array),this.toolbar=this.createToolbar(A),this.sidebar=this.createSidebar(A);var o=document.createDocumentFragment();o.appendChild(this.toolbar.options.dom),o.appendChild(A.options.editorDom),o.appendChild(this.sidebar.options.dom),this.options.previewer.dom||o.appendChild(i.options.previewerDom),o.appendChild(i.options.virtualDragLineDom),o.appendChild(i.options.editorMaskDom),o.appendChild(i.options.previewerMaskDom),r.appendChild(o),n.appendChild(r),A.init(i),this.createBubble(A),this.createFloatMenu(A),i.init(A),i.registerAfterUpdate(go(e=this.engine.mounted).call(e,this.engine)),this.initText(A.editor),this.switchModel(this.options.editor.defaultModel),this.cherryDomResize(),$g.on(this.instanceId,$g.Events.toolbarHide,(function(){t.status.toolbar="hide"})),$g.on(this.instanceId,$g.Events.toolbarShow,(function(){t.status.toolbar="show"})),$g.on(this.instanceId,$g.Events.previewerClose,(function(){t.status.previewer="hide"})),$g.on(this.instanceId,$g.Events.previewerOpen,(function(){t.status.previewer="show"})),$g.on(this.instanceId,$g.Events.editorClose,(function(){t.status.editor="hide"})),$g.on(this.instanceId,$g.Events.editorOpen,(function(){t.status.editor="show"}))}},{key:"cherryDomResize",value:function(){var e=this,t=new ResizeObserver((function(t){var n,r=RF(t);try{for(r.s();!(n=r.n()).done;)Hi(n.value),To((function(){return e.editor.editor.refresh()}),10)}catch(e){r.e(e)}finally{r.f()}}));t.observe(this.cherryDom),this.cherryDomReiszeObserver=t}},{key:"switchModel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"edit&preview";switch(e){case"edit&preview":this.previewer&&(this.previewer.editOnly(!0),this.previewer.recoverPreviewer()),this.toolbar&&this.toolbar.showToolbar();break;case"editOnly":this.previewer.isPreviewerHidden()||this.previewer.editOnly(!0),this.toolbar&&this.toolbar.showToolbar();break;case"previewOnly":this.previewer.previewOnly(),this.toolbar&&this.toolbar.previewOnly()}}},{key:"getInstanceId",value:function(){return this.instanceId}},{key:"getStatus",value:function(){return this.status}},{key:"getValue",value:function(){return this.editor.editor.getValue()}},{key:"getMarkdown",value:function(){return this.getValue()}},{key:"getCodeMirror",value:function(){return this.editor.editor}},{key:"getHtml",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.previewer.getValue(e)}},{key:"getPreviewer",value:function(){return this.previewer}},{key:"getToc",value:function(){var e=this.getHtml(),t=[];return e.replace(/<h([1-6]).*?id="([^"]+?)".*?>(.+?)<\/h[0-6]>/g,(function(e,n,r,A){return t.push({level:+n,id:r,text:A}),e})),t}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!1===t)return this.editor.editor.setValue(e);var n=this.editor.editor,r=this.getValue(),A=n.getDoc().indexFromPos(n.getCursor()),i=Dk(A,r,e),o=n.setValue(e),a=n.getDoc().posFromIndex(i);return n.setCursor(a),o}},{key:"insert",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];n&&this.editor.editor.setSelection({line:n[0],ch:n[1]},{line:n[0],ch:n[1]});var A=this.editor.editor.replaceSelection(e,t?"around":"end");return r&&this.editor.editor.focus(),A}},{key:"insertValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return this.insert(e,t,n,r)}},{key:"setMarkdown",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.setValue(e,t)}},{key:"createWrapper",value:function(){var e="dark"===this.options.toolbars.theme?"dark":"",t=this.options.engine.syntax.inlineCode.theme,n=this.options.engine.syntax.codeBlock.theme;"dark"===n?n="tomorrow-night":"light"===n&&(n="solarized-light");var r=wd("div","cherry clearfix",{"data-toolbarTheme":e,"data-inlineCodeTheme":t,"data-codeBlockTheme":n});return this.wrapperDom=r,r}},{key:"createToolbar",value:function(e){var t=wd("div","cherry-toolbar");return this.toolbar=new gk({dom:t,editor:e,buttonConfig:this.options.toolbars.toolbar,customMenu:this.options.toolbars.customMenu,engine:this.engine}),this.toolbar}},{key:"createSidebar",value:function(e){var t="dark"===this.options.toolbars.theme?"dark":"",n=wd("div","cherry-sidebar ".concat(t));return this.sidebar=new Ck({dom:n,editor:e,buttonConfig:this.options.toolbars.sidebar,customMenu:this.options.toolbars.customMenu,engine:this.engine,previewer:this.previewer}),this.sidebar}},{key:"createFloatMenu",value:function(e){var t=wd("div","cherry-floatmenu");this.options.toolbars.float&&(mu(this.options.toolbars.float,Array),this.floatMenu=new Ek({dom:t,editor:e,buttonConfig:this.options.toolbars.float,engine:this.engine}))}},{key:"createBubble",value:function(e){var t=wd("div","cherry-bubble");this.options.toolbars.bubble&&(mu(this.options.toolbars.bubble,Array),this.bubble=new vk({dom:t,editor:e,buttonConfig:this.options.toolbars.bubble,engine:this.engine}))}},{key:"createEditor",value:function(){var e,t,n=wd("textarea","",{id:"code",name:"code"});n.textContent=this.options.value;var r=wd("div","cherry-editor");return r.appendChild(n),this.editor=new nl(function(e){for(var t=1;t<arguments.length;t++){var n,r,A=null!=arguments[t]?arguments[t]:{};t%2?xi(n=QF(Object(A),!0)).call(n,(function(t){so(e,t,A[t])})):Ni?Oi(e,Ni(A)):xi(r=QF(Object(A))).call(r,(function(t){Mi(e,t,bi(A,t))}))}return e}({$cherry:this,editorDom:r,wrapperDom:this.wrapperDom,value:this.options.value,onKeydown:go(e=this.fireShortcutKey).call(e,this),onChange:go(t=this.editText).call(t,this),toolbars:this.options.toolbars,fileUpload:this.options.fileUpload,autoScrollByCursor:this.options.autoScrollByCursor},this.options.editor)),this.editor}},{key:"createPreviewer",value:function(){var e,t="autonumber"===(this.options.engine.syntax.header&&this.options.engine.syntax.header.anchorStyle||"default")?" head-num":"",n=this.options.previewer,r=n.className,A=n.dom,i=n.enablePreviewerBubble,o=["cherry-previewer",r||"",t].join(" ");A?(e=A).className+=" ".concat(o):e=wd("div",o);var a=wd("div","cherry-drag"),s=wd("div","cherry-editor-mask"),c=wd("div","cherry-previewer-mask");return this.previewer=new nm({$cherry:this,virtualDragLineDom:a,editorMaskDom:s,previewerMaskDom:c,previewerDom:e,value:this.options.value,isPreviewOnly:this.options.isPreviewOnly,enablePreviewerBubble:i,lazyLoadImg:this.options.previewer.lazyLoadImg}),this.previewer}},{key:"initText",value:function(e){try{var t=e.getValue(),n=this.engine.makeHtml(t);this.previewer.update(n),this.options.callback.afterInit&&this.options.callback.afterInit(t,n)}catch(e){throw new Eu(e)}}},{key:"editText",value:function(e,t){var n=this;try{this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=To((function(){var e=t.getValue(),r=n.engine.makeHtml(e);n.previewer.update(r),n.options.callback.afterChange&&n.options.callback.afterChange(e,r),t.scrollIntoView(null)}),50)}catch(e){throw new Eu(e)}}},{key:"onChange",value:function(e){this.editor.editor.on("change",(function(t){e({markdown:t.getValue()})}))}},{key:"fireShortcutKey",value:function(e,t){this.toolbar.matchShortcutKey(e)&&(e.preventDefault(),this.toolbar.fireShortcutKey(e,t))}},{key:"export",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pdf";this.previewer.export(e)}}]),n}();so(PF,"initialized",!1),so(PF,"config",{defaults:xF}),window&&(window.Cherry=PF),exports.MenuHookBase=vm,exports.SyntaxHookBase=ml,exports.default=PF;