mindoc/static/cherry/cherry-markdown.min.js

1 line
2.4 MiB
Raw Permalink Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).Cherry={})}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function r(t,e){return t(e={exports:{}},e.exports),e.exports}function i(t){return t&&t.default||t}var a,o,s=function(t){return t&&t.Math==Math&&t},l=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof e&&e)||function(){return this}()||Function("return this")(),A=function(t){try{return!!t()}catch(t){return!0}},u=!A((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),h=Function.prototype,f=h.apply,d=h.call,p="object"==typeof Reflect&&Reflect.apply||(u?d.bind(f):function(){return d.apply(f,arguments)}),g=Function.prototype,m=g.bind,y=g.call,v=u&&m.bind(y,y),b=u?function(t){return t&&v(t)}:function(t){return t&&function(){return y.apply(t,arguments)}},_=function(t){return"function"==typeof t},w=!A((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),E=Function.prototype.call,C=u?E.bind(E):function(){return E.apply(E,arguments)},x={}.propertyIsEnumerable,B=Object.getOwnPropertyDescriptor,T={f:B&&!x.call({1:2},1)?function(t){var e=B(this,t);return!!e&&e.enumerable}:x},k=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},S=b({}.toString),I=b("".slice),L=function(t){return I(S(t),8,-1)},F=l.Object,N=b("".split),O=A((function(){return!F("z").propertyIsEnumerable(0)}))?function(t){return"String"==L(t)?N(t,""):F(t)}:F,D=l.TypeError,M=function(t){if(null==t)throw D("Can't call method on "+t);return t},R=function(t){return O(M(t))},U=function(t){return"object"==typeof t?null!==t:_(t)},P={},H=function(t){return _(t)?t:void 0},Q=function(t,e){return arguments.length<2?H(P[t])||H(l[t]):P[t]&&P[t][e]||l[t]&&l[t][e]},G=b({}.isPrototypeOf),j=Q("navigator","userAgent")||"",$=l.process,K=l.Deno,Y=$&&$.versions||K&&K.version,z=Y&&Y.v8;z&&(o=(a=z.split("."))[0]>0&&a[0]<4?1:+(a[0]+a[1])),!o&&j&&(!(a=j.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=j.match(/Chrome\/(\d+)/))&&(o=+a[1]);var W=o,V=!!Object.getOwnPropertySymbols&&!A((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&W&&W<41})),q=V&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,X=l.Object,J=q?function(t){return"symbol"==typeof t}:function(t){var e=Q("Symbol");return _(e)&&G(e.prototype,X(t))},Z=l.String,tt=function(t){try{return Z(t)}catch(t){return"Object"}},et=l.TypeError,nt=function(t){if(_(t))return t;throw et(tt(t)+" is not a function")},rt=function(t,e){var n=t[e];return null==n?void 0:nt(n)},it=l.TypeError,at=Object.defineProperty,ot=l["__core-js_shared__"]||function(t,e){try{at(l,t,{value:e,configurable:!0,writable:!0})}catch(n){l[t]=e}return e}("__core-js_shared__",{}),st=r((function(t){(t.exports=function(t,e){return ot[t]||(ot[t]=void 0!==e?e:{})})("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"})})),ct=l.Object,lt=function(t){return ct(M(t))},At=b({}.hasOwnProperty),ut=Object.hasOwn||function(t,e){return At(lt(t),e)},ht=0,ft=Math.random(),dt=b(1..toString),pt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+dt(++ht+ft,36)},gt=st("wks"),mt=l.Symbol,yt=mt&&mt.for,vt=q?mt:mt&&mt.withoutSetter||pt,bt=function(t){if(!ut(gt,t)||!V&&"string"!=typeof gt[t]){var e="Symbol."+t;V&&ut(mt,t)?gt[t]=mt[t]:gt[t]=q&&yt?yt(e):vt(e)}return gt[t]},_t=l.TypeError,wt=bt("toPrimitive"),Et=function(t,e){if(!U(t)||J(t))return t;var n,r=rt(t,wt);if(r){if(void 0===e&&(e="default"),n=C(r,t,e),!U(n)||J(n))return n;throw _t("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&_(n=t.toString)&&!U(r=C(n,t)))return r;if(_(n=t.valueOf)&&!U(r=C(n,t)))return r;if("string"!==e&&_(n=t.toString)&&!U(r=C(n,t)))return r;throw it("Can't convert object to primitive value")}(t,e)},Ct=function(t){var e=Et(t,"string");return J(e)?e:e+""},xt=l.document,Bt=U(xt)&&U(xt.createElement),Tt=function(t){return Bt?xt.createElement(t):{}},kt=!w&&!A((function(){return 7!=Object.defineProperty(Tt("div"),"a",{get:function(){return 7}}).a})),St=Object.getOwnPropertyDescriptor,It={f:w?St:function(t,e){if(t=R(t),e=Ct(e),kt)try{return St(t,e)}catch(t){}if(ut(t,e))return k(!C(T.f,t,e),t[e])}},Lt=/#|\.prototype\./,Ft=function(t,e){var n=Ot[Nt(t)];return n==Mt||n!=Dt&&(_(e)?A(e):!!e)},Nt=Ft.normalize=function(t){return String(t).replace(Lt,".").toLowerCase()},Ot=Ft.data={},Dt=Ft.NATIVE="N",Mt=Ft.POLYFILL="P",Rt=Ft,Ut=b(b.bind),Pt=function(t,e){return nt(t),void 0===e?t:u?Ut(t,e):function(){return t.apply(e,arguments)}},Ht=w&&A((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Qt=l.String,Gt=l.TypeError,jt=function(t){if(U(t))return t;throw Gt(Qt(t)+" is not an object")},$t=l.TypeError,Kt=Object.defineProperty,Yt=Object.getOwnPropertyDescriptor,zt={f:w?Ht?function(t,e,n){if(jt(t),e=Ct(e),jt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var r=Yt(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return Kt(t,e,n)}:Kt:function(t,e,n){if(jt(t),e=Ct(e),jt(n),kt)try{return Kt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw $t("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Wt=w?function(t,e,n){return zt.f(t,e,k(1,n))}:function(t,e,n){return t[e]=n,t},Vt=It.f,qt=function(t){var e=function(n,r,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,i)}return p(t,this,arguments)};return e.prototype=t.prototype,e},Xt=function(t,e){var n,r,i,a,o,s,c,A,u=t.target,h=t.global,f=t.stat,d=t.proto,p=h?l:f?l[u]:(l[u]||{}).prototype,g=h?P:P[u]||Wt(P,u,{})[u],m=g.prototype;for(i in e)n=!Rt(h?i:u+(f?".":"#")+i,t.forced)&&p&&ut(p,i),o=g[i],n&&(s=t.dontCallGetSet?(A=Vt(p,i))&&A.value:p[i]),a=n&&s?s:e[i],n&&typeof o==typeof a||(c=t.bind&&n?Pt(a,l):t.wrap&&n?qt(a):d&&_(a)?b(a):a,(t.sham||a&&a.sham||o&&o.sham)&&Wt(c,"sham",!0),Wt(g,i,c),d&&(ut(P,r=u+"Prototype")||Wt(P,r,{}),Wt(P[r],i,a),t.real&&m&&!m[i]&&Wt(m,i,a)))},Jt=b([].slice),Zt=l.Function,te=b([].concat),ee=b([].join),ne={},re=function(t,e,n){if(!ut(ne,e)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";ne[e]=Zt("C,a","return new C("+ee(r,",")+")")}return ne[e](t,n)},ie=u?Zt.bind:function(t){var e=nt(this),n=e.prototype,r=Jt(arguments,1),i=function(){var n=te(r,Jt(arguments));return this instanceof i?re(e,n.length,n):e.apply(t,n)};return U(n)&&(i.prototype=n),i},ae={};ae[bt("toStringTag")]="z";var oe="[object z]"===String(ae),se=bt("toStringTag"),ce=l.Object,le="Arguments"==L(function(){return arguments}()),Ae=oe?L:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=ce(t),se))?n:le?L(e):"Object"==(r=L(e))&&_(e.callee)?"Arguments":r},ue=b(Function.toString);_(ot.inspectSource)||(ot.inspectSource=function(t){return ue(t)});var he=ot.inspectSource,fe=function(){},de=[],pe=Q("Reflect","construct"),ge=/^\s*(?:class|function)\b/,me=b(ge.exec),ye=!ge.exec(fe),ve=function(t){if(!_(t))return!1;try{return pe(fe,de,t),!0}catch(t){return!1}},be=function(t){if(!_(t))return!1;switch(Ae(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ye||!!me(ge,he(t))}catch(t){return!0}};be.sham=!0;var _e,we=!pe||A((function(){var t;return ve(ve.call)||!ve(Object)||!ve((function(){t=!0}))||t}))?be:ve,Ee=l.TypeError,Ce=function(t){if(we(t))return t;throw Ee(tt(t)+" is not a constructor")},xe=Math.ceil,Be=Math.floor,Te=Math.trunc||function(t){var e=+t;return(e>0?Be:xe)(e)},ke=function(t){var e=+t;return e!=e||0===e?0:Te(e)},Se=Math.max,Ie=Math.min,Le=function(t,e){var n=ke(t);return n<0?Se(n+e,0):Ie(n,e)},Fe=Math.min,Ne=function(t){return t>0?Fe(ke(t),9007199254740991):0},Oe=function(t){return Ne(t.length)},De=function(t){return function(e,n,r){var i,a=R(e),o=Oe(a),s=Le(r,o);if(t&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}},Me={includes:De(!0),indexOf:De(!1)},Re={},Ue=Me.indexOf,Pe=b([].push),He=function(t,e){var n,r=R(t),i=0,a=[];for(n in r)!ut(Re,n)&&ut(r,n)&&Pe(a,n);for(;e.length>i;)ut(r,n=e[i++])&&(~Ue(a,n)||Pe(a,n));return a},Qe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ge=Object.keys||function(t){return He(t,Qe)},je={f:w&&!Ht?Object.defineProperties:function(t,e){jt(t);for(var n,r=R(e),i=Ge(e),a=i.length,o=0;a>o;)zt.f(t,n=i[o++],r[n]);return t}},$e=Q("document","documentElement"),Ke=st("keys"),Ye=function(t){return Ke[t]||(Ke[t]=pt(t))},ze=Ye("IE_PROTO"),We=function(){},Ve=function(t){return"<script>"+t+"<\/script>"},qe=function(t){t.write(Ve("")),t.close();var e=t.parentWindow.Object;return t=null,e},Xe=function(){try{_e=new ActiveXObject("htmlfile")}catch(t){}var t,e;Xe="undefined"!=typeof document?document.domain&&_e?qe(_e):((e=Tt("iframe")).style.display="none",$e.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Ve("document.F=Object")),t.close(),t.F):qe(_e);for(var n=Qe.length;n--;)delete Xe.prototype[Qe[n]];return Xe()};Re[ze]=!0;var Je=Object.create||function(t,e){var n;return null!==t?(We.prototype=jt(t),n=new We,We.prototype=null,n[ze]=t):n=Xe(),void 0===e?n:je.f(n,e)},Ze=Q("Reflect","construct"),tn=Object.prototype,en=[].push,nn=A((function(){function t(){}return!(Ze((function(){}),[],t)instanceof t)})),rn=!A((function(){Ze((function(){}))})),an=nn||rn;Xt({target:"Reflect",stat:!0,forced:an,sham:an},{construct:function(t,e){Ce(t),jt(e);var n=arguments.length<3?t:Ce(arguments[2]);if(rn&&!nn)return Ze(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return p(en,r,e),new(p(ie,t,r))}var i=n.prototype,a=Je(U(i)?i:tn),o=p(t,a,e);return U(o)?o:a}});var on=P.Reflect.construct,sn=on,cn=A((function(){Ge(1)}));Xt({target:"Object",stat:!0,forced:cn},{keys:function(t){return Ge(lt(t))}});var ln,An,un,hn=P.Object.keys,fn=hn,dn=l.String,pn=function(t){if("Symbol"===Ae(t))throw TypeError("Cannot convert a Symbol value to a string");return dn(t)},gn=Qe.concat("length","prototype"),mn={f:Object.getOwnPropertyNames||function(t){return He(t,gn)}},yn=function(t,e,n){var r=Ct(e);r in t?zt.f(t,r,k(0,n)):t[r]=n},vn=l.Array,bn=Math.max,_n=function(t,e,n){for(var r=Oe(t),i=Le(e,r),a=Le(void 0===n?r:n,r),o=vn(bn(a-i,0)),s=0;i<a;i++,s++)yn(o,s,t[i]);return o.length=s,o},wn=mn.f,En="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Cn={f:function(t){return En&&"Window"==L(t)?function(t){try{return wn(t)}catch(t){return _n(En)}}(t):wn(R(t))}},xn={f:Object.getOwnPropertySymbols},Bn=function(t,e,n,r){return r&&r.enumerable?t[e]=n:Wt(t,e,n),t},Tn={f:bt},kn=zt.f,Sn=function(t){var e=P.Symbol||(P.Symbol={});ut(e,t)||kn(e,t,{value:Tn.f(t)})},In=function(){var t=Q("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,r=bt("toPrimitive");e&&!e[r]&&Bn(e,r,(function(t){return C(n,this)}),{arity:1})},Ln=oe?{}.toString:function(){return"[object "+Ae(this)+"]"},Fn=zt.f,Nn=bt("toStringTag"),On=function(t,e,n,r){if(t){var i=n?t:t.prototype;ut(i,Nn)||Fn(i,Nn,{configurable:!0,value:e}),r&&!oe&&Wt(i,"toString",Ln)}},Dn=l.WeakMap,Mn=_(Dn)&&/native code/.test(he(Dn)),Rn=l.TypeError,Un=l.WeakMap;if(Mn||ot.state){var Pn=ot.state||(ot.state=new Un),Hn=b(Pn.get),Qn=b(Pn.has),Gn=b(Pn.set);ln=function(t,e){if(Qn(Pn,t))throw new Rn("Object already initialized");return e.facade=t,Gn(Pn,t,e),e},An=function(t){return Hn(Pn,t)||{}},un=function(t){return Qn(Pn,t)}}else{var jn=Ye("state");Re[jn]=!0,ln=function(t,e){if(ut(t,jn))throw new Rn("Object already initialized");return e.facade=t,Wt(t,jn,e),e},An=function(t){return ut(t,jn)?t[jn]:{}},un=function(t){return ut(t,jn)}}var $n={set:ln,get:An,has:un,enforce:function(t){return un(t)?An(t):ln(t,{})},getterFor:function(t){return function(e){var n;if(!U(e)||(n=An(e)).type!==t)throw Rn("Incompatible receiver, "+t+" required");return n}}},Kn=Array.isArray||function(t){return"Array"==L(t)},Yn=bt("species"),zn=l.Array,Wn=function(t,e){return new(function(t){var e;return Kn(t)&&(e=t.constructor,(we(e)&&(e===zn||Kn(e.prototype))||U(e)&&null===(e=e[Yn]))&&(e=void 0)),void 0===e?zn:e}(t))(0===e?0:e)},Vn=b([].push),qn=function(t){var e=1==t,n=2==t,r=3==t,i=4==t,a=6==t,o=7==t,s=5==t||a;return function(c,l,A,u){for(var h,f,d=lt(c),p=O(d),g=Pt(l,A),m=Oe(p),y=0,v=u||Wn,b=e?v(c,m):n||o?v(c,0):void 0;m>y;y++)if((s||y in p)&&(f=g(h=p[y],y,d),t))if(e)b[y]=f;else if(f)switch(t){case 3:return!0;case 5:return h;case 6:return y;case 2:Vn(b,h)}else switch(t){case 4:return!1;case 7:Vn(b,h)}return a?-1:r||i?i:b}},Xn={forEach:qn(0),map:qn(1),filter:qn(2),some:qn(3),every:qn(4),find:qn(5),findIndex:qn(6),filterReject:qn(7)},Jn=Xn.forEach,Zn=Ye("hidden"),tr=$n.set,er=$n.getterFor("Symbol"),nr=Object.prototype,rr=l.Symbol,ir=rr&&rr.prototype,ar=l.TypeError,or=l.QObject,sr=It.f,cr=zt.f,lr=Cn.f,Ar=T.f,ur=b([].push),hr=st("symbols"),fr=st("op-symbols"),dr=st("wks"),pr=!or||!or.prototype||!or.prototype.findChild,gr=w&&A((function(){return 7!=Je(cr({},"a",{get:function(){return cr(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=sr(nr,e);r&&delete nr[e],cr(t,e,n),r&&t!==nr&&cr(nr,e,r)}:cr,mr=function(t,e){var n=hr[t]=Je(ir);return tr(n,{type:"Symbol",tag:t,description:e}),w||(n.description=e),n},yr=function(t,e,n){t===nr&&yr(fr,e,n),jt(t);var r=Ct(e);return jt(n),ut(hr,r)?(n.enumerable?(ut(t,Zn)&&t[Zn][r]&&(t[Zn][r]=!1),n=Je(n,{enumerable:k(0,!1)})):(ut(t,Zn)||cr(t,Zn,k(1,{})),t[Zn][r]=!0),gr(t,r,n)):cr(t,r,n)},vr=function(t,e){jt(t);var n=R(e),r=Ge(n).concat(Er(n));return Jn(r,(function(e){w&&!C(br,n,e)||yr(t,e,n[e])})),t},br=function(t){var e=Ct(t),n=C(Ar,this,e);return!(this===nr&&ut(hr,e)&&!ut(fr,e))&&(!(n||!ut(this,e)||!ut(hr,e)||ut(this,Zn)&&this[Zn][e])||n)},_r=function(t,e){var n=R(t),r=Ct(e);if(n!==nr||!ut(hr,r)||ut(fr,r)){var i=sr(n,r);return!i||!ut(hr,r)||ut(n,Zn)&&n[Zn][r]||(i.enumerable=!0),i}},wr=function(t){var e=lr(R(t)),n=[];return Jn(e,(function(t){ut(hr,t)||ut(Re,t)||ur(n,t)})),n},Er=function(t){var e=t===nr,n=lr(e?fr:R(t)),r=[];return Jn(n,(function(t){!ut(hr,t)||e&&!ut(nr,t)||ur(r,hr[t])})),r};V||(ir=(rr=function(){if(G(ir,this))throw ar("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?pn(arguments[0]):void 0,e=pt(t),n=function(t){this===nr&&C(n,fr,t),ut(this,Zn)&&ut(this[Zn],e)&&(this[Zn][e]=!1),gr(this,e,k(1,t))};return w&&pr&&gr(nr,e,{configurable:!0,set:n}),mr(e,t)}).prototype,Bn(ir,"toString",(function(){return er(this).tag})),Bn(rr,"withoutSetter",(function(t){return mr(pt(t),t)})),T.f=br,zt.f=yr,je.f=vr,It.f=_r,mn.f=Cn.f=wr,xn.f=Er,Tn.f=function(t){return mr(bt(t),t)},w&&cr(ir,"description",{configurable:!0,get:function(){return er(this).description}})),Xt({global:!0,constructor:!0,wrap:!0,forced:!V,sham:!V},{Symbol:rr}),Jn(Ge(dr),(function(t){Sn(t)})),Xt({target:"Symbol",stat:!0,forced:!V},{useSetter:function(){pr=!0},useSimple:function(){pr=!1}}),Xt({target:"Object",stat:!0,forced:!V,sham:!w},{create:function(t,e){return void 0===e?Je(t):vr(Je(t),e)},defineProperty:yr,defineProperties:vr,getOwnPropertyDescriptor:_r}),Xt({target:"Object",stat:!0,forced:!V},{getOwnPropertyNames:wr}),In(),On(rr,"Symbol"),Re[Zn]=!0;var Cr=V&&!!Symbol.for&&!!Symbol.keyFor,xr=st("string-to-symbol-registry"),Br=st("symbol-to-string-registry");Xt({target:"Symbol",stat:!0,forced:!Cr},{for:function(t){var e=pn(t);if(ut(xr,e))return xr[e];var n=Q("Symbol")(e);return xr[e]=n,Br[n]=e,n}});var Tr=st("symbol-to-string-registry");Xt({target:"Symbol",stat:!0,forced:!Cr},{keyFor:function(t){if(!J(t))throw TypeError(tt(t)+" is not a symbol");if(ut(Tr,t))return Tr[t]}});var kr=Q("JSON","stringify"),Sr=b(/./.exec),Ir=b("".charAt),Lr=b("".charCodeAt),Fr=b("".replace),Nr=b(1..toString),Or=/[\uD800-\uDFFF]/g,Dr=/^[\uD800-\uDBFF]$/,Mr=/^[\uDC00-\uDFFF]$/,Rr=!V||A((function(){var t=Q("Symbol")();return"[null]"!=kr([t])||"{}"!=kr({a:t})||"{}"!=kr(Object(t))})),Ur=A((function(){return'"\\udf06\\ud834"'!==kr("\udf06\ud834")||'"\\udead"'!==kr("\udead")})),Pr=function(t,e){var n=Jt(arguments),r=e;if((U(e)||void 0!==t)&&!J(t))return Kn(e)||(e=function(t,e){if(_(r)&&(e=C(r,this,t,e)),!J(e))return e}),n[1]=e,p(kr,null,n)},Hr=function(t,e,n){var r=Ir(n,e-1),i=Ir(n,e+1);return Sr(Dr,t)&&!Sr(Mr,i)||Sr(Mr,t)&&!Sr(Dr,r)?"\\u"+Nr(Lr(t,0),16):t};kr&&Xt({target:"JSON",stat:!0,arity:3,forced:Rr||Ur},{stringify:function(t,e,n){var r=Jt(arguments),i=p(Rr?Pr:kr,null,r);return Ur&&"string"==typeof i?Fr(i,Or,Hr):i}});var Qr=!V||A((function(){xn.f(1)}));Xt({target:"Object",stat:!0,forced:Qr},{getOwnPropertySymbols:function(t){var e=xn.f;return e?e(lt(t)):[]}});var Gr=P.Object.getOwnPropertySymbols,jr=Gr,$r=bt("species"),Kr=function(t){return W>=51||!A((function(){var e=[];return(e.constructor={})[$r]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Yr=Xn.filter,zr=Kr("filter");Xt({target:"Array",proto:!0,forced:!zr},{filter:function(t){return Yr(this,t,arguments.length>1?arguments[1]:void 0)}});var Wr=function(t){return P[t+"Prototype"]},Vr=Wr("Array").filter,qr=Array.prototype,Xr=function(t){var e=t.filter;return t===qr||G(qr,t)&&e===qr.filter?Vr:e},Jr=It.f,Zr=A((function(){Jr(1)}));Xt({target:"Object",stat:!0,forced:!w||Zr,sham:!w},{getOwnPropertyDescriptor:function(t,e){return Jr(R(t),e)}});var ti,ei,ni,ri=r((function(t){var e=P.Object,n=t.exports=function(t,n){return e.getOwnPropertyDescriptor(t,n)};e.getOwnPropertyDescriptor.sham&&(n.sham=!0)})),ii=ri,ai={},oi=Function.prototype,si=w&&Object.getOwnPropertyDescriptor,ci=ut(oi,"name"),li={EXISTS:ci,PROPER:ci&&"something"===function(){}.name,CONFIGURABLE:ci&&(!w||w&&si(oi,"name").configurable)},Ai=!A((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),ui=Ye("IE_PROTO"),hi=l.Object,fi=hi.prototype,di=Ai?hi.getPrototypeOf:function(t){var e=lt(t);if(ut(e,ui))return e[ui];var n=e.constructor;return _(n)&&e instanceof n?n.prototype:e instanceof hi?fi:null},pi=bt("iterator"),gi=!1;[].keys&&("next"in(ni=[].keys())?(ei=di(di(ni)))!==Object.prototype&&(ti=ei):gi=!0);var mi=null==ti||A((function(){var t={};return ti[pi].call(t)!==t}));ti=mi?{}:Je(ti),_(ti[pi])||Bn(ti,pi,(function(){return this}));var yi={IteratorPrototype:ti,BUGGY_SAFARI_ITERATORS:gi},vi=yi.IteratorPrototype,bi=function(){return this},_i=function(t,e,n,r){var i=e+" Iterator";return t.prototype=Je(vi,{next:k(+!r,n)}),On(t,i,!1,!0),ai[i]=bi,t},wi=l.String,Ei=l.TypeError,Ci=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=b(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return jt(n),function(t){if("object"==typeof t||_(t))return t;throw Ei("Can't set "+wi(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),xi=li.PROPER,Bi=yi.BUGGY_SAFARI_ITERATORS,Ti=bt("iterator"),ki=function(){return this},Si=function(t,e,n,r,i,a,o){_i(n,e,r);var s,c,l,A=function(t){if(t===i&&p)return p;if(!Bi&&t in f)return f[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},u=e+" Iterator",h=!1,f=t.prototype,d=f[Ti]||f["@@iterator"]||i&&f[i],p=!Bi&&d||A(i),g="Array"==e&&f.entries||d;if(g&&(s=di(g.call(new t)))!==Object.prototype&&s.next&&(On(s,u,!0,!0),ai[u]=ki),xi&&"values"==i&&d&&"values"!==d.name&&(h=!0,p=function(){return C(d,this)}),i)if(c={values:A("values"),keys:a?p:A("keys"),entries:A("entries")},o)for(l in c)(Bi||h||!(l in f))&&Bn(f,l,c[l]);else Xt({target:e,proto:!0,forced:Bi||h},c);return o&&f[Ti]!==p&&Bn(f,Ti,p,{name:i}),ai[e]=p,c},Ii=$n.set,Li=$n.getterFor("Array Iterator"),Fi=(Si(Array,"Array",(function(t,e){Ii(this,{type:"Array Iterator",target:R(t),index:0,kind:e})}),(function(){var t=Li(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),ai.Arguments=ai.Array,bt("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 Oi=l[Ni],Di=Oi&&Oi.prototype;Di&&Ae(Di)!==Fi&&Wt(Di,Fi,Ni),ai[Ni]=ai.Array}var Mi=function(t,e){var n=[][t];return!!n&&A((function(){n.call(null,e||function(){return 1},1)}))},Ri=Xn.forEach,Ui=Mi("forEach")?[].forEach:function(t){return Ri(this,t,arguments.length>1?arguments[1]:void 0)};Xt({target:"Array",proto:!0,forced:[].forEach!=Ui},{forEach:Ui});var Pi=Wr("Array").forEach,Hi=Array.prototype,Qi={DOMTokenList:!0,NodeList:!0},Gi=function(t){var e=t.forEach;return t===Hi||G(Hi,t)&&e===Hi.forEach||ut(Qi,Ae(t))?Pi:e},ji=Gi,$i=b([].concat),Ki=Q("Reflect","ownKeys")||function(t){var e=mn.f(jt(t)),n=xn.f;return n?$i(e,n(t)):e};Xt({target:"Object",stat:!0,sham:!w},{getOwnPropertyDescriptors:function(t){for(var e,n,r=R(t),i=It.f,a=Ki(r),o={},s=0;a.length>s;)void 0!==(n=i(r,e=a[s++]))&&yn(o,e,n);return o}});var Yi=P.Object.getOwnPropertyDescriptors,zi=je.f;Xt({target:"Object",stat:!0,forced:Object.defineProperties!==zi,sham:!w},{defineProperties:zi});var Wi=r((function(t){var e=P.Object,n=t.exports=function(t,n){return e.defineProperties(t,n)};e.defineProperties.sham&&(n.sham=!0)})),Vi=zt.f;Xt({target:"Object",stat:!0,forced:Object.defineProperty!==Vi,sham:!w},{defineProperty:Vi});var qi=r((function(t){var e=P.Object,n=t.exports=function(t,n,r){return e.defineProperty(t,n,r)};e.defineProperty.sham&&(n.sham=!0)})),Xi=qi,Ji=n(r((function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports}))),Zi=qi,ta=n(r((function(t){function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Zi(t,r.key,r)}}t.exports=function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),Zi(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}))),ea=r((function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports})),na=n(ea);Xt({target:"Object",stat:!0,sham:!w},{create:Je});var ra=P.Object,ia=function(t,e){return ra.create(t,e)},aa=ia;Xt({target:"Object",stat:!0},{setPrototypeOf:Ci});var oa=P.Object.setPrototypeOf,sa=r((function(t){function e(n,r){return t.exports=e=oa||function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}));n(sa);var ca=n(r((function(t){t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=aa(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Zi(t,"prototype",{writable:!1}),e&&sa(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports}))),la=bt("isConcatSpreadable"),Aa=l.TypeError,ua=W>=51||!A((function(){var t=[];return t[la]=!1,t.concat()[0]!==t})),ha=Kr("concat"),fa=function(t){if(!U(t))return!1;var e=t[la];return void 0!==e?!!e:Kn(t)};Xt({target:"Array",proto:!0,arity:1,forced:!ua||!ha},{concat:function(t){var e,n,r,i,a,o=lt(this),s=Wn(o,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(fa(a=-1===e?o:arguments[e])){if(c+(i=Oe(a))>9007199254740991)throw Aa("Maximum allowed index exceeded");for(n=0;n<i;n++,c++)n in a&&yn(s,c,a[n])}else{if(c>=9007199254740991)throw Aa("Maximum allowed index exceeded");yn(s,c++,a)}return s.length=c,s}}),Sn("asyncIterator"),Sn("hasInstance"),Sn("isConcatSpreadable"),Sn("iterator"),Sn("match"),Sn("matchAll"),Sn("replace"),Sn("search"),Sn("species"),Sn("split"),Sn("toPrimitive"),In(),Sn("toStringTag"),On(Q("Symbol"),"Symbol"),Sn("unscopables"),On(l.JSON,"JSON",!0);var da=P.Symbol;Sn("asyncDispose"),Sn("dispose"),Sn("matcher"),Sn("metadata"),Sn("observable"),Sn("patternMatch"),Sn("replaceAll");var pa=da,ga=b("".charAt),ma=b("".charCodeAt),ya=b("".slice),va=function(t){return function(e,n){var r,i,a=pn(M(e)),o=ke(n),s=a.length;return o<0||o>=s?t?"":void 0:(r=ma(a,o))<55296||r>56319||o+1===s||(i=ma(a,o+1))<56320||i>57343?t?ga(a,o):r:t?ya(a,o,o+2):i-56320+(r-55296<<10)+65536}},ba={codeAt:va(!1),charAt:va(!0)},_a=ba.charAt,wa=$n.set,Ea=$n.getterFor("String Iterator");Si(String,"String",(function(t){wa(this,{type:"String Iterator",string:pn(t),index:0})}),(function(){var t,e=Ea(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=_a(n,r),e.index+=t.length,{value:t,done:!1})}));var Ca=Tn.f("iterator"),xa=r((function(t){function e(n){return t.exports=e="function"==typeof pa&&"symbol"==typeof Ca?function(t){return typeof t}:function(t){return t&&"function"==typeof pa&&t.constructor===pa&&t!==pa.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})),Ba=n(xa),Ta=n(r((function(t){var e=xa.default;t.exports=function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return ea(t)},t.exports.__esModule=!0,t.exports.default=t.exports}))),ka=A((function(){di(1)}));Xt({target:"Object",stat:!0,forced:ka,sham:!Ai},{getPrototypeOf:function(t){return di(lt(t))}});var Sa=P.Object.getPrototypeOf,Ia=r((function(t){function e(n){return t.exports=e=oa?Sa:function(t){return t.__proto__||Sa(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})),La=n(Ia),Fa=n(r((function(t){t.exports=function(t,e,n){return e in t?Zi(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports}))),Na=Wr("Array").concat,Oa=Array.prototype,Da=function(t){var e=t.concat;return t===Oa||G(Oa,t)&&e===Oa.concat?Na:e};Xt({target:"Function",proto:!0,forced:Function.bind!==ie},{bind:ie});var Ma=Wr("Function").bind,Ra=Function.prototype,Ua=function(t){var e=t.bind;return t===Ra||G(Ra,t)&&e===Ra.bind?Ma:e},Pa=Ua,Ha=l.TypeError,Qa=function(t,e){if(t<e)throw Ha("Not enough arguments");return t},Ga=/MSIE .\./.test(j),ja=l.Function,$a=function(t){return Ga?function(e,n){var r=Qa(arguments.length,1)>2,i=_(e)?e:ja(e),a=r?Jt(arguments,2):void 0;return t(r?function(){p(i,this,a)}:i,n)}:t},Ka={setTimeout:$a(l.setTimeout),setInterval:$a(l.setInterval)},Ya=Ka.setInterval;Xt({global:!0,bind:!0,forced:l.setInterval!==Ya},{setInterval:Ya});var za=Ka.setTimeout;Xt({global:!0,bind:!0,forced:l.setTimeout!==za},{setTimeout:za});var Wa=P.setTimeout;var Va=function(){this.__data__=[],this.size=0};var qa=function(t,e){return t===e||t!=t&&e!=e};var Xa=function(t,e){for(var n=t.length;n--;)if(qa(t[n][0],e))return n;return-1},Ja=Array.prototype.splice;var Za=function(t){var e=this.__data__,n=Xa(e,t);return!(n<0)&&(n==e.length-1?e.pop():Ja.call(e,n,1),--this.size,!0)};var to=function(t){var e=this.__data__,n=Xa(e,t);return n<0?void 0:e[n][1]};var eo=function(t){return Xa(this.__data__,t)>-1};var no=function(t,e){var n=this.__data__,r=Xa(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function ro(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}ro.prototype.clear=Va,ro.prototype.delete=Za,ro.prototype.get=to,ro.prototype.has=eo,ro.prototype.set=no;var io=ro;var ao=function(){this.__data__=new io,this.size=0};var oo=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};var so=function(t){return this.__data__.get(t)};var co=function(t){return this.__data__.has(t)},lo="object"==typeof e&&e&&e.Object===Object&&e,Ao="object"==typeof self&&self&&self.Object===Object&&self,uo=lo||Ao||Function("return this")(),ho=uo.Symbol,fo=Object.prototype,po=fo.hasOwnProperty,go=fo.toString,mo=ho?ho.toStringTag:void 0;var yo=function(t){var e=po.call(t,mo),n=t[mo];try{t[mo]=void 0;var r=!0}catch(t){}var i=go.call(t);return r&&(e?t[mo]=n:delete t[mo]),i},vo=Object.prototype.toString;var bo=function(t){return vo.call(t)},_o=ho?ho.toStringTag:void 0;var wo=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":_o&&_o in Object(t)?yo(t):bo(t)};var Eo=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var Co=function(t){if(!Eo(t))return!1;var e=wo(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},xo=uo["__core-js_shared__"],Bo=function(){var t=/[^.]+$/.exec(xo&&xo.keys&&xo.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var To=function(t){return!!Bo&&Bo in t},ko=Function.prototype.toString;var So=function(t){if(null!=t){try{return ko.call(t)}catch(t){}try{return t+""}catch(t){}}return""},Io=/^\[object .+?Constructor\]$/,Lo=Function.prototype,Fo=Object.prototype,No=Lo.toString,Oo=Fo.hasOwnProperty,Do=RegExp("^"+No.call(Oo).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Mo=function(t){return!(!Eo(t)||To(t))&&(Co(t)?Do:Io).test(So(t))};var Ro=function(t,e){return null==t?void 0:t[e]};var Uo=function(t,e){var n=Ro(t,e);return Mo(n)?n:void 0},Po=Uo(uo,"Map"),Ho=Uo(Object,"create");var Qo=function(){this.__data__=Ho?Ho(null):{},this.size=0};var Go=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},jo=Object.prototype.hasOwnProperty;var $o=function(t){var e=this.__data__;if(Ho){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return jo.call(e,t)?e[t]:void 0},Ko=Object.prototype.hasOwnProperty;var Yo=function(t){var e=this.__data__;return Ho?void 0!==e[t]:Ko.call(e,t)};var zo=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ho&&void 0===e?"__lodash_hash_undefined__":e,this};function Wo(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Wo.prototype.clear=Qo,Wo.prototype.delete=Go,Wo.prototype.get=$o,Wo.prototype.has=Yo,Wo.prototype.set=zo;var Vo=Wo;var qo=function(){this.size=0,this.__data__={hash:new Vo,map:new(Po||io),string:new Vo}};var Xo=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Jo=function(t,e){var n=t.__data__;return Xo(e)?n["string"==typeof e?"string":"hash"]:n.map};var Zo=function(t){var e=Jo(this,t).delete(t);return this.size-=e?1:0,e};var ts=function(t){return Jo(this,t).get(t)};var es=function(t){return Jo(this,t).has(t)};var ns=function(t,e){var n=Jo(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function rs(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}rs.prototype.clear=qo,rs.prototype.delete=Zo,rs.prototype.get=ts,rs.prototype.has=es,rs.prototype.set=ns;var is=rs;var as=function(t,e){var n=this.__data__;if(n instanceof io){var r=n.__data__;if(!Po||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new is(r)}return n.set(t,e),this.size=n.size,this};function os(t){var e=this.__data__=new io(t);this.size=e.size}os.prototype.clear=ao,os.prototype.delete=oo,os.prototype.get=so,os.prototype.has=co,os.prototype.set=as;var ss=os,cs=function(){try{var t=Uo(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();var ls=function(t,e,n){"__proto__"==e&&cs?cs(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var As=function(t,e,n){(void 0!==n&&!qa(t[e],n)||void 0===n&&!(e in t))&&ls(t,e,n)};var us=function(t){return function(e,n,r){for(var i=-1,a=Object(e),o=r(e),s=o.length;s--;){var c=o[t?s:++i];if(!1===n(a[c],c,a))break}return e}}(),hs=r((function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,i=r&&r.exports===n?uo.Buffer:void 0,a=i?i.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=a?a(n):new t.constructor(n);return t.copy(r),r}})),fs=uo.Uint8Array;var ds=function(t){var e=new t.constructor(t.byteLength);return new fs(e).set(new fs(t)),e};var ps=function(t,e){var n=e?ds(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};var gs=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e},ms=Object.create,ys=function(){function t(){}return function(e){if(!Eo(e))return{};if(ms)return ms(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();var vs=function(t,e){return function(n){return t(e(n))}},bs=vs(Object.getPrototypeOf,Object),_s=Object.prototype;var ws=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||_s)};var Es=function(t){return"function"!=typeof t.constructor||ws(t)?{}:ys(bs(t))};var Cs=function(t){return null!=t&&"object"==typeof t};var xs=function(t){return Cs(t)&&"[object Arguments]"==wo(t)},Bs=Object.prototype,Ts=Bs.hasOwnProperty,ks=Bs.propertyIsEnumerable,Ss=xs(function(){return arguments}())?xs:function(t){return Cs(t)&&Ts.call(t,"callee")&&!ks.call(t,"callee")},Is=Array.isArray;var Ls=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Fs=function(t){return null!=t&&Ls(t.length)&&!Co(t)};var Ns=function(t){return Cs(t)&&Fs(t)};var Os=function(){return!1},Ds=r((function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,i=r&&r.exports===n?uo.Buffer:void 0,a=(i?i.isBuffer:void 0)||Os;t.exports=a})),Ms=Function.prototype,Rs=Object.prototype,Us=Ms.toString,Ps=Rs.hasOwnProperty,Hs=Us.call(Object);var Qs=function(t){if(!Cs(t)||"[object Object]"!=wo(t))return!1;var e=bs(t);if(null===e)return!0;var n=Ps.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Us.call(n)==Hs},Gs={};Gs["[object Float32Array]"]=Gs["[object Float64Array]"]=Gs["[object Int8Array]"]=Gs["[object Int16Array]"]=Gs["[object Int32Array]"]=Gs["[object Uint8Array]"]=Gs["[object Uint8ClampedArray]"]=Gs["[object Uint16Array]"]=Gs["[object Uint32Array]"]=!0,Gs["[object Arguments]"]=Gs["[object Array]"]=Gs["[object ArrayBuffer]"]=Gs["[object Boolean]"]=Gs["[object DataView]"]=Gs["[object Date]"]=Gs["[object Error]"]=Gs["[object Function]"]=Gs["[object Map]"]=Gs["[object Number]"]=Gs["[object Object]"]=Gs["[object RegExp]"]=Gs["[object Set]"]=Gs["[object String]"]=Gs["[object WeakMap]"]=!1;var js=function(t){return Cs(t)&&Ls(t.length)&&!!Gs[wo(t)]};var $s=function(t){return function(e){return t(e)}},Ks=r((function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,i=r&&r.exports===n&&lo.process,a=function(){try{var t=r&&r.require&&r.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=a})),Ys=Ks&&Ks.isTypedArray,zs=Ys?$s(Ys):js;var Ws=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},Vs=Object.prototype.hasOwnProperty;var qs=function(t,e,n){var r=t[e];Vs.call(t,e)&&qa(r,n)&&(void 0!==n||e in t)||ls(t,e,n)};var Xs=function(t,e,n,r){var i=!n;n||(n={});for(var a=-1,o=e.length;++a<o;){var s=e[a],c=r?r(n[s],t[s],s,n,t):void 0;void 0===c&&(c=t[s]),i?ls(n,s,c):qs(n,s,c)}return n};var Js=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},Zs=/^(?:0|[1-9]\d*)$/;var tc=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Zs.test(t))&&t>-1&&t%1==0&&t<e},ec=Object.prototype.hasOwnProperty;var nc=function(t,e){var n=Is(t),r=!n&&Ss(t),i=!n&&!r&&Ds(t),a=!n&&!r&&!i&&zs(t),o=n||r||i||a,s=o?Js(t.length,String):[],c=s.length;for(var l in t)!e&&!ec.call(t,l)||o&&("length"==l||i&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||tc(l,c))||s.push(l);return s};var rc=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e},ic=Object.prototype.hasOwnProperty;var ac=function(t){if(!Eo(t))return rc(t);var e=ws(t),n=[];for(var r in t)("constructor"!=r||!e&&ic.call(t,r))&&n.push(r);return n};var oc=function(t){return Fs(t)?nc(t,!0):ac(t)};var sc=function(t){return Xs(t,oc(t))};var cc=function(t,e,n,r,i,a,o){var s=Ws(t,n),c=Ws(e,n),l=o.get(c);if(l)As(t,n,l);else{var A=a?a(s,c,n+"",t,e,o):void 0,u=void 0===A;if(u){var h=Is(c),f=!h&&Ds(c),d=!h&&!f&&zs(c);A=c,h||f||d?Is(s)?A=s:Ns(s)?A=gs(s):f?(u=!1,A=hs(c,!0)):d?(u=!1,A=ps(c,!0)):A=[]:Qs(c)||Ss(c)?(A=s,Ss(s)?A=sc(s):Eo(s)&&!Co(s)||(A=Es(c))):u=!1}u&&(o.set(c,A),i(A,c,r,a,o),o.delete(c)),As(t,n,A)}};var lc=function t(e,n,r,i,a){e!==n&&us(n,(function(o,s){if(a||(a=new ss),Eo(o))cc(e,n,s,r,t,i,a);else{var c=i?i(Ws(e,s),o,s+"",e,n,a):void 0;void 0===c&&(c=o),As(e,s,c)}}),oc)};var Ac=function(t){return t};var uc=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},hc=Math.max;var fc=function(t,e,n){return e=hc(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,a=hc(r.length-e,0),o=Array(a);++i<a;)o[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=n(o),uc(t,this,s)}};var dc=function(t){return function(){return t}},pc=cs?function(t,e){return cs(t,"toString",{configurable:!0,enumerable:!1,value:dc(e),writable:!0})}:Ac,gc=Date.now;var mc=function(t){var e=0,n=0;return function(){var r=gc(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(pc);var yc=function(t,e){return mc(fc(t,e,Ac),t+"")};var vc=function(t,e,n){if(!Eo(n))return!1;var r=typeof e;return!!("number"==r?Fs(n)&&tc(e,n.length):"string"==r&&e in n)&&qa(n[e],t)};var bc=function(t){return yc((function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,o&&vc(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var s=n[r];s&&t(e,s,r,a)}return e}))}((function(t,e,n,r){lc(t,e,n,r)})),_c=Gr,wc=Me.indexOf,Ec=b([].indexOf),Cc=!!Ec&&1/Ec([1],1,-0)<0,xc=Mi("indexOf");Xt({target:"Array",proto:!0,forced:Cc||!xc},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return Cc?Ec(this,t,e)||0:wc(this,t,e)}});var Bc=Wr("Array").indexOf,Tc=Array.prototype,kc=function(t){var e=t.indexOf;return t===Tc||G(Tc,t)&&e===Tc.indexOf?Bc:e},Sc=kc,Ic=hn,Lc=r((function(t){t.exports=function(t,e){if(null==t)return{};var n,r,i={},a=Ic(t);for(r=0;r<a.length;r++)n=a[r],Sc(e).call(e,n)>=0||(i[n]=t[n]);return i},t.exports.__esModule=!0,t.exports.default=t.exports}));n(Lc);var Fc=n(r((function(t){t.exports=function(t,e){if(null==t)return{};var n,r,i=Lc(t,e);if(_c){var a=_c(t);for(r=0;r<a.length;r++)n=a[r],Sc(e).call(e,n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i},t.exports.__esModule=!0,t.exports.default=t.exports}))),Nc=Object.assign,Oc=Object.defineProperty,Dc=b([].concat),Mc=!Nc||A((function(){if(w&&1!==Nc({b:1},Nc(Oc({},"a",{enumerable:!0,get:function(){Oc(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=Nc({},t)[n]||"abcdefghijklmnopqrst"!=Ge(Nc({},e)).join("")}))?function(t,e){for(var n=lt(t),r=arguments.length,i=1,a=xn.f,o=T.f;r>i;)for(var s,c=O(arguments[i++]),l=a?Dc(Ge(c),a(c)):Ge(c),A=l.length,u=0;A>u;)s=l[u++],w&&!C(o,c,s)||(n[s]=c[s]);return n}:Nc;Xt({target:"Object",stat:!0,arity:2,forced:Object.assign!==Mc},{assign:Mc});var Rc,Uc=P.Object.assign,Pc=Uc,Hc="\t\n\v\f\r    \u2028\u2029\ufeff",Qc=b("".replace),Gc="["+Hc+"]",jc=RegExp("^"+Gc+Gc+"*"),$c=RegExp(Gc+Gc+"*$"),Kc=function(t){return function(e){var n=pn(M(e));return 1&t&&(n=Qc(n,jc,"")),2&t&&(n=Qc(n,$c,"")),n}},Yc={start:Kc(1),end:Kc(2),trim:Kc(3)},zc=li.PROPER,Wc=Yc.trim;Xt({target:"String",proto:!0,forced:(Rc="trim",A((function(){return!!Hc[Rc]()||"…"!=="…"[Rc]()||zc&&Hc[Rc].name!==Rc})))},{trim:function(){return Wc(this)}});var Vc=Wr("String").trim,qc=String.prototype,Xc=function(t){var e=t.trim;return"string"==typeof t||t===qc||G(qc,t)&&e===qc.trim?Vc:e},Jc=function(t,e,n){var r,i;jt(t);try{if(!(r=rt(t,"return"))){if("throw"===e)throw n;return n}r=C(r,t)}catch(t){i=!0,r=t}if("throw"===e)throw n;if(i)throw r;return jt(r),n},Zc=function(t,e,n,r){try{return r?e(jt(n)[0],n[1]):e(n)}catch(e){Jc(t,"throw",e)}},tl=bt("iterator"),el=Array.prototype,nl=function(t){return void 0!==t&&(ai.Array===t||el[tl]===t)},rl=bt("iterator"),il=function(t){if(null!=t)return rt(t,rl)||rt(t,"@@iterator")||ai[Ae(t)]},al=l.TypeError,ol=function(t,e){var n=arguments.length<2?il(t):e;if(nt(n))return jt(C(n,t));throw al(tt(t)+" is not iterable")},sl=l.Array,cl=function(t){var e=lt(t),n=we(this),r=arguments.length,i=r>1?arguments[1]:void 0,a=void 0!==i;a&&(i=Pt(i,r>2?arguments[2]:void 0));var o,s,c,l,A,u,h=il(e),f=0;if(!h||this==sl&&nl(h))for(o=Oe(e),s=n?new this(o):sl(o);o>f;f++)u=a?i(e[f],f):e[f],yn(s,f,u);else for(A=(l=ol(e,h)).next,s=n?new this:[];!(c=C(A,l)).done;f++)u=a?Zc(l,i,[c.value,f],!0):c.value,yn(s,f,u);return s.length=f,s},ll=bt("iterator"),Al=!1;try{var ul=0,hl={next:function(){return{done:!!ul++}},return:function(){Al=!0}};hl[ll]=function(){return this},Array.from(hl,(function(){throw 2}))}catch(t){}var fl=function(t,e){if(!e&&!Al)return!1;var n=!1;try{var r={};r[ll]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},dl=!fl((function(t){Array.from(t)}));Xt({target:"Array",stat:!0,forced:dl},{from:cl});var pl=P.Array.from,gl=pl,ml=bt("match"),yl=l.TypeError,vl=function(t){if(function(t){var e;return U(t)&&(void 0!==(e=t[ml])?!!e:"RegExp"==L(t))}(t))throw yl("The method doesn't accept regular expressions");return t},bl=bt("match"),_l=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[bl]=!1,"/./"[t](e)}catch(t){}}return!1},wl=b("".startsWith),El=b("".slice),Cl=Math.min,xl=_l("startsWith");Xt({target:"String",proto:!0,forced:!xl},{startsWith:function(t){var e=pn(M(this));vl(t);var n=Ne(Cl(arguments.length>1?arguments[1]:void 0,e.length)),r=pn(t);return wl?wl(e,r,n):El(e,n,n+r.length)===r}});var Bl=Wr("String").startsWith,Tl=String.prototype,kl=function(t){var e=t.startsWith;return"string"==typeof t||t===Tl||G(Tl,t)&&e===Tl.startsWith?Bl:e},Sl=Xn.find,Il=!0;"find"in[]&&Array(1).find((function(){Il=!1})),Xt({target:"Array",proto:!0,forced:Il},{find:function(t){return Sl(this,t,arguments.length>1?arguments[1]:void 0)}});var Ll=Wr("Array").find,Fl=Array.prototype,Nl=function(t){var e=t.find;return t===Fl||G(Fl,t)&&e===Fl.find?Ll:e},Ol=r((function(t,e){t.exports=function(){var t=navigator.userAgent,e=navigator.platform,n=/gecko\/\d/i.test(t),r=/MSIE \d/.test(t),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),a=/Edge\/(\d+)/.exec(t),o=r||i||a,s=o&&(r?document.documentMode||6:+(a||i)[1]),c=!a&&/WebKit\//.test(t),l=c&&/Qt\/\d+\.\d+/.test(t),A=!a&&/Chrome\//.test(t),u=/Opera\//.test(t),h=/Apple Computer/.test(navigator.vendor),f=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),d=/PhantomJS/.test(t),p=!a&&/AppleWebKit/.test(t)&&/Mobile\/\w+/.test(t),g=/Android/.test(t),m=p||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),y=p||/Mac/.test(e),v=/\bCrOS\b/.test(t),b=/win/i.test(e),_=u&&t.match(/Version\/(\d*\.\d*)/);_&&(_=Number(_[1])),_&&_>=15&&(u=!1,c=!0);var w=y&&(l||u&&(null==_||_<12.11)),E=n||o&&s>=9;function C(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var x,B=function(t,e){var n=t.className,r=C(e).exec(n);if(r){var i=n.slice(r.index+r[0].length);t.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function T(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function k(t,e){return T(t).appendChild(e)}function S(t,e,n,r){var i=document.createElement(t);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof e)i.appendChild(document.createTextNode(e));else if(e)for(var a=0;a<e.length;++a)i.appendChild(e[a]);return i}function I(t,e,n,r){var i=S(t,e,n,r);return i.setAttribute("role","presentation"),i}function L(t,e){if(3==e.nodeType&&(e=e.parentNode),t.contains)return t.contains(e);do{if(11==e.nodeType&&(e=e.host),e==t)return!0}while(e=e.parentNode)}function F(){var t;try{t=document.activeElement}catch(e){t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function N(t,e){var n=t.className;C(e).test(n)||(t.className+=(n?" ":"")+e)}function O(t,e){for(var n=t.split(" "),r=0;r<n.length;r++)n[r]&&!C(n[r]).test(e)&&(e+=" "+n[r]);return e}x=document.createRange?function(t,e,n,r){var i=document.createRange();return i.setEnd(r||t,n),i.setStart(t,e),i}:function(t,e,n){var r=document.body.createTextRange();try{r.moveToElementText(t.parentNode)}catch(t){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",e),r};var D=function(t){t.select()};function M(t){var e=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,e)}}function R(t,e,n){for(var r in e||(e={}),t)!t.hasOwnProperty(r)||!1===n&&e.hasOwnProperty(r)||(e[r]=t[r]);return e}function U(t,e,n,r,i){null==e&&-1==(e=t.search(/[^\s\u00a0]/))&&(e=t.length);for(var a=r||0,o=i||0;;){var s=t.indexOf("\t",a);if(s<0||s>=e)return o+(e-a);o+=s-a,o+=n-o%n,a=s+1}}p?D=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:o&&(D=function(t){try{t.select()}catch(t){}});var P=function(){this.id=null,this.f=null,this.time=0,this.handler=M(this.onTimeout,this)};function H(t,e){for(var n=0;n<t.length;++n)if(t[n]==e)return n;return-1}P.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},P.prototype.set=function(t,e){this.f=e;var n=+new Date+t;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=n)};var Q={toString:function(){return"CodeMirror.Pass"}},G={scroll:!1},j={origin:"*mouse"},$={origin:"+move"};function K(t,e,n){for(var r=0,i=0;;){var a=t.indexOf("\t",r);-1==a&&(a=t.length);var o=a-r;if(a==t.length||i+o>=e)return r+Math.min(o,e-i);if(i+=a-r,r=a+1,(i+=n-i%n)>=e)return r}}var Y=[""];function z(t){for(;Y.length<=t;)Y.push(W(Y)+" ");return Y[t]}function W(t){return t[t.length-1]}function V(t,e){for(var n=[],r=0;r<t.length;r++)n[r]=e(t[r],r);return n}function q(){}function X(t,e){var n;return Object.create?n=Object.create(t):(q.prototype=t,n=new q),e&&R(e,n),n}var J=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Z(t){return/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||J.test(t))}function tt(t,e){return e?!!(e.source.indexOf("\\w")>-1&&Z(t))||e.test(t):Z(t)}function et(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var nt=/[\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 rt(t){return t.charCodeAt(0)>=768&&nt.test(t)}function it(t,e,n){for(;(n<0?e>0:e<t.length)&&rt(t.charAt(e));)e+=n;return e}function at(t,e,n){for(var r=e>n?-1:1;;){if(e==n)return e;var i=(e+n)/2,a=r<0?Math.ceil(i):Math.floor(i);if(a==e)return t(a)?e:n;t(a)?n=a:e=a+r}}var ot=null;function st(t,e,n){var r;ot=null;for(var i=0;i<t.length;++i){var a=t[i];if(a.from<e&&a.to>e)return i;a.to==e&&(a.from!=a.to&&"before"==n?r=i:ot=i),a.from==e&&(a.from!=a.to&&"before"!=n?r=i:ot=i)}return null!=r?r:ot}var ct=function(){var t=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,e=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function a(t,e,n){this.level=t,this.from=e,this.to=n}return function(o,s){var c="ltr"==s?"L":"R";if(0==o.length||"ltr"==s&&!t.test(o))return!1;for(var l,A=o.length,u=[],h=0;h<A;++h)u.push((l=o.charCodeAt(h))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(l):1424<=l&&l<=1524?"R":1536<=l&&l<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(l-1536):1774<=l&&l<=2220?"r":8192<=l&&l<=8203?"w":8204==l?"b":"L");for(var f=0,d=c;f<A;++f){var p=u[f];"m"==p?u[f]=d:d=p}for(var g=0,m=c;g<A;++g){var y=u[g];"1"==y&&"r"==m?u[g]="n":n.test(y)&&(m=y,"r"==y&&(u[g]="R"))}for(var v=1,b=u[0];v<A-1;++v){var _=u[v];"+"==_&&"1"==b&&"1"==u[v+1]?u[v]="1":","!=_||b!=u[v+1]||"1"!=b&&"n"!=b||(u[v]=b),b=_}for(var w=0;w<A;++w){var E=u[w];if(","==E)u[w]="N";else if("%"==E){var C=void 0;for(C=w+1;C<A&&"%"==u[C];++C);for(var x=w&&"!"==u[w-1]||C<A&&"1"==u[C]?"1":"N",B=w;B<C;++B)u[B]=x;w=C-1}}for(var T=0,k=c;T<A;++T){var S=u[T];"L"==k&&"1"==S?u[T]="L":n.test(S)&&(k=S)}for(var I=0;I<A;++I)if(e.test(u[I])){var L=void 0;for(L=I+1;L<A&&e.test(u[L]);++L);for(var F="L"==(I?u[I-1]:c),N=F==("L"==(L<A?u[L]:c))?F?"L":"R":c,O=I;O<L;++O)u[O]=N;I=L-1}for(var D,M=[],R=0;R<A;)if(r.test(u[R])){var U=R;for(++R;R<A&&r.test(u[R]);++R);M.push(new a(0,U,R))}else{var P=R,H=M.length,Q="rtl"==s?1:0;for(++R;R<A&&"L"!=u[R];++R);for(var G=P;G<R;)if(i.test(u[G])){P<G&&(M.splice(H,0,new a(1,P,G)),H+=Q);var j=G;for(++G;G<R&&i.test(u[G]);++G);M.splice(H,0,new a(2,j,G)),H+=Q,P=G}else++G;P<R&&M.splice(H,0,new a(1,P,R))}return"ltr"==s&&(1==M[0].level&&(D=o.match(/^\s+/))&&(M[0].from=D[0].length,M.unshift(new a(0,0,D[0].length))),1==W(M).level&&(D=o.match(/\s+$/))&&(W(M).to-=D[0].length,M.push(new a(0,A-D[0].length,A)))),"rtl"==s?M.reverse():M}}();function lt(t,e){var n=t.order;return null==n&&(n=t.order=ct(t.text,e)),n}var At=[],ut=function(t,e,n){if(t.addEventListener)t.addEventListener(e,n,!1);else if(t.attachEvent)t.attachEvent("on"+e,n);else{var r=t._handlers||(t._handlers={});r[e]=(r[e]||At).concat(n)}};function ht(t,e){return t._handlers&&t._handlers[e]||At}function ft(t,e,n){if(t.removeEventListener)t.removeEventListener(e,n,!1);else if(t.detachEvent)t.detachEvent("on"+e,n);else{var r=t._handlers,i=r&&r[e];if(i){var a=H(i,n);a>-1&&(r[e]=i.slice(0,a).concat(i.slice(a+1)))}}}function dt(t,e){var n=ht(t,e);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function pt(t,e,n){return"string"==typeof e&&(e={type:e,preventDefault:function(){this.defaultPrevented=!0}}),dt(t,n||e.type,t,e),_t(e)||e.codemirrorIgnore}function gt(t){var e=t._handlers&&t._handlers.cursorActivity;if(e)for(var n=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),r=0;r<e.length;++r)-1==H(n,e[r])&&n.push(e[r])}function mt(t,e){return ht(t,e).length>0}function yt(t){t.prototype.on=function(t,e){ut(this,t,e)},t.prototype.off=function(t,e){ft(this,t,e)}}function vt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function bt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function _t(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function wt(t){vt(t),bt(t)}function Et(t){return t.target||t.srcElement}function Ct(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),y&&t.ctrlKey&&1==e&&(e=3),e}var xt,Bt,Tt=function(){if(o&&s<9)return!1;var t=S("div");return"draggable"in t||"dragDrop"in t}();function kt(t){if(null==xt){var e=S("span","");k(t,S("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(xt=e.offsetWidth<=1&&e.offsetHeight>2&&!(o&&s<8))}var n=xt?S("span",""):S("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function St(t){if(null!=Bt)return Bt;var e=k(t,document.createTextNode("AخA")),n=x(e,0,1).getBoundingClientRect(),r=x(e,1,2).getBoundingClientRect();return T(t),!(!n||n.left==n.right)&&(Bt=r.right-n.right<3)}var It=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,n=[],r=t.length;e<=r;){var i=t.indexOf("\n",e);-1==i&&(i=t.length);var a=t.slice(e,"\r"==t.charAt(i-1)?i-1:i),o=a.indexOf("\r");-1!=o?(n.push(a.slice(0,o)),e+=o+1):(n.push(a),e=i+1)}return n}:function(t){return t.split(/\r\n?|\n/)},Lt=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(t){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(t){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},Ft=function(){var t=S("div");return"oncopy"in t||(t.setAttribute("oncopy","return;"),"function"==typeof t.oncopy)}(),Nt=null,Ot={},Dt={};function Mt(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),Ot[t]=e}function Rt(t){if("string"==typeof t&&Dt.hasOwnProperty(t))t=Dt[t];else if(t&&"string"==typeof t.name&&Dt.hasOwnProperty(t.name)){var e=Dt[t.name];"string"==typeof e&&(e={name:e}),(t=X(e,t)).name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Rt("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Rt("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Ut(t,e){e=Rt(e);var n=Ot[e.name];if(!n)return Ut(t,"text/plain");var r=n(t,e);if(Pt.hasOwnProperty(e.name)){var i=Pt[e.name];for(var a in i)i.hasOwnProperty(a)&&(r.hasOwnProperty(a)&&(r["_"+a]=r[a]),r[a]=i[a])}if(r.name=e.name,e.helperType&&(r.helperType=e.helperType),e.modeProps)for(var o in e.modeProps)r[o]=e.modeProps[o];return r}var Pt={};function Ht(t,e){R(e,Pt.hasOwnProperty(t)?Pt[t]:Pt[t]={})}function Qt(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var r in e){var i=e[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Gt(t,e){for(var n;t.innerMode&&(n=t.innerMode(e))&&n.mode!=t;)e=n.state,t=n.mode;return n||{mode:t,state:e}}function jt(t,e,n){return!t.startState||t.startState(e,n)}var $t=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Kt(t,e){if((e-=t.first)<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");for(var n=t;!n.lines;)for(var r=0;;++r){var i=n.children[r],a=i.chunkSize();if(e<a){n=i;break}e-=a}return n.lines[e]}function Yt(t,e,n){var r=[],i=e.line;return t.iter(e.line,n.line+1,(function(t){var a=t.text;i==n.line&&(a=a.slice(0,n.ch)),i==e.line&&(a=a.slice(e.ch)),r.push(a),++i})),r}function zt(t,e,n){var r=[];return t.iter(e,n,(function(t){r.push(t.text)})),r}function Wt(t,e){var n=e-t.height;if(n)for(var r=t;r;r=r.parent)r.height+=n}function Vt(t){if(null==t.parent)return null;for(var e=t.parent,n=H(e.lines,t),r=e.parent;r;e=r,r=r.parent)for(var i=0;r.children[i]!=e;++i)n+=r.children[i].chunkSize();return n+e.first}function qt(t,e){var n=t.first;t:do{for(var r=0;r<t.children.length;++r){var i=t.children[r],a=i.height;if(e<a){t=i;continue t}e-=a,n+=i.chunkSize()}return n}while(!t.lines);for(var o=0;o<t.lines.length;++o){var s=t.lines[o].height;if(e<s)break;e-=s}return n+o}function Xt(t,e){return e>=t.first&&e<t.first+t.size}function Jt(t,e){return String(t.lineNumberFormatter(e+t.firstLineNumber))}function Zt(t,e,n){if(void 0===n&&(n=null),!(this instanceof Zt))return new Zt(t,e,n);this.line=t,this.ch=e,this.sticky=n}function te(t,e){return t.line-e.line||t.ch-e.ch}function ee(t,e){return t.sticky==e.sticky&&0==te(t,e)}function ne(t){return Zt(t.line,t.ch)}function re(t,e){return te(t,e)<0?e:t}function ie(t,e){return te(t,e)<0?t:e}function ae(t,e){return Math.max(t.first,Math.min(e,t.first+t.size-1))}function oe(t,e){if(e.line<t.first)return Zt(t.first,0);var n=t.first+t.size-1;return e.line>n?Zt(n,Kt(t,n).text.length):function(t,e){var n=t.ch;return null==n||n>e?Zt(t.line,e):n<0?Zt(t.line,0):t}(e,Kt(t,e.line).text.length)}function se(t,e){for(var n=[],r=0;r<e.length;r++)n[r]=oe(t,e[r]);return n}$t.prototype.eol=function(){return this.pos>=this.string.length},$t.prototype.sol=function(){return this.pos==this.lineStart},$t.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$t.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},$t.prototype.eat=function(t){var e=this.string.charAt(this.pos);if("string"==typeof t?e==t:e&&(t.test?t.test(e):t(e)))return++this.pos,e},$t.prototype.eatWhile=function(t){for(var e=this.pos;this.eat(t););return this.pos>e},$t.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},$t.prototype.skipToEnd=function(){this.pos=this.string.length},$t.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},$t.prototype.backUp=function(t){this.pos-=t},$t.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=U(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?U(this.string,this.lineStart,this.tabSize):0)},$t.prototype.indentation=function(){return U(this.string,null,this.tabSize)-(this.lineStart?U(this.string,this.lineStart,this.tabSize):0)},$t.prototype.match=function(t,e,n){if("string"!=typeof t){var r=this.string.slice(this.pos).match(t);return r&&r.index>0?null:(r&&!1!==e&&(this.pos+=r[0].length),r)}var i=function(t){return n?t.toLowerCase():t};if(i(this.string.substr(this.pos,t.length))==i(t))return!1!==e&&(this.pos+=t.length),!0},$t.prototype.current=function(){return this.string.slice(this.start,this.pos)},$t.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},$t.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},$t.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var ce=function(t,e){this.state=t,this.lookAhead=e},le=function(t,e,n,r){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function Ae(t,e,n,r){var i=[t.state.modeGen],a={};ve(t,e.text,t.doc.mode,n,(function(t,e){return i.push(t,e)}),a,r);for(var o=n.state,s=function(r){n.baseTokens=i;var s=t.state.overlays[r],c=1,l=0;n.state=!0,ve(t,e.text,s.mode,n,(function(t,e){for(var n=c;l<t;){var r=i[c];r>t&&i.splice(c,1,t,i[c+1],r),c+=2,l=Math.min(t,r)}if(e)if(s.opaque)i.splice(n,c-n,t,"overlay "+e),c=n+2;else for(;n<c;n+=2){var a=i[n+1];i[n+1]=(a?a+" ":"")+"overlay "+e}}),a),n.state=o,n.baseTokens=null,n.baseTokenPos=1},c=0;c<t.state.overlays.length;++c)s(c);return{styles:i,classes:a.bgClass||a.textClass?a:null}}function ue(t,e,n){if(!e.styles||e.styles[0]!=t.state.modeGen){var r=he(t,Vt(e)),i=e.text.length>t.options.maxHighlightLength&&Qt(t.doc.mode,r.state),a=Ae(t,e,r);i&&(r.state=i),e.stateAfter=r.save(!i),e.styles=a.styles,a.classes?e.styleClasses=a.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function he(t,e,n){var r=t.doc,i=t.display;if(!r.mode.startState)return new le(r,!0,e);var a=function(t,e,n){for(var r,i,a=t.doc,o=n?-1:e-(t.doc.mode.innerMode?1e3:100),s=e;s>o;--s){if(s<=a.first)return a.first;var c=Kt(a,s-1),l=c.stateAfter;if(l&&(!n||s+(l instanceof ce?l.lookAhead:0)<=a.modeFrontier))return s;var A=U(c.text,null,t.options.tabSize);(null==i||r>A)&&(i=s-1,r=A)}return i}(t,e,n),o=a>r.first&&Kt(r,a-1).stateAfter,s=o?le.fromSaved(r,o,a):new le(r,jt(r.mode),a);return r.iter(a,e,(function(n){fe(t,n.text,s);var r=s.line;n.stateAfter=r==e-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function fe(t,e,n,r){var i=t.doc.mode,a=new $t(e,t.options.tabSize,n);for(a.start=a.pos=r||0,""==e&&de(i,n.state);!a.eol();)pe(i,a,n.state),a.start=a.pos}function de(t,e){if(t.blankLine)return t.blankLine(e);if(t.innerMode){var n=Gt(t,e);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function pe(t,e,n,r){for(var i=0;i<10;i++){r&&(r[0]=Gt(t,n).mode);var a=t.token(e,n);if(e.pos>e.start)return a}throw new Error("Mode "+t.name+" failed to advance stream.")}le.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},le.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},le.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},le.fromSaved=function(t,e,n){return e instanceof ce?new le(t,Qt(t.mode,e.state),n,e.lookAhead):new le(t,Qt(t.mode,e),n)},le.prototype.save=function(t){var e=!1!==t?Qt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ce(e,this.maxLookAhead):e};var ge=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n};function me(t,e,n,r){var i,a,o=t.doc,s=o.mode,c=Kt(o,(e=oe(o,e)).line),l=he(t,e.line,n),A=new $t(c.text,t.options.tabSize,l);for(r&&(a=[]);(r||A.pos<e.ch)&&!A.eol();)A.start=A.pos,i=pe(s,A,l.state),r&&a.push(new ge(A,i,Qt(o.mode,l.state)));return r?a:new ge(A,i,l.state)}function ye(t,e){if(t)for(;;){var n=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;t=t.slice(0,n.index)+t.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==e[r]?e[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(e[r])||(e[r]+=" "+n[2])}return t}function ve(t,e,n,r,i,a,o){var s=n.flattenSpans;null==s&&(s=t.options.flattenSpans);var c,l=0,A=null,u=new $t(e,t.options.tabSize,r),h=t.options.addModeClass&&[null];for(""==e&&ye(de(n,r.state),a);!u.eol();){if(u.pos>t.options.maxHighlightLength?(s=!1,o&&fe(t,e,r,u.pos),u.pos=e.length,c=null):c=ye(pe(n,u,r.state,h),a),h){var f=h[0].name;f&&(c="m-"+(c?f+" "+c:f))}if(!s||A!=c){for(;l<u.start;)i(l=Math.min(u.start,l+5e3),A);A=c}u.start=u.pos}for(;l<u.pos;){var d=Math.min(u.pos,l+5e3);i(d,A),l=d}}var be=!1,_e=!1;function we(t,e,n){this.marker=t,this.from=e,this.to=n}function Ee(t,e){if(t)for(var n=0;n<t.length;++n){var r=t[n];if(r.marker==e)return r}}function Ce(t,e){for(var n,r=0;r<t.length;++r)t[r]!=e&&(n||(n=[])).push(t[r]);return n}function xe(t,e){if(e.full)return null;var n=Xt(t,e.from.line)&&Kt(t,e.from.line).markedSpans,r=Xt(t,e.to.line)&&Kt(t,e.to.line).markedSpans;if(!n&&!r)return null;var i=e.from.ch,a=e.to.ch,o=0==te(e.from,e.to),s=function(t,e,n){var r;if(t)for(var i=0;i<t.length;++i){var a=t[i],o=a.marker;if(null==a.from||(o.inclusiveLeft?a.from<=e:a.from<e)||a.from==e&&"bookmark"==o.type&&(!n||!a.marker.insertLeft)){var s=null==a.to||(o.inclusiveRight?a.to>=e:a.to>e);(r||(r=[])).push(new we(o,a.from,s?null:a.to))}}return r}(n,i,o),c=function(t,e,n){var r;if(t)for(var i=0;i<t.length;++i){var a=t[i],o=a.marker;if(null==a.to||(o.inclusiveRight?a.to>=e:a.to>e)||a.from==e&&"bookmark"==o.type&&(!n||a.marker.insertLeft)){var s=null==a.from||(o.inclusiveLeft?a.from<=e:a.from<e);(r||(r=[])).push(new we(o,s?null:a.from-e,null==a.to?null:a.to-e))}}return r}(r,a,o),l=1==e.text.length,A=W(e.text).length+(l?i:0);if(s)for(var u=0;u<s.length;++u){var h=s[u];if(null==h.to){var f=Ee(c,h.marker);f?l&&(h.to=null==f.to?null:f.to+A):h.to=i}}if(c)for(var d=0;d<c.length;++d){var p=c[d];null!=p.to&&(p.to+=A),null==p.from?Ee(s,p.marker)||(p.from=A,l&&(s||(s=[])).push(p)):(p.from+=A,l&&(s||(s=[])).push(p))}s&&(s=Be(s)),c&&c!=s&&(c=Be(c));var g=[s];if(!l){var m,y=e.text.length-2;if(y>0&&s)for(var v=0;v<s.length;++v)null==s[v].to&&(m||(m=[])).push(new we(s[v].marker,null,null));for(var b=0;b<y;++b)g.push(m);g.push(c)}return g}function Be(t){for(var e=0;e<t.length;++e){var n=t[e];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&t.splice(e--,1)}return t.length?t:null}function Te(t){var e=t.markedSpans;if(e){for(var n=0;n<e.length;++n)e[n].marker.detachLine(t);t.markedSpans=null}}function ke(t,e){if(e){for(var n=0;n<e.length;++n)e[n].marker.attachLine(t);t.markedSpans=e}}function Se(t){return t.inclusiveLeft?-1:0}function Ie(t){return t.inclusiveRight?1:0}function Le(t,e){var n=t.lines.length-e.lines.length;if(0!=n)return n;var r=t.find(),i=e.find(),a=te(r.from,i.from)||Se(t)-Se(e);if(a)return-a;var o=te(r.to,i.to)||Ie(t)-Ie(e);return o||e.id-t.id}function Fe(t,e){var n,r=_e&&t.markedSpans;if(r)for(var i=void 0,a=0;a<r.length;++a)(i=r[a]).marker.collapsed&&null==(e?i.from:i.to)&&(!n||Le(n,i.marker)<0)&&(n=i.marker);return n}function Ne(t){return Fe(t,!0)}function Oe(t){return Fe(t,!1)}function De(t,e){var n,r=_e&&t.markedSpans;if(r)for(var i=0;i<r.length;++i){var a=r[i];a.marker.collapsed&&(null==a.from||a.from<e)&&(null==a.to||a.to>e)&&(!n||Le(n,a.marker)<0)&&(n=a.marker)}return n}function Me(t,e,n,r,i){var a=Kt(t,e),o=_e&&a.markedSpans;if(o)for(var s=0;s<o.length;++s){var c=o[s];if(c.marker.collapsed){var l=c.marker.find(0),A=te(l.from,n)||Se(c.marker)-Se(i),u=te(l.to,r)||Ie(c.marker)-Ie(i);if(!(A>=0&&u<=0||A<=0&&u>=0)&&(A<=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?te(l.to,n)>=0:te(l.to,n)>0)||A>=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?te(l.from,r)<=0:te(l.from,r)<0)))return!0}}}function Re(t){for(var e;e=Ne(t);)t=e.find(-1,!0).line;return t}function Ue(t,e){var n=Kt(t,e),r=Re(n);return n==r?e:Vt(r)}function Pe(t,e){if(e>t.lastLine())return e;var n,r=Kt(t,e);if(!He(t,r))return e;for(;n=Oe(r);)r=n.find(1,!0).line;return Vt(r)+1}function He(t,e){var n=_e&&e.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&Qe(t,e,r))return!0}}function Qe(t,e,n){if(null==n.to){var r=n.marker.find(1,!0);return Qe(t,r.line,Ee(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==e.text.length)return!0;for(var i=void 0,a=0;a<e.markedSpans.length;++a)if((i=e.markedSpans[a]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&Qe(t,e,i))return!0}function Ge(t){for(var e=0,n=(t=Re(t)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==t)break;e+=i.height}for(var a=n.parent;a;a=(n=a).parent)for(var o=0;o<a.children.length;++o){var s=a.children[o];if(s==n)break;e+=s.height}return e}function je(t){if(0==t.height)return 0;for(var e,n=t.text.length,r=t;e=Ne(r);){var i=e.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=t;e=Oe(r);){var a=e.find(0,!0);n-=r.text.length-a.from.ch,n+=(r=a.to.line).text.length-a.to.ch}return n}function $e(t){var e=t.display,n=t.doc;e.maxLine=Kt(n,n.first),e.maxLineLength=je(e.maxLine),e.maxLineChanged=!0,n.iter((function(t){var n=je(t);n>e.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)}))}var Ke=function(t,e,n){this.text=t,ke(this,e),this.height=n?n(this):1};function Ye(t){t.parent=null,Te(t)}Ke.prototype.lineNo=function(){return Vt(this)},yt(Ke);var ze={},We={};function Ve(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?We:ze;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function qe(t,e){var n=I("span",null,null,c?"padding-right: .1px":null),r={pre:I("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var i=0;i<=(e.rest?e.rest.length:0);i++){var a=i?e.rest[i-1]:e.line,o=void 0;r.pos=0,r.addToken=Je,St(t.display.measure)&&(o=lt(a,t.doc.direction))&&(r.addToken=Ze(r.addToken,o)),r.map=[],en(a,r,ue(t,a,e!=t.display.externalMeasured&&Vt(a))),a.styleClasses&&(a.styleClasses.bgClass&&(r.bgClass=O(a.styleClasses.bgClass,r.bgClass||"")),a.styleClasses.textClass&&(r.textClass=O(a.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(kt(t.display.measure))),0==i?(e.measure.map=r.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(r.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(c){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return dt(t,"renderLine",t,e.line,r.pre),r.pre.className&&(r.textClass=O(r.pre.className,r.textClass||"")),r}function Xe(t){var e=S("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function Je(t,e,n,r,i,a,c){if(e){var l,A=t.splitSpaces?function(t,e){if(t.length>1&&!/ /.test(t))return t;for(var n=e,r="",i=0;i<t.length;i++){var a=t.charAt(i);" "!=a||!n||i!=t.length-1&&32!=t.charCodeAt(i+1)||(a=" "),r+=a,n=" "==a}return r}(e,t.trailingSpace):e,u=t.cm.state.specialChars,h=!1;if(u.test(e)){l=document.createDocumentFragment();for(var f=0;;){u.lastIndex=f;var d=u.exec(e),p=d?d.index-f:e.length-f;if(p){var g=document.createTextNode(A.slice(f,f+p));o&&s<9?l.appendChild(S("span",[g])):l.appendChild(g),t.map.push(t.pos,t.pos+p,g),t.col+=p,t.pos+=p}if(!d)break;f+=p+1;var m=void 0;if("\t"==d[0]){var y=t.cm.options.tabSize,v=y-t.col%y;(m=l.appendChild(S("span",z(v),"cm-tab"))).setAttribute("role","presentation"),m.setAttribute("cm-text","\t"),t.col+=v}else"\r"==d[0]||"\n"==d[0]?((m=l.appendChild(S("span","\r"==d[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",d[0]),t.col+=1):((m=t.cm.options.specialCharPlaceholder(d[0])).setAttribute("cm-text",d[0]),o&&s<9?l.appendChild(S("span",[m])):l.appendChild(m),t.col+=1);t.map.push(t.pos,t.pos+1,m),t.pos++}}else t.col+=e.length,l=document.createTextNode(A),t.map.push(t.pos,t.pos+e.length,l),o&&s<9&&(h=!0),t.pos+=e.length;if(t.trailingSpace=32==A.charCodeAt(e.length-1),n||r||i||h||a||c){var b=n||"";r&&(b+=r),i&&(b+=i);var _=S("span",[l],b,a);if(c)for(var w in c)c.hasOwnProperty(w)&&"style"!=w&&"class"!=w&&_.setAttribute(w,c[w]);return t.content.appendChild(_)}t.content.appendChild(l)}}function Ze(t,e){return function(n,r,i,a,o,s,c){i=i?i+" cm-force-border":"cm-force-border";for(var l=n.pos,A=l+r.length;;){for(var u=void 0,h=0;h<e.length&&!((u=e[h]).to>l&&u.from<=l);h++);if(u.to>=A)return t(n,r,i,a,o,s,c);t(n,r.slice(0,u.to-l),i,a,null,s,c),a=null,r=r.slice(u.to-l),l=u.to}}}function tn(t,e,n,r){var i=!r&&n.widgetNode;i&&t.map.push(t.pos,t.pos+e,i),!r&&t.cm.display.input.needsContentAttribute&&(i||(i=t.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(t.cm.display.input.setUneditable(i),t.content.appendChild(i)),t.pos+=e,t.trailingSpace=!1}function en(t,e,n){var r=t.markedSpans,i=t.text,a=0;if(r)for(var o,s,c,l,A,u,h,f=i.length,d=0,p=1,g="",m=0;;){if(m==d){c=l=A=s="",h=null,u=null,m=1/0;for(var y=[],v=void 0,b=0;b<r.length;++b){var _=r[b],w=_.marker;if("bookmark"==w.type&&_.from==d&&w.widgetNode)y.push(w);else if(_.from<=d&&(null==_.to||_.to>d||w.collapsed&&_.to==d&&_.from==d)){if(null!=_.to&&_.to!=d&&m>_.to&&(m=_.to,l=""),w.className&&(c+=" "+w.className),w.css&&(s=(s?s+";":"")+w.css),w.startStyle&&_.from==d&&(A+=" "+w.startStyle),w.endStyle&&_.to==m&&(v||(v=[])).push(w.endStyle,_.to),w.title&&((h||(h={})).title=w.title),w.attributes)for(var E in w.attributes)(h||(h={}))[E]=w.attributes[E];w.collapsed&&(!u||Le(u.marker,w)<0)&&(u=_)}else _.from>d&&m>_.from&&(m=_.from)}if(v)for(var C=0;C<v.length;C+=2)v[C+1]==m&&(l+=" "+v[C]);if(!u||u.from==d)for(var x=0;x<y.length;++x)tn(e,0,y[x]);if(u&&(u.from||0)==d){if(tn(e,(null==u.to?f+1:u.to)-d,u.marker,null==u.from),null==u.to)return;u.to==d&&(u=!1)}}if(d>=f)break;for(var B=Math.min(f,m);;){if(g){var T=d+g.length;if(!u){var k=T>B?g.slice(0,B-d):g;e.addToken(e,k,o?o+c:c,A,d+k.length==m?l:"",s,h)}if(T>=B){g=g.slice(B-d),d=B;break}d=T,A=""}g=i.slice(a,a=n[p++]),o=Ve(n[p++],e.cm.options)}}else for(var S=1;S<n.length;S+=2)e.addToken(e,i.slice(a,a=n[S]),Ve(n[S+1],e.cm.options))}function nn(t,e,n){this.line=e,this.rest=function(t){for(var e,n;e=Oe(t);)t=e.find(1,!0).line,(n||(n=[])).push(t);return n}(e),this.size=this.rest?Vt(W(this.rest))-n+1:1,this.node=this.text=null,this.hidden=He(t,e)}function rn(t,e,n){for(var r,i=[],a=e;a<n;a=r){var o=new nn(t.doc,Kt(t.doc,a),a);r=a+o.size,i.push(o)}return i}var an=null,on=null;function sn(t,e){var n=ht(t,e);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);an?r=an.delayedCallbacks:on?r=on:(r=on=[],setTimeout(cn,0));for(var a=function(t){r.push((function(){return n[t].apply(null,i)}))},o=0;o<n.length;++o)a(o)}}function cn(){var t=on;on=null;for(var e=0;e<t.length;++e)t[e]()}function ln(t,e,n,r){for(var i=0;i<e.changes.length;i++){var a=e.changes[i];"text"==a?hn(t,e):"gutter"==a?dn(t,e,n,r):"class"==a?fn(t,e):"widget"==a&&pn(t,e,r)}e.changes=null}function An(t){return t.node==t.text&&(t.node=S("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),o&&s<8&&(t.node.style.zIndex=2)),t.node}function un(t,e){var n=t.display.externalMeasured;return n&&n.line==e.line?(t.display.externalMeasured=null,e.measure=n.measure,n.built):qe(t,e)}function hn(t,e){var n=e.text.className,r=un(t,e);e.text==e.node&&(e.node=r.pre),e.text.parentNode.replaceChild(r.pre,e.text),e.text=r.pre,r.bgClass!=e.bgClass||r.textClass!=e.textClass?(e.bgClass=r.bgClass,e.textClass=r.textClass,fn(t,e)):n&&(e.text.className=n)}function fn(t,e){!function(t,e){var n=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),e.background)n?e.background.className=n:(e.background.parentNode.removeChild(e.background),e.background=null);else if(n){var r=An(e);e.background=r.insertBefore(S("div",null,n),r.firstChild),t.display.input.setUneditable(e.background)}}(t,e),e.line.wrapClass?An(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className="");var n=e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass;e.text.className=n||""}function dn(t,e,n,r){if(e.gutter&&(e.node.removeChild(e.gutter),e.gutter=null),e.gutterBackground&&(e.node.removeChild(e.gutterBackground),e.gutterBackground=null),e.line.gutterClass){var i=An(e);e.gutterBackground=S("div",null,"CodeMirror-gutter-background "+e.line.gutterClass,"left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),t.display.input.setUneditable(e.gutterBackground),i.insertBefore(e.gutterBackground,e.text)}var a=e.line.gutterMarkers;if(t.options.lineNumbers||a){var o=An(e),s=e.gutter=S("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(t.display.input.setUneditable(s),o.insertBefore(s,e.text),e.line.gutterClass&&(s.className+=" "+e.line.gutterClass),!t.options.lineNumbers||a&&a["CodeMirror-linenumbers"]||(e.lineNumber=s.appendChild(S("div",Jt(t.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),a)for(var c=0;c<t.display.gutterSpecs.length;++c){var l=t.display.gutterSpecs[c].className,A=a.hasOwnProperty(l)&&a[l];A&&s.appendChild(S("div",[A],"CodeMirror-gutter-elt","left: "+r.gutterLeft[l]+"px; width: "+r.gutterWidth[l]+"px"))}}}function pn(t,e,n){e.alignable&&(e.alignable=null);for(var r=C("CodeMirror-linewidget"),i=e.node.firstChild,a=void 0;i;i=a)a=i.nextSibling,r.test(i.className)&&e.node.removeChild(i);mn(t,e,n)}function gn(t,e,n,r){var i=un(t,e);return e.text=e.node=i.pre,i.bgClass&&(e.bgClass=i.bgClass),i.textClass&&(e.textClass=i.textClass),fn(t,e),dn(t,e,n,r),mn(t,e,r),e.node}function mn(t,e,n){if(yn(t,e.line,e,n,!0),e.rest)for(var r=0;r<e.rest.length;r++)yn(t,e.rest[r],e,n,!1)}function yn(t,e,n,r,i){if(e.widgets)for(var a=An(n),o=0,s=e.widgets;o<s.length;++o){var c=s[o],l=S("div",[c.node],"CodeMirror-linewidget"+(c.className?" "+c.className:""));c.handleMouseEvents||l.setAttribute("cm-ignore-events","true"),vn(c,l,n,r),t.display.input.setUneditable(l),i&&c.above?a.insertBefore(l,n.gutter||n.text):a.appendChild(l),sn(c,"redraw")}}function vn(t,e,n,r){if(t.noHScroll){(n.alignable||(n.alignable=[])).push(e);var i=r.wrapperWidth;e.style.left=r.fixedPos+"px",t.coverGutter||(i-=r.gutterTotalWidth,e.style.paddingLeft=r.gutterTotalWidth+"px"),e.style.width=i+"px"}t.coverGutter&&(e.style.zIndex=5,e.style.position="relative",t.noHScroll||(e.style.marginLeft=-r.gutterTotalWidth+"px"))}function bn(t){if(null!=t.height)return t.height;var e=t.doc.cm;if(!e)return 0;if(!L(document.body,t.node)){var n="position: relative;";t.coverGutter&&(n+="margin-left: -"+e.display.gutters.offsetWidth+"px;"),t.noHScroll&&(n+="width: "+e.display.wrapper.clientWidth+"px;"),k(e.display.measure,S("div",[t.node],null,n))}return t.height=t.node.parentNode.offsetHeight}function _n(t,e){for(var n=Et(e);n!=t.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==t.sizer&&n!=t.mover)return!0}function wn(t){return t.lineSpace.offsetTop}function En(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function Cn(t){if(t.cachedPaddingH)return t.cachedPaddingH;var e=k(t.measure,S("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(t.cachedPaddingH=r),r}function xn(t){return 50-t.display.nativeBarWidth}function Bn(t){return t.display.scroller.clientWidth-xn(t)-t.display.barWidth}function Tn(t){return t.display.scroller.clientHeight-xn(t)-t.display.barHeight}function kn(t,e,n){if(t.line==e)return{map:t.measure.map,cache:t.measure.cache};for(var r=0;r<t.rest.length;r++)if(t.rest[r]==e)return{map:t.measure.maps[r],cache:t.measure.caches[r]};for(var i=0;i<t.rest.length;i++)if(Vt(t.rest[i])>n)return{map:t.measure.maps[i],cache:t.measure.caches[i],before:!0}}function Sn(t,e,n,r){return Fn(t,Ln(t,e),n,r)}function In(t,e){if(e>=t.display.viewFrom&&e<t.display.viewTo)return t.display.view[lr(t,e)];var n=t.display.externalMeasured;return n&&e>=n.lineN&&e<n.lineN+n.size?n:void 0}function Ln(t,e){var n=Vt(e),r=In(t,n);r&&!r.text?r=null:r&&r.changes&&(ln(t,r,n,ir(t)),t.curOp.forceUpdate=!0),r||(r=function(t,e){var n=Vt(e=Re(e)),r=t.display.externalMeasured=new nn(t.doc,e,n);r.lineN=n;var i=r.built=qe(t,r);return r.text=i.pre,k(t.display.lineMeasure,i.pre),r}(t,e));var i=kn(r,e,n);return{line:e,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Fn(t,e,n,r,i){e.before&&(n=-1);var a,c=n+(r||"");return e.cache.hasOwnProperty(c)?a=e.cache[c]:(e.rect||(e.rect=e.view.text.getBoundingClientRect()),e.hasHeights||(function(t,e,n){var r=t.options.lineWrapping,i=r&&Bn(t);if(!e.measure.heights||r&&e.measure.width!=i){var a=e.measure.heights=[];if(r){e.measure.width=i;for(var o=e.text.firstChild.getClientRects(),s=0;s<o.length-1;s++){var c=o[s],l=o[s+1];Math.abs(c.bottom-l.bottom)>2&&a.push((c.bottom+l.top)/2-n.top)}}a.push(n.bottom-n.top)}}(t,e.view,e.rect),e.hasHeights=!0),(a=function(t,e,n,r){var i,a=Dn(e.map,n,r),c=a.node,l=a.start,A=a.end,u=a.collapse;if(3==c.nodeType){for(var h=0;h<4;h++){for(;l&&rt(e.line.text.charAt(a.coverStart+l));)--l;for(;a.coverStart+A<a.coverEnd&&rt(e.line.text.charAt(a.coverStart+A));)++A;if((i=o&&s<9&&0==l&&A==a.coverEnd-a.coverStart?c.parentNode.getBoundingClientRect():Mn(x(c,l,A).getClientRects(),r)).left||i.right||0==l)break;A=l,l-=1,u="right"}o&&s<11&&(i=function(t,e){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(t){if(null!=Nt)return Nt;var e=k(t,S("span","x")),n=e.getBoundingClientRect(),r=x(e,0,1).getBoundingClientRect();return Nt=Math.abs(n.left-r.left)>1}(t))return e;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:e.left*n,right:e.right*n,top:e.top*r,bottom:e.bottom*r}}(t.display.measure,i))}else{var f;l>0&&(u=r="right"),i=t.options.lineWrapping&&(f=c.getClientRects()).length>1?f["right"==r?f.length-1:0]:c.getBoundingClientRect()}if(o&&s<9&&!l&&(!i||!i.left&&!i.right)){var d=c.parentNode.getClientRects()[0];i=d?{left:d.left,right:d.left+rr(t.display),top:d.top,bottom:d.bottom}:On}for(var p=i.top-e.rect.top,g=i.bottom-e.rect.top,m=(p+g)/2,y=e.view.measure.heights,v=0;v<y.length-1&&!(m<y[v]);v++);var b=v?y[v-1]:0,_=y[v],w={left:("right"==u?i.right:i.left)-e.rect.left,right:("left"==u?i.left:i.right)-e.rect.left,top:b,bottom:_};return i.left||i.right||(w.bogus=!0),t.options.singleCursorHeightPerLine||(w.rtop=p,w.rbottom=g),w}(t,e,n,r)).bogus||(e.cache[c]=a)),{left:a.left,right:a.right,top:i?a.rtop:a.top,bottom:i?a.rbottom:a.bottom}}var Nn,On={left:0,right:0,top:0,bottom:0};function Dn(t,e,n){for(var r,i,a,o,s,c,l=0;l<t.length;l+=3)if(s=t[l],c=t[l+1],e<s?(i=0,a=1,o="left"):e<c?a=1+(i=e-s):(l==t.length-3||e==c&&t[l+3]>e)&&(i=(a=c-s)-1,e>=c&&(o="right")),null!=i){if(r=t[l+2],s==c&&n==(r.insertLeft?"left":"right")&&(o=n),"left"==n&&0==i)for(;l&&t[l-2]==t[l-3]&&t[l-1].insertLeft;)r=t[2+(l-=3)],o="left";if("right"==n&&i==c-s)for(;l<t.length-3&&t[l+3]==t[l+4]&&!t[l+5].insertLeft;)r=t[(l+=3)+2],o="right";break}return{node:r,start:i,end:a,collapse:o,coverStart:s,coverEnd:c}}function Mn(t,e){var n=On;if("left"==e)for(var r=0;r<t.length&&(n=t[r]).left==n.right;r++);else for(var i=t.length-1;i>=0&&(n=t[i]).left==n.right;i--);return n}function Rn(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e<t.rest.length;e++)t.measure.caches[e]={}}function Un(t){t.display.externalMeasure=null,T(t.display.lineMeasure);for(var e=0;e<t.display.view.length;e++)Rn(t.display.view[e])}function Pn(t){Un(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Hn(){return A&&g?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Qn(){return A&&g?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Gn(t){var e=0;if(t.widgets)for(var n=0;n<t.widgets.length;++n)t.widgets[n].above&&(e+=bn(t.widgets[n]));return e}function jn(t,e,n,r,i){if(!i){var a=Gn(e);n.top+=a,n.bottom+=a}if("line"==r)return n;r||(r="local");var o=Ge(e);if("local"==r?o+=wn(t.display):o-=t.display.viewOffset,"page"==r||"window"==r){var s=t.display.lineSpace.getBoundingClientRect();o+=s.top+("window"==r?0:Qn());var c=s.left+("window"==r?0:Hn());n.left+=c,n.right+=c}return n.top+=o,n.bottom+=o,n}function $n(t,e,n){if("div"==n)return e;var r=e.left,i=e.top;if("page"==n)r-=Hn(),i-=Qn();else if("local"==n||!n){var a=t.display.sizer.getBoundingClientRect();r+=a.left,i+=a.top}var o=t.display.lineSpace.getBoundingClientRect();return{left:r-o.left,top:i-o.top}}function Kn(t,e,n,r,i){return r||(r=Kt(t.doc,e.line)),jn(t,r,Sn(t,r,e.ch,i),n)}function Yn(t,e,n,r,i,a){function o(e,o){var s=Fn(t,i,e,o?"right":"left",a);return o?s.left=s.right:s.right=s.left,jn(t,r,s,n)}r=r||Kt(t.doc,e.line),i||(i=Ln(t,r));var s=lt(r,t.doc.direction),c=e.ch,l=e.sticky;if(c>=r.text.length?(c=r.text.length,l="before"):c<=0&&(c=0,l="after"),!s)return o("before"==l?c-1:c,"before"==l);function A(t,e,n){return o(n?t-1:t,1==s[e].level!=n)}var u=st(s,c,l),h=ot,f=A(c,u,"before"==l);return null!=h&&(f.other=A(c,h,"before"!=l)),f}function zn(t,e){var n=0;e=oe(t.doc,e),t.options.lineWrapping||(n=rr(t.display)*e.ch);var r=Kt(t.doc,e.line),i=Ge(r)+wn(t.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Wn(t,e,n,r,i){var a=Zt(t,e,n);return a.xRel=i,r&&(a.outside=r),a}function Vn(t,e,n){var r=t.doc;if((n+=t.display.viewOffset)<0)return Wn(r.first,0,null,-1,-1);var i=qt(r,n),a=r.first+r.size-1;if(i>a)return Wn(r.first+r.size-1,Kt(r,a).text.length,null,1,1);e<0&&(e=0);for(var o=Kt(r,i);;){var s=Zn(t,o,i,e,n),c=De(o,s.ch+(s.xRel>0||s.outside>0?1:0));if(!c)return s;var l=c.find(1);if(l.line==i)return l;o=Kt(r,i=l.line)}}function qn(t,e,n,r){r-=Gn(e);var i=e.text.length,a=at((function(e){return Fn(t,n,e-1).bottom<=r}),i,0);return{begin:a,end:i=at((function(e){return Fn(t,n,e).top>r}),a,i)}}function Xn(t,e,n,r){return n||(n=Ln(t,e)),qn(t,e,n,jn(t,e,Fn(t,n,r),"line").top)}function Jn(t,e,n,r){return!(t.bottom<=n)&&(t.top>n||(r?t.left:t.right)>e)}function Zn(t,e,n,r,i){i-=Ge(e);var a=Ln(t,e),o=Gn(e),s=0,c=e.text.length,l=!0,A=lt(e,t.doc.direction);if(A){var u=(t.options.lineWrapping?er:tr)(t,e,n,a,A,r,i);s=(l=1!=u.level)?u.from:u.to-1,c=l?u.to:u.from-1}var h,f,d=null,p=null,g=at((function(e){var n=Fn(t,a,e);return n.top+=o,n.bottom+=o,!!Jn(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(d=e,p=n),!0)}),s,c),m=!1;if(p){var y=r-p.left<p.right-r,v=y==l;g=d+(v?0:1),f=v?"after":"before",h=y?p.left:p.right}else{l||g!=c&&g!=s||g++,f=0==g?"after":g==e.text.length?"before":Fn(t,a,g-(l?1:0)).bottom+o<=i==l?"after":"before";var b=Yn(t,Zt(n,g,f),"line",e,a);h=b.left,m=i<b.top?-1:i>=b.bottom?1:0}return Wn(n,g=it(e.text,g,1),f,m,r-h)}function tr(t,e,n,r,i,a,o){var s=at((function(s){var c=i[s],l=1!=c.level;return Jn(Yn(t,Zt(n,l?c.to:c.from,l?"before":"after"),"line",e,r),a,o,!0)}),0,i.length-1),c=i[s];if(s>0){var l=1!=c.level,A=Yn(t,Zt(n,l?c.from:c.to,l?"after":"before"),"line",e,r);Jn(A,a,o,!0)&&A.top>o&&(c=i[s-1])}return c}function er(t,e,n,r,i,a,o){var s=qn(t,e,r,o),c=s.begin,l=s.end;/\s/.test(e.text.charAt(l-1))&&l--;for(var A=null,u=null,h=0;h<i.length;h++){var f=i[h];if(!(f.from>=l||f.to<=c)){var d=Fn(t,r,1!=f.level?Math.min(l,f.to)-1:Math.max(c,f.from)).right,p=d<a?a-d+1e9:d-a;(!A||u>p)&&(A=f,u=p)}}return A||(A=i[i.length-1]),A.from<c&&(A={from:c,to:A.to,level:A.level}),A.to>l&&(A={from:A.from,to:l,level:A.level}),A}function nr(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==Nn){Nn=S("pre",null,"CodeMirror-line-like");for(var e=0;e<49;++e)Nn.appendChild(document.createTextNode("x")),Nn.appendChild(S("br"));Nn.appendChild(document.createTextNode("x"))}k(t.measure,Nn);var n=Nn.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),T(t.measure),n||1}function rr(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=S("span","xxxxxxxxxx"),n=S("pre",[e],"CodeMirror-line-like");k(t.measure,n);var r=e.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(t.cachedCharWidth=i),i||10}function ir(t){for(var e=t.display,n={},r={},i=e.gutters.clientLeft,a=e.gutters.firstChild,o=0;a;a=a.nextSibling,++o){var s=t.display.gutterSpecs[o].className;n[s]=a.offsetLeft+a.clientLeft+i,r[s]=a.clientWidth}return{fixedPos:ar(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:e.wrapper.clientWidth}}function ar(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function or(t){var e=nr(t.display),n=t.options.lineWrapping,r=n&&Math.max(5,t.display.scroller.clientWidth/rr(t.display)-3);return function(i){if(He(t.doc,i))return 0;var a=0;if(i.widgets)for(var o=0;o<i.widgets.length;o++)i.widgets[o].height&&(a+=i.widgets[o].height);return n?a+(Math.ceil(i.text.length/r)||1)*e:a+e}}function sr(t){var e=t.doc,n=or(t);e.iter((function(t){var e=n(t);e!=t.height&&Wt(t,e)}))}function cr(t,e,n,r){var i=t.display;if(!n&&"true"==Et(e).getAttribute("cm-not-content"))return null;var a,o,s=i.lineSpace.getBoundingClientRect();try{a=e.clientX-s.left,o=e.clientY-s.top}catch(t){return null}var c,l=Vn(t,a,o);if(r&&l.xRel>0&&(c=Kt(t.doc,l.line).text).length==l.ch){var A=U(c,c.length,t.options.tabSize)-c.length;l=Zt(l.line,Math.max(0,Math.round((a-Cn(t.display).left)/rr(t.display))-A))}return l}function lr(t,e){if(e>=t.display.viewTo)return null;if((e-=t.display.viewFrom)<0)return null;for(var n=t.display.view,r=0;r<n.length;r++)if((e-=n[r].size)<0)return r}function Ar(t,e,n,r){null==e&&(e=t.doc.first),null==n&&(n=t.doc.first+t.doc.size),r||(r=0);var i=t.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>e)&&(i.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=i.viewTo)_e&&Ue(t.doc,e)<i.viewTo&&hr(t);else if(n<=i.viewFrom)_e&&Pe(t.doc,n+r)>i.viewFrom?hr(t):(i.viewFrom+=r,i.viewTo+=r);else if(e<=i.viewFrom&&n>=i.viewTo)hr(t);else if(e<=i.viewFrom){var a=fr(t,n,n+r,1);a?(i.view=i.view.slice(a.index),i.viewFrom=a.lineN,i.viewTo+=r):hr(t)}else if(n>=i.viewTo){var o=fr(t,e,e,-1);o?(i.view=i.view.slice(0,o.index),i.viewTo=o.lineN):hr(t)}else{var s=fr(t,e,e,-1),c=fr(t,n,n+r,1);s&&c?(i.view=i.view.slice(0,s.index).concat(rn(t,s.lineN,c.lineN)).concat(i.view.slice(c.index)),i.viewTo+=r):hr(t)}var l=i.externalMeasured;l&&(n<l.lineN?l.lineN+=r:e<l.lineN+l.size&&(i.externalMeasured=null))}function ur(t,e,n){t.curOp.viewChanged=!0;var r=t.display,i=t.display.externalMeasured;if(i&&e>=i.lineN&&e<i.lineN+i.size&&(r.externalMeasured=null),!(e<r.viewFrom||e>=r.viewTo)){var a=r.view[lr(t,e)];if(null!=a.node){var o=a.changes||(a.changes=[]);-1==H(o,n)&&o.push(n)}}}function hr(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function fr(t,e,n,r){var i,a=lr(t,e),o=t.display.view;if(!_e||n==t.doc.first+t.doc.size)return{index:a,lineN:n};for(var s=t.display.viewFrom,c=0;c<a;c++)s+=o[c].size;if(s!=e){if(r>0){if(a==o.length-1)return null;i=s+o[a].size-e,a++}else i=s-e;e+=i,n+=i}for(;Ue(t.doc,n)!=n;){if(a==(r<0?0:o.length-1))return null;n+=r*o[a-(r<0?1:0)].size,a+=r}return{index:a,lineN:n}}function dr(t){for(var e=t.display.view,n=0,r=0;r<e.length;r++){var i=e[r];i.hidden||i.node&&!i.changes||++n}return n}function pr(t){t.display.input.showSelection(t.display.input.prepareSelection())}function gr(t,e){void 0===e&&(e=!0);for(var n=t.doc,r={},i=r.cursors=document.createDocumentFragment(),a=r.selection=document.createDocumentFragment(),o=0;o<n.sel.ranges.length;o++)if(e||o!=n.sel.primIndex){var s=n.sel.ranges[o];if(!(s.from().line>=t.display.viewTo||s.to().line<t.display.viewFrom)){var c=s.empty();(c||t.options.showCursorWhenSelecting)&&mr(t,s.head,i),c||vr(t,s,a)}}return r}function mr(t,e,n){var r=Yn(t,e,"div",null,null,!t.options.singleCursorHeightPerLine),i=n.appendChild(S("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*t.options.cursorHeight+"px",r.other){var a=n.appendChild(S("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=r.other.left+"px",a.style.top=r.other.top+"px",a.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function yr(t,e){return t.top-e.top||t.left-e.left}function vr(t,e,n){var r=t.display,i=t.doc,a=document.createDocumentFragment(),o=Cn(t.display),s=o.left,c=Math.max(r.sizerWidth,Bn(t)-r.sizer.offsetLeft)-o.right,l="ltr"==i.direction;function A(t,e,n,r){e<0&&(e=0),e=Math.round(e),r=Math.round(r),a.appendChild(S("div",null,"CodeMirror-selected","position: absolute; left: "+t+"px;\n top: "+e+"px; width: "+(null==n?c-t:n)+"px;\n height: "+(r-e)+"px"))}function u(e,n,r){var a,o,u=Kt(i,e),h=u.text.length;function f(n,r){return Kn(t,Zt(e,n),"div",u,r)}function d(e,n,r){var i=Xn(t,u,null,e),a="ltr"==n==("after"==r)?"left":"right";return f("after"==r?i.begin:i.end-(/\s/.test(u.text.charAt(i.end-1))?2:1),a)[a]}var p=lt(u,i.direction);return function(t,e,n,r){if(!t)return r(e,n,"ltr",0);for(var i=!1,a=0;a<t.length;++a){var o=t[a];(o.from<n&&o.to>e||e==n&&o.to==e)&&(r(Math.max(o.from,e),Math.min(o.to,n),1==o.level?"rtl":"ltr",a),i=!0)}i||r(e,n,"ltr")}(p,n||0,null==r?h:r,(function(t,e,i,u){var g="ltr"==i,m=f(t,g?"left":"right"),y=f(e-1,g?"right":"left"),v=null==n&&0==t,b=null==r&&e==h,_=0==u,w=!p||u==p.length-1;if(y.top-m.top<=3){var E=(l?b:v)&&w,C=(l?v:b)&&_?s:(g?m:y).left,x=E?c:(g?y:m).right;A(C,m.top,x-C,m.bottom)}else{var B,T,k,S;g?(B=l&&v&&_?s:m.left,T=l?c:d(t,i,"before"),k=l?s:d(e,i,"after"),S=l&&b&&w?c:y.right):(B=l?d(t,i,"before"):s,T=!l&&v&&_?c:m.right,k=!l&&b&&w?s:y.left,S=l?d(e,i,"after"):c),A(B,m.top,T-B,m.bottom),m.bottom<y.top&&A(s,m.bottom,null,y.top),A(k,y.top,S-k,y.bottom)}(!a||yr(m,a)<0)&&(a=m),yr(y,a)<0&&(a=y),(!o||yr(m,o)<0)&&(o=m),yr(y,o)<0&&(o=y)})),{start:a,end:o}}var h=e.from(),f=e.to();if(h.line==f.line)u(h.line,h.ch,f.ch);else{var d=Kt(i,h.line),p=Kt(i,f.line),g=Re(d)==Re(p),m=u(h.line,h.ch,g?d.text.length+1:null).end,y=u(f.line,g?0:null,f.ch).start;g&&(m.top<y.top-2?(A(m.right,m.top,null,m.bottom),A(s,y.top,y.left,y.bottom)):A(m.right,m.top,y.left-m.right,m.bottom)),m.bottom<y.top&&A(s,m.bottom,null,y.top)}n.appendChild(a)}function br(t){if(t.state.focused){var e=t.display;clearInterval(e.blinker);var n=!0;e.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?e.blinker=setInterval((function(){t.hasFocus()||Cr(t),e.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function _r(t){t.state.focused||(t.display.input.focus(),Er(t))}function wr(t){t.state.delayingBlurEvent=!0,setTimeout((function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,Cr(t))}),100)}function Er(t,e){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(dt(t,"focus",t,e),t.state.focused=!0,N(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),c&&setTimeout((function(){return t.display.input.reset(!0)}),20)),t.display.input.receivedFocus()),br(t))}function Cr(t,e){t.state.delayingBlurEvent||(t.state.focused&&(dt(t,"blur",t,e),t.state.focused=!1,B(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout((function(){t.state.focused||(t.display.shift=!1)}),150))}function xr(t){for(var e=t.display,n=e.lineDiv.offsetTop,r=0;r<e.view.length;r++){var i=e.view[r],a=t.options.lineWrapping,c=void 0,l=0;if(!i.hidden){if(o&&s<8){var A=i.node.offsetTop+i.node.offsetHeight;c=A-n,n=A}else{var u=i.node.getBoundingClientRect();c=u.bottom-u.top,!a&&i.text.firstChild&&(l=i.text.firstChild.getBoundingClientRect().right-u.left-1)}var h=i.line.height-c;if((h>.005||h<-.005)&&(Wt(i.line,c),Br(i.line),i.rest))for(var f=0;f<i.rest.length;f++)Br(i.rest[f]);if(l>t.display.sizerWidth){var d=Math.ceil(l/rr(t.display));d>t.display.maxLineLength&&(t.display.maxLineLength=d,t.display.maxLine=i.line,t.display.maxLineChanged=!0)}}}}function Br(t){if(t.widgets)for(var e=0;e<t.widgets.length;++e){var n=t.widgets[e],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Tr(t,e,n){var r=n&&null!=n.top?Math.max(0,n.top):t.scroller.scrollTop;r=Math.floor(r-wn(t));var i=n&&null!=n.bottom?n.bottom:r+t.wrapper.clientHeight,a=qt(e,r),o=qt(e,i);if(n&&n.ensure){var s=n.ensure.from.line,c=n.ensure.to.line;s<a?(a=s,o=qt(e,Ge(Kt(e,s))+t.wrapper.clientHeight)):Math.min(c,e.lastLine())>=o&&(a=qt(e,Ge(Kt(e,c))-t.wrapper.clientHeight),o=c)}return{from:a,to:Math.max(o,a+1)}}function kr(t,e){var n=t.display,r=nr(t.display);e.top<0&&(e.top=0);var i=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,a=Tn(t),o={};e.bottom-e.top>a&&(e.bottom=e.top+a);var s=t.doc.height+En(n),c=e.top<r,l=e.bottom>s-r;if(e.top<i)o.scrollTop=c?0:e.top;else if(e.bottom>i+a){var A=Math.min(e.top,(l?s:e.bottom)-a);A!=i&&(o.scrollTop=A)}var u=t.options.fixedGutter?0:n.gutters.offsetWidth,h=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft-u,f=Bn(t)-n.gutters.offsetWidth,d=e.right-e.left>f;return d&&(e.right=e.left+f),e.left<10?o.scrollLeft=0:e.left<h?o.scrollLeft=Math.max(0,e.left+u-(d?0:10)):e.right>f+h-3&&(o.scrollLeft=e.right+(d?0:10)-f),o}function Sr(t,e){null!=e&&(Fr(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function Ir(t){Fr(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function Lr(t,e,n){null==e&&null==n||Fr(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function Fr(t){var e=t.curOp.scrollToPos;e&&(t.curOp.scrollToPos=null,Nr(t,zn(t,e.from),zn(t,e.to),e.margin))}function Nr(t,e,n,r){var i=kr(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-r,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+r});Lr(t,i.scrollLeft,i.scrollTop)}function Or(t,e){Math.abs(t.doc.scrollTop-e)<2||(n||si(t,{top:e}),Dr(t,e,!0),n&&si(t),ni(t,100))}function Dr(t,e,n){e=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e)),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function Mr(t,e,n,r){e=Math.max(0,Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!r||(t.doc.scrollLeft=e,Ai(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function Rr(t){var e=t.display,n=e.gutters.offsetWidth,r=Math.round(t.doc.height+En(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+xn(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}var Ur=function(t,e,n){this.cm=n;var r=this.vert=S("div",[S("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=S("div",[S("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,t(r),t(i),ut(r,"scroll",(function(){r.clientHeight&&e(r.scrollTop,"vertical")})),ut(i,"scroll",(function(){i.clientWidth&&e(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,o&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ur.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,r=t.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=e?r+"px":"0";var i=t.viewHeight-(e?r:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=t.barLeft+"px";var a=t.viewWidth-t.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+a)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:e?r:0}},Ur.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ur.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ur.prototype.zeroWidthHack=function(){var t=y&&!f?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new P,this.disableVert=new P},Ur.prototype.enableZeroWidthBar=function(t,e,n){t.style.pointerEvents="auto",e.set(1e3,(function r(){var i=t.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=t?t.style.pointerEvents="none":e.set(1e3,r)}))},Ur.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Pr=function(){};function Hr(t,e){e||(e=Rr(t));var n=t.display.barWidth,r=t.display.barHeight;Qr(t,e);for(var i=0;i<4&&n!=t.display.barWidth||r!=t.display.barHeight;i++)n!=t.display.barWidth&&t.options.lineWrapping&&xr(t),Qr(t,Rr(t)),n=t.display.barWidth,r=t.display.barHeight}function Qr(t,e){var n=t.display,r=n.scrollbars.update(e);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&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}Pr.prototype.update=function(){return{bottom:0,right:0}},Pr.prototype.setScrollLeft=function(){},Pr.prototype.setScrollTop=function(){},Pr.prototype.clear=function(){};var Gr={native:Ur,null:Pr};function jr(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&B(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Gr[t.options.scrollbarStyle]((function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),ut(e,"mousedown",(function(){t.state.focused&&setTimeout((function(){return t.display.input.focus()}),0)})),e.setAttribute("cm-not-content","true")}),(function(e,n){"horizontal"==n?Mr(t,e):Or(t,e)}),t),t.display.scrollbars.addClass&&N(t.display.wrapper,t.display.scrollbars.addClass)}var $r=0;function Kr(t){var e;t.curOp={cm:t,viewChanged:!1,startHeight:t.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:++$r},e=t.curOp,an?an.ops.push(e):e.ownsGroup=an={ops:[e],delayedCallbacks:[]}}function Yr(t){var e=t.curOp;e&&function(t,e){var n=t.ownsGroup;if(n)try{!function(t){var e=t.delayedCallbacks,n=0;do{for(;n<e.length;n++)e[n].call(null);for(var r=0;r<t.ops.length;r++){var i=t.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<e.length)}(n)}finally{an=null,e(n)}}(e,(function(t){for(var e=0;e<t.ops.length;e++)t.ops[e].cm.curOp=null;!function(t){for(var e=t.ops,n=0;n<e.length;n++)zr(e[n]);for(var r=0;r<e.length;r++)Wr(e[r]);for(var i=0;i<e.length;i++)Vr(e[i]);for(var a=0;a<e.length;a++)qr(e[a]);for(var o=0;o<e.length;o++)Xr(e[o])}(t)}))}function zr(t){var e=t.cm,n=e.display;!function(t){var e=t.display;!e.scrollbarsClipped&&e.scroller.offsetWidth&&(e.nativeBarWidth=e.scroller.offsetWidth-e.scroller.clientWidth,e.heightForcer.style.height=xn(t)+"px",e.sizer.style.marginBottom=-e.nativeBarWidth+"px",e.sizer.style.borderRightWidth=xn(t)+"px",e.scrollbarsClipped=!0)}(e),t.updateMaxLine&&$e(e),t.mustUpdate=t.viewChanged||t.forceUpdate||null!=t.scrollTop||t.scrollToPos&&(t.scrollToPos.from.line<n.viewFrom||t.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new ii(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Wr(t){t.updatedDisplay=t.mustUpdate&&ai(t.cm,t.update)}function Vr(t){var e=t.cm,n=e.display;t.updatedDisplay&&xr(e),t.barMeasure=Rr(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=Sn(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+xn(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-Bn(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function qr(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<e.doc.scrollLeft&&Mr(e,Math.min(e.display.scroller.scrollLeft,t.maxScrollLeft),!0),e.display.maxLineChanged=!1);var n=t.focus&&t.focus==F();t.preparedSelection&&e.display.input.showSelection(t.preparedSelection,n),(t.updatedDisplay||t.startHeight!=e.doc.height)&&Hr(e,t.barMeasure),t.updatedDisplay&&li(e,t.barMeasure),t.selectionChanged&&br(e),e.state.focused&&t.updateInput&&e.display.input.reset(t.typing),n&&_r(t.cm)}function Xr(t){var e=t.cm,n=e.display,r=e.doc;t.updatedDisplay&&oi(e,t.update),null==n.wheelStartX||null==t.scrollTop&&null==t.scrollLeft&&!t.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=t.scrollTop&&Dr(e,t.scrollTop,t.forceScroll),null!=t.scrollLeft&&Mr(e,t.scrollLeft,!0,!0),t.scrollToPos&&function(t,e){if(!pt(t,"scrollCursorIntoView")){var n=t.display,r=n.sizer.getBoundingClientRect(),i=null;if(e.top+r.top<0?i=!0:e.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!d){var a=S("div","",null,"position: absolute;\n top: "+(e.top-n.viewOffset-wn(t.display))+"px;\n height: "+(e.bottom-e.top+xn(t)+n.barHeight)+"px;\n left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(a),a.scrollIntoView(i),t.display.lineSpace.removeChild(a)}}}(e,function(t,e,n,r){var i;null==r&&(r=0),t.options.lineWrapping||e!=n||(n="before"==(e=e.ch?Zt(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e).sticky?Zt(e.line,e.ch+1,"before"):e);for(var a=0;a<5;a++){var o=!1,s=Yn(t,e),c=n&&n!=e?Yn(t,n):s,l=kr(t,i={left:Math.min(s.left,c.left),top:Math.min(s.top,c.top)-r,right:Math.max(s.left,c.left),bottom:Math.max(s.bottom,c.bottom)+r}),A=t.doc.scrollTop,u=t.doc.scrollLeft;if(null!=l.scrollTop&&(Or(t,l.scrollTop),Math.abs(t.doc.scrollTop-A)>1&&(o=!0)),null!=l.scrollLeft&&(Mr(t,l.scrollLeft),Math.abs(t.doc.scrollLeft-u)>1&&(o=!0)),!o)break}return i}(e,oe(r,t.scrollToPos.from),oe(r,t.scrollToPos.to),t.scrollToPos.margin));var i=t.maybeHiddenMarkers,a=t.maybeUnhiddenMarkers;if(i)for(var o=0;o<i.length;++o)i[o].lines.length||dt(i[o],"hide");if(a)for(var s=0;s<a.length;++s)a[s].lines.length&&dt(a[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=e.display.scroller.scrollTop),t.changeObjs&&dt(e,"changes",e,t.changeObjs),t.update&&t.update.finish()}function Jr(t,e){if(t.curOp)return e();Kr(t);try{return e()}finally{Yr(t)}}function Zr(t,e){return function(){if(t.curOp)return e.apply(t,arguments);Kr(t);try{return e.apply(t,arguments)}finally{Yr(t)}}}function ti(t){return function(){if(this.curOp)return t.apply(this,arguments);Kr(this);try{return t.apply(this,arguments)}finally{Yr(this)}}}function ei(t){return function(){var e=this.cm;if(!e||e.curOp)return t.apply(this,arguments);Kr(e);try{return t.apply(this,arguments)}finally{Yr(e)}}}function ni(t,e){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(e,M(ri,t))}function ri(t){var e=t.doc;if(!(e.highlightFrontier>=t.display.viewTo)){var n=+new Date+t.options.workTime,r=he(t,e.highlightFrontier),i=[];e.iter(r.line,Math.min(e.first+e.size,t.display.viewTo+500),(function(a){if(r.line>=t.display.viewFrom){var o=a.styles,s=a.text.length>t.options.maxHighlightLength?Qt(e.mode,r.state):null,c=Ae(t,a,r,!0);s&&(r.state=s),a.styles=c.styles;var l=a.styleClasses,A=c.classes;A?a.styleClasses=A:l&&(a.styleClasses=null);for(var u=!o||o.length!=a.styles.length||l!=A&&(!l||!A||l.bgClass!=A.bgClass||l.textClass!=A.textClass),h=0;!u&&h<o.length;++h)u=o[h]!=a.styles[h];u&&i.push(r.line),a.stateAfter=r.save(),r.nextLine()}else a.text.length<=t.options.maxHighlightLength&&fe(t,a.text,r),a.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return ni(t,t.options.workDelay),!0})),e.highlightFrontier=r.line,e.modeFrontier=Math.max(e.modeFrontier,r.line),i.length&&Jr(t,(function(){for(var e=0;e<i.length;e++)ur(t,i[e],"text")}))}}var ii=function(t,e,n){var r=t.display;this.viewport=e,this.visible=Tr(r,t.doc,e),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Bn(t),this.force=n,this.dims=ir(t),this.events=[]};function ai(t,e){var n=t.display,r=t.doc;if(e.editorIsHidden)return hr(t),!1;if(!e.force&&e.visible.from>=n.viewFrom&&e.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==dr(t))return!1;ui(t)&&(hr(t),e.dims=ir(t));var i=r.first+r.size,a=Math.max(e.visible.from-t.options.viewportMargin,r.first),o=Math.min(i,e.visible.to+t.options.viewportMargin);n.viewFrom<a&&a-n.viewFrom<20&&(a=Math.max(r.first,n.viewFrom)),n.viewTo>o&&n.viewTo-o<20&&(o=Math.min(i,n.viewTo)),_e&&(a=Ue(t.doc,a),o=Pe(t.doc,o));var s=a!=n.viewFrom||o!=n.viewTo||n.lastWrapHeight!=e.wrapperHeight||n.lastWrapWidth!=e.wrapperWidth;!function(t,e,n){var r=t.display;0==r.view.length||e>=r.viewTo||n<=r.viewFrom?(r.view=rn(t,e,n),r.viewFrom=e):(r.viewFrom>e?r.view=rn(t,e,r.viewFrom).concat(r.view):r.viewFrom<e&&(r.view=r.view.slice(lr(t,e))),r.viewFrom=e,r.viewTo<n?r.view=r.view.concat(rn(t,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,lr(t,n)))),r.viewTo=n}(t,a,o),n.viewOffset=Ge(Kt(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var l=dr(t);if(!s&&0==l&&!e.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var A=function(t){if(t.hasFocus())return null;var e=F();if(!e||!L(t.display.lineDiv,e))return null;var n={activeElt:e};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&L(t.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(t);return l>4&&(n.lineDiv.style.display="none"),function(t,e,n){var r=t.display,i=t.options.lineNumbers,a=r.lineDiv,o=a.firstChild;function s(e){var n=e.nextSibling;return c&&y&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var l=r.view,A=r.viewFrom,u=0;u<l.length;u++){var h=l[u];if(h.hidden);else if(h.node&&h.node.parentNode==a){for(;o!=h.node;)o=s(o);var f=i&&null!=e&&e<=A&&h.lineNumber;h.changes&&(H(h.changes,"gutter")>-1&&(f=!1),ln(t,h,A,n)),f&&(T(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(Jt(t.options,A)))),o=h.node.nextSibling}else{var d=gn(t,h,A,n);a.insertBefore(d,o)}A+=h.size}for(;o;)o=s(o)}(t,n.updateLineNumbers,e.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(t){if(t&&t.activeElt&&t.activeElt!=F()&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&L(document.body,t.anchorNode)&&L(document.body,t.focusNode))){var e=window.getSelection(),n=document.createRange();n.setEnd(t.anchorNode,t.anchorOffset),n.collapse(!1),e.removeAllRanges(),e.addRange(n),e.extend(t.focusNode,t.focusOffset)}}(A),T(n.cursorDiv),T(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=e.wrapperHeight,n.lastWrapWidth=e.wrapperWidth,ni(t,400)),n.updateLineNumbers=null,!0}function oi(t,e){for(var n=e.viewport,r=!0;;r=!1){if(r&&t.options.lineWrapping&&e.oldDisplayWidth!=Bn(t))r&&(e.visible=Tr(t.display,t.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(t.doc.height+En(t.display)-Tn(t),n.top)}),e.visible=Tr(t.display,t.doc,n),e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)break;if(!ai(t,e))break;xr(t);var i=Rr(t);pr(t),Hr(t,i),li(t,i),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function si(t,e){var n=new ii(t,e);if(ai(t,n)){xr(t),oi(t,n);var r=Rr(t);pr(t),Hr(t,r),li(t,r),n.finish()}}function ci(t){var e=t.gutters.offsetWidth;t.sizer.style.marginLeft=e+"px"}function li(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+xn(t)+"px"}function Ai(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var r=ar(e)-e.scroller.scrollLeft+t.doc.scrollLeft,i=e.gutters.offsetWidth,a=r+"px",o=0;o<n.length;o++)if(!n[o].hidden){t.options.fixedGutter&&(n[o].gutter&&(n[o].gutter.style.left=a),n[o].gutterBackground&&(n[o].gutterBackground.style.left=a));var s=n[o].alignable;if(s)for(var c=0;c<s.length;c++)s[c].style.left=a}t.options.fixedGutter&&(e.gutters.style.left=r+i+"px")}}function ui(t){if(!t.options.lineNumbers)return!1;var e=t.doc,n=Jt(t.options,e.first+e.size-1),r=t.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(S("div",[S("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),a=i.firstChild.offsetWidth,o=i.offsetWidth-a;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(a,r.lineGutter.offsetWidth-o)+1,r.lineNumWidth=r.lineNumInnerWidth+o,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",ci(t.display),!0}return!1}function hi(t,e){for(var n=[],r=!1,i=0;i<t.length;i++){var a=t[i],o=null;if("string"!=typeof a&&(o=a.style,a=a.className),"CodeMirror-linenumbers"==a){if(!e)continue;r=!0}n.push({className:a,style:o})}return e&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function fi(t){var e=t.gutters,n=t.gutterSpecs;T(e),t.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],a=i.className,o=i.style,s=e.appendChild(S("div",null,"CodeMirror-gutter "+a));o&&(s.style.cssText=o),"CodeMirror-linenumbers"==a&&(t.lineGutter=s,s.style.width=(t.lineNumWidth||1)+"px")}e.style.display=n.length?"":"none",ci(t)}function di(t){fi(t.display),Ar(t),Ai(t)}function pi(t,e,r,i){var a=this;this.input=r,a.scrollbarFiller=S("div",null,"CodeMirror-scrollbar-filler"),a.scrollbarFiller.setAttribute("cm-not-content","true"),a.gutterFiller=S("div",null,"CodeMirror-gutter-filler"),a.gutterFiller.setAttribute("cm-not-content","true"),a.lineDiv=I("div",null,"CodeMirror-code"),a.selectionDiv=S("div",null,null,"position: relative; z-index: 1"),a.cursorDiv=S("div",null,"CodeMirror-cursors"),a.measure=S("div",null,"CodeMirror-measure"),a.lineMeasure=S("div",null,"CodeMirror-measure"),a.lineSpace=I("div",[a.measure,a.lineMeasure,a.selectionDiv,a.cursorDiv,a.lineDiv],null,"position: relative; outline: none");var l=I("div",[a.lineSpace],"CodeMirror-lines");a.mover=S("div",[l],null,"position: relative"),a.sizer=S("div",[a.mover],"CodeMirror-sizer"),a.sizerWidth=null,a.heightForcer=S("div",null,null,"position: absolute; height: 50px; width: 1px;"),a.gutters=S("div",null,"CodeMirror-gutters"),a.lineGutter=null,a.scroller=S("div",[a.sizer,a.heightForcer,a.gutters],"CodeMirror-scroll"),a.scroller.setAttribute("tabIndex","-1"),a.wrapper=S("div",[a.scrollbarFiller,a.gutterFiller,a.scroller],"CodeMirror"),o&&s<8&&(a.gutters.style.zIndex=-1,a.scroller.style.paddingRight=0),c||n&&m||(a.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(a.wrapper):t(a.wrapper)),a.viewFrom=a.viewTo=e.first,a.reportedViewFrom=a.reportedViewTo=e.first,a.view=[],a.renderedView=null,a.externalMeasured=null,a.viewOffset=0,a.lastWrapHeight=a.lastWrapWidth=0,a.updateLineNumbers=null,a.nativeBarWidth=a.barHeight=a.barWidth=0,a.scrollbarsClipped=!1,a.lineNumWidth=a.lineNumInnerWidth=a.lineNumChars=null,a.alignWidgets=!1,a.cachedCharWidth=a.cachedTextHeight=a.cachedPaddingH=null,a.maxLine=null,a.maxLineLength=0,a.maxLineChanged=!1,a.wheelDX=a.wheelDY=a.wheelStartX=a.wheelStartY=null,a.shift=!1,a.selForContextMenu=null,a.activeTouch=null,a.gutterSpecs=hi(i.gutters,i.lineNumbers),fi(a),r.init(a)}ii.prototype.signal=function(t,e){mt(t,e)&&this.events.push(arguments)},ii.prototype.finish=function(){for(var t=0;t<this.events.length;t++)dt.apply(null,this.events[t])};var gi=0,mi=null;function yi(t){var e=t.wheelDeltaX,n=t.wheelDeltaY;return null==e&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(e=t.detail),null==n&&t.detail&&t.axis==t.VERTICAL_AXIS?n=t.detail:null==n&&(n=t.wheelDelta),{x:e,y:n}}function vi(t){var e=yi(t);return e.x*=mi,e.y*=mi,e}function bi(t,e){var r=yi(e),i=r.x,a=r.y,o=t.display,s=o.scroller,l=s.scrollWidth>s.clientWidth,A=s.scrollHeight>s.clientHeight;if(i&&l||a&&A){if(a&&y&&c)t:for(var h=e.target,f=o.view;h!=s;h=h.parentNode)for(var d=0;d<f.length;d++)if(f[d].node==h){t.display.currentWheelTarget=h;break t}if(i&&!n&&!u&&null!=mi)return a&&A&&Or(t,Math.max(0,s.scrollTop+a*mi)),Mr(t,Math.max(0,s.scrollLeft+i*mi)),(!a||a&&A)&&vt(e),void(o.wheelStartX=null);if(a&&null!=mi){var p=a*mi,g=t.doc.scrollTop,m=g+o.wrapper.clientHeight;p<0?g=Math.max(0,g+p-50):m=Math.min(t.doc.height,m+p+50),si(t,{top:g,bottom:m})}gi<20&&(null==o.wheelStartX?(o.wheelStartX=s.scrollLeft,o.wheelStartY=s.scrollTop,o.wheelDX=i,o.wheelDY=a,setTimeout((function(){if(null!=o.wheelStartX){var t=s.scrollLeft-o.wheelStartX,e=s.scrollTop-o.wheelStartY,n=e&&o.wheelDY&&e/o.wheelDY||t&&o.wheelDX&&t/o.wheelDX;o.wheelStartX=o.wheelStartY=null,n&&(mi=(mi*gi+n)/(gi+1),++gi)}}),200)):(o.wheelDX+=i,o.wheelDY+=a))}}o?mi=-.53:n?mi=15:A?mi=-.7:h&&(mi=-1/3);var _i=function(t,e){this.ranges=t,this.primIndex=e};_i.prototype.primary=function(){return this.ranges[this.primIndex]},_i.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var e=0;e<this.ranges.length;e++){var n=this.ranges[e],r=t.ranges[e];if(!ee(n.anchor,r.anchor)||!ee(n.head,r.head))return!1}return!0},_i.prototype.deepCopy=function(){for(var t=[],e=0;e<this.ranges.length;e++)t[e]=new wi(ne(this.ranges[e].anchor),ne(this.ranges[e].head));return new _i(t,this.primIndex)},_i.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},_i.prototype.contains=function(t,e){e||(e=t);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(te(e,r.from())>=0&&te(t,r.to())<=0)return n}return-1};var wi=function(t,e){this.anchor=t,this.head=e};function Ei(t,e,n){var r=t&&t.options.selectionsMayTouch,i=e[n];e.sort((function(t,e){return te(t.from(),e.from())})),n=H(e,i);for(var a=1;a<e.length;a++){var o=e[a],s=e[a-1],c=te(s.to(),o.from());if(r&&!o.empty()?c>0:c>=0){var l=ie(s.from(),o.from()),A=re(s.to(),o.to()),u=s.empty()?o.from()==o.head:s.from()==s.head;a<=n&&--n,e.splice(--a,2,new wi(u?A:l,u?l:A))}}return new _i(e,n)}function Ci(t,e){return new _i([new wi(t,e||t)],0)}function xi(t){return t.text?Zt(t.from.line+t.text.length-1,W(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function Bi(t,e){if(te(t,e.from)<0)return t;if(te(t,e.to)<=0)return xi(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,r=t.ch;return t.line==e.to.line&&(r+=xi(e).ch-e.to.ch),Zt(n,r)}function Ti(t,e){for(var n=[],r=0;r<t.sel.ranges.length;r++){var i=t.sel.ranges[r];n.push(new wi(Bi(i.anchor,e),Bi(i.head,e)))}return Ei(t.cm,n,t.sel.primIndex)}function ki(t,e,n){return t.line==e.line?Zt(n.line,t.ch-e.ch+n.ch):Zt(n.line+(t.line-e.line),t.ch)}function Si(t){t.doc.mode=Ut(t.options,t.doc.modeOption),Ii(t)}function Ii(t){t.doc.iter((function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)})),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,ni(t,100),t.state.modeGen++,t.curOp&&Ar(t)}function Li(t,e){return 0==e.from.ch&&0==e.to.ch&&""==W(e.text)&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function Fi(t,e,n,r){function i(t){return n?n[t]:null}function a(t,n,i){!function(t,e,n,r){t.text=e,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),Te(t),ke(t,n);var i=r?r(t):1;i!=t.height&&Wt(t,i)}(t,n,i,r),sn(t,"change",t,e)}function o(t,e){for(var n=[],a=t;a<e;++a)n.push(new Ke(l[a],i(a),r));return n}var s=e.from,c=e.to,l=e.text,A=Kt(t,s.line),u=Kt(t,c.line),h=W(l),f=i(l.length-1),d=c.line-s.line;if(e.full)t.insert(0,o(0,l.length)),t.remove(l.length,t.size-l.length);else if(Li(t,e)){var p=o(0,l.length-1);a(u,u.text,f),d&&t.remove(s.line,d),p.length&&t.insert(s.line,p)}else if(A==u)if(1==l.length)a(A,A.text.slice(0,s.ch)+h+A.text.slice(c.ch),f);else{var g=o(1,l.length-1);g.push(new Ke(h+A.text.slice(c.ch),f,r)),a(A,A.text.slice(0,s.ch)+l[0],i(0)),t.insert(s.line+1,g)}else if(1==l.length)a(A,A.text.slice(0,s.ch)+l[0]+u.text.slice(c.ch),i(0)),t.remove(s.line+1,d);else{a(A,A.text.slice(0,s.ch)+l[0],i(0)),a(u,h+u.text.slice(c.ch),f);var m=o(1,l.length-1);d>1&&t.remove(s.line+1,d-1),t.insert(s.line+1,m)}sn(t,"change",t,e)}function Ni(t,e,n){!function t(r,i,a){if(r.linked)for(var o=0;o<r.linked.length;++o){var s=r.linked[o];if(s.doc!=i){var c=a&&s.sharedHist;n&&!c||(e(s.doc,c),t(s.doc,r,c))}}}(t,null,!0)}function Oi(t,e){if(e.cm)throw new Error("This document is already in use.");t.doc=e,e.cm=t,sr(t),Si(t),Di(t),t.options.lineWrapping||$e(t),t.options.mode=e.modeOption,Ar(t)}function Di(t){("rtl"==t.doc.direction?N:B)(t.display.lineDiv,"CodeMirror-rtl")}function Mi(t){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=t||1}function Ri(t,e){var n={from:ne(e.from),to:xi(e),text:Yt(t,e.from,e.to)};return Gi(t,n,e.from.line,e.to.line+1),Ni(t,(function(t){return Gi(t,n,e.from.line,e.to.line+1)}),!0),n}function Ui(t){for(;t.length&&W(t).ranges;)t.pop()}function Pi(t,e,n,r){var i=t.history;i.undone.length=0;var a,o,s=+new Date;if((i.lastOp==r||i.lastOrigin==e.origin&&e.origin&&("+"==e.origin.charAt(0)&&i.lastModTime>s-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(a=function(t,e){return e?(Ui(t.done),W(t.done)):t.done.length&&!W(t.done).ranges?W(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),W(t.done)):void 0}(i,i.lastOp==r)))o=W(a.changes),0==te(e.from,e.to)&&0==te(e.from,o.to)?o.to=xi(e):a.changes.push(Ri(t,e));else{var c=W(i.done);for(c&&c.ranges||Qi(t.sel,i.done),a={changes:[Ri(t,e)],generation:i.generation},i.done.push(a);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=e.origin,o||dt(t,"historyAdded")}function Hi(t,e,n,r){var i=t.history,a=r&&r.origin;n==i.lastSelOp||a&&i.lastSelOrigin==a&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==a||function(t,e,n,r){var i=e.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}(t,a,W(i.done),e))?i.done[i.done.length-1]=e:Qi(e,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=a,i.lastSelOp=n,r&&!1!==r.clearRedo&&Ui(i.undone)}function Qi(t,e){var n=W(e);n&&n.ranges&&n.equals(t)||e.push(t)}function Gi(t,e,n,r){var i=e["spans_"+t.id],a=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,r),(function(n){n.markedSpans&&((i||(i=e["spans_"+t.id]={}))[a]=n.markedSpans),++a}))}function ji(t){if(!t)return null;for(var e,n=0;n<t.length;++n)t[n].marker.explicitlyCleared?e||(e=t.slice(0,n)):e&&e.push(t[n]);return e?e.length?e:null:t}function $i(t,e){var n=function(t,e){var n=e["spans_"+t.id];if(!n)return null;for(var r=[],i=0;i<e.text.length;++i)r.push(ji(n[i]));return r}(t,e),r=xe(t,e);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var a=n[i],o=r[i];if(a&&o)t:for(var s=0;s<o.length;++s){for(var c=o[s],l=0;l<a.length;++l)if(a[l].marker==c.marker)continue t;a.push(c)}else o&&(n[i]=o)}return n}function Ki(t,e,n){for(var r=[],i=0;i<t.length;++i){var a=t[i];if(a.ranges)r.push(n?_i.prototype.deepCopy.call(a):a);else{var o=a.changes,s=[];r.push({changes:s});for(var c=0;c<o.length;++c){var l=o[c],A=void 0;if(s.push({from:l.from,to:l.to,text:l.text}),e)for(var u in l)(A=u.match(/^spans_(\d+)$/))&&H(e,Number(A[1]))>-1&&(W(s)[u]=l[u],delete l[u])}}}return r}function Yi(t,e,n,r){if(r){var i=t.anchor;if(n){var a=te(e,i)<0;a!=te(n,i)<0?(i=e,e=n):a!=te(e,n)<0&&(e=n)}return new wi(i,e)}return new wi(n||e,e)}function zi(t,e,n,r,i){null==i&&(i=t.cm&&(t.cm.display.shift||t.extend)),Ji(t,new _i([Yi(t.sel.primary(),e,n,i)],0),r)}function Wi(t,e,n){for(var r=[],i=t.cm&&(t.cm.display.shift||t.extend),a=0;a<t.sel.ranges.length;a++)r[a]=Yi(t.sel.ranges[a],e[a],null,i);Ji(t,Ei(t.cm,r,t.sel.primIndex),n)}function Vi(t,e,n,r){var i=t.sel.ranges.slice(0);i[e]=n,Ji(t,Ei(t.cm,i,t.sel.primIndex),r)}function qi(t,e,n,r){Ji(t,Ci(e,n),r)}function Xi(t,e,n){var r=t.history.done,i=W(r);i&&i.ranges?(r[r.length-1]=e,Zi(t,e,n)):Ji(t,e,n)}function Ji(t,e,n){Zi(t,e,n),Hi(t,t.sel,t.cm?t.cm.curOp.id:NaN,n)}function Zi(t,e,n){(mt(t,"beforeSelectionChange")||t.cm&&mt(t.cm,"beforeSelectionChange"))&&(e=function(t,e,n){var r={ranges:e.ranges,update:function(e){this.ranges=[];for(var n=0;n<e.length;n++)this.ranges[n]=new wi(oe(t,e[n].anchor),oe(t,e[n].head))},origin:n&&n.origin};return dt(t,"beforeSelectionChange",t,r),t.cm&&dt(t.cm,"beforeSelectionChange",t.cm,r),r.ranges!=e.ranges?Ei(t.cm,r.ranges,r.ranges.length-1):e}(t,e,n));var r=n&&n.bias||(te(e.primary().head,t.sel.primary().head)<0?-1:1);ta(t,na(t,e,r,!0)),n&&!1===n.scroll||!t.cm||Ir(t.cm)}function ta(t,e){e.equals(t.sel)||(t.sel=e,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,gt(t.cm)),sn(t,"cursorActivity",t))}function ea(t){ta(t,na(t,t.sel,null,!1))}function na(t,e,n,r){for(var i,a=0;a<e.ranges.length;a++){var o=e.ranges[a],s=e.ranges.length==t.sel.ranges.length&&t.sel.ranges[a],c=ia(t,o.anchor,s&&s.anchor,n,r),l=ia(t,o.head,s&&s.head,n,r);(i||c!=o.anchor||l!=o.head)&&(i||(i=e.ranges.slice(0,a)),i[a]=new wi(c,l))}return i?Ei(t.cm,i,e.primIndex):e}function ra(t,e,n,r,i){var a=Kt(t,e.line);if(a.markedSpans)for(var o=0;o<a.markedSpans.length;++o){var s=a.markedSpans[o],c=s.marker,l="selectLeft"in c?!c.selectLeft:c.inclusiveLeft,A="selectRight"in c?!c.selectRight:c.inclusiveRight;if((null==s.from||(l?s.from<=e.ch:s.from<e.ch))&&(null==s.to||(A?s.to>=e.ch:s.to>e.ch))){if(i&&(dt(c,"beforeCursorEnter"),c.explicitlyCleared)){if(a.markedSpans){--o;continue}break}if(!c.atomic)continue;if(n){var u=c.find(r<0?1:-1),h=void 0;if((r<0?A:l)&&(u=aa(t,u,-r,u&&u.line==e.line?a:null)),u&&u.line==e.line&&(h=te(u,n))&&(r<0?h<0:h>0))return ra(t,u,e,r,i)}var f=c.find(r<0?-1:1);return(r<0?l:A)&&(f=aa(t,f,r,f.line==e.line?a:null)),f?ra(t,f,e,r,i):null}}return e}function ia(t,e,n,r,i){var a=r||1,o=ra(t,e,n,a,i)||!i&&ra(t,e,n,a,!0)||ra(t,e,n,-a,i)||!i&&ra(t,e,n,-a,!0);return o||(t.cantEdit=!0,Zt(t.first,0))}function aa(t,e,n,r){return n<0&&0==e.ch?e.line>t.first?oe(t,Zt(e.line-1)):null:n>0&&e.ch==(r||Kt(t,e.line)).text.length?e.line<t.first+t.size-1?Zt(e.line+1,0):null:new Zt(e.line,e.ch+n)}function oa(t){t.setSelection(Zt(t.firstLine(),0),Zt(t.lastLine()),G)}function sa(t,e,n){var r={canceled:!1,from:e.from,to:e.to,text:e.text,origin:e.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(e,n,i,a){e&&(r.from=oe(t,e)),n&&(r.to=oe(t,n)),i&&(r.text=i),void 0!==a&&(r.origin=a)}),dt(t,"beforeChange",t,r),t.cm&&dt(t.cm,"beforeChange",t.cm,r),r.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function ca(t,e,n){if(t.cm){if(!t.cm.curOp)return Zr(t.cm,ca)(t,e,n);if(t.cm.state.suppressEdits)return}if(!(mt(t,"beforeChange")||t.cm&&mt(t.cm,"beforeChange"))||(e=sa(t,e,!0))){var r=be&&!n&&function(t,e,n){var r=null;if(t.iter(e.line,n.line+1,(function(t){if(t.markedSpans)for(var e=0;e<t.markedSpans.length;++e){var n=t.markedSpans[e].marker;!n.readOnly||r&&-1!=H(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:e,to:n}],a=0;a<r.length;++a)for(var o=r[a],s=o.find(0),c=0;c<i.length;++c){var l=i[c];if(!(te(l.to,s.from)<0||te(l.from,s.to)>0)){var A=[c,1],u=te(l.from,s.from),h=te(l.to,s.to);(u<0||!o.inclusiveLeft&&!u)&&A.push({from:l.from,to:s.from}),(h>0||!o.inclusiveRight&&!h)&&A.push({from:s.to,to:l.to}),i.splice.apply(i,A),c+=A.length-3}}return i}(t,e.from,e.to);if(r)for(var i=r.length-1;i>=0;--i)la(t,{from:r[i].from,to:r[i].to,text:i?[""]:e.text,origin:e.origin});else la(t,e)}}function la(t,e){if(1!=e.text.length||""!=e.text[0]||0!=te(e.from,e.to)){var n=Ti(t,e);Pi(t,e,n,t.cm?t.cm.curOp.id:NaN),ha(t,e,n,xe(t,e));var r=[];Ni(t,(function(t,n){n||-1!=H(r,t.history)||(ga(t.history,e),r.push(t.history)),ha(t,e,null,xe(t,e))}))}}function Aa(t,e,n){var r=t.cm&&t.cm.state.suppressEdits;if(!r||n){for(var i,a=t.history,o=t.sel,s="undo"==e?a.done:a.undone,c="undo"==e?a.undone:a.done,l=0;l<s.length&&(i=s[l],n?!i.ranges||i.equals(t.sel):i.ranges);l++);if(l!=s.length){for(a.lastOrigin=a.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(Qi(i,c),n&&!i.equals(t.sel))return void Ji(t,i,{clearRedo:!1});o=i}var A=[];Qi(o,c),c.push({changes:A,generation:a.generation}),a.generation=i.generation||++a.maxGeneration;for(var u=mt(t,"beforeChange")||t.cm&&mt(t.cm,"beforeChange"),h=function(n){var r=i.changes[n];if(r.origin=e,u&&!sa(t,r,!1))return s.length=0,{};A.push(Ri(t,r));var a=n?Ti(t,r):W(s);ha(t,r,a,$i(t,r)),!n&&t.cm&&t.cm.scrollIntoView({from:r.from,to:xi(r)});var o=[];Ni(t,(function(t,e){e||-1!=H(o,t.history)||(ga(t.history,r),o.push(t.history)),ha(t,r,null,$i(t,r))}))},f=i.changes.length-1;f>=0;--f){var d=h(f);if(d)return d.v}}}}function ua(t,e){if(0!=e&&(t.first+=e,t.sel=new _i(V(t.sel.ranges,(function(t){return new wi(Zt(t.anchor.line+e,t.anchor.ch),Zt(t.head.line+e,t.head.ch))})),t.sel.primIndex),t.cm)){Ar(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,r=n.viewFrom;r<n.viewTo;r++)ur(t.cm,r,"gutter")}}function ha(t,e,n,r){if(t.cm&&!t.cm.curOp)return Zr(t.cm,ha)(t,e,n,r);if(e.to.line<t.first)ua(t,e.text.length-1-(e.to.line-e.from.line));else if(!(e.from.line>t.lastLine())){if(e.from.line<t.first){var i=e.text.length-1-(t.first-e.from.line);ua(t,i),e={from:Zt(t.first,0),to:Zt(e.to.line+i,e.to.ch),text:[W(e.text)],origin:e.origin}}var a=t.lastLine();e.to.line>a&&(e={from:e.from,to:Zt(a,Kt(t,a).text.length),text:[e.text[0]],origin:e.origin}),e.removed=Yt(t,e.from,e.to),n||(n=Ti(t,e)),t.cm?function(t,e,n){var r=t.doc,i=t.display,a=e.from,o=e.to,s=!1,c=a.line;t.options.lineWrapping||(c=Vt(Re(Kt(r,a.line))),r.iter(c,o.line+1,(function(t){if(t==i.maxLine)return s=!0,!0}))),r.sel.contains(e.from,e.to)>-1&&gt(t),Fi(r,e,n,or(t)),t.options.lineWrapping||(r.iter(c,a.line+e.text.length,(function(t){var e=je(t);e>i.maxLineLength&&(i.maxLine=t,i.maxLineLength=e,i.maxLineChanged=!0,s=!1)})),s&&(t.curOp.updateMaxLine=!0)),function(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontier<e-10)){for(var n=t.first,r=e-1;r>n;r--){var i=Kt(t,r).stateAfter;if(i&&(!(i instanceof ce)||r+i.lookAhead<e)){n=r+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,n)}}(r,a.line),ni(t,400);var l=e.text.length-(o.line-a.line)-1;e.full?Ar(t):a.line!=o.line||1!=e.text.length||Li(t.doc,e)?Ar(t,a.line,o.line+1,l):ur(t,a.line,"text");var A=mt(t,"changes"),u=mt(t,"change");if(u||A){var h={from:a,to:o,text:e.text,removed:e.removed,origin:e.origin};u&&sn(t,"change",t,h),A&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(h)}t.display.selForContextMenu=null}(t.cm,e,r):Fi(t,e,r),Zi(t,n,G),t.cantEdit&&ia(t,Zt(t.firstLine(),0))&&(t.cantEdit=!1)}}function fa(t,e,n,r,i){var a;r||(r=n),te(r,n)<0&&(n=(a=[r,n])[0],r=a[1]),"string"==typeof e&&(e=t.splitLines(e)),ca(t,{from:n,to:r,text:e,origin:i})}function da(t,e,n,r){n<t.line?t.line+=r:e<t.line&&(t.line=e,t.ch=0)}function pa(t,e,n,r){for(var i=0;i<t.length;++i){var a=t[i],o=!0;if(a.ranges){a.copied||((a=t[i]=a.deepCopy()).copied=!0);for(var s=0;s<a.ranges.length;s++)da(a.ranges[s].anchor,e,n,r),da(a.ranges[s].head,e,n,r)}else{for(var c=0;c<a.changes.length;++c){var l=a.changes[c];if(n<l.from.line)l.from=Zt(l.from.line+r,l.from.ch),l.to=Zt(l.to.line+r,l.to.ch);else if(e<=l.to.line){o=!1;break}}o||(t.splice(0,i+1),i=0)}}}function ga(t,e){var n=e.from.line,r=e.to.line,i=e.text.length-(r-n)-1;pa(t.done,n,r,i),pa(t.undone,n,r,i)}function ma(t,e,n,r){var i=e,a=e;return"number"==typeof e?a=Kt(t,ae(t,e)):i=Vt(e),null==i?null:(r(a,i)&&t.cm&&ur(t.cm,i,n),a)}function ya(t){this.lines=t,this.parent=null;for(var e=0,n=0;n<t.length;++n)t[n].parent=this,e+=t[n].height;this.height=e}function va(t){this.children=t;for(var e=0,n=0,r=0;r<t.length;++r){var i=t[r];e+=i.chunkSize(),n+=i.height,i.parent=this}this.size=e,this.height=n,this.parent=null}wi.prototype.from=function(){return ie(this.anchor,this.head)},wi.prototype.to=function(){return re(this.anchor,this.head)},wi.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},ya.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,e){for(var n=t,r=t+e;n<r;++n){var i=this.lines[n];this.height-=i.height,Ye(i),sn(i,"delete")}this.lines.splice(t,e)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,e,n){this.height+=n,this.lines=this.lines.slice(0,t).concat(e).concat(this.lines.slice(t));for(var r=0;r<e.length;++r)e[r].parent=this},iterN:function(t,e,n){for(var r=t+e;t<r;++t)if(n(this.lines[t]))return!0}},va.prototype={chunkSize:function(){return this.size},removeInner:function(t,e){this.size-=e;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(t<i){var a=Math.min(e,i-t),o=r.height;if(r.removeInner(t,a),this.height-=o-r.height,i==a&&(this.children.splice(n--,1),r.parent=null),0==(e-=a))break;t=0}else t-=i}if(this.size-e<25&&(this.children.length>1||!(this.children[0]instanceof ya))){var s=[];this.collapse(s),this.children=[new ya(s)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e<this.children.length;++e)this.children[e].collapse(t)},insertInner:function(t,e,n){this.size+=e.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],a=i.chunkSize();if(t<=a){if(i.insertInner(t,e,n),i.lines&&i.lines.length>50){for(var o=i.lines.length%25+25,s=o;s<i.lines.length;){var c=new ya(i.lines.slice(s,s+=25));i.height-=c.height,this.children.splice(++r,0,c),c.parent=this}i.lines=i.lines.slice(0,o),this.maybeSpill()}break}t-=a}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var e=new va(t.children.splice(t.children.length-5,5));if(t.parent){t.size-=e.size,t.height-=e.height;var n=H(t.parent.children,t);t.parent.children.splice(n+1,0,e)}else{var r=new va(t.children);r.parent=t,t.children=[r,e],t=r}e.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],a=i.chunkSize();if(t<a){var o=Math.min(e,a-t);if(i.iterN(t,o,n))return!0;if(0==(e-=o))break;t=0}else t-=a}}};var ba=function(t,e,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=t,this.node=e};function _a(t,e,n){Ge(e)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&Sr(t,n)}ba.prototype.clear=function(){var t=this.doc.cm,e=this.line.widgets,n=this.line,r=Vt(n);if(null!=r&&e){for(var i=0;i<e.length;++i)e[i]==this&&e.splice(i--,1);e.length||(n.widgets=null);var a=bn(this);Wt(n,Math.max(0,n.height-a)),t&&(Jr(t,(function(){_a(t,n,-a),ur(t,r,"widget")})),sn(t,"lineWidgetCleared",t,this,r))}},ba.prototype.changed=function(){var t=this,e=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=bn(this)-e;i&&(He(this.doc,r)||Wt(r,r.height+i),n&&Jr(n,(function(){n.curOp.forceUpdate=!0,_a(n,r,i),sn(n,"lineWidgetChanged",n,t,Vt(r))})))},yt(ba);var wa=0,Ea=function(t,e){this.lines=[],this.type=e,this.doc=t,this.id=++wa};function Ca(t,e,n,r,i){if(r&&r.shared)return function(t,e,n,r,i){(r=R(r)).shared=!1;var a=[Ca(t,e,n,r,i)],o=a[0],s=r.widgetNode;return Ni(t,(function(t){s&&(r.widgetNode=s.cloneNode(!0)),a.push(Ca(t,oe(t,e),oe(t,n),r,i));for(var c=0;c<t.linked.length;++c)if(t.linked[c].isParent)return;o=W(a)})),new xa(a,o)}(t,e,n,r,i);if(t.cm&&!t.cm.curOp)return Zr(t.cm,Ca)(t,e,n,r,i);var a=new Ea(t,i),o=te(e,n);if(r&&R(r,a,!1),o>0||0==o&&!1!==a.clearWhenEmpty)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=I("span",[a.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(Me(t,e.line,e,n,a)||e.line!=n.line&&Me(t,n.line,e,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");_e=!0}a.addToHistory&&Pi(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var s,c=e.line,l=t.cm;if(t.iter(c,n.line+1,(function(t){l&&a.collapsed&&!l.options.lineWrapping&&Re(t)==l.display.maxLine&&(s=!0),a.collapsed&&c!=e.line&&Wt(t,0),function(t,e){t.markedSpans=t.markedSpans?t.markedSpans.concat([e]):[e],e.marker.attachLine(t)}(t,new we(a,c==e.line?e.ch:null,c==n.line?n.ch:null)),++c})),a.collapsed&&t.iter(e.line,n.line+1,(function(e){He(t,e)&&Wt(e,0)})),a.clearOnEnter&&ut(a,"beforeCursorEnter",(function(){return a.clear()})),a.readOnly&&(be=!0,(t.history.done.length||t.history.undone.length)&&t.clearHistory()),a.collapsed&&(a.id=++wa,a.atomic=!0),l){if(s&&(l.curOp.updateMaxLine=!0),a.collapsed)Ar(l,e.line,n.line+1);else if(a.className||a.startStyle||a.endStyle||a.css||a.attributes||a.title)for(var A=e.line;A<=n.line;A++)ur(l,A,"text");a.atomic&&ea(l.doc),sn(l,"markerAdded",l,a)}return a}Ea.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&Kr(t),mt(this,"clear")){var n=this.find();n&&sn(this,"clear",n.from,n.to)}for(var r=null,i=null,a=0;a<this.lines.length;++a){var o=this.lines[a],s=Ee(o.markedSpans,this);t&&!this.collapsed?ur(t,Vt(o),"text"):t&&(null!=s.to&&(i=Vt(o)),null!=s.from&&(r=Vt(o))),o.markedSpans=Ce(o.markedSpans,s),null==s.from&&this.collapsed&&!He(this.doc,o)&&t&&Wt(o,nr(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var c=0;c<this.lines.length;++c){var l=Re(this.lines[c]),A=je(l);A>t.display.maxLineLength&&(t.display.maxLine=l,t.display.maxLineLength=A,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&Ar(t,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&ea(t.doc)),t&&sn(t,"markerCleared",t,this,r,i),e&&Yr(t),this.parent&&this.parent.clear()}},Ea.prototype.find=function(t,e){var n,r;null==t&&"bookmark"==this.type&&(t=1);for(var i=0;i<this.lines.length;++i){var a=this.lines[i],o=Ee(a.markedSpans,this);if(null!=o.from&&(n=Zt(e?a:Vt(a),o.from),-1==t))return n;if(null!=o.to&&(r=Zt(e?a:Vt(a),o.to),1==t))return r}return n&&{from:n,to:r}},Ea.prototype.changed=function(){var t=this,e=this.find(-1,!0),n=this,r=this.doc.cm;e&&r&&Jr(r,(function(){var i=e.line,a=Vt(e.line),o=In(r,a);if(o&&(Rn(o),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!He(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var c=bn(n)-s;c&&Wt(i,i.height+c)}sn(r,"markerChanged",r,t)}))},Ea.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;e.maybeHiddenMarkers&&-1!=H(e.maybeHiddenMarkers,this)||(e.maybeUnhiddenMarkers||(e.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},Ea.prototype.detachLine=function(t){if(this.lines.splice(H(this.lines,t),1),!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;(e.maybeHiddenMarkers||(e.maybeHiddenMarkers=[])).push(this)}},yt(Ea);var xa=function(t,e){this.markers=t,this.primary=e;for(var n=0;n<t.length;++n)t[n].parent=this};function Ba(t){return t.findMarks(Zt(t.first,0),t.clipPos(Zt(t.lastLine())),(function(t){return t.parent}))}function Ta(t){for(var e=function(e){var n=t[e],r=[n.primary.doc];Ni(n.primary.doc,(function(t){return r.push(t)}));for(var i=0;i<n.markers.length;i++){var a=n.markers[i];-1==H(r,a.doc)&&(a.parent=null,n.markers.splice(i--,1))}},n=0;n<t.length;n++)e(n)}xa.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();sn(this,"clear")}},xa.prototype.find=function(t,e){return this.primary.find(t,e)},yt(xa);var ka=0,Sa=function(t,e,n,r,i){if(!(this instanceof Sa))return new Sa(t,e,n,r,i);null==n&&(n=0),va.call(this,[new ya([new Ke("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var a=Zt(n,0);this.sel=Ci(a),this.history=new Mi(null),this.id=++ka,this.modeOption=e,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),Fi(this,{from:a,to:a,text:t}),Ji(this,Ci(a),G)};Sa.prototype=X(va.prototype,{constructor:Sa,iter:function(t,e,n){n?this.iterN(t-this.first,e-t,n):this.iterN(this.first,this.first+this.size,t)},insert:function(t,e){for(var n=0,r=0;r<e.length;++r)n+=e[r].height;this.insertInner(t-this.first,e,n)},remove:function(t,e){this.removeInner(t-this.first,e)},getValue:function(t){var e=zt(this,this.first,this.first+this.size);return!1===t?e:e.join(t||this.lineSeparator())},setValue:ei((function(t){var e=Zt(this.first,0),n=this.first+this.size-1;ca(this,{from:e,to:Zt(n,Kt(this,n).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Lr(this.cm,0,0),Ji(this,Ci(e),G)})),replaceRange:function(t,e,n,r){fa(this,t,e=oe(this,e),n=n?oe(this,n):e,r)},getRange:function(t,e,n){var r=Yt(this,oe(this,t),oe(this,e));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(t){var e=this.getLineHandle(t);return e&&e.text},getLineHandle:function(t){if(Xt(this,t))return Kt(this,t)},getLineNumber:function(t){return Vt(t)},getLineHandleVisualStart:function(t){return"number"==typeof t&&(t=Kt(this,t)),Re(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return oe(this,t)},getCursor:function(t){var e=this.sel.primary();return null==t||"head"==t?e.head:"anchor"==t?e.anchor:"end"==t||"to"==t||!1===t?e.to():e.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ei((function(t,e,n){qi(this,oe(this,"number"==typeof t?Zt(t,e||0):t),null,n)})),setSelection:ei((function(t,e,n){qi(this,oe(this,t),oe(this,e||t),n)})),extendSelection:ei((function(t,e,n){zi(this,oe(this,t),e&&oe(this,e),n)})),extendSelections:ei((function(t,e){Wi(this,se(this,t),e)})),extendSelectionsBy:ei((function(t,e){Wi(this,se(this,V(this.sel.ranges,t)),e)})),setSelections:ei((function(t,e,n){if(t.length){for(var r=[],i=0;i<t.length;i++)r[i]=new wi(oe(this,t[i].anchor),oe(this,t[i].head));null==e&&(e=Math.min(t.length-1,this.sel.primIndex)),Ji(this,Ei(this.cm,r,e),n)}})),addSelection:ei((function(t,e,n){var r=this.sel.ranges.slice(0);r.push(new wi(oe(this,t),oe(this,e||t))),Ji(this,Ei(this.cm,r,r.length-1),n)})),getSelection:function(t){for(var e,n=this.sel.ranges,r=0;r<n.length;r++){var i=Yt(this,n[r].from(),n[r].to());e=e?e.concat(i):i}return!1===t?e:e.join(t||this.lineSeparator())},getSelections:function(t){for(var e=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Yt(this,n[r].from(),n[r].to());!1!==t&&(i=i.join(t||this.lineSeparator())),e[r]=i}return e},replaceSelection:function(t,e,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=t;this.replaceSelections(r,e,n||"+input")},replaceSelections:ei((function(t,e,n){for(var r=[],i=this.sel,a=0;a<i.ranges.length;a++){var o=i.ranges[a];r[a]={from:o.from(),to:o.to(),text:this.splitLines(t[a]),origin:n}}for(var s=e&&"end"!=e&&function(t,e,n){for(var r=[],i=Zt(t.first,0),a=i,o=0;o<e.length;o++){var s=e[o],c=ki(s.from,i,a),l=ki(xi(s),i,a);if(i=s.to,a=l,"around"==n){var A=t.sel.ranges[o],u=te(A.head,A.anchor)<0;r[o]=new wi(u?l:c,u?c:l)}else r[o]=new wi(c,c)}return new _i(r,t.sel.primIndex)}(this,r,e),c=r.length-1;c>=0;c--)ca(this,r[c]);s?Xi(this,s):this.cm&&Ir(this.cm)})),undo:ei((function(){Aa(this,"undo")})),redo:ei((function(){Aa(this,"redo")})),undoSelection:ei((function(){Aa(this,"undo",!0)})),redoSelection:ei((function(){Aa(this,"redo",!0)})),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,r=0;r<t.done.length;r++)t.done[r].ranges||++e;for(var i=0;i<t.undone.length;i++)t.undone[i].ranges||++n;return{undo:e,redo:n}},clearHistory:function(){var t=this;this.history=new Mi(this.history.maxGeneration),Ni(this,(function(e){return e.history=t.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Ki(this.history.done),undone:Ki(this.history.undone)}},setHistory:function(t){var e=this.history=new Mi(this.history.maxGeneration);e.done=Ki(t.done.slice(0),null,!0),e.undone=Ki(t.undone.slice(0),null,!0)},setGutterMarker:ei((function(t,e,n){return ma(this,t,"gutter",(function(t){var r=t.gutterMarkers||(t.gutterMarkers={});return r[e]=n,!n&&et(r)&&(t.gutterMarkers=null),!0}))})),clearGutter:ei((function(t){var e=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[t]&&ma(e,n,"gutter",(function(){return n.gutterMarkers[t]=null,et(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(t){var e;if("number"==typeof t){if(!Xt(this,t))return null;if(e=t,!(t=Kt(this,t)))return null}else if(null==(e=Vt(t)))return null;return{line:e,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:ei((function(t,e,n){return ma(this,t,"gutter"==e?"gutter":"class",(function(t){var r="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass";if(t[r]){if(C(n).test(t[r]))return!1;t[r]+=" "+n}else t[r]=n;return!0}))})),removeLineClass:ei((function(t,e,n){return ma(this,t,"gutter"==e?"gutter":"class",(function(t){var r="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass",i=t[r];if(!i)return!1;if(null==n)t[r]=null;else{var a=i.match(C(n));if(!a)return!1;var o=a.index+a[0].length;t[r]=i.slice(0,a.index)+(a.index&&o!=i.length?" ":"")+i.slice(o)||null}return!0}))})),addLineWidget:ei((function(t,e,n){return function(t,e,n,r){var i=new ba(t,n,r),a=t.cm;return a&&i.noHScroll&&(a.display.alignWidgets=!0),ma(t,e,"widget",(function(e){var n=e.widgets||(e.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=e,a&&!He(t,e)){var r=Ge(e)<t.scrollTop;Wt(e,e.height+bn(i)),r&&Sr(a,i.height),a.curOp.forceUpdate=!0}return!0})),a&&sn(a,"lineWidgetAdded",a,i,"number"==typeof e?e:Vt(e)),i}(this,t,e,n)})),removeLineWidget:function(t){t.clear()},markText:function(t,e,n){return Ca(this,oe(this,t),oe(this,e),n,n&&n.type||"range")},setBookmark:function(t,e){var n={replacedWith:e&&(null==e.nodeType?e.widget:e),insertLeft:e&&e.insertLeft,clearWhenEmpty:!1,shared:e&&e.shared,handleMouseEvents:e&&e.handleMouseEvents};return Ca(this,t=oe(this,t),t,n,"bookmark")},findMarksAt:function(t){var e=[],n=Kt(this,(t=oe(this,t)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=t.ch)&&(null==i.to||i.to>=t.ch)&&e.push(i.marker.parent||i.marker)}return e},findMarks:function(t,e,n){t=oe(this,t),e=oe(this,e);var r=[],i=t.line;return this.iter(t.line,e.line+1,(function(a){var o=a.markedSpans;if(o)for(var s=0;s<o.length;s++){var c=o[s];null!=c.to&&i==t.line&&t.ch>=c.to||null==c.from&&i!=t.line||null!=c.from&&i==e.line&&c.from>=e.ch||n&&!n(c.marker)||r.push(c.marker.parent||c.marker)}++i})),r},getAllMarks:function(){var t=[];return this.iter((function(e){var n=e.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&t.push(n[r].marker)})),t},posFromIndex:function(t){var e,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var a=i.text.length+r;if(a>t)return e=t,!0;t-=a,++n})),oe(this,Zt(n,e))},indexFromPos:function(t){var e=(t=oe(this,t)).ch;if(t.line<this.first||t.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,t.line,(function(t){e+=t.text.length+n})),e},copy:function(t){var e=new Sa(zt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return e.scrollTop=this.scrollTop,e.scrollLeft=this.scrollLeft,e.sel=this.sel,e.extend=!1,t&&(e.history.undoDepth=this.history.undoDepth,e.setHistory(this.getHistory())),e},linkedDoc:function(t){t||(t={});var e=this.first,n=this.first+this.size;null!=t.from&&t.from>e&&(e=t.from),null!=t.to&&t.to<n&&(n=t.to);var r=new Sa(zt(this,e,n),t.mode||this.modeOption,e,this.lineSep,this.direction);return t.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:t.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n],i=r.find(),a=t.clipPos(i.from),o=t.clipPos(i.to);if(te(a,o)){var s=Ca(t,a,o,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}(r,Ba(this)),r},unlinkDoc:function(t){if(t instanceof Bo&&(t=t.doc),this.linked)for(var e=0;e<this.linked.length;++e)if(this.linked[e].doc==t){this.linked.splice(e,1),t.unlinkDoc(this),Ta(Ba(this));break}if(t.history==this.history){var n=[t.id];Ni(t,(function(t){return n.push(t.id)}),!0),t.history=new Mi(null),t.history.done=Ki(this.history.done,n),t.history.undone=Ki(this.history.undone,n)}},iterLinkedDocs:function(t){Ni(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):It(t)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:ei((function(t){var e;"rtl"!=t&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter((function(t){return t.order=null})),this.cm&&Jr(e=this.cm,(function(){Di(e),Ar(e)})))}))}),Sa.prototype.eachLine=Sa.prototype.iter;var Ia=0;function La(t){var e=this;if(Fa(e),!pt(e,t)&&!_n(e.display,t)){vt(t),o&&(Ia=+new Date);var n=cr(e,t,!0),r=t.dataTransfer.files;if(n&&!e.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,a=Array(i),s=0,c=function(){++s==i&&Zr(e,(function(){var t={from:n=oe(e.doc,n),to:n,text:e.doc.splitLines(a.filter((function(t){return null!=t})).join(e.doc.lineSeparator())),origin:"paste"};ca(e.doc,t),Xi(e.doc,Ci(oe(e.doc,n),oe(e.doc,xi(t))))}))()},l=function(t,n){if(e.options.allowDropFileTypes&&-1==H(e.options.allowDropFileTypes,t.type))c();else{var r=new FileReader;r.onerror=function(){return c()},r.onload=function(){var t=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(t)||(a[n]=t),c()},r.readAsText(t)}},A=0;A<r.length;A++)l(r[A],A);else{if(e.state.draggingText&&e.doc.sel.contains(n)>-1)return e.state.draggingText(t),void setTimeout((function(){return e.display.input.focus()}),20);try{var u=t.dataTransfer.getData("Text");if(u){var h;if(e.state.draggingText&&!e.state.draggingText.copy&&(h=e.listSelections()),Zi(e.doc,Ci(n,n)),h)for(var f=0;f<h.length;++f)fa(e.doc,"",h[f].anchor,h[f].head,"drag");e.replaceSelection(u,"around","paste"),e.display.input.focus()}}catch(t){}}}}function Fa(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Na(t){if(document.getElementsByClassName){for(var e=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<e.length;r++){var i=e[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var e=0;e<n.length;e++)t(n[e])}))}}var Oa=!1;function Da(){var t;Oa||(ut(window,"resize",(function(){null==t&&(t=setTimeout((function(){t=null,Na(Ma)}),100))})),ut(window,"blur",(function(){return Na(Cr)})),Oa=!0)}function Ma(t){var e=t.display;e.cachedCharWidth=e.cachedTextHeight=e.cachedPaddingH=null,e.scrollbarsClipped=!1,t.setSize()}for(var Ra={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"},Ua=0;Ua<10;Ua++)Ra[Ua+48]=Ra[Ua+96]=String(Ua);for(var Pa=65;Pa<=90;Pa++)Ra[Pa]=String.fromCharCode(Pa);for(var Ha=1;Ha<=12;Ha++)Ra[Ha+111]=Ra[Ha+63235]="F"+Ha;var Qa={};function Ga(t){var e,n,r,i,a=t.split(/-(?!$)/);t=a[a.length-1];for(var o=0;o<a.length-1;o++){var s=a[o];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))e=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return e&&(t="Alt-"+t),n&&(t="Ctrl-"+t),i&&(t="Cmd-"+t),r&&(t="Shift-"+t),t}function ja(t){var e={};for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete t[n];continue}for(var i=V(n.split(" "),Ga),a=0;a<i.length;a++){var o=void 0,s=void 0;a==i.length-1?(s=i.join(" "),o=r):(s=i.slice(0,a+1).join(" "),o="...");var c=e[s];if(c){if(c!=o)throw new Error("Inconsistent bindings for "+s)}else e[s]=o}delete t[n]}for(var l in e)t[l]=e[l];return t}function $a(t,e,n,r){var i=(e=Wa(e)).call?e.call(t,r):e[t];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(e.fallthrough){if("[object Array]"!=Object.prototype.toString.call(e.fallthrough))return $a(t,e.fallthrough,n,r);for(var a=0;a<e.fallthrough.length;a++){var o=$a(t,e.fallthrough[a],n,r);if(o)return o}}}function Ka(t){var e="string"==typeof t?t:Ra[t.keyCode];return"Ctrl"==e||"Alt"==e||"Shift"==e||"Mod"==e}function Ya(t,e,n){var r=t;return e.altKey&&"Alt"!=r&&(t="Alt-"+t),(w?e.metaKey:e.ctrlKey)&&"Ctrl"!=r&&(t="Ctrl-"+t),(w?e.ctrlKey:e.metaKey)&&"Mod"!=r&&(t="Cmd-"+t),!n&&e.shiftKey&&"Shift"!=r&&(t="Shift-"+t),t}function za(t,e){if(u&&34==t.keyCode&&t.char)return!1;var n=Ra[t.keyCode];return null!=n&&!t.altGraphKey&&(3==t.keyCode&&t.code&&(n=t.code),Ya(n,t,e))}function Wa(t){return"string"==typeof t?Qa[t]:t}function Va(t,e){for(var n=t.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var a=e(n[i]);r.length&&te(a.from,W(r).to)<=0;){var o=r.pop();if(te(o.from,a.from)<0){a.from=o.from;break}}r.push(a)}Jr(t,(function(){for(var e=r.length-1;e>=0;e--)fa(t.doc,"",r[e].from,r[e].to,"+delete");Ir(t)}))}function qa(t,e,n){var r=it(t.text,e+n,n);return r<0||r>t.text.length?null:r}function Xa(t,e,n){var r=qa(t,e.ch,n);return null==r?null:new Zt(e.line,r,n<0?"after":"before")}function Ja(t,e,n,r,i){if(t){"rtl"==e.doc.direction&&(i=-i);var a=lt(n,e.doc.direction);if(a){var o,s=i<0?W(a):a[0],c=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==e.doc.direction){var l=Ln(e,n);o=i<0?n.text.length-1:0;var A=Fn(e,l,o).top;o=at((function(t){return Fn(e,l,t).top==A}),i<0==(1==s.level)?s.from:s.to-1,o),"before"==c&&(o=qa(n,o,1))}else o=i<0?s.to:s.from;return new Zt(r,o,c)}}return new Zt(r,i<0?n.text.length:0,i<0?"before":"after")}Qa.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"},Qa.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"},Qa.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"},Qa.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"]},Qa.default=y?Qa.macDefault:Qa.pcDefault;var Za={selectAll:oa,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),G)},killLine:function(t){return Va(t,(function(e){if(e.empty()){var n=Kt(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line<t.lastLine()?{from:e.head,to:Zt(e.head.line+1,0)}:{from:e.head,to:Zt(e.head.line,n)}}return{from:e.from(),to:e.to()}}))},deleteLine:function(t){return Va(t,(function(e){return{from:Zt(e.from().line,0),to:oe(t.doc,Zt(e.to().line+1,0))}}))},delLineLeft:function(t){return Va(t,(function(t){return{from:Zt(t.from().line,0),to:t.from()}}))},delWrappedLineLeft:function(t){return Va(t,(function(e){var n=t.charCoords(e.head,"div").top+5;return{from:t.coordsChar({left:0,top:n},"div"),to:e.from()}}))},delWrappedLineRight:function(t){return Va(t,(function(e){var n=t.charCoords(e.head,"div").top+5,r=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div");return{from:e.from(),to:r}}))},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(Zt(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(Zt(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy((function(e){return to(t,e.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy((function(e){return eo(t,e.head)}),{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy((function(e){return function(t,e){var n=Kt(t.doc,e),r=function(t){for(var e;e=Oe(t);)t=e.find(1,!0).line;return t}(n);return r!=n&&(e=Vt(r)),Ja(!0,t,n,e,-1)}(t,e.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div")}),$)},goLineLeft:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:0,top:n},"div")}),$)},goLineLeftSmart:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5,r=t.coordsChar({left:0,top:n},"div");return r.ch<t.getLine(r.line).search(/\S/)?eo(t,e.head):r}),$)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection("\t")},insertSoftTab:function(t){for(var e=[],n=t.listSelections(),r=t.options.tabSize,i=0;i<n.length;i++){var a=n[i].from(),o=U(t.getLine(a.line),a.ch,r);e.push(z(r-o%r))}t.replaceSelections(e)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return Jr(t,(function(){for(var e=t.listSelections(),n=[],r=0;r<e.length;r++)if(e[r].empty()){var i=e[r].head,a=Kt(t.doc,i.line).text;if(a)if(i.ch==a.length&&(i=new Zt(i.line,i.ch-1)),i.ch>0)i=new Zt(i.line,i.ch+1),t.replaceRange(a.charAt(i.ch-1)+a.charAt(i.ch-2),Zt(i.line,i.ch-2),i,"+transpose");else if(i.line>t.doc.first){var o=Kt(t.doc,i.line-1).text;o&&(i=new Zt(i.line,1),t.replaceRange(a.charAt(0)+t.doc.lineSeparator()+o.charAt(o.length-1),Zt(i.line-1,o.length-1),i,"+transpose"))}n.push(new wi(i,i))}t.setSelections(n)}))},newlineAndIndent:function(t){return Jr(t,(function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var r=0;r<e.length;r++)t.indentLine(e[r].from().line,null,!0);Ir(t)}))},openLine:function(t){return t.replaceSelection("\n","start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function to(t,e){var n=Kt(t.doc,e),r=Re(n);return r!=n&&(e=Vt(r)),Ja(!0,t,r,e,1)}function eo(t,e){var n=to(t,e.line),r=Kt(t.doc,n.line),i=lt(r,t.doc.direction);if(!i||0==i[0].level){var a=Math.max(n.ch,r.text.search(/\S/)),o=e.line==n.line&&e.ch<=a&&e.ch;return Zt(n.line,o?0:a,n.sticky)}return n}function no(t,e,n){if("string"==typeof e&&!(e=Za[e]))return!1;t.display.input.ensurePolled();var r=t.display.shift,i=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),n&&(t.display.shift=!1),i=e(t)!=Q}finally{t.display.shift=r,t.state.suppressEdits=!1}return i}var ro=new P;function io(t,e,n,r){var i=t.state.keySeq;if(i){if(Ka(e))return"handled";if(/\'$/.test(e)?t.state.keySeq=null:ro.set(50,(function(){t.state.keySeq==i&&(t.state.keySeq=null,t.display.input.reset())})),ao(t,i+" "+e,n,r))return!0}return ao(t,e,n,r)}function ao(t,e,n,r){var i=function(t,e,n){for(var r=0;r<t.state.keyMaps.length;r++){var i=$a(e,t.state.keyMaps[r],n,t);if(i)return i}return t.options.extraKeys&&$a(e,t.options.extraKeys,n,t)||$a(e,t.options.keyMap,n,t)}(t,e,r);return"multi"==i&&(t.state.keySeq=e),"handled"==i&&sn(t,"keyHandled",t,e,n),"handled"!=i&&"multi"!=i||(vt(n),br(t)),!!i}function oo(t,e){var n=za(e,!0);return!!n&&(e.shiftKey&&!t.state.keySeq?io(t,"Shift-"+n,e,(function(e){return no(t,e,!0)}))||io(t,n,e,(function(e){if("string"==typeof e?/^go[A-Z]/.test(e):e.motion)return no(t,e)})):io(t,n,e,(function(e){return no(t,e)})))}var so=null;function co(t){var e=this;if(!(t.target&&t.target!=e.display.input.getField()||(e.curOp.focus=F(),pt(e,t)))){o&&s<11&&27==t.keyCode&&(t.returnValue=!1);var r=t.keyCode;e.display.shift=16==r||t.shiftKey;var i=oo(e,t);u&&(so=i?r:null,i||88!=r||Ft||!(y?t.metaKey:t.ctrlKey)||e.replaceSelection("",null,"cut")),n&&!y&&!i&&46==r&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(e.display.lineDiv.className)||function(t){var e=t.display.lineDiv;function n(t){18!=t.keyCode&&t.altKey||(B(e,"CodeMirror-crosshair"),ft(document,"keyup",n),ft(document,"mouseover",n))}N(e,"CodeMirror-crosshair"),ut(document,"keyup",n),ut(document,"mouseover",n)}(e)}}function lo(t){16==t.keyCode&&(this.doc.sel.shift=!1),pt(this,t)}function Ao(t){var e=this;if(!(t.target&&t.target!=e.display.input.getField()||_n(e.display,t)||pt(e,t)||t.ctrlKey&&!t.altKey||y&&t.metaKey)){var n=t.keyCode,r=t.charCode;if(u&&n==so)return so=null,void vt(t);if(!u||t.which&&!(t.which<10)||!oo(e,t)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(t,e,n){return io(t,"'"+n+"'",e,(function(e){return no(t,e,!0)}))}(e,t,i)||e.display.input.onKeyPress(t))}}}var uo,ho,fo=function(t,e,n){this.time=t,this.pos=e,this.button=n};function po(t){var e=this,n=e.display;if(!(pt(e,t)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=t.shiftKey,_n(n,t))c||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!yo(e,t)){var r=cr(e,t),i=Ct(t),a=r?function(t,e){var n=+new Date;return ho&&ho.compare(n,t,e)?(uo=ho=null,"triple"):uo&&uo.compare(n,t,e)?(ho=new fo(n,t,e),uo=null,"double"):(uo=new fo(n,t,e),ho=null,"single")}(r,i):"single";window.focus(),1==i&&e.state.selectingText&&e.state.selectingText(t),r&&function(t,e,n,r,i){var a="Click";return"double"==r?a="Double"+a:"triple"==r&&(a="Triple"+a),io(t,Ya(a=(1==e?"Left":2==e?"Middle":"Right")+a,i),i,(function(e){if("string"==typeof e&&(e=Za[e]),!e)return!1;var r=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),r=e(t,n)!=Q}finally{t.state.suppressEdits=!1}return r}))}(e,i,r,a,t)||(1==i?r?function(t,e,n,r){o?setTimeout(M(_r,t),0):t.curOp.focus=F();var i,a=function(t,e,n){var r=t.getOption("configureMouse"),i=r?r(t,e,n):{};if(null==i.unit){var a=v?n.shiftKey&&n.metaKey:n.altKey;i.unit=a?"rectangle":"single"==e?"char":"double"==e?"word":"line"}return(null==i.extend||t.doc.extend)&&(i.extend=t.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=y?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(y?n.altKey:n.ctrlKey)),i}(t,n,r),l=t.doc.sel;t.options.dragDrop&&Tt&&!t.isReadOnly()&&"single"==n&&(i=l.contains(e))>-1&&(te((i=l.ranges[i]).from(),e)<0||e.xRel>0)&&(te(i.to(),e)>0||e.xRel<0)?function(t,e,n,r){var i=t.display,a=!1,l=Zr(t,(function(e){c&&(i.scroller.draggable=!1),t.state.draggingText=!1,ft(i.wrapper.ownerDocument,"mouseup",l),ft(i.wrapper.ownerDocument,"mousemove",A),ft(i.scroller,"dragstart",u),ft(i.scroller,"drop",l),a||(vt(e),r.addNew||zi(t.doc,n,null,null,r.extend),c&&!h||o&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),A=function(t){a=a||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},u=function(){return a=!0};c&&(i.scroller.draggable=!0),t.state.draggingText=l,l.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),ut(i.wrapper.ownerDocument,"mouseup",l),ut(i.wrapper.ownerDocument,"mousemove",A),ut(i.scroller,"dragstart",u),ut(i.scroller,"drop",l),wr(t),setTimeout((function(){return i.input.focus()}),20)}(t,r,e,a):function(t,e,n,r){var i=t.display,a=t.doc;vt(e);var o,s,c=a.sel,l=c.ranges;if(r.addNew&&!r.extend?(s=a.sel.contains(n),o=s>-1?l[s]:new wi(n,n)):(o=a.sel.primary(),s=a.sel.primIndex),"rectangle"==r.unit)r.addNew||(o=new wi(n,n)),n=cr(t,e,!0,!0),s=-1;else{var A=go(t,n,r.unit);o=r.extend?Yi(o,A.anchor,A.head,r.extend):A}r.addNew?-1==s?(s=l.length,Ji(a,Ei(t,l.concat([o]),s),{scroll:!1,origin:"*mouse"})):l.length>1&&l[s].empty()&&"char"==r.unit&&!r.extend?(Ji(a,Ei(t,l.slice(0,s).concat(l.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),c=a.sel):Vi(a,s,o,j):(s=0,Ji(a,new _i([o],0),j),c=a.sel);var u=n;function h(e){if(0!=te(u,e))if(u=e,"rectangle"==r.unit){for(var i=[],l=t.options.tabSize,A=U(Kt(a,n.line).text,n.ch,l),h=U(Kt(a,e.line).text,e.ch,l),f=Math.min(A,h),d=Math.max(A,h),p=Math.min(n.line,e.line),g=Math.min(t.lastLine(),Math.max(n.line,e.line));p<=g;p++){var m=Kt(a,p).text,y=K(m,f,l);f==d?i.push(new wi(Zt(p,y),Zt(p,y))):m.length>y&&i.push(new wi(Zt(p,y),Zt(p,K(m,d,l))))}i.length||i.push(new wi(n,n)),Ji(a,Ei(t,c.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var v,b=o,_=go(t,e,r.unit),w=b.anchor;te(_.anchor,w)>0?(v=_.head,w=ie(b.from(),_.anchor)):(v=_.anchor,w=re(b.to(),_.head));var E=c.ranges.slice(0);E[s]=function(t,e){var n=e.anchor,r=e.head,i=Kt(t.doc,n.line);if(0==te(n,r)&&n.sticky==r.sticky)return e;var a=lt(i);if(!a)return e;var o=st(a,n.ch,n.sticky),s=a[o];if(s.from!=n.ch&&s.to!=n.ch)return e;var c,l=o+(s.from==n.ch==(1!=s.level)?0:1);if(0==l||l==a.length)return e;if(r.line!=n.line)c=(r.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var A=st(a,r.ch,r.sticky),u=A-o||(r.ch-n.ch)*(1==s.level?-1:1);c=A==l-1||A==l?u<0:u>0}var h=a[l+(c?-1:0)],f=c==(1==h.level),d=f?h.from:h.to,p=f?"after":"before";return n.ch==d&&n.sticky==p?e:new wi(new Zt(n.line,d,p),r)}(t,new wi(oe(a,w),v)),Ji(a,Ei(t,E,s),j)}}var f=i.wrapper.getBoundingClientRect(),d=0;function p(e){t.state.selectingText=!1,d=1/0,e&&(vt(e),i.input.focus()),ft(i.wrapper.ownerDocument,"mousemove",g),ft(i.wrapper.ownerDocument,"mouseup",m),a.history.lastSelOrigin=null}var g=Zr(t,(function(e){0!==e.buttons&&Ct(e)?function e(n){var o=++d,s=cr(t,n,!0,"rectangle"==r.unit);if(s)if(0!=te(s,u)){t.curOp.focus=F(),h(s);var c=Tr(i,a);(s.line>=c.to||s.line<c.from)&&setTimeout(Zr(t,(function(){d==o&&e(n)})),150)}else{var l=n.clientY<f.top?-20:n.clientY>f.bottom?20:0;l&&setTimeout(Zr(t,(function(){d==o&&(i.scroller.scrollTop+=l,e(n))})),50)}}(e):p(e)})),m=Zr(t,p);t.state.selectingText=m,ut(i.wrapper.ownerDocument,"mousemove",g),ut(i.wrapper.ownerDocument,"mouseup",m)}(t,r,e,a)}(e,r,a,t):Et(t)==n.scroller&&vt(t):2==i?(r&&zi(e.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(E?e.display.input.onContextMenu(t):wr(e)))}}function go(t,e,n){if("char"==n)return new wi(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new wi(Zt(e.line,0),oe(t.doc,Zt(e.line+1,0)));var r=n(t,e);return new wi(r.from,r.to)}function mo(t,e,n,r){var i,a;if(e.touches)i=e.touches[0].clientX,a=e.touches[0].clientY;else try{i=e.clientX,a=e.clientY}catch(t){return!1}if(i>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;r&&vt(e);var o=t.display,s=o.lineDiv.getBoundingClientRect();if(a>s.bottom||!mt(t,n))return _t(e);a-=s.top-o.viewOffset;for(var c=0;c<t.display.gutterSpecs.length;++c){var l=o.gutters.childNodes[c];if(l&&l.getBoundingClientRect().right>=i)return dt(t,n,t,qt(t.doc,a),t.display.gutterSpecs[c].className,e),_t(e)}}function yo(t,e){return mo(t,e,"gutterClick",!0)}function vo(t,e){_n(t.display,e)||function(t,e){return!!mt(t,"gutterContextMenu")&&mo(t,e,"gutterContextMenu",!1)}(t,e)||pt(t,e,"contextmenu")||E||t.display.input.onContextMenu(e)}function bo(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Pn(t)}fo.prototype.compare=function(t,e,n){return this.time+400>t&&0==te(e,this.pos)&&n==this.button};var _o={toString:function(){return"CodeMirror.Init"}},wo={},Eo={};function Co(t,e,n){if(!e!=!(n&&n!=_o)){var r=t.display.dragFunctions,i=e?ut:ft;i(t.display.scroller,"dragstart",r.start),i(t.display.scroller,"dragenter",r.enter),i(t.display.scroller,"dragover",r.over),i(t.display.scroller,"dragleave",r.leave),i(t.display.scroller,"drop",r.drop)}}function xo(t){t.options.lineWrapping?(N(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(B(t.display.wrapper,"CodeMirror-wrap"),$e(t)),sr(t),Ar(t),Pn(t),setTimeout((function(){return Hr(t)}),100)}function Bo(t,e){var n=this;if(!(this instanceof Bo))return new Bo(t,e);this.options=e=e?R(e):{},R(wo,e,!1);var r=e.value;"string"==typeof r?r=new Sa(r,e.mode,null,e.lineSeparator,e.direction):e.mode&&(r.modeOption=e.mode),this.doc=r;var i=new Bo.inputStyles[e.inputStyle](this),a=this.display=new pi(t,r,i,e);for(var l in a.wrapper.CodeMirror=this,bo(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),jr(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 P,keySeq:null,specialChars:null},e.autofocus&&!m&&a.input.focus(),o&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(t){var e=t.display;ut(e.scroller,"mousedown",Zr(t,po)),ut(e.scroller,"dblclick",o&&s<11?Zr(t,(function(e){if(!pt(t,e)){var n=cr(t,e);if(n&&!yo(t,e)&&!_n(t.display,e)){vt(e);var r=t.findWordAt(n);zi(t.doc,r.anchor,r.head)}}})):function(e){return pt(t,e)||vt(e)}),ut(e.scroller,"contextmenu",(function(e){return vo(t,e)})),ut(e.input.getField(),"contextmenu",(function(n){e.scroller.contains(n.target)||vo(t,n)}));var n,r={end:0};function i(){e.activeTouch&&(n=setTimeout((function(){return e.activeTouch=null}),1e3),(r=e.activeTouch).end=+new Date)}function a(t,e){if(null==e.left)return!0;var n=e.left-t.left,r=e.top-t.top;return n*n+r*r>400}ut(e.scroller,"touchstart",(function(i){if(!pt(t,i)&&!function(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}(i)&&!yo(t,i)){e.input.ensurePolled(),clearTimeout(n);var a=+new Date;e.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(e.activeTouch.left=i.touches[0].pageX,e.activeTouch.top=i.touches[0].pageY)}})),ut(e.scroller,"touchmove",(function(){e.activeTouch&&(e.activeTouch.moved=!0)})),ut(e.scroller,"touchend",(function(n){var r=e.activeTouch;if(r&&!_n(e,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,s=t.coordsChar(e.activeTouch,"page");o=!r.prev||a(r,r.prev)?new wi(s,s):!r.prev.prev||a(r,r.prev.prev)?t.findWordAt(s):new wi(Zt(s.line,0),oe(t.doc,Zt(s.line+1,0))),t.setSelection(o.anchor,o.head),t.focus(),vt(n)}i()})),ut(e.scroller,"touchcancel",i),ut(e.scroller,"scroll",(function(){e.scroller.clientHeight&&(Or(t,e.scroller.scrollTop),Mr(t,e.scroller.scrollLeft,!0),dt(t,"scroll",t))})),ut(e.scroller,"mousewheel",(function(e){return bi(t,e)})),ut(e.scroller,"DOMMouseScroll",(function(e){return bi(t,e)})),ut(e.wrapper,"scroll",(function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0})),e.dragFunctions={enter:function(e){pt(t,e)||wt(e)},over:function(e){pt(t,e)||(function(t,e){var n=cr(t,e);if(n){var r=document.createDocumentFragment();mr(t,n,r),t.display.dragCursor||(t.display.dragCursor=S("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),k(t.display.dragCursor,r)}}(t,e),wt(e))},start:function(e){return function(t,e){if(o&&(!t.state.draggingText||+new Date-Ia<100))wt(e);else if(!pt(t,e)&&!_n(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!h)){var n=S("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",u&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),u&&n.parentNode.removeChild(n)}}(t,e)},drop:Zr(t,La),leave:function(e){pt(t,e)||Fa(t)}};var c=e.input.getField();ut(c,"keyup",(function(e){return lo.call(t,e)})),ut(c,"keydown",Zr(t,co)),ut(c,"keypress",Zr(t,Ao)),ut(c,"focus",(function(e){return Er(t,e)})),ut(c,"blur",(function(e){return Cr(t,e)}))}(this),Da(),Kr(this),this.curOp.forceUpdate=!0,Oi(this,r),e.autofocus&&!m||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Er(n)}),20):Cr(this),Eo)Eo.hasOwnProperty(l)&&Eo[l](this,e[l],_o);ui(this),e.finishInit&&e.finishInit(this);for(var A=0;A<To.length;++A)To[A](this);Yr(this),c&&e.lineWrapping&&"optimizelegibility"==getComputedStyle(a.lineDiv).textRendering&&(a.lineDiv.style.textRendering="auto")}Bo.defaults=wo,Bo.optionHandlers=Eo;var To=[];function ko(t,e,n,r){var i,a=t.doc;null==n&&(n="add"),"smart"==n&&(a.mode.indent?i=he(t,e).state:n="prev");var o=t.options.tabSize,s=Kt(a,e),c=U(s.text,null,o);s.stateAfter&&(s.stateAfter=null);var l,A=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((l=a.mode.indent(i,s.text.slice(A.length),s.text))==Q||l>150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=e>a.first?U(Kt(a,e-1).text,null,o):0:"add"==n?l=c+t.options.indentUnit:"subtract"==n?l=c-t.options.indentUnit:"number"==typeof n&&(l=c+n),l=Math.max(0,l);var u="",h=0;if(t.options.indentWithTabs)for(var f=Math.floor(l/o);f;--f)h+=o,u+="\t";if(h<l&&(u+=z(l-h)),u!=A)return fa(a,u,Zt(e,0),Zt(e,A.length),"+input"),s.stateAfter=null,!0;for(var d=0;d<a.sel.ranges.length;d++){var p=a.sel.ranges[d];if(p.head.line==e&&p.head.ch<A.length){var g=Zt(e,A.length);Vi(a,d,new wi(g,g));break}}}Bo.defineInitHook=function(t){return To.push(t)};var So=null;function Io(t){So=t}function Lo(t,e,n,r,i){var a=t.doc;t.display.shift=!1,r||(r=a.sel);var o=+new Date-200,s="paste"==i||t.state.pasteIncoming>o,c=It(e),l=null;if(s&&r.ranges.length>1)if(So&&So.text.join("\n")==e){if(r.ranges.length%So.text.length==0){l=[];for(var A=0;A<So.text.length;A++)l.push(a.splitLines(So.text[A]))}}else c.length==r.ranges.length&&t.options.pasteLinesPerSelection&&(l=V(c,(function(t){return[t]})));for(var u=t.curOp.updateInput,h=r.ranges.length-1;h>=0;h--){var f=r.ranges[h],d=f.from(),p=f.to();f.empty()&&(n&&n>0?d=Zt(d.line,d.ch-n):t.state.overwrite&&!s?p=Zt(p.line,Math.min(Kt(a,p.line).text.length,p.ch+W(c).length)):s&&So&&So.lineWise&&So.text.join("\n")==c.join("\n")&&(d=p=Zt(d.line,0)));var g={from:d,to:p,text:l?l[h%l.length]:c,origin:i||(s?"paste":t.state.cutIncoming>o?"cut":"+input")};ca(t.doc,g),sn(t,"inputRead",t,g)}e&&!s&&No(t,e),Ir(t),t.curOp.updateInput<2&&(t.curOp.updateInput=u),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Fo(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||Jr(e,(function(){return Lo(e,n,0,null,"paste")})),!0}function No(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var a=t.getModeAt(i.head),o=!1;if(a.electricChars){for(var s=0;s<a.electricChars.length;s++)if(e.indexOf(a.electricChars.charAt(s))>-1){o=ko(t,i.head.line,"smart");break}}else a.electricInput&&a.electricInput.test(Kt(t.doc,i.head.line).text.slice(0,i.head.ch))&&(o=ko(t,i.head.line,"smart"));o&&sn(t,"electricInput",t,i.head.line)}}}function Oo(t){for(var e=[],n=[],r=0;r<t.doc.sel.ranges.length;r++){var i=t.doc.sel.ranges[r].head.line,a={anchor:Zt(i,0),head:Zt(i+1,0)};n.push(a),e.push(t.getRange(a.anchor,a.head))}return{text:e,ranges:n}}function Do(t,e,n,r){t.setAttribute("autocorrect",n?"":"off"),t.setAttribute("autocapitalize",r?"":"off"),t.setAttribute("spellcheck",!!e)}function Mo(){var t=S("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),e=S("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return c?t.style.width="1000px":t.setAttribute("wrap","off"),p&&(t.style.border="1px solid black"),Do(t),e}function Ro(t,e,n,r,i){var a=e,o=n,s=Kt(t,e.line),c=i&&"rtl"==t.direction?-n:n;function l(a){var o,l;if("codepoint"==r){var A=s.text.charCodeAt(e.ch+(r>0?0:-1));o=isNaN(A)?null:new Zt(e.line,Math.max(0,Math.min(s.text.length,e.ch+n*(A>=55296&&A<56320?2:1))),-n)}else o=i?function(t,e,n,r){var i=lt(e,t.doc.direction);if(!i)return Xa(e,n,r);n.ch>=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var a=st(i,n.ch,n.sticky),o=i[a];if("ltr"==t.doc.direction&&o.level%2==0&&(r>0?o.to>n.ch:o.from<n.ch))return Xa(e,n,r);var s,c=function(t,n){return qa(e,t instanceof Zt?t.ch:t,n)},l=function(n){return t.options.lineWrapping?(s=s||Ln(t,e),Xn(t,e,s,n)):{begin:0,end:e.text.length}},A=l("before"==n.sticky?c(n,-1):n.ch);if("rtl"==t.doc.direction||1==o.level){var u=1==o.level==r<0,h=c(n,u?1:-1);if(null!=h&&(u?h<=o.to&&h<=A.end:h>=o.from&&h>=A.begin)){var f=u?"before":"after";return new Zt(n.line,h,f)}}var d=function(t,e,r){for(var a=function(t,e){return e?new Zt(n.line,c(t,1),"before"):new Zt(n.line,t,"after")};t>=0&&t<i.length;t+=e){var o=i[t],s=e>0==(1!=o.level),l=s?r.begin:c(r.end,-1);if(o.from<=l&&l<o.to)return a(l,s);if(l=s?o.from:c(o.to,-1),r.begin<=l&&l<r.end)return a(l,s)}},p=d(a+r,r,A);if(p)return p;var g=r>0?A.end:c(A.begin,-1);return null==g||r>0&&g==e.text.length||!(p=d(r>0?0:i.length-1,r,l(g)))?null:p}(t.cm,s,e,n):Xa(s,e,n);if(null==o){if(a||(l=e.line+c)<t.first||l>=t.first+t.size||(e=new Zt(l,e.ch,e.sticky),!(s=Kt(t,l))))return!1;e=Ja(i,t.cm,s,e.line,c)}else e=o;return!0}if("char"==r||"codepoint"==r)l();else if("column"==r)l(!0);else if("word"==r||"group"==r)for(var A=null,u="group"==r,h=t.cm&&t.cm.getHelper(e,"wordChars"),f=!0;!(n<0)||l(!f);f=!1){var d=s.text.charAt(e.ch)||"\n",p=tt(d,h)?"w":u&&"\n"==d?"n":!u||/\s/.test(d)?null:"p";if(!u||f||p||(p="s"),A&&A!=p){n<0&&(n=1,l(),e.sticky="after");break}if(p&&(A=p),n>0&&!l(!f))break}var g=ia(t,e,a,o,!0);return ee(a,g)&&(g.hitSide=!0),g}function Uo(t,e,n,r){var i,a,o=t.doc,s=e.left;if("page"==r){var c=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(c-.5*nr(t.display),3);i=(n>0?e.bottom:e.top)+n*l}else"line"==r&&(i=n>0?e.bottom+3:e.top-3);for(;(a=Vn(t,s,i)).outside;){if(n<0?i<=0:i>=o.height){a.hitSide=!0;break}i+=5*n}return a}var Po=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new P,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ho(t,e){var n=In(t,e.line);if(!n||n.hidden)return null;var r=Kt(t.doc,e.line),i=kn(n,r,e.line),a=lt(r,t.doc.direction),o="left";a&&(o=st(a,e.ch)%2?"right":"left");var s=Dn(i.map,e.ch,o);return s.offset="right"==s.collapse?s.end:s.start,s}function Qo(t,e){return e&&(t.bad=!0),t}function Go(t,e,n){var r;if(e==t.display.lineDiv){if(!(r=t.display.lineDiv.childNodes[n]))return Qo(t.clipPos(Zt(t.display.viewTo-1)),!0);e=null,n=0}else for(r=e;;r=r.parentNode){if(!r||r==t.display.lineDiv)return null;if(r.parentNode&&r.parentNode==t.display.lineDiv)break}for(var i=0;i<t.display.view.length;i++){var a=t.display.view[i];if(a.node==r)return jo(a,e,n)}}function jo(t,e,n){var r=t.text.firstChild,i=!1;if(!e||!L(r,e))return Qo(Zt(Vt(t.line),0),!0);if(e==r&&(i=!0,e=r.childNodes[n],n=0,!e)){var a=t.rest?W(t.rest):t.line;return Qo(Zt(Vt(a),a.text.length),i)}var o=3==e.nodeType?e:null,s=e;for(o||1!=e.childNodes.length||3!=e.firstChild.nodeType||(o=e.firstChild,n&&(n=o.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var c=t.measure,l=c.maps;function A(e,n,r){for(var i=-1;i<(l?l.length:0);i++)for(var a=i<0?c.map:l[i],o=0;o<a.length;o+=3){var s=a[o+2];if(s==e||s==n){var A=Vt(i<0?t.line:t.rest[i]),u=a[o]+r;return(r<0||s!=e)&&(u=a[o+(r?1:0)]),Zt(A,u)}}}var u=A(o,s,n);if(u)return Qo(u,i);for(var h=s.nextSibling,f=o?o.nodeValue.length-n:0;h;h=h.nextSibling){if(u=A(h,h.firstChild,0))return Qo(Zt(u.line,u.ch-f),i);f+=h.textContent.length}for(var d=s.previousSibling,p=n;d;d=d.previousSibling){if(u=A(d,d.firstChild,-1))return Qo(Zt(u.line,u.ch+p),i);p+=d.textContent.length}}Po.prototype.init=function(t){var e=this,n=this,r=n.cm,i=n.div=t.lineDiv;function a(t){for(var e=t.target;e;e=e.parentNode){if(e==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(e.className))break}return!1}function o(t){if(a(t)&&!pt(r,t)){if(r.somethingSelected())Io({lineWise:!1,text:r.getSelections()}),"cut"==t.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var e=Oo(r);Io({lineWise:!0,text:e.text}),"cut"==t.type&&r.operation((function(){r.setSelections(e.ranges,0,G),r.replaceSelection("",null,"cut")}))}if(t.clipboardData){t.clipboardData.clearData();var o=So.text.join("\n");if(t.clipboardData.setData("Text",o),t.clipboardData.getData("Text")==o)return void t.preventDefault()}var s=Mo(),c=s.firstChild;r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),c.value=So.text.join("\n");var l=document.activeElement;D(c),setTimeout((function(){r.display.lineSpace.removeChild(s),l.focus(),l==i&&n.showPrimarySelection()}),50)}}Do(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),ut(i,"paste",(function(t){!a(t)||pt(r,t)||Fo(t,r)||s<=11&&setTimeout(Zr(r,(function(){return e.updateFromDOM()})),20)})),ut(i,"compositionstart",(function(t){e.composing={data:t.data,done:!1}})),ut(i,"compositionupdate",(function(t){e.composing||(e.composing={data:t.data,done:!1})})),ut(i,"compositionend",(function(t){e.composing&&(t.data!=e.composing.data&&e.readFromDOMSoon(),e.composing.done=!0)})),ut(i,"touchstart",(function(){return n.forceCompositionEnd()})),ut(i,"input",(function(){e.composing||e.readFromDOMSoon()})),ut(i,"copy",o),ut(i,"cut",o)},Po.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},Po.prototype.prepareSelection=function(){var t=gr(this.cm,!1);return t.focus=document.activeElement==this.div,t},Po.prototype.showSelection=function(t,e){t&&this.cm.display.view.length&&((t.focus||e)&&this.showPrimarySelection(),this.showMultipleSelections(t))},Po.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Po.prototype.showPrimarySelection=function(){var t=this.getSelection(),e=this.cm,r=e.doc.sel.primary(),i=r.from(),a=r.to();if(e.display.viewTo==e.display.viewFrom||i.line>=e.display.viewTo||a.line<e.display.viewFrom)t.removeAllRanges();else{var o=Go(e,t.anchorNode,t.anchorOffset),s=Go(e,t.focusNode,t.focusOffset);if(!o||o.bad||!s||s.bad||0!=te(ie(o,s),i)||0!=te(re(o,s),a)){var c=e.display.view,l=i.line>=e.display.viewFrom&&Ho(e,i)||{node:c[0].measure.map[2],offset:0},A=a.line<e.display.viewTo&&Ho(e,a);if(!A){var u=c[c.length-1].measure,h=u.maps?u.maps[u.maps.length-1]:u.map;A={node:h[h.length-1],offset:h[h.length-2]-h[h.length-3]}}if(l&&A){var f,d=t.rangeCount&&t.getRangeAt(0);try{f=x(l.node,l.offset,A.offset,A.node)}catch(t){}f&&(!n&&e.state.focused?(t.collapse(l.node,l.offset),f.collapsed||(t.removeAllRanges(),t.addRange(f))):(t.removeAllRanges(),t.addRange(f)),d&&null==t.anchorNode?t.addRange(d):n&&this.startGracePeriod()),this.rememberSelection()}else t.removeAllRanges()}}},Po.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation((function(){return t.cm.curOp.selectionChanged=!0}))}),20)},Po.prototype.showMultipleSelections=function(t){k(this.cm.display.cursorDiv,t.cursors),k(this.cm.display.selectionDiv,t.selection)},Po.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},Po.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var e=t.getRangeAt(0).commonAncestorContainer;return L(this.div,e)},Po.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&document.activeElement==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Po.prototype.blur=function(){this.div.blur()},Po.prototype.getField=function(){return this.div},Po.prototype.supportsTouch=function(){return!0},Po.prototype.receivedFocus=function(){var t=this;this.selectionInEditor()?this.pollSelection():Jr(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}))},Po.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},Po.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var t=this.getSelection(),e=this.cm;if(g&&A&&this.cm.display.gutterSpecs.length&&function(t){for(var e=t;e;e=e.parentNode)if(/CodeMirror-gutter-wrapper/.test(e.className))return!0;return!1}(t.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(e,t.anchorNode,t.anchorOffset),r=Go(e,t.focusNode,t.focusOffset);n&&r&&Jr(e,(function(){Ji(e.doc,Ci(n,r),G),(n.bad||r.bad)&&(e.curOp.selectionChanged=!0)}))}}},Po.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t,e,n,r=this.cm,i=r.display,a=r.doc.sel.primary(),o=a.from(),s=a.to();if(0==o.ch&&o.line>r.firstLine()&&(o=Zt(o.line-1,Kt(r.doc,o.line-1).length)),s.ch==Kt(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=Zt(s.line+1,0)),o.line<i.viewFrom||s.line>i.viewTo-1)return!1;o.line==i.viewFrom||0==(t=lr(r,o.line))?(e=Vt(i.view[0].line),n=i.view[0].node):(e=Vt(i.view[t].line),n=i.view[t-1].node.nextSibling);var c,l,A=lr(r,s.line);if(A==i.view.length-1?(c=i.viewTo-1,l=i.lineDiv.lastChild):(c=Vt(i.view[A+1].line)-1,l=i.view[A+1].node.previousSibling),!n)return!1;for(var u=r.doc.splitLines(function(t,e,n,r,i){var a="",o=!1,s=t.doc.lineSeparator(),c=!1;function l(){o&&(a+=s,c&&(a+=s),o=c=!1)}function A(t){t&&(l(),a+=t)}function u(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(n)return void A(n);var a,h=e.getAttribute("cm-marker");if(h){var f=t.findMarks(Zt(r,0),Zt(i+1,0),function(t){return function(e){return e.id==t}}(+h));return void(f.length&&(a=f[0].find(0))&&A(Yt(t.doc,a.from,a.to).join(s)))}if("false"==e.getAttribute("contenteditable"))return;var d=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;d&&l();for(var p=0;p<e.childNodes.length;p++)u(e.childNodes[p]);/^(pre|p)$/i.test(e.nodeName)&&(c=!0),d&&(o=!0)}else 3==e.nodeType&&A(e.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;u(e),e!=n;)e=e.nextSibling,c=!1;return a}(r,n,l,e,c)),h=Yt(r.doc,Zt(e,0),Zt(c,Kt(r.doc,c).text.length));u.length>1&&h.length>1;)if(W(u)==W(h))u.pop(),h.pop(),c--;else{if(u[0]!=h[0])break;u.shift(),h.shift(),e++}for(var f=0,d=0,p=u[0],g=h[0],m=Math.min(p.length,g.length);f<m&&p.charCodeAt(f)==g.charCodeAt(f);)++f;for(var y=W(u),v=W(h),b=Math.min(y.length-(1==u.length?f:0),v.length-(1==h.length?f:0));d<b&&y.charCodeAt(y.length-d-1)==v.charCodeAt(v.length-d-1);)++d;if(1==u.length&&1==h.length&&e==o.line)for(;f&&f>o.ch&&y.charCodeAt(y.length-d-1)==v.charCodeAt(v.length-d-1);)f--,d++;u[u.length-1]=y.slice(0,y.length-d).replace(/^\u200b+/,""),u[0]=u[0].slice(f).replace(/\u200b+$/,"");var _=Zt(e,f),w=Zt(c,h.length?W(h).length-d:0);return u.length>1||u[0]||te(_,w)?(fa(r.doc,u,_,w,"+input"),!0):void 0},Po.prototype.ensurePolled=function(){this.forceCompositionEnd()},Po.prototype.reset=function(){this.forceCompositionEnd()},Po.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Po.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()}),80))},Po.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||Jr(this.cm,(function(){return Ar(t.cm)}))},Po.prototype.setUneditable=function(t){t.contentEditable="false"},Po.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Zr(this.cm,Lo)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},Po.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Po.prototype.onContextMenu=function(){},Po.prototype.resetPosition=function(){},Po.prototype.needsContentAttribute=!0;var $o=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new P,this.hasSelection=!1,this.composing=null};$o.prototype.init=function(t){var e=this,n=this,r=this.cm;this.createField(t);var i=this.textarea;function a(t){if(!pt(r,t)){if(r.somethingSelected())Io({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var e=Oo(r);Io({lineWise:!0,text:e.text}),"cut"==t.type?r.setSelections(e.ranges,null,G):(n.prevInput="",i.value=e.text.join("\n"),D(i))}"cut"==t.type&&(r.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),p&&(i.style.width="0px"),ut(i,"input",(function(){o&&s>=9&&e.hasSelection&&(e.hasSelection=null),n.poll()})),ut(i,"paste",(function(t){pt(r,t)||Fo(t,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),ut(i,"cut",a),ut(i,"copy",a),ut(t.scroller,"paste",(function(e){if(!_n(t,e)&&!pt(r,e)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var a=new Event("paste");a.clipboardData=e.clipboardData,i.dispatchEvent(a)}})),ut(t.lineSpace,"selectstart",(function(e){_n(t,e)||vt(e)})),ut(i,"compositionstart",(function(){var t=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:t,range:r.markText(t,r.getCursor("to"),{className:"CodeMirror-composing"})}})),ut(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},$o.prototype.createField=function(t){this.wrapper=Mo(),this.textarea=this.wrapper.firstChild},$o.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},$o.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,r=gr(t);if(t.options.moveInputWithCursor){var i=Yn(t,n.sel.primary().head,"div"),a=e.wrapper.getBoundingClientRect(),o=e.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,i.top+o.top-a.top)),r.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,i.left+o.left-a.left))}return r},$o.prototype.showSelection=function(t){var e=this.cm.display;k(e.cursorDiv,t.cursors),k(e.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},$o.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var e=this.cm;if(e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&D(this.textarea),o&&s>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",o&&s>=9&&(this.hasSelection=null))}},$o.prototype.getField=function(){return this.textarea},$o.prototype.supportsTouch=function(){return!1},$o.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!m||F()!=this.textarea))try{this.textarea.focus()}catch(t){}},$o.prototype.blur=function(){this.textarea.blur()},$o.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},$o.prototype.receivedFocus=function(){this.slowPoll()},$o.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){t.poll(),t.cm.state.focused&&t.slowPoll()}))},$o.prototype.fastPoll=function(){var t=!1,e=this;e.pollingFast=!0,e.polling.set(20,(function n(){e.poll()||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,n))}))},$o.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!e.state.focused||Lt(n)&&!r&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var i=n.value;if(i==r&&!e.somethingSelected())return!1;if(o&&s>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var a=i.charCodeAt(0);if(8203!=a||r||(r=""),8666==a)return this.reset(),this.cm.execCommand("undo")}for(var c=0,l=Math.min(r.length,i.length);c<l&&r.charCodeAt(c)==i.charCodeAt(c);)++c;return Jr(e,(function(){Lo(e,i.slice(c),r.length-c,null,t.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=i,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},$o.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},$o.prototype.onKeyPress=function(){o&&s>=9&&(this.hasSelection=null),this.fastPoll()},$o.prototype.onContextMenu=function(t){var e=this,n=e.cm,r=n.display,i=e.textarea;e.contextMenuPending&&e.contextMenuPending();var a=cr(n,t),l=r.scroller.scrollTop;if(a&&!u){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(a)&&Zr(n,Ji)(n.doc,Ci(a),G);var A,h=i.style.cssText,f=e.wrapper.style.cssText,d=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-d.top-5)+"px; left: "+(t.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);",c&&(A=window.scrollY),r.input.focus(),c&&window.scrollTo(null,A),r.input.reset(),n.somethingSelected()||(i.value=e.prevInput=" "),e.contextMenuPending=m,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),o&&s>=9&&g(),E){wt(t);var p=function(){ft(window,"mouseup",p),setTimeout(m,20)};ut(window,"mouseup",p)}else setTimeout(m,50)}function g(){if(null!=i.selectionStart){var t=n.somethingSelected(),a=""+(t?i.value:"");i.value="⇚",i.value=a,e.prevInput=t?"":"",i.selectionStart=1,i.selectionEnd=a.length,r.selForContextMenu=n.doc.sel}}function m(){if(e.contextMenuPending==m&&(e.contextMenuPending=!1,e.wrapper.style.cssText=f,i.style.cssText=h,o&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),null!=i.selectionStart)){(!o||o&&s<9)&&g();var t=0,a=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&""==e.prevInput?Zr(n,oa)(n):t++<10?r.detectingSelectAll=setTimeout(a,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(a,200)}}},$o.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t,this.textarea.readOnly=!!t},$o.prototype.setUneditable=function(){},$o.prototype.needsContentAttribute=!1,function(t){var e=t.optionHandlers;function n(n,r,i,a){t.defaults[n]=r,i&&(e[n]=a?function(t,e,n){n!=_o&&i(t,e,n)}:i)}t.defineOption=n,t.Init=_o,n("value","",(function(t,e){return t.setValue(e)}),!0),n("mode",null,(function(t,e){t.doc.modeOption=e,Si(t)}),!0),n("indentUnit",2,Si,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(t){Ii(t),Pn(t),Ar(t)}),!0),n("lineSeparator",null,(function(t,e){if(t.doc.lineSep=e,e){var n=[],r=t.doc.first;t.doc.iter((function(t){for(var i=0;;){var a=t.text.indexOf(e,i);if(-1==a)break;i=a+e.length,n.push(Zt(r,a))}r++}));for(var i=n.length-1;i>=0;i--)fa(t.doc,e,n[i],Zt(n[i].line,n[i].ch+e.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=_o&&t.refresh()})),n("specialCharPlaceholder",Xe,(function(t){return t.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(t,e){return t.getInputField().spellcheck=e}),!0),n("autocorrect",!1,(function(t,e){return t.getInputField().autocorrect=e}),!0),n("autocapitalize",!1,(function(t,e){return t.getInputField().autocapitalize=e}),!0),n("rtlMoveVisually",!b),n("wholeLineUpdateBefore",!0),n("theme","default",(function(t){bo(t),di(t)}),!0),n("keyMap","default",(function(t,e,n){var r=Wa(e),i=n!=_o&&Wa(n);i&&i.detach&&i.detach(t,r),r.attach&&r.attach(t,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,xo,!0),n("gutters",[],(function(t,e){t.display.gutterSpecs=hi(e,t.options.lineNumbers),di(t)}),!0),n("fixedGutter",!0,(function(t,e){t.display.gutters.style.left=e?ar(t.display)+"px":"0",t.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(t){return Hr(t)}),!0),n("scrollbarStyle","native",(function(t){jr(t),Hr(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(t,e){t.display.gutterSpecs=hi(t.options.gutters,e),di(t)}),!0),n("firstLineNumber",1,di,!0),n("lineNumberFormatter",(function(t){return t}),di,!0),n("showCursorWhenSelecting",!1,pr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(t,e){"nocursor"==e&&(Cr(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)})),n("screenReaderLabel",null,(function(t,e){e=""===e?null:e,t.display.input.screenReaderLabelChanged(e)})),n("disableInput",!1,(function(t,e){e||t.display.input.reset()}),!0),n("dragDrop",!0,Co),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,pr,!0),n("singleCursorHeightPerLine",!0,pr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Ii,!0),n("addModeClass",!1,Ii,!0),n("pollInterval",100),n("undoDepth",200,(function(t,e){return t.doc.history.undoDepth=e})),n("historyEventDelay",1250),n("viewportMargin",10,(function(t){return t.refresh()}),!0),n("maxHighlightLength",1e4,Ii,!0),n("moveInputWithCursor",!0,(function(t,e){e||t.display.input.resetPosition()})),n("tabindex",null,(function(t,e){return t.display.input.getField().tabIndex=e||""})),n("autofocus",null),n("direction","ltr",(function(t,e){return t.doc.setDirection(e)}),!0),n("phrases",null)}(Bo),function(t){var e=t.optionHandlers,n=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(t,n){var r=this.options,i=r[t];r[t]==n&&"mode"!=t||(r[t]=n,e.hasOwnProperty(t)&&Zr(this,e[t])(this,n,i),dt(this,"optionChange",this,t))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,e){this.state.keyMaps[e?"push":"unshift"](Wa(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,n=0;n<e.length;++n)if(e[n]==t||e[n].name==t)return e.splice(n,1),!0},addOverlay:ti((function(e,n){var r=e.token?e:t.getMode(this.options,e);if(r.startState)throw new Error("Overlays may not be stateful.");!function(t,e,n){for(var r=0,i=n(e);r<t.length&&n(t[r])<=i;)r++;t.splice(r,0,e)}(this.state.overlays,{mode:r,modeSpec:e,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(t){return t.priority})),this.state.modeGen++,Ar(this)})),removeOverlay:ti((function(t){for(var e=this.state.overlays,n=0;n<e.length;++n){var r=e[n].modeSpec;if(r==t||"string"==typeof t&&r.name==t)return e.splice(n,1),this.state.modeGen++,void Ar(this)}})),indentLine:ti((function(t,e,n){"string"!=typeof e&&"number"!=typeof e&&(e=null==e?this.options.smartIndent?"smart":"prev":e?"add":"subtract"),Xt(this.doc,t)&&ko(this,t,e,n)})),indentSelection:ti((function(t){for(var e=this.doc.sel.ranges,n=-1,r=0;r<e.length;r++){var i=e[r];if(i.empty())i.head.line>n&&(ko(this,i.head.line,t,!0),n=i.head.line,r==this.doc.sel.primIndex&&Ir(this));else{var a=i.from(),o=i.to(),s=Math.max(n,a.line);n=Math.min(this.lastLine(),o.line-(o.ch?0:1))+1;for(var c=s;c<n;++c)ko(this,c,t);var l=this.doc.sel.ranges;0==a.ch&&e.length==l.length&&l[r].from().ch>0&&Vi(this.doc,r,new wi(a,l[r].to()),G)}}})),getTokenAt:function(t,e){return me(this,t,e)},getLineTokens:function(t,e){return me(this,Zt(t),e,!0)},getTokenTypeAt:function(t){t=oe(this.doc,t);var e,n=ue(this,Kt(this.doc,t.line)),r=0,i=(n.length-1)/2,a=t.ch;if(0==a)e=n[2];else for(;;){var o=r+i>>1;if((o?n[2*o-1]:0)>=a)i=o;else{if(!(n[2*o+1]<a)){e=n[2*o+2];break}r=o+1}}var s=e?e.indexOf("overlay "):-1;return s<0?e:0==s?null:e.slice(0,s-1)},getModeAt:function(e){var n=this.doc.mode;return n.innerMode?t.innerMode(n,this.getTokenAt(e).state).mode:n},getHelper:function(t,e){return this.getHelpers(t,e)[0]},getHelpers:function(t,e){var r=[];if(!n.hasOwnProperty(e))return r;var i=n[e],a=this.getModeAt(t);if("string"==typeof a[e])i[a[e]]&&r.push(i[a[e]]);else if(a[e])for(var o=0;o<a[e].length;o++){var s=i[a[e][o]];s&&r.push(s)}else a.helperType&&i[a.helperType]?r.push(i[a.helperType]):i[a.name]&&r.push(i[a.name]);for(var c=0;c<i._global.length;c++){var l=i._global[c];l.pred(a,this)&&-1==H(r,l.val)&&r.push(l.val)}return r},getStateAfter:function(t,e){var n=this.doc;return he(this,(t=ae(n,null==t?n.first+n.size-1:t))+1,e).state},cursorCoords:function(t,e){var n=this.doc.sel.primary();return Yn(this,null==t?n.head:"object"==typeof t?oe(this.doc,t):t?n.from():n.to(),e||"page")},charCoords:function(t,e){return Kn(this,oe(this.doc,t),e||"page")},coordsChar:function(t,e){return Vn(this,(t=$n(this,t,e||"page")).left,t.top)},lineAtHeight:function(t,e){return t=$n(this,{top:t,left:0},e||"page").top,qt(this.doc,t+this.display.viewOffset)},heightAtLine:function(t,e,n){var r,i=!1;if("number"==typeof t){var a=this.doc.first+this.doc.size-1;t<this.doc.first?t=this.doc.first:t>a&&(t=a,i=!0),r=Kt(this.doc,t)}else r=t;return jn(this,r,{top:0,left:0},e||"page",n||i).top+(i?this.doc.height-Ge(r):0)},defaultTextHeight:function(){return nr(this.display)},defaultCharWidth:function(){return rr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,r,i){var a,o,s,c=this.display,l=(t=Yn(this,oe(this.doc,t))).bottom,A=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),c.sizer.appendChild(e),"over"==r)l=t.top;else if("above"==r||"near"==r){var u=Math.max(c.wrapper.clientHeight,this.doc.height),h=Math.max(c.sizer.clientWidth,c.lineSpace.clientWidth);("above"==r||t.bottom+e.offsetHeight>u)&&t.top>e.offsetHeight?l=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=u&&(l=t.bottom),A+e.offsetWidth>h&&(A=h-e.offsetWidth)}e.style.top=l+"px",e.style.left=e.style.right="","right"==i?(A=c.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==i?A=0:"middle"==i&&(A=(c.sizer.clientWidth-e.offsetWidth)/2),e.style.left=A+"px"),n&&(a=this,o={left:A,top:l,right:A+e.offsetWidth,bottom:l+e.offsetHeight},null!=(s=kr(a,o)).scrollTop&&Or(a,s.scrollTop),null!=s.scrollLeft&&Mr(a,s.scrollLeft))},triggerOnKeyDown:ti(co),triggerOnKeyPress:ti(Ao),triggerOnKeyUp:lo,triggerOnMouseDown:ti(po),execCommand:function(t){if(Za.hasOwnProperty(t))return Za[t].call(null,this)},triggerElectric:ti((function(t){No(this,t)})),findPosH:function(t,e,n,r){var i=1;e<0&&(i=-1,e=-e);for(var a=oe(this.doc,t),o=0;o<e&&!(a=Ro(this.doc,a,i,n,r)).hitSide;++o);return a},moveH:ti((function(t,e){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Ro(n.doc,r.head,t,e,n.options.rtlMoveVisually):t<0?r.from():r.to()}),$)})),deleteH:ti((function(t,e){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Va(this,(function(n){var i=Ro(r,n.head,t,e,!1);return t<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(t,e,n,r){var i=1,a=r;e<0&&(i=-1,e=-e);for(var o=oe(this.doc,t),s=0;s<e;++s){var c=Yn(this,o,"div");if(null==a?a=c.left:c.left=a,(o=Uo(this,c,i,n)).hitSide)break}return o},moveV:ti((function(t,e){var n=this,r=this.doc,i=[],a=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(o){if(a)return t<0?o.from():o.to();var s=Yn(n,o.head,"div");null!=o.goalColumn&&(s.left=o.goalColumn),i.push(s.left);var c=Uo(n,s,t,e);return"page"==e&&o==r.sel.primary()&&Sr(n,Kn(n,c,"div").top-s.top),c}),$),i.length)for(var o=0;o<r.sel.ranges.length;o++)r.sel.ranges[o].goalColumn=i[o]})),findWordAt:function(t){var e=Kt(this.doc,t.line).text,n=t.ch,r=t.ch;if(e){var i=this.getHelper(t,"wordChars");"before"!=t.sticky&&r!=e.length||!n?++r:--n;for(var a=e.charAt(n),o=tt(a,i)?function(t){return tt(t,i)}:/\s/.test(a)?function(t){return/\s/.test(t)}:function(t){return!/\s/.test(t)&&!tt(t)};n>0&&o(e.charAt(n-1));)--n;for(;r<e.length&&o(e.charAt(r));)++r}return new wi(Zt(t.line,n),Zt(t.line,r))},toggleOverwrite:function(t){null!=t&&t==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?N(this.display.cursorDiv,"CodeMirror-overwrite"):B(this.display.cursorDiv,"CodeMirror-overwrite"),dt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==F()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:ti((function(t,e){Lr(this,t,e)})),getScrollInfo:function(){var t=this.display.scroller;return{left:t.scrollLeft,top:t.scrollTop,height:t.scrollHeight-xn(this)-this.display.barHeight,width:t.scrollWidth-xn(this)-this.display.barWidth,clientHeight:Tn(this),clientWidth:Bn(this)}},scrollIntoView:ti((function(t,e){null==t?(t={from:this.doc.sel.primary().head,to:null},null==e&&(e=this.options.cursorScrollMargin)):"number"==typeof t?t={from:Zt(t,0),to:null}:null==t.from&&(t={from:t,to:null}),t.to||(t.to=t.from),t.margin=e||0,null!=t.from.line?function(t,e){Fr(t),t.curOp.scrollToPos=e}(this,t):Nr(this,t.from,t.to,t.margin)})),setSize:ti((function(t,e){var n=this,r=function(t){return"number"==typeof t||/^\d+$/.test(String(t))?t+"px":t};null!=t&&(this.display.wrapper.style.width=r(t)),null!=e&&(this.display.wrapper.style.height=r(e)),this.options.lineWrapping&&Un(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(t){if(t.widgets)for(var e=0;e<t.widgets.length;e++)if(t.widgets[e].noHScroll){ur(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,dt(this,"refresh",this)})),operation:function(t){return Jr(this,t)},startOperation:function(){return Kr(this)},endOperation:function(){return Yr(this)},refresh:ti((function(){var t=this.display.cachedTextHeight;Ar(this),this.curOp.forceUpdate=!0,Pn(this),Lr(this,this.doc.scrollLeft,this.doc.scrollTop),ci(this.display),(null==t||Math.abs(t-nr(this.display))>.5||this.options.lineWrapping)&&sr(this),dt(this,"refresh",this)})),swapDoc:ti((function(t){var e=this.doc;return e.cm=null,this.state.selectingText&&this.state.selectingText(),Oi(this,t),Pn(this),this.display.input.reset(),Lr(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,sn(this,"swapDoc",this,e),e})),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},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}},yt(t),t.registerHelper=function(e,r,i){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][r]=i},t.registerGlobalHelper=function(e,r,i,a){t.registerHelper(e,r,a),n[e]._global.push({pred:i,val:a})}}(Bo);var Ko="iter insert remove copy getEditor constructor".split(" ");for(var Yo in Sa.prototype)Sa.prototype.hasOwnProperty(Yo)&&H(Ko,Yo)<0&&(Bo.prototype[Yo]=function(t){return function(){return t.apply(this.doc,arguments)}}(Sa.prototype[Yo]));return yt(Sa),Bo.inputStyles={textarea:$o,contenteditable:Po},Bo.defineMode=function(t){Bo.defaults.mode||"null"==t||(Bo.defaults.mode=t),Mt.apply(this,arguments)},Bo.defineMIME=function(t,e){Dt[t]=e},Bo.defineMode("null",(function(){return{token:function(t){return t.skipToEnd()}}})),Bo.defineMIME("text/plain","null"),Bo.defineExtension=function(t,e){Bo.prototype[t]=e},Bo.defineDocExtension=function(t,e){Sa.prototype[t]=e},Bo.fromTextArea=function(t,e){if((e=e?R(e):{}).value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var n=F();e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function r(){t.value=s.getValue()}var i;if(t.form&&(ut(t.form,"submit",r),!e.leaveSubmitMethodAlone)){var a=t.form;i=a.submit;try{var o=a.submit=function(){r(),a.submit=i,a.submit(),a.submit=o}}catch(t){}}e.finishInit=function(n){n.save=r,n.getTextArea=function(){return t},n.toTextArea=function(){n.toTextArea=isNaN,r(),t.parentNode.removeChild(n.getWrapperElement()),t.style.display="",t.form&&(ft(t.form,"submit",r),e.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=i))}},t.style.display="none";var s=Bo((function(e){return t.parentNode.insertBefore(e,t.nextSibling)}),e);return s},function(t){t.off=ft,t.on=ut,t.wheelEventPixels=vi,t.Doc=Sa,t.splitLines=It,t.countColumn=U,t.findColumn=K,t.isWordChar=Z,t.Pass=Q,t.signal=dt,t.Line=Ke,t.changeEnd=xi,t.scrollbarModel=Gr,t.Pos=Zt,t.cmpPos=te,t.modes=Ot,t.mimeModes=Dt,t.resolveMode=Rt,t.getMode=Ut,t.modeExtensions=Pt,t.extendMode=Ht,t.copyState=Qt,t.startState=jt,t.innerMode=Gt,t.commands=Za,t.keyMap=Qa,t.keyName=za,t.isModifierKey=Ka,t.lookupKey=$a,t.normalizeKeyMap=ja,t.StringStream=$t,t.SharedTextMarker=xa,t.TextMarker=Ea,t.LineWidget=ba,t.e_preventDefault=vt,t.e_stopPropagation=bt,t.e_stop=wt,t.addClass=N,t.contains=L,t.rmClass=B,t.keyNames=Ra}(Bo),Bo.version="5.58.2",Bo}()}));r((function(t,e){var n,r,i;r={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},i={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1},(n=Ol).defineMode("xml",(function(t,e){var a,o,s=t.indentUnit,c={},l=e.htmlMode?r:i;for(var A in l)c[A]=l[A];for(var A in e)c[A]=e[A];function u(t,e){function n(n){return e.tokenize=n,n(t,e)}var r=t.next();return"<"==r?t.eat("!")?t.eat("[")?t.match("CDATA[")?n(f("atom","]]>")):null:t.match("--")?n(f("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),n(function t(e){return function(n,r){for(var i;null!=(i=n.next());){if("<"==i)return r.tokenize=t(e+1),r.tokenize(n,r);if(">"==i){if(1==e){r.tokenize=u;break}return r.tokenize=t(e-1),r.tokenize(n,r)}}return"meta"}}(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),e.tokenize=f("meta","?>"),"meta"):(a=t.eat("/")?"closeTag":"openTag",e.tokenize=h,"tag bracket"):"&"==r?(t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"))?"atom":"error":(t.eatWhile(/[^&<]/),null)}function h(t,e){var n,r,i=t.next();if(">"==i||"/"==i&&t.eat(">"))return e.tokenize=u,a=">"==i?"endTag":"selfcloseTag","tag bracket";if("="==i)return a="equals",null;if("<"==i){e.tokenize=u,e.state=m,e.tagName=e.tagStart=null;var o=e.tokenize(t,e);return o?o+" tag error":"tag error"}return/[\'\"]/.test(i)?(e.tokenize=(n=i,(r=function(t,e){for(;!t.eol();)if(t.next()==n){e.tokenize=h;break}return"string"}).isInAttribute=!0,r),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function f(t,e){return function(n,r){for(;!n.eol();){if(n.match(e)){r.tokenize=u;break}n.next()}return t}}function d(t,e,n){this.prev=t.context,this.tagName=e,this.indent=t.indented,this.startOfLine=n,(c.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function p(t){t.context&&(t.context=t.context.prev)}function g(t,e){for(var n;;){if(!t.context)return;if(n=t.context.tagName,!c.contextGrabbers.hasOwnProperty(n)||!c.contextGrabbers[n].hasOwnProperty(e))return;p(t)}}function m(t,e,n){return"openTag"==t?(n.tagStart=e.column(),y):"closeTag"==t?v:m}function y(t,e,n){return"word"==t?(n.tagName=e.current(),o="tag",w):c.allowMissingTagName&&"endTag"==t?(o="tag bracket",w(t,0,n)):(o="error",y)}function v(t,e,n){if("word"==t){var r=e.current();return n.context&&n.context.tagName!=r&&c.implicitlyClosed.hasOwnProperty(n.context.tagName)&&p(n),n.context&&n.context.tagName==r||!1===c.matchClosing?(o="tag",b):(o="tag error",_)}return c.allowMissingTagName&&"endTag"==t?(o="tag bracket",b(t,0,n)):(o="error",_)}function b(t,e,n){return"endTag"!=t?(o="error",b):(p(n),m)}function _(t,e,n){return o="error",b(t,0,n)}function w(t,e,n){if("word"==t)return o="attribute",E;if("endTag"==t||"selfcloseTag"==t){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==t||c.autoSelfClosers.hasOwnProperty(r)?g(n,r):(g(n,r),n.context=new d(n,r,i==n.indented)),m}return o="error",w}function E(t,e,n){return"equals"==t?C:(c.allowMissing||(o="error"),w(t,0,n))}function C(t,e,n){return"string"==t?x:"word"==t&&c.allowUnquoted?(o="string",w):(o="error",w(t,0,n))}function x(t,e,n){return"string"==t?x:w(t,0,n)}return u.isInText=!0,{startState:function(t){var e={tokenize:u,state:m,indented:t||0,tagName:null,tagStart:null,context:null};return null!=t&&(e.baseIndent=t),e},token:function(t,e){if(!e.tagName&&t.sol()&&(e.indented=t.indentation()),t.eatSpace())return null;a=null;var n=e.tokenize(t,e);return(n||a)&&"comment"!=n&&(o=null,e.state=e.state(a||n,t,e),o&&(n="error"==o?n+" error":o)),n},indent:function(t,e,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return n.Pass;if(t.tokenize!=h&&t.tokenize!=u)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==c.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(c.multilineTagIndentFactor||1);if(c.alignCDATA&&/<!\[CDATA\[/.test(e))return 0;var a=e&&/^<(\/)?([\w_:\.-]*)/.exec(e);if(a&&a[1])for(;i;){if(i.tagName==a[2]){i=i.prev;break}if(!c.implicitlyClosed.hasOwnProperty(i.tagName))break;i=i.prev}else if(a)for(;i;){var o=c.contextGrabbers[i.tagName];if(!o||!o.hasOwnProperty(a[2]))break;i=i.prev}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+s:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:c.htmlMode?"html":"xml",helperType:c.htmlMode?"html":"xml",skipAttribute:function(t){t.state==C&&(t.state=w)},xmlCurrentTag:function(t){return t.tagName?{name:t.tagName,close:"closeTag"==t.type}:null},xmlCurrentContext:function(t){for(var e=[],n=t.context;n;n=n.prev)n.tagName&&e.push(n.tagName);return e.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(t,e){!function(t){t.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 e=0;e<t.modeInfo.length;e++){var n=t.modeInfo[e];n.mimes&&(n.mime=n.mimes[0])}t.findModeByMIME=function(e){e=e.toLowerCase();for(var n=0;n<t.modeInfo.length;n++){var r=t.modeInfo[n];if(r.mime==e)return r;if(r.mimes)for(var i=0;i<r.mimes.length;i++)if(r.mimes[i]==e)return r}return/\+xml$/.test(e)?t.findModeByMIME("application/xml"):/\+json$/.test(e)?t.findModeByMIME("application/json"):void 0},t.findModeByExtension=function(e){e=e.toLowerCase();for(var n=0;n<t.modeInfo.length;n++){var r=t.modeInfo[n];if(r.ext)for(var i=0;i<r.ext.length;i++)if(r.ext[i]==e)return r}},t.findModeByFileName=function(e){for(var n=0;n<t.modeInfo.length;n++){var r=t.modeInfo[n];if(r.file&&r.file.test(e))return r}var i=e.lastIndexOf("."),a=i>-1&&e.substring(i+1,e.length);if(a)return t.findModeByExtension(a)},t.findModeByName=function(e){e=e.toLowerCase();for(var n=0;n<t.modeInfo.length;n++){var r=t.modeInfo[n];if(r.name.toLowerCase()==e)return r;if(r.alias)for(var i=0;i<r.alias.length;i++)if(r.alias[i].toLowerCase()==e)return r}}}(Ol)})),r((function(t,e){var n;(n=Ol).defineMode("markdown",(function(t,e){var r=n.getMode(t,"text/html"),i="null"==r.name;void 0===e.highlightFormatting&&(e.highlightFormatting=!1),void 0===e.maxBlockquoteDepth&&(e.maxBlockquoteDepth=0),void 0===e.taskLists&&(e.taskLists=!1),void 0===e.strikethrough&&(e.strikethrough=!1),void 0===e.emoji&&(e.emoji=!1),void 0===e.fencedCodeBlockHighlighting&&(e.fencedCodeBlockHighlighting=!0),void 0===e.fencedCodeBlockDefaultMode&&(e.fencedCodeBlockDefaultMode="text/plain"),void 0===e.xml&&(e.xml=!0),void 0===e.tokenTypeOverrides&&(e.tokenTypeOverrides={});var a={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 a)a.hasOwnProperty(o)&&e.tokenTypeOverrides[o]&&(a[o]=e.tokenTypeOverrides[o]);var s=/^([*\-_])(?:\s*\1){2,}\s*$/,c=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,l=/^\[(x| )\](?=\s)/i,A=e.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,u=/^ {0,3}(?:\={1,}|-{2,})\s*$/,h=/^[^#!\[\]*_\\<>` "'(~:]+/,f=/^(~~~+|```+)[ \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(t,e,n){return e.f=e.inline=n,n(t,e)}function m(t,e,n){return e.f=e.block=n,n(t,e)}function y(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==b){var e=i;if(!e){var a=n.innerMode(r,t.htmlState);e="xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText}e&&(t.f=C,t.block=v,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function v(r,i){var o,h=r.column()===i.indentation,p=!(o=i.prevLine.stream)||!/\S/.test(o.string),m=i.indentedCode,y=i.prevLine.hr,v=!1!==i.list,b=(i.listStack[i.listStack.length-1]||0)+3;i.indentedCode=!1;var E=i.indentation;if(null===i.indentationDiff&&(i.indentationDiff=i.indentation,v)){for(i.list=null;E<i.listStack[i.listStack.length-1];)i.listStack.pop(),i.listStack.length?i.indentation=i.listStack[i.listStack.length-1]:i.list=!1;!1!==i.list&&(i.indentationDiff=E-i.listStack[i.listStack.length-1])}var C=!(p||y||i.prevLine.header||v&&m||i.prevLine.fencedCodeEnd),x=(!1===i.list||y||p)&&i.indentation<=b&&r.match(s),B=null;if(i.indentationDiff>=4&&(m||i.prevLine.fencedCodeEnd||i.prevLine.header||p))return r.skipToEnd(),i.indentedCode=!0,a.code;if(r.eatSpace())return null;if(h&&i.indentation<=b&&(B=r.match(A))&&B[1].length<=6)return i.quote=0,i.header=B[1].length,i.thisLine.header=!0,e.highlightFormatting&&(i.formatting="header"),i.f=i.inline,w(i);if(i.indentation<=b&&r.eat(">"))return i.quote=h?1:i.quote+1,e.highlightFormatting&&(i.formatting="quote"),r.eatSpace(),w(i);if(!x&&!i.setext&&h&&i.indentation<=b&&(B=r.match(c))){var T=B[1]?"ol":"ul";return i.indentation=E+r.current().length,i.list=!0,i.quote=0,i.listStack.push(i.indentation),i.em=!1,i.strong=!1,i.code=!1,i.strikethrough=!1,e.taskLists&&r.match(l,!1)&&(i.taskList=!0),i.f=i.inline,e.highlightFormatting&&(i.formatting=["list","list-"+T]),w(i)}return h&&i.indentation<=b&&(B=r.match(f,!0))?(i.quote=0,i.fencedEndRE=new RegExp(B[1]+"+ *$"),i.localMode=e.fencedCodeBlockHighlighting&&function(e){if(n.findModeByName){var r=n.findModeByName(e);r&&(e=r.mime||r.mimes[0])}var i=n.getMode(t,e);return"null"==i.name?null:i}(B[2]||e.fencedCodeBlockDefaultMode),i.localMode&&(i.localState=n.startState(i.localMode)),i.f=i.block=_,e.highlightFormatting&&(i.formatting="code-block"),i.code=-1,w(i)):i.setext||!(C&&v||i.quote||!1!==i.list||i.code||x||d.test(r.string))&&(B=r.lookAhead(1))&&(B=B.match(u))?(i.setext?(i.header=i.setext,i.setext=0,r.skipToEnd(),e.highlightFormatting&&(i.formatting="header")):(i.header="="==B[0].charAt(0)?1:2,i.setext=i.header),i.thisLine.header=!0,i.f=i.inline,w(i)):x?(r.skipToEnd(),i.hr=!0,i.thisLine.hr=!0,a.hr):"["===r.peek()?g(r,i,k):g(r,i,i.inline)}function b(t,e){var a=r.token(t,e.htmlState);if(!i){var o=n.innerMode(r,e.htmlState);("xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText||e.md_inside&&t.current().indexOf(">")>-1)&&(e.f=C,e.block=v,e.htmlState=null)}return a}function _(t,n){var r,i=n.listStack[n.listStack.length-1]||0,o=n.indentation<i,s=i+3;return n.fencedEndRE&&n.indentation<=s&&(o||t.match(n.fencedEndRE))?(e.highlightFormatting&&(n.formatting="code-block"),o||(r=w(n)),n.localMode=n.localState=null,n.block=v,n.f=C,n.fencedEndRE=null,n.code=0,n.thisLine.fencedCodeEnd=!0,o?m(t,n,n.block):r):n.localMode?n.localMode.token(t,n.localState):(t.skipToEnd(),a.code)}function w(t){var n=[];if(t.formatting){n.push(a.formatting),"string"==typeof t.formatting&&(t.formatting=[t.formatting]);for(var r=0;r<t.formatting.length;r++)n.push(a.formatting+"-"+t.formatting[r]),"header"===t.formatting[r]&&n.push(a.formatting+"-"+t.formatting[r]+"-"+t.header),"quote"===t.formatting[r]&&(!e.maxBlockquoteDepth||e.maxBlockquoteDepth>=t.quote?n.push(a.formatting+"-"+t.formatting[r]+"-"+t.quote):n.push("error"))}if(t.taskOpen)return n.push("meta"),n.length?n.join(" "):null;if(t.taskClosed)return n.push("property"),n.length?n.join(" "):null;if(t.linkHref?n.push(a.linkHref,"url"):(t.strong&&n.push(a.strong),t.em&&n.push(a.em),t.strikethrough&&n.push(a.strikethrough),t.emoji&&n.push(a.emoji),t.linkText&&n.push(a.linkText),t.code&&n.push(a.code),t.image&&n.push(a.image),t.imageAltText&&n.push(a.imageAltText,"link"),t.imageMarker&&n.push(a.imageMarker)),t.header&&n.push(a.header,a.header+"-"+t.header),t.quote&&(n.push(a.quote),!e.maxBlockquoteDepth||e.maxBlockquoteDepth>=t.quote?n.push(a.quote+"-"+t.quote):n.push(a.quote+"-"+e.maxBlockquoteDepth)),!1!==t.list){var i=(t.listStack.length-1)%3;i?1===i?n.push(a.list2):n.push(a.list3):n.push(a.list1)}return t.trailingSpaceNewLine?n.push("trailing-space-new-line"):t.trailingSpace&&n.push("trailing-space-"+(t.trailingSpace%2?"a":"b")),n.length?n.join(" "):null}function E(t,e){if(t.match(h,!0))return w(e)}function C(t,i){var o=i.text(t,i);if(void 0!==o)return o;if(i.list)return i.list=null,w(i);if(i.taskList)return" "===t.match(l,!0)[1]?i.taskOpen=!0:i.taskClosed=!0,e.highlightFormatting&&(i.formatting="task"),i.taskList=!1,w(i);if(i.taskOpen=!1,i.taskClosed=!1,i.header&&t.match(/^#+$/,!0))return e.highlightFormatting&&(i.formatting="header"),w(i);var s=t.next();if(i.linkTitle){i.linkTitle=!1;var c=s;"("===s&&(c=")");var A="^\\s*(?:[^"+(c=(c+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+c;if(t.match(new RegExp(A),!0))return a.linkHref}if("`"===s){var u=i.formatting;e.highlightFormatting&&(i.formatting="code"),t.eatWhile("`");var h=t.current().length;if(0!=i.code||i.quote&&1!=h){if(h==i.code){var f=w(i);return i.code=0,f}return i.formatting=u,w(i)}return i.code=h,w(i)}if(i.code)return w(i);if("\\"===s&&(t.next(),e.highlightFormatting)){var d=w(i),g=a.formatting+"-escape";return d?d+" "+g:g}if("!"===s&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,e.highlightFormatting&&(i.formatting="image"),w(i);if("["===s&&i.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,e.highlightFormatting&&(i.formatting="image"),w(i);if("]"===s&&i.imageAltText){e.highlightFormatting&&(i.formatting="image");var d=w(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=B,d}if("["===s&&!i.image)return i.linkText&&t.match(/^.*?\]/)||(i.linkText=!0,e.highlightFormatting&&(i.formatting="link")),w(i);if("]"===s&&i.linkText){e.highlightFormatting&&(i.formatting="link");var d=w(i);return i.linkText=!1,i.inline=i.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?B:C,d}if("<"===s&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=x,e.highlightFormatting&&(i.formatting="link"),(d=w(i))?d+=" ":d="",d+a.linkInline;if("<"===s&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=x,e.highlightFormatting&&(i.formatting="link"),(d=w(i))?d+=" ":d="",d+a.linkEmail;if(e.xml&&"<"===s&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var y=t.string.indexOf(">",t.pos);if(-1!=y){var v=t.string.substring(t.start,y);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(v)&&(i.md_inside=!0)}return t.backUp(1),i.htmlState=n.startState(r),m(t,i,b)}if(e.xml&&"<"===s&&t.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===s||"_"===s){for(var _=1,E=1==t.pos?" ":t.string.charAt(t.pos-2);_<3&&t.eat(s);)_++;var T=t.peek()||" ",k=!/\s/.test(T)&&(!p.test(T)||/\s/.test(E)||p.test(E)),S=!/\s/.test(E)&&(!p.test(E)||/\s/.test(T)||p.test(T)),I=null,L=null;if(_%2&&(i.em||!k||"*"!==s&&S&&!p.test(E)?i.em!=s||!S||"*"!==s&&k&&!p.test(T)||(I=!1):I=!0),_>1&&(i.strong||!k||"*"!==s&&S&&!p.test(E)?i.strong!=s||!S||"*"!==s&&k&&!p.test(T)||(L=!1):L=!0),null!=L||null!=I)return e.highlightFormatting&&(i.formatting=null==I?"strong":null==L?"em":"strong em"),!0===I&&(i.em=s),!0===L&&(i.strong=s),f=w(i),!1===I&&(i.em=!1),!1===L&&(i.strong=!1),f}else if(" "===s&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return w(i);t.backUp(1)}if(e.strikethrough)if("~"===s&&t.eatWhile(s)){if(i.strikethrough)return e.highlightFormatting&&(i.formatting="strikethrough"),f=w(i),i.strikethrough=!1,f;if(t.match(/^[^\s]/,!1))return i.strikethrough=!0,e.highlightFormatting&&(i.formatting="strikethrough"),w(i)}else if(" "===s&&t.match(/^~~/,!0)){if(" "===t.peek())return w(i);t.backUp(2)}if(e.emoji&&":"===s&&t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,e.highlightFormatting&&(i.formatting="emoji");var F=w(i);return i.emoji=!1,F}return" "===s&&(t.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),w(i)}function x(t,n){if(">"===t.next()){n.f=n.inline=C,e.highlightFormatting&&(n.formatting="link");var r=w(n);return r?r+=" ":r="",r+a.linkInline}return t.match(/^[^>]+/,!0),a.linkInline}function B(t,n){if(t.eatSpace())return null;var r,i=t.next();return"("===i||"["===i?(n.f=n.inline=(r="("===i?")":"]",function(t,n){if(t.next()===r){n.f=n.inline=C,e.highlightFormatting&&(n.formatting="link-string");var i=w(n);return n.linkHref=!1,i}return t.match(T[r]),n.linkHref=!0,w(n)}),e.highlightFormatting&&(n.formatting="link-string"),n.linkHref=!0,w(n)):"error"}var T={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function k(t,n){return t.match(/^([^\]\\]|\\.)*\]:/,!1)?(n.f=S,t.next(),e.highlightFormatting&&(n.formatting="link"),n.linkText=!0,w(n)):g(t,n,C)}function S(t,n){if(t.match(/^\]:/,!0)){n.f=n.inline=I,e.highlightFormatting&&(n.formatting="link");var r=w(n);return n.linkText=!1,r}return t.match(/^([^\]\\]|\\.)+/,!0),a.linkText}function I(t,e){return t.eatSpace()?null:(t.match(/^[^\s]+/,!0),void 0===t.peek()?e.linkTitle=!0:t.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),e.f=e.inline=C,a.linkHref+" url")}var L={startState:function(){return{f:v,prevLine:{stream:null},thisLine:{stream:null},block:v,htmlState:null,indentation:0,inline:C,text:E,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(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&n.copyState(r,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?n.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(t,e){if(e.formatting=!1,t!=e.thisLine.stream){if(e.header=0,e.hr=!1,t.match(/^\s*$/,!0))return y(e),null;if(e.prevLine=e.thisLine,e.thisLine={stream:t},e.taskList=!1,e.trailingSpace=0,e.trailingSpaceNewLine=!1,!e.localState&&(e.f=e.block,e.f!=b)){var n=t.match(/^\s*/,!0)[0].replace(/\t/g," ").length;if(e.indentation=n,e.indentationDiff=null,n>0)return null}}return e.f(t,e)},innerMode:function(t){return t.block==b?{state:t.htmlState,mode:r}:t.localState?{state:t.localState,mode:t.localMode}:{state:t,mode:L}},indent:function(t,e,i){return t.block==b&&r.indent?r.indent(t.htmlState,e,i):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,e,i):n.Pass},blankLine:y,getType:w,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return L}),"xml"),n.defineMIME("text/markdown","markdown"),n.defineMIME("text/x-markdown","markdown")})),r((function(t,e){var n;(n=Ol).overlayMode=function(t,e,r){return{startState:function(){return{base:n.startState(t),overlay:n.startState(e),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:n.copyState(t,r.base),overlay:n.copyState(e,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(n,i){return(n!=i.streamSeen||Math.min(i.basePos,i.overlayPos)<n.start)&&(i.streamSeen=n,i.basePos=i.overlayPos=n.start),n.start==i.basePos&&(i.baseCur=t.token(n,i.base),i.basePos=n.pos),n.start==i.overlayPos&&(n.pos=n.start,i.overlayCur=e.token(n,i.overlay),i.overlayPos=n.pos),n.pos=Math.min(i.basePos,i.overlayPos),null==i.overlayCur?i.baseCur:null!=i.baseCur&&i.overlay.combineTokens||r&&null==i.overlay.combineTokens?i.baseCur+" "+i.overlayCur:i.overlayCur},indent:t.indent&&function(e,n,r){return t.indent(e.base,n,r)},electricChars:t.electricChars,innerMode:function(e){return{state:e.base,mode:t}},blankLine:function(n){var i,a;return t.blankLine&&(i=t.blankLine(n.base)),e.blankLine&&(a=e.blankLine(n.overlay)),null==a?i:r&&null!=i?i+" "+a:a}}}})),r((function(t,e){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=Ol).defineMode("gfm",(function(t,e){var i=0,a={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(t){return{code:t.code,codeBlock:t.codeBlock,ateSpace:t.ateSpace}},token:function(t,n){if(n.combineTokens=null,n.codeBlock)return t.match(/^```+/)?(n.codeBlock=!1,null):(t.skipToEnd(),null);if(t.sol()&&(n.code=!1),t.sol()&&t.match(/^```+/))return t.skipToEnd(),n.codeBlock=!0,null;if("`"===t.peek()){t.next();var a=t.pos;t.eatWhile("`");var o=1+t.pos-a;return n.code?o===i&&(n.code=!1):(i=o,n.code=!0),null}if(n.code)return t.next(),null;if(t.eatSpace())return n.ateSpace=!0,null;if((t.sol()||n.ateSpace)&&(n.ateSpace=!1,!1!==e.gitHubSpice)){if(t.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(t.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"link"}return t.match(r)&&"]("!=t.string.slice(t.start-2,t.start)&&(0==t.start||/\W/.test(t.string.charAt(t.start-1)))?(n.combineTokens=!0,"link"):(t.next(),null)},blankLine:function(t){return t.code=!1,null}},o={taskLists:!0,strikethrough:!0,emoji:!0};for(var s in e)o[s]=e[s];return o.name="markdown",n.overlayMode(n.getMode(t,o),a)}),"markdown"),n.defineMIME("text/x-gfm","gfm")})),r((function(t,e){!function(t){var e=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,n=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,r=/[*+-]\s/;function i(t,n){var r=n.line,i=0,a=0,o=e.exec(t.getLine(r)),s=o[1];do{var c=r+(i+=1),l=t.getLine(c),A=e.exec(l);if(A){var u=A[1],h=parseInt(o[3],10)+i-a,f=parseInt(A[3],10),d=f;if(s!==u||isNaN(f)){if(s.length>u.length)return;if(s.length<u.length&&1===i)return;a+=1}else h===f&&(d=f+1),h>f&&(d=h+1),t.replaceRange(l.replace(e,u+d+A[4]+A[5]),{line:c,ch:0},{line:c,ch:l.length})}}while(A)}t.commands.newlineAndIndentContinueMarkdownList=function(a){if(a.getOption("disableInput"))return t.Pass;for(var o=a.listSelections(),s=[],c=0;c<o.length;c++){var l=o[c].head,A=a.getStateAfter(l.line),u=t.innerMode(a.getMode(),A);if("markdown"!==u.mode.name)return void a.execCommand("newlineAndIndent");var h=!1!==(A=u.state).list,f=0!==A.quote,d=a.getLine(l.line),p=e.exec(d),g=/^\s*$/.test(d.slice(0,l.ch));if(!o[c].empty()||!h&&!f||!p||g)return void a.execCommand("newlineAndIndent");if(n.test(d)){var m=f&&/>\s*$/.test(d),y=!/>\s*$/.test(d);(m||y)&&a.replaceRange("",{line:l.line,ch:0},{line:l.line,ch:l.ch+1}),s[c]="\n"}else{var v=p[1],b=p[5],_=!(r.test(p[2])||p[2].indexOf(">")>=0),w=_?parseInt(p[3],10)+1+p[4]:p[2].replace("x"," ");s[c]="\n"+v+w+b,_&&i(a,l)}}a.replaceSelections(s)}}(Ol)})),r((function(t,e){!function(t){var e=t.Pos;function n(t,e){return t.line-e.line||t.ch-e.ch}var r="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i=new RegExp("<(/?)(["+r+"]["+r+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");function a(t,e,n,r){this.line=e,this.ch=n,this.cm=t,this.text=t.getLine(e),this.min=r?Math.max(r.from,t.firstLine()):t.firstLine(),this.max=r?Math.min(r.to-1,t.lastLine()):t.lastLine()}function o(t,n){var r=t.cm.getTokenTypeAt(e(t.line,n));return r&&/\btag\b/.test(r)}function s(t){if(!(t.line>=t.max))return t.ch=0,t.text=t.cm.getLine(++t.line),!0}function c(t){if(!(t.line<=t.min))return t.text=t.cm.getLine(--t.line),t.ch=t.text.length,!0}function l(t){for(;;){var e=t.text.indexOf(">",t.ch);if(-1==e){if(s(t))continue;return}if(o(t,e+1)){var n=t.text.lastIndexOf("/",e),r=n>-1&&!/\S/.test(t.text.slice(n+1,e));return t.ch=e+1,r?"selfClose":"regular"}t.ch=e+1}}function A(t){for(;;){var e=t.ch?t.text.lastIndexOf("<",t.ch-1):-1;if(-1==e){if(c(t))continue;return}if(o(t,e+1)){i.lastIndex=e,t.ch=e;var n=i.exec(t.text);if(n&&n.index==e)return n}else t.ch=e}}function u(t){for(;;){i.lastIndex=t.ch;var e=i.exec(t.text);if(!e){if(s(t))continue;return}if(o(t,e.index+1))return t.ch=e.index+e[0].length,e;t.ch=e.index+1}}function h(t){for(;;){var e=t.ch?t.text.lastIndexOf(">",t.ch-1):-1;if(-1==e){if(c(t))continue;return}if(o(t,e+1)){var n=t.text.lastIndexOf("/",e),r=n>-1&&!/\S/.test(t.text.slice(n+1,e));return t.ch=e+1,r?"selfClose":"regular"}t.ch=e}}function f(t,n){for(var r=[];;){var i,a=u(t),o=t.line,s=t.ch-(a?a[0].length:0);if(!a||!(i=l(t)))return;if("selfClose"!=i)if(a[1]){for(var c=r.length-1;c>=0;--c)if(r[c]==a[2]){r.length=c;break}if(c<0&&(!n||n==a[2]))return{tag:a[2],from:e(o,s),to:e(t.line,t.ch)}}else r.push(a[2])}}function d(t,n){for(var r=[];;){var i=h(t);if(!i)return;if("selfClose"!=i){var a=t.line,o=t.ch,s=A(t);if(!s)return;if(s[1])r.push(s[2]);else{for(var c=r.length-1;c>=0;--c)if(r[c]==s[2]){r.length=c;break}if(c<0&&(!n||n==s[2]))return{tag:s[2],from:e(t.line,t.ch),to:e(a,o)}}}else A(t)}}t.registerHelper("fold","xml",(function(t,r){for(var i=new a(t,r.line,0);;){var o=u(i);if(!o||i.line!=r.line)return;var s=l(i);if(!s)return;if(!o[1]&&"selfClose"!=s){var c=e(i.line,i.ch),A=f(i,o[2]);return A&&n(A.from,c)>0?{from:c,to:A.from}:null}}})),t.findMatchingTag=function(t,r,i){var o=new a(t,r.line,r.ch,i);if(-1!=o.text.indexOf(">")||-1!=o.text.indexOf("<")){var s=l(o),c=s&&e(o.line,o.ch),u=s&&A(o);if(s&&u&&!(n(o,r)>0)){var h={from:e(o.line,o.ch),to:c,tag:u[2]};return"selfClose"==s?{open:h,close:null,at:"open"}:u[1]?{open:d(o,u[2]),close:h,at:"close"}:{open:h,close:f(o=new a(t,c.line,c.ch,i),u[2]),at:"open"}}}},t.findEnclosingTag=function(t,e,n,r){for(var i=new a(t,e.line,e.ch,n);;){var o=d(i,r);if(!o)break;var s=f(new a(t,e.line,e.ch,n),o.tag);if(s)return{open:o,close:s}}},t.scanForClosingTag=function(t,e,n,r){return f(new a(t,e.line,e.ch,r?{from:0,to:r}:null),n)}}(Ol)})),r((function(t,e){!function(t){t.defineOption("autoCloseTags",!1,(function(o,s,c){if(c!=t.Init&&c&&o.removeKeyMap("autoCloseTags"),s){var l={name:"autoCloseTags"};"object"==typeof s&&!1===s.whenClosing||(l["'/'"]=function(e){return function(e){return e.getOption("disableInput")?t.Pass:r(e,!0)}(e)}),"object"==typeof s&&!1===s.whenOpening||(l["'>'"]=function(r){return function(r){if(r.getOption("disableInput"))return t.Pass;for(var o=r.listSelections(),s=[],c=r.getOption("autoCloseTags"),l=0;l<o.length;l++){if(!o[l].empty())return t.Pass;var A=o[l].head,u=r.getTokenAt(A),h=t.innerMode(r.getMode(),u.state),f=h.state,d=h.mode.xmlCurrentTag&&h.mode.xmlCurrentTag(f),p=d&&d.name;if(!p)return t.Pass;var g="html"==h.mode.configuration,m="object"==typeof c&&c.dontCloseTags||g&&e,y="object"==typeof c&&c.indentTags||g&&n;u.end>A.ch&&(p=p.slice(0,p.length-u.end+A.ch));var v=p.toLowerCase();if(!p||"string"==u.type&&(u.end!=A.ch||!/[\"\']/.test(u.string.charAt(u.string.length-1))||1==u.string.length)||"tag"==u.type&&d.close||u.string.indexOf("/")==A.ch-u.start-1||m&&i(m,v)>-1||a(r,h.mode.xmlCurrentContext&&h.mode.xmlCurrentContext(f)||[],p,A,!0))return t.Pass;var b="object"==typeof c&&c.emptyTags;if(b&&i(b,p)>-1)s[l]={text:"/>",newPos:t.Pos(A.line,A.ch+2)};else{var _=y&&i(y,v)>-1;s[l]={indent:_,text:">"+(_?"\n\n":"")+"</"+p+">",newPos:_?t.Pos(A.line+1,0):t.Pos(A.line,A.ch+1)}}}var w="object"==typeof c&&c.dontIndentOnAutoClose;for(l=o.length-1;l>=0;l--){var E=s[l];r.replaceRange(E.text,o[l].head,o[l].anchor,"+insert");var C=r.listSelections().slice(0);C[l]={head:E.newPos,anchor:E.newPos},r.setSelections(C),!w&&E.indent&&(r.indentLine(E.newPos.line,null,!0),r.indentLine(E.newPos.line+1,null,!0))}}(r)}),o.addKeyMap(l)}}));var e=["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(e,n){for(var r=e.listSelections(),i=[],o=n?"/":"</",s=e.getOption("autoCloseTags"),c="object"==typeof s&&s.dontIndentOnSlash,l=0;l<r.length;l++){if(!r[l].empty())return t.Pass;var A=r[l].head,u=e.getTokenAt(A),h=t.innerMode(e.getMode(),u.state),f=h.state;if(n&&("string"==u.type||"<"!=u.string.charAt(0)||u.start!=A.ch-1))return t.Pass;var d,p="xml"!=h.mode.name&&"htmlmixed"==e.getMode().name;if(p&&"javascript"==h.mode.name)d=o+"script";else if(p&&"css"==h.mode.name)d=o+"style";else{var g=h.mode.xmlCurrentContext&&h.mode.xmlCurrentContext(f);if(!g||g.length&&a(e,g,g[g.length-1],A))return t.Pass;d=o+g[g.length-1]}">"!=e.getLine(A.line).charAt(u.end)&&(d+=">"),i[l]=d}if(e.replaceSelections(i),r=e.listSelections(),!c)for(l=0;l<r.length;l++)(l==r.length-1||r[l].head.line<r[l+1].head.line)&&e.indentLine(r[l].head.line)}function i(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;++n)if(t[n]==e)return n;return-1}function a(e,n,r,i,a){if(!t.scanForClosingTag)return!1;var o=Math.min(e.lastLine()+1,i.line+500),s=t.scanForClosingTag(e,i,null,o);if(!s||s.tag!=r)return!1;for(var c=a?1:0,l=n.length-1;l>=0&&n[l]==r;l--)++c;for(i=s.to,l=1;l<c;l++){var A=t.scanForClosingTag(e,i,null,o);if(!A||A.tag!=r)return!1;i=A.to}return!0}t.commands.closeTag=function(t){return r(t)}}(Ol)})),r((function(t,e){!function(t){function e(t){t.state.tagHit&&t.state.tagHit.clear(),t.state.tagOther&&t.state.tagOther.clear(),t.state.tagHit=t.state.tagOther=null}function n(n){n.state.failedTagMatch=!1,n.operation((function(){if(e(n),!n.somethingSelected()){var r=n.getCursor(),i=n.getViewport();i.from=Math.min(i.from,r.line),i.to=Math.max(r.line+1,i.to);var a=t.findMatchingTag(n,r,i);if(a){if(n.state.matchBothTags){var o="open"==a.at?a.open:a.close;o&&(n.state.tagHit=n.markText(o.from,o.to,{className:"CodeMirror-matchingtag"}))}var s="close"==a.at?a.open:a.close;s?n.state.tagOther=n.markText(s.from,s.to,{className:"CodeMirror-matchingtag"}):n.state.failedTagMatch=!0}}}))}function r(t){t.state.failedTagMatch&&n(t)}t.defineOption("matchTags",!1,(function(i,a,o){o&&o!=t.Init&&(i.off("cursorActivity",n),i.off("viewportChange",r),e(i)),a&&(i.state.matchBothTags="object"==typeof a&&a.bothTags,i.on("cursorActivity",n),i.on("viewportChange",r),n(i))})),t.commands.toMatchingTag=function(e){var n=t.findMatchingTag(e,e.getCursor());if(n){var r="close"==n.at?n.open:n.close;r&&e.extendSelection(r.to,r.from)}}}(Ol)})),r((function(t,e){!function(t){var e,n,r=t.Pos;function i(t,e){for(var n=function(t){var e=t.flags;return null!=e?e:(t.ignoreCase?"i":"")+(t.global?"g":"")+(t.multiline?"m":"")}(t),r=n,i=0;i<e.length;i++)-1==r.indexOf(e.charAt(i))&&(r+=e.charAt(i));return n==r?t:new RegExp(t.source,r)}function a(t){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(t.source)}function o(t,e,n){e=i(e,"g");for(var a=n.line,o=n.ch,s=t.lastLine();a<=s;a++,o=0){e.lastIndex=o;var c=t.getLine(a),l=e.exec(c);if(l)return{from:r(a,l.index),to:r(a,l.index+l[0].length),match:l}}}function s(t,e,n){if(!a(e))return o(t,e,n);e=i(e,"gm");for(var s,c=1,l=n.line,A=t.lastLine();l<=A;){for(var u=0;u<c&&!(l>A);u++){var h=t.getLine(l++);s=null==s?h:s+"\n"+h}c*=2,e.lastIndex=n.ch;var f=e.exec(s);if(f){var d=s.slice(0,f.index).split("\n"),p=f[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:f}}}}function c(t,e,n){for(var r,i=0;i<=t.length;){e.lastIndex=i;var a=e.exec(t);if(!a)break;var o=a.index+a[0].length;if(o>t.length-n)break;(!r||o>r.index+r[0].length)&&(r=a),i=a.index+1}return r}function l(t,e,n){e=i(e,"g");for(var a=n.line,o=n.ch,s=t.firstLine();a>=s;a--,o=-1){var l=t.getLine(a),A=c(l,e,o<0?0:l.length-o);if(A)return{from:r(a,A.index),to:r(a,A.index+A[0].length),match:A}}}function A(t,e,n){if(!a(e))return l(t,e,n);e=i(e,"gm");for(var o,s=1,A=t.getLine(n.line).length-n.ch,u=n.line,h=t.firstLine();u>=h;){for(var f=0;f<s&&u>=h;f++){var d=t.getLine(u--);o=null==o?d:d+"\n"+o}s*=2;var p=c(o,e,A);if(p){var g=o.slice(0,p.index).split("\n"),m=p[0].split("\n"),y=u+g.length,v=g[g.length-1].length;return{from:r(y,v),to:r(y+m.length-1,1==m.length?v+m[0].length:m[m.length-1].length),match:p}}}}function u(t,e,n,r){if(t.length==e.length)return n;for(var i=0,a=n+Math.max(0,t.length-e.length);;){if(i==a)return i;var o=i+a>>1,s=r(t.slice(0,o)).length;if(s==n)return o;s>n?a=o:i=o+1}}function h(t,i,a,o){if(!i.length)return null;var s=o?e:n,c=s(i).split(/\r|\n\r?/);t:for(var l=a.line,A=a.ch,h=t.lastLine()+1-c.length;l<=h;l++,A=0){var f=t.getLine(l).slice(A),d=s(f);if(1==c.length){var p=d.indexOf(c[0]);if(-1==p)continue t;return a=u(f,d,p,s)+A,{from:r(l,u(f,d,p,s)+A),to:r(l,u(f,d,p+c[0].length,s)+A)}}var g=d.length-c[0].length;if(d.slice(g)==c[0]){for(var m=1;m<c.length-1;m++)if(s(t.getLine(l+m))!=c[m])continue t;var y=t.getLine(l+c.length-1),v=s(y),b=c[c.length-1];if(v.slice(0,b.length)==b)return{from:r(l,u(f,d,g,s)+A),to:r(l+c.length-1,u(y,v,b.length,s))}}}}function f(t,i,a,o){if(!i.length)return null;var s=o?e:n,c=s(i).split(/\r|\n\r?/);t:for(var l=a.line,A=a.ch,h=t.firstLine()-1+c.length;l>=h;l--,A=-1){var f=t.getLine(l);A>-1&&(f=f.slice(0,A));var d=s(f);if(1==c.length){var p=d.lastIndexOf(c[0]);if(-1==p)continue t;return{from:r(l,u(f,d,p,s)),to:r(l,u(f,d,p+c[0].length,s))}}var g=c[c.length-1];if(d.slice(0,g.length)==g){var m=1;for(a=l-c.length+1;m<c.length-1;m++)if(s(t.getLine(a+m))!=c[m])continue t;var y=t.getLine(l+1-c.length),v=s(y);if(v.slice(v.length-c[0].length)==c[0])return{from:r(l+1-c.length,u(y,v,y.length-c[0].length,s)),to:r(l,u(f,d,g.length,s))}}}}function d(t,e,n,a){var c;this.atOccurrence=!1,this.doc=t,n=n?t.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==typeof a?c=a.caseFold:(c=a,a=null),"string"==typeof e?(null==c&&(c=!1),this.matches=function(n,r){return(n?f:h)(t,e,r,c)}):(e=i(e,"gm"),a&&!1===a.multiline?this.matches=function(n,r){return(n?l:o)(t,e,r)}:this.matches=function(n,r){return(n?A:s)(t,e,r)})}String.prototype.normalize?(e=function(t){return t.normalize("NFD").toLowerCase()},n=function(t){return t.normalize("NFD")}):(e=function(t){return t.toLowerCase()},n=function(t){return t}),d.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(e){for(var n=this.matches(e,this.doc.clipPos(e?this.pos.from:this.pos.to));n&&0==t.cmpPos(n.from,n.to);)e?n.from.ch?n.from=r(n.from.line,n.from.ch-1):n=n.from.line==this.doc.firstLine()?null:this.matches(e,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(e,r(n.to.line+1,0));if(n)return this.pos=n,this.atOccurrence=!0,this.pos.match||!0;var i=r(e?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:i,to:i},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(e,n){if(this.atOccurrence){var i=t.splitLines(e);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},t.defineExtension("getSearchCursor",(function(t,e,n){return new d(this.doc,t,e,n)})),t.defineDocExtension("getSearchCursor",(function(t,e,n){return new d(this,t,e,n)})),t.defineExtension("selectMatches",(function(e,n){for(var r=[],i=this.getSearchCursor(e,this.getCursor("from"),n);i.findNext()&&!(t.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(Ol)})),r((function(t,e){!function(t){function e(t){t.state.placeholder&&(t.state.placeholder.parentNode.removeChild(t.state.placeholder),t.state.placeholder=null)}function n(t){e(t);var n=t.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.style.direction=t.getOption("direction"),n.className="CodeMirror-placeholder CodeMirror-line-like";var r=t.getOption("placeholder");"string"==typeof r&&(r=document.createTextNode(r)),n.appendChild(r),t.display.lineSpace.insertBefore(n,t.display.lineSpace.firstChild)}function r(t){a(t)&&n(t)}function i(t){var r=t.getWrapperElement(),i=a(t);r.className=r.className.replace(" CodeMirror-empty","")+(i?" CodeMirror-empty":""),i?n(t):e(t)}function a(t){return 1===t.lineCount()&&""===t.getLine(0)}t.defineOption("placeholder","",(function(a,o,s){var c=s&&s!=t.Init;if(o&&!c)a.on("blur",r),a.on("change",i),a.on("swapDoc",i),t.on(a.getInputField(),"compositionupdate",a.state.placeholderCompose=function(){!function(t){setTimeout((function(){var r=!1,i=t.getInputField();"TEXTAREA"==i.nodeName?r=!i.value:1==t.lineCount()&&(r=!/[^\u200b]/.test(i.querySelector(".CodeMirror-line").textContent)),r?n(t):e(t)}),20)}(a)}),i(a);else if(!o&&c){a.off("blur",r),a.off("change",i),a.off("swapDoc",i),t.off(a.getInputField(),"compositionupdate",a.state.placeholderCompose),e(a);var l=a.getWrapperElement();l.className=l.className.replace(" CodeMirror-empty","")}o&&!a.hasFocus()&&r(a)}))}(Ol)})),r((function(t,e){!function(t){var e=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=t.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(t){return t&&t.bracketRegex||/[(){}[\]]/}function a(t,e,a){var s=t.getLineHandle(e.line),c=e.ch-1,l=a&&a.afterCursor;null==l&&(l=/(^| )cm-fat-cursor($| )/.test(t.getWrapperElement().className));var A=i(a),u=!l&&c>=0&&A.test(s.text.charAt(c))&&r[s.text.charAt(c)]||A.test(s.text.charAt(c+1))&&r[s.text.charAt(++c)];if(!u)return null;var h=">"==u.charAt(1)?1:-1;if(a&&a.strict&&h>0!=(c==e.ch))return null;var f=t.getTokenTypeAt(n(e.line,c+1)),d=o(t,n(e.line,c+(h>0?1:0)),h,f||null,a);return null==d?null:{from:n(e.line,c),to:d&&d.pos,match:d&&d.ch==u.charAt(0),forward:h>0}}function o(t,e,a,o,s){for(var c=s&&s.maxScanLineLength||1e4,l=s&&s.maxScanLines||1e3,A=[],u=i(s),h=a>0?Math.min(e.line+l,t.lastLine()+1):Math.max(t.firstLine()-1,e.line-l),f=e.line;f!=h;f+=a){var d=t.getLine(f);if(d){var p=a>0?0:d.length-1,g=a>0?d.length:-1;if(!(d.length>c))for(f==e.line&&(p=e.ch-(a<0?1:0));p!=g;p+=a){var m=d.charAt(p);if(u.test(m)&&(void 0===o||t.getTokenTypeAt(n(f,p+1))==o)){var y=r[m];if(y&&">"==y.charAt(1)==a>0)A.push(m);else{if(!A.length)return{pos:n(f,p),ch:m};A.pop()}}}}}return f-a!=(a>0?t.lastLine():t.firstLine())&&null}function s(t,r,i){for(var o=t.state.matchBrackets.maxHighlightLineLength||1e3,s=[],c=t.listSelections(),l=0;l<c.length;l++){var A=c[l].empty()&&a(t,c[l].head,i);if(A&&t.getLine(A.from.line).length<=o){var u=A.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";s.push(t.markText(A.from,n(A.from.line,A.from.ch+1),{className:u})),A.to&&t.getLine(A.to.line).length<=o&&s.push(t.markText(A.to,n(A.to.line,A.to.ch+1),{className:u}))}}if(s.length){e&&t.state.focused&&t.focus();var h=function(){t.operation((function(){for(var t=0;t<s.length;t++)s[t].clear()}))};if(!r)return h;setTimeout(h,800)}}function c(t){t.operation((function(){t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null),t.state.matchBrackets.currentlyHighlighted=s(t,!1,t.state.matchBrackets)}))}t.defineOption("matchBrackets",!1,(function(e,n,r){function i(t){t.state.matchBrackets&&t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null)}r&&r!=t.Init&&(e.off("cursorActivity",c),e.off("focus",c),e.off("blur",i),i(e)),n&&(e.state.matchBrackets="object"==typeof n?n:{},e.on("cursorActivity",c),e.on("focus",c),e.on("blur",i))})),t.defineExtension("matchBrackets",(function(){s(this,!0)})),t.defineExtension("findMatchingBracket",(function(t,e,n){return(n||"boolean"==typeof e)&&(n?(n.strict=e,e=n):e=e?{strict:!0}:null),a(this,t,e)})),t.defineExtension("scanForBracket",(function(t,e,n,r){return o(this,t,e,n,r)}))}(Ol)})),r((function(t,e){!function(t){var e=t.commands,n=t.Pos;function r(e,r){e.extendSelectionsBy((function(i){return e.display.shift||e.doc.extend||i.empty()?function(e,r,i){if(i<0&&0==r.ch)return e.clipPos(n(r.line-1));var a=e.getLine(r.line);if(i>0&&r.ch>=a.length)return e.clipPos(n(r.line+1,0));for(var o,s="start",c=r.ch,l=c,A=i<0?0:a.length,u=0;l!=A;l+=i,u++){var h=a.charAt(i<0?l-1:l),f="_"!=h&&t.isWordChar(h)?"w":"o";if("w"==f&&h.toUpperCase()==h&&(f="W"),"start"==s)"o"!=f?(s="in",o=f):c=l+i;else if("in"==s&&o!=f){if("w"==o&&"W"==f&&i<0&&l--,"W"==o&&"w"==f&&i>0){if(l==c+1){o="w";continue}l--}break}}return n(r.line,l)}(e.doc,i.head,r):r<0?i.from():i.to()}))}function i(e,r){if(e.isReadOnly())return t.Pass;e.operation((function(){for(var t=e.listSelections().length,i=[],a=-1,o=0;o<t;o++){var s=e.listSelections()[o].head;if(!(s.line<=a)){var c=n(s.line+(r?0:1),0);e.replaceRange("\n",c,null,"+insertLine"),e.indentLine(c.line,null,!0),i.push({head:c,anchor:c}),a=s.line+1}}e.setSelections(i)})),e.execCommand("indentAuto")}function a(e,r){for(var i=r.ch,a=i,o=e.getLine(r.line);i&&t.isWordChar(o.charAt(i-1));)--i;for(;a<o.length&&t.isWordChar(o.charAt(a));)++a;return{from:n(r.line,i),to:n(r.line,a),word:o.slice(i,a)}}function o(t,e){for(var n=t.listSelections(),r=[],i=0;i<n.length;i++){var a=n[i],o=t.findPosV(a.anchor,e,"line",a.anchor.goalColumn),s=t.findPosV(a.head,e,"line",a.head.goalColumn);o.goalColumn=null!=a.anchor.goalColumn?a.anchor.goalColumn:t.cursorCoords(a.anchor,"div").left,s.goalColumn=null!=a.head.goalColumn?a.head.goalColumn:t.cursorCoords(a.head,"div").left;var c={anchor:o,head:s};r.push(a),r.push(c)}t.setSelections(r)}function s(e){for(var r=e.listSelections(),i=[],a=0;a<r.length;a++){var o=r[a],s=o.head,c=e.scanForBracket(s,-1);if(!c)return!1;for(;;){var l=e.scanForBracket(s,1);if(!l)return!1;if(l.ch=="(){}[]".charAt("(){}[]".indexOf(c.ch)+1)){var A=n(c.pos.line,c.pos.ch+1);if(0!=t.cmpPos(A,o.from())||0!=t.cmpPos(l.pos,o.to())){i.push({anchor:A,head:l.pos});break}if(!(c=e.scanForBracket(c.pos,-1)))return!1}s=n(l.pos.line,l.pos.ch+1)}}return e.setSelections(i),!0}function c(t){return t?/\bpunctuation\b/.test(t)?t:void 0:null}function l(e,r){if(e.isReadOnly())return t.Pass;for(var i,a=e.listSelections(),o=[],s=0;s<a.length;s++){var c=a[s];if(!c.empty()){for(var l=c.from().line,A=c.to().line;s<a.length-1&&a[s+1].from().line==A;)A=a[++s].to().line;a[s].to().ch||A--,o.push(l,A)}}o.length?i=!0:o.push(e.firstLine(),e.lastLine()),e.operation((function(){for(var t=[],a=0;a<o.length;a+=2){var s=o[a],c=o[a+1],l=n(s,0),A=n(c),u=e.getRange(l,A,!1);r?u.sort():u.sort((function(t,e){var n=t.toUpperCase(),r=e.toUpperCase();return n!=r&&(t=n,e=r),t<e?-1:t==e?0:1})),e.replaceRange(u,l,A),i&&t.push({anchor:l,head:n(c+1,0)})}i&&e.setSelections(t,0)}))}function A(e,n){e.operation((function(){for(var r=e.listSelections(),i=[],o=[],s=0;s<r.length;s++)(l=r[s]).empty()?(i.push(s),o.push("")):o.push(n(e.getRange(l.from(),l.to())));var c;for(e.replaceSelections(o,"around","case"),s=i.length-1;s>=0;s--){var l=r[i[s]];if(!(c&&t.cmpPos(l.head,c)>0)){var A=a(e,l.head);c=A.from,e.replaceRange(n(A.word),A.from,A.to)}}}))}function u(e){var n=e.getCursor("from"),r=e.getCursor("to");if(0==t.cmpPos(n,r)){var i=a(e,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:e.getRange(n,r),word:i}}function h(t,e){var r=u(t);if(r){var i=r.query,a=t.getSearchCursor(i,e?r.to:r.from);(e?a.findNext():a.findPrevious())?t.setSelection(a.from(),a.to()):(a=t.getSearchCursor(i,e?n(t.firstLine(),0):t.clipPos(n(t.lastLine()))),(e?a.findNext():a.findPrevious())?t.setSelection(a.from(),a.to()):r.word&&t.setSelection(r.from,r.to))}}e.goSubwordLeft=function(t){r(t,-1)},e.goSubwordRight=function(t){r(t,1)},e.scrollLineUp=function(t){var e=t.getScrollInfo();if(!t.somethingSelected()){var n=t.lineAtHeight(e.top+e.clientHeight,"local");t.getCursor().line>=n&&t.execCommand("goLineUp")}t.scrollTo(null,e.top-t.defaultTextHeight())},e.scrollLineDown=function(t){var e=t.getScrollInfo();if(!t.somethingSelected()){var n=t.lineAtHeight(e.top,"local")+1;t.getCursor().line<=n&&t.execCommand("goLineDown")}t.scrollTo(null,e.top+t.defaultTextHeight())},e.splitSelectionByLine=function(t){for(var e=t.listSelections(),r=[],i=0;i<e.length;i++)for(var a=e[i].from(),o=e[i].to(),s=a.line;s<=o.line;++s)o.line>a.line&&s==o.line&&0==o.ch||r.push({anchor:s==a.line?a:n(s,0),head:s==o.line?o:n(s)});t.setSelections(r,0)},e.singleSelectionTop=function(t){var e=t.listSelections()[0];t.setSelection(e.anchor,e.head,{scroll:!1})},e.selectLine=function(t){for(var e=t.listSelections(),r=[],i=0;i<e.length;i++){var a=e[i];r.push({anchor:n(a.from().line,0),head:n(a.to().line+1,0)})}t.setSelections(r)},e.insertLineAfter=function(t){return i(t,!1)},e.insertLineBefore=function(t){return i(t,!0)},e.selectNextOccurrence=function(e){var r=e.getCursor("from"),i=e.getCursor("to"),o=e.state.sublimeFindFullWord==e.doc.sel;if(0==t.cmpPos(r,i)){var s=a(e,r);if(!s.word)return;e.setSelection(s.from,s.to),o=!0}else{var c=e.getRange(r,i),l=o?new RegExp("\\b"+c+"\\b"):c,A=e.getSearchCursor(l,i),u=A.findNext();if(u||(u=(A=e.getSearchCursor(l,n(e.firstLine(),0))).findNext()),!u||function(e,n,r){for(var i=0;i<e.length;i++)if(0==t.cmpPos(e[i].from(),n)&&0==t.cmpPos(e[i].to(),r))return!0;return!1}(e.listSelections(),A.from(),A.to()))return;e.addSelection(A.from(),A.to())}o&&(e.state.sublimeFindFullWord=e.doc.sel)},e.skipAndSelectNextOccurrence=function(n){var r=n.getCursor("anchor"),i=n.getCursor("head");e.selectNextOccurrence(n),0!=t.cmpPos(r,i)&&n.doc.setSelections(n.doc.listSelections().filter((function(t){return t.anchor!=r||t.head!=i})))},e.addCursorToPrevLine=function(t){o(t,-1)},e.addCursorToNextLine=function(t){o(t,1)},e.selectScope=function(t){s(t)||t.execCommand("selectAll")},e.selectBetweenBrackets=function(e){if(!s(e))return t.Pass},e.goToBracket=function(e){e.extendSelectionsBy((function(r){var i=e.scanForBracket(r.head,1,c(e.getTokenTypeAt(r.head)));if(i&&0!=t.cmpPos(i.pos,r.head))return i.pos;var a=e.scanForBracket(r.head,-1,c(e.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return a&&n(a.pos.line,a.pos.ch+1)||r.head}))},e.swapLineUp=function(e){if(e.isReadOnly())return t.Pass;for(var r=e.listSelections(),i=[],a=e.firstLine()-1,o=[],s=0;s<r.length;s++){var c=r[s],l=c.from().line-1,A=c.to().line;o.push({anchor:n(c.anchor.line-1,c.anchor.ch),head:n(c.head.line-1,c.head.ch)}),0!=c.to().ch||c.empty()||--A,l>a?i.push(l,A):i.length&&(i[i.length-1]=A),a=A}e.operation((function(){for(var t=0;t<i.length;t+=2){var r=i[t],a=i[t+1],s=e.getLine(r);e.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),a>e.lastLine()?e.replaceRange("\n"+s,n(e.lastLine()),null,"+swapLine"):e.replaceRange(s+"\n",n(a,0),null,"+swapLine")}e.setSelections(o),e.scrollIntoView()}))},e.swapLineDown=function(e){if(e.isReadOnly())return t.Pass;for(var r=e.listSelections(),i=[],a=e.lastLine()+1,o=r.length-1;o>=0;o--){var s=r[o],c=s.to().line+1,l=s.from().line;0!=s.to().ch||s.empty()||c--,c<a?i.push(c,l):i.length&&(i[i.length-1]=l),a=l}e.operation((function(){for(var t=i.length-2;t>=0;t-=2){var r=i[t],a=i[t+1],o=e.getLine(r);r==e.lastLine()?e.replaceRange("",n(r-1),n(r),"+swapLine"):e.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),e.replaceRange(o+"\n",n(a,0),null,"+swapLine")}e.scrollIntoView()}))},e.toggleCommentIndented=function(t){t.toggleComment({indent:!0})},e.joinLines=function(t){for(var e=t.listSelections(),r=[],i=0;i<e.length;i++){for(var a=e[i],o=a.from(),s=o.line,c=a.to().line;i<e.length-1&&e[i+1].from().line==c;)c=e[++i].to().line;r.push({start:s,end:c,anchor:!a.empty()&&o})}t.operation((function(){for(var e=0,i=[],a=0;a<r.length;a++){for(var o,s=r[a],c=s.anchor&&n(s.anchor.line-e,s.anchor.ch),l=s.start;l<=s.end;l++){var A=l-e;l==s.end&&(o=n(A,t.getLine(A).length+1)),A<t.lastLine()&&(t.replaceRange(" ",n(A),n(A+1,/^\s*/.exec(t.getLine(A+1))[0].length)),++e)}i.push({anchor:c||o,head:o})}t.setSelections(i,0)}))},e.duplicateLine=function(t){t.operation((function(){for(var e=t.listSelections().length,r=0;r<e;r++){var i=t.listSelections()[r];i.empty()?t.replaceRange(t.getLine(i.head.line)+"\n",n(i.head.line,0)):t.replaceRange(t.getRange(i.from(),i.to()),i.from())}t.scrollIntoView()}))},e.sortLines=function(t){l(t,!0)},e.sortLinesInsensitive=function(t){l(t,!1)},e.nextBookmark=function(t){var e=t.state.sublimeBookmarks;if(e)for(;e.length;){var n=e.shift(),r=n.find();if(r)return e.push(n),t.setSelection(r.from,r.to)}},e.prevBookmark=function(t){var e=t.state.sublimeBookmarks;if(e)for(;e.length;){e.unshift(e.pop());var n=e[e.length-1].find();if(n)return t.setSelection(n.from,n.to);e.pop()}},e.toggleBookmark=function(t){for(var e=t.listSelections(),n=t.state.sublimeBookmarks||(t.state.sublimeBookmarks=[]),r=0;r<e.length;r++){for(var i=e[r].from(),a=e[r].to(),o=e[r].empty()?t.findMarksAt(i):t.findMarks(i,a),s=0;s<o.length;s++)if(o[s].sublimeBookmark){o[s].clear();for(var c=0;c<n.length;c++)n[c]==o[s]&&n.splice(c--,1);break}s==o.length&&n.push(t.markText(i,a,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},e.clearBookmarks=function(t){var e=t.state.sublimeBookmarks;if(e)for(var n=0;n<e.length;n++)e[n].clear();e.length=0},e.selectBookmarks=function(t){var e=t.state.sublimeBookmarks,n=[];if(e)for(var r=0;r<e.length;r++){var i=e[r].find();i?n.push({anchor:i.from,head:i.to}):e.splice(r--,0)}n.length&&t.setSelections(n,0)},e.smartBackspace=function(e){if(e.somethingSelected())return t.Pass;e.operation((function(){for(var r=e.listSelections(),i=e.getOption("indentUnit"),a=r.length-1;a>=0;a--){var o=r[a].head,s=e.getRange({line:o.line,ch:0},o),c=t.countColumn(s,null,e.getOption("tabSize")),l=e.findPosH(o,-1,"char",!1);if(s&&!/\S/.test(s)&&c%i==0){var A=new n(o.line,t.findColumn(s,c-i,i));A.ch!=o.ch&&(l=A)}e.replaceRange("",l,o,"+delete")}}))},e.delLineRight=function(t){t.operation((function(){for(var e=t.listSelections(),r=e.length-1;r>=0;r--)t.replaceRange("",e[r].anchor,n(e[r].to().line),"+delete");t.scrollIntoView()}))},e.upcaseAtCursor=function(t){A(t,(function(t){return t.toUpperCase()}))},e.downcaseAtCursor=function(t){A(t,(function(t){return t.toLowerCase()}))},e.setSublimeMark=function(t){t.state.sublimeMark&&t.state.sublimeMark.clear(),t.state.sublimeMark=t.setBookmark(t.getCursor())},e.selectToSublimeMark=function(t){var e=t.state.sublimeMark&&t.state.sublimeMark.find();e&&t.setSelection(t.getCursor(),e)},e.deleteToSublimeMark=function(e){var n=e.state.sublimeMark&&e.state.sublimeMark.find();if(n){var r=e.getCursor(),i=n;if(t.cmpPos(r,i)>0){var a=i;i=r,r=a}e.state.sublimeKilled=e.getRange(r,i),e.replaceRange("",r,i)}},e.swapWithSublimeMark=function(t){var e=t.state.sublimeMark&&t.state.sublimeMark.find();e&&(t.state.sublimeMark.clear(),t.state.sublimeMark=t.setBookmark(t.getCursor()),t.setCursor(e))},e.sublimeYank=function(t){null!=t.state.sublimeKilled&&t.replaceSelection(t.state.sublimeKilled,null,"paste")},e.showInCenter=function(t){var e=t.cursorCoords(null,"local");t.scrollTo(null,(e.top+e.bottom)/2-t.getScrollInfo().clientHeight/2)},e.findUnder=function(t){h(t,!0)},e.findUnderPrevious=function(t){h(t,!1)},e.findAllUnder=function(t){var e=u(t);if(e){for(var n=t.getSearchCursor(e.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=e.from.line&&n.from().ch<=e.from.ch&&i++;t.setSelections(r,i)}};var f=t.keyMap;f.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Cmd-F5":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},t.normalizeKeyMap(f.macSublime),f.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Ctrl-F9":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},t.normalizeKeyMap(f.pcSublime);var d=f.default==f.macDefault;f.sublime=d?f.macSublime:f.pcSublime}(Ol)})),r((function(t,e){!function(t){var e;function n(t){var n,i,a,o,s,c,l,A,u=this;function h(t,e){return"string"==typeof t&&!e}function f(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function d(t){return t.state.search||(t.state.search=new f)}function p(t){t.operation((function(){var e=d(t);e.lastQuery=e.query,e.query&&(e.query=e.queryText=null,t.removeOverlay(e.overlay),e.annotate&&(e.annotate.clear(),e.annotate=null))}))}function g(){var e,n=u.searchInput.value,r=[];n&&(n=n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),e=u.caseSensitiveOption.checked?RegExp(n,"g"):RegExp(n,"gi"),u.wholeWordOption.checked&&(e=u.caseSensitiveOption.checked?RegExp("\\b"+n+"\\b","g"):RegExp("\\b"+n+"\\b","gi")),u.regExpOption.checked&&(e=RegExp(n,"gi")),r=t.getValue().match(e));var i=r?r.length:0,a=t.display.wrapper.parentElement.querySelector(".ace_search_counter");a&&(a.innerText=i+" matches found."),0===i&&t.setSelection({ch:0,line:0},{ch:0,line:0})}n=u.element=function(){var e,n=t.getWrapperElement(),r=document.createElement("div"),i=['<div class="ace_search right">','<button type="button" action="hide" class="ace_searchbtn_close"></button>','<div class="ace_search_form">','<input class="ace_search_field" placeholder="Search for" spellcheck="false"></input>','<button type="button" action="findNext" class="ace_searchbtn next"></button>','<button type="button" action="findPrev" class="ace_searchbtn prev"></button>',"</div>",'<div class="ace_replace_form">','<input class="ace_search_field" placeholder="Replace with" spellcheck="false"></input>','<button type="button" action="replaceAndFindNext" title="Replace" class="ace_replacebtn">','<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">','<path fill-rule="evenodd" clip-rule="evenodd" d="M3.221 3.739L5.482 6.008L7.7 3.784L7 3.084L5.988 4.091L5.98 2.491C5.97909 2.35567 6.03068 2.22525 6.12392 2.12716C6.21716 2.02908 6.3448 1.97095 6.48 1.965H8V1H6.48C6.28496 1.00026 6.09189 1.03902 5.91186 1.11405C5.73183 1.18908 5.56838 1.29892 5.43088 1.43725C5.29338 1.57558 5.18455 1.73969 5.11061 1.92018C5.03667 2.10066 4.99908 2.29396 5 2.489V4.1L3.927 3.033L3.221 3.739ZM9.89014 5.53277H9.90141C10.0836 5.84426 10.3521 6 10.707 6C11.0995 6 11.4131 5.83236 11.6479 5.49708C11.8826 5.1618 12 4.71728 12 4.16353C12 3.65304 11.8995 3.2507 11.6986 2.95652C11.4977 2.66234 11.2113 2.51525 10.8394 2.51525C10.4338 2.51525 10.1211 2.70885 9.90141 3.09604H9.89014V1H9V5.91888H9.89014V5.53277ZM9.87606 4.47177V4.13108C9.87606 3.88449 9.93427 3.6844 10.0507 3.53082C10.169 3.37724 10.3174 3.30045 10.4958 3.30045C10.6854 3.30045 10.831 3.37833 10.9324 3.53407C11.0357 3.68765 11.0873 3.9018 11.0873 4.17651C11.0873 4.50746 11.031 4.76379 10.9183 4.94549C10.8075 5.12503 10.6507 5.2148 10.4479 5.2148C10.2808 5.2148 10.1437 5.14449 10.0366 5.00389C9.92958 4.86329 9.87606 4.68592 9.87606 4.47177ZM9 12.7691C8.74433 12.923 8.37515 13 7.89247 13C7.32855 13 6.87216 12.8225 6.5233 12.4674C6.17443 12.1124 6 11.6543 6 11.0931C6 10.4451 6.18638 9.93484 6.55914 9.5624C6.93429 9.18747 7.43489 9.00001 8.06093 9.00001C8.49343 9.00001 8.80645 9.0596 9 9.17878V10.1769C8.76344 9.99319 8.4994 9.90132 8.20789 9.90132C7.88292 9.90132 7.62485 10.0006 7.43369 10.1993C7.24492 10.3954 7.15054 10.6673 7.15054 11.0149C7.15054 11.3526 7.24134 11.6183 7.42294 11.8119C7.60454 12.0031 7.85424 12.0987 8.17204 12.0987C8.454 12.0987 8.72999 12.0068 9 11.8231V12.7691ZM4 7L3 8V14L4 15H11L12 14V8L11 7H4ZM4 8H5H10H11V9V13V14H10H5H4V13V9V8Z" fill="#656565"/>',"</svg></button>",'<button type="button" action="replaceAll" title="Replace All" class="ace_replacebtn">','<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">','<path fill-rule="evenodd" clip-rule="evenodd" d="M11.6009 2.67683C11.7474 2.36708 11.9559 2.2122 12.2263 2.2122C12.4742 2.2122 12.6651 2.32987 12.7991 2.56522C12.933 2.80056 13 3.12243 13 3.53082C13 3.97383 12.9218 4.32944 12.7653 4.59766C12.6088 4.86589 12.3997 5 12.138 5C11.9014 5 11.7224 4.87541 11.6009 4.62622H11.5934V4.93511H11V1H11.5934V2.67683H11.6009ZM11.584 3.77742C11.584 3.94873 11.6197 4.09063 11.6911 4.20311C11.7624 4.3156 11.8538 4.37184 11.9653 4.37184C12.1005 4.37184 12.205 4.30002 12.2789 4.15639C12.354 4.01103 12.3915 3.80597 12.3915 3.54121C12.3915 3.32144 12.3571 3.15012 12.2883 3.02726C12.2207 2.90266 12.1236 2.84036 11.9972 2.84036C11.8782 2.84036 11.7793 2.9018 11.7005 3.02466C11.6228 3.14752 11.584 3.30759 11.584 3.50487V3.77742ZM4.11969 7.695L2 5.56781L2.66188 4.90594L3.66781 5.90625V4.39594C3.66695 4.21309 3.70219 4.03187 3.7715 3.86266C3.84082 3.69346 3.94286 3.53961 4.07176 3.40992C4.20066 3.28023 4.3539 3.17727 4.52268 3.10692C4.69146 3.03658 4.87246 3.00024 5.05531 3H7.39906V3.90469H5.05531C4.92856 3.91026 4.8089 3.96476 4.72149 4.05672C4.63408 4.14868 4.58571 4.27094 4.58656 4.39781L4.59406 5.89781L5.54281 4.95375L6.19906 5.61L4.11969 7.695ZM9.3556 4.93017H10V3.22067C10 2.40689 9.68534 2 9.05603 2C8.92098 2 8.77083 2.02421 8.6056 2.07263C8.44181 2.12104 8.3125 2.17691 8.21767 2.24022V2.90503C8.45474 2.70205 8.70474 2.60056 8.96767 2.60056C9.22917 2.60056 9.35991 2.75698 9.35991 3.06983L8.76078 3.17318C8.25359 3.25885 8 3.57914 8 4.13408C8 4.39665 8.06106 4.60708 8.18319 4.76536C8.30675 4.92179 8.47557 5 8.68966 5C8.97989 5 9.19899 4.83985 9.34698 4.51955H9.3556V4.93017ZM9.35991 3.57542V3.76816C9.35991 3.9432 9.31968 4.08845 9.23922 4.20391C9.15876 4.3175 9.0546 4.3743 8.92672 4.3743C8.83477 4.3743 8.76149 4.34264 8.7069 4.27933C8.65374 4.21415 8.62716 4.13128 8.62716 4.03073C8.62716 3.80912 8.73779 3.6797 8.95905 3.64246L9.35991 3.57542ZM7 12.9302H6.3556V12.5196H6.34698C6.19899 12.8399 5.97989 13 5.68966 13C5.47557 13 5.30675 12.9218 5.18319 12.7654C5.06106 12.6071 5 12.3966 5 12.1341C5 11.5791 5.25359 11.2588 5.76078 11.1732L6.35991 11.0698C6.35991 10.757 6.22917 10.6006 5.96767 10.6006C5.70474 10.6006 5.45474 10.702 5.21767 10.905V10.2402C5.3125 10.1769 5.44181 10.121 5.6056 10.0726C5.77083 10.0242 5.92098 10 6.05603 10C6.68534 10 7 10.4069 7 11.2207V12.9302ZM6.35991 11.7682V11.5754L5.95905 11.6425C5.73779 11.6797 5.62716 11.8091 5.62716 12.0307C5.62716 12.1313 5.65374 12.2142 5.7069 12.2793C5.76149 12.3426 5.83477 12.3743 5.92672 12.3743C6.0546 12.3743 6.15876 12.3175 6.23922 12.2039C6.31968 12.0885 6.35991 11.9432 6.35991 11.7682ZM9.26165 13C9.58343 13 9.82955 12.9423 10 12.8268V12.1173C9.81999 12.2551 9.636 12.324 9.44803 12.324C9.23616 12.324 9.06969 12.2523 8.94863 12.1089C8.82756 11.9637 8.76702 11.7644 8.76702 11.5112C8.76702 11.2505 8.82995 11.0466 8.95579 10.8994C9.08323 10.7505 9.25528 10.676 9.47192 10.676C9.66627 10.676 9.84229 10.7449 10 10.8827V10.1341C9.87097 10.0447 9.66229 10 9.37395 10C8.95659 10 8.62286 10.1406 8.37276 10.4218C8.12425 10.7011 8 11.0838 8 11.5698C8 11.9907 8.11629 12.3343 8.34887 12.6006C8.58144 12.8669 8.8857 13 9.26165 13ZM2 9L3 8H12L13 9V14L12 15H3L2 14V9ZM3 9V14H12V9H3ZM6 7L7 6H14L15 7V12L14 13V12V7H7H6Z" fill="#656565"/>',"</svg></button>","</div>",'<div class="ace_search_options">','<span action="toggleReplace" class="ace_button replace_toggle">+</span>','<span class="ace_search_counter">0 matches found.</span>','<span action="toggleRegexpMode" title="RegExp Search"></span>','<span action="toggleCaseSensitive" class="ace_button" title="CaseSensitive Search">Aa</span>','<span action="toggleWholeWords" title="Whole Word Search"></span>',"</div>","</div>"].join("");return r.innerHTML=i,e=r.firstChild,n.appendChild(e),e}(),function(){var t=document.createElement("style"),e=[".ace_search {","color: black;","background-color: #ddd;","border: 1px solid #cbcbcb;","border-top: 0 none;","max-width: 325px;","overflow: hidden;","margin: 0;","padding: 4px;","padding-right: 6px;","padding-bottom: 0;","position: absolute;","top: 0px;","z-index: 99;","white-space: normal;","font-size: 12px;","}",".ace_search.left {","border-left: 0 none;","border-radius: 0px 0px 5px 0px;","left: 0;","}",".ace_search.right {","border-radius: 0px 0px 0px 5px;","border-right: 0 none;","right: 0;","}",".ace_search_form, .ace_replace_form {","border-radius: 3px;","border: 1px solid #cbcbcb;","float: left;","margin-bottom: 4px;","overflow: hidden;","}",".ace_search_form.ace_nomatch {","outline: 1px solid red;","}",".ace_search_field {","background-color: white;","border-right: 1px solid #cbcbcb;","border: 0 none;","-webkit-box-sizing: border-box;","-moz-box-sizing: border-box;","box-sizing: border-box;","float: left;","height: 22px;","outline: 0;","padding: 0 7px;","width: 238px;","margin: 0;","}",".ace_searchbtn,",".ace_replacebtn {","background: #fff;","border: 0 none;","border-left: 1px solid #dcdcdc;","cursor: pointer;","float: left;","height: 22px;","padding: 0 5px;","margin: 0;","position: relative;","}",".ace_searchbtn:last-child,",".ace_replacebtn:last-child {","border-top-right-radius: 3px;","border-bottom-right-radius: 3px;","}",".ace_searchbtn:disabled {","background: none;","cursor: default;","}",".ace_searchbtn {","background-position: 50% 50%;","background-repeat: no-repeat;","width: 27px;","}",".ace_searchbtn.prev {","background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADFJREFUeNpiSU1NZUAC/6E0I0yACYskCpsJiySKIiY0SUZk40FyTEgCjGgKwTRAgAEAQJUIPCE+qfkAAAAASUVORK5CYII=); ","}",".ace_searchbtn.next {","background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNpiTE1NZQCC/0DMyIAKwGJMUAYDEo3M/s+EpvM/mkKwCQxYjIeLMaELoLMBAgwAU7UJObTKsvAAAAAASUVORK5CYII=); ","}",".ace_searchbtn_close {","background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;","border-radius: 50%;","border: 0 none;","color: #656565;","cursor: pointer;","float: right;","font: 16px/16px Arial;","height: 14px;","margin: 5px 1px 9px 5px;","padding: 0;","text-align: center;","width: 14px;","}",".ace_searchbtn_close:hover {","background-color: #656565;","background-position: 50% 100%;","color: white;","}",".ace_replacebtn.prev {","width: 54px","}",".ace_replacebtn.next {","width: 27px","}",".ace_button {","margin-left: 2px;","cursor: pointer;","-webkit-user-select: none;","-moz-user-select: none;","-o-user-select: none;","-ms-user-select: none;","user-select: none;","overflow: hidden;","opacity: 0.7;","border: 1px solid rgba(100,100,100,0.23);","padding: 1px;","-moz-box-sizing: border-box;","box-sizing: border-box;","color: black;","}",".ace_button:hover {","background-color: #eee;","opacity:1;","}",".ace_button:active {","background-color: #ddd;","}",".ace_button.checked {","border-color: #3399ff;","opacity:1;","}",".ace_search_options{","clear: both;","margin: 4px 0;","text-align: right;","-webkit-user-select: none;","-moz-user-select: none;","-o-user-select: none;","-ms-user-select: none;","user-select: none;","}",".replace_toggle{","float: left;","margin-top: -2px;","padding: 0 5px;"," }",".ace_search_counter{","float: left;","font-family: arial;","padding: 0 8px;","}","button svg,path {","pointer-events: none;","}"].join("");t.setAttribute("data-name","js-searchbox"),t.textContent=e,document.head.appendChild(t)}(),function(t){u.searchBox=t.querySelector(".ace_search_form"),u.replaceBox=t.querySelector(".ace_replace_form"),u.searchOptions=t.querySelector(".ace_search_options"),u.regExpOption=t.querySelector("[action=toggleRegexpMode]"),u.caseSensitiveOption=t.querySelector("[action=toggleCaseSensitive]"),u.wholeWordOption=t.querySelector("[action=toggleWholeWords]"),u.searchInput=u.searchBox.querySelector(".ace_search_field"),u.replaceInput=u.replaceBox.querySelector(".ace_search_field")}(n),l=u,A={"Ctrl-F|Cmd-F|Ctrl-H|Command-Alt-F":function(){var t=l.isReplace=!l.isReplace;l.replaceBox.style.display=t?"":"none",l[t?"replaceInput":"searchInput"].focus()},"Ctrl-G|Cmd-G":function(){l.findNext()},"Ctrl-Shift-G|Cmd-Shift-G":function(){l.findPrev()},Esc:function(){setTimeout((function(){l.hide()}))},Enter:function(){l.activeInput===l.replaceInput&&l.replace(),l.findNext()},"Shift-Enter":function(){l.activeInput===l.replaceInput&&l.replace(),l.findPrev()},"Alt-Enter":function(){l.activeInput===l.replaceInput&&l.replaceAll(),l.findAll()},Tab:function(){u.activeInput===u.replaceInput?u.searchInput.focus():u.replaceInput.focus()}},u.element.addEventListener("keydown",(function(t){Object.keys(A).some((function(e){var n=function(t,e){var n={BACKSPACE:8,TAB:9,ENTER:13,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,UP:38,DOWN:40,INSERT:45,DELETE:46,INSERT_MAC:96,ASTERISK:106,PLUS:107,MINUS:109,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,SLASH:191,TRA:192,BACKSLASH:220};return function(t,e){if("string"!=typeof t)throw Error("str should be string!");if("object"!=typeof e)throw Error("event should be object!")}(t,e),t.split("|").some((function(t){return!t.split("-").some((function(t){var r;switch(t){case"Ctrl":r=e.ctrlKey;break;case"Shift":r=e.shiftKey;break;case"Alt":r=e.altKey;break;case"Cmd":r=e.metaKey;break;default:1===t.length?r=e.keyCode===t.charCodeAt(0):Object.keys(n).some((function(i){t.toUpperCase()===i&&(r=e.keyCode===n[i])}))}return!r}))}))}(e,t);return n&&(t.stopPropagation(),t.preventDefault(),A[e](t)),n}))})),n.addEventListener("mousedown",(function(t){setTimeout((function(){u.activeInput.focus()}),0),t.stopPropagation()})),n.addEventListener("click",(function(t){var e=(t.target||t.srcElement).getAttribute("action");e&&u[e]?u[e]():u.commands[e]&&u.commands[e](),t.stopPropagation()})),u.searchInput.addEventListener("input",(function(){u.$onChange.schedule(20)})),u.searchInput.addEventListener("focus",(function(){u.activeInput=u.searchInput})),u.replaceInput.addEventListener("focus",(function(){u.activeInput=u.replaceInput})),u.$onChange=(i=function(){u.find(!1,!1)},s=function(){o=null,i()},(c=function(t){o||(o=setTimeout(s,t||a))}).delay=function(t){o&&clearTimeout(o),o=setTimeout(s,t||a)},c.schedule=c,c.call=function(){this.cancel(),i()},c.cancel=function(){o&&clearTimeout(o),o=null},c.isPending=function(){return o},c),this.commands={toggleRegexpMode:function(){u.regExpOption.checked=!u.regExpOption.checked,u.$syncOptions()},toggleCaseSensitive:function(){u.caseSensitiveOption.checked=!u.caseSensitiveOption.checked,u.$syncOptions()},toggleWholeWords:function(){u.wholeWordOption.checked=!u.wholeWordOption.checked,u.$syncOptions()}},this.$syncOptions=function(){r(this.regExpOption,"checked",this.regExpOption.checked),r(this.wholeWordOption,"checked",this.wholeWordOption.checked),r(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked),this.find(!1,!1)},this.find=function(e,n){!function e(n,i,a){if(!n)return p(t),void g();var o,s,c,l,A,f,m,y=n,v=i,b=!0,_=v.caseSensitive,w=v.regExp,E=v.wholeWord;w&&(y=y.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")),E&&(y=_?y=RegExp("\\b"+y+"\\b"):RegExp("\\b"+y+"\\b","i")),w&&(y=RegExp(y)),p(t),function(t,e,n){var r=d(t),i=e;i&&i!==r.queryText&&(function(t,e,n,r){e.queryText=n,e.query=function(t){var e=("object"==typeof t?t.toString():t).match(/^\/(.*)\/([a-z]*)$/);if(e)try{t=new RegExp(e[1],-1==e[2].indexOf("i")?"":"i")}catch(t){}else t=t.replace(/\\([nrt\\])/g,(function(t,e){return"n"==e?"\n":"r"==e?"\r":"t"==e?"\t":"\\"==e?"\\":t}));return("string"==typeof t?""==t:t.test(""))&&(t=/x^/),t}(n),t.removeOverlay(e.overlay,h(e.query,r)),e.overlay=function(t,e){return"string"==typeof t?t=new RegExp(t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),e?"gi":"g"):t.global||(t=new RegExp(t.source,t.ignoreCase?"gi":"g")),{token:function(e){t.lastIndex=e.pos;var n=t.exec(e.string);if(n&&n.index==e.pos)return e.pos+=n[0].length||1,"searching";n?e.pos=n.index:e.skipToEnd()}}}(e.query,h(e.query,r)),t.addOverlay(e.overlay),t.showMatchesOnScrollbar&&(e.annotate&&(e.annotate.clear(),e.annotate=null),e.annotate=t.showMatchesOnScrollbar(e.query,h(e.query,r)))}(t,r,i,n),r.posFrom=r.posTo=t.getCursor())}(t,y,_),g(),m=v.backwards?v.skipCurrent?"from":"to":v.skipCurrent?"to":"from",f=t.getCursor(m),c=t.getSearchCursor(y,f,!_),l=c.findNext.bind(c),A=c.findPrevious.bind(c),c.matches.bind(c),v.backwards&&!A()?(b=l())&&(t.setCursor(t.doc.size-1,0),e(n,i,a),o=!0):v.backwards||l()||(b=A())&&(t.setCursor(0,0),e(n,i,a),o=!0),s=!b&&u.searchInput.value,r(u.searchBox,"ace_nomatch",s),!o&&b&&a(c)}(this.searchInput.value,{skipCurrent:e,backwards:n,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked},(function(e){var n=e.matches(!1,e.from());t.setSelection(n.from,n.to)}))},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var e=this.searchInput.value,n=this.searchInput.value;r(this.searchBox,"ace_nomatch",n),t.showMatchesOnScrollbar&&t.showMatchesOnScrollbar(e),this.hide()},this.replace=function(){var e=t.getOption("readOnly"),n=!!t.getSelection();!e&&n&&t.replaceSelection(this.replaceInput.value,"start"),g()},this.replaceAndFindNext=function(){t.getOption("readOnly")||(this.replace(),this.findNext())},this.replaceAll=function(){var e,n,r=this.searchInput.value,i=this.replaceInput.value,a=RegExp(r,this.caseSensitiveOption.checked?"g":"gi");this.wholeWordOption.checked&&!this.regExpOption.checked&&(a=this.caseSensitiveOption.checked?RegExp("\\b"+r+"\\b","g"):RegExp("\\b"+r+"\\b","gi")),!t.getOption("readOnly")&&t.getSelection()&&(n=t.getCursor(),e=(e=t.getValue()).replace(a,i),t.setValue(e),t.setCursor(n)),g()},this.toggleReplace=function(){var e=t.display.wrapper;"+"===e.parentElement.querySelector("[action=toggleReplace]").innerText?(e.parentElement.querySelector("[action=toggleReplace]").innerText="-",this.replaceBox.style.display="",this.isReplace=!0):(e.parentElement.querySelector("[action=toggleReplace]").innerText="+",this.replaceBox.style.display="none",this.isReplace=!1)},this.hide=function(){p(t);var n=t.getWrapperElement();e=null,n.removeChild(this.element),t.focus()},this.isVisible=function(){return""===this.element.style.display},this.show=function(t,e){this.element.style.display="",e||(this.replaceBox.style.display=e?"":"none"),this.isReplace=e,t&&(this.searchInput.value=t,this.find(!1,!1)),this.searchInput.focus(),this.searchInput.select()},this.isFocused=function(){var t=document.activeElement;return t===this.searchInput||t===this.replaceInput}}function r(t,e,n){t.classList[n?"add":"remove"](e)}t.defineOption("searchbox",!1,(function(r){r.addKeyMap({"Ctrl-F":function(){var t=r.display.wrapper;e&&t.parentElement.contains(e.searchBox)||(e=new n(r));var i=!1;t.parentElement.querySelector("[action=toggleReplace]")&&(i="-"===t.parentElement.querySelector("[action=toggleReplace]").innerText),e.show(r.getSelection(),i)},Esc:function(){if(!e||!e.isVisible())return t.Pass;e.hide(),"undefined"!=typeof event&&event.stopPropagation()},"Cmd-F":function(){e||(e=new n(r)),e.show()}})}))}(Ol)})),r((function(t,e){!function(t){function e(t,e){function n(t){clearTimeout(r.doRedraw),r.doRedraw=setTimeout((function(){r.redraw()}),t)}this.cm=t,this.options=e,this.buttonHeight=e.scrollButtonHeight||t.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=t.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();var r=this;t.on("refresh",this.resizeHandler=function(){clearTimeout(r.doUpdate),r.doUpdate=setTimeout((function(){r.computeScale()&&n(20)}),100)}),t.on("markerAdded",this.resizeHandler),t.on("markerCleared",this.resizeHandler),!1!==e.listenForChanges&&t.on("changes",this.changeHandler=function(){n(250)})}t.defineExtension("annotateScrollbar",(function(t){return"string"==typeof t&&(t={className:t}),new e(this,t)})),t.defineOption("scrollButtonHeight",0),e.prototype.computeScale=function(){var t=this.cm,e=(t.getWrapperElement().clientHeight-t.display.barHeight-2*this.buttonHeight)/t.getScrollerElement().scrollHeight;if(e!=this.hScale)return this.hScale=e,!0},e.prototype.update=function(t){this.annotations=t,this.redraw()},e.prototype.redraw=function(t){!1!==t&&this.computeScale();var e=this.cm,n=this.hScale,r=document.createDocumentFragment(),i=this.annotations,a=e.getOption("lineWrapping"),o=a&&1.5*e.defaultTextHeight(),s=null,c=null;function l(t,n){if(s!=t.line){s=t.line,c=e.getLineHandle(t.line);var r=e.getLineHandleVisualStart(c);r!=c&&(s=e.getLineNumber(r),c=r)}return c.widgets&&c.widgets.length||a&&c.height>o?e.charCoords(t,"local")[n?"top":"bottom"]:e.heightAtLine(c,"local")+(n?0:c.height)}var A=e.lastLine();if(e.display.barWidth)for(var u,h=0;h<i.length;h++){var f=i[h];if(!(f.to.line>A)){for(var d=u||l(f.from,!0)*n,p=l(f.to,!1)*n;h<i.length-1&&!(i[h+1].to.line>A)&&!((u=l(i[h+1].from,!0)*n)>p+.9);)p=l((f=i[++h]).to,!1)*n;if(p!=d){var g=Math.max(p-d,3),m=r.appendChild(document.createElement("div"));m.style.cssText="position: absolute; right: 0px; width: "+Math.max(e.display.barWidth-1,2)+"px; top: "+(d+this.buttonHeight)+"px; height: "+g+"px",m.className=this.options.className,f.id&&m.setAttribute("annotation-id",f.id)}}}this.div.textContent="",this.div.appendChild(r)},e.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("changes",this.changeHandler),this.div.parentNode.removeChild(this.div)}}(Ol)})),r((function(t,e){!function(t){function e(t,e,n,r){this.cm=t,this.options=r;var i={listenForChanges:!1};for(var a in r)i[a]=r[a];i.className||(i.className="CodeMirror-search-match"),this.annotation=t.annotateScrollbar(i),this.query=e,this.caseFold=n,this.gap={from:t.firstLine(),to:t.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var o=this;t.on("change",this.changeHandler=function(t,e){o.onChange(e)})}function n(t,e,n){return t<=e?t:Math.max(e,t+n)}t.defineExtension("showMatchesOnScrollbar",(function(t,n,r){return"string"==typeof r&&(r={className:r}),r||(r={}),new e(this,t,n,r)})),e.prototype.findMatches=function(){if(this.gap){for(var e=0;e<this.matches.length&&!((i=this.matches[e]).from.line>=this.gap.to);e++)i.to.line>=this.gap.from&&this.matches.splice(e--,1);for(var n=this.cm.getSearchCursor(this.query,t.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),r=this.options&&this.options.maxMatches||1e3;n.findNext();){var i;if((i={from:n.from(),to:n.to()}).from.line>=this.gap.to)break;if(this.matches.splice(e++,0,i),this.matches.length>r)break}this.gap=null}},e.prototype.onChange=function(e){var r=e.from.line,i=t.changeEnd(e).line,a=i-e.to.line;if(this.gap?(this.gap.from=Math.min(n(this.gap.from,r,a),e.from.line),this.gap.to=Math.max(n(this.gap.to,r,a),e.from.line)):this.gap={from:e.from.line,to:i+1},a)for(var o=0;o<this.matches.length;o++){var s=this.matches[o],c=n(s.from.line,r,a);c!=s.from.line&&(s.from=t.Pos(c,s.from.ch));var l=n(s.to.line,r,a);l!=s.to.line&&(s.to=t.Pos(l,s.to.ch))}clearTimeout(this.update);var A=this;this.update=setTimeout((function(){A.updateAfterChange()}),250)},e.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},e.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}}(Ol)}));Xt({target:"Array",stat:!0},{isArray:Kn});var Dl=P.Array.isArray,Ml=Dl,Rl=r((function(t){t.exports=function(t){if(Ml(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports}));n(Rl);var Ul=il,Pl=r((function(t){t.exports=function(t,e){var n=null==t?null:void 0!==pa&&Ul(t)||t["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(t);!(o=(r=n.next()).done)&&(a.push(r.value),!e||a.length!==e);o=!0);}catch(t){s=!0,i=t}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}},t.exports.__esModule=!0,t.exports.default=t.exports}));n(Pl);var Hl=Kr("slice"),Ql=bt("species"),Gl=l.Array,jl=Math.max;Xt({target:"Array",proto:!0,forced:!Hl},{slice:function(t,e){var n,r,i,a=R(this),o=Oe(a),s=Le(t,o),c=Le(void 0===e?o:e,o);if(Kn(a)&&(n=a.constructor,(we(n)&&(n===Gl||Kn(n.prototype))||U(n)&&null===(n=n[Ql]))&&(n=void 0),n===Gl||void 0===n))return Jt(a,s,c);for(r=new(void 0===n?Gl:n)(jl(c-s,0)),i=0;s<c;s++,i++)s in a&&yn(r,i,a[s]);return r.length=i,r}});var $l=Wr("Array").slice,Kl=Array.prototype,Yl=function(t){var e=t.slice;return t===Kl||G(Kl,t)&&e===Kl.slice?$l:e},zl=Yl,Wl=pl,Vl=r((function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.__esModule=!0,t.exports.default=t.exports}));n(Vl);var ql=r((function(t){t.exports=function(t,e){var n;if(t){if("string"==typeof t)return Vl(t,e);var r=zl(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Wl(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vl(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}));n(ql);var Xl=r((function(t){t.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.")},t.exports.__esModule=!0,t.exports.default=t.exports}));n(Xl);var Jl=n(r((function(t){t.exports=function(t,e){return Rl(t)||Pl(t,e)||ql(t,e)||Xl()},t.exports.__esModule=!0,t.exports.default=t.exports}))),Zl=kc,tA=ia,eA=Yl,nA=Yc.trim,rA=l.parseInt,iA=l.Symbol,aA=iA&&iA.iterator,oA=/^[+-]?0x/i,sA=b(oA.exec),cA=8!==rA(Hc+"08")||22!==rA(Hc+"0x16")||aA&&!A((function(){rA(Object(aA))}))?function(t,e){var n=nA(pn(t));return rA(n,e>>>0||(sA(oA,n)?16:10))}:rA;Xt({global:!0,forced:parseInt!=cA},{parseInt:cA});var lA=P.parseInt,AA={run:function(t){var e,n="<div>".concat(t,"</div>");this.tagParser.formatEngine=this.mdFormatEngine,n=n.replace(/<!--[\s\S]*?-->/g,"");var r=this.htmlParser.parseHtml(n);return r=this.paragraphStyleClear(r),Xc(e=this.$dealHtml(r).replace(/\n{3,}/g,"\n\n\n").replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&")).call(e,"\n")},$dealHtml:function(t){for(var e="",n=0;n<t.length;n++){var r=t[n];"tag"===r.type?e=this.$handleTagObject(r,e):"text"===r.type&&r.content.length>0&&(e+=r.content.replace(/&nbsp;/g," ").replace(/[\n]+/g,"\n").replace(/^[ \t\n]+\n\s*$/,"\n"))}return e},$handleTagObject:function(t,e){var n,r=e;t.attrs.class&&/(ch-icon-square|ch-icon-check)/.test(t.attrs.class)?Zl(n=t.attrs.class).call(n,"ch-icon-check")>=0?r+="[x]":r+="[ ]":t.attrs.class&&/cherry-code-preview-lang-select/.test(t.attrs.class)?r+="":r+=this.$dealTag(t);return r},$dealTag:function(t){var e="";return t.children&&(e=this.$dealHtml(t.children)),"style"===t.name?"":"code"===t.name||"pre"===t.name?this.tagParser.codeParser(t,this.$dealCodeTag(t),"pre"===t.name):"function"==typeof this.tagParser["".concat(t.name,"Parser")]?this.tagParser["".concat(t.name,"Parser")](t,e):e},$dealCodeTag:function(t){if(t.children.length<0)return"";for(var e="",n=0;n<t.children.length;n++){var r=t.children[n];"text"!==r.type?("li"===r.name&&(e+="\n"),"br"===r.name&&(e+="\n"),e+=this.$dealCodeTag(r)):e+=r.content}return e},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:tA?tA(null):{},parseTags:function(t){var e,n=this,r=0,i={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return t.replace(this.attrRE,(function(a){r%2?e=a:0===r?((n.lookup[a]||"/"===t.charAt(t.length-2))&&(i.voidElement=!0),i.name=a):i.attrs[e]=a.replace(/['"]/g,""),r+=1})),i},parseHtml:function(t,e){var n=this,r=e||{};r.components||(r.components=this.empty);var i,a=[],o=-1,s=[],c={},l=!1;return t.replace(this.tagRE,(function(e,A){if(l){if(e!=="</".concat(i.name,">"))return;l=!1}var u,h="/"!==e.charAt(1),f=A+e.length,d=t.charAt(f);h&&(o+=1,"tag"===(i=n.parseTags(e)).type&&r.components[i.name]&&(i.type="component",l=!0),i.voidElement||l||!d||"<"===d||i.children.push({type:"text",content:eA(t).call(t,f,Zl(t).call(t,"<",f))}),c[i.tagName]=i,0===o&&a.push(i),(u=s[o-1])&&u.children.push(i),s[o]=i),h&&!i.voidElement||(o-=1,!l&&"<"!==d&&d&&s[o]&&s[o].children.push({type:"text",content:eA(t).call(t,f,Zl(t).call(t,"<",f))}))})),a}},tagParser:{formatEngine:{},pParser:function(t,e){var n=e;return/\n$/.test(n)?n:"".concat(n,"\n")},divParser:function(t,e){var n=e;return/\n$/.test(n)?n:"".concat(n,"\n")},spanParser:function(t,e){var n=e.replace(/\t/g,"").replace(/\n/g," ");return t.attrs&&t.attrs.style,n},codeParser:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.formatEngine.convertCode(e,n)},brParser:function(t,e){return this.formatEngine.convertBr(e,"\n")},imgParser:function(t,e){return t.attrs&&"tapd-graph"===t.attrs["data-control"]?this.formatEngine.convertGraph(t.attrs.title,t.attrs.src,t.attrs["data-origin-xml"],t):t.attrs&&t.attrs.src?this.formatEngine.convertImg(t.attrs.alt,t.attrs.src):void 0},videoParser:function(t,e){if(t.attrs&&t.attrs.src)return this.formatEngine.convertVideo(e,t.attrs.src,t.attrs.poster,t.attrs.title)},bParser:function(t,e){for(var n=e.split("\n"),r=[],i=0;i<n.length;i++)r.push(this.formatEngine.convertB(n[i]));return r.join("\n")},iParser:function(t,e){for(var n=e.split("\n"),r=[],i=0;i<n.length;i++)r.push(this.formatEngine.convertI(n[i]));return r.join("\n")},strikeParser:function(t,e){for(var n=e.split("\n"),r=[],i=0;i<n.length;i++)r.push(this.formatEngine.convertStrike(n[i]));return r.join("\n")},delParser:function(t,e){for(var n=e.split("\n"),r=[],i=0;i<n.length;i++)r.push(this.formatEngine.convertDel(n[i]));return r.join("\n")},uParser:function(t,e){for(var n=e.split("\n"),r=[],i=0;i<n.length;i++)r.push(this.formatEngine.convertU(n[i]));return r.join("\n")},aParser:function(t,e){return t.attrs&&t.attrs.href?this.formatEngine.convertA(e,t.attrs.href):""},supParser:function(t,e){return this.formatEngine.convertSup(e)},subParser:function(t,e){return this.formatEngine.convertSub(e)},tdParser:function(t,e){return this.formatEngine.convertTd(e)},trParser:function(t,e){return this.formatEngine.convertTr(e)},thParser:function(t,e){return this.formatEngine.convertTh(e)},theadParser:function(t,e){return this.formatEngine.convertThead(e)},tableParser:function(t,e){return this.formatEngine.convertTable(e)},liParser:function(t,e){return this.formatEngine.convertLi(e)},ulParser:function(t,e){return this.formatEngine.convertUl(e)},olParser:function(t,e){return this.formatEngine.convertOl(e)},strongParser:function(t,e){return this.formatEngine.convertStrong(e)},hrParser:function(t,e){return this.formatEngine.convertHr(e)},h1Parser:function(t,e){return this.formatEngine.convertH1(e)},h2Parser:function(t,e){return this.formatEngine.convertH2(e)},h3Parser:function(t,e){return this.formatEngine.convertH3(e)},h4Parser:function(t,e){return this.formatEngine.convertH4(e)},h5Parser:function(t,e){return this.formatEngine.convertH5(e)},h6Parser:function(t,e){return this.formatEngine.convertH6(e)},blockquoteParser:function(t,e){return this.formatEngine.convertBlockquote(e.replace(/\n+/g,"\n"))},addressParser:function(t,e){return this.formatEngine.convertAddress(e.replace(/\n+/g,"\n"))},styleParser:{colorAttrParser:function(t){var e=t.match(/color:\s*(#[a-zA-Z0-9]{3,6});/);return e&&e[1]?e[1]:""},sizeAttrParser:function(t){var e=t.match(/font-size:\s*([a-zA-Z0-9-]+?);/);if(e&&e[1]){var n,r=0;if(/[0-9]+px/.test(e[1]))r=Xc(n=e[1].replace(/px/,"")).call(n);else switch(e[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(t){var e=t.match(/background-color:\s*([^;]+?);/);if(e&&e[1]){var n="";if(/rgb\([ 0-9]+,[ 0-9]+,[ 0-9]+\)/.test(e[1])){var r,i,a,o,s,c=e[1].match(/rgb\(([ 0-9]+),([ 0-9]+),([ 0-9]+)\)/);if(c[1]&&c[2]&&c[3])c[1]=lA(Xc(r=c[1]).call(r),10),c[2]=lA(Xc(i=c[2]).call(i),10),c[3]=lA(Xc(a=c[3]).call(a),10),n=Da(o=Da(s="#".concat(c[1].toString(16))).call(s,c[2].toString(16))).call(o,c[3].toString(16))}else{n=Jl(e,2)[1]}return n}return""}}},mdFormatEngine:{convertColor:function(t,e){var n,r=Xc(t).call(t);return!r||/\n/.test(r)?r:e?Da(n="!!".concat(e," ")).call(n,r,"!!"):r},convertSize:function(t,e){var n,r=Xc(t).call(t);return!r||/\n/.test(r)?r:e?Da(n="!".concat(e," ")).call(n,r,"!"):r},convertBgColor:function(t,e){var n,r=Xc(t).call(t);return!r||/\n/.test(r)?r:e?Da(n="!!!".concat(e," ")).call(n,r,"!!!"):r},convertBr:function(t,e){return t+e},convertCode:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return/\n/.test(t)||e?"```\n".concat(t.replace(/\n+$/,""),"\n```"):"`".concat(t.replace(/`/g,"\\`"),"`")},convertB:function(t){return/^\s*$/.test(t)?"":"**".concat(t,"**")},convertI:function(t){return/^\s*$/.test(t)?"":"*".concat(t,"*")},convertU:function(t){return/^\s*$/.test(t)?"":" /".concat(t,"/ ")},convertImg:function(t,e){var n,r=t&&t.length>0?t:"image";return Da(n="![".concat(r,"](")).call(n,e,")")},convertGraph:function(t,e,n,r){var i,a,o,s=t&&t.length>0?t:"graph",c="";if(r)try{var l,A=r.attrs;ji(l=fn(A)).call(l,(function(t){var e;Object.prototype.hasOwnProperty.call(A,t)&&(Zl(t).call(t,"data-graph-")>=0&&A[t]&&(c+=Da(e=" ".concat(t,"=")).call(e,A[t])))}))}catch(t){}return Da(i=Da(a=Da(o="![".concat(s,"](")).call(o,e,"){data-control=tapd-graph data-origin-xml=")).call(a,n)).call(i,c,"}")},convertVideo:function(t,e,n,r){var i,a,o=r&&r.length>0?r:"video";return Da(i=Da(a="!video[".concat(o,"](")).call(a,e,"){poster=")).call(i,n,"}")},convertA:function(t,e){var n;if(t===e)return"".concat(t," ");var r=Xc(t).call(t);return r?Da(n="[".concat(r,"](")).call(n,e,")"):r},convertSup:function(t){return"^".concat(Xc(t).call(t).replace(/\^/g,"\\^"),"^")},convertSub:function(t){return"^^".concat(Xc(t).call(t).replace(/\^\^/g,"\\^\\^"),"^^")},convertTd:function(t){return"~|".concat(Xc(t).call(t).replace(/\n{1,}/g,"<br>")," ~|")},convertTh:function(t){return"~|".concat(Xc(t).call(t).replace(/\n{1,}/g,"<br>")," ~|")},convertTr:function(t){return"".concat(t.replace(/\n/g,""),"\n")},convertThead:function(t){return"".concat(t.replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"|:--|\n")},convertTable:function(t){var e="\n".concat(t.replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"\n").replace(/\n{2,}/g,"\n");return/\|:--\|/.test(e)?e:"\n| |\n|:--|".concat(e)},convertLi:function(t){return"- ".concat(t.replace(/^\n/,"").replace(/\n+$/,"").replace(/\n+/g,"\n\t"),"\n")},convertUl:function(t){return"".concat(t,"\n")},convertOl:function(t){for(var e=t.split("\n"),n=1,r=0;r<e.length;r++)/^- /.test(e[r])&&(e[r]=e[r].replace(/^- /,"".concat(n,". ")),n+=1);var i=e.join("\n");return"".concat(i,"\n")},convertStrong:function(t){return/^\s*$/.test(t)?"":"**".concat(t,"**")},convertStrike:function(t){return/^\s*$/.test(t)?"":"~~".concat(t,"~~")},convertDel:function(t){return/^\s*$/.test(t)?"":"~~".concat(t,"~~")},convertHr:function(t){return/^\s*$/.test(t)?"\n\n----\n":"\n\n----\n".concat(t)},convertH1:function(t){return"# ".concat(Xc(t).call(t).replace(/\n+$/,""),"\n\n")},convertH2:function(t){return"## ".concat(Xc(t).call(t).replace(/\n+$/,""),"\n\n")},convertH3:function(t){return"### ".concat(Xc(t).call(t).replace(/\n+$/,""),"\n\n")},convertH4:function(t){return"#### ".concat(Xc(t).call(t).replace(/\n+$/,""),"\n\n")},convertH5:function(t){return"##### ".concat(Xc(t).call(t).replace(/\n+$/,""),"\n\n")},convertH6:function(t){return"###### ".concat(Xc(t).call(t).replace(/\n+$/,""),"\n\n")},convertBlockquote:function(t){return">".concat(Xc(t).call(t),"\n\n")},convertAddress:function(t){return">".concat(Xc(t).call(t),"\n\n")}},paragraphStyleClear:function(t){for(var e=0;e<t[0].children.length;e++){for(var n=[t[0].children[e]],r=[];n.length;){var i=n.shift(),a=this.notEmptyTagCount(i);if(1===a)r.push(i);else if(a>1)for(var o=0;o<i.children.length;o++)n.push(i.children[o]);else 1===r.length&&this.clearChildColorAttrs(r.pop()),r=[]}1===r.length&&this.clearChildColorAttrs(r.pop())}return t},notEmptyTagCount:function(t){if(!t||t.voidElement||"tag"===t.type&&!t.children.length||"text"===t.type&&!t.content.replace(/(\r|\n|\s)+/g,""))return 0;if(t.children&&t.children.length){for(var e=0,n=0;n<t.children.length;n++)e+=this.notEmptyTagCount(t.children[n]);return e}return 1},clearChildColorAttrs:function(t){var e=this;this.forEachHtmlParsedItems(t,(function(t){e.clearSelfNodeColorAttrs(t)}))},clearSelfNodeColorAttrs:function(t){if(t.attrs&&t.attrs.style){for(var e=t.attrs.style.split(";"),n=[],r=0;r<e.length;r++){var i;e[r]&&-1===Zl(i=e[r]).call(i,"color")&&n.push(e[r])}n.length?t.attrs.style="".concat(n.join(";"),";"):delete t.attrs.style}},forEachHtmlParsedItems:function(t,e){if(t&&(e(t),t.children&&t.children.length))for(var n=0;n<t.children.length;n++)this.forEachHtmlParsedItems(t.children[n],e)}},uA=Uc,hA=n(r((function(t){function e(){return t.exports=e=uA||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},t.exports.__esModule=!0,t.exports.default=t.exports,e.apply(this,arguments)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}))),fA=Yc.trim,dA=b("".charAt),pA=l.parseFloat,gA=l.Symbol,mA=gA&&gA.iterator,yA=1/pA(Hc+"-0")!=-1/0||mA&&!A((function(){pA(Object(mA))}))?function(t){var e=fA(pn(t)),n=pA(e);return 0===n&&"-"==dA(e,0)?-0:n}:pA;Xt({global:!0,forced:parseFloat!=yA},{parseFloat:yA});var vA=P.parseFloat;function bA(t,e){var n=vA(t),r=vA(e);return r>=0?n:n>=0?n+r:Math.min(n,r)}function _A(t){var e=t.previousElementSibling,n=t.nextElementSibling;if(!e){var r=getComputedStyle(t),i=t.getBoundingClientRect();if(!n)return{height:Math.max(vA(r.marginTop)+i.height+vA(r.marginBottom),0),offsetTop:t.offsetTop-Math.abs(vA(r.marginTop))};var a=getComputedStyle(n),o=bA(r.marginBottom,a.marginTop);return{height:Math.max(vA(r.marginTop)+i.height+o,0),offsetTop:t.offsetTop-Math.abs(vA(r.marginTop))}}var s,c,l,A,u=getComputedStyle(t),h=t.getBoundingClientRect(),f=getComputedStyle(e),d=(s=f.marginBottom,c=u.marginTop,l=vA(s),(A=vA(c))<0?0:l>=0?Math.max(A-l,0):A);if(!n)return{height:Math.max(d+h.height+vA(u.marginBottom),0),offsetTop:t.offsetTop-Math.abs(vA(u.marginTop))};var p=getComputedStyle(n),g=bA(u.marginBottom,p.marginTop);return{height:Math.max(d+h.height+g,0),offsetTop:t.offsetTop-Math.abs(d)}}function wA(t,e){if(!t||!t.tagName)return"";var n,r,i=document.createElement("div");return i.appendChild(t.cloneNode(!1)),n=i.innerHTML,e&&(r=Zl(n).call(n,">")+1,n=n.substring(0,r)+t.innerHTML+n.substring(r)),i=null,n}function EA(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=document.createElement(t);(i.className=n,void 0!==r)&&ji(e=fn(r)).call(e,(function(t){var e=r[t];if(kl(t).call(t,"data-")){var n=t.replace(/^data-/,"");i.dataset[n]=e}else i.setAttribute(t,e)}));return i}var CA={showSwitchBtnAfterPasteHtml:function(t,e,n,r,i){Xc(r).call(r)!==Xc(i).call(i)&&(this.init(t,e,n,r,i),this.setSelection(),this.bindListener(),this.initBubble(),this.showBubble(),"text"===this.getTypeFromLocalStorage()&&this.switchTextClick())},init:function(t,e,n,r,i){this.$cherry=t,this.html=r,this.md=i,this.codemirror=n,this.currentCursor=e,this.locale=t.locale},getTypeFromLocalStorage:function(){return"undefined"==typeof localStorage?"md":localStorage.getItem("cherry-paste-type")||"md"},setTypeToLocalStorage:function(t){"undefined"!=typeof localStorage&&localStorage.setItem("cherry-paste-type",t)},setSelection:function(){var t=this.codemirror.getCursor(),e=hA({},t),n=this.currentCursor;this.codemirror.setSelection(n,e)},bindListener:function(){var t=this;if(this.hasBindListener)return!0;this.hasBindListener=!0,this.codemirror.on("beforeSelectionChange",(function(e,n){t.hideBubble()})),this.codemirror.on("beforeChange",(function(e,n){t.hideBubble()})),this.codemirror.on("scroll",(function(e){t.updatePositionWhenScroll()}))},isHidden:function(){return"none"===this.bubbleDom.style.display},toggleBubbleDisplay:function(){this.isHidden()?this.bubbleDom.style.display="":this.bubbleDom.style.display="none"},hideBubble:function(){if(this.noHide)return!0;this.isHidden()||this.toggleBubbleDisplay()},updatePositionWhenScroll:function(){if(!this.isHidden()){var t=this.bubbleDom.dataset.scrollTop-this.getScrollTop();this.bubbleDom.style.marginTop="".concat(t,"px")}},getScrollTop:function(){return this.codemirror.getScrollInfo().top},showBubble:function(){var t=this.getLastSelectedPosition().top;this.isHidden()&&(this.toggleBubbleDisplay(),this.bubbleDom.style.marginTop="0",this.bubbleDom.dataset.scrollTop=this.getScrollTop()),t>this.codemirror.getWrapperElement().clientHeight-this.bubbleDom.getBoundingClientRect().height-15?(this.bubbleDom.style.top="",this.bubbleDom.style.bottom="".concat(15,"px")):(this.bubbleDom.style.top="".concat(t,"px"),this.bubbleDom.style.bottom="")},initBubble:function(){var t,e;if(this.bubbleDom)return this.bubbleDom.setAttribute("data-type","md"),!0;var n=EA("div","cherry-bubble cherry-bubble--centered cherry-switch-paste");n.style.display="none";var r=EA("span","cherry-toolbar-button cherry-text-btn",{title:this.locale.pastePlain});r.innerText="TEXT";var i=EA("span","cherry-toolbar-button cherry-md-btn",{title:this.locale.pasteMarkdown});i.innerText="Markdown";var a=EA("span","switch-btn--bg");this.bubbleDom=n,this.switchText=r,this.switchMd=i,this.switchBG=a,this.bubbleDom.appendChild(r),this.bubbleDom.appendChild(i),this.bubbleDom.appendChild(a),this.bubbleDom.setAttribute("data-type","md"),this.codemirror.getWrapperElement().appendChild(this.bubbleDom),this.switchMd.addEventListener("click",Pa(t=this.switchMDClick).call(t,this)),this.switchText.addEventListener("click",Pa(e=this.switchTextClick).call(e,this))},switchMDClick:function(t){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(t){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 t=gl(this.codemirror.getWrapperElement().getElementsByClassName("CodeMirror-selected")),e=0,n=0;if(t.length<=0)return this.hideBubble(),{};for(var r=0;r<t.length;r++){var i=t[r].getBoundingClientRect(),a=i.left+i.width/2,o=i.top+i.height;o>n&&a>=e&&(n=o),a>e&&(e=a)}return{top:n}}};function xA(t,e,n,r){return t.addEventListener?(t.addEventListener(e,n,r),!0):t.attachEvent?t.attachEvent("on".concat(e),n):void(t["on".concat(e)]=n)}function BA(t,e,n,r){if(t.removeEventListener)t.removeEventListener(e,n,r);else{if(t.detachEvent)return t.detachEvent("on".concat(e),n);t["on".concat(e)]=null}}var TA=new Proxy({},{get:function(t,e,n){return function(){}}});var kA=new(function(){function t(){Ji(this,t),Fa(this,"Events",{previewerClose:"previewer:close",previewerOpen:"previewer:open",editorClose:"editor:close",editorOpen:"editor:open",toolbarHide:"toolbar:hide",toolbarShow:"toolbar:show",cleanAllSubMenus:"cleanAllSubMenus"}),Fa(this,"emitter",function(t){return{all:t=t||new Map,on:function(e,n){var r=t.get(e);r?r.push(n):t.set(e,[n])},off:function(e,n){var r=t.get(e);r&&(n?r.splice(r.indexOf(n)>>>0,1):t.set(e,[]))},emit:function(e,n){var r=t.get(e);r&&r.slice().map((function(t){t(n)})),(r=t.get("*"))&&r.slice().map((function(t){t(e,n)}))}}}())}return ta(t,[{key:"on",value:function(t,e,n){var r;this.emitter.on(Da(r="".concat(t,":")).call(r,e),n)}},{key:"emit",value:function(t,e){var n;this.emitter.emit(Da(n="".concat(t,":")).call(n,e))}}]),t}());function SA(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"image",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"*",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=document.createElement("input");i.type="file",i.id="fileUpload",i.value="",i.style.display="none",i.accept=n,i.addEventListener("change",(function(n){var i=Jl(n.target.files,1)[0];t.options.fileUpload(i,(function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof n&&n){if(r)return r(i.name,n,a);var o,s="";if("image"===e)s=Da(o="![".concat(i.name,"](")).call(o,n,")");else if("video"===e){var c;s=Da(c="!video[".concat(i.name,"](")).call(c,n,")")}else if("audio"===e){var l;s=Da(l="!audio[".concat(i.name,"](")).call(l,n,")")}else{var A;s=Da(A="[".concat(i.name,"](")).call(A,n,")")}t.editor.doc.replaceSelection(s)}}))})),i.click()}function IA(t){var e=[];return t.isBorder&&e.push("#B"),t.isShadow&&e.push("#S"),t.isRadius&&e.push("#R"),t.width&&e.push("#".concat(t.width)),t.height&&(t.width||e.push("#auto"),e.push("#".concat(t.height))),e.join(" ")}function LA(t,e,n){var r=t.begin+t.content+t.end;return n&&(r=r.replace(/\[\\h\]/g,NA).replace(/\\h/g,NA)),new RegExp(r,e||"g")}function FA(){try{return new RegExp("(?<=.)"),!0}catch(t){}return!1}var NA="[ \\t\\u00a0]",OA="[\\u0021-\\u002F\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e]",DA="[\\u0021-\\u002F\\u003a-\\u0040\\u005b\\u005d\\u005e\\u0060\\u007b-\\u007e \\t\\n“”¥。—《》【】「」·]",MA=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("")),RA=new RegExp("^".concat(MA.source,"$")),UA=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"\\(\\)]*)?'),PA=new RegExp("(?:\\/\\/)".concat(UA.source)),HA=new RegExp("^".concat(UA.source,"$")),QA=new RegExp("^".concat(PA.source,"$"));function GA(){var t,e=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=LA(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=LA(r,"g",!0),!1===e)return{strict:n,loose:r};var i=Da(t="(?:".concat(n.begin+n.content+n.end,"|")).call(t,r.begin+r.content+r.end,")");return LA({begin:"",content:i,end:""},"g",!0)}function jA(){var t={begin:/(?:^|\n)(\n*((?:>[\t ]*)*)(?:[^\S\n]*))(`{3,})([^`]*?)\n/,content:/([\w\W]*?)/,end:/[^\S\n]*\3[ \t]*(?=$|\n+)/};return t.reg=new RegExp(t.begin.source+t.content.source+t.end.source,"g"),t}function $A(t,e){var n=t||"Item 1\n Item 1.1\nItem 2";n=n.replace(/^\n+/,"").replace(/\n+$/,"");var r="1.";switch(e){case"ol":r="1.";break;case"ul":r="-";break;case"checklist":r="- [x]"}if(n=n.replace(/^(\s*)([0-9a-zA-Z]+\.|- \[x\]|- \[ \]|-) /gm,"$1"),"1."===r){var i={};n=n.replace(/^(\s*)(\S[\s\S]*?)$/gm,(function(t,e,n){var r,a,o,s=(null===(r=e.match(/[ \t]/g))||void 0===r?void 0:r.length)||0;return i[s]=i[s]?i[s]+1:1,Da(a=Da(o="".concat(e)).call(o,i[s],". ")).call(a,n)}))}else n=n.replace(/^(\s*)(\S[\s\S]*?)$/gm,"$1".concat(r," $2"));return n}function KA(){var t={begin:/(?:^|\n)(\n*(?:[^\S\n]*)):::([^:][^\n]+?)\s*\n/,content:/([\w\W]*?)/,end:/\n[ \t]*:::[ \t]*(?=$|\n+)/};return t.reg=new RegExp(t.begin.source+t.content.source+t.end.source,"g"),t}function YA(){var t={begin:/(?:^|\n)(\n*(?:[^\S\n]*))\+\+\+([-]{0,1})\s+([^\n]+)\n/,content:/([\w\W]+?)/,end:/\n[ \t]*\+\+\+[ \t]*(?=$|\n+)/};return t.reg=new RegExp(t.begin.source+t.content.source+t.end.source,"g"),t}var zA=/(!\[[^\n]*?\]\(data:image\/png;base64,)([^)]+)\)/g,WA=/(!\[[^\n]*?\]\([^)]+\)\{[^}]* data-xml=)([^}]+)\}/g,VA=/(!\[[^\n]*?\]\(data:image\/png;base64,[^)]+\)\{data-type=drawio data-xml=[^}]+\})/g;function qA(t){(function(t){var e=/^(\s*)([I一二三四五六七八九十]+)\.(\s+)/,n=/^(\s*)([I一二三四五六七八九十]+)\.(\s+)$/;if(t.getOption("disableInput"))return!1;for(var r=t.listSelections(),i=[],a=0;a<r.length;a++){var o=r[a].head,s=t.getLine(o.line),c=e.exec(s),l=/^\s*$/.test(eA(s).call(s,0,o.ch));if(!r[a].empty()||l||!c)return;if(n.test(s))t.replaceRange("",{line:o.line,ch:0},{line:o.line,ch:o.ch+1}),i[a]="\n";else{var A,u=c[1],h=c[3];i[a]=Da(A="\n".concat(u,"I.")).call(A,h)}}return t.replaceSelections(i),!0})(t)||t.execCommand("newlineAndIndentContinueMarkdownList")}var XA=["codemirror"],JA=function(){function t(e){var n=this;Ji(this,t),Fa(this,"dealBigData",(function(){n.noChange?n.noChange=!1:(n.formatBigData2Mark(zA,"cm-url base64"),n.formatBigData2Mark(WA,"cm-url drawio"))})),Fa(this,"formatBigData2Mark",(function(t,e){for(var r=n.editor,i=r.getSearchCursor(t),a=i.findNext();!1!==a;a=i.findNext()){var o,s,c=i.from();if(c){var l=null!==(o=a[2])&&void 0!==o?o:"",A=c.ch+(null===(s=a[1])||void 0===s?void 0:s.length),u=A+l.length,h=c.line,f={line:h,ch:A},d={line:h,ch:u};if(!(r.findMarks(f,d).length>0)){var p=EA("span","cm-string ".concat(e),{title:l});p.textContent=l,n.noChange=!0,r.markText(f,d,{replacedWith:p,atomic:!0})}}}})),Fa(this,"onKeyup",(function(t,e){var r=e.getCursor().line;n.previewer.highlightLine(r+1)})),Fa(this,"onScroll",(function(t){if(kA.emit(n.instanceId,kA.Events.cleanAllSubMenus),n.disableScrollListener)n.disableScrollListener=!1;else{var e=t.getScrollerElement();if(e.scrollTop<=0)n.previewer.scrollToLineNum(0);else if(e.scrollTop+e.clientHeight>=e.scrollHeight-20)n.previewer.scrollToLineNum(null);else{var r=t.getScrollInfo().top,i=t.lineAtHeight(r,"local"),a=t.charCoords({line:i,ch:0},"local"),o=t.getLineHandle(i).height,s=100*(r-(a.bottom-o))/o/100;n.previewer.scrollToLineNum(i+1,s)}}})),Fa(this,"onMouseDown",(function(t,e){kA.emit(n.instanceId,kA.Events.cleanAllSubMenus);var r=t.getCursor().line,i=Math.abs(e.y-t.getWrapperElement().getBoundingClientRect().y);n.previewer.scrollToLineNumWithOffset(r+1,i)})),Fa(this,"onCursorActivity",(function(){n.refreshWritingStatus()})),this.options={id:"code",name:"code",autoSave2Textarea:!1,editorDom:document.createElement("div"),wrapperDom:null,autoScrollByCursor:!0,convertWhenPaste:!0,codemirror:{lineNumbers:!1,cursorHeight:.85,indentUnit:4,tabSize:4,mode:"gfm",lineWrapping:!0,indentWithTabs:!0,autofocus:!0,theme:"default",autoCloseTags:!0,extraKeys:{Enter:qA},matchTags:{bothTags:!0},placeholder:"",keyMap:"sublime"},toolbars:{},onKeydown:function(){},onChange:function(){},onFocus:function(){},onBlur:function(){},onPaste:this.onPaste,onScroll:this.onScroll},this.animation={};var r=e.codemirror,i=Fc(e,XA);r&&Pc(this.options.codemirror,r),Pc(this.options,i),this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.getInstanceId()}return ta(t,[{key:"onPaste",value:function(t,e){var n=t.clipboardData;n?this.handlePaste(t,n,e):(n=window.clipboardData,this.handlePaste(t,n,e))}},{key:"handlePaste",value:function(t,e,n){for(var r,i=e.items,a=e.types||[],o=n.getDoc(),s=0;s<a.length;s++){var c=i[s];if(c&&"file"===c.kind&&c.type.match(/^image\//i)){var l=c.getAsFile();this.options.fileUpload(l,(function(t){"string"==typeof t&&o.replaceSelection("![enter image description here](".concat(t,")"))})),t.preventDefault()}}var A=e.getData("text/plain"),u=e.getData("Text/Html");if(!u||!this.options.convertWhenPaste)return!0;var h=u.replace(/<(html|head|body|!)/g,"");if((null===(r=h.match(/<[a-zA-Z]/g))||void 0===r?void 0:r.length)<=1&&/<img/.test(h))return!0;var f=document.createElement("DIV");f.innerHTML=u,u=f.innerHTML;var d=AA.run(u);if("string"==typeof d&&Xc(d).call(d).length>0){var p=n.listSelections();if(n.getSelections().length<=1&&p[0]&&p[0].anchor){var g={};g.line=p[0].anchor.line,g.ch=p[0].anchor.ch,o.replaceSelection(d),CA.showSwitchBtnAfterPasteHtml(this.$cherry,g,n,A,d)}else o.replaceSelection(d);t.preventDefault()}f=null}},{key:"init",value:function(t){var e=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=Ol.fromTextArea(n,this.options.codemirror);r.addOverlay({name:"invisibles",token:function(t){var e,n=0,r=" "===t.peek();if(r){for(;r&&n<Number.MAX_VALUE;)n+=1,t.next(),r=" "===t.peek();e="whitespace whitespace-".concat(n)}else{for(;!t.eol();)t.next();e=""}return e}}),this.previewer=t,this.disableScrollListener=!1,this.options.value&&r.setOption("value",this.options.value),r.on("blur",(function(t,n){e.options.onBlur(n,t)})),r.on("focus",(function(t,n){e.options.onFocus(n,t)})),r.on("change",(function(t,n){e.options.onChange(n,t),e.dealBigData(),e.options.autoSave2Textarea&&t.save()})),r.on("keydown",(function(t,n){e.options.onKeydown(n,t)})),r.on("keyup",(function(t,n){e.onKeyup(n,t)})),r.on("paste",(function(t,n){e.options.onPaste.call(e,n,t)})),this.options.autoScrollByCursor&&r.on("mousedown",(function(t,n){Wa((function(){e.onMouseDown(t,n)}))})),r.on("drop",(function(t,n){var r=n.dataTransfer.files||[];r&&r.length>0&&Wa((function(){for(var n=function(n,i){var o=r[n],s=o.type||"";if(""===s||/^text/i.test(s))return a=i,"continue";e.options.fileUpload(o,(function(e){var n,r,s,c,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e){t.setSelection(t.getCursor());var A=l.name?l.name:o.name,u="",h="";/video/i.test(o.type)&&(u="!video",h=l.poster?"{poster=".concat(l.poster,"}"):""),/audio/i.test(o.type)&&(u="!audio"),/image/i.test(o.type)&&(u="!");var f=u?IA(l):"";u=i?"\n".concat(u):u;var d=Da(n=Da(r=Da(s=Da(c="".concat(u,"[")).call(c,A)).call(s,f,"](")).call(r,e,")")).call(n,h);i=!0,t.replaceSelection(d)}else a=i})),a=i},i=0,a=!1;i<r.length;i++)n(i,a)}),50)})),r.on("scroll",(function(t){e.options.onScroll(t),"focus"===e.options.writingStyle&&e.refreshWritingStatus()})),r.on("cursorActivity",(function(){e.onCursorActivity()})),xA(this.getEditorDom(),"wheel",(function(){e.disableScrollListener=!1,cancelAnimationFrame(e.animation.timer),e.animation.timer=0}),!1),this.editor=r,"normal"!==this.options.writingStyle&&this.initWritingStyle()}},{key:"jumpToLine",value:function(t,e,n){var r=this;if(null===t)return cancelAnimationFrame(this.animation.timer),this.disableScrollListener=!0,this.editor.scrollIntoView({line:this.editor.lineCount()-1,ch:1}),void(this.animation.timer=0);var i=this.editor.charCoords({line:t,ch:0},"local"),a=i.top;if(a+=(this.editor.charCoords({line:t+e,ch:0},"local").top-i.top)*n,this.animation.destinationTop=Math.ceil(a-15),!this.animation.timer){this.animation.timer=requestAnimationFrame((function t(){var e=r.editor.getScrollInfo().top,n=r.animation.destinationTop-e,i=Math.ceil(Math.min(Math.abs(n),Math.max(1,Math.abs(n)/(100/16.7))));if(n>0){if(e>=r.animation.destinationTop)return void(r.animation.timer=0);r.disableScrollListener=!0,r.editor.scrollTo(null,e+i)}else{if(!(n<0))return void(r.animation.timer=0);if(e<=r.animation.destinationTop||e<=0)return void(r.animation.timer=0);r.disableScrollListener=!0,r.editor.scrollTo(null,e-i)}e===r.editor.getScrollInfo().top||i>=Math.abs(n)?r.animation.timer=0:r.animation.timer=requestAnimationFrame(t)}))}}},{key:"scrollToLineNum",value:function(t,e,n){if(null!==t){var r=Math.max(0,t);this.jumpToLine(r,e,n),TA.log("滚动预览区域左侧应scroll to ",r)}else this.jumpToLine(null)}},{key:"getEditorDom",value:function(){return this.options.editorDom}},{key:"addListener",value:function(t,e){this.editor.on(t,e)}},{key:"initWritingStyle",value:function(){var t,e,n=this.options.writingStyle,r="cherry-editor-writing-style--".concat(n),i=this.getEditorDom();ji(t=Xr(e=gl(i.classList)).call(e,(function(t){return kl(t).call(t,"cherry-editor-writing-style--")}))).call(t,(function(t){return i.classList.remove(t)})),"normal"!==n&&(i.classList.add(r),this.refreshWritingStatus())}},{key:"refreshWritingStatus",value:function(){var t,e,n=this.options.writingStyle,r="cherry-editor-writing-style--".concat(n),i=document.querySelector("#cherry-editor-writing-style")||document.createElement("style");i.id="cherry-editor-writing-style",Nl(t=gl(document.head.childNodes)).call(t,(function(t){return t===i}))||document.head.appendChild(i);var a=i.sheet;if(ji(e=gl(Array(a.cssRules.length))).call(e,(function(){return a.deleteRule(0)})),"focus"===n){var o,s,c=this.getEditorDom().getBoundingClientRect(),l=this.editor.charCoords(this.editor.getCursor()),A=l.top,u=l.bottom,h=A-c.top,f=c.height-(u-c.top);a.insertRule(Da(o=".".concat(r,"::before { height: ")).call(o,h>0?h:0,"px; }"),0),a.insertRule(Da(s=".".concat(r,"::after { height: ")).call(s,f>0?f:0,"px; }"),0)}if("typewriter"===n){var d,p,g=this.editor.getScrollInfo().clientHeight/2;a.insertRule(Da(d=".".concat(r," .CodeMirror-lines::before { height: ")).call(d,g,"px; }"),0),a.insertRule(Da(p=".".concat(r," .CodeMirror-lines::after { height: ")).call(p,g,"px; }"),0),this.editor.scrollTo(null,this.editor.cursorCoords(null,"local").top-g)}}},{key:"setWritingStyle",value:function(t){this.options.writingStyle=t,this.initWritingStyle()}}]),t}(),ZA=Xn.findIndex,tu=!0;"findIndex"in[]&&Array(1).findIndex((function(){tu=!1})),Xt({target:"Array",proto:!0,forced:tu},{findIndex:function(t){return ZA(this,t,arguments.length>1?arguments[1]:void 0)}});var eu=Wr("Array").findIndex,nu=Array.prototype,ru=function(t){var e=t.findIndex;return t===nu||G(nu,t)&&e===nu.findIndex?eu:e},iu=Kr("splice"),au=l.TypeError,ou=Math.max,su=Math.min;Xt({target:"Array",proto:!0,forced:!iu},{splice:function(t,e){var n,r,i,a,o,s,c=lt(this),l=Oe(c),A=Le(t,l),u=arguments.length;if(0===u?n=r=0:1===u?(n=0,r=l-A):(n=u-2,r=su(ou(ke(e),0),l-A)),l+n-r>9007199254740991)throw au("Maximum allowed length exceeded");for(i=Wn(c,r),a=0;a<r;a++)(o=A+a)in c&&yn(i,a,c[o]);if(i.length=r,n<r){for(a=A;a<l-r;a++)s=a+n,(o=a+r)in c?c[s]=c[o]:delete c[s];for(a=l;a>l-r+n;a--)delete c[a-1]}else if(n>r)for(a=l-r;a>A;a--)s=a+n-1,(o=a+r-1)in c?c[s]=c[o]:delete c[s];for(a=0;a<n;a++)c[a+A]=arguments[a+2];return c.length=l-r+n,i}});var cu=Wr("Array").splice,lu=Array.prototype,Au=function(t){var e=t.splice;return t===lu||G(lu,t)&&e===lu.splice?cu:e},uu=!1,hu={SEN:"sentence",PAR:"paragraph",DEFAULT:"sentence"},fu=function(){function t(e){Ji(this,t),Fa(this,"$engine",void 0),Fa(this,"$locale",void 0),this.RULE=this.rule(e)}return ta(t,[{key:"getType",value:function(){return this.constructor.HOOK_TYPE||hu.DEFAULT}},{key:"getName",value:function(){return this.constructor.HOOK_NAME}},{key:"afterInit",value:function(t){"function"==typeof t&&t()}},{key:"setLocale",value:function(t){this.$locale=t}},{key:"beforeMakeHtml",value:function(t){return t}},{key:"makeHtml",value:function(t){return t}},{key:"afterMakeHtml",value:function(t){return t}},{key:"onKeyDown",value:function(t,e){}},{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(t,e){this.getAttributesTest().test(t)&&e()}},{key:"getAttributes",value:function(t){return{attrs:{},str:t}}},{key:"test",value:function(t){return!!this.RULE.reg&&this.RULE.reg.test(t)}},{key:"rule",value:function(t){return{begin:"",end:"",content:"",reg:new RegExp("")}}},{key:"mounted",value:function(){}}],[{key:"getMathJaxConfig",value:function(){return uu}},{key:"setMathJaxConfig",value:function(t){uu=t}}]),t}();Fa(fu,"HOOK_NAME","default"),Fa(fu,"HOOK_TYPE",hu.DEFAULT);var du=Xn.map,pu=Kr("map");Xt({target:"Array",proto:!0,forced:!pu},{map:function(t){return du(this,t,arguments.length>1?arguments[1]:void 0)}});var gu=Wr("Array").map,mu=Array.prototype,yu=function(t){var e=t.map;return t===mu||G(mu,t)&&e===mu.map?gu:e};function vu(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!/^\n/.test(t))return e;if(n){var r,i,a,o=null!==(r=null===(i=t.match(/^\n+/g))||void 0===i||null===(a=i[0])||void 0===a?void 0:a.length)&&void 0!==r?r:0;return o>1?"\n\n".concat(e):"\n".concat(e)}return"\n\n".concat(e)}function bu(t,e){var n=(t.match(/\n/g)||[]).length;return""!==t&&(n-=2),n+e}var _u=Dl;function wu(t,e){if(_u(e))return e}function Eu(t){return"undefined"!=typeof localStorage&&null!==localStorage.getItem("cherry-".concat(t))}function Cu(t){"undefined"!=typeof localStorage&&localStorage.setItem("cherry-classicBr",t?"true":"false")}function xu(){var t="false";return"undefined"!=typeof localStorage&&(t=localStorage.getItem("cherry-classicBr")),"true"===t}function Bu(t){"undefined"!=typeof localStorage&&localStorage.setItem("cherry-theme",t)}function Tu(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e="default";if("undefined"!=typeof localStorage){var n=localStorage.getItem("cherry-theme");n&&(e=n)}return t?"theme__".concat(e):e}function ku(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=(e||Tu()).replace(/^.*theme__/,""),r=" theme__".concat(n);t.wrapperDom.className=t.wrapperDom.className.replace(/ theme__[^ $]+?( |$)/g,"")+r,t.previewer.getDomContainer().className=t.previewer.getDomContainer().className.replace(/ theme__[^ $]+?( |$)/g,"")+r,Bu(n)}var Su=l.RangeError,Iu=String.fromCharCode,Lu=String.fromCodePoint,Fu=b([].join),Nu=!!Lu&&1!=Lu.length;Xt({target:"String",stat:!0,arity:1,forced:Nu},{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,i=0;r>i;){if(e=+arguments[i++],Le(e,1114111)!==e)throw Su(e+" is not a valid code point");n[i]=e<65536?Iu(e):Iu(55296+((e-=65536)>>10),e%1024+56320)}return Fu(n,"")}});var Ou,Du,Mu=P.String.fromCodePoint;function Ru(t,e){var n=fn(t);if(jr){var r=jr(t);e&&(r=Xr(r).call(r,(function(e){return ii(t,e).enumerable}))),n.push.apply(n,r)}return n}function Uu(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?ji(n=Ru(Object(i),!0)).call(n,(function(e){Fa(t,e,i[e])})):Yi?Wi(t,Yi(i)):ji(r=Ru(Object(i))).call(r,(function(e){Xi(t,e,ii(i,e))}))}return t}var Pu={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&#x27;"},Hu={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},Qu=Uu(Uu(Uu(Uu(Uu(Uu({},{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;"}),Gu=fn(Qu),ju=yu(Gu).call(Gu,(function(t){return Qu[t].replace(/^&(\w+);$/g,(function(t,e){return e.toLowerCase()}))})),$u=function(t){return"string"!=typeof t||t.length<=0},Ku=function(t){try{var e=Mu(t);return!$u(e)}catch(t){return!1}};var Yu=["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("|"),zu=["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("|"),Wu=new RegExp(Da(Ou=Da(Du="^(".concat(Yu,"|")).call(Du,zu,"|")).call(Ou,"br|img|hr",")( |$|/)"),"i");function Vu(t,e){return"string"!=typeof t?"":e?t.replace(/[<>&]/g,(function(t){return Pu[t]||t})):t.replace(/[<>&"']/g,(function(t){return Pu[t]||t}))}function qu(t,e){if("string"!=typeof t)return"";var n=Xu(t);return Vu(n=function(t){return"string"!=typeof t?"":t.replace(/&(\w+);?/g,(function(t,e){return Hu[e]||t}))}(n),e)}function Xu(t){return t.replace(/&#(\d+);?/g,(function(t,e){return Qu[e]||t}))}function Ju(t){var e=function(t){return t.replace(/&#x([0-9a-f]+);?/gi,(function(t,e){var n=lA("0x".concat(e),16);try{return Mu(n)}catch(e){return t}}))}(function(t){return t.replace(/&#(\d+);?/g,(function(t,e){try{return Mu(e)}catch(e){return t}}))}(t)).match(/^\s*([\w\W]+?)(?=:)/i);if(!e)return!0;var n=["javascript","data"],r=e[1].replace(/[\s]/g,"");return-1===Zl(n).call(n,r.toLowerCase())}function Zu(t){return encodeURI(t).replace(/[!'()*]/g,(function(t){return"%".concat(t.charCodeAt(0).toString(16))})).replace(/%25/g,"%")}function th(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var eh=0,nh=function(t){ca(n,t);var e=th(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{needCache:!1},i=r.needCache,a=r.defaultCache,o=void 0===a?{}:a;return Ji(this,n),(t=e.call(this,{})).needCache=!!i,t.sign="",i&&(t.cache=o||{},t.cacheKey="~~C".concat(eh),eh+=1),t}return ta(n,[{key:"initBrReg",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.classicBr=Eu("classicBr")?xu():t,this.removeBrAfterBlock=null,this.removeBrBeforeBlock=null,this.removeNewlinesBetweenTags=null}},{key:"$cleanParagraph",value:function(t){var e=t.replace(/^\n+/,"").replace(/\n+$/,"");return this.classicBr?e:this.joinRawHtml(e).replace(/\n/g,"<br>").replace(/\r/g,"\n")}},{key:"joinRawHtml",value:function(t){if(!this.removeBrAfterBlock){var e,n,r,i,a=null!==(e=null===(n=this.$engine.htmlWhiteListAppend)||void 0===n?void 0:n.split("|"))&&void 0!==e?e:[];a=Xr(r=yu(a).call(a,(function(t){return/[a-z-]+/gi.test(t)?t:null}))).call(r,(function(t){return null!==t}));var o=Da(a).call(a,Yu).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(Da(i="<\\/(".concat(o,")>[^\\S\\n]*?\\n([^\\S\\n]*?)<(")).call(i,o,")(>| [^>]*?>)"),"ig")}return t.replace(this.removeBrAfterBlock,"<$1$2").replace(this.removeBrBeforeBlock,"</$1>").replace(this.removeNewlinesBetweenTags,"</$1>\r$2<$3$4")}},{key:"toHtml",value:function(t,e){return t}},{key:"makeHtml",value:function(t,e){return e(t).html}},{key:"afterMakeHtml",value:function(t){return this.restoreCache(t)}},{key:"isContainsCache",value:function(t,e){if(e){var r=/^(\s*~~C\d+I\w+\$\s*)+$/g.test(t),i=new RegExp("~~C\\d+I".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,"\\w+\\$"),"g").test(t);return r&&!i}return new RegExp("~~C\\d+I(?!".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")\\w+\\$"),"g").test(t)}},{key:"$splitHtmlByCache",value:function(t){var e=new RegExp("\\n*~~C\\d+I(?!".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")\\w+\\$\\n?"),"g");return{caches:t.match(e),contents:t.split(e)}}},{key:"makeExcludingCached",value:function(t,e){for(var n=this.$splitHtmlByCache(t),r=n.caches,i=n.contents,a=yu(i).call(i,e),o="",s=0;s<a.length;s++){var c;if(o+=a[s],r&&r[s])o+=Xc(c=r[s]).call(c)}return o}},{key:"getCacheWithSpace",value:function(t,e){var n,r,i,a,o,s,c=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=null!==(n=null===(r=e.match(/^\n+/))||void 0===r?void 0:r[0])&&void 0!==n?n:"",A=null!==(i=null===(a=e.match(/\n+$/))||void 0===a?void 0:a[0])&&void 0!==i?i:"";return c?vu(e,t):Da(o=Da(s="".concat(l)).call(s,t)).call(o,A)}},{key:"getLineCount",value:function(t){var e,r,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=t,s=null!==(e=null===(r=a.match(/^\n+/g))||void 0===r||null===(i=r[0])||void 0===i?void 0:i.length)&&void 0!==e?e:0;s=1===s?1:0,o=o.replace(/^\n+/g,"");var c=new RegExp("\n*~~C\\d+I(?:".concat(n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")?\\w+?_L(\\d+)\\$"),"g"),l=0;return o=o.replace(c,(function(t,e){return l+=lA(e,10),t.replace(/^\n+/g,"")})),s+l+(o.match(/\n/g)||[]).length+1}},{key:"pushCache",value:function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.needCache){var a=r||this.$engine.md5(t);return this.cache[a]={content:t,using:!0},Da(e=Da(n="".concat(this.cacheKey,"I")).call(n,a,"_L")).call(e,i,"$")}}},{key:"popCache",value:function(t){if(this.needCache)return this.cache[t].content||""}},{key:"resetCache",value:function(){if(this.needCache){for(var t=0,e=fn(this.cache);t<e.length;t++){var n=e[t];this.cache[n].using||delete this.cache[n]}for(var r=0,i=fn(this.cache);r<i.length;r++){var a=i[r];this.cache[a].using=!1}}}},{key:"restoreCache",value:function(t){var e,r=this;if(!this.needCache)return t;var i=new RegExp(Da(e="".concat(this.cacheKey,"I((?:")).call(e,n.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")?\\w+)\\$"),"g"),a=t.replace(i,(function(t,e){return r.popCache(e.replace(/_L\d+$/,""))}));return this.resetCache(),a}},{key:"checkCache",value:function(t,e){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.sign=this.$engine.md5(t),this.cache[this.sign]?(this.cache[this.sign].using=!0,Da(n=Da(r="".concat(this.cacheKey,"I")).call(r,this.sign,"_L")).call(n,i,"$")):this.toHtml(t,e)}},{key:"mounted",value:function(){}},{key:"signWithCache",value:function(t){return!1}}]),n}(fu);Fa(nh,"HOOK_TYPE",hu.PAR),Fa(nh,"IN_PARAGRAPH_CACHE_KEY_PREFIX","!"),Fa(nh,"IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX","\\!");var rh=A((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),ih=Object.isExtensible,ah=A((function(){ih(1)}))||rh?function(t){return!!U(t)&&((!rh||"ArrayBuffer"!=L(t))&&(!ih||ih(t)))}:ih,oh=!A((function(){return Object.isExtensible(Object.preventExtensions({}))})),sh=r((function(t){var e=zt.f,n=!1,r=pt("meta"),i=0,a=function(t){e(t,r,{value:{objectID:"O"+i++,weakData:{}}})},o=t.exports={enable:function(){o.enable=function(){},n=!0;var t=mn.f,e=b([].splice),i={};i[r]=1,t(i).length&&(mn.f=function(n){for(var i=t(n),a=0,o=i.length;a<o;a++)if(i[a]===r){e(i,a,1);break}return i},Xt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Cn.f}))},fastKey:function(t,e){if(!U(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!ut(t,r)){if(!ah(t))return"F";if(!e)return"E";a(t)}return t[r].objectID},getWeakData:function(t,e){if(!ut(t,r)){if(!ah(t))return!0;if(!e)return!1;a(t)}return t[r].weakData},onFreeze:function(t){return oh&&n&&ah(t)&&!ut(t,r)&&a(t),t}};Re[r]=!0})),ch=(sh.enable,sh.fastKey,sh.getWeakData,sh.onFreeze,l.TypeError),lh=function(t,e){this.stopped=t,this.result=e},Ah=lh.prototype,uh=function(t,e,n){var r,i,a,o,s,c,l,A=n&&n.that,u=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),f=!(!n||!n.INTERRUPTED),d=Pt(e,A),p=function(t){return r&&Jc(r,"normal",t),new lh(!0,t)},g=function(t){return u?(jt(t),f?d(t[0],t[1],p):d(t[0],t[1])):f?d(t,p):d(t)};if(h)r=t;else{if(!(i=il(t)))throw ch(tt(t)+" is not iterable");if(nl(i)){for(a=0,o=Oe(t);o>a;a++)if((s=g(t[a]))&&G(Ah,s))return s;return new lh(!1)}r=ol(t,i)}for(c=r.next;!(l=C(c,r)).done;){try{s=g(l.value)}catch(t){Jc(r,"throw",t)}if("object"==typeof s&&s&&G(Ah,s))return s}return new lh(!1)},hh=l.TypeError,fh=function(t,e){if(G(e,t))return t;throw hh("Incorrect invocation")},dh=zt.f,ph=Xn.forEach,gh=$n.set,mh=$n.getterFor,yh=function(t,e,n){var r,i=-1!==t.indexOf("Map"),a=-1!==t.indexOf("Weak"),o=i?"set":"add",s=l[t],c=s&&s.prototype,u={};if(w&&_(s)&&(a||c.forEach&&!A((function(){(new s).entries().next()})))){var h=(r=e((function(e,n){gh(fh(e,h),{type:t,collection:new s}),null!=n&&uh(n,e[o],{that:e,AS_ENTRIES:i})}))).prototype,f=mh(t);ph(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;!(t in c)||a&&"clear"==t||Wt(h,t,(function(n,r){var i=f(this).collection;if(!e&&a&&!U(n))return"get"==t&&void 0;var o=i[t](0===n?0:n,r);return e?this:o}))})),a||dh(h,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else r=n.getConstructor(e,t,i,o),sh.enable();return On(r,t,!1,!0),u[t]=r,Xt({global:!0,forced:!0},u),a||n.setStrong(r,t,i),r},vh=function(t,e,n){for(var r in e)n&&n.unsafe&&t[r]?t[r]=e[r]:Bn(t,r,e[r],n);return t},bh=bt("species"),_h=function(t){var e=Q(t),n=zt.f;w&&e&&!e[bh]&&n(e,bh,{configurable:!0,get:function(){return this}})},wh=zt.f,Eh=sh.fastKey,Ch=$n.set,xh=$n.getterFor,Bh={getConstructor:function(t,e,n,r){var i=t((function(t,i){fh(t,a),Ch(t,{type:e,index:Je(null),first:void 0,last:void 0,size:0}),w||(t.size=0),null!=i&&uh(i,t[r],{that:t,AS_ENTRIES:n})})),a=i.prototype,o=xh(e),s=function(t,e,n){var r,i,a=o(t),s=c(t,e);return s?s.value=n:(a.last=s={index:i=Eh(e,!0),key:e,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=s),r&&(r.next=s),w?a.size++:t.size++,"F"!==i&&(a.index[i]=s)),t},c=function(t,e){var n,r=o(t),i=Eh(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return vh(a,{clear:function(){for(var t=o(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,w?t.size=0:this.size=0},delete:function(t){var e=o(this),n=c(this,t);if(n){var r=n.next,i=n.previous;delete e.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),e.first==n&&(e.first=r),e.last==n&&(e.last=i),w?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=o(this),r=Pt(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!c(this,t)}}),vh(a,n?{get:function(t){var e=c(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),w&&wh(a,"size",{get:function(){return o(this).size}}),i},setStrong:function(t,e,n){var r=e+" Iterator",i=xh(e),a=xh(r);Si(t,e,(function(t,e){Ch(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=a(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),_h(e)}};yh("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Bh);var Th=P.Map,kh=Th,Sh=[].push;Xt({target:"Map",stat:!0,forced:!0},{from:function(t){var e,n,r,i,a=arguments.length,o=a>1?arguments[1]:void 0;return Ce(this),(e=void 0!==o)&&nt(o),null==t?new this:(n=[],e?(r=0,i=Pt(o,a>2?arguments[2]:void 0),uh(t,(function(t){C(Sh,n,i(t,r++))}))):uh(t,Sh,{that:n}),new this(n))}});Xt({target:"Map",stat:!0,forced:!0},{of:function(){return new this(Jt(arguments))}});Xt({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var t,e=jt(this),n=nt(e.delete),r=!0,i=0,a=arguments.length;i<a;i++)t=C(n,e,arguments[i]),r=r&&t;return!!r}});Xt({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(t,e){var n=jt(this),r=nt(n.get),i=nt(n.has),a=nt(n.set),o=C(i,n,t)&&"update"in e?e.update(C(r,n,t),t,n):e.insert(t,n);return C(a,n,t,o),o}});var Ih=ol;Xt({target:"Map",proto:!0,real:!0,forced:!0},{every:function(t){var e=jt(this),n=Ih(e),r=Pt(t,arguments.length>1?arguments[1]:void 0);return!uh(n,(function(t,n,i){if(!r(n,t,e))return i()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var Lh=bt("species"),Fh=function(t,e){var n,r=jt(t).constructor;return void 0===r||null==(n=jt(r)[Lh])?e:Ce(n)};Xt({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(t){var e=jt(this),n=Ih(e),r=Pt(t,arguments.length>1?arguments[1]:void 0),i=new(Fh(e,Q("Map"))),a=nt(i.set);return uh(n,(function(t,n){r(n,t,e)&&C(a,i,t,n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}}),Xt({target:"Map",proto:!0,real:!0,forced:!0},{find:function(t){var e=jt(this),n=Ih(e),r=Pt(t,arguments.length>1?arguments[1]:void 0);return uh(n,(function(t,n,i){if(r(n,t,e))return i(n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}}),Xt({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(t){var e=jt(this),n=Ih(e),r=Pt(t,arguments.length>1?arguments[1]:void 0);return uh(n,(function(t,n,i){if(r(n,t,e))return i(t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var Nh=b([].push);Xt({target:"Map",stat:!0,forced:!0},{groupBy:function(t,e){nt(e);var n=ol(t),r=new this,i=nt(r.has),a=nt(r.get),o=nt(r.set);return uh(n,(function(t){var n=e(t);C(i,r,n)?Nh(C(a,r,n),t):C(o,r,n,[t])}),{IS_ITERATOR:!0}),r}});Xt({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(t){return uh(Ih(jt(this)),(function(e,n,r){if((i=n)===(a=t)||i!=i&&a!=a)return r();var i,a}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}}),Xt({target:"Map",stat:!0,forced:!0},{keyBy:function(t,e){var n=new this;nt(e);var r=nt(n.set);return uh(t,(function(t){C(r,n,e(t),t)})),n}}),Xt({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(t){return uh(Ih(jt(this)),(function(e,n,r){if(n===t)return r(e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}}),Xt({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(t){var e=jt(this),n=Ih(e),r=Pt(t,arguments.length>1?arguments[1]:void 0),i=new(Fh(e,Q("Map"))),a=nt(i.set);return uh(n,(function(t,n){C(a,i,r(n,t,e),n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}}),Xt({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(t){var e=jt(this),n=Ih(e),r=Pt(t,arguments.length>1?arguments[1]:void 0),i=new(Fh(e,Q("Map"))),a=nt(i.set);return uh(n,(function(t,n){C(a,i,t,r(n,t,e))}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}}),Xt({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(t){for(var e=jt(this),n=nt(e.set),r=arguments.length,i=0;i<r;)uh(arguments[i++],n,{that:e,AS_ENTRIES:!0});return e}});var Oh=l.TypeError;Xt({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(t){var e=jt(this),n=Ih(e),r=arguments.length<2,i=r?void 0:arguments[1];if(nt(t),uh(n,(function(n,a){r?(r=!1,i=a):i=t(i,a,n,e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),r)throw Oh("Reduce of empty map with no initial value");return i}}),Xt({target:"Map",proto:!0,real:!0,forced:!0},{some:function(t){var e=jt(this),n=Ih(e),r=Pt(t,arguments.length>1?arguments[1]:void 0);return uh(n,(function(t,n,i){if(r(n,t,e))return i()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var Dh=l.TypeError;Xt({target:"Map",proto:!0,real:!0,forced:!0},{update:function(t,e){var n=jt(this),r=nt(n.get),i=nt(n.has),a=nt(n.set),o=arguments.length;nt(e);var s=C(i,n,t);if(!s&&o<3)throw Dh("Updating absent value");var c=s?C(r,n,t):nt(o>2?arguments[2]:void 0)(t,n);return C(a,n,t,e(c,t,n)),n}});var Mh=l.TypeError,Rh=function(t,e){var n,r=jt(this),i=nt(r.get),a=nt(r.has),o=nt(r.set),s=arguments.length>2?arguments[2]:void 0;if(!_(e)&&!_(s))throw Mh("At least one callback required");return C(a,r,t)?(n=C(i,r,t),_(e)&&(n=e(n),C(o,r,t,n))):_(s)&&(n=s(),C(o,r,t,n)),n};Xt({target:"Map",proto:!0,real:!0,forced:!0},{upsert:Rh}),Xt({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:Rh});var Uh=kh,Ph=r((function(t){t.exports=function(t){var e;return-1!==Sc(e=Function.toString.call(t)).call(e,"[native code]")},t.exports.__esModule=!0,t.exports.default=t.exports}));n(Ph);var Hh=on,Qh=Ua,Gh=r((function(t){t.exports=function(){if("undefined"==typeof Reflect||!Hh)return!1;if(Hh.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Hh(Boolean,[],(function(){}))),!0}catch(t){return!1}},t.exports.__esModule=!0,t.exports.default=t.exports}));n(Gh);var jh=r((function(t){function e(n,r,i){return Gh()?(t.exports=e=Hh,t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=e=function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Qh(Function).apply(t,r));return n&&sa(i,n.prototype),i},t.exports.__esModule=!0,t.exports.default=t.exports),e.apply(null,arguments)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})),$h=n(jh),Kh=n(r((function(t){function e(n){var r="function"==typeof Uh?new Uh:void 0;return t.exports=e=function(t){if(null===t||!Ph(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,e)}function e(){return jh(t,arguments,Ia(this).constructor)}return e.prototype=aa(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),sa(e,t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})));function Yh(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var zh=function(t,e){if(!_u(t)&&Ba(t)!==e.name.toLowerCase()||!_u(t)&&"array"===e.name.toLowerCase())throw new TypeError("parameter given must be ".concat(e.name));return!0},Wh=function(t,e){if(!(t instanceof e))throw new Error("the hook does not correctly inherit");return!0},Vh=function(t){if("object"!==Ba(t))throw new Error("the hook must be a instance, not a class");return!0},qh=function(t){ca(n,t);var e=Yh(n);function n(t,r){var i;return Ji(this,n),(i=e.call(this,t)).name="Error",i.stack=i.buildStackTrace(r),i}return ta(n,[{key:"buildStackTrace",value:function(t){var e,n=t&&t.stack?t.stack:"";return Da(e="".concat(this.stack,"\nCaused By: ")).call(e,n)}}]),n}(Kh(Error));function Xh(t,e,n){var r,i;if(-1===t)TA.warn(Da(r=Da(i="Duplicate hook name [".concat(e.HOOK_NAME,"] found, hook [")).call(i,e.toString(),"] ")).call(r,isNaN(n)?"":"at index [".concat(n,"] "),"will not take effect."));else if(-2===t){var a;TA.warn(Da(a="Hook [".concat(e.toString(),"] ")).call(a,isNaN(n)?"":"at index [".concat(n,"] "),"is not a valid hook, and will not take effect."))}}function Jh(t){return Zh(t)||tf(t)}function Zh(t){return Object.prototype.isPrototypeOf.call(fu,t)}function tf(t){return Object.prototype.isPrototypeOf.call(nh,t)}function ef(t){return Jh(t)&&!0===(null==t?void 0:t.Cherry$$CUSTOM)}var nf=function(){function t(e,n,r){Ji(this,t),this.$locale=r.locale,this.hookList={},this.hookNameList={},zh(e,Array),this.registerInternalHooks(e,n),this.registerCustomHooks(n.engine.customSyntax,n)}return ta(t,[{key:"registerInternalHooks",value:function(t,e){var n=this;ji(t).call(t,(function(t,r){Xh(n.register(t,e),t,r)}))}},{key:"registerCustomHooks",value:function(t,e){var n=this;if(t){var r=fn(t);ji(r).call(r,(function(r){var i,a,o,s,c={},l=t[r];if(Zh(l))a=l;else{if(!Zh(s=null==(o=l)?void 0:o.syntaxClass)&&!tf(s))return;a=l.syntaxClass,c.force=Boolean(l.force),l.before?c.before=l.before:l.after&&(c.after=l.after)}Jh(a)?(Xi(a,"Cherry$$CUSTOM",{enumerable:!1,configurable:!1,writable:!1,value:!0}),i=n.register(a,e,c)):i=-2,Xh(i,a,void 0)}))}}},{key:"getHookList",value:function(){return this.hookList}},{key:"getHookNameList",value:function(){return this.hookNameList}},{key:"register",value:function(t,e,n){var r,i,a=this,o=e.externals,s=e.engine,c=s.syntax;if(Jh(t)){i=t.HOOK_NAME;var l=(null==c?void 0:c[i])||{};(r=new t({externals:o,config:l,globalConfig:s.global})).afterInit((function(){r.setLocale(a.$locale)}))}else{if("function"!=typeof t)return-2;if(!(r=t(e))||!Jh(r.constructor))return-2;i=r.getName()}if(!1!==c[i]||ef(t)){var A=r.getType();if(this.hookNameList[i]){var u;if(!ef(t))return-1;if(!n.force)return-1;var h=this.hookNameList[i].type;this.hookList[h]=Xr(u=this.hookList[h]).call(u,(function(t){return t.getName()!==i}))}if(this.hookNameList[i]={type:A},this.hookList[A]=this.hookList[A]||[],ef(t)){var f,d,p,g=-1;if(n.before){if(-1===(g=ru(f=this.hookList[A]).call(f,(function(t){return t.getName()===n.before}))))TA.warn(Da(d="Cannot find hook named [".concat(n.before,"],\n custom hook [")).call(d,i,"] will append to the end of the hooks."))}else if(n.after){var m,y;-1===(g=ru(m=this.hookList[A]).call(m,(function(t){return t.getName()===n.after})))?TA.warn(Da(y="Cannot find hook named [".concat(n.after,"],\n custom hook [")).call(y,i,"] will append to the end of the hooks.")):g+=1}if(g<0||g>=this.hookList[A].length)this.hookList[A].push(r);else Au(p=this.hookList[A]).call(p,g,0,r)}else this.hookList[A].push(r)}}}]),t}(),rf=r((function(t){t.exports=function(t){if(Ml(t))return Vl(t)},t.exports.__esModule=!0,t.exports.default=t.exports}));n(rf);var af=r((function(t){t.exports=function(t){if(void 0!==pa&&null!=Ul(t)||null!=t["@@iterator"])return Wl(t)},t.exports.__esModule=!0,t.exports.default=t.exports}));n(af);var of=r((function(t){t.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.")},t.exports.__esModule=!0,t.exports.default=t.exports}));n(of);var sf=n(r((function(t){t.exports=function(t){return rf(t)||af(t)||ql(t)||of()},t.exports.__esModule=!0,t.exports.default=t.exports}))),cf=n(r((function(t){t.exports=function(t){return Rl(t)||af(t)||ql(t)||Xl()},t.exports.__esModule=!0,t.exports.default=t.exports})));function lf(t,e){var n=fn(t);if(jr){var r=jr(t);e&&(r=Xr(r).call(r,(function(e){return ii(t,e).enumerable}))),n.push.apply(n,r)}return n}function Af(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?ji(n=lf(Object(i),!0)).call(n,(function(e){Fa(t,e,i[e])})):Yi?Wi(t,Yi(i)):ji(r=lf(Object(i))).call(r,(function(e){Xi(t,e,ii(i,e))}))}return t}function uf(t,e){if(!e.length)return t;var n=[],r=0;return ji(e).call(e,(function(i,a){n.push(eA(t).call(t,r,i.begin)),n.push(i.replacedText),r=i.begin+i.length,a===e.length-1&&n.push(eA(t).call(t,r))})),n.join("")}function hf(t,e,n){var r,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;if(!e)return t;e.lastIndex=0;for(var o=0,s=[];null!==(r=e.exec(t));){var c={begin:r.index,length:r[0].length};if(i&&r.index===o-a){var l,A=r,u=cf(A),h=u[0],f=eA(u).call(u,2);s.push({begin:c.begin+a,length:c.length-a,replacedText:n.apply(void 0,Da(l=[eA(h).call(h,a),""]).call(l,sf(f)))})}else s.push(Af(Af({},c),{},{replacedText:n.apply(void 0,sf(r))}));o=e.lastIndex,e.lastIndex-=a}return e.lastIndex=0,uf(t,s)}function ff(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var df=function(t){ca(n,t);var e=ff(n);function n(){return Ji(this,n),e.apply(this,arguments)}return ta(n,[{key:"toHtml",value:function(t,e,n,r){var i,a;return Da(i=Da(a="".concat(e,'<span style="color:')).call(a,n,'">')).call(i,r,"</span>")}},{key:"makeHtml",value:function(t){return FA()?t.replace(this.RULE.reg,this.toHtml):hf(t,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var t={begin:FA()?"((?<!\\\\))!!":"(^|[^\\\\])!!",end:"!!",content:"(#[0-9a-zA-Z]{3,6}|[a-z]{3,20})[\\s]([\\w\\W]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}(fu);function pf(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}Fa(df,"HOOK_NAME","fontColor");var gf=function(t){ca(n,t);var e=pf(n);function n(){return Ji(this,n),e.apply(this,arguments)}return ta(n,[{key:"toHtml",value:function(t,e,n,r){var i,a;return Da(i=Da(a="".concat(e,'<span style="background-color:')).call(a,n,'">')).call(i,r,"</span>")}},{key:"makeHtml",value:function(t){return FA()?t.replace(this.RULE.reg,this.toHtml):hf(t,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var t={begin:FA()?"((?<!\\\\))!!!":"(^|[^\\\\])!!!",end:"!!!",content:"(#[0-9a-zA-Z]{3,6}|[a-z]{3,10})[\\s]([\\w\\W]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}(fu);function mf(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}Fa(gf,"HOOK_NAME","bgColor");var yf=function(t){ca(n,t);var e=mf(n);function n(){return Ji(this,n),e.apply(this,arguments)}return ta(n,[{key:"toHtml",value:function(t,e,n,r){var i,a;return Da(i=Da(a="".concat(e,'<span style="font-size:')).call(a,n,'px;line-height:1em;">')).call(i,r,"</span>")}},{key:"makeHtml",value:function(t){return this.test(t)?FA()?t.replace(this.RULE.reg,this.toHtml):hf(t,this.RULE.reg,this.toHtml,!0,1):t}},{key:"rule",value:function(){var t={begin:FA()?"((?<!\\\\))!":"(^|[^\\\\])!",end:"!",content:"([0-9]{1,2})[\\s]([\\w\\W]*?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}(fu);function vf(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}Fa(yf,"HOOK_NAME","fontSize");var bf=function(t){ca(n,t);var e=vf(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0},i=r.config;return Ji(this,n),t=e.call(this,{config:i}),i?(t.needWhitespace=!!i.needWhitespace,t):Ta(t)}return ta(n,[{key:"makeHtml",value:function(t){return this.test(t)?t.replace(this.RULE.reg,"$1<del>$2</del>"):t}},{key:"rule",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0},e=t.config,n={};return(n=e.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}(fu);function _f(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}Fa(bf,"HOOK_NAME","strikethrough");var wf=function(t){ca(n,t);var e=_f(n);function n(){return Ji(this,n),e.apply(this,arguments)}return ta(n,[{key:"toHtml",value:function(t,e,n){var r;return Da(r="".concat(e,"<sup>")).call(r,n,"</sup>")}},{key:"makeHtml",value:function(t){return FA()?t.replace(this.RULE.reg,this.toHtml):hf(t,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var t={begin:FA()?"((?<!\\\\))\\^":"(^|[^\\\\])\\^",end:"\\^",content:"([\\w\\W]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}(fu);function Ef(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}Fa(wf,"HOOK_NAME","sup");var Cf=function(t){ca(n,t);var e=Ef(n);function n(){return Ji(this,n),e.apply(this,arguments)}return ta(n,[{key:"toHtml",value:function(t,e,n){var r;return Da(r="".concat(e,"<sub>")).call(r,n,"</sub>")}},{key:"makeHtml",value:function(t){return FA()?t.replace(this.RULE.reg,this.toHtml):hf(t,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var t={begin:FA()?"((?<!\\\\))\\^\\^":"(^|[^\\\\])\\^\\^",end:"\\^\\^",content:"([\\w\\W]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}(fu);Fa(Cf,"HOOK_NAME","sub");var xf=r((function(t){var n=function(t){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof a?new a(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(t){return Object.prototype.toString.call(t).slice(8,-1)},objId:function(t){return t.__id||Object.defineProperty(t,"__id",{value:++n}),t.__id},clone:function t(e,n){var r,a;switch(n=n||{},i.util.type(e)){case"Object":if(a=i.util.objId(e),n[a])return n[a];for(var o in r={},n[a]=r,e)e.hasOwnProperty(o)&&(r[o]=t(e[o],n));return r;case"Array":return a=i.util.objId(e),n[a]?n[a]:(r=[],n[a]=r,e.forEach((function(e,i){r[i]=t(e,n)})),r);default:return e}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.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 t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var n in e)if(e[n].src==t)return e[n]}return null}},isActive:function(t,e,n){for(var r="no-"+e;t;){var i=t.classList;if(i.contains(e))return!0;if(i.contains(r))return!1;t=t.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(t,e){var n=i.util.clone(i.languages[t]);for(var r in e)n[r]=e[r];return n},insertBefore:function(t,e,n,r){var a=(r=r||i.languages)[t],o={};for(var s in a)if(a.hasOwnProperty(s)){if(s==e)for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c]);n.hasOwnProperty(s)||(o[s]=a[s])}var l=r[t];return r[t]=o,i.languages.DFS(i.languages,(function(e,n){n===l&&e!=t&&(this[e]=o)})),o},DFS:function t(e,n,r,a){a=a||{};var o=i.util.objId;for(var s in e)if(e.hasOwnProperty(s)){n.call(e,s,e[s],r||s);var c=e[s],l=i.util.type(c);"Object"!==l||a[o(c)]?"Array"!==l||a[o(c)]||(a[o(c)]=!0,t(c,n,s,a)):(a[o(c)]=!0,t(c,n,null,a))}}},plugins:{},highlightAll:function(t,e){i.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,n){var r={callback:n,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run("before-all-elements-highlight",r);for(var a,o=0;a=r.elements[o++];)i.highlightElement(a,!0===e,r.callback)},highlightElement:function(e,n,r){var a=i.util.getLanguage(e),o=i.languages[a];i.util.setLanguage(e,a);var s=e.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&i.util.setLanguage(s,a);var c={element:e,language:a,grammar:o,code:e.textContent};function l(t){c.highlightedCode=t,i.hooks.run("before-insert",c),c.element.innerHTML=c.highlightedCode,i.hooks.run("after-highlight",c),i.hooks.run("complete",c),r&&r.call(c.element)}if(i.hooks.run("before-sanity-check",c),(s=c.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!c.code)return i.hooks.run("complete",c),void(r&&r.call(c.element));if(i.hooks.run("before-highlight",c),c.grammar)if(n&&t.Worker){var A=new Worker(i.filename);A.onmessage=function(t){l(t.data)},A.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else l(i.highlight(c.code,c.grammar,c.language));else l(i.util.encode(c.code))},highlight:function(t,e,n){var r={code:t,grammar:e,language:n};if(i.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run("after-tokenize",r),a.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(t,e){var n=e.rest;if(n){for(var r in n)e[r]=n[r];delete e.rest}var A=new s;return c(A,A.head,t),function t(e,n,r,s,A,u){for(var h in r)if(r.hasOwnProperty(h)&&r[h]){var f=r[h];f=Array.isArray(f)?f:[f];for(var d=0;d<f.length;++d){if(u&&u.cause==h+","+d)return;var p=f[d],g=p.inside,m=!!p.lookbehind,y=!!p.greedy,v=p.alias;if(y&&!p.pattern.global){var b=p.pattern.toString().match(/[imsuy]*$/)[0];p.pattern=RegExp(p.pattern.source,b+"g")}for(var _=p.pattern||p,w=s.next,E=A;w!==n.tail&&!(u&&E>=u.reach);E+=w.value.length,w=w.next){var C=w.value;if(n.length>e.length)return;if(!(C instanceof a)){var x,B=1;if(y){if(!(x=o(_,E,e,m))||x.index>=e.length)break;var T=x.index,k=x.index+x[0].length,S=E;for(S+=w.value.length;T>=S;)w=w.next,S+=w.value.length;if(S-=w.value.length,E=S,w.value instanceof a)continue;for(var I=w;I!==n.tail&&(S<k||"string"==typeof I.value);I=I.next)B++,S+=I.value.length;B--,C=e.slice(E,S),x.index-=E}else if(!(x=o(_,0,C,m)))continue;T=x.index;var L=x[0],F=C.slice(0,T),N=C.slice(T+L.length),O=E+C.length;u&&O>u.reach&&(u.reach=O);var D=w.prev;F&&(D=c(n,D,F),E+=F.length),l(n,D,B);var M=new a(h,g?i.tokenize(L,g):L,v,L);if(w=c(n,D,M),N&&c(n,w,N),B>1){var R={cause:h+","+d,reach:O};t(e,n,r,w.prev,E,R),u&&R.reach>u.reach&&(u.reach=R.reach)}}}}}}(t,A,e,A.head,0),function(t){var e=[],n=t.head.next;for(;n!==t.tail;)e.push(n.value),n=n.next;return e}(A)},hooks:{all:{},add:function(t,e){var n=i.hooks.all;n[t]=n[t]||[],n[t].push(e)},run:function(t,e){var n=i.hooks.all[t];if(n&&n.length)for(var r,a=0;r=n[a++];)r(e)}},Token:a};function a(t,e,n,r){this.type=t,this.content=e,this.alias=n,this.length=0|(r||"").length}function o(t,e,n,r){t.lastIndex=e;var i=t.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function s(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function c(t,e,n){var r=e.next,i={value:n,prev:e,next:r};return e.next=i,r.prev=i,t.length++,i}function l(t,e,n){for(var r=e.next,i=0;i<n&&r!==t.tail;i++)r=r.next;e.next=r,r.prev=e,t.length-=i}if(t.Prism=i,a.stringify=function t(e,n){if("string"==typeof e)return e;if(Array.isArray(e)){var r="";return e.forEach((function(e){r+=t(e,n)})),r}var a={type:e.type,content:t(e.content,n),tag:"span",classes:["token",e.type],attributes:{},language:n},o=e.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(a.classes,o):a.classes.push(o)),i.hooks.run("wrap",a);var s="";for(var c in a.attributes)s+=" "+c+'="'+(a.attributes[c]||"").replace(/"/g,"&quot;")+'"';return"<"+a.tag+' class="'+a.classes.join(" ")+'"'+s+">"+a.content+"</"+a.tag+">"},!t.document)return t.addEventListener?(i.disableWorkerMessageHandler||t.addEventListener("message",(function(e){var n=JSON.parse(e.data),r=n.language,a=n.code,o=n.immediateClose;t.postMessage(i.highlight(a,i.languages[r],r)),o&&t.close()}),!1),i):i;var A=i.util.currentScript();function u(){i.manual||i.highlightAll()}if(A&&(i.filename=A.src,A.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var h=document.readyState;"loading"===h||"interactive"===h&&A&&A.defer?document.addEventListener("DOMContentLoaded",u):window.requestAnimationFrame?window.requestAnimationFrame(u):window.setTimeout(u,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});t.exports&&(t.exports=n),void 0!==e&&(e.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(t){function e(t,e){return t.replace(/<<(\d+)>>/g,(function(t,n){return"(?:"+e[+n]+")"}))}function n(t,n,r){return RegExp(e(t,n),r||"")}function r(t,e){for(var n=0;n<e;n++)t=t.replace(/<<self>>/g,(function(){return"(?:"+t+")"}));return t.replace(/<<self>>/g,"[^\\s\\S]")}var i="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",a="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*{)",s="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 c(t){return"\\b(?:"+t.trim().replace(/ /g,"|")+")\\b"}var l=c(a),A=RegExp(c(i+" "+a+" "+o+" "+s)),u=c(a+" "+o+" "+s),h=c(i+" "+a+" "+s),f=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),d=r(/\((?:[^()]|<<self>>)*\)/.source,2),p=/@?\b[A-Za-z_]\w*\b/.source,g=e(/<<0>>(?:\s*<<1>>)?/.source,[p,f]),m=e(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,g]),y=/\[\s*(?:,\s*)*\]/.source,v=e(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,y]),b=e(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,d,y]),_=e(/\(<<0>>+(?:,<<0>>+)+\)/.source,[b]),w=e(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[_,m,y]),E={keyword:A,punctuation:/[<>()?,.:[\]]/},C=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,x=/"(?:\\.|[^\\"\r\n])*"/.source,B=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[B]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[x]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:E},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[p,w]),lookbehind:!0,inside:E},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[p]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,g]),lookbehind:!0,inside:E},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:E},{pattern:n(/(\bwhere\s+)<<0>>/.source,[p]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[v]),lookbehind:!0,inside:E},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[w,h,p]),inside:E}],keyword:A,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:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[p]),lookbehind:!0,alias:"punctuation"}}),t.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:E},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[w,m]),inside:E,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[w]),lookbehind:!0,inside:E,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[p,f]),inside:{function:n(/^<<0>>/.source,[p]),generic:{pattern:RegExp(f),alias:"class-name",inside:E}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,g,p,w,A.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:t.languages.csharp},keyword:A,"class-name":{pattern:RegExp(w),greedy:!0,inside:E},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 T=x+"|"+C,k=e(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[T]),S=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),I=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,L=e(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,S]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[I,L]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[I]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[S]),inside:t.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var F=/:[^}\r\n]+/.source,N=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),O=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[N,F]),D=r(e(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[T]),2),M=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[D,F]);function R(e,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[e]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,F]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[O]),lookbehind:!0,greedy:!0,inside:R(O,N)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[M]),lookbehind:!0,greedy:!0,inside:R(M,D)}],char:{pattern:RegExp(C),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(Prism),function(t){var e=/\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 e.source}));t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return e.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:e,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/}),t.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}}),t.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:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.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(t){"entity"===t.type&&(t.attributes.title=t.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var n={};n["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return t})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\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:[e,"language-"+e],inside:Prism.languages[e]},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(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.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\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,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:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism),function(t){var e=[/\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:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:e,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.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:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":r,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(Prism),function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var e={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(e).forEach((function(n){var r=e[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),"diff"===n&&i.push("bold"),t.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(t.languages.diff,"PREFIXES",{value:e})}(Prism),function(t){var e=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,n=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,(function(){return e})),r=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,i=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,(function(){return r})),a={pattern:RegExp(r),greedy:!0},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function s(t,e){return t=t.replace(/<OPT>/g,(function(){return i})).replace(/<SP>/g,(function(){return n})),RegExp(t,e)}t.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:s(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[a,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:s(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:a,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},t.languages.dockerfile=t.languages.docker}(Prism),Prism.languages.git={comment:/^#.*/m,deleted:/^[-].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},Prism.languages.glsl=Prism.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/}),Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"],Prism.languages["go-mod"]=Prism.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/},function(t){var e=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+e.source+")?|"+e.source+"(?:[ \t]+"+n.source+")?)",i=/(?:[^\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})),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(t,e){e=(e||"").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 t}));return RegExp(n,e)}t.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"(?:"+i+"|"+a+")"}))),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(a),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:e,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml}(Prism),function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(t){return t=t.replace(/<inner>/g,(function(){return e})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+t+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.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:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+a+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+a+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:t.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(e){["url","bold","italic","strike","code-snippet"].forEach((function(n){e!==n&&(t.languages.markdown[e].inside.content.inside[n]=t.languages.markdown[n])}))})),t.hooks.add("after-tokenize",(function(t){"markdown"!==t.language&&"md"!==t.language||function t(e){if(e&&"string"!=typeof e)for(var n=0,r=e.length;n<r;n++){var i=e[n];if("code"===i.type){var a=i.content[1],o=i.content[3];if(a&&o&&"code-language"===a.type&&"code-block"===o.type&&"string"==typeof a.content){var s=a.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),c="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());o.alias?"string"==typeof o.alias?o.alias=[o.alias,c]:o.alias.push(c):o.alias=[c]}}else t(i.content)}}(t.tokens)})),t.hooks.add("wrap",(function(e){if("code-block"===e.type){for(var n="",r=0,i=e.classes.length;r<i;r++){var a=e.classes[r],l=/language-(.+)/.exec(a);if(l){n=l[1];break}}var A=t.languages[n];if(A)e.content=t.highlight(function(t){var e=t.replace(o,"");return e=e.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(t,e){var n;if("#"===(e=e.toLowerCase())[0])return n="x"===e[1]?parseInt(e.slice(2),16):Number(e.slice(1)),c(n);var r=s[e];return r||t}))}(e.content),A,n);else if(n&&"none"!==n&&t.plugins.autoloader){var u="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());e.attributes.id=u,t.plugins.autoloader.loadLanguages(n,(function(){var e=document.getElementById(u);e&&(e.innerHTML=t.highlight(e.textContent,t.languages[n],n))}))}}}));var o=RegExp(t.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;t.languages.md=t.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(t){if("graphql"===t.language)for(var e=t.tokens.filter((function(t){return"string"!=typeof t&&"comment"!==t.type&&"scalar"!==t.type})),n=0;n<e.length;){var r=e[n++];if("keyword"===r.type&&"mutation"===r.content){var i=[];if(u(["definition-mutation","punctuation"])&&"("===A(1).content){n+=2;var a=h(/^\($/,/^\)$/);if(-1===a)continue;for(;n<a;n++){var o=A(0);"variable"===o.type&&(f(o,"variable-input"),i.push(o.content))}n=a+1}if(u(["punctuation","property-query"])&&"{"===A(0).content&&(n++,f(A(0),"property-mutation"),i.length>0)){var s=h(/^\{$/,/^\}$/);if(-1===s)continue;for(var c=n;c<s;c++){var l=e[c];"variable"===l.type&&i.indexOf(l.content)>=0&&f(l,"variable-input")}}}}function A(t){return e[n+t]}function u(t,e){e=e||0;for(var n=0;n<t.length;n++){var r=A(n+e);if(!r||r.type!==t[n])return!1}return!0}function h(t,r){for(var i=1,a=n;a<e.length;a++){var o=e[a],s=o.content;if("punctuation"===o.type&&"string"==typeof s)if(t.test(s))i++;else if(r.test(s)&&0===--i)return a}return-1}function f(t,e){var n=t.alias;n?Array.isArray(n)||(t.alias=n=[n]):t.alias=n=[],n.push(e)}})),function(t){t.languages.ruby=t.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:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var e={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.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;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:e,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:e,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:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:e,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:e,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:e,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:e,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:e,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.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)/}),t.languages.rb=t.languages.ruby}(Prism),function(t){var e={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",i=RegExp(r+"-"+r),a={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:i,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":e,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":e,"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":a}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":a}},{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(t){function e(t,e){return"___"+t.toUpperCase()+e+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,i,a){if(n.language===r){var o=n.tokenStack=[];n.code=n.code.replace(i,(function(t){if("function"==typeof a&&!a(t))return t;for(var i,s=o.length;-1!==n.code.indexOf(i=e(r,s));)++s;return o[s]=t,i})),n.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=t.languages[r];var i=0,a=Object.keys(n.tokenStack);!function o(s){for(var c=0;c<s.length&&!(i>=a.length);c++){var l=s[c];if("string"==typeof l||l.content&&"string"==typeof l.content){var A=a[i],u=n.tokenStack[A],h="string"==typeof l?l:l.content,f=e(r,A),d=h.indexOf(f);if(d>-1){++i;var p=h.substring(0,d),g=new t.Token(r,t.tokenize(u,n.grammar),"language-"+r,u),m=h.substring(d+f.length),y=[];p&&y.push.apply(y,o([p])),y.push(g),m&&y.push.apply(y,o([m])),"string"==typeof l?s.splice.apply(s,[c,1].concat(y)):l.content=y}}else l.content&&o(l.content)}return s}(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(t){t.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:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.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:t.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:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var e=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],n={},r=0,i=e.length;r<i;r++){var a=e[r];a="string"==typeof a?{filter:a,language:a}:a,t.languages[a.language]&&(n["filter-"+a.filter]={pattern:RegExp("((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+".replace("{{filter_name}}",(function(){return a.filter}))),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[a.language,"language-"+a.language],inside:t.languages[a.language]}}})}t.languages.insertBefore("haml","filter",n)}(Prism),Prism.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/},function(t){var e=/\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:/\./}};t.languages.java=t.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:e,function:[t.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}}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.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:e,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 e.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json,function(t){var e=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;t.languages.json5=t.languages.extend("json",{property:[{pattern:RegExp(e.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:e,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/},function(t){var e=["$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="(?:"+(e=e.map((function(t){return t.replace("$","\\$")}))).join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.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)?$")}}}),t.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}},t.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(t){var e=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;t.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:e}},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:e}},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(t){var e=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,a=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:e,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:a};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},s=[{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}}];t.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:e,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:a}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",(function(e){if(/<\?/.test(e.code)){t.languages["markup-templating"].buildPlaceholders(e,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),t.hooks.add("after-tokenize",(function(e){t.languages["markup-templating"].tokenizePlaceholders(e,"php")}))}(Prism),function(t){var e=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),t.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:e}},builtin:e,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(Prism),Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,Prism.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/},function(t){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)e=e.replace(/<self>/g,(function(){return e}));e=e.replace(/<self>/g,(function(){return/[^\s\S]/.source})),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string}(Prism),Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(t){t.languages.typescript=t.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/}),t.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 t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.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:e}}}}),t.languages.ts=t.languages.typescript}(Prism),function(t){var e=t.util.clone(t.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function a(t,e){return t=t.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return i})),RegExp(t,e)}i=a(i).source,t.languages.jsx=t.languages.extend("markup",e),t.languages.jsx.tag.pattern=a(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=e.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:a(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var o=function(t){return t?"string"==typeof t?t:"string"==typeof t.content?t.content:t.content.map(o).join(""):""},s=function(e){for(var n=[],r=0;r<e.length;r++){var i=e[r],a=!1;if("string"!=typeof i&&("tag"===i.type&&i.content[0]&&"tag"===i.content[0].type?"</"===i.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===o(i.content[0].content[1])&&n.pop():"/>"===i.content[i.content.length-1].content||n.push({tagName:o(i.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===i.type&&"{"===i.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===i.type&&"}"===i.content?n[n.length-1].openedBraces--:a=!0),(a||"string"==typeof i)&&n.length>0&&0===n[n.length-1].openedBraces){var c=o(i);r<e.length-1&&("string"==typeof e[r+1]||"plain-text"===e[r+1].type)&&(c+=o(e[r+1]),e.splice(r+1,1)),r>0&&("string"==typeof e[r-1]||"plain-text"===e[r-1].type)&&(c=o(e[r-1])+c,e.splice(r-1,1),r--),e[r]=new t.Token("plain-text",c,null,c)}i.content&&"string"!=typeof i.content&&s(i.content)}};t.hooks.add("after-tokenize",(function(t){"jsx"!==t.language&&"tsx"!==t.language||s(t.tokens)}))}(Prism),function(t){var e=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",e),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var n=t.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(Prism),function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var e=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:e,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:e,operator:n,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.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(t){var e="\\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("\\$"+e),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("(\\{)"+e),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})/};t.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;|&]|[<>]\\()"+e),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("\\$?"+e),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=t.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],a=r.variable[1].inside,o=0;o<i.length;o++)a[i[o]]=t.languages.bash[i[o]];t.languages.shell=t.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(t){t.inside.interpolation.inside=Prism.languages.swift})),Prism.languages["visual-basic"]={comment:{pattern:/(?:[']|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};var Bf=["javascript","typescript","html","css","shell","python","golang","java","c","c++","c#","php","ruby","swift","kotlin","scala","rust","dart","elixir","haskell","lua","perl","r","sql"];function Tf(t,e){var n=fn(t);if(jr){var r=jr(t);e&&(r=Xr(r).call(r,(function(e){return ii(t,e).enumerable}))),n.push.apply(n,r)}return n}function kf(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}xf.manual=!0;var Sf={figure:"figure"},If=function(t){ca(n,t);var e=kf(n);function n(t){t.externals;var r,i,a=t.config;(Ji(this,n),r=e.call(this,{needCache:!0}),n.inlineCodeCache={},r.codeCache={},r.customLang=[],r.customParser={},r.wrap=a.wrap,r.lineNumber=a.lineNumber,r.copyCode=a.copyCode,r.mermaid=a.mermaid,r.indentedCodeBlock=void 0===a.indentedCodeBlock||a.indentedCodeBlock,r.INLINE_CODE_REGEX=/(`+)(.+?(?:\n.+?)*?)\1/g,a&&a.customRenderer)&&(r.customLang=yu(i=fn(a.customRenderer)).call(i,(function(t){return t.toLowerCase()})),r.customParser=function(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?ji(n=Tf(Object(i),!0)).call(n,(function(e){Fa(t,e,i[e])})):Yi?Wi(t,Yi(i)):ji(r=Tf(Object(i))).call(r,(function(e){Xi(t,e,ii(i,e))}))}return t}({},a.customRenderer));return r.customHighlighter=a.highlighter,r}return ta(n,[{key:"$codeCache",value:function(t,e){return t&&e&&(this.codeCache[t]=e),this.codeCache[t]?this.codeCache[t]:(this.codeCache.length>40&&(this.codeCache.length=0),!1)}},{key:"parseCustomLanguage",value:function(t,e,n){var r,i,a,o,s,c=this.customParser[t];if(!c||"function"!=typeof c.render)return!1;var l=c.render(e,n.sign,this.$engine,this.mermaid);if(!l)return!1;var A=Sf[c.constructor.TYPE]||"div";return Da(r=Da(i=Da(a=Da(o=Da(s="<".concat(A,' data-sign="')).call(s,n.sign,'" data-type="')).call(o,t,'" data-lines="')).call(a,n.lines,'">')).call(i,l,"</")).call(r,A,">")}},{key:"fillTag",value:function(t){var e=[];return yu(t).call(t,(function(t){if(!t)return"";for(var n=t;e.length;){var r,i=e.pop();n=Da(r="".concat(i)).call(r,n)}var a=n.match(/<span class="(.+?)">|<\/span>/g),o=0;if(!a)return n;for(;a.length;){var s=a.pop();/<\/span>/.test(s)?o+=1:o?o-=1:e.unshift(s.match(/<span class="(.+?)">/)[0])}for(var c=0;c<e.length;c++)n="".concat(n,"</span>");return n}))}},{key:"renderLineNumber",value:function(t){if(!this.lineNumber)return t;var e=t.split("\n");return e.pop(),e=this.fillTag(e),'<span class="code-line">'.concat(e.join('</span>\n<span class="code-line">'),"</span>")}},{key:"isInternalCustomLangCovered",value:function(t){var e;return-1!==Zl(e=this.customLang).call(e,t)}},{key:"computeLines",value:function(t,e,n){var r=e,i=this.getLineCount(t,r);return{sign:this.$engine.md5(t.replace(/^\n+/,"")+i),lines:i}}},{key:"appendMermaid",value:function(t,e){var n=t,r=e;if(/^flow([ ](TD|LR))?$/i.test(r)&&!this.isInternalCustomLangCovered(r)){var i,a=r.match(/^flow(?:[ ](TD|LR))?$/i)||[];n=Da(i="graph ".concat(a[1]||"TD","\n")).call(i,n),r="mermaid"}return/^seq$/i.test(r)&&!this.isInternalCustomLangCovered(r)&&(n="sequenceDiagram\n".concat(n),r="mermaid"),"mermaid"===r&&(n=n.replace(/(^[\s]*)stateDiagram-v2\n/,"$1stateDiagram\n")),[n,r]}},{key:"wrapCode",value:function(t,e){var n,r;return Da(n=Da(r='<code class="language-'.concat(e)).call(r,this.wrap?" wrap":"",'">')).call(n,t,"</code>")}},{key:"renderCodeBlock",value:function(t,e,n,r){var i,a,o,s,c,l=t,A=e;return this.customHighlighter?l=this.customHighlighter(l,A):(A&&xf.languages[A]||(A="javascript"),l=xf.highlight(l,xf.languages[A],A),l=this.renderLineNumber(l)),l=Da(i=Da(a=Da(o=Da(s=Da(c='<div data-sign="'.concat(n,'" data-type="codeBlock" data-lines="')).call(c,r,'">\n ')).call(s,function(t){var e=yu(Bf).call(Bf,(function(e){var n,r;return t===e?Da(r='<option value="'.concat(e,'" selected="selected">')).call(r,e,"</option>"):Da(n='<option value="'.concat(e,'">')).call(n,e,"</option>")}));return'<select id="code-preview-lang-select" style="display:none;" class="'.concat("cherry-code-preview-lang-select",'">\n <option value="" selected disabled hidden>Choose here</option>\n ').concat(e.join(""),"\n </select>")}(e),"\n ")).call(o,this.copyCode?'<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(a,A,'">')).call(i,this.wrapCode(l,A),"</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(t){var e=this;return this.indentedCodeBlock?this.$recoverCodeInIndent(t).replace(this.$getIndentedCodeReg(),(function(t,n){var r,i,a=(t.match(/\n/g)||[]).length,o=e.$engine.md5(t),s=Da(r=Da(i='<pre data-sign="'.concat(o,'" data-lines="')).call(i,a,'"><code>')).call(r,Vu(n.replace(/\n( {4}|\t)/g,"\n")),"</code></pre>");return vu(t,e.pushCache(s,o,a))})):t}},{key:"$replaceCodeInIndent",value:function(t){return this.indentedCodeBlock?t.replace(this.$getIndentedCodeReg(),(function(t){return t.replace(/`/g,"~~~IndentCode")})):t}},{key:"$recoverCodeInIndent",value:function(t){return this.indentedCodeBlock?t.replace(this.$getIndentedCodeReg(),(function(t){return t.replace(/~~~IndentCode/g,"`")})):t}},{key:"beforeMakeHtml",value:function(t,e,n){var r=this,i=t;return i=(i=(i=this.$replaceCodeInIndent(i)).replace(this.RULE.reg,(function(t,e,n,i,a,o){var s,c,l;function A(t){if(n){var e=new RegExp("^\n*",""),r=t.match(e)[0];t=r+n+t.replace(e,(function(t){return""}))}return t}var u=o,h=r.computeLines(t,e,o),f=h.sign,d=h.lines,p=r.$codeCache(f);if(p&&""!==p)return A(r.getCacheWithSpace(r.pushCache(p,f,d),t));u=(u=(u=r.$recoverCodeInIndent(u)).replace(/~D/g,"$")).replace(/~T/g,"~");var g=null!==(s=null==e||null===(c=e.match(/[ ]/g))||void 0===c?void 0:c.length)&&void 0!==s?s:0;if(g>0){var m=new RegExp("(^|\\n)[ ]{1,".concat(g,"}"),"g");u=u.replace(m,"$1")}if(n){var y=new RegExp("(^|\\n)".concat(n),"g");u=u.replace(y,"$1")}var v=Xc(a).call(a);if(/^(math|katex|latex)$/i.test(v)&&!r.isInternalCustomLangCovered(v)){var b,_=t.match(/^\s*/g);return Da(b="".concat(_,"~D~D\n")).call(b,u,"~D~D")}var w=r.appendMermaid(u,v),E=Jl(w,2);return u=E[0],v=E[1],-1!==Zl(l=r.customLang).call(l,v.toLowerCase())&&(p=r.parseCustomLanguage(v,u,{lines:d,sign:f}))&&""!==p?(r.$codeCache(f,p),r.getCacheWithSpace(r.pushCache(p,f,d),t)):(u=u.replace(/~X/g,"\\`"),p=(p=r.renderCodeBlock(u,v,f,d)).replace(/\\/g,"\\\\"),p=r.$codeCache(f,p),A(r.getCacheWithSpace(r.pushCache(p,f,d),t)))}))).replace(GA(!0),(function(t){var e;return yu(e=t.split("|")).call(e,(function(t){return r.makeInlineCode(t)})).join("|").replace(/`/g,"\\`")})),i=this.makeInlineCode(i),i=this.$getIndentCodeBlock(i)}},{key:"makeInlineCode",value:function(t){var e=this,r=t;return this.INLINE_CODE_REGEX.test(r)&&(r=(r=(r=r.replace(/\\`/g,"~~not~inlineCode")).replace(this.INLINE_CODE_REGEX,(function(t,r,i){if("`"===Xc(i).call(i))return t;var a=i.replace(/~~not~inlineCode/g,"\\`");a=(a=e.$replaceSpecialChar(a)).replace(/\\/g,"\\\\");var o="<code>".concat(Vu(a),"</code>"),s=e.$engine.md5(o);return n.inlineCodeCache[s]=o,"~~CODE".concat(s,"$")}))).replace(/~~not~inlineCode/g,"\\`")),r}},{key:"makeHtml",value:function(t){return t}},{key:"$replaceSpecialChar",value:function(t){var e=t.replace(/~Q/g,"\\~");return e=(e=(e=(e=e.replace(/~Y/g,"\\!")).replace(/~Z/g,"\\#")).replace(/~&/g,"\\&")).replace(/~K/g,"\\/")}},{key:"rule",value:function(){return jA()}},{key:"mounted",value:function(t){}}]),n}(nh);function Lf(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}Fa(If,"HOOK_NAME","codeBlock"),Fa(If,"inlineCodeCache",{});var Ff=function(t){ca(n,t);var e=Lf(n);function n(){return Ji(this,n),e.apply(this,arguments)}return ta(n,[{key:"makeHtml",value:function(t){return t}},{key:"afterMakeHtml",value:function(t){var e=t;return fn(If.inlineCodeCache).length>0&&(e=e.replace(/~~CODE([0-9a-zA-Z]+)\$/g,(function(t,e){return If.inlineCodeCache[e]})),If.inlineCodeCache={}),e}},{key:"rule",value:function(){var t={begin:"(`+)[ ]*",end:"[ ]*\\1",content:"(.+?(?:\\n.+?)*?)"};return t.reg=LA(t,"g"),t}}]),n}(nh);Fa(Ff,"HOOK_NAME","inlineCode");var Nf=r((function(t){!function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(t,e){return t<<e|t>>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&n.rotl(t,8)|4278255360&n.rotl(t,24);for(var e=0;e<t.length;e++)t[e]=n.endian(t[e]);return t},randomBytes:function(t){for(var e=[];t>0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],n=0,r=0;n<t.length;n++,r+=8)e[r>>>5]|=t[n]<<24-r%32;return e},wordsToBytes:function(t){for(var e=[],n=0;n<32*t.length;n+=8)e.push(t[n>>>5]>>>24-n%32&255);return e},bytesToHex:function(t){for(var e=[],n=0;n<t.length;n++)e.push((t[n]>>>4).toString(16)),e.push((15&t[n]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],n=0;n<t.length;n+=2)e.push(parseInt(t.substr(n,2),16));return e},bytesToBase64:function(t){for(var n=[],r=0;r<t.length;r+=3)for(var i=t[r]<<16|t[r+1]<<8|t[r+2],a=0;a<4;a++)8*r+6*a<=8*t.length?n.push(e.charAt(i>>>6*(3-a)&63)):n.push("=");return n.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,i=0;r<t.length;i=++r%4)0!=i&&n.push((e.indexOf(t.charAt(r-1))&Math.pow(2,-2*i+8)-1)<<2*i|e.indexOf(t.charAt(r))>>>6-2*i);return n}};t.exports=n}()})),Of={utf8:{stringToBytes:function(t){return Of.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(Of.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],n=0;n<t.length;n++)e.push(255&t.charCodeAt(n));return e},bytesToString:function(t){for(var e=[],n=0;n<t.length;n++)e.push(String.fromCharCode(t[n]));return e.join("")}}},Df=Of,Mf=function(t){return null!=t&&(Rf(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&Rf(t.slice(0,0))}(t)||!!t._isBuffer)};function Rf(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var Uf=r((function(t){!function(){var e=Nf,n=Df.utf8,r=Mf,i=Df.bin,a=function(t,o){t.constructor==String?t=o&&"binary"===o.encoding?i.stringToBytes(t):n.stringToBytes(t):r(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||t.constructor===Uint8Array||(t=t.toString());for(var s=e.bytesToWords(t),c=8*t.length,l=1732584193,A=-271733879,u=-1732584194,h=271733878,f=0;f<s.length;f++)s[f]=16711935&(s[f]<<8|s[f]>>>24)|4278255360&(s[f]<<24|s[f]>>>8);s[c>>>5]|=128<<c%32,s[14+(c+64>>>9<<4)]=c;var d=a._ff,p=a._gg,g=a._hh,m=a._ii;for(f=0;f<s.length;f+=16){var y=l,v=A,b=u,_=h;l=d(l,A,u,h,s[f+0],7,-680876936),h=d(h,l,A,u,s[f+1],12,-389564586),u=d(u,h,l,A,s[f+2],17,606105819),A=d(A,u,h,l,s[f+3],22,-1044525330),l=d(l,A,u,h,s[f+4],7,-176418897),h=d(h,l,A,u,s[f+5],12,1200080426),u=d(u,h,l,A,s[f+6],17,-1473231341),A=d(A,u,h,l,s[f+7],22,-45705983),l=d(l,A,u,h,s[f+8],7,1770035416),h=d(h,l,A,u,s[f+9],12,-1958414417),u=d(u,h,l,A,s[f+10],17,-42063),A=d(A,u,h,l,s[f+11],22,-1990404162),l=d(l,A,u,h,s[f+12],7,1804603682),h=d(h,l,A,u,s[f+13],12,-40341101),u=d(u,h,l,A,s[f+14],17,-1502002290),l=p(l,A=d(A,u,h,l,s[f+15],22,1236535329),u,h,s[f+1],5,-165796510),h=p(h,l,A,u,s[f+6],9,-1069501632),u=p(u,h,l,A,s[f+11],14,643717713),A=p(A,u,h,l,s[f+0],20,-373897302),l=p(l,A,u,h,s[f+5],5,-701558691),h=p(h,l,A,u,s[f+10],9,38016083),u=p(u,h,l,A,s[f+15],14,-660478335),A=p(A,u,h,l,s[f+4],20,-405537848),l=p(l,A,u,h,s[f+9],5,568446438),h=p(h,l,A,u,s[f+14],9,-1019803690),u=p(u,h,l,A,s[f+3],14,-187363961),A=p(A,u,h,l,s[f+8],20,1163531501),l=p(l,A,u,h,s[f+13],5,-1444681467),h=p(h,l,A,u,s[f+2],9,-51403784),u=p(u,h,l,A,s[f+7],14,1735328473),l=g(l,A=p(A,u,h,l,s[f+12],20,-1926607734),u,h,s[f+5],4,-378558),h=g(h,l,A,u,s[f+8],11,-2022574463),u=g(u,h,l,A,s[f+11],16,1839030562),A=g(A,u,h,l,s[f+14],23,-35309556),l=g(l,A,u,h,s[f+1],4,-1530992060),h=g(h,l,A,u,s[f+4],11,1272893353),u=g(u,h,l,A,s[f+7],16,-155497632),A=g(A,u,h,l,s[f+10],23,-1094730640),l=g(l,A,u,h,s[f+13],4,681279174),h=g(h,l,A,u,s[f+0],11,-358537222),u=g(u,h,l,A,s[f+3],16,-722521979),A=g(A,u,h,l,s[f+6],23,76029189),l=g(l,A,u,h,s[f+9],4,-640364487),h=g(h,l,A,u,s[f+12],11,-421815835),u=g(u,h,l,A,s[f+15],16,530742520),l=m(l,A=g(A,u,h,l,s[f+2],23,-995338651),u,h,s[f+0],6,-198630844),h=m(h,l,A,u,s[f+7],10,1126891415),u=m(u,h,l,A,s[f+14],15,-1416354905),A=m(A,u,h,l,s[f+5],21,-57434055),l=m(l,A,u,h,s[f+12],6,1700485571),h=m(h,l,A,u,s[f+3],10,-1894986606),u=m(u,h,l,A,s[f+10],15,-1051523),A=m(A,u,h,l,s[f+1],21,-2054922799),l=m(l,A,u,h,s[f+8],6,1873313359),h=m(h,l,A,u,s[f+15],10,-30611744),u=m(u,h,l,A,s[f+6],15,-1560198380),A=m(A,u,h,l,s[f+13],21,1309151649),l=m(l,A,u,h,s[f+4],6,-145523070),h=m(h,l,A,u,s[f+11],10,-1120210379),u=m(u,h,l,A,s[f+2],15,718787259),A=m(A,u,h,l,s[f+9],21,-343485551),l=l+y>>>0,A=A+v>>>0,u=u+b>>>0,h=h+_>>>0}return e.endian([l,A,u,h])};a._ff=function(t,e,n,r,i,a,o){var s=t+(e&n|~e&r)+(i>>>0)+o;return(s<<a|s>>>32-a)+e},a._gg=function(t,e,n,r,i,a,o){var s=t+(e&r|n&~r)+(i>>>0)+o;return(s<<a|s>>>32-a)+e},a._hh=function(t,e,n,r,i,a,o){var s=t+(e^n^r)+(i>>>0)+o;return(s<<a|s>>>32-a)+e},a._ii=function(t,e,n,r,i,a,o){var s=t+(n^(e|~r))+(i>>>0)+o;return(s<<a|s>>>32-a)+e},a._blocksize=16,a._digestsize=16,t.exports=function(t,n){if(null==t)throw new Error("Illegal argument "+t);var r=e.wordsToBytes(a(t,n));return n&&n.asBytes?r:n&&n.asString?i.bytesToString(r):e.bytesToHex(r)}}()})),Pf={},Hf=/^cherry-inner:\/\/([0-9a-f]+)$/i;var Qf=function(){function t(){Ji(this,t)}return ta(t,null,[{key:"isInnerLink",value:function(t){return Hf.test(t)}},{key:"set",value:function(t){var e=Uf(t);return Pf[e]=t,"cherry-inner://".concat(e)}},{key:"get",value:function(t){var e,n=null!==(e=t.match(Hf))&&void 0!==e?e:[],r=Jl(n,2)[1];if(r)return Pf[r]}},{key:"replace",value:function(t,e){var n,r=null!==(n=t.match(Hf))&&void 0!==n?n:[],i=Jl(r,2)[1];if(i)return Pf[i]=e,t}},{key:"restoreAll",value:function(e){return e.replace(/cherry-inner:\/\/([0-9a-f]+)/gi,(function(e){return t.get(e)||e}))}},{key:"clear",value:function(){Pf={}}}]),t}();function Gf(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var jf=function(t){ca(n,t);var e=Gf(n);function n(t){var r,i=t.config,a=t.globalConfig;return Ji(this,n),(r=e.call(this,{config:i})).urlProcessor=a.urlProcessor,r.target=i.target?'target="'.concat(i.target,'"'):i.openNewPage?'target="_blank"':"",r.rel=i.rel?'rel="'.concat(i.rel,'"'):"",r}return ta(n,[{key:"checkBrackets",value:function(t){for(var e=[],n="[".concat(t,"]"),r=function(t){return 1&eA(n).call(n,0,t).match(/\\*$/)[0].length},i=n.length-1;n[i]&&(i!==n.length-1||!r(i));i--)if("]"!==n[i]||r(i)||e.push("]"),"["===n[i]&&!r(i)&&(e.pop(),!e.length))return{isValid:!0,coreText:eA(n).call(n,i+1,n.length-1),extraLeadingChar:eA(n).call(n,0,i)};return{isValid:!1,coreText:t,extraLeadingChar:""}}},{key:"toHtml",value:function(t,e,n,r,i,a,o){var s=void 0===r?"ref":"url",c="";if("ref"===s)return t;if("url"===s){var l,A=this.checkBrackets(n),u=A.isValid,h=A.coreText,f=A.extraLeadingChar;if(!u)return t;c=i&&""!==Xc(i).call(i)?' title="'.concat(Vu(i.replace(/["']/g,"")),'"'):"",o?c+=' target="'.concat(o.replace(/{target\s*=\s*(.*?)}/,"$1"),'"'):this.target&&(c+=" ".concat(this.target));var d,p,g,m,y=Xc(r).call(r).replace(/~1D/g,"~D"),v=h.replace(/~1D/g,"~D");return Ju(y)?(y=Zu(y=this.urlProcessor(y,"link")),Da(d=Da(p=Da(g=Da(m="".concat(e+f,'<a href="')).call(m,Qf.set(y),'" ')).call(g,this.rel," ")).call(p,c,">")).call(d,v,"</a>")):Da(l="".concat(e+f,"<span>")).call(l,n,"</span>")}return t}},{key:"toStdMarkdown",value:function(t){return t}},{key:"makeHtml",value:function(t){var e,n,r=t.replace(this.RULE.reg,(function(t){return t.replace(/~D/g,"~1D")}));FA()?r=r.replace(this.RULE.reg,Pa(e=this.toHtml).call(e,this)):r=hf(r,this.RULE.reg,Pa(n=this.toHtml).call(n,this),!0,1);return r=r.replace(this.RULE.reg,(function(t){return t.replace(/~1D/g,"~D")}))}},{key:"rule",value:function(){var t={begin:FA()?"((?<!\\\\))":"(^|[^\\\\])",content:["\\[([^\\n]+?)\\]","[ \\t]*","".concat("(?:\\(([^\\s)]+)(?:[ \\t]((?:\".*?\")|(?:'.*?')))?\\)|\\[(").concat("(?:[^\\n]*?\\S[^\\n]*?)",")\\]")+")","(\\{target\\s*=\\s*(_blank|_parent|_self|_top)\\})?"].join(""),end:""};return t.reg=LA(t,"g"),t}}]),n}(fu);Fa(jf,"HOOK_NAME","link");var $f=l.RangeError;Xt({target:"String",proto:!0},{repeat:function(t){var e=pn(M(this)),n="",r=ke(t);if(r<0||r==1/0)throw $f("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}});var Kf=Wr("String").repeat,Yf=String.prototype,zf=function(t){var e=t.repeat;return"string"==typeof t||t===Yf||G(Yf,t)&&e===Yf.repeat?Kf:e};function Wf(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var Vf=function(t){ca(n,t);var e=Wf(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0},i=r.config;return Ji(this,n),t=e.call(this,{config:i}),i?(t.allowWhitespace=!!i.allowWhitespace,t):Ta(t)}return ta(n,[{key:"makeHtml",value:function(t,e){var n=function(t,n,r,i){var a,o,s,c,l,A=r.length%2==1?"em":"strong",u=Math.floor(r.length/2),h=zf(a="<strong>").call(a,u),f=zf(o="</strong>").call(o,u);return"em"===A&&(h+="<em>",f="</em>".concat(f)),Da(s=Da(c=Da(l="".concat(n)).call(l,h)).call(c,e(i).html.replace(/_/g,"~U"))).call(s,f)},r=t;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(t,n,r,i,a,o){var s,c,l,A,u;if(""===Xc(i).call(i))return t;var h=r.length%2==1?"em":"strong",f=Math.floor(r.length/2),d=zf(s="<strong>").call(s,f),p=zf(c="</strong>").call(c,f),g=e(i).html;return"em"===h&&(d+="<em>",p="</em>".concat(p)),Da(l=Da(A=Da(u="".concat(n)).call(u,d)).call(A,g)).call(l,p)}))).replace(/~U/g,"_")}},{key:"test",value:function(t,e){return this.RULE[e].reg&&this.RULE[e].reg.test(t)}},{key:"rule",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0},e=t.config,n=!!e&&!!e.allowWhitespace,r=n?"(?:.*?)(?:(?:\\n.*?)*?)":"(?:(?:\\S|(?:\\S.*?\\S))(?:[ \\t]*\\n.*?)*?)",i={begin:"(^|[^\\\\])(\\*+)",content:"(".concat(r,")"),end:"\\2"},a={begin:"(^|".concat(DA,")(_+)"),content:"(".concat(r,")"),end:"\\2(?=".concat(DA,"|$)")};return i.reg=LA(i,"g"),a.reg=LA(a,"g"),{asterisk:i,underscore:a}}}]),n}(fu);function qf(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}Fa(Vf,"HOOK_NAME","fontEmphasis");var Xf=function(t){ca(n,t);var e=qf(n);function n(t){var r;return Ji(this,n),(r=e.call(this)).initBrReg(t.globalConfig.classicBr),r}return ta(n,[{key:"makeHtml",value:function(t,e){var n=this;return this.test(t)?t.replace(this.RULE.reg,(function(t,r,i){var a;if(n.isContainsCache(t,!0))return t;var o,s=function(t){var r,i,a,o,s,c;if(""===Xc(t).call(t))return"";var l=e(t),A=l.sign,u=l.html,h="p";new RegExp("<(".concat(Yu,")[^>]*>"),"i").test(u)&&(h="div");var f=n.getLineCount(t,t);return Da(r=Da(i=Da(a=Da(o=Da(s=Da(c="<".concat(h,' data-sign="')).call(c,A)).call(s,f,'" data-type="')).call(o,h,'" data-lines="')).call(a,f,'">')).call(i,n.$cleanParagraph(u),"</")).call(r,h,">")};return n.isContainsCache(i)?n.makeExcludingCached(Da(o="".concat(r)).call(o,i),s):s(Da(a="".concat(r)).call(a,i))})):t}},{key:"rule",value:function(){var t={begin:"(?:^|\\n)(\\n*)",end:"(?=\\s*$|\\n\\n)",content:"([\\s\\S]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}(nh);Fa(Xf,"HOOK_NAME","normalParagraph");var Jf=function(t){return void 0!==t&&(ut(t,"value")||ut(t,"writable"))};Xt({target:"Reflect",stat:!0},{get:function t(e,n){var r,i,a=arguments.length<3?e:arguments[2];return jt(e)===a?e[n]:(r=It.f(e,n))?Jf(r)?r.value:void 0===r.get?void 0:C(r.get,a):U(i=di(e))?t(i,n,a):void 0}});var Zf=P.Reflect.get,td=ri,ed=r((function(t){t.exports=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Ia(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports}));n(ed);var nd=n(r((function(t){function e(){return"undefined"!=typeof Reflect&&Zf?(t.exports=e=Zf,t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=e=function(t,e,n){var r=ed(t,e);if(r){var i=td(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},t.exports.__esModule=!0,t.exports.default=t.exports),e.apply(this,arguments)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})));function rd(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var id=/[\s\-_]/,ad=/[A-Za-z]/,od=/[0-9]/,sd=function(t){ca(n,t);var e=rd(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0,externals:void 0},i=(r.externals,r.config);return Ji(this,n),(t=e.call(this,{needCache:!0})).strict=!i||!!i.strict,t.RULE=t.rule(),t.headerIDCache=[],t.headerIDCounter={},t.config=i||{},t}return ta(n,[{key:"$parseTitleText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"string"!=typeof t?"":t.replace(/<.*?>/g,"").replace(/&#60;/g,"<").replace(/&#62;/g,">")}},{key:"$generateId",value:function(t){for(var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t.length,r="",i=0;i<n;i++){var a=t.charAt(i);if(ad.test(a))r+=e?a.toLowerCase():a;else if(od.test(a))r+=a;else if(id.test(a))r+=r.length<1||"-"!==r.charAt(r.length-1)?"-":"";else if(a.charCodeAt(0)>255)try{r+=encodeURIComponent(a)}catch(t){}}return r}},{key:"generateIDNoDup",value:function(t){var e,n=t.replace(/&#60;/g,"<").replace(/&#62;/g,">"),r=this.$generateId(n,!0),i=Zl(e=this.headerIDCache).call(e,r);if(-1!==i)this.headerIDCounter[i]+=1,r+="-".concat(this.headerIDCounter[i]+1);else{var a=this.headerIDCache.push(r);this.headerIDCounter[a-1]=1}return r}},{key:"$wrapHeader",value:function(t,e,n,r){var i,a,o,s,c,l,A,u=r(Xc(t).call(t)),h=u.html,f=h.match(/\s+\{#([A-Za-z0-9-]+)\}$/);null!==f&&(h=h.substring(0,f.index),A=Jl(f,2)[1]);var d=this.$parseTitleText(h);if(!A){A=this.generateIDNoDup(d.replace(/~fn#([0-9]+)#/g,""))}var p="safe_".concat(A),g=this.$engine.md5(Da(i=Da(a=Da(o="".concat(e,"-")).call(o,u.sign,"-")).call(a,A,"-")).call(i,n));return{html:[Da(s=Da(c=Da(l="<h".concat(e,' id="')).call(l,p,'" data-sign="')).call(c,g,'" data-lines="')).call(s,n,'">'),this.$getAnchor(A),"".concat(h),"</h".concat(e,">")].join(""),sign:"".concat(g)}}},{key:"$getAnchor",value:function(t){return"none"===(this.config.anchorStyle||"default")?"":'<a class="anchor" href="#'.concat(t,'"></a>')}},{key:"beforeMakeHtml",value:function(t){var e=this,n=t;return this.test(n,"atx")&&(n=n.replace(this.RULE.atx.reg,(function(t,n,r,i){return""===Xc(i).call(i)?t:e.getCacheWithSpace(e.pushCache(t),t,!0)}))),this.test(n,"setext")&&(n=n.replace(this.RULE.setext.reg,(function(t,n,r){return""===Xc(r).call(r)||e.isContainsCache(r)?t:e.getCacheWithSpace(e.pushCache(t),t,!0)}))),n}},{key:"makeHtml",value:function(t,e){var n=this,r=this.restoreCache(t);return this.test(r,"atx")&&(r=r.replace(this.RULE.atx.reg,(function(t,r,i,a){var o=bu(r,n.getLineCount(t.replace(/^\n+/,""))),s=a.replace(/\s+#+\s*$/,""),c=n.$wrapHeader(s,i.length,o,e),l=c.html,A=c.sign;return n.getCacheWithSpace(n.pushCache(l,A,o),t,!0)}))),this.test(r,"setext")&&(r=r.replace(this.RULE.setext.reg,(function(t,r,i,a){if(n.isContainsCache(i))return t;var o=bu(r,n.getLineCount(t.replace(/^\n+/,""))),s="-"===a[0]?2:1,c=n.$wrapHeader(i,s,o,e),l=c.html,A=c.sign;return n.getCacheWithSpace(n.pushCache(l,A,o),t,!0)}))),r}},{key:"afterMakeHtml",value:function(t){var e=nd(La(n.prototype),"afterMakeHtml",this).call(this,t);return this.headerIDCache=[],this.headerIDCounter={},e}},{key:"test",value:function(t,e){return this.RULE[e].reg&&this.RULE[e].reg.test(t)}},{key:"rule",value:function(){var t={begin:"(?:^|\\n)(\\n*)",content:["(?:\\h*","(.+)",")\\n","(?:\\h*","([=]+|[-]+)",")"].join(""),end:"(?=$|\\n)"};t.reg=LA(t,"g",!0);var e={begin:"(?:^|\\n)(\\n*)(?:\\h*(#{1,6}))",content:"(.+?)",end:"(?=$|\\n)"};return this.strict&&(e.begin+="(?=\\h+)"),e.reg=LA(e,"g",!0),{setext:t,atx:e}}}]),n}(nh);function cd(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}Fa(sd,"HOOK_NAME","header");var ld=function(t){ca(n,t);var e=cd(n);function n(){return Ji(this,n),e.apply(this,arguments)}return ta(n,[{key:"rule",value:function(){var t={};return t.reg=new RegExp(""),t}},{key:"beforeMakeHtml",value:function(t){return t.replace(/\\\n/g,"\\ \n")}},{key:"afterMakeHtml",value:function(t){var e=t.replace(/~Q/g,"~");return e=(e=(e=(e=(e=e.replace(/~X/g,"`")).replace(/~Y/g,"!")).replace(/~Z/g,"#")).replace(/~&/g,"&")).replace(/~K/g,"/")}}]),n}(fu);Fa(ld,"HOOK_NAME","transfer");var Ad=l.TypeError,ud=function(t){return function(e,n,r,i){nt(n);var a=lt(e),o=O(a),s=Oe(a),c=t?s-1:0,l=t?-1:1;if(r<2)for(;;){if(c in o){i=o[c],c+=l;break}if(c+=l,t?c<0:s<=c)throw Ad("Reduce of empty array with no initial value")}for(;t?c>=0:s>c;c+=l)c in o&&(i=n(i,o[c],c,a));return i}},hd={left:ud(!1),right:ud(!0)},fd="process"==L(l.process),dd=hd.left,pd=Mi("reduce");Xt({target:"Array",proto:!0,forced:!pd||!fd&&W>79&&W<83},{reduce:function(t){var e=arguments.length;return dd(this,t,e,e>1?arguments[1]:void 0)}});var gd=Wr("Array").reduce,md=Array.prototype,yd=function(t){var e=t.reduce;return t===md||G(md,t)&&e===md.reduce?gd:e};function vd(t,e){var n=fn(t);if(jr){var r=jr(t);e&&(r=Xr(r).call(r,(function(e){return ii(t,e).enumerable}))),n.push.apply(n,r)}return n}function bd(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?ji(n=vd(Object(i),!0)).call(n,(function(e){Fa(t,e,i[e])})):Yi?Wi(t,Yi(i)):ji(r=vd(Object(i))).call(r,(function(e){Xi(t,e,ii(i,e))}))}return t}function _d(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var wd=function(t){ca(n,t);var e=_d(n);function n(t){var r,i=t.externals,a=t.config;Ji(this,n),r=e.call(this,{needCache:!0});var o=a.enableChart,s=a.chartRenderEngine,c=a.externals,l=a.chartEngineOptions,A=void 0===l?{}:l;if(r.chartRenderEngine=null,!0===o)try{r.chartRenderEngine=new s(bd(bd({},i&&c instanceof Array&&yd(c).call(c,(function(t,e){return delete A[e],bd(bd({},t),{},Fa({},e,i[e]))}),{})),{},{renderer:"svg",width:500,height:300},A))}catch(t){console.warn(t)}return r}return ta(n,[{key:"$extendColumns",value:function(t,e){var n,r=e-t.length;return r<1?t:Da(t).call(t,zf(n="&nbsp;|").call(n,r).split("|",r))}},{key:"$parseChartOptions",value:function(t){if(!this.chartRenderEngine)return null;var e=/^[ ]*:(\w+):(?:[ ]*{(.*?)}[ ]*)?$/;if(!e.test(t))return null;var n=t.match(e),r=Jl(n,3),i=r[1],a=r[2];return{type:i,options:a?a.split(/\s*,\s*/):["x","y"]}}},{key:"$parseColumnAlignRules",value:function(t){var e=["U","L","R","C"];return{textAlignRules:yu(t).call(t,(function(t){var n=Xc(t).call(t),r=0;return/^:/.test(n)&&(r+=1),/:$/.test(n)&&(r+=2),e[r]})),COLUMN_ALIGN_MAP:{L:"left",R:"right",C:"center"}}}},{key:"$parseTable",value:function(t,e,n){var r,i,a,o,s,c,l=this,A=0,u=yu(t).call(t,(function(t,e){var n=t.replace(/\\\|/g,"~CS").split("|");return""===n[0]&&n.shift(),""===n[n.length-1]&&n.pop(),1!==e&&(A=Math.max(A,n.length)),n})),h=this.$parseColumnAlignRules(u[1]),f=h.textAlignRules,d=h.COLUMN_ALIGN_MAP,p={header:[],rows:[],colLength:A,rowLength:u.length-2},g=this.$parseChartOptions(u[0][0]),m=this.$engine.md5(u[0][0]);g&&(u[0][0]="");var y=yu(r=this.$extendColumns(u[0],A)).call(r,(function(t,n){var r,i;p.header.push(t.replace(/~CS/g,"\\|"));var a=e(Xc(r=t.replace(/~CS/g,"\\|")).call(r)).html;return Da(i="~CTH".concat(f[n]||"U"," ")).call(i,a," ~CTH$")})).join(""),v=yd(u).call(u,(function(t,n,r){var i;if(r<=1)return t;var a=r-2;p.rows[a]=[];var o=yu(i=l.$extendColumns(n,A)).call(i,(function(t,n){var r,i;p.rows[a].push(t.replace(/~CS/g,"\\|"));var o=e(Xc(r=t.replace(/~CS/g,"\\|")).call(r)).html;return Da(i="~CTD".concat(f[n]||"U"," ")).call(i,o," ~CTD$")}));return t.push("~CTR".concat(o.join(""),"~CTR$")),t}),[]).join(""),b=this.$renderTable(d,y,v,n);if(!g)return b;var _=this.chartRenderEngine.render(g.type,g.options,p),w=Da(i=Da(a=Da(o=Da(s='<figure id="table_chart_'.concat(m,"_")).call(s,b.sign,'"\n data-sign="table_chart_')).call(o,m,"_")).call(a,b.sign,'" data-lines="0">')).call(i,_,"</figure>");return{html:Da(c="".concat(w)).call(c,b.html),sign:m+b.sign}}},{key:"$testHeadEmpty",value:function(t){var e=t.replace(/&nbsp;/g,"").replace(/\s/g,"").replace(/(~CTH\$|~CTHU|~CTHL|~CTHR|~CTHC)/g,"");return(null==e?void 0:e.length)>0}},{key:"$renderTable",value:function(t,e,n,r){var i,a,o,s,c=this.$testHeadEmpty(e)?Da(i="~CTHD".concat(e,"~CTHD$~CTBD")).call(i,n,"~CTBD$"):"~CTBD".concat(n,"~CTBD$"),l=this.$engine.md5(c),A=c.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(e,n,r){var i="<t".concat(n);return i+="U"===r?">":' align="'.concat(t[r],'">')})).replace(/\\\|/g,"|");return{html:Da(a=Da(o=Da(s='<div class="cherry-table-container" data-sign="'.concat(l)).call(s,r,'" data-lines="')).call(o,r,'">\n <table class="cherry-table">')).call(a,A,"</table></div>"),sign:l}}},{key:"makeHtml",value:function(t,e){var n=this,r=t;return this.test(r,"strict")&&(r=r.replace(this.RULE.strict.reg,(function(t,r){var i,a=n.getLineCount(t,r),o=yu(i=Xc(t).call(t).split(/\n/)).call(i,(function(t){var e;return Xc(e=String(t)).call(e)})),s=n.$parseTable(o,e,a),c=s.html,l=s.sign;return n.getCacheWithSpace(n.pushCache(c,l,a),t)}))),this.test(r,"loose")&&(r=r.replace(this.RULE.loose.reg,(function(t,r){var i,a=n.getLineCount(t,r),o=yu(i=Xc(t).call(t).split(/\n/)).call(i,(function(t){var e;return Xc(e=String(t)).call(e)})),s=n.$parseTable(o,e,a),c=s.html,l=s.sign;return n.getCacheWithSpace(n.pushCache(c,l,a),t)}))),r}},{key:"test",value:function(t,e){return this.RULE[e].reg&&this.RULE[e].reg.test(t)}},{key:"rule",value:function(){return GA()}}]),n}(nh);function Ed(){return"object"===("undefined"==typeof window?"undefined":Ba(window))}function Cd(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}Fa(wd,"HOOK_NAME","table");var xd=function(t){ca(n,t);var e=Cd(n);function n(t){var r;return Ji(this,n),(r=e.call(this,{needCache:!0})).classicBr=Eu("classicBr")?xu():t.globalConfig.classicBr,r}return ta(n,[{key:"beforeMakeHtml",value:function(t){var e=this;return this.test(t)?t.replace(this.RULE.reg,(function(t,n,r){var i,a;if(0===r)return t;var o,s,c=null!==(i=null===(a=n.match(/\n/g))||void 0===a?void 0:a.length)&&void 0!==i?i:0,l="br".concat(c),A="";Ed()?A=e.classicBr?Da(o='<span data-sign="'.concat(l,'" data-type="br" data-lines="')).call(o,c,'"></span>'):Da(s='<p data-sign="'.concat(l,'" data-type="br" data-lines="')).call(s,c,'">&nbsp;</p>'):A=e.classicBr?"":"<br/>";var u=e.pushCache(A,l,c);return"\n\n".concat(u,"\n")})):t}},{key:"makeHtml",value:function(t,e){return t}},{key:"rule",value:function(){var t={begin:"(?:\\n)",end:"",content:"((?:\\h*\\n){2,})"};return t.reg=LA(t,"g",!0),t}}]),n}(nh);function Bd(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}Fa(xd,"HOOK_NAME","br");var Td=function(t){ca(n,t);var e=Bd(n);function n(){return Ji(this,n),e.call(this,{needCache:!0})}return ta(n,[{key:"beforeMakeHtml",value:function(t){var e=this;return t.replace(this.RULE.reg,(function(t,n){var r,i=(n.match(/\n/g)||[]).length+1,a="hr".concat(i);return vu(t,e.pushCache(Da(r='<hr data-sign="'.concat(a,'" data-lines="')).call(r,i,'" />'),a))}))}},{key:"makeHtml",value:function(t,e){return t}},{key:"rule",value:function(){var t={begin:"(?:^|\\n)(\\n*)[ ]*",end:"(?=$|\\n)",content:"((?:-[ \\t]*){3,}|(?:\\*[ \\t]*){3,}|(?:_[ \\t]*){3,})"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}(nh);Fa(Td,"HOOK_NAME","hr");var kd={processExtendAttributesInAlt:function(t){var e=t.match(/#([0-9]+(px|em|pt|pc|in|mm|cm|ex|%)|auto)/g);if(!e)return"";var n="",r=Jl(e,2),i=r[0],a=r[1];return i&&(n=' width="'.concat(i.replace(/[ #]*/g,""),'"')),a&&(n+=' height="'.concat(a.replace(/[ #]*/g,""),'"')),n},processExtendStyleInAlt:function(t){var e=this.$getAlignment(t),n="",r=t.match(/#(border|shadow|radius|B|S|R)/g);if(r)for(var i=0;i<r.length;i++)switch(r[i]){case"#border":case"#B":e+="border:1px solid #888888;padding: 2px;box-sizing: border-box;",n+=" cherry-img-border";break;case"#shadow":case"#S":e+="box-shadow:0 2px 15px -5px rgb(0 0 0 / 50%);",n+=" cherry-img-shadow";break;case"#radius":case"#R":e+="border-radius: 15px;",n+=" cherry-img-radius"}return{extendStyles:e,extendClasses:n}},$getAlignment:function(t){var e=t.match(/#(center|right|left|float-right|float-left)/i);if(!e)return"";switch(Jl(e,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 Sd(t,e){var n=fn(t);if(jr){var r=jr(t);e&&(r=Xr(r).call(r,(function(e){return ii(t,e).enumerable}))),n.push.apply(n,r)}return n}function Id(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var Ld=function(t,e,n,r,i,a,o,s,c){var l=void 0===i?"ref":"url",A="";if("ref"===l)return e;if("url"===l){var u,h,f,d,p,g,m,y,v=kd.processExtendAttributesInAlt(r),b=kd.processExtendStyleInAlt(r),_=b.extendStyles,w=b.extendClasses;_&&(_=' style="'.concat(_,'" ')),w&&(w=' class="'.concat(w,'" ')),A=a&&""!==Xc(a).call(a)?' title="'.concat(qu(a),'"'):"",o&&(A+=" poster=".concat(Zu(o)));var E=c.urlProcessor(i,t),C=Da(u=Da(h=Da(f=Da(d=Da(p=Da(g=Da(m="<".concat(t,' src="')).call(m,Qf.set(Zu(E)),'"')).call(g,A," ")).call(p,v," ")).call(d,_," ")).call(f,w,' controls="controls">')).call(h,qu(r||""),"</")).call(u,t,">");return Da(y="".concat(n)).call(y,s.videoWrapper?s.videoWrapper(i):C)}return e},Fd=function(t){ca(n,t);var e=Id(n);function n(t){var r,i=t.config,a=t.globalConfig;return Ji(this,n),(r=e.call(this,null)).urlProcessor=a.urlProcessor,r.extendMedia={tag:["video","audio"],replacer:{video:function(t,e,n,r,o,s){return Ld("video",t,e,n,r,o,s,i,a)},audio:function(t,e,n,r,o,s){return Ld("audio",t,e,n,r,o,s,i,a)}}},r.RULE=r.rule(r.extendMedia),r}return ta(n,[{key:"toHtml",value:function(t,e,n,r,i,a,o){var s=void 0===r?"ref":"url",c="";if("ref"===s)return t;if("url"===s){var l,A,u,h,f,d,p,g,m=kd.processExtendAttributesInAlt(n),y=kd.processExtendStyleInAlt(n),v=y.extendStyles,b=y.extendClasses;v&&(v=' style="'.concat(v,'" ')),b&&(b=' class="'.concat(b,'" ')),c=i&&""!==Xc(i).call(i)?' title="'.concat(qu(i.replace(/["']/g,"")),'"'):"";var _,w="src",E=this.$engine.$cherry.options;if(E.callback&&E.callback.beforeImageMounted){var C=E.callback.beforeImageMounted(w,r);w=C.srcProp||w,_=C.src||r}var x=o?o.replace(/[{}]/g,"").replace(/([^=\s]+)=([^\s]+)/g,'$1="$2"').replace(/&/g,"&amp;"):"";return Da(l=Da(A=Da(u=Da(h=Da(f=Da(d=Da(p=Da(g="".concat(e,"<img ")).call(g,w,'="')).call(p,Qf.set(Zu(this.urlProcessor(_,"image"))),'" ')).call(d,m," ")).call(f,v," ")).call(h,b,' alt="')).call(u,qu(n||""),'"')).call(A,c," ")).call(l,x,"/>")}return t}},{key:"toMediaHtml",value:function(t,e,n,r,i,a,o,s,c){var l,A;if(!this.extendMedia.replacer[n])return t;for(var u=arguments.length,h=new Array(u>9?u-9:0),f=9;f<u;f++)h[f-9]=arguments[f];return(l=this.extendMedia.replacer[n]).call.apply(l,Da(A=[this,t,e,r,i,a,c]).call(A,h))}},{key:"makeHtml",value:function(t){var e,n,r,i,a=t;this.test(a)&&(a=FA()?a.replace(this.RULE.reg,Pa(e=this.toHtml).call(e,this)):hf(a,this.RULE.reg,Pa(n=this.toHtml).call(n,this),!0,1));this.testMedia(a)&&(a=FA()?a.replace(this.RULE.regExtend,Pa(r=this.toMediaHtml).call(r,this)):hf(a,this.RULE.regExtend,Pa(i=this.toMediaHtml).call(i,this),!0,1));return a}},{key:"testMedia",value:function(t){return this.RULE.regExtend&&this.RULE.regExtend.test(t)}},{key:"rule",value:function(t){var e={begin:FA()?"((?<!\\\\))!":"(^|[^\\\\])!",content:["\\[([^\\n]*?)\\]","[ \\t]*","".concat('(?:\\(([^"][^\\s]+?)(?:[ \\t]((?:".*?")|(?:\'.*?\')))?\\)|\\[(').concat("(?:[^\\n]*?\\S[^\\n]*?)",")\\]")+")"].join(""),end:"({[^{}]+?})?"};if(t){var n=function(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?ji(n=Sd(Object(i),!0)).call(n,(function(e){Fa(t,e,i[e])})):Yi?Wi(t,Yi(i)):ji(r=Sd(Object(i))).call(r,(function(e){Xi(t,e,ii(i,e))}))}return t}({},e);n.begin=FA()?"((?<!\\\\))!(".concat(t.tag.join("|"),")"):"(^|[^\\\\])!(".concat(t.tag.join("|"),")"),n.end="({poster=(.*)})?",e.regExtend=LA(n,"g")}return e.reg=LA(e,"g"),e}}]),n}(fu);function Nd(t,e){var n=fn(t);if(jr){var r=jr(t);e&&(r=Xr(r).call(r,(function(e){return ii(t,e).enumerable}))),n.push.apply(n,r)}return n}function Od(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?ji(n=Nd(Object(i),!0)).call(n,(function(e){Fa(t,e,i[e])})):Yi?Wi(t,Yi(i)):ji(r=Nd(Object(i))).call(r,(function(e){Xi(t,e,ii(i,e))}))}return t}function Dd(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}Fa(Fd,"HOOK_NAME","image");function Md(t){var e;if("object"!==Ba(t)&&fn(t).length<1)return"";var n=[""];return ji(e=fn(t)).call(e,(function(e){var r;n.push(Da(r="".concat(e,'="')).call(r,t[e],'"'))})),n.join(" ")}function Rd(t,e){for(var n=/^(\t|[ ])/,r=t;n.test(r);)e.space+="\t"===r[0]?4:1,r=r.replace(n,"");return r}function Ud(t,e){var n=/^((([*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)([^\r]*?)($|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)))/;return n.test(t)?t.replace(n,(function(t,n,r,i,a){return e.type=r.search(/[*+-]/g)>-1?"ul":"ol",e.listStyle=function(t){return/^[a-z]/.test(t)?"lower-greek":/^[一二三四五六七八九十]/.test(t)?"cjk-ideographic":/^I/.test(t)?"upper-roman":/^\+/.test(t)?"circle":/^\*/.test(t)?"square":"default"}(r),e.start=Number(r.replace(".",""))?Number(r.replace(".","")):1,a})):(e.type="blank",t)}var Pd=ta((function t(){Ji(this,t),this.index=0,this.space=0,this.type="",this.start=1,this.listStyle="",this.strs=[],this.children=[],this.lines=0})),Hd=function(t){ca(n,t);var e=Dd(n);function n(t){var r,i=t.config;return Ji(this,n),(r=e.call(this,{needCache:!0})).config=i||{},r.tree=[],r.emptyLines=0,r.indentSpace=Math.max(r.config.indentSpace,2),r}return ta(n,[{key:"addNode",value:function(t,e,n,r){"blank"===t.type?this.tree[r].strs.push(t.strs[0]):(this.tree[n].children.push(e),this.tree[e]=Od(Od({},t),{},{parent:n}))}},{key:"buildTree",value:function(t,e){var n=t.split("\n");this.tree=[],n.unshift("");for(var r=t.match(/\n*$/g)[0].length,i=0;i<n.length-r;i++){var a=new Pd;if(n[i]=Rd(n[i],a),n[i]=Ud(n[i],a),a.strs.push(e(n[i]).html),a.index=i,0!==i){for(var o=i-1;!this.tree[o];)o-=1;if("blank"===a.type)this.addNode(a,i,this.tree[o].parent,o);else{for(;!this.tree[o]||this.tree[o].space>a.space;)o-=1;var s=a.space,c=this.tree[o].space;s<c+this.indentSpace?this.config.listNested&&this.tree[o].type!==a.type?this.addNode(a,i,o):this.addNode(a,i,this.tree[o].parent):s<c+this.indentSpace+4?this.addNode(a,i,o):(a.type="blank",this.addNode(a,i,this.tree[o].parent,o))}}else a.space=-2,this.tree.push(a)}}},{key:"renderSubTree",value:function(t,e,n){var r,i,a,o=this,s=0,c={},l=yd(e).call(e,(function(e,n){var r,i,a,c=o.tree[n],l={},A="<p>".concat(c.strs.join("<br>"),"</p>");c.lines+=o.getLineCount(c.strs.join("\n"));var u=c.children.length?o.renderTree(n):"";t.lines+=c.lines,s+=c.lines;return/<span class="ch-icon ch-icon-(square|check)"><\/span>/.test(A)&&(l.class="check-list-item"),Da(r=Da(i=Da(a="".concat(e,"<li")).call(a,Md(l),">")).call(i,A)).call(r,u,"</li>")}),"");return void 0===t.parent&&(c["data-lines"]=0===t.index?s+this.emptyLines:s,c["data-sign"]=this.sign),e[0]&&"ol"===n&&(c.start=this.tree[e[0]].start),c.class="cherry-list__".concat(this.tree[e[0]].listStyle),Da(r=Da(i=Da(a="<".concat(n)).call(a,Md(c),">")).call(i,l,"</")).call(r,n,">")}},{key:"renderTree",value:function(t){var e=this,n=0,r=this.tree[t],i=r.children;return yd(i).call(i,(function(t,a,o){if(0===o)return t;if(e.tree[i[o]].type===e.tree[i[o-1]].type)return t;var s=e.renderSubTree(r,eA(i).call(i,n,o),e.tree[i[o-1]].type);return n=o,t+s}),"")+(i.length?this.renderSubTree(r,eA(i).call(i,n,i.length),this.tree[i[i.length-1]].type):"")}},{key:"toHtml",value:function(t,e){var n,r;this.emptyLines=null!==(n=null===(r=t.match(/^\n\n/))||void 0===r?void 0:r.length)&&void 0!==n?n:0;var i=t.replace(/~0$/g,"").replace(/^\n+/,"");this.buildTree(function(t){return t.replace(/^((?:|[\t ]+)[*+-]\s+)\[(\s|x)\]/gm,(function(t,e,n){var r,i=/\s/.test(n)?'<span class="ch-icon ch-icon-square"></span>':'<span class="ch-icon ch-icon-check"></span>';return Da(r="".concat(e)).call(r,i)}))}(i),e);var a=this.renderTree(0);return this.pushCache(a,this.sign,this.$getLineNum(t))}},{key:"$getLineNum",value:function(t){var e,n,r,i,a=null!==(e=null===(n=t.match(/^\n\n/))||void 0===n?void 0:n.length)&&void 0!==e?e:0;return null!==(r=null===(i=t.replace(/^\n+/,"").replace(/\n+$/,"\n").match(/\n/g))||void 0===i?void 0:i.length)&&void 0!==r?r:0+a}},{key:"makeHtml",value:function(t,e){var n=this,r="".concat(t,"~0");return this.test(r)&&(r=r.replace(this.RULE.reg,(function(t){return n.getCacheWithSpace(n.checkCache(t,e,n.$getLineNum(t)),t)}))),r=r.replace(/~0$/g,"")}},{key:"rule",value:function(){var t={begin:"(?:^|\n)(\n*)(([ ]{0,3}([*+-]|\\d+[.]|[a-z]\\.|[I一二三四五六七八九十]+\\.)[ \\t]+)",content:"([^\\r]+?)",end:"(~0|\\n{2,}(?=\\S)(?![ \\t]*(?:[*+-]|\\d+[.]|[a-z]\\.|[I一二三四五六七八九十]+\\.)[ \\t]+)))"};return t.reg=new RegExp(t.begin+t.content+t.end,"gm"),t}}]),n}(nh);function Qd(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}function Gd(t){for(var e=/^(\t|[ ]{1,4})/,n=t,r=0;e.test(n);)n=n.replace(/^(\t|[ ]{1,4})/g,""),r+=1;return r}Fa(Hd,"HOOK_NAME","list");var jd=function(t){ca(n,t);var e=Qd(n);function n(){return Ji(this,n),e.call(this,{needCache:!0})}return ta(n,[{key:"handleMatch",value:function(t,e){var n=this;return t.replace(this.RULE.reg,(function(t,r,i){for(var a,o,s,c=e(i),l=c.sign,A=c.html,u=n.signWithCache(A)||l,h=n.getLineCount(t,r),f=/^(([ \t]{0,3}([*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)([^\r]+?)($|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.]|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)))/,d=Gd(r),p=A.split("\n"),g=/^[>\s]+/,m=/>/g,y=1,v=0,b=Da(a=Da(o='<blockquote data-sign="'.concat(u,"_")).call(o,h,'" data-lines="')).call(a,h,'">'),_=0;p[_];_++){if(0!==_){var w=Gd(p[_]);if(w<=d&&f.test(p[_]))break;d=w}var E,C=p[_].replace(g,(function(t){var e=t.match(m);return v=e&&e.length>y?e.length:y,""}));if(y===v&&0!==_&&(b+="<br>"),y<v)b+=zf(E="<blockquote>").call(E,v-y),y=v;b+=C}return b+=zf(s="</blockquote>").call(s,y),n.getCacheWithSpace(n.pushCache(b,u,h),t)}))}},{key:"makeHtml",value:function(t,e){return this.test(t)?this.handleMatch(t,e):t}},{key:"rule",value:function(){var t={begin:"(?:^|\\n)(\\s*)",content:["(",">(?:.+?\\n(?![*+-]|\\d+[.]|[a-z]\\.))(?:>*.+?\\n(?![*+-]|\\d+[.]|[a-z]\\.))*(?:>*.+?)","|",">(?:.+?)",")"].join(""),end:"(?=(\\n)|$)"};return t.reg=LA(t,"g"),t}}]),n}(nh);function $d(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}Fa(jd,"HOOK_NAME","blockquote");var Kd=function(t){ca(n,t);var e=$d(n);function n(t){var r,i=t.config,a=t.globalConfig;return Ji(this,n),(r=e.call(this,{config:i})).urlProcessor=a.urlProcessor,r.enableShortLink=!!i.enableShortLink,r.shortLinkLength=i.shortLinkLength,r.target=i.target?'target="'.concat(i.target,'"'):i.openNewPage?'target="_blank"':"",r.rel=i.rel?'rel="'.concat(i.rel,'"'):"",r}return ta(n,[{key:"isLinkInHtmlAttribute",value:function(t,e,n){for(var r,i=new RegExp(["<","([a-zA-Z][a-zA-Z0-9-]*)","(",["\\s+[a-zA-Z_:][a-zA-Z0-9_.:-]*","(",["\\s*=\\s*","(",["([^\\s\"'=<>`]+)","('[^']*')",'("[^"]*")'].join("|"),")"].join(""),")?"].join(""),")*","\\s*[/]?>"].join(""),"g");null!==(r=i.exec(t))&&!(r.index>e+n);)if(r.index<e&&r.index+r[0].length>=e+n)return!0;return!1}},{key:"isLinkInATag",value:function(t,e,n){for(var r,i=/<a.*>[^<]*<\/a>/g;null!==(r=i.exec(t))&&!(r.index>e+n);)if(r.index<e&&r.index+r[0].length>=e+n)return!0;return!1}},{key:"makeHtml",value:function(t,e){var n=this;return this.test(t)&&(MA.test(t)||UA.test(t))?t.replace(this.RULE.reg,(function(t,e,r,i,a,o,s){var c,l,A;if(n.isLinkInHtmlAttribute(s,o,r.length+i.length)||n.isLinkInATag(s,o,r.length+i.length))return t;var u=r.toLowerCase(),h="",f="",d=!0;if(("<"!==e&&"&#60;"!==e||">"!==a&&"&#62;"!==a)&&(h=e,f=a,d=!1),""===Xc(i).call(i)||!d&&""===u&&!/www\./.test(i))return t;switch(u){case"javascript:":return t;case"mailto:":var p,g,m,y,v,b;return RA.test(i)?Da(p=Da(g=Da(m=Da(y=Da(v="".concat(h,'<a href="')).call(v,Zu(Da(b="".concat(u)).call(b,i)),'" ')).call(y,n.target," ")).call(m,n.rel,">")).call(g,qu(i),"</a>")).call(p,f):t;case"":var _,w,E,C,x,B,T,k,S,I;if(h===f||!d)return RA.test(i)?Da(_=Da(w=Da(E=Da(C=Da(x="".concat(h,'<a href="mailto:')).call(x,Zu(i),'" ')).call(C,n.target," ")).call(E,n.rel,">")).call(w,qu(i),"</a>")).call(_,f):HA.test(i)?Da(B=Da(T="".concat(h)).call(T,n.renderLink("//".concat(i),i))).call(B,f):t;if(d)return RA.test(i)?Da(k=Da(S=Da(I='<a href="mailto:'.concat(Zu(i),'" ')).call(I,n.target," ")).call(S,n.rel,">")).call(k,qu(i),"</a>"):QA.test(i)||HA.test(i)?n.renderLink(i):t;default:return QA.test(i)?Da(c=Da(l="".concat(h)).call(l,n.renderLink(Da(A="".concat(u)).call(A,i)))).call(c,f):t}return t})):t}},{key:"rule",value:function(){var t,e={begin:"(<?)",content:["((?:[a-z][a-z0-9+.-]{1,31}:)?)",Da(t="((?:".concat(PA.source,")|(?:")).call(t,MA.source,"))")].join(""),end:"(>?)"};return e.reg=LA(e,"ig"),e}},{key:"renderLink",value:function(t,e){var n,r,i,a,o=e;if("string"!=typeof o)if(this.enableShortLink){var s,c=t.replace(/^https?:\/\//i,"");o=Da(s="".concat(c.substring(0,this.shortLinkLength))).call(s,c.length>this.shortLinkLength?"...":"")}else o=t;var l=this.urlProcessor(t,"autolink");return Da(n=Da(r=Da(i=Da(a="<a ".concat(this.target," ")).call(a,this.rel,' title="')).call(i,qu(t).replace(/_/g,"\\_"),'" href="')).call(r,Zu(l).replace(/_/g,"\\_"),'">')).call(n,qu(o).replace(/_/g,"\\_"),"</a>")}}]),n}(fu);function Yd(){var t,e,n,r;Ed()&&(this.katex=null!==(t=null===(e=this.externals)||void 0===e?void 0:e.katex)&&void 0!==t?t:window.katex,this.MathJax=null!==(n=null===(r=this.externals)||void 0===r?void 0:r.MathJax)&&void 0!==n?n:window.MathJax)}Fa(Kd,"HOOK_NAME","autoLink");var zd=["&","<",">",'"',"'"],Wd=function(t){return t.replace(new RegExp(OA,"g"),(function(t){return-1!==Zl(zd).call(zd,t)?Vu(t):"\\".concat(t)}))};function Vd(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var qd=function(t){ca(n,t);var e=Vd(n);function n(t){var r,i,a=t.config;return Ji(this,n),i=e.call(this,{needCache:!0}),Fa(na(i),"engine","MathJax"),Fa(na(i),"katex",void 0),Fa(na(i),"MathJax",void 0),i.engine=Ed()?null!==(r=a.engine)&&void 0!==r?r:"MathJax":"node",i}return ta(n,[{key:"toHtml",value:function(t,e,n,r){var i,a,o;Pa(Yd).call(Yd,this)("engine");var s=t.replace(/^[ \f\r\t\v]*/,"").replace(/\s*$/,""),c=e.replace(/^[ \f\r\t\v]*\n/,""),l=this.$engine.md5(t),A=this.getLineCount(s,c);if(/\n/.test(e)||(A-=1),/\n\s*$/.test(t)||(A-=1),A=A>0?A:0,"katex"===this.engine){var u,h,f=this.katex.renderToString(r,{throwOnError:!1,displayMode:!0}),d=Da(u=Da(h='<div data-sign="'.concat(l,'" class="Cherry-Math" data-type="mathBlock"\n data-lines="')).call(h,A,'">')).call(u,f,"</div>");return n+this.getCacheWithSpace(this.pushCache(d,l,A),t)}if(null!==(i=this.MathJax)&&void 0!==i&&i.tex2svg){var p,g,m=wA(this.MathJax.tex2svg(r),!0),y=Da(p=Da(g='<div data-sign="'.concat(l,'" class="Cherry-Math" data-type="mathBlock"\n data-lines="')).call(g,A,'">')).call(p,m,"</div>");return n+this.getCacheWithSpace(this.pushCache(y,l,A),t)}var v=Da(a=Da(o='<div data-sign="'.concat(l,'" class="Cherry-Math" data-type="mathBlock"\n data-lines="')).call(o,A,'">$$')).call(a,Wd(r),"$$</div>");return n+this.getCacheWithSpace(this.pushCache(v,l,A),t)}},{key:"beforeMakeHtml",value:function(t){var e,n;return FA()?t.replace(this.RULE.reg,Pa(n=this.toHtml).call(n,this)):hf(t,this.RULE.reg,Pa(e=this.toHtml).call(e,this),!0,1)}},{key:"makeHtml",value:function(t){return t}},{key:"rule",value:function(){var t={begin:FA()?"(\\s*)((?<!\\\\))~D~D\\s*":"(\\s*)(^|[^\\\\])~D~D\\s*",content:"([\\w\\W]*?)",end:"(\\s*)~D~D(?:\\s{0,1})"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}(nh);function Xd(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}Fa(qd,"HOOK_NAME","mathBlock");var Jd=function(t){ca(n,t);var e=Xd(n);function n(t){var r,i,a=t.config;return Ji(this,n),i=e.call(this,{needCache:!0}),Fa(na(i),"engine","MathJax"),Fa(na(i),"katex",void 0),Fa(na(i),"MathJax",void 0),i.engine=Ed()?null!==(r=a.engine)&&void 0!==r?r:"MathJax":"node",i}return ta(n,[{key:"toHtml",value:function(t,e,n){var r,i,a,o;if(!n)return t;Pa(Yd).call(Yd,this)("engine");var s=n.match(/\n/g),c=s?s.length+2:2,l=this.$engine.md5(t);if("katex"===this.engine&&null!==(r=this.katex)&&void 0!==r&&r.renderToString){var A,u,h=this.katex.renderToString(n,{throwOnError:!1}),f=Da(A=Da(u="".concat(e,'<span class="Cherry-InlineMath" data-type="mathBlock" data-lines="')).call(u,c,'">')).call(A,h,"</span>");return this.pushCache(f,nh.IN_PARAGRAPH_CACHE_KEY_PREFIX+l)}if(null!==(i=this.MathJax)&&void 0!==i&&i.tex2svg){var d,p,g=wA(this.MathJax.tex2svg(n,{em:12,ex:6,display:!1}),!0),m=Da(d=Da(p="".concat(e,'<span class="Cherry-InlineMath" data-type="mathBlock" data-lines="')).call(p,c,'">')).call(d,g,"</span>");return this.pushCache(m,nh.IN_PARAGRAPH_CACHE_KEY_PREFIX+l)}var y=Da(a=Da(o="".concat(e,'<span class="Cherry-InlineMath" data-type="mathBlock"\n data-lines="')).call(o,c,'">$')).call(a,Wd(n),"$</span>");return this.pushCache(y,nh.IN_PARAGRAPH_CACHE_KEY_PREFIX+l)}},{key:"beforeMakeHtml",value:function(t){var e=this,n=t;return n=n.replace(GA(!0),(function(t){var n;return yu(n=t.split("|")).call(n,(function(t){return e.makeInlineMath(t)})).join("|").replace(/\\~D/g,"~D").replace(/~D/g,"\\~D")})),this.makeInlineMath(n)}},{key:"makeInlineMath",value:function(t){var e,n;return this.test(t)?FA()?t.replace(this.RULE.reg,Pa(n=this.toHtml).call(n,this)):hf(t,this.RULE.reg,Pa(e=this.toHtml).call(e,this),!0,1):t}},{key:"makeHtml",value:function(t){return t}},{key:"rule",value:function(){var t={begin:FA()?"((?<!\\\\))~D\\n?":"(^|[^\\\\])~D\\n?",content:"(.*?)\\n?",end:"~D"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}(nh);Fa(Jd,"HOOK_NAME","inlineMath");Xt({target:"Array",proto:!0},{fill:function(t){for(var e=lt(this),n=Oe(e),r=arguments.length,i=Le(r>1?arguments[1]:void 0,n),a=r>2?arguments[2]:void 0,o=void 0===a?n:Le(a,n);o>i;)e[i++]=t;return e}});var Zd=Wr("Array").fill,tp=Array.prototype,ep=function(t){var e=t.fill;return t===tp||G(tp,t)&&e===tp.fill?Zd:e};function np(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}function rp(t){return t}var ip={tocStyle:"plain",tocNodeClass:"toc-li",tocContainerClass:"toc",tocTitleClass:"toc-title",linkProcessor:rp},ap=function(t){ca(n,t);var e=np(n);function n(t){t.externals;var r,i,a=t.config;return Ji(this,n),i=e.call(this,{needCache:!0}),Fa(na(i),"tocStyle","nested"),Fa(na(i),"tocNodeClass","toc-li"),Fa(na(i),"tocContainerClass","toc"),Fa(na(i),"tocTitleClass","toc-title"),Fa(na(i),"linkProcessor",rp),Fa(na(i),"baseLevel",1),Fa(na(i),"isFirstTocToken",!0),Fa(na(i),"allowMultiToc",!1),ji(r=fn(ip)).call(r,(function(t){i[t]=a[t]||ip[t]})),i}return ta(n,[{key:"beforeMakeHtml",value:function(t){var e=this,n=t;return this.test(n,"extend")&&(n=n.replace(this.RULE.extend.reg,(function(t,n,r){var i;if(!e.allowMultiToc&&!e.isFirstTocToken)return Da(i="\n".concat(n)).call(i,'<p data-sign="empty-toc" data-lines="1">&nbsp;</p>');var a=e.pushCache(t);return e.isFirstTocToken=!1,vu(t,a)}))),this.test(n,"standard")&&(n=n.replace(this.RULE.standard.reg,(function(t,n,r){var i;return e.allowMultiToc||e.isFirstTocToken?(e.isFirstTocToken=!1,vu(t,e.pushCache(t))):Da(i="\n".concat(n)).call(i,'<p data-sign="empty-toc" data-lines="1">&nbsp;</p>')}))),n}},{key:"makeHtml",value:function(t){return t}},{key:"$makeLevel",value:function(t){for(var e="",n=this.baseLevel;n<t;n++)e+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";return e}},{key:"$makeTocItem",value:function(t,e){var n,r,i,a,o,s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],c="";e&&(c=this.$makeLevel(t.level));var l=this.linkProcessor("#".concat(t.id).replace(/safe_/g,""));return Da(n=Da(r=Da(i=Da(a=Da(o='<li class="'.concat(this.tocNodeClass,'">')).call(o,c,'<a href="')).call(a,l,'" class="level-')).call(i,t.level,'">')).call(r,t.text,"</a>")).call(n,s?"</li>":"")}},{key:"$makePlainToc",value:function(t){var e=this;return yu(t).call(t,(function(t){return e.$makeTocItem(t,!0)})).join("")}},{key:"$makeNestedToc",value:function(t){var e,n,r=this,i=0,a=ep(e=new Array(7)).call(e,!1),o=ep(n=new Array(7)).call(n,!1),s="";ji(t).call(t,(function(t){var e=t.level;if(0===i){for(var n=e;n>=r.baseLevel;n--)s+="<ul>",o[n]=!0;return s+=r.$makeTocItem(t,!1,!1),a[e]=!0,void(i=e)}if(e<i){for(var c=i;c>=e;c--)a[c]&&(s+="</li>",a[c]=!1),o[c]&&c>e&&(s+="</ul>",o[c]=!1);a[e]=!0,s+=r.$makeTocItem(t,!1,!1),i=e}else if(e===i)a[i]&&(s+="</li>"),s+=r.$makeTocItem(t,!1,!1),a[e]=!0,o[e]=!0;else{for(var l=i+1;l<=e;l++)s+="<ul>",o[l]=!0;a[e]=!0,s+=r.$makeTocItem(t,!1,!1),i=e}}));for(var c=i;c>=this.baseLevel;c--)a[c]&&(s+="</li>",a[c]=!1),o[c]&&(s+="</ul>",o[c]=!1);return s}},{key:"$makeToc",value:function(t,e,n){var r,i,a,o=bu(n,1),s=Da(r=Da(i=Da(a='<dir class="'.concat(this.tocContainerClass,'" data-sign="')).call(a,e,"-")).call(i,o,'" data-lines="')).call(r,o,'">');return s+='<p class="'.concat(this.tocTitleClass,'">目录</p>'),t.length<=0?"":(this.baseLevel=Math.min.apply(Math,sf(yu(t).call(t,(function(t){return t.level})))),"nested"===this.tocStyle?s+=this.$makeNestedToc(t):s+=this.$makePlainToc(t),s+="</dir>")}},{key:"afterMakeHtml",value:function(t){var e=this,r=nd(La(n.prototype),"afterMakeHtml",this).call(this,t),i=[],a="";return r.replace(/<h([1-6])[^>]*? id="([^"]+?)"[^>]*?>(?:<a[^/]+?\/a>|)(.+?)<\/h\1>/g,(function(t,e,n,r){var o,s=r.replace(/~fn#[0-9]+#/g,"");i.push({level:+e,id:n,text:s}),a+=Da(o="".concat(e)).call(o,n)})),a=this.$engine.md5(a),r=(r=(r=r.replace(/(?:^|\n)(\[\[|\[|【【)(toc|TOC)(\]\]|\]|】】)([<~])/,(function(t){return t.replace(/(\]\]|\]|】】)([<~])/,"$1\n$2")}))).replace(this.RULE.extend.reg,(function(t,n){return e.$makeToc(i,a,n)}))).replace(this.RULE.standard.reg,(function(t,n){return e.$makeToc(i,a,n)})),this.isFirstTocToken=!0,r}},{key:"test",value:function(t,e){return!!this.RULE[e].reg&&this.RULE[e].reg.test(t)}},{key:"rule",value:function(){var t={begin:"(?:^|\\n)(\\n*)",end:"(?=$|\\n)",content:"[ ]*((?:【【|\\[\\[)(?:toc|TOC)(?:\\]\\]|】】))[ ]*"};t.reg=new RegExp(t.begin+t.content+t.end,"g");var e={begin:"(?:^|\\n)(\\n*)",end:"(?=$|\\n)",content:"[ ]*(\\[(?:toc|TOC)\\])[ ]*"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),{extend:t,standard:e}}}]),n}(nh);function op(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}Fa(ap,"HOOK_NAME","toc");var sp=function(t){ca(n,t);var e=op(n);function n(t){var r;t.externals,t.config;return Ji(this,n),(r=e.call(this)).footnoteCache={},r.footnoteMap={},r.footnote=[],r}return ta(n,[{key:"$cleanCache",value:function(){this.footnoteCache={},this.footnoteMap={},this.footnote=[]}},{key:"pushFootnoteCache",value:function(t,e){this.footnoteCache[t]=e}},{key:"getFootnoteCache",value:function(t){return this.footnoteCache[t]||null}},{key:"pushFootNote",value:function(t,e){var n,r,i,a,o,s;if(this.footnoteMap[t])return this.footnoteMap[t];var c=this.footnote.length+1,l={};l.fn=Da(n=Da(r=Da(i='<sup><a href="#fn:'.concat(c,'" id="fnref:')).call(i,c,'" title="')).call(r,t,'" class="footnote">[')).call(n,c,"]</a></sup>"),l.fnref=Da(a=Da(o=Da(s='<a href="#fnref:'.concat(c,'" id="fn:')).call(s,c,'" title="')).call(o,t,'" class="footnote-ref">[')).call(a,c,"]</a>"),l.num=c,l.note=Xc(e).call(e),this.footnote.push(l);var A="\0~fn#".concat(c-1,"#\0");return this.footnoteMap[t]=A,A}},{key:"getFootNote",value:function(){return this.footnote}},{key:"formatFootNote",value:function(){var t,e=this.getFootNote();if(e.length<=0)return"";var n=yu(e).call(e,(function(t){var e;return Da(e='<div class="one-footnote">\n'.concat(t.fnref)).call(e,t.note,"\n</div>")})).join(""),r=this.$engine.md5(n);return n=Da(t='<div class="footnote" data-sign="'.concat(r,'" data-lines="0"><div class="footnote-title">脚注</div>')).call(t,n,"</div>")}},{key:"beforeMakeHtml",value:function(t){var e=this,n=t;return this.test(n)&&(n=(n=n.replace(this.RULE.reg,(function(t,n,r,i){return e.pushFootnoteCache(r,i),(t.match(/\n/g)||[]).join("")}))).replace(/\[\^([^\]]+?)\](?!:)/g,(function(t,n){var r=e.getFootnoteCache(n);return r?e.pushFootNote(n,r):t})),n+=this.formatFootNote()),n}},{key:"makeHtml",value:function(t,e){return t}},{key:"afterMakeHtml",value:function(t){var e=this.getFootNote(),n=t.replace(/\0~fn#([0-9]+)#\0/g,(function(t,n){return e[n].fn}));return this.$cleanCache(),n}},{key:"rule",value:function(){var t={begin:"(^|\\n)[ \t]*",content:["\\[\\^([^\\]]+?)\\]:\\h*","([\\s\\S]+?)"].join(""),end:"(?=\\s*$|\\n\\n)"};return t.reg=LA(t,"g",!0),t}}]),n}(nh);function cp(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}Fa(sp,"HOOK_NAME","footnote");var lp=function(t){ca(n,t);var e=cp(n);function n(t){var r;t.externals,t.config;return Ji(this,n),(r=e.call(this)).commentCache={},r}return ta(n,[{key:"$cleanCache",value:function(){this.commentCache={}}},{key:"pushCommentReferenceCache",value:function(t,e){var n,r=e.split(/[ ]+/g),i=cf(r),a=i[0],o=eA(i).call(i,1),s=Qf.set(a);this.commentCache["".concat(t).toLowerCase()]=Da(n=[s]).call(n,sf(o)).join(" ")}},{key:"getCommentReferenceCache",value:function(t){return this.commentCache["".concat(t).toLowerCase()]||null}},{key:"beforeMakeHtml",value:function(t){var e=this,n=t;if(this.test(n)){n=(n=n.replace(this.RULE.reg,(function(t,n,r,i){var a;return e.pushCommentReferenceCache(r,i),(null!==(a=t.match(/\n/g))&&void 0!==a?a:[]).join("")}))).replace(/(\[[^\]\n]+?\])?(?:\[([^\]\n]+?)\])/g,(function(t,n,r){var i,a,o=e.getCommentReferenceCache(r);return o?n?Da(a="".concat(n,"(")).call(a,o,")"):Da(i="[".concat(r,"](")).call(i,o,")"):t})),this.$cleanCache()}return n}},{key:"makeHtml",value:function(t,e){return t}},{key:"afterMakeHtml",value:function(t){return Qf.restoreAll(t)}},{key:"rule",value:function(){var t={begin:"(^|\\n)[ \t]*",content:["\\[([^^][^\\]]*?)\\]:\\h*","([^\\n]+?)"].join(""),end:"(?=$|\\n)"};return t.reg=LA(t,"g",!0),t}}]),n}(nh);Fa(lp,"HOOK_NAME","commentReference");var Ap=Xn.some,up=Mi("some");Xt({target:"Array",proto:!0,forced:!up},{some:function(t){return Ap(this,t,arguments.length>1?arguments[1]:void 0)}});var hp=Wr("Array").some,fp=Array.prototype,dp=function(t){var e=t.some;return t===fp||G(fp,t)&&e===fp.some?hp:e},pp=r((function(t,e){t.exports=function(){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,n){return(e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,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(t){return!1}}function r(t,i,a){return(r=n()?Reflect.construct:function(t,n,r){var i=[null];i.push.apply(i,n);var a=new(Function.bind.apply(t,i));return r&&e(a,r.prototype),a}).apply(null,arguments)}function i(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t)||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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var o=Object.hasOwnProperty,s=Object.setPrototypeOf,c=Object.isFrozen,l=Object.getPrototypeOf,A=Object.getOwnPropertyDescriptor,u=Object.freeze,h=Object.seal,f=Object.create,d="undefined"!=typeof Reflect&&Reflect,p=d.apply,g=d.construct;p||(p=function(t,e,n){return t.apply(e,n)}),u||(u=function(t){return t}),h||(h=function(t){return t}),g||(g=function(t,e){return r(t,i(e))});var m,y=k(Array.prototype.forEach),v=k(Array.prototype.pop),b=k(Array.prototype.push),_=k(String.prototype.toLowerCase),w=k(String.prototype.match),E=k(String.prototype.replace),C=k(String.prototype.indexOf),x=k(String.prototype.trim),B=k(RegExp.prototype.test),T=(m=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return g(m,e)});function k(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return p(t,e,r)}}function S(t,e,n){n=n||_,s&&s(t,null);for(var r=e.length;r--;){var i=e[r];if("string"==typeof i){var a=n(i);a!==i&&(c(e)||(e[r]=a),i=a)}t[i]=!0}return t}function I(t){var e,n=f(null);for(e in t)p(o,t,[e])&&(n[e]=t[e]);return n}function L(t,e){for(;null!==t;){var n=A(t,e);if(n){if(n.get)return k(n.get);if("function"==typeof n.value)return k(n.value)}t=l(t)}return function(t){return console.warn("fallback value for",t),null}}var F=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"]),N=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"]),O=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"]),M=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"]),R=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),U=u(["#text"]),P=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"]),Q=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"]),G=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),j=h(/\{\{[\w\W]*|[\w\W]*\}\}/gm),$=h(/<%[\w\W]*|[\w\W]*%>/gm),K=h(/^data-[\-\w.\u00B7-\uFFFF]/),Y=h(/^aria-[\-\w]+$/),z=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W=h(/^(?:\w+script|data):/i),V=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),q=h(/^html$/i),X=function(){return"undefined"==typeof window?null:window},J=function(e,n){if("object"!==t(e)||"function"!=typeof e.createPolicy)return null;var r=null;n.currentScript&&n.currentScript.hasAttribute("data-tt-policy-suffix")&&(r=n.currentScript.getAttribute("data-tt-policy-suffix"));var i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML:function(t){return t},createScriptURL:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};return function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X(),r=function(t){return e(t)};if(r.version="2.4.0",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var a=n.document,o=n.document,s=n.DocumentFragment,c=n.HTMLTemplateElement,l=n.Node,A=n.Element,h=n.NodeFilter,f=n.NamedNodeMap,d=void 0===f?n.NamedNodeMap||n.MozNamedAttrMap:f,p=n.HTMLFormElement,g=n.DOMParser,m=n.trustedTypes,k=A.prototype,Z=L(k,"cloneNode"),tt=L(k,"nextSibling"),et=L(k,"childNodes"),nt=L(k,"parentNode");if("function"==typeof c){var rt=o.createElement("template");rt.content&&rt.content.ownerDocument&&(o=rt.content.ownerDocument)}var it=J(m,a),at=it?it.createHTML(""):"",ot=o,st=ot.implementation,ct=ot.createNodeIterator,lt=ot.createDocumentFragment,At=ot.getElementsByTagName,ut=a.importNode,ht={};try{ht=I(o).documentMode?o.documentMode:{}}catch(t){}var ft={};r.isSupported="function"==typeof nt&&st&&void 0!==st.createHTMLDocument&&9!==ht;var dt,pt,gt=j,mt=$,yt=K,vt=Y,bt=W,_t=V,wt=z,Et=null,Ct=S({},[].concat(i(F),i(N),i(O),i(M),i(U))),xt=null,Bt=S({},[].concat(i(P),i(H),i(Q),i(G))),Tt=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}})),kt=null,St=null,It=!0,Lt=!0,Ft=!1,Nt=!1,Ot=!1,Dt=!1,Mt=!1,Rt=!1,Ut=!1,Pt=!1,Ht=!0,Qt=!1,Gt="user-content-",jt=!0,$t=!1,Kt={},Yt=null,zt=S({},["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"]),Wt=null,Vt=S({},["audio","video","img","source","image","track"]),qt=null,Xt=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Jt="http://www.w3.org/1998/Math/MathML",Zt="http://www.w3.org/2000/svg",te="http://www.w3.org/1999/xhtml",ee=te,ne=!1,re=["application/xhtml+xml","text/html"],ie="text/html",ae=null,oe=o.createElement("form"),se=function(t){return t instanceof RegExp||t instanceof Function},ce=function(e){ae&&ae===e||(e&&"object"===t(e)||(e={}),e=I(e),dt=dt=-1===re.indexOf(e.PARSER_MEDIA_TYPE)?ie:e.PARSER_MEDIA_TYPE,pt="application/xhtml+xml"===dt?function(t){return t}:_,Et="ALLOWED_TAGS"in e?S({},e.ALLOWED_TAGS,pt):Ct,xt="ALLOWED_ATTR"in e?S({},e.ALLOWED_ATTR,pt):Bt,qt="ADD_URI_SAFE_ATTR"in e?S(I(Xt),e.ADD_URI_SAFE_ATTR,pt):Xt,Wt="ADD_DATA_URI_TAGS"in e?S(I(Vt),e.ADD_DATA_URI_TAGS,pt):Vt,Yt="FORBID_CONTENTS"in e?S({},e.FORBID_CONTENTS,pt):zt,kt="FORBID_TAGS"in e?S({},e.FORBID_TAGS,pt):{},St="FORBID_ATTR"in e?S({},e.FORBID_ATTR,pt):{},Kt="USE_PROFILES"in e&&e.USE_PROFILES,It=!1!==e.ALLOW_ARIA_ATTR,Lt=!1!==e.ALLOW_DATA_ATTR,Ft=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Nt=e.SAFE_FOR_TEMPLATES||!1,Ot=e.WHOLE_DOCUMENT||!1,Rt=e.RETURN_DOM||!1,Ut=e.RETURN_DOM_FRAGMENT||!1,Pt=e.RETURN_TRUSTED_TYPE||!1,Mt=e.FORCE_BODY||!1,Ht=!1!==e.SANITIZE_DOM,Qt=e.SANITIZE_NAMED_PROPS||!1,jt=!1!==e.KEEP_CONTENT,$t=e.IN_PLACE||!1,wt=e.ALLOWED_URI_REGEXP||wt,ee=e.NAMESPACE||te,e.CUSTOM_ELEMENT_HANDLING&&se(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Tt.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&se(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Tt.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Tt.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Nt&&(Lt=!1),Ut&&(Rt=!0),Kt&&(Et=S({},i(U)),xt=[],!0===Kt.html&&(S(Et,F),S(xt,P)),!0===Kt.svg&&(S(Et,N),S(xt,H),S(xt,G)),!0===Kt.svgFilters&&(S(Et,O),S(xt,H),S(xt,G)),!0===Kt.mathMl&&(S(Et,M),S(xt,Q),S(xt,G))),e.ADD_TAGS&&(Et===Ct&&(Et=I(Et)),S(Et,e.ADD_TAGS,pt)),e.ADD_ATTR&&(xt===Bt&&(xt=I(xt)),S(xt,e.ADD_ATTR,pt)),e.ADD_URI_SAFE_ATTR&&S(qt,e.ADD_URI_SAFE_ATTR,pt),e.FORBID_CONTENTS&&(Yt===zt&&(Yt=I(Yt)),S(Yt,e.FORBID_CONTENTS,pt)),jt&&(Et["#text"]=!0),Ot&&S(Et,["html","head","body"]),Et.table&&(S(Et,["tbody"]),delete kt.tbody),u&&u(e),ae=e)},le=S({},["mi","mo","mn","ms","mtext"]),Ae=S({},["foreignobject","desc","title","annotation-xml"]),ue=S({},["title","style","font","a","script"]),he=S({},N);S(he,O),S(he,D);var fe=S({},M);S(fe,R);var de=function(t){var e=nt(t);e&&e.tagName||(e={namespaceURI:te,tagName:"template"});var n=_(t.tagName),r=_(e.tagName);return t.namespaceURI===Zt?e.namespaceURI===te?"svg"===n:e.namespaceURI===Jt?"svg"===n&&("annotation-xml"===r||le[r]):Boolean(he[n]):t.namespaceURI===Jt?e.namespaceURI===te?"math"===n:e.namespaceURI===Zt?"math"===n&&Ae[r]:Boolean(fe[n]):t.namespaceURI===te&&!(e.namespaceURI===Zt&&!Ae[r])&&!(e.namespaceURI===Jt&&!le[r])&&!fe[n]&&(ue[n]||!he[n])},pe=function(t){b(r.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=at}catch(e){t.remove()}}},ge=function(t,e){try{b(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){b(r.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!xt[t])if(Rt||Ut)try{pe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},me=function(t){var e,n;if(Mt)t="<remove></remove>"+t;else{var r=w(t,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===dt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var i=it?it.createHTML(t):t;if(ee===te)try{e=(new g).parseFromString(i,dt)}catch(t){}if(!e||!e.documentElement){e=st.createDocument(ee,"template",null);try{e.documentElement.innerHTML=ne?"":i}catch(t){}}var a=e.body||e.documentElement;return t&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),ee===te?At.call(e,Ot?"html":"body")[0]:Ot?e.documentElement:a},ye=function(t){return ct.call(t.ownerDocument||t,t,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT,null,!1)},ve=function(t){return t instanceof p&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof d)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore)},be=function(e){return"object"===t(l)?e instanceof l:e&&"object"===t(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},_e=function(t,e,n){ft[t]&&y(ft[t],(function(t){t.call(r,e,n,ae)}))},we=function(t){var e;if(_e("beforeSanitizeElements",t,null),ve(t))return pe(t),!0;if(B(/[\u0080-\uFFFF]/,t.nodeName))return pe(t),!0;var n=pt(t.nodeName);if(_e("uponSanitizeElement",t,{tagName:n,allowedTags:Et}),t.hasChildNodes()&&!be(t.firstElementChild)&&(!be(t.content)||!be(t.content.firstElementChild))&&B(/<[/\w]/g,t.innerHTML)&&B(/<[/\w]/g,t.textContent))return pe(t),!0;if("select"===n&&B(/<template/i,t.innerHTML))return pe(t),!0;if(!Et[n]||kt[n]){if(!kt[n]&&Ce(n)){if(Tt.tagNameCheck instanceof RegExp&&B(Tt.tagNameCheck,n))return!1;if(Tt.tagNameCheck instanceof Function&&Tt.tagNameCheck(n))return!1}if(jt&&!Yt[n]){var i=nt(t)||t.parentNode,a=et(t)||t.childNodes;if(a&&i)for(var o=a.length-1;o>=0;--o)i.insertBefore(Z(a[o],!0),tt(t))}return pe(t),!0}return t instanceof A&&!de(t)?(pe(t),!0):"noscript"!==n&&"noembed"!==n||!B(/<\/no(script|embed)/i,t.innerHTML)?(Nt&&3===t.nodeType&&(e=t.textContent,e=E(e,gt," "),e=E(e,mt," "),t.textContent!==e&&(b(r.removed,{element:t.cloneNode()}),t.textContent=e)),_e("afterSanitizeElements",t,null),!1):(pe(t),!0)},Ee=function(t,e,n){if(Ht&&("id"===e||"name"===e)&&(n in o||n in oe))return!1;if(Lt&&!St[e]&&B(yt,e));else if(It&&B(vt,e));else if(!xt[e]||St[e]){if(!(Ce(t)&&(Tt.tagNameCheck instanceof RegExp&&B(Tt.tagNameCheck,t)||Tt.tagNameCheck instanceof Function&&Tt.tagNameCheck(t))&&(Tt.attributeNameCheck instanceof RegExp&&B(Tt.attributeNameCheck,e)||Tt.attributeNameCheck instanceof Function&&Tt.attributeNameCheck(e))||"is"===e&&Tt.allowCustomizedBuiltInElements&&(Tt.tagNameCheck instanceof RegExp&&B(Tt.tagNameCheck,n)||Tt.tagNameCheck instanceof Function&&Tt.tagNameCheck(n))))return!1}else if(qt[e]);else if(B(wt,E(n,_t,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==C(n,"data:")||!Wt[t])if(Ft&&!B(bt,E(n,_t,"")));else if(n)return!1;return!0},Ce=function(t){return t.indexOf("-")>0},xe=function(e){var n,i,a,o;_e("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xt};for(o=s.length;o--;){var l=n=s[o],A=l.name,u=l.namespaceURI;if(i="value"===A?n.value:x(n.value),a=pt(A),c.attrName=a,c.attrValue=i,c.keepAttr=!0,c.forceKeepAttr=void 0,_e("uponSanitizeAttribute",e,c),i=c.attrValue,!c.forceKeepAttr&&(ge(A,e),c.keepAttr))if(B(/\/>/i,i))ge(A,e);else{Nt&&(i=E(i,gt," "),i=E(i,mt," "));var h=pt(e.nodeName);if(Ee(h,a,i)){if(!Qt||"id"!==a&&"name"!==a||(ge(A,e),i=Gt+i),it&&"object"===t(m)&&"function"==typeof m.getAttributeType)if(u);else switch(m.getAttributeType(h,a)){case"TrustedHTML":i=it.createHTML(i);break;case"TrustedScriptURL":i=it.createScriptURL(i)}try{u?e.setAttributeNS(u,A,i):e.setAttribute(A,i),v(r.removed)}catch(t){}}}}_e("afterSanitizeAttributes",e,null)}},Be=function t(e){var n,r=ye(e);for(_e("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)_e("uponSanitizeShadowNode",n,null),we(n)||(n.content instanceof s&&t(n.content),xe(n));_e("afterSanitizeShadowDOM",e,null)};return r.sanitize=function(e){var i,o,c,A,u,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ne=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!be(e)){if("function"!=typeof e.toString)throw T("toString is not a function");if("string"!=typeof(e=e.toString()))throw T("dirty is not a string, aborting")}if(!r.isSupported){if("object"===t(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof e)return n.toStaticHTML(e);if(be(e))return n.toStaticHTML(e.outerHTML)}return e}if(Dt||ce(h),r.removed=[],"string"==typeof e&&($t=!1),$t){if(e.nodeName){var f=pt(e.nodeName);if(!Et[f]||kt[f])throw T("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)1===(o=(i=me("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?i=o:i.appendChild(o);else{if(!Rt&&!Nt&&!Ot&&-1===e.indexOf("<"))return it&&Pt?it.createHTML(e):e;if(!(i=me(e)))return Rt?null:Pt?at:""}i&&Mt&&pe(i.firstChild);for(var d=ye($t?e:i);c=d.nextNode();)3===c.nodeType&&c===A||we(c)||(c.content instanceof s&&Be(c.content),xe(c),A=c);if(A=null,$t)return e;if(Rt){if(Ut)for(u=lt.call(i.ownerDocument);i.firstChild;)u.appendChild(i.firstChild);else u=i;return xt.shadowroot&&(u=ut.call(a,u,!0)),u}var p=Ot?i.outerHTML:i.innerHTML;return Ot&&Et["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&B(q,i.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+p),Nt&&(p=E(p,gt," "),p=E(p,mt," ")),it&&Pt?it.createHTML(p):p},r.setConfig=function(t){ce(t),Dt=!0},r.clearConfig=function(){ae=null,Dt=!1},r.isValidAttribute=function(t,e,n){ae||ce({});var r=pt(t),i=pt(e);return Ee(r,i,n)},r.addHook=function(t,e){"function"==typeof e&&(ft[t]=ft[t]||[],b(ft[t],e))},r.removeHook=function(t){if(ft[t])return v(ft[t])},r.removeHooks=function(t){ft[t]&&(ft[t]=[])},r.removeAllHooks=function(){ft={}},r}()}()}))(window);function gp(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var mp=function(t){ca(n,t);var e=gp(n);function n(){return Ji(this,n),e.call(this,{needCache:!0})}return ta(n,[{key:"isAutoLinkTag",value:function(t){var e=[/^<([a-z][a-z0-9+.-]{1,31}:\/\/[^<> `]+)>$/i,/^<(mailto:[^<> `]+)>$/i,/^<([^()<>[\]:'@\\,"\s`]+@[^()<>[\]:'@\\,"\s`.]+\.[^()<>[\]:'@\\,"\s`]+)>$/i];return dp(e).call(e,(function(e){return e.test(t)}))}},{key:"isHtmlComment",value:function(t){return/^<!--.*?-->$/.test(t)}},{key:"beforeMakeHtml",value:function(t,e){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=t;return r=(r=(r=(r=function(t){if("string"!=typeof t)return"";var e=t.replace(/&(\w+);?/g,(function(t,e){return-1===Zl(t).call(t,";")||-1===Zl(ju).call(ju,e.toLowerCase())?t.replace(/&/g,"&amp;"):t}));return e=(e=e.replace(/&#(?!x)(\d*);?/gi,(function(t,e){return $u(e)||-1===Zl(t).call(t,";")||e.lenth>7||!Ku(e)?t.replace(/&/g,"&amp;"):t}))).replace(/&#x([0-9a-f]*);?/gi,(function(t,e){if($u(e))return t.replace(/&/g,"&amp;");var n="0x".concat(e),r=lA(n,16);return isNaN(r)||-1===Zl(t).call(t,";")||e.lenth>6||!Ku(n)?t.replace(/&/g,"&amp;"):t}))}(r=Xu(r))).replace(/<[/]?(.*?)>/g,(function(t,e){return Wu.test(e)||n.isAutoLinkTag(t)||n.isHtmlComment(t)||!1!==n.htmlWhiteListAppend&&n.htmlWhiteListAppend.test(e)?t.replace(/</g,"$#60;").replace(/>/g,"$#62;"):t.replace(/</g,"&#60;").replace(/>/g,"&#62;")}))).replace(/<(?=\/?(\w|\n|$))/g,"&#60;")).replace(/\$#60;/g,"<").replace(/\$#62;/g,">")}},{key:"makeHtml",value:function(t,e){return t}},{key:"afterMakeHtml",value:function(t){var e=t,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"))&&(e=e.replace(/<style(>| [^>]*>).*?<\/style>/gi,(function(t){return t.replace(/<br>/gi,"")}))),this.htmlWhiteListAppend.test("iframe")||this.htmlWhiteListAppend.test("ALL"))n.ADD_ATTR=Da(r=n.ADD_ATTR).call(r,["align","frameborder","height","longdesc","marginheight","marginwidth","name","sandbox","scrolling","seamless","src","srcdoc","width"]),n.SANITIZE_DOM=!1,e=e.replace(/<iframe(>| [^>]*>).*?<\/iframe>/gi,(function(t){return t.replace(/<br>/gi,"").replace(/\n/g,"")}));if(this.htmlWhiteListAppend.test("script")||this.htmlWhiteListAppend.test("ALL"))return e=e.replace(/<script(>| [^>]*>).*?<\/script>/gi,(function(t){return t.replace(/<br>/gi,"")}))}return Ed()||(n.FORBID_ATTR=["data-sign","data-lines"]),pp.sanitize(e,n)}}]),n}(nh);Fa(mp,"HOOK_NAME","htmlBlock");var yp={"+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 vp(t,e){var n=fn(t);if(jr){var r=jr(t);e&&(r=Xr(r).call(r,(function(e){return ii(t,e).enumerable}))),n.push.apply(n,r)}return n}function bp(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?ji(n=vp(Object(i),!0)).call(n,(function(e){Fa(t,e,i[e])})):Yi?Wi(t,Yi(i)):ji(r=vp(Object(i))).call(r,(function(e){Xi(t,e,ii(i,e))}))}return t}function _p(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}function wp(){for(var t=[],e=0,n="",r=0,i=arguments.length;r!==i;++r){var a=+(r<0||arguments.length<=r?void 0:arguments[r]);if(!(a<1114111&&a>>>0===a))throw new RangeError("Invalid code point: ".concat(a));a<=65535?e=t.push(a):(a-=65536,e=t.push(55296+(a>>10),a%1024+56320)),e>=16383&&(n+=String.fromCharCode.apply(null,t),t.length=0)}return n+String.fromCharCode.apply(null,t)}var Ep=function(t){ca(n,t);var e=_p(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0},i=r.config;if(Ji(this,n),(t=e.call(this,{config:i})).options={useUnicode:!0,upperCase:!1,customHandled:!1,resourceURL:"https://github.githubassets.com/images/icons/emoji/unicode/${code}.png?v8",emojis:bp({},yp)},"object"!==Ba(i))return Ta(t);var a=i.useUnicode,o=i.customResourceURL,s=i.customRenderer,c=i.upperCase;return t.options.useUnicode="boolean"==typeof a?a:t.options.useUnicode,t.options.upperCase="boolean"==typeof a?c:t.options.upperCase,!1===a&&"string"==typeof o&&(t.options.resourceURL=o),"function"==typeof s&&(t.options.customHandled=!0,t.options.customRenderer=s),t}return ta(n,[{key:"makeHtml",value:function(t,e){var n=this;return this.test(t)?t.replace(this.RULE.reg,(function(t,e){var r;if(n.options.customHandled&&"function"==typeof n.options.customRenderer)return n.options.customRenderer(e);var i=n.options.emojis[e];if("string"!=typeof i)return t;if(n.options.useUnicode){var a,o=yu(a=i.split("-")).call(a,(function(t){return"0x".concat(t)}));return wp.apply(void 0,sf(o))}n.options.upperCase&&(i=i.toUpperCase());var s=n.options.resourceURL.replace(/\$\{code\}/g,i);return Da(r='<img class="emoji" src="'.concat(s,'" alt="')).call(r,qu(e),'" />')})):t}},{key:"rule",value:function(){var t={begin:":",content:"([a-zA-Z0-9+_]+?)",end:":"};return t.reg=LA(t,"g"),t}}]),n}(fu);function Cp(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}Fa(Ep,"HOOK_NAME","emoji");var xp=function(t){ca(n,t);var e=Cp(n);function n(){return Ji(this,n),e.apply(this,arguments)}return ta(n,[{key:"makeHtml",value:function(t){return this.test(t)?t.replace(this.RULE.reg,'$1<span style="text-decoration: underline;">$2</span>$3'):t}},{key:"rule",value:function(){var t={begin:"(^| )\\/",end:"\\/( |$)",content:"([^\\n]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}(fu);function Bp(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}Fa(xp,"HOOK_NAME","underline");var Tp=function(t){ca(n,t);var e=Bp(n);function n(){return Ji(this,n),e.apply(this,arguments)}return ta(n,[{key:"makeHtml",value:function(t){return this.test(t)?t.replace(this.RULE.reg,"$1<mark>$2</mark>$3"):t}},{key:"rule",value:function(){var t={begin:"(^| )==",end:"==( |$|\\n)",content:"([^\\n]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}(fu);Fa(Tp,"HOOK_NAME","highLight"),P.JSON||(P.JSON={stringify:JSON.stringify});var kp=function(t,e,n){return p(P.JSON.stringify,null,arguments)},Sp=Me.includes,Ip=A((function(){return!Array(1).includes()}));Xt({target:"Array",proto:!0,forced:Ip},{includes:function(t){return Sp(this,t,arguments.length>1?arguments[1]:void 0)}});var Lp=Wr("Array").includes,Fp=b("".indexOf);Xt({target:"String",proto:!0,forced:!_l("includes")},{includes:function(t){return!!~Fp(pn(M(this)),pn(vl(t)),arguments.length>1?arguments[1]:void 0)}});var Np=Wr("String").includes,Op=Array.prototype,Dp=String.prototype,Mp=function(t){var e=t.includes;return t===Op||G(Op,t)&&e===Op.includes?Lp:"string"==typeof t||t===Dp||G(Dp,t)&&e===Dp.includes?Np:e};var Rp=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i};var Up=function(t){return"symbol"==typeof t||Cs(t)&&"[object Symbol]"==wo(t)},Pp=ho?ho.prototype:void 0,Hp=Pp?Pp.toString:void 0;var Qp=function t(e){if("string"==typeof e)return e;if(Is(e))return Rp(e,t)+"";if(Up(e))return Hp?Hp.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n};var Gp=function(t){return null==t?"":Qp(t)},jp=/[\\^$.*+?()[\]{}|]/g,$p=RegExp(jp.source);var Kp=function(t){return(t=Gp(t))&&$p.test(t)?t.replace(jp,"\\$&"):t},Yp=function(){return"CodeMirror.Pass"};function zp(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var Wp=function(t){ca(n,t);var e=zp(n);function n(t){var r,i=t.config;return Ji(this,n),(r=e.call(this,{needCache:!0})).config=i,r.RULE=r.rule(),r}return ta(n,[{key:"afterInit",value:function(t){"function"==typeof t&&t(),this.initConfig(this.config)}},{key:"getSystemSuggestList",value:function(){var t=this.$locale;return[{icon:"h1",label:t["H1 Heading"],keyword:"head1",value:"# "},{icon:"h2",label:t["H2 Heading"],keyword:"head2",value:"## "},{icon:"h3",label:t["H3 Heading"],keyword:"head3",value:"### "},{icon:"table",label:t.table,keyword:"table",value:"| Header | Header | Header |\n| --- | --- | --- |\n| Content | Content | Content |\n"},{icon:"code",label:t.code,keyword:"code",value:"```\n\n```\n"},{icon:"link",label:t.link,keyword:"link",value:"[title](https://url)"},{icon:"checklist",label:t.checklist,keyword:"checklist",value:"- [ ] item\n- [x] item"},{icon:"tips",label:t.panel,keyword:"panel tips info warning danger success",value:"::: primary title\ncontent\n:::\n"},{icon:"insertFlow",label:t.detail,keyword:"detail",value:"+++ 点击展开更多\n内容\n++- 默认展开\n内容\n++ 默认收起\n内容\n+++\n"}]}},{key:"initConfig",value:function(t){var e=this,n=t.suggester;this.suggester={},n||(n=[]);var r=this.getSystemSuggestList();n.unshift({keyword:"/",suggestList:function(t,e){var n=t.replace(/^\//,"");if(/^\s$/.test(n))e(!1);else{var i=n.replace(/\s+/g,"").split("").join(".*?"),a=new RegExp("^.*?".concat(i,".*?$"),"i"),o=Xr(r).call(r,(function(t){return!n||a.test(t.keyword)}));e(o)}}}),ji(n).call(n,(function(t){t.suggestList?(t.keyword||(t.keyword="@"),e.suggester[t.keyword]=t):console.warn("[cherry-suggester]: the suggestList of config is missing.")})),qp.hasEditor()&&(qp.editor=null)}},{key:"makeHtml",value:function(t){var e,n;if(!this.RULE.reg)return t;if(!qp.hasEditor()&&Ed()){var r=this.$engine.$cherry.editor;qp.setEditor(r),qp.setSuggester(this.suggester),qp.bindEvent()}return FA()?t.replace(this.RULE.reg,Pa(n=this.toHtml).call(n,this)):hf(t,this.RULE.reg,Pa(e=this.toHtml).call(e,this),!0,1)}},{key:"toHtml",value:function(t,e,n,r){var i,a,o,s,c;return r?(null===(a=this.suggester[n])||void 0===a||null===(o=a.echo)||void 0===o?void 0:o.call(this,r))||Da(s=Da(c="".concat(e,'<span class="cherry-suggestion">')).call(c,n)).call(s,r,"</span>"):!1===(null===(i=this.suggester[n])||void 0===i?void 0:i.echo)?"".concat(e):this.suggester[n]?r?e+r:"".concat(e):e+r}},{key:"rule",value:function(){var t,e,n;if(!this.suggester||fn(this.suggester).length<=0)return{};var r=yu(t=fn(this.suggester)).call(t,(function(t){return Kp(t)})).join("|");return{reg:new RegExp(Da(e=Da(n="".concat(FA()?"((?<!\\\\))[ ]":"(^|[^\\\\])[ ]","(")).call(n,r,")(([^")).call(e,r,"\\s])+)"),"g")}}},{key:"mounted",value:function(){if(!qp.hasEditor()&&Ed()){var t=this.$engine.$cherry.editor;qp.setEditor(t),qp.setSuggester(this.suggester),qp.bindEvent()}}}]),n}(fu);Fa(Wp,"HOOK_NAME","suggester");var Vp=function(){function t(){var e,n,r;(Ji(this,t),this.searchCache=!1,this.searchKeyCache=[],this.optionList=[],this.cursorMove=!0,this.suggesterConfig={},!this.$suggesterPanel&&Ed()&&document)&&(null===(e=document)||void 0===e||null===(n=e.body)||void 0===n||n.appendChild(this.createDom(t.panelWrap)),this.$suggesterPanel=null===(r=document)||void 0===r?void 0:r.querySelector(".cherry-suggester-panel"))}return ta(t,[{key:"hasEditor",value:function(){return!!this.editor&&!!this.editor.editor.display&&!!this.editor.editor.display.wrapper}},{key:"setEditor",value:function(t){this.editor=t}},{key:"setSuggester",value:function(t){this.suggesterConfig=t}},{key:"bindEvent",value:function(){var t=this,e=!1;this.editor.editor.on("change",(function(n,r){e=!0,t.onCodeMirrorChange(n,r)})),this.editor.editor.on("keydown",(function(n,r){e=!0,t.enableRelate()&&t.onKeyDown(n,r)})),this.editor.editor.on("cursorActivity",(function(){e||t.stopRelate(),e=!1}));var n=this.editor.editor.getOption("extraKeys"),r=["Up","Down","Enter"];ji(r).call(r,(function(e){if("function"==typeof n[e]){var r=n[e];n[e]=function(t){if(qp.cursorMove){var e=r.call(t,t);if(e)return e}}}else if(n[e]){if("string"==typeof n[e]){var i=n[e];n[e]=function(e){qp.cursorMove&&t.editor.editor.execCommand(i)}}}else n[e]=function(){if(qp.cursorMove)return Yp()}})),this.editor.editor.setOption("extraKeys",n),this.editor.editor.on("scroll",(function(e,n){t.searchCache&&t.relocatePanel(t.editor.editor)})),this.onClickPancelItem()}},{key:"onClickPancelItem",value:function(){var t=this;this.$suggesterPanel.addEventListener("click",(function(e){var n=function(t,e){var n,r=-1;return ji(n=t.childNodes).call(n,(function(t,n){return t===e?r=n:""})),r}(t.$suggesterPanel,e.target);n>-1&&t.pasteSelectResult(n),t.stopRelate()}),!1)}},{key:"showsuggesterPanel",value:function(e){var n=e.left,r=e.top,i=e.items;!this.$suggesterPanel&&Ed()&&(document.body.appendChild(this.createDom(t.panelWrap)),this.$suggesterPanel=document.querySelector(".cherry-suggester-panel")),this.updatePanel(i),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(t){var e=this,n=yu(t).call(t,(function(t,n){if("object"===Ba(t)&&null!==t){var r,i=t.label;if(null!=t&&t.icon)i=Da(r='<i class="ch-icon ch-icon-'.concat(t.icon,'"></i>')).call(r,i);return e.renderPanelItem(i,0===n)}return e.renderPanelItem(t,0===n)})).join(""),r=this.suggesterConfig[this.keyword];r&&"function"==typeof r.suggestListRender&&(n=r.suggestListRender.call(this,t)||n),this.$suggesterPanel.innerHTML="","string"==typeof n?this.$suggesterPanel.innerHTML=n:_u(n)&&n.length>0?ji(n).call(n,(function(t){e.$suggesterPanel.appendChild(t)})):"object"===Ba(n)&&1===n.nodeType&&this.$suggesterPanel.appendChild(n)}},{key:"renderPanelItem",value:function(t,e){return e?'<div class="cherry-suggester-panel__item cherry-suggester-panel__item--selected">'.concat(t,"</div>"):'<div class="cherry-suggester-panel__item">'.concat(t,"</div>")}},{key:"createDom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.template||(this.template=document.createElement("div")),this.template.innerHTML=Xc(t).call(t);var e=document.createDocumentFragment();return yu(Array.prototype).call(this.template.childNodes,(function(t,n){e.appendChild(t)})),e}},{key:"relocatePanel",value:function(t){var e=document.querySelector(".CodeMirror-cursors .CodeMirror-cursor");if(!e)return!1;var n=t.getCursor(),r=t.lineInfo(n.line).handle.height,i=e.getBoundingClientRect(),a=i.top+r,o=i.left;this.showsuggesterPanel({left:o,top:a,items:this.optionList})}},{key:"getCursorPos",value:function(t){var e=document.querySelector(".CodeMirror-cursors .CodeMirror-cursor");if(!e)return null;var n=t.getCursor(),r=t.lineInfo(n.line).handle.height,i=e.getBoundingClientRect(),a=i.top+r;return{left:i.left,top:a}}},{key:"startRelate",value:function(t,e,n){this.cursorFrom=n,this.keyword=e,this.searchCache=!0,this.relocatePanel(t)}},{key:"stopRelate",value:function(){this.hidesuggesterPanel(),this.cursorFrom=null,this.cursorTo=null,this.keyword="",this.searchKeyCache=[],this.searchCache=!1,this.cursorMove=!0,this.optionList=[]}},{key:"pasteSelectResult",value:function(t,e){if(this.cursorTo||(this.cursorTo=JSON.parse(kp(this.cursorFrom))),this.cursorTo){this.cursorTo.ch+=1;var n=this.cursorFrom,r=this.cursorTo;if(this.optionList[t]){var i,a="";if("object"===Ba(this.optionList[t])&&null!==this.optionList[t]&&"string"==typeof this.optionList[t].value&&(a=this.optionList[t].value),"object"===Ba(this.optionList[t])&&null!==this.optionList[t]&&"function"==typeof this.optionList[t].value&&(a=this.optionList[t].value()),"string"==typeof this.optionList[t])a=Da(i=" ".concat(this.keyword)).call(i,this.optionList[t]," ");a&&this.editor.editor.replaceRange(a,n,r)}}}},{key:"findSelectedItemIndex",value:function(){return ru(Array.prototype).call(this.$suggesterPanel.childNodes,(function(t){return t.classList.contains("cherry-suggester-panel__item--selected")}))}},{key:"enableRelate",value:function(){return this.searchCache}},{key:"onCodeMirrorChange",value:function(t,e){var n=this,r=e.text,i=e.from,a=e.to,o=e.origin,s=1===r.length?r[0]:"";if(!this.enableRelate()&&this.suggesterConfig[s]&&this.startRelate(t,s,i),this.enableRelate()&&(s||"+delete"===o)){var c;if(this.cursorTo=a,s)this.searchKeyCache.push(s);else if("+delete"===o&&(this.searchKeyCache.pop(),0===this.searchKeyCache.length))return void this.stopRelate();"function"==typeof(null===(c=this.suggesterConfig[this.keyword])||void 0===c?void 0:c.suggestList)&&this.suggesterConfig[this.keyword].suggestList(this.searchKeyCache.join(""),(function(t){!1!==t?(n.optionList=t&&t.length?t:[],n.updatePanel(n.optionList)):n.stopRelate()}))}}},{key:"onKeyDown",value:function(t,e){var n,r=this;if(!this.$suggesterPanel)return!1;var i=e.keyCode;if(Mp(n=[38,40]).call(n,i)){this.cursorMove=!1;var a=this.$suggesterPanel.querySelector(".cherry-suggester-panel__item--selected"),o=null;38!==i||a.previousElementSibling?40!==i||a.nextElementSibling?38===i?o=a.previousElementSibling:40===i&&(o=a.nextElementSibling):o=this.$suggesterPanel.firstElementChild:o=this.$suggesterPanel.lastElementChild,a.classList.remove("cherry-suggester-panel__item--selected"),o.classList.add("cherry-suggester-panel__item--selected")}else 13===i?(e.stopPropagation(),this.cursorMove=!1,this.pasteSelectResult(this.findSelectedItemIndex(),e),t.focus(),Wa((function(){r.stopRelate()}),0)):27===i&&(e.stopPropagation(),t.focus(),Wa((function(){r.stopRelate()}),0))}}]),t}();Fa(Vp,"panelWrap",'<div class="cherry-suggester-panel"></div>');var qp=new Vp;function Xp(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var Jp=function(t){ca(n,t);var e=Xp(n);function n(){return Ji(this,n),e.apply(this,arguments)}return ta(n,[{key:"makeHtml",value:function(t){return this.test(t)?t.replace(this.RULE.reg,"$1<ruby>$2<rt>$3</rt></ruby>$4"):t}},{key:"rule",value:function(){var t={begin:"(^| )\\{",end:"\\}( |$)",content:"([^\n]+?)\\|([^\n]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}]),n}(fu);function Zp(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}Fa(Jp,"HOOK_NAME","ruby");var tg=function(t){ca(n,t);var e=Zp(n);function n(t){var r;return Ji(this,n),(r=e.call(this,{needCache:!0})).initBrReg(t.globalConfig.classicBr),r}return ta(n,[{key:"makeHtml",value:function(t,e){var n=this;return t.replace(this.RULE.reg,(function(t,r,i,a){var o,s,c,l,A,u=n.getLineCount(t,r),h=n.$engine.md5(t),f=n.$getPanelInfo(i,a,e),d=f.title,p=f.body,g=f.appendStyle,m=f.className;return vu(t,n.pushCache(Da(o=Da(s=Da(c=Da(l=Da(A='<div class="'.concat(m,'" data-sign="')).call(A,h,'" data-lines="')).call(l,u,'" ')).call(c,g,">")).call(s,d)).call(o,p,"</div>"),h,u))}))}},{key:"$getClassByType",value:function(t){return/(left|right|center)/i.test(t)?"cherry-text-align cherry-text-align__".concat(t):"cherry-panel cherry-panel__".concat(t)}},{key:"$getPanelInfo",value:function(t,e,n){var r,i=this,a={type:this.$getTargetType(t),title:n(this.$getTitle(t)).html,body:e,appendStyle:"",className:""};a.className=this.$getClassByType(a.type),/(left|right|center)/i.test(a.type)&&(a.appendStyle='style="text-align:'.concat(a.type,';"')),a.title=Da(r='<div class="cherry-panel--title '.concat(a.title?"cherry-panel--title__not-empty":"",'">')).call(r,a.title,"</div>");var o=function(t){var e,r;if(""===Xc(t).call(t))return"";var a=n(t).html,o="p";return new RegExp("<(".concat(Yu,")[^>]*>"),"i").test(a)&&(o="div"),Da(e=Da(r="<".concat(o,">")).call(r,i.$cleanParagraph(a),"</")).call(e,o,">")},s="";return s=this.isContainsCache(a.body)?this.makeExcludingCached(a.body,o):o(a.body),a.body='<div class="cherry-panel--body">'.concat(s,"</div>"),a}},{key:"$getTitle",value:function(t){var e=Xc(t).call(t);return/\s/.test(e)?e.replace(/[^\s]+\s/,""):""}},{key:"$getTargetType",value:function(t){var e=/\s/.test(Xc(t).call(t))?Xc(t).call(t).replace(/\s.*$/,""):t;switch(Xc(e).call(e).toLowerCase()){case"primary":case"p":return"primary";case"info":case"i":return"info";case"warning":case"w":return"warning";case"danger":case"d":return"danger";case"success":case"s":return"success";case"right":case"r":return"right";case"center":case"c":return"center";case"left":case"l":return"left";default:return"primary"}}},{key:"rule",value:function(){return KA()}}]),n}(nh);function eg(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}Fa(tg,"HOOK_NAME","panel");var ng=function(t){ca(n,t);var e=eg(n);function n(){return Ji(this,n),e.call(this,{needCache:!0})}return ta(n,[{key:"makeHtml",value:function(t,e){var n=this;return t.replace(this.RULE.reg,(function(t,r,i,a,o){var s,c,l,A=n.getLineCount(t,r),u=n.$engine.md5(t),h=n.$getDetailInfo(i,a,o,e),f=h.type,d=h.html;return vu(t,n.pushCache(Da(s=Da(c=Da(l='<div class="cherry-detail cherry-detail__'.concat(f,'" data-sign="')).call(l,u,'" data-lines="')).call(c,A,'" >')).call(s,d,"</div>"),u,A))}))}},{key:"$getDetailInfo",value:function(t,e,n,r){var i=this,a=/\n\s*(\+\+|\+\+-)\s*[^\n]+\n/.test(n)?"multiple":"single",o=n.split(/\n\s*(\+\+[-]{0,1}\s*[^\n]+)\n/),s="-"===t,c=e,l="";return"multiple"===a?ji(o).call(o,(function(t){if(/\+\+/.test(t))return s=/\+\+-/.test(t),c=t.replace(/\+\+[-]{0,1}\s*([^\n]+)$/,"$1"),!0;l+=i.$getDetailHtml(s,c,t,r)})):l=this.$getDetailHtml(s,c,n,r),{type:a,html:l}}},{key:"$getDetailHtml",value:function(t,e,n,r){var i=this,a="<details ".concat(t?"open":"",">"),o=function(t){var e,n;if(""===Xc(t).call(t))return"";var a=r(t).html,o="p";return new RegExp("<(".concat(Yu,")[^>]*>"),"i").test(a)&&(o="div"),Da(e=Da(n="<".concat(o,">")).call(n,i.$cleanParagraph(a),"</")).call(e,o,">")};a+="<summary>".concat(r(e).html,"</summary>");var s="";return s=this.isContainsCache(n)?this.makeExcludingCached(n,o):o(n),a+='<div class="cherry-detail-body">'.concat(s,"</div>"),a+="</details>"}},{key:"rule",value:function(){return YA()}}]),n}(nh);Fa(ng,"HOOK_NAME","detail");var rg=[If,Ff,qd,Jd,mp,sp,lp,ld,xd,wd,jd,ap,sd,Td,Hd,ng,tg,Xf,Ep,Fd,jf,Kd,Vf,gf,df,yf,Cf,wf,Jp,bf,xp,Tp,Wp],ig=function(){function t(e,n){Ji(this,t),this.$cherry=n,Xi(this,"_cherry",{get:function(){return TA.warn("`_engine._cherry` is deprecated. Use `$engine.$cherry` instead."),this.$cherry}}),this.initMath(e),this.$configInit(e),this.hookCenter=new nf(rg,e,n),this.hooks=this.hookCenter.getHookList(),this.md5Cache={},this.md5StrMap={},this.markdownParams=e,this.currentStrMd5=[],this.htmlWhiteListAppend=e.engine.global.htmlWhiteList}return ta(t,[{key:"initMath",value:function(t){var e=t.externals,n=t.engine.syntax,r=n.mathBlock.plugins;if(Ed()&&(n.mathBlock.src||n.inlineMath.src)&&!e.MathJax&&!window.MathJax){!function(t){if(Ed()){var e=t?["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:e}}}}(r);var i=document.createElement("script");i.src=n.mathBlock.src?n.mathBlock.src:n.inlineMath.src,i.async=!0,i.src&&document.head.appendChild(i)}}},{key:"$configInit",value:function(t){if(t.hooksConfig&&zh(t.hooksConfig.hooksList,Array))for(var e=0;e<t.hooksConfig.hooksList.length;e++){var n=t.hooksConfig.hooksList[e];try{"sentence"===n.getType()&&Wh(n,fu),"paragraph"===n.getType()&&Wh(n,nh),Vh(n),rg.push(n)}catch(t){throw new Error("the hook does not correctly inherit")}}}},{key:"$beforeMakeHtml",value:function(t){var e=t.replace(/~/g,"~T");return"\n"!==(e=(e=(e=e.replace(/\$/g,"~D")).replace(/\r\n/g,"\n")).replace(/\r/g,"\n"))[e.length-1]&&(e+="\n"),e=this.$fireHookAction(e,"sentence","beforeMakeHtml"),e=this.$fireHookAction(e,"paragraph","beforeMakeHtml")}},{key:"$afterMakeHtml",value:function(t){var e=this.$fireHookAction(t,"paragraph","afterMakeHtml");return e=(e=(e=(e=(e=(e=e.replace(/~D/g,"$")).replace(/~T/g,"~")).replace(/\\<\//g,"\\ </")).replace(new RegExp("\\\\(".concat(OA,")"),"g"),(function(t,e){return"&"===e?t:Vu(e)})).replace(/\\&(?!(amp|lt|gt|quot|apos);)/,(function(){return"&amp;"}))).replace(/\\ <\//g,"\\</")).replace(/id="safe_(?=.*?")/g,'id="'),e=Qf.restoreAll(e)}},{key:"$dealSentenceByCache",value:function(t){var e=this;return this.$checkCache(t,(function(t){return e.$dealSentence(t)}))}},{key:"$dealSentence",value:function(t){var e;return this.$fireHookAction(t,"sentence","makeHtml",Pa(e=this.$dealSentenceByCache).call(e,this))}},{key:"$fireHookAction",value:function(t,e,n,r){var i=this,a=t,o="afterMakeHtml"===n?"reduceRight":"reduce";if(!this.hooks&&!this.hooks[e]&&!this.hooks[e][o])return a;try{a=this.hooks[e][o]((function(t,e){return e.$engine||(e.$engine=i,Xi(e,"_engine",{get:function(){return TA.warn("`this._engine` is deprecated. Use `this.$engine` instead."),this.$engine}})),e[n]?e[n](t,r,i.markdownParams):t}),a)}catch(t){throw new qh(t)}return a}},{key:"md5",value:function(t){return this.md5StrMap[t]||(this.md5StrMap[t]=Uf(t)),this.md5StrMap[t]}},{key:"$checkCache",value:function(t,e){var n=this.md5(t);return void 0===this.md5Cache[n]&&(this.md5Cache[n]=e(t)),{sign:n,html:this.md5Cache[n]}}},{key:"$dealParagraph",value:function(t){var e;return this.$fireHookAction(t,"paragraph","makeHtml",Pa(e=this.$dealSentenceByCache).call(e,this))}},{key:"makeHtml",value:function(t){var e=this.$beforeMakeHtml(t);return e=this.$dealParagraph(e),e=this.$afterMakeHtml(e)}},{key:"mounted",value:function(){this.$fireHookAction("","sentence","mounted"),this.$fireHookAction("","paragraph","mounted")}},{key:"makeMarkdown",value:function(t){return AA.run(t)}}]),t}(),ag=Array.isArray,og=Object.prototype.toString,sg=ag||function(t){return"[object Array]"===og.call(t)};var cg=function(t){return t&&"VirtualNode"===t.type&&"2"===t.version};var lg=function(t){return t&&"Widget"===t.type};var Ag=function(t){return t&&"Thunk"===t.type};var ug=function(t){return t&&("function"==typeof t.hook&&!t.hasOwnProperty("hook")||"function"==typeof t.unhook&&!t.hasOwnProperty("unhook"))};var hg=pg,fg={},dg=[];function pg(t,e,n,r,i){this.tagName=t,this.properties=e||fg,this.children=n||dg,this.key=null!=r?String(r):void 0,this.namespace="string"==typeof i?i:null;var a,o=n&&n.length||0,s=0,c=!1,l=!1,A=!1;for(var u in e)if(e.hasOwnProperty(u)){var h=e[u];ug(h)&&h.unhook&&(a||(a={}),a[u]=h)}for(var f=0;f<o;f++){var d=n[f];cg(d)?(s+=d.count||0,!c&&d.hasWidgets&&(c=!0),!l&&d.hasThunks&&(l=!0),A||!d.hooks&&!d.descendantHooks||(A=!0)):!c&&lg(d)?"function"==typeof d.destroy&&(c=!0):!l&&Ag(d)&&(l=!0)}this.count=o+s,this.hasWidgets=c,this.hasThunks=l,this.hooks=a,this.descendantHooks=A}pg.prototype.version="2",pg.prototype.type="VirtualNode";var gg=mg;function mg(t){this.text=String(t)}mg.prototype.version="2",mg.prototype.type="VirtualText";var yg=function(t){return t&&"VirtualText"===t.type&&"2"===t.version};var vg,bg,_g,wg=(bg=String.prototype.split,_g=/()??/.exec("")[1]===vg,function(t,e,n){if("[object RegExp]"!==Object.prototype.toString.call(e))return bg.call(t,e,n);var r,i,a,o,s=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.extended?"x":"")+(e.sticky?"y":""),l=0;for(e=new RegExp(e.source,c+"g"),t+="",_g||(r=new RegExp("^"+e.source+"$(?!\\s)",c)),n=n===vg?-1>>>0:n>>>0;(i=e.exec(t))&&!((a=i.index+i[0].length)>l&&(s.push(t.slice(l,i.index)),!_g&&i.length>1&&i[0].replace(r,(function(){for(var t=1;t<arguments.length-2;t++)arguments[t]===vg&&(i[t]=vg)})),i.length>1&&i.index<t.length&&Array.prototype.push.apply(s,i.slice(1)),o=i[0].length,l=a,s.length>=n));)e.lastIndex===i.index&&e.lastIndex++;return l===t.length?!o&&e.test("")||s.push(""):s.push(t.slice(l)),s.length>n?s.slice(0,n):s}),Eg=/([\.#]?[a-zA-Z0-9\u007F-\uFFFF_:-]+)/,Cg=/^\.|#/,xg=function(t,e){if(!t)return"DIV";var n,r,i,a,o=!e.hasOwnProperty("id"),s=wg(t,Eg),c=null;Cg.test(s[1])&&(c="DIV");for(a=0;a<s.length;a++)(r=s[a])&&(i=r.charAt(0),c?"."===i?(n=n||[]).push(r.substring(1,r.length)):"#"===i&&o&&(e.id=r.substring(1,r.length)):c=r);n&&(e.className&&n.push(e.className),e.className=n.join(" "));return e.namespace?c:c.toUpperCase()};var Bg=Tg;function Tg(t){if(!(this instanceof Tg))return new Tg(t);this.value=t}Tg.prototype.hook=function(t,e){t[e]!==this.value&&(t[e]=this.value)};var kg="undefined"!=typeof window?window:void 0!==e?e:{},Sg=function(t,e){if(t in kg)return kg[t];return kg[t]=e,e};(function(t,e,n){var r="__INDIVIDUAL_ONE_VERSION_"+t,i=Sg(r+"_ENFORCE_SINGLETON",e);if(i!==e)throw new Error("Can only have one copy of "+t+".\nYou already have version "+i+" installed.\nThis means you cannot install version "+e);Sg(r,n)})("ev-store","7");var Ig=function(t){var e=t["__EV_STORE_KEY@7"];e||(e=t["__EV_STORE_KEY@7"]={});return e};var Lg=Fg;function Fg(t){if(!(this instanceof Fg))return new Fg(t);this.value=t}function Ng(t){return cg(t)||yg(t)||lg(t)||Ag(t)}function Og(t){try{return JSON.stringify(t,null," ")}catch(e){return String(t)}}Fg.prototype.hook=function(t,e){Ig(t)[e.substr(3)]=this.value},Fg.prototype.unhook=function(t,e){Ig(t)[e.substr(3)]=void 0};var Dg=function(t,e,n){var r,i,a,o,s=[];!n&&(c=e,"string"==typeof c||sg(c)||Ng(c))&&(n=e,i={});var c;r=xg(t,i=i||e||{}),i.hasOwnProperty("key")&&(a=i.key,i.key=void 0);i.hasOwnProperty("namespace")&&(o=i.namespace,i.namespace=void 0);"INPUT"!==r||o||!i.hasOwnProperty("value")||void 0===i.value||ug(i.value)||(i.value=Bg(i.value));(function(t){for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];if(ug(n))continue;"ev-"===e.substr(0,3)&&(t[e]=Lg(n))}})(i),null!=n&&function t(e,n,r,i){if("string"==typeof e)n.push(new gg(e));else if("number"==typeof e)n.push(new gg(String(e)));else if(Ng(e))n.push(e);else{if(!sg(e)){if(null==e)return;throw function(t){var e=new Error;return e.type="virtual-hyperscript.unexpected.virtual-element",e.message="Unexpected virtual child passed to h().\nExpected a VNode / Vthunk / VWidget / string but:\ngot:\n"+Og(t.foreignObject)+".\nThe parent vnode is:\n"+Og(t.parentVnode),e.foreignObject=t.foreignObject,e.parentVnode=t.parentVnode,e}({foreignObject:e,parentVnode:{tagName:r,properties:i}})}for(var a=0;a<e.length;a++)t(e[a],n,r,i)}}(n,s,r,i);return new hg(r,i,s,a,o)};Rg.NONE=0,Rg.VTEXT=1,Rg.VNODE=2,Rg.WIDGET=3,Rg.PROPS=4,Rg.ORDER=5,Rg.INSERT=6,Rg.REMOVE=7,Rg.THUNK=8;var Mg=Rg;function Rg(t,e,n){this.type=Number(t),this.vNode=e,this.patch=n}Rg.prototype.version="2",Rg.prototype.type="VirtualPatch";var Ug=function(t,e){var n=t,r=e;Ag(e)&&(r=Pg(e,t));Ag(t)&&(n=Pg(t,null));return{a:n,b:r}};function Pg(t,e){var n=t.vnode;if(n||(n=t.vnode=t.render(e)),!(cg(n)||yg(n)||lg(n)))throw new Error("thunk did not return a valid node");return n}var Hg=function(t){return"object"==typeof t&&null!==t},Qg=function t(e,n){var r;for(var i in e){i in n||((r=r||{})[i]=void 0);var a=e[i],o=n[i];if(a!==o)if(Hg(a)&&Hg(o))if(Gg(o)!==Gg(a))(r=r||{})[i]=o;else if(ug(o))(r=r||{})[i]=o;else{var s=t(a,o);s&&((r=r||{})[i]=s)}else(r=r||{})[i]=o}for(var c in n)c in e||((r=r||{})[c]=n[c]);return r};function Gg(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__?t.__proto__:t.constructor?t.constructor.prototype:void 0}function jg(t,e){var n={a:t};return $g(t,e,n,0),n}function $g(t,e,n,r){if(t!==e){var i=n[r],a=!1;if(Ag(t)||Ag(e))Yg(t,e,n,r);else if(null==e)lg(t)||(Kg(t,n,r),i=n[r]),i=Vg(i,new Mg(Mg.REMOVE,t,e));else if(cg(e))if(cg(t))if(t.tagName===e.tagName&&t.namespace===e.namespace&&t.key===e.key){var o=Qg(t.properties,e.properties);o&&(i=Vg(i,new Mg(Mg.PROPS,t,o))),i=function(t,e,n,r,i){for(var a=t.children,o=function(t,e){var n=Wg(e),r=n.keys,i=n.free;if(i.length===e.length)return{children:e,moves:null};var a=Wg(t),o=a.keys;if(a.free.length===t.length)return{children:e,moves:null};for(var s=[],c=0,l=i.length,A=0,u=0;u<t.length;u++){var h,f=t[u];f.key?r.hasOwnProperty(f.key)?(h=r[f.key],s.push(e[h])):(h=u-A++,s.push(null)):c<l?(h=i[c++],s.push(e[h])):(h=u-A++,s.push(null))}for(var d=c>=i.length?e.length:i[c],p=0;p<e.length;p++){var g=e[p];g.key?o.hasOwnProperty(g.key)||s.push(g):p>=d&&s.push(g)}for(var m,y=s.slice(),v=0,b=[],_=[],w=0;w<e.length;){var E=e[w];for(m=y[v];null===m&&y.length;)b.push(zg(y,v,null)),m=y[v];m&&m.key===E.key?(v++,w++):E.key?(m&&m.key&&r[m.key]!==w+1?(b.push(zg(y,v,m.key)),(m=y[v])&&m.key===E.key?v++:_.push({key:E.key,to:w})):_.push({key:E.key,to:w}),w++):m&&m.key&&b.push(zg(y,v,m.key))}for(;v<y.length;)m=y[v],b.push(zg(y,v,m&&m.key));if(b.length===A&&!_.length)return{children:s,moves:null};return{children:s,moves:{removes:b,inserts:_}}}(a,e.children),s=o.children,c=a.length,l=s.length,A=c>l?c:l,u=0;u<A;u++){var h=a[u],f=s[u];i+=1,h?$g(h,f,n,i):f&&(r=Vg(r,new Mg(Mg.INSERT,null,f))),cg(h)&&h.count&&(i+=h.count)}o.moves&&(r=Vg(r,new Mg(Mg.ORDER,t,o.moves)));return r}(t,e,n,i,r)}else i=Vg(i,new Mg(Mg.VNODE,t,e)),a=!0;else i=Vg(i,new Mg(Mg.VNODE,t,e)),a=!0;else yg(e)?yg(t)?t.text!==e.text&&(i=Vg(i,new Mg(Mg.VTEXT,t,e))):(i=Vg(i,new Mg(Mg.VTEXT,t,e)),a=!0):lg(e)&&(lg(t)||(a=!0),i=Vg(i,new Mg(Mg.WIDGET,t,e)));i&&(n[r]=i),a&&Kg(t,n,r)}}function Kg(t,e,n){!function t(e,n,r){if(cg(e)){if(e.hooks&&(n[r]=Vg(n[r],new Mg(Mg.PROPS,e,function(t){var e={};for(var n in t)e[n]=void 0;return e}(e.hooks)))),e.descendantHooks||e.hasThunks)for(var i=e.children,a=i.length,o=0;o<a;o++){var s=i[o];t(s,n,r+=1),cg(s)&&s.count&&(r+=s.count)}}else Ag(e)&&Yg(e,null,n,r)}(t,e,n),function t(e,n,r){if(lg(e))"function"==typeof e.destroy&&(n[r]=Vg(n[r],new Mg(Mg.REMOVE,e,null)));else if(cg(e)&&(e.hasWidgets||e.hasThunks))for(var i=e.children,a=i.length,o=0;o<a;o++){var s=i[o];t(s,n,r+=1),cg(s)&&s.count&&(r+=s.count)}else Ag(e)&&Yg(e,null,n,r)}(t,e,n)}function Yg(t,e,n,r){var i=Ug(t,e),a=jg(i.a,i.b);(function(t){for(var e in t)if("a"!==e)return!0;return!1})(a)&&(n[r]=new Mg(Mg.THUNK,null,a))}function zg(t,e,n){return t.splice(e,1),{from:e,key:n}}function Wg(t){for(var e={},n=[],r=t.length,i=0;i<r;i++){var a=t[i];a.key?e[a.key]=i:n.push(i)}return{keys:e,free:n}}function Vg(t,e){return t?(sg(t)?t.push(e):t=[t,e],t):e}var qg,Xg=jg,Jg=i(Object.freeze({__proto__:null,default:{}})),Zg=void 0!==e?e:"undefined"!=typeof window?window:{};"undefined"!=typeof document?qg=document:(qg=Zg["__GLOBAL_DOCUMENT_CACHE@4"])||(qg=Zg["__GLOBAL_DOCUMENT_CACHE@4"]=Jg);var tm=qg,em=function(t,e,n){for(var r in e){var i=e[r];void 0===i?nm(t,r,i,n):ug(i)?(nm(t,r,i,n),i.hook&&i.hook(t,r,n?n[r]:void 0)):Hg(i)?rm(t,e,n,r,i):t[r]=i}};function nm(t,e,n,r){if(r){var i=r[e];if(ug(i))i.unhook&&i.unhook(t,e,n);else if("attributes"===e)for(var a in i)t.removeAttribute(a);else if("style"===e)for(var o in i)t.style[o]="";else t[e]="string"==typeof i?"":null}}function rm(t,e,n,r,i){var a=n?n[r]:void 0;if("attributes"!==r)if(a&&Hg(a)&&im(a)!==im(i))t[r]=i;else{Hg(t[r])||(t[r]={});var o="style"===r?"":void 0;for(var s in i){var c=i[s];t[r][s]=void 0===c?o:c}}else for(var l in i){var A=i[l];void 0===A?t.removeAttribute(l):t.setAttribute(l,A)}}function im(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__?t.__proto__:t.constructor?t.constructor.prototype:void 0}var am=function t(e,n){var r=n&&n.document||tm,i=n?n.warn:null;if(e=Ug(e).a,lg(e))return e.init();if(yg(e))return r.createTextNode(e.text);if(!cg(e))return i&&i("Item is not a valid virtual dom node",e),null;var a=null===e.namespace?r.createElement(e.tagName):r.createElementNS(e.namespace,e.tagName),o=e.properties;em(a,o);for(var s=e.children,c=0;c<s.length;c++){var l=t(s[c],n);l&&a.appendChild(l)}return a};var om={},sm=function(t,e,n,r){return n&&0!==n.length?(n.sort(lm),function t(e,n,r,i,a){if(i=i||{},e){cm(r,a,a)&&(i[a]=e);var o=n.children;if(o)for(var s=e.childNodes,c=0;c<n.children.length;c++){a+=1;var l=o[c]||om,A=a+(l.count||0);cm(r,a,A)&&t(s[c],l,r,i,a),a=A}}return i}(t,e,n,r,0)):{}};function cm(t,e,n){if(0===t.length)return!1;for(var r,i,a=0,o=t.length-1;a<=o;){if(i=t[r=(o+a)/2>>0],a===o)return i>=e&&i<=n;if(i<e)a=r+1;else{if(!(i>n))return!0;o=r-1}}return!1}function lm(t,e){return t>e?1:-1}var Am=function(t,e){if(lg(t)&&lg(e))return"name"in t&&"name"in e?t.id===e.id:t.init===e.init;return!1};var um=function(t,e,n){var r=t.type,i=t.vNode,a=t.patch;switch(r){case Mg.REMOVE:return function(t,e){var n=t.parentNode;n&&n.removeChild(t);return hm(t,e),null}(e,i);case Mg.INSERT:return function(t,e,n){var r=n.render(e,n);t&&t.appendChild(r);return t}(e,a,n);case Mg.VTEXT:return function(t,e,n,r){var i;if(3===t.nodeType)t.replaceData(0,t.length,n.text),i=t;else{var a=t.parentNode;i=r.render(n,r),a&&i!==t&&a.replaceChild(i,t)}return i}(e,0,a,n);case Mg.WIDGET:return function(t,e,n,r){var i,a=Am(e,n);i=a?n.update(e,t)||t:r.render(n,r);var o=t.parentNode;o&&i!==t&&o.replaceChild(i,t);a||hm(t,e);return i}(e,i,a,n);case Mg.VNODE:return function(t,e,n,r){var i=t.parentNode,a=r.render(n,r);i&&a!==t&&i.replaceChild(a,t);return a}(e,0,a,n);case Mg.ORDER:return function(t,e){for(var n,r,i,a=t.childNodes,o={},s=0;s<e.removes.length;s++)r=e.removes[s],n=a[r.from],r.key&&(o[r.key]=n),t.removeChild(n);for(var c=a.length,l=0;l<e.inserts.length;l++)i=e.inserts[l],n=o[i.key],t.insertBefore(n,i.to>=c++?null:a[i.to])}(e,a),e;case Mg.PROPS:return em(e,a,i.properties),e;case Mg.THUNK:return function(t,e){t&&e&&t!==e&&t.parentNode&&t.parentNode.replaceChild(e,t);return e}(e,n.patch(e,a,n));default:return e}};function hm(t,e){"function"==typeof e.destroy&&lg(e)&&e.destroy(t)}function fm(t,e,n){var r=function(t){var e=[];for(var n in t)"a"!==n&&e.push(Number(n));return e}(e);if(0===r.length)return t;var i=sm(t,e.a,r),a=t.ownerDocument;n.document||a===tm||(n.document=a);for(var o=0;o<r.length;o++){var s=r[o];t=dm(t,i[s],e[s],n)}return t}function dm(t,e,n,r){if(!e)return t;var i;if(sg(n))for(var a=0;a<n.length;a++)i=um(n[a],e,r),e===t&&(t=i);else i=um(n,e,r),e===t&&(t=i);return t}var pm=function t(e,n,r){return(r=r||{}).patch=r.patch&&r.patch!==t?r.patch:fm,r.render=r.render||am,r.patch(e,n,r)},gm=function(){function t(e,n,r){Ji(this,t),this.options={newObj:e,oldObj:n,getElement:r}}return ta(t,[{key:"doDiff",value:function(){var t=this.findSnakes(this.options.newObj,this.options.oldObj);return this.assembleResult(t,this.options.newObj,this.options.oldObj)}},{key:"getElement",value:function(t,e){return"function"==typeof this.options.getElement?this.options.getElement(t,e):t[e]}},{key:"findSnakes",value:function(t,e){for(var n=t.length||0,r=e.length||0,i=n+r,a={1:0},o={0:{1:0}},s=0;s<=i;s++){for(var c={},l=-s;l<=s;l+=2){for(var A=l===-s||l!==s&&a[l-1]<a[l+1],u=a[A?l+1:l-1],h=A?u:u+1,f=h,d=h-l;f<r&&d<n&&this.getElement(e,f)===this.getElement(t,d);)f+=1,d+=1;if(a[l]=f,c[l]=f,f>=r&&d>=n)return o[s]=c,this.$backtraceSnakes(o,n,r,s)}o[s]=c}return[]}},{key:"$backtraceSnakes",value:function(t,e,n,r){for(var i=[],a={x:n,y:e},o=r;o>0;o--){var s=t[o],c=t[o-1],l=a.x-a.y,A=s[l],u=l===-o||l!==o&&c[l+1]>c[l-1],h=u?l+1:l-1,f=c[h],d=f-h,p=u?f:f+1;i.unshift({xStart:f,xMid:p,xEnd:A}),a.x=f,a.y=d}return i}},{key:"assembleResult",value:function(t,e,n){var r,i=this,a="",o=[],s=0,c=[],l={},A={},u={};return ji(t).call(t,(function(t,r){var h=t.xStart;if(0===r&&0!==t.xStart)for(var f=0;f<t.xStart;f++)a+="%c".concat(i.getElement(n,f),", "),o.push("color: gray"),s+=1;t.xMid-t.xStart==1?(l={type:"delete",oldIndex:t.xStart,newIndex:0},"delete"===A.type&&A.oldIndex===l.oldIndex-1&&(u=u?A:u),c.push(l),A=l,a+="%c".concat(i.getElement(n,t.xStart),", "),o.push("color: red"),h=t.xMid):(l={type:"insert",oldIndex:t.xStart,newIndex:s},"delete"===A.type&&A.oldIndex===l.oldIndex-1?(c.pop(),l={type:"update",oldIndex:(u=u?A:u).oldIndex,newIndex:s},o.push("color: blue")):o.push("color: green"),u={},c.push(l),A=l,a+="%c".concat(i.getElement(e,s),", "),s+=1);for(var d=0;d<t.xEnd-h;d++)a+="%c".concat(i.getElement(n,h+d),", "),o.push("color: gray"),s+=1})),TA.log.apply(TA,Da(r=[a]).call(r,o)),c}}]),t}(),mm=bt("iterator"),ym=!A((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[mm]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host})),vm=function(t,e,n){return zt.f(t,e,n)},bm=/[^\0-\u007E]/,_m=/[.\u3002\uFF0E\uFF61]/g,wm="Overflow: input needs wider integers to process",Em=l.RangeError,Cm=b(_m.exec),xm=Math.floor,Bm=String.fromCharCode,Tm=b("".charCodeAt),km=b([].join),Sm=b([].push),Im=b("".replace),Lm=b("".split),Fm=b("".toLowerCase),Nm=function(t){return t+22+75*(t<26)},Om=function(t,e,n){var r=0;for(t=n?xm(t/700):t>>1,t+=xm(t/e);t>455;)t=xm(t/35),r+=36;return xm(r+36*t/(t+38))},Dm=function(t){var e,n,r=[],i=(t=function(t){for(var e=[],n=0,r=t.length;n<r;){var i=Tm(t,n++);if(i>=55296&&i<=56319&&n<r){var a=Tm(t,n++);56320==(64512&a)?Sm(e,((1023&i)<<10)+(1023&a)+65536):(Sm(e,i),n--)}else Sm(e,i)}return e}(t)).length,a=128,o=0,s=72;for(e=0;e<t.length;e++)(n=t[e])<128&&Sm(r,Bm(n));var c=r.length,l=c;for(c&&Sm(r,"-");l<i;){var A=2147483647;for(e=0;e<t.length;e++)(n=t[e])>=a&&n<A&&(A=n);var u=l+1;if(A-a>xm((2147483647-o)/u))throw Em(wm);for(o+=(A-a)*u,a=A,e=0;e<t.length;e++){if((n=t[e])<a&&++o>2147483647)throw Em(wm);if(n==a){for(var h=o,f=36;;){var d=f<=s?1:f>=s+26?26:f-s;if(h<d)break;var p=h-d,g=36-d;Sm(r,Bm(Nm(d+p%g))),h=xm(p/g),f+=36}Sm(r,Bm(Nm(h))),s=Om(o,u,l==c),o=0,l++}}o++,a++}return km(r,"")},Mm=Math.floor,Rm=function(t,e){var n=t.length,r=Mm(n/2);return n<8?Um(t,e):Pm(t,Rm(_n(t,0,r),e),Rm(_n(t,r),e),e)},Um=function(t,e){for(var n,r,i=t.length,a=1;a<i;){for(r=a,n=t[a];r&&e(t[r-1],n)>0;)t[r]=t[--r];r!==a++&&(t[r]=n)}return t},Pm=function(t,e,n,r){for(var i=e.length,a=n.length,o=0,s=0;o<i||s<a;)t[o+s]=o<i&&s<a?r(e[o],n[s])<=0?e[o++]:n[s++]:o<i?e[o++]:n[s++];return t},Hm=Rm,Qm=bt("iterator"),Gm=$n.set,jm=$n.getterFor("URLSearchParams"),$m=$n.getterFor("URLSearchParamsIterator"),Km=Object.getOwnPropertyDescriptor,Ym=function(t){if(!w)return l[t];var e=Km(l,t);return e&&e.value},zm=Ym("fetch"),Wm=Ym("Request"),Vm=Ym("Headers"),qm=Wm&&Wm.prototype,Xm=Vm&&Vm.prototype,Jm=l.RegExp,Zm=l.TypeError,ty=l.decodeURIComponent,ey=l.encodeURIComponent,ny=b("".charAt),ry=b([].join),iy=b([].push),ay=b("".replace),oy=b([].shift),sy=b([].splice),cy=b("".split),ly=b("".slice),Ay=/\+/g,uy=Array(4),hy=function(t){return uy[t-1]||(uy[t-1]=Jm("((?:%[\\da-f]{2}){"+t+"})","gi"))},fy=function(t){try{return ty(t)}catch(e){return t}},dy=function(t){var e=ay(t,Ay," "),n=4;try{return ty(e)}catch(t){for(;n;)e=ay(e,hy(n--),fy);return e}},py=/[!'()~]|%20/g,gy={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},my=function(t){return gy[t]},yy=function(t){return ay(ey(t),py,my)},vy=_i((function(t,e){Gm(this,{type:"URLSearchParamsIterator",iterator:ol(jm(t).entries),kind:e})}),"Iterator",(function(){var t=$m(this),e=t.kind,n=t.iterator.next(),r=n.value;return n.done||(n.value="keys"===e?r.key:"values"===e?r.value:[r.key,r.value]),n}),!0),by=function(t){this.entries=[],this.url=null,void 0!==t&&(U(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===ny(t,0)?ly(t,1):t:pn(t)))};by.prototype={type:"URLSearchParams",bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,r,i,a,o,s,c=il(t);if(c)for(n=(e=ol(t,c)).next;!(r=C(n,e)).done;){if(a=(i=ol(jt(r.value))).next,(o=C(a,i)).done||(s=C(a,i)).done||!C(a,i).done)throw Zm("Expected sequence with length 2");iy(this.entries,{key:pn(o.value),value:pn(s.value)})}else for(var l in t)ut(t,l)&&iy(this.entries,{key:l,value:pn(t[l])})},parseQuery:function(t){if(t)for(var e,n,r=cy(t,"&"),i=0;i<r.length;)(e=r[i++]).length&&(n=cy(e,"="),iy(this.entries,{key:dy(oy(n)),value:dy(ry(n,"="))}))},serialize:function(){for(var t,e=this.entries,n=[],r=0;r<e.length;)t=e[r++],iy(n,yy(t.key)+"="+yy(t.value));return ry(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var _y=function(){fh(this,wy);var t=arguments.length>0?arguments[0]:void 0;Gm(this,new by(t))},wy=_y.prototype;if(vh(wy,{append:function(t,e){Qa(arguments.length,2);var n=jm(this);iy(n.entries,{key:pn(t),value:pn(e)}),n.updateURL()},delete:function(t){Qa(arguments.length,1);for(var e=jm(this),n=e.entries,r=pn(t),i=0;i<n.length;)n[i].key===r?sy(n,i,1):i++;e.updateURL()},get:function(t){Qa(arguments.length,1);for(var e=jm(this).entries,n=pn(t),r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){Qa(arguments.length,1);for(var e=jm(this).entries,n=pn(t),r=[],i=0;i<e.length;i++)e[i].key===n&&iy(r,e[i].value);return r},has:function(t){Qa(arguments.length,1);for(var e=jm(this).entries,n=pn(t),r=0;r<e.length;)if(e[r++].key===n)return!0;return!1},set:function(t,e){Qa(arguments.length,1);for(var n,r=jm(this),i=r.entries,a=!1,o=pn(t),s=pn(e),c=0;c<i.length;c++)(n=i[c]).key===o&&(a?sy(i,c--,1):(a=!0,n.value=s));a||iy(i,{key:o,value:s}),r.updateURL()},sort:function(){var t=jm(this);Hm(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,n=jm(this).entries,r=Pt(t,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((e=n[i++]).value,e.key,this)},keys:function(){return new vy(this,"keys")},values:function(){return new vy(this,"values")},entries:function(){return new vy(this,"entries")}},{enumerable:!0}),Bn(wy,Qm,wy.entries,{name:"entries"}),Bn(wy,"toString",(function(){return jm(this).serialize()}),{enumerable:!0}),On(_y,"URLSearchParams"),Xt({global:!0,constructor:!0,forced:!ym},{URLSearchParams:_y}),!ym&&_(Vm)){var Ey=b(Xm.has),Cy=b(Xm.set),xy=function(t){if(U(t)){var e,n=t.body;if("URLSearchParams"===Ae(n))return e=t.headers?new Vm(t.headers):new Vm,Ey(e,"content-type")||Cy(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Je(t,{body:k(0,pn(n)),headers:k(0,e)})}return t};if(_(zm)&&Xt({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return zm(t,arguments.length>1?xy(arguments[1]):{})}}),_(Wm)){var By=function(t){return fh(this,qm),new Wm(t,arguments.length>1?xy(arguments[1]):{})};qm.constructor=By,By.prototype=qm,Xt({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:By})}}var Ty,ky={URLSearchParams:_y,getState:jm},Sy=ba.codeAt,Iy=$n.set,Ly=$n.getterFor("URL"),Fy=ky.URLSearchParams,Ny=ky.getState,Oy=l.URL,Dy=l.TypeError,My=l.parseInt,Ry=Math.floor,Uy=Math.pow,Py=b("".charAt),Hy=b(/./.exec),Qy=b([].join),Gy=b(1..toString),jy=b([].pop),$y=b([].push),Ky=b("".replace),Yy=b([].shift),zy=b("".split),Wy=b("".slice),Vy=b("".toLowerCase),qy=b([].unshift),Xy=/[a-z]/i,Jy=/[\d+-.a-z]/i,Zy=/\d/,tv=/^0x/i,ev=/^[0-7]+$/,nv=/^\d+$/,rv=/^[\da-f]+$/i,iv=/[\0\t\n\r #%/:<>?@[\\\]^|]/,av=/[\0\t\n\r #/:<>?@[\\\]^|]/,ov=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,sv=/[\t\n\r]/g,cv=function(t){var e,n,r,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)qy(e,t%256),t=Ry(t/256);return Qy(e,".")}if("object"==typeof t){for(e="",r=function(t){for(var e=null,n=1,r=null,i=0,a=0;a<8;a++)0!==t[a]?(i>n&&(e=r,n=i),r=null,i=0):(null===r&&(r=a),++i);return i>n&&(e=r,n=i),e}(t),n=0;n<8;n++)i&&0===t[n]||(i&&(i=!1),r===n?(e+=n?":":"::",i=!0):(e+=Gy(t[n],16),n<7&&(e+=":")));return"["+e+"]"}return t},lv={},Av=Mc({},lv,{" ":1,'"':1,"<":1,">":1,"`":1}),uv=Mc({},Av,{"#":1,"?":1,"{":1,"}":1}),hv=Mc({},uv,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),fv=function(t,e){var n=Sy(t,0);return n>32&&n<127&&!ut(e,t)?t:encodeURIComponent(t)},dv={ftp:21,file:null,http:80,https:443,ws:80,wss:443},pv=function(t,e){var n;return 2==t.length&&Hy(Xy,Py(t,0))&&(":"==(n=Py(t,1))||!e&&"|"==n)},gv=function(t){var e;return t.length>1&&pv(Wy(t,0,2))&&(2==t.length||"/"===(e=Py(t,2))||"\\"===e||"?"===e||"#"===e)},mv=function(t){return"."===t||"%2e"===Vy(t)},yv={},vv={},bv={},_v={},wv={},Ev={},Cv={},xv={},Bv={},Tv={},kv={},Sv={},Iv={},Lv={},Fv={},Nv={},Ov={},Dv={},Mv={},Rv={},Uv={},Pv=function(t,e,n){var r,i,a,o=pn(t);if(e){if(i=this.parse(o))throw Dy(i);this.searchParams=null}else{if(void 0!==n&&(r=new Pv(n,!0)),i=this.parse(o,null,r))throw Dy(i);(a=Ny(new Fy)).bindURL(this),this.searchParams=a}};Pv.prototype={type:"URL",parse:function(t,e,n){var r,i,a,o,s,c=this,l=e||yv,A=0,u="",h=!1,f=!1,d=!1;for(t=pn(t),e||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,t=Ky(t,ov,"")),t=Ky(t,sv,""),r=cl(t);A<=r.length;){switch(i=r[A],l){case yv:if(!i||!Hy(Xy,i)){if(e)return"Invalid scheme";l=bv;continue}u+=Vy(i),l=vv;break;case vv:if(i&&(Hy(Jy,i)||"+"==i||"-"==i||"."==i))u+=Vy(i);else{if(":"!=i){if(e)return"Invalid scheme";u="",l=bv,A=0;continue}if(e&&(c.isSpecial()!=ut(dv,u)||"file"==u&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=u,e)return void(c.isSpecial()&&dv[c.scheme]==c.port&&(c.port=null));u="","file"==c.scheme?l=Lv:c.isSpecial()&&n&&n.scheme==c.scheme?l=_v:c.isSpecial()?l=xv:"/"==r[A+1]?(l=wv,A++):(c.cannotBeABaseURL=!0,$y(c.path,""),l=Mv)}break;case bv:if(!n||n.cannotBeABaseURL&&"#"!=i)return"Invalid scheme";if(n.cannotBeABaseURL&&"#"==i){c.scheme=n.scheme,c.path=_n(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,l=Uv;break}l="file"==n.scheme?Lv:Ev;continue;case _v:if("/"!=i||"/"!=r[A+1]){l=Ev;continue}l=Bv,A++;break;case wv:if("/"==i){l=Tv;break}l=Dv;continue;case Ev:if(c.scheme=n.scheme,i==Ty)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=_n(n.path),c.query=n.query;else if("/"==i||"\\"==i&&c.isSpecial())l=Cv;else if("?"==i)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=_n(n.path),c.query="",l=Rv;else{if("#"!=i){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=_n(n.path),c.path.length--,l=Dv;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=_n(n.path),c.query=n.query,c.fragment="",l=Uv}break;case Cv:if(!c.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,l=Dv;continue}l=Tv}else l=Bv;break;case xv:if(l=Bv,"/"!=i||"/"!=Py(u,A+1))continue;A++;break;case Bv:if("/"!=i&&"\\"!=i){l=Tv;continue}break;case Tv:if("@"==i){h&&(u="%40"+u),h=!0,a=cl(u);for(var p=0;p<a.length;p++){var g=a[p];if(":"!=g||d){var m=fv(g,hv);d?c.password+=m:c.username+=m}else d=!0}u=""}else if(i==Ty||"/"==i||"?"==i||"#"==i||"\\"==i&&c.isSpecial()){if(h&&""==u)return"Invalid authority";A-=cl(u).length+1,u="",l=kv}else u+=i;break;case kv:case Sv:if(e&&"file"==c.scheme){l=Nv;continue}if(":"!=i||f){if(i==Ty||"/"==i||"?"==i||"#"==i||"\\"==i&&c.isSpecial()){if(c.isSpecial()&&""==u)return"Invalid host";if(e&&""==u&&(c.includesCredentials()||null!==c.port))return;if(o=c.parseHost(u))return o;if(u="",l=Ov,e)return;continue}"["==i?f=!0:"]"==i&&(f=!1),u+=i}else{if(""==u)return"Invalid host";if(o=c.parseHost(u))return o;if(u="",l=Iv,e==Sv)return}break;case Iv:if(!Hy(Zy,i)){if(i==Ty||"/"==i||"?"==i||"#"==i||"\\"==i&&c.isSpecial()||e){if(""!=u){var y=My(u,10);if(y>65535)return"Invalid port";c.port=c.isSpecial()&&y===dv[c.scheme]?null:y,u=""}if(e)return;l=Ov;continue}return"Invalid port"}u+=i;break;case Lv:if(c.scheme="file","/"==i||"\\"==i)l=Fv;else{if(!n||"file"!=n.scheme){l=Dv;continue}if(i==Ty)c.host=n.host,c.path=_n(n.path),c.query=n.query;else if("?"==i)c.host=n.host,c.path=_n(n.path),c.query="",l=Rv;else{if("#"!=i){gv(Qy(_n(r,A),""))||(c.host=n.host,c.path=_n(n.path),c.shortenPath()),l=Dv;continue}c.host=n.host,c.path=_n(n.path),c.query=n.query,c.fragment="",l=Uv}}break;case Fv:if("/"==i||"\\"==i){l=Nv;break}n&&"file"==n.scheme&&!gv(Qy(_n(r,A),""))&&(pv(n.path[0],!0)?$y(c.path,n.path[0]):c.host=n.host),l=Dv;continue;case Nv:if(i==Ty||"/"==i||"\\"==i||"?"==i||"#"==i){if(!e&&pv(u))l=Dv;else if(""==u){if(c.host="",e)return;l=Ov}else{if(o=c.parseHost(u))return o;if("localhost"==c.host&&(c.host=""),e)return;u="",l=Ov}continue}u+=i;break;case Ov:if(c.isSpecial()){if(l=Dv,"/"!=i&&"\\"!=i)continue}else if(e||"?"!=i)if(e||"#"!=i){if(i!=Ty&&(l=Dv,"/"!=i))continue}else c.fragment="",l=Uv;else c.query="",l=Rv;break;case Dv:if(i==Ty||"/"==i||"\\"==i&&c.isSpecial()||!e&&("?"==i||"#"==i)){if(".."===(s=Vy(s=u))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(c.shortenPath(),"/"==i||"\\"==i&&c.isSpecial()||$y(c.path,"")):mv(u)?"/"==i||"\\"==i&&c.isSpecial()||$y(c.path,""):("file"==c.scheme&&!c.path.length&&pv(u)&&(c.host&&(c.host=""),u=Py(u,0)+":"),$y(c.path,u)),u="","file"==c.scheme&&(i==Ty||"?"==i||"#"==i))for(;c.path.length>1&&""===c.path[0];)Yy(c.path);"?"==i?(c.query="",l=Rv):"#"==i&&(c.fragment="",l=Uv)}else u+=fv(i,uv);break;case Mv:"?"==i?(c.query="",l=Rv):"#"==i?(c.fragment="",l=Uv):i!=Ty&&(c.path[0]+=fv(i,lv));break;case Rv:e||"#"!=i?i!=Ty&&("'"==i&&c.isSpecial()?c.query+="%27":c.query+="#"==i?"%23":fv(i,lv)):(c.fragment="",l=Uv);break;case Uv:i!=Ty&&(c.fragment+=fv(i,Av))}A++}},parseHost:function(t){var e,n,r;if("["==Py(t,0)){if("]"!=Py(t,t.length-1))return"Invalid host";if(!(e=function(t){var e,n,r,i,a,o,s,c=[0,0,0,0,0,0,0,0],l=0,A=null,u=0,h=function(){return Py(t,u)};if(":"==h()){if(":"!=Py(t,1))return;u+=2,A=++l}for(;h();){if(8==l)return;if(":"!=h()){for(e=n=0;n<4&&Hy(rv,h());)e=16*e+My(h(),16),u++,n++;if("."==h()){if(0==n)return;if(u-=n,l>6)return;for(r=0;h();){if(i=null,r>0){if(!("."==h()&&r<4))return;u++}if(!Hy(Zy,h()))return;for(;Hy(Zy,h());){if(a=My(h(),10),null===i)i=a;else{if(0==i)return;i=10*i+a}if(i>255)return;u++}c[l]=256*c[l]+i,2!=++r&&4!=r||l++}if(4!=r)return;break}if(":"==h()){if(u++,!h())return}else if(h())return;c[l++]=e}else{if(null!==A)return;u++,A=++l}}if(null!==A)for(o=l-A,l=7;0!=l&&o>0;)s=c[l],c[l--]=c[A+o-1],c[A+--o]=s;else if(8!=l)return;return c}(Wy(t,1,-1))))return"Invalid host";this.host=e}else if(this.isSpecial()){if(t=function(t){var e,n,r=[],i=Lm(Im(Fm(t),_m,"."),".");for(e=0;e<i.length;e++)n=i[e],Sm(r,Cm(bm,n)?"xn--"+Dm(n):n);return km(r,".")}(t),Hy(iv,t))return"Invalid host";if(null===(e=function(t){var e,n,r,i,a,o,s,c=zy(t,".");if(c.length&&""==c[c.length-1]&&c.length--,(e=c.length)>4)return t;for(n=[],r=0;r<e;r++){if(""==(i=c[r]))return t;if(a=10,i.length>1&&"0"==Py(i,0)&&(a=Hy(tv,i)?16:8,i=Wy(i,8==a?1:2)),""===i)o=0;else{if(!Hy(10==a?nv:8==a?ev:rv,i))return t;o=My(i,a)}$y(n,o)}for(r=0;r<e;r++)if(o=n[r],r==e-1){if(o>=Uy(256,5-e))return null}else if(o>255)return null;for(s=jy(n),r=0;r<n.length;r++)s+=n[r]*Uy(256,3-r);return s}(t)))return"Invalid host";this.host=e}else{if(Hy(av,t))return"Invalid host";for(e="",n=cl(t),r=0;r<n.length;r++)e+=fv(n[r],lv);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return ut(dv,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"==this.scheme&&1==e&&pv(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,n=t.username,r=t.password,i=t.host,a=t.port,o=t.path,s=t.query,c=t.fragment,l=e+":";return null!==i?(l+="//",t.includesCredentials()&&(l+=n+(r?":"+r:"")+"@"),l+=cv(i),null!==a&&(l+=":"+a)):"file"==e&&(l+="//"),l+=t.cannotBeABaseURL?o[0]:o.length?"/"+Qy(o,"/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},setHref:function(t){var e=this.parse(t);if(e)throw Dy(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"==t)try{return new Hv(t.path[0]).origin}catch(t){return"null"}return"file"!=t&&this.isSpecial()?t+"://"+cv(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(pn(t)+":",yv)},getUsername:function(){return this.username},setUsername:function(t){var e=cl(pn(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<e.length;n++)this.username+=fv(e[n],hv)}},getPassword:function(){return this.password},setPassword:function(t){var e=cl(pn(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<e.length;n++)this.password+=fv(e[n],hv)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?cv(t):cv(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,kv)},getHostname:function(){var t=this.host;return null===t?"":cv(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,Sv)},getPort:function(){var t=this.port;return null===t?"":pn(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""==(t=pn(t))?this.port=null:this.parse(t,Iv))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+Qy(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,Ov))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""==(t=pn(t))?this.query=null:("?"==Py(t,0)&&(t=Wy(t,1)),this.query="",this.parse(t,Rv)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!=(t=pn(t))?("#"==Py(t,0)&&(t=Wy(t,1)),this.fragment="",this.parse(t,Uv)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Hv=function(t){var e=fh(this,Qv),n=Qa(arguments.length,1)>1?arguments[1]:void 0,r=Iy(e,new Pv(t,!1,n));w||(e.href=r.serialize(),e.origin=r.getOrigin(),e.protocol=r.getProtocol(),e.username=r.getUsername(),e.password=r.getPassword(),e.host=r.getHost(),e.hostname=r.getHostname(),e.port=r.getPort(),e.pathname=r.getPathname(),e.search=r.getSearch(),e.searchParams=r.getSearchParams(),e.hash=r.getHash())},Qv=Hv.prototype,Gv=function(t,e){return{get:function(){return Ly(this)[t]()},set:e&&function(t){return Ly(this)[e](t)},configurable:!0,enumerable:!0}};if(w&&(vm(Qv,"href",Gv("serialize","setHref")),vm(Qv,"origin",Gv("getOrigin")),vm(Qv,"protocol",Gv("getProtocol","setProtocol")),vm(Qv,"username",Gv("getUsername","setUsername")),vm(Qv,"password",Gv("getPassword","setPassword")),vm(Qv,"host",Gv("getHost","setHost")),vm(Qv,"hostname",Gv("getHostname","setHostname")),vm(Qv,"port",Gv("getPort","setPort")),vm(Qv,"pathname",Gv("getPathname","setPathname")),vm(Qv,"search",Gv("getSearch","setSearch")),vm(Qv,"searchParams",Gv("getSearchParams")),vm(Qv,"hash",Gv("getHash","setHash"))),Bn(Qv,"toJSON",(function(){return Ly(this).serialize()}),{enumerable:!0}),Bn(Qv,"toString",(function(){return Ly(this).serialize()}),{enumerable:!0}),Oy){var jv=Oy.createObjectURL,$v=Oy.revokeObjectURL;jv&&Bn(Hv,"createObjectURL",Pt(jv,Oy)),$v&&Bn(Hv,"revokeObjectURL",Pt($v,Oy))}On(Hv,"URL"),Xt({global:!0,constructor:!0,forced:!ym,sham:!w},{URL:Hv});var Kv=P.URL,Yv=r((function(t,e){t.exports=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};function e(e,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=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function r(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{c(r.next(t))}catch(t){a(t)}}function s(t){try{c(r.throw(t))}catch(t){a(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}c((r=r.apply(t,e||[])).next())}))}function i(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function a(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||e)}for(var o=function(){function t(t,e,n,r){this.left=t,this.top=e,this.width=n,this.height=r}return t.prototype.add=function(e,n,r,i){return new t(this.left+e,this.top+n,this.width+r,this.height+i)},t.fromClientRect=function(e,n){return new t(n.left+e.windowBounds.left,n.top+e.windowBounds.top,n.width,n.height)},t.fromDOMRectList=function(e,n){var r=Array.from(n).find((function(t){return 0!==t.width}));return r?new t(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t}(),s=function(t,e){return o.fromClientRect(t,e.getBoundingClientRect())},c=function(t){for(var e=[],n=0,r=t.length;n<r;){var i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=t.charCodeAt(n++);56320==(64512&a)?e.push(((1023&i)<<10)+(1023&a)+65536):(e.push(i),n--)}else e.push(i)}return e},l=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return"";for(var r=[],i=-1,a="";++i<n;){var o=t[i];o<=65535?r.push(o):(o-=65536,r.push(55296+(o>>10),o%1024+56320)),(i+1===n||r.length>16384)&&(a+=String.fromCharCode.apply(String,r),r.length=0)}return a},A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"==typeof Uint8Array?[]:new Uint8Array(256),h=0;h<A.length;h++)u[A.charCodeAt(h)]=h;for(var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d="undefined"==typeof Uint8Array?[]:new Uint8Array(256),p=0;p<f.length;p++)d[f.charCodeAt(p)]=p;for(var g=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},m=function(){function t(t,e,n,r,i,a){this.initialValue=t,this.errorValue=e,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=a}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=((e=this.index[t>>5])<<2)+(31&t),this.data[e];if(t<=65535)return e=((e=this.index[2048+(t-55296>>5)])<<2)+(31&t),this.data[e];if(t<this.highStart)return e=2080+(t>>11),e=this.index[e],e+=t>>5&63,e=((e=this.index[e])<<2)+(31&t),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v="undefined"==typeof Uint8Array?[]:new Uint8Array(256),b=0;b<y.length;b++)v[y.charCodeAt(b)]=b;var _=10,w=13,E=15,C=17,x=18,B=19,T=20,k=21,S=22,I=24,L=25,F=26,N=27,O=28,D=30,M=32,R=33,U=34,P=35,H=37,Q=38,G=39,j=40,$=42,K=[9001,65288],Y=function(t,e){var n=function(t){var e,n,r,i,a,o=.75*t.length,s=t.length,c=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),A=Array.isArray(l)?l:new Uint8Array(l);for(e=0;e<s;e+=4)n=d[t.charCodeAt(e)],r=d[t.charCodeAt(e+1)],i=d[t.charCodeAt(e+2)],a=d[t.charCodeAt(e+3)],A[c++]=n<<2|r>>4,A[c++]=(15&r)<<4|i>>2,A[c++]=(3&i)<<6|63&a;return l}(t),r=Array.isArray(n)?function(t){for(var e=t.length,n=[],r=0;r<e;r+=4)n.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return n}(n):new Uint32Array(n),i=Array.isArray(n)?function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n.push(t[r+1]<<8|t[r]);return n}(n):new Uint16Array(n),a=g(i,12,r[4]/2),o=2===r[5]?g(i,(24+r[4])/2):function(t,e,n){return t.slice?t.slice(e,n):new Uint32Array(Array.prototype.slice.call(t,e,n))}(r,Math.ceil((24+r[4])/4));return new m(r[0],r[1],r[2],r[3],a,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=="),z=[D,36],W=[1,2,3,5],V=[_,8],q=[N,F],X=W.concat(V),J=[Q,G,j,U,P],Z=[E,w],tt=function(t,e,n,r){var i=r[n];if(Array.isArray(t)?-1!==t.indexOf(i):t===i)for(var a=n;a<=r.length;){if((c=r[++a])===e)return!0;if(c!==_)break}if(i===_)for(a=n;a>0;){var o=r[--a];if(Array.isArray(t)?-1!==t.indexOf(o):t===o)for(var s=n;s<=r.length;){var c;if((c=r[++s])===e)return!0;if(c!==_)break}if(o!==_)break}return!1},et=function(t,e){for(var n=t;n>=0;){var r=e[n];if(r!==_)return r;n--}return 0},nt=function(t,e,n,r,i){if(0===n[r])return"×";var a=r-1;if(Array.isArray(i)&&!0===i[a])return"×";var o=a-1,s=a+1,c=e[a],l=o>=0?e[o]:0,A=e[s];if(2===c&&3===A)return"×";if(-1!==W.indexOf(c))return"!";if(-1!==W.indexOf(A))return"×";if(-1!==V.indexOf(A))return"×";if(8===et(a,e))return"÷";if(11===Y.get(t[a]))return"×";if((c===M||c===R)&&11===Y.get(t[s]))return"×";if(7===c||7===A)return"×";if(9===c)return"×";if(-1===[_,w,E].indexOf(c)&&9===A)return"×";if(-1!==[C,x,B,I,O].indexOf(A))return"×";if(et(a,e)===S)return"×";if(tt(23,S,a,e))return"×";if(tt([C,x],k,a,e))return"×";if(tt(12,12,a,e))return"×";if(c===_)return"÷";if(23===c||23===A)return"×";if(16===A||16===c)return"÷";if(-1!==[w,E,k].indexOf(A)||14===c)return"×";if(36===l&&-1!==Z.indexOf(c))return"×";if(c===O&&36===A)return"×";if(A===T)return"×";if(-1!==z.indexOf(A)&&c===L||-1!==z.indexOf(c)&&A===L)return"×";if(c===N&&-1!==[H,M,R].indexOf(A)||-1!==[H,M,R].indexOf(c)&&A===F)return"×";if(-1!==z.indexOf(c)&&-1!==q.indexOf(A)||-1!==q.indexOf(c)&&-1!==z.indexOf(A))return"×";if(-1!==[N,F].indexOf(c)&&(A===L||-1!==[S,E].indexOf(A)&&e[s+1]===L)||-1!==[S,E].indexOf(c)&&A===L||c===L&&-1!==[L,O,I].indexOf(A))return"×";if(-1!==[L,O,I,C,x].indexOf(A))for(var u=a;u>=0;){if((h=e[u])===L)return"×";if(-1===[O,I].indexOf(h))break;u--}if(-1!==[N,F].indexOf(A))for(u=-1!==[C,x].indexOf(c)?o:a;u>=0;){var h;if((h=e[u])===L)return"×";if(-1===[O,I].indexOf(h))break;u--}if(Q===c&&-1!==[Q,G,U,P].indexOf(A)||-1!==[G,U].indexOf(c)&&-1!==[G,j].indexOf(A)||-1!==[j,P].indexOf(c)&&A===j)return"×";if(-1!==J.indexOf(c)&&-1!==[T,F].indexOf(A)||-1!==J.indexOf(A)&&c===N)return"×";if(-1!==z.indexOf(c)&&-1!==z.indexOf(A))return"×";if(c===I&&-1!==z.indexOf(A))return"×";if(-1!==z.concat(L).indexOf(c)&&A===S&&-1===K.indexOf(t[s])||-1!==z.concat(L).indexOf(A)&&c===x)return"×";if(41===c&&41===A){for(var f=n[a],d=1;f>0&&41===e[--f];)d++;if(d%2!=0)return"×"}return c===M&&A===R?"×":"÷"},rt=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var n=function(t,e){void 0===e&&(e="strict");var n=[],r=[],i=[];return t.forEach((function(t,a){var o=Y.get(t);if(o>50?(i.push(!0),o-=50):i.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(t))return r.push(a),n.push(16);if(4===o||11===o){if(0===a)return r.push(a),n.push(D);var s=n[a-1];return-1===X.indexOf(s)?(r.push(r[a-1]),n.push(s)):(r.push(a),n.push(D))}return r.push(a),31===o?n.push("strict"===e?k:H):o===$||29===o?n.push(D):43===o?t>=131072&&t<=196605||t>=196608&&t<=262141?n.push(H):n.push(D):void n.push(o)})),[r,n,i]}(t,e.lineBreak),r=n[0],i=n[1],a=n[2];return"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(i=i.map((function(t){return-1!==[L,D,$].indexOf(t)?H:t}))),[r,i,"keep-all"===e.wordBreak?a.map((function(e,n){return e&&t[n]>=19968&&t[n]<=40959})):void 0]},it=function(){function t(t,e,n,r){this.codePoints=t,this.required="!"===e,this.start=n,this.end=r}return t.prototype.slice=function(){return l.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),at=function(t){return t>=48&&t<=57},ot=function(t){return at(t)||t>=65&&t<=70||t>=97&&t<=102},st=function(t){return 10===t||9===t||32===t},ct=function(t){return function(t){return function(t){return t>=97&&t<=122}(t)||function(t){return t>=65&&t<=90}(t)}(t)||function(t){return t>=128}(t)||95===t},lt=function(t){return ct(t)||at(t)||45===t},At=function(t){return t>=0&&t<=8||11===t||t>=14&&t<=31||127===t},ut=function(t,e){return 92===t&&10!==e},ht=function(t,e,n){return 45===t?ct(e)||ut(e,n):!!ct(t)||!(92!==t||!ut(t,e))},ft=function(t,e,n){return 43===t||45===t?!!at(e)||46===e&&at(n):at(46===t?e:t)},dt=function(t){var e=0,n=1;43!==t[e]&&45!==t[e]||(45===t[e]&&(n=-1),e++);for(var r=[];at(t[e]);)r.push(t[e++]);var i=r.length?parseInt(l.apply(void 0,r),10):0;46===t[e]&&e++;for(var a=[];at(t[e]);)a.push(t[e++]);var o=a.length,s=o?parseInt(l.apply(void 0,a),10):0;69!==t[e]&&101!==t[e]||e++;var c=1;43!==t[e]&&45!==t[e]||(45===t[e]&&(c=-1),e++);for(var A=[];at(t[e]);)A.push(t[e++]);var u=A.length?parseInt(l.apply(void 0,A),10):0;return n*(i+s*Math.pow(10,-o))*Math.pow(10,c*u)},pt={type:2},gt={type:3},mt={type:4},yt={type:13},vt={type:8},bt={type:21},_t={type:9},wt={type:10},Et={type:11},Ct={type:12},xt={type:14},Bt={type:23},Tt={type:1},kt={type:25},St={type:24},It={type:26},Lt={type:27},Ft={type:28},Nt={type:29},Ot={type:31},Dt={type:32},Mt=function(){function t(){this._value=[]}return t.prototype.write=function(t){this._value=this._value.concat(c(t))},t.prototype.read=function(){for(var t=[],e=this.consumeToken();e!==Dt;)t.push(e),e=this.consumeToken();return t},t.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case 34:return this.consumeStringToken(34);case 35:var e=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(lt(e)||ut(n,r)){var i=ht(e,n,r)?2:1;return{type:5,value:this.consumeName(),flags:i}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),yt;break;case 39:return this.consumeStringToken(39);case 40:return pt;case 41:return gt;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),xt;break;case 43:if(ft(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case 44:return mt;case 45:var a=t,o=this.peekCodePoint(0),s=this.peekCodePoint(1);if(ft(a,o,s))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(ht(a,o,s))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(45===o&&62===s)return this.consumeCodePoint(),this.consumeCodePoint(),St;break;case 46:if(ft(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var c=this.consumeCodePoint();if(42===c&&47===(c=this.consumeCodePoint()))return this.consumeToken();if(-1===c)return this.consumeToken()}break;case 58:return It;case 59:return Lt;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),kt;break;case 64:var A=this.peekCodePoint(0),u=this.peekCodePoint(1),h=this.peekCodePoint(2);if(ht(A,u,h))return{type:7,value:this.consumeName()};break;case 91:return Ft;case 92:if(ut(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case 93:return Nt;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),vt;break;case 123:return Et;case 125:return Ct;case 117:case 85:var f=this.peekCodePoint(0),d=this.peekCodePoint(1);return 43!==f||!ot(d)&&63!==d||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),_t;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),bt;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),wt;break;case-1:return Dt}return st(t)?(this.consumeWhiteSpace(),Ot):at(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):ct(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:l(t)}},t.prototype.consumeCodePoint=function(){var t=this._value.shift();return void 0===t?-1:t},t.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},t.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},t.prototype.consumeUnicodeRangeToken=function(){for(var t=[],e=this.consumeCodePoint();ot(e)&&t.length<6;)t.push(e),e=this.consumeCodePoint();for(var n=!1;63===e&&t.length<6;)t.push(e),e=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(l.apply(void 0,t.map((function(t){return 63===t?48:t}))),16),end:parseInt(l.apply(void 0,t.map((function(t){return 63===t?70:t}))),16)};var r=parseInt(l.apply(void 0,t),16);if(45===this.peekCodePoint(0)&&ot(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var i=[];ot(e)&&i.length<6;)i.push(e),e=this.consumeCodePoint();return{type:30,start:r,end:parseInt(l.apply(void 0,i),16)}}return{type:30,start:r,end:r}},t.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return"url"===t.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},t.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:22,value:""};var e=this.peekCodePoint(0);if(39===e||34===e){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(),Bt)}for(;;){var r=this.consumeCodePoint();if(-1===r||41===r)return{type:22,value:l.apply(void 0,t)};if(st(r))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:l.apply(void 0,t)}):(this.consumeBadUrlRemnants(),Bt);if(34===r||39===r||40===r||At(r))return this.consumeBadUrlRemnants(),Bt;if(92===r){if(!ut(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Bt;t.push(this.consumeEscapedCodePoint())}else t.push(r)}},t.prototype.consumeWhiteSpace=function(){for(;st(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(41===t||-1===t)return;ut(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(t){for(var e="";t>0;){var n=Math.min(5e4,t);e+=l.apply(void 0,this._value.splice(0,n)),t-=n}return this._value.shift(),e},t.prototype.consumeStringToken=function(t){for(var e="",n=0;;){var r=this._value[n];if(-1===r||void 0===r||r===t)return{type:0,value:e+=this.consumeStringSlice(n)};if(10===r)return this._value.splice(0,n),Tt;if(92===r){var i=this._value[n+1];-1!==i&&void 0!==i&&(10===i?(e+=this.consumeStringSlice(n),n=-1,this._value.shift()):ut(r,i)&&(e+=this.consumeStringSlice(n),e+=l(this.consumeEscapedCodePoint()),n=-1))}n++}},t.prototype.consumeNumber=function(){var t=[],e=4,n=this.peekCodePoint(0);for(43!==n&&45!==n||t.push(this.consumeCodePoint());at(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(46===n&&at(r))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;at(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((69===n||101===n)&&((43===r||45===r)&&at(i)||at(r)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;at(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[dt(t),e]},t.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),e=t[0],n=t[1],r=this.peekCodePoint(0),i=this.peekCodePoint(1),a=this.peekCodePoint(2);return ht(r,i,a)?{type:15,number:e,flags:n,unit:this.consumeName()}:37===r?(this.consumeCodePoint(),{type:16,number:e,flags:n}):{type:17,number:e,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(ot(t)){for(var e=l(t);ot(this.peekCodePoint(0))&&e.length<6;)e+=l(this.consumeCodePoint());st(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(e,16);return 0===n||function(t){return t>=55296&&t<=57343}(n)||n>1114111?65533:n}return-1===t?65533:t},t.prototype.consumeName=function(){for(var t="";;){var e=this.consumeCodePoint();if(lt(e))t+=l(e);else{if(!ut(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),t;t+=l(this.consumeEscapedCodePoint())}}},t}(),Rt=function(){function t(t){this._tokens=t}return t.create=function(e){var n=new Mt;return n.write(e),new t(n.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var t=this.consumeToken();31===t.type;)t=this.consumeToken();if(32===t.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var e=this.consumeComponentValue();do{t=this.consumeToken()}while(31===t.type);if(32===t.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var t=[];;){var e=this.consumeComponentValue();if(32===e.type)return t;t.push(e),t.push()}},t.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},t.prototype.consumeSimpleBlock=function(t){for(var e={type:t,values:[]},n=this.consumeToken();;){if(32===n.type||Yt(n,t))return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue()),n=this.consumeToken()}},t.prototype.consumeFunction=function(t){for(var e={name:t.value,values:[],type:18};;){var n=this.consumeToken();if(32===n.type||3===n.type)return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var t=this._tokens.shift();return void 0===t?Dt:t},t.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},t}(),Ut=function(t){return 15===t.type},Pt=function(t){return 17===t.type},Ht=function(t){return 20===t.type},Qt=function(t){return 0===t.type},Gt=function(t,e){return Ht(t)&&t.value===e},jt=function(t){return 31!==t.type},$t=function(t){return 31!==t.type&&4!==t.type},Kt=function(t){var e=[],n=[];return t.forEach((function(t){if(4===t.type){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(n),void(n=[])}31!==t.type&&n.push(t)})),n.length&&e.push(n),e},Yt=function(t,e){return 11===e&&12===t.type||28===e&&29===t.type||2===e&&3===t.type},zt=function(t){return 17===t.type||15===t.type},Wt=function(t){return 16===t.type||zt(t)},Vt=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},qt={type:17,number:0,flags:4},Xt={type:16,number:50,flags:4},Jt={type:16,number:100,flags:4},Zt=function(t,e,n){var r=t[0],i=t[1];return[te(r,e),te(void 0!==i?i:r,n)]},te=function(t,e){if(16===t.type)return t.number/100*e;if(Ut(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},ee=function(t,e){if(15===e.type)switch(e.unit){case"deg":return Math.PI*e.number/180;case"grad":return Math.PI/200*e.number;case"rad":return e.number;case"turn":return 2*Math.PI*e.number}throw new Error("Unsupported angle type")},ne=function(t){return 15===t.type&&("deg"===t.unit||"grad"===t.unit||"rad"===t.unit||"turn"===t.unit)},re=function(t){switch(t.filter(Ht).map((function(t){return t.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[qt,qt];case"to top":case"bottom":return ie(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[qt,Jt];case"to right":case"left":return ie(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Jt,Jt];case"to bottom":case"top":return ie(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Jt,qt];case"to left":case"right":return ie(270)}return 0},ie=function(t){return Math.PI*t/180},ae=function(t,e){if(18===e.type){var n=de[e.name];if(void 0===n)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return n(t,e.values)}if(5===e.type){if(3===e.value.length){var r=e.value.substring(0,1),i=e.value.substring(1,2),a=e.value.substring(2,3);return ce(parseInt(r+r,16),parseInt(i+i,16),parseInt(a+a,16),1)}if(4===e.value.length){r=e.value.substring(0,1),i=e.value.substring(1,2),a=e.value.substring(2,3);var o=e.value.substring(3,4);return ce(parseInt(r+r,16),parseInt(i+i,16),parseInt(a+a,16),parseInt(o+o,16)/255)}if(6===e.value.length)return r=e.value.substring(0,2),i=e.value.substring(2,4),a=e.value.substring(4,6),ce(parseInt(r,16),parseInt(i,16),parseInt(a,16),1);if(8===e.value.length)return r=e.value.substring(0,2),i=e.value.substring(2,4),a=e.value.substring(4,6),o=e.value.substring(6,8),ce(parseInt(r,16),parseInt(i,16),parseInt(a,16),parseInt(o,16)/255)}if(20===e.type){var s=ge[e.value.toUpperCase()];if(void 0!==s)return s}return ge.TRANSPARENT},oe=function(t){return 0==(255&t)},se=function(t){var e=255&t,n=255&t>>8,r=255&t>>16,i=255&t>>24;return e<255?"rgba("+i+","+r+","+n+","+e/255+")":"rgb("+i+","+r+","+n+")"},ce=function(t,e,n,r){return(t<<24|e<<16|n<<8|Math.round(255*r)<<0)>>>0},le=function(t,e){if(17===t.type)return t.number;if(16===t.type){var n=3===e?1:255;return 3===e?t.number/100*n:Math.round(t.number/100*n)}return 0},Ae=function(t,e){var n=e.filter($t);if(3===n.length){var r=n.map(le),i=r[0],a=r[1],o=r[2];return ce(i,a,o,1)}if(4===n.length){var s=n.map(le),c=(i=s[0],a=s[1],o=s[2],s[3]);return ce(i,a,o,c)}return 0};function ue(t,e,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(e-t)*n*6+t:n<.5?e:n<2/3?6*(e-t)*(2/3-n)+t:t}var he,fe=function(t,e){var n=e.filter($t),r=n[0],i=n[1],a=n[2],o=n[3],s=(17===r.type?ie(r.number):ee(t,r))/(2*Math.PI),c=Wt(i)?i.number/100:0,l=Wt(a)?a.number/100:0,A=void 0!==o&&Wt(o)?te(o,1):1;if(0===c)return ce(255*l,255*l,255*l,1);var u=l<=.5?l*(c+1):l+c-l*c,h=2*l-u,f=ue(h,u,s+1/3),d=ue(h,u,s),p=ue(h,u,s-1/3);return ce(255*f,255*d,255*p,A)},de={hsl:fe,hsla:fe,rgb:Ae,rgba:Ae},pe=function(t,e){return ae(t,Rt.create(e).parseComponentValue())},ge={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},me={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map((function(t){if(Ht(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},ye={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ve=function(t,e){var n=ae(t,e[0]),r=e[1];return r&&Wt(r)?{color:n,stop:r}:{color:n,stop:null}},be=function(t,e){var n=t[0],r=t[t.length-1];null===n.stop&&(n.stop=qt),null===r.stop&&(r.stop=Jt);for(var i=[],a=0,o=0;o<t.length;o++){var s=t[o].stop;if(null!==s){var c=te(s,e);c>a?i.push(c):i.push(a),a=c}else i.push(null)}var l=null;for(o=0;o<i.length;o++){var A=i[o];if(null===A)null===l&&(l=o);else if(null!==l){for(var u=o-l,h=(A-i[l-1])/(u+1),f=1;f<=u;f++)i[l+f-1]=h*f;l=null}}return t.map((function(t,n){return{color:t.color,stop:Math.max(Math.min(1,i[n]/e),0)}}))},_e=function(t,e,n){var r="number"==typeof t?t:function(t,e,n){var r=e/2,i=n/2,a=te(t[0],e)-r,o=i-te(t[1],n);return(Math.atan2(o,a)+2*Math.PI)%(2*Math.PI)}(t,e,n),i=Math.abs(e*Math.sin(r))+Math.abs(n*Math.cos(r)),a=e/2,o=n/2,s=i/2,c=Math.sin(r-Math.PI/2)*s,l=Math.cos(r-Math.PI/2)*s;return[i,a-l,a+l,o-c,o+c]},we=function(t,e){return Math.sqrt(t*t+e*e)},Ee=function(t,e,n,r,i){return[[0,0],[0,e],[t,0],[t,e]].reduce((function(t,e){var a=e[0],o=e[1],s=we(n-a,r-o);return(i?s<t.optimumDistance:s>t.optimumDistance)?{optimumCorner:e,optimumDistance:s}:t}),{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},Ce=function(t,e){var n=ie(180),r=[];return Kt(e).forEach((function(e,i){if(0===i){var a=e[0];if(20===a.type&&-1!==["top","left","right","bottom"].indexOf(a.value))return void(n=re(e));if(ne(a))return void(n=(ee(t,a)+ie(270))%ie(360))}var o=ve(t,e);r.push(o)})),{angle:n,stops:r,type:1}},xe=function(t,e){var n=0,r=3,i=[],a=[];return Kt(e).forEach((function(e,o){var s=!0;if(0===o?s=e.reduce((function(t,e){if(Ht(e))switch(e.value){case"center":return a.push(Xt),!1;case"top":case"left":return a.push(qt),!1;case"right":case"bottom":return a.push(Jt),!1}else if(Wt(e)||zt(e))return a.push(e),!1;return t}),s):1===o&&(s=e.reduce((function(t,e){if(Ht(e))switch(e.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(zt(e)||Wt(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return t}),s)),s){var c=ve(t,e);i.push(c)}})),{size:r,shape:n,stops:i,position:a,type:2}},Be=function(t,e){if(22===e.type){var n={url:e.value,type:0};return t.cache.addImage(e.value),n}if(18===e.type){var r=Te[e.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(t,e.values)}throw new Error("Unsupported image type "+e.type)},Te={"linear-gradient":function(t,e){var n=ie(180),r=[];return Kt(e).forEach((function(e,i){if(0===i){var a=e[0];if(20===a.type&&"to"===a.value)return void(n=re(e));if(ne(a))return void(n=ee(t,a))}var o=ve(t,e);r.push(o)})),{angle:n,stops:r,type:1}},"-moz-linear-gradient":Ce,"-ms-linear-gradient":Ce,"-o-linear-gradient":Ce,"-webkit-linear-gradient":Ce,"radial-gradient":function(t,e){var n=0,r=3,i=[],a=[];return Kt(e).forEach((function(e,o){var s=!0;if(0===o){var c=!1;s=e.reduce((function(t,e){if(c)if(Ht(e))switch(e.value){case"center":return a.push(Xt),t;case"top":case"left":return a.push(qt),t;case"right":case"bottom":return a.push(Jt),t}else(Wt(e)||zt(e))&&a.push(e);else if(Ht(e))switch(e.value){case"circle":return n=0,!1;case"ellipse":return n=1,!1;case"at":return c=!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(zt(e)||Wt(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return t}),s)}if(s){var l=ve(t,e);i.push(l)}})),{size:r,shape:n,stops:i,position:a,type:2}},"-moz-radial-gradient":xe,"-ms-radial-gradient":xe,"-o-radial-gradient":xe,"-webkit-radial-gradient":xe,"-webkit-gradient":function(t,e){var n=ie(180),r=[],i=1;return Kt(e).forEach((function(e,n){var a=e[0];if(0===n){if(Ht(a)&&"linear"===a.value)return void(i=1);if(Ht(a)&&"radial"===a.value)return void(i=2)}if(18===a.type)if("from"===a.name){var o=ae(t,a.values[0]);r.push({stop:qt,color:o})}else if("to"===a.name)o=ae(t,a.values[0]),r.push({stop:Jt,color:o});else if("color-stop"===a.name){var s=a.values.filter($t);if(2===s.length){o=ae(t,s[1]);var c=s[0];Pt(c)&&r.push({stop:{type:16,number:100*c.number,flags:c.flags},color:o})}}})),1===i?{angle:(n+ie(180))%ie(360),stops:r,type:i}:{size:3,shape:0,stops:r,position:[],type:i}}},ke={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(0===e.length)return[];var n=e[0];return 20===n.type&&"none"===n.value?[]:e.filter((function(t){return $t(t)&&function(t){return!(20===t.type&&"none"===t.value||18===t.type&&!Te[t.name])}(t)})).map((function(e){return Be(t,e)}))}},Se={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map((function(t){if(Ht(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Ie={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return Kt(e).map((function(t){return t.filter(Wt)})).map(Vt)}},Le={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return Kt(e).map((function(t){return t.filter(Ht).map((function(t){return t.value})).join(" ")})).map(Fe)}},Fe=function(t){switch(t){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(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"}(he||(he={}));var Ne,Oe={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return Kt(e).map((function(t){return t.filter(De)}))}},De=function(t){return Ht(t)||Wt(t)},Me=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Re=Me("top"),Ue=Me("right"),Pe=Me("bottom"),He=Me("left"),Qe=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(t,e){return Vt(e.filter(Wt))}}},Ge=Qe("top-left"),je=Qe("top-right"),$e=Qe("bottom-right"),Ke=Qe("bottom-left"),Ye=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},ze=Ye("top"),We=Ye("right"),Ve=Ye("bottom"),qe=Ye("left"),Xe=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return Ut(e)?e.number:0}}},Je=Xe("top"),Ze=Xe("right"),tn=Xe("bottom"),en=Xe("left"),nn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},rn={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},an={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(Ht).reduce((function(t,e){return t|on(e.value)}),0)}},on=function(t){switch(t){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},sn={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},cn={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return 20===e.type&&"normal"===e.value?0:17===e.type||15===e.type?e.number:0}};!function(t){t.NORMAL="normal",t.STRICT="strict"}(Ne||(Ne={}));var ln,An={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"strict":return Ne.STRICT;case"normal":default:return Ne.NORMAL}}},un={name:"line-height",initialValue:"normal",prefix:!1,type:4},hn=function(t,e){return Ht(t)&&"normal"===t.value?1.2*e:17===t.type?e*t.number:Wt(t)?te(t,e):e},fn={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return 20===e.type&&"none"===e.value?null:Be(t,e)}},dn={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},pn={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){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(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},mn=gn("top"),yn=gn("right"),vn=gn("bottom"),bn=gn("left"),_n={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(Ht).map((function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}}))}},wn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},En=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Cn=En("top"),xn=En("right"),Bn=En("bottom"),Tn=En("left"),kn={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Sn={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},In={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return 1===e.length&&Gt(e[0],"none")?[]:Kt(e).map((function(e){for(var n={color:ge.TRANSPARENT,offsetX:qt,offsetY:qt,blur:qt},r=0,i=0;i<e.length;i++){var a=e[i];zt(a)?(0===r?n.offsetX=a:1===r?n.offsetY=a:n.blur=a,r++):n.color=ae(t,a)}return n}))}},Ln={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Fn={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(t,e){if(20===e.type&&"none"===e.value)return null;if(18===e.type){var n=Nn[e.name];if(void 0===n)throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return n(e.values)}return null}},Nn={matrix:function(t){var e=t.filter((function(t){return 17===t.type})).map((function(t){return t.number}));return 6===e.length?e:null},matrix3d:function(t){var e=t.filter((function(t){return 17===t.type})).map((function(t){return t.number})),n=e[0],r=e[1];e[2],e[3];var i=e[4],a=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var o=e[12],s=e[13];return e[14],e[15],16===e.length?[n,r,i,a,o,s]:null}},On={type:16,number:50,flags:4},Dn=[On,On],Mn={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,e){var n=e.filter(Wt);return 2!==n.length?Dn:[n[0],n[1]]}},Rn={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}};!function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"}(ln||(ln={}));for(var Un={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-all":return ln.BREAK_ALL;case"keep-all":return ln.KEEP_ALL;case"normal":default:return ln.NORMAL}}},Pn={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,e){if(20===e.type)return{auto:!0,order:0};if(Pt(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Hn=function(t,e){if(15===e.type)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")},Qn={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,e){return Pt(e)?e.number:1}},Gn={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},jn={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,e){return e.filter(Ht).map((function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(t){return 0!==t}))}},$n={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,e){var n=[],r=[];return e.forEach((function(t){switch(t.type){case 20:case 0:n.push(t.value);break;case 17:n.push(t.number.toString());break;case 4:r.push(n.join(" ")),n.length=0}})),n.length&&r.push(n.join(" ")),r.map((function(t){return-1===t.indexOf(" ")?t:"'"+t+"'"}))}},Kn={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Yn={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,e){if(Pt(e))return e.number;if(Ht(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},zn={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.filter(Ht).map((function(t){return t.value}))}},Wn={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Vn=function(t,e){return 0!=(t&e)},qn={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(0===e.length)return[];var n=e[0];return 20===n.type&&"none"===n.value?[]:e}},Xn={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(0===e.length)return null;var n=e[0];if(20===n.type&&"none"===n.value)return null;for(var r=[],i=e.filter(jt),a=0;a<i.length;a++){var o=i[a],s=i[a+1];if(20===o.type){var c=s&&Pt(s)?s.number:1;r.push({counter:o.value,increment:c})}}return r}},Jn={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(0===e.length)return[];for(var n=[],r=e.filter(jt),i=0;i<r.length;i++){var a=r[i],o=r[i+1];if(Ht(a)&&"none"!==a.value){var s=o&&Pt(o)?o.number:0;n.push({counter:a.value,reset:s})}}return n}},Zn={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,e){return e.filter(Ut).map((function(e){return Hn(t,e)}))}},tr={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(0===e.length)return null;var n=e[0];if(20===n.type&&"none"===n.value)return null;var r=[],i=e.filter(Qt);if(i.length%2!=0)return null;for(var a=0;a<i.length;a+=2){var o=i[a].value,s=i[a+1].value;r.push({open:o,close:s})}return r}},er=function(t,e,n){if(!t)return"";var r=t[Math.min(e,t.length-1)];return r?n?r.open:r.close:""},nr={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return 1===e.length&&Gt(e[0],"none")?[]:Kt(e).map((function(e){for(var n={color:255,offsetX:qt,offsetY:qt,blur:qt,spread:qt,inset:!1},r=0,i=0;i<e.length;i++){var a=e[i];Gt(a,"inset")?n.inset=!0:zt(a)?(0===r?n.offsetX=a:1===r?n.offsetY=a:2===r?n.blur=a:n.spread=a,r++):n.color=ae(t,a)}return n}))}},rr={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,e){var n=[];return e.filter(Ht).forEach((function(t){switch(t.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2)}})),[0,1,2].forEach((function(t){-1===n.indexOf(t)&&n.push(t)})),n}},ir={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},ar={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return Ut(e)?e.number:0}},or=function(){function t(t,e){var n,r;this.animationDuration=lr(t,Zn,e.animationDuration),this.backgroundClip=lr(t,me,e.backgroundClip),this.backgroundColor=lr(t,ye,e.backgroundColor),this.backgroundImage=lr(t,ke,e.backgroundImage),this.backgroundOrigin=lr(t,Se,e.backgroundOrigin),this.backgroundPosition=lr(t,Ie,e.backgroundPosition),this.backgroundRepeat=lr(t,Le,e.backgroundRepeat),this.backgroundSize=lr(t,Oe,e.backgroundSize),this.borderTopColor=lr(t,Re,e.borderTopColor),this.borderRightColor=lr(t,Ue,e.borderRightColor),this.borderBottomColor=lr(t,Pe,e.borderBottomColor),this.borderLeftColor=lr(t,He,e.borderLeftColor),this.borderTopLeftRadius=lr(t,Ge,e.borderTopLeftRadius),this.borderTopRightRadius=lr(t,je,e.borderTopRightRadius),this.borderBottomRightRadius=lr(t,$e,e.borderBottomRightRadius),this.borderBottomLeftRadius=lr(t,Ke,e.borderBottomLeftRadius),this.borderTopStyle=lr(t,ze,e.borderTopStyle),this.borderRightStyle=lr(t,We,e.borderRightStyle),this.borderBottomStyle=lr(t,Ve,e.borderBottomStyle),this.borderLeftStyle=lr(t,qe,e.borderLeftStyle),this.borderTopWidth=lr(t,Je,e.borderTopWidth),this.borderRightWidth=lr(t,Ze,e.borderRightWidth),this.borderBottomWidth=lr(t,tn,e.borderBottomWidth),this.borderLeftWidth=lr(t,en,e.borderLeftWidth),this.boxShadow=lr(t,nr,e.boxShadow),this.color=lr(t,nn,e.color),this.direction=lr(t,rn,e.direction),this.display=lr(t,an,e.display),this.float=lr(t,sn,e.cssFloat),this.fontFamily=lr(t,$n,e.fontFamily),this.fontSize=lr(t,Kn,e.fontSize),this.fontStyle=lr(t,Wn,e.fontStyle),this.fontVariant=lr(t,zn,e.fontVariant),this.fontWeight=lr(t,Yn,e.fontWeight),this.letterSpacing=lr(t,cn,e.letterSpacing),this.lineBreak=lr(t,An,e.lineBreak),this.lineHeight=lr(t,un,e.lineHeight),this.listStyleImage=lr(t,fn,e.listStyleImage),this.listStylePosition=lr(t,dn,e.listStylePosition),this.listStyleType=lr(t,pn,e.listStyleType),this.marginTop=lr(t,mn,e.marginTop),this.marginRight=lr(t,yn,e.marginRight),this.marginBottom=lr(t,vn,e.marginBottom),this.marginLeft=lr(t,bn,e.marginLeft),this.opacity=lr(t,Qn,e.opacity);var i=lr(t,_n,e.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=lr(t,wn,e.overflowWrap),this.paddingTop=lr(t,Cn,e.paddingTop),this.paddingRight=lr(t,xn,e.paddingRight),this.paddingBottom=lr(t,Bn,e.paddingBottom),this.paddingLeft=lr(t,Tn,e.paddingLeft),this.paintOrder=lr(t,rr,e.paintOrder),this.position=lr(t,Sn,e.position),this.textAlign=lr(t,kn,e.textAlign),this.textDecorationColor=lr(t,Gn,null!==(n=e.textDecorationColor)&&void 0!==n?n:e.color),this.textDecorationLine=lr(t,jn,null!==(r=e.textDecorationLine)&&void 0!==r?r:e.textDecoration),this.textShadow=lr(t,In,e.textShadow),this.textTransform=lr(t,Ln,e.textTransform),this.transform=lr(t,Fn,e.transform),this.transformOrigin=lr(t,Mn,e.transformOrigin),this.visibility=lr(t,Rn,e.visibility),this.webkitTextStrokeColor=lr(t,ir,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=lr(t,ar,e.webkitTextStrokeWidth),this.wordBreak=lr(t,Un,e.wordBreak),this.zIndex=lr(t,Pn,e.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},t.prototype.isTransparent=function(){return oe(this.backgroundColor)},t.prototype.isTransformed=function(){return null!==this.transform},t.prototype.isPositioned=function(){return 0!==this.position},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return 0!==this.float},t.prototype.isInlineLevel=function(){return Vn(this.display,4)||Vn(this.display,33554432)||Vn(this.display,268435456)||Vn(this.display,536870912)||Vn(this.display,67108864)||Vn(this.display,134217728)},t}(),sr=function(t,e){this.content=lr(t,qn,e.content),this.quotes=lr(t,tr,e.quotes)},cr=function(t,e){this.counterIncrement=lr(t,Xn,e.counterIncrement),this.counterReset=lr(t,Jn,e.counterReset)},lr=function(t,e,n){var r=new Mt,i=null!=n?n.toString():e.initialValue;r.write(i);var a=new Rt(r.read());switch(e.type){case 2:var o=a.parseComponentValue();return e.parse(t,Ht(o)?o.value:e.initialValue);case 0:return e.parse(t,a.parseComponentValue());case 1:return e.parse(t,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(e.format){case"angle":return ee(t,a.parseComponentValue());case"color":return ae(t,a.parseComponentValue());case"image":return Be(t,a.parseComponentValue());case"length":var s=a.parseComponentValue();return zt(s)?s:qt;case"length-percentage":var c=a.parseComponentValue();return Wt(c)?c:qt;case"time":return Hn(t,a.parseComponentValue())}}},Ar=function(t,e){var n=function(t){switch(t.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(t);return 1===n||e===n},ur=function(t,e){this.context=t,this.textNodes=[],this.elements=[],this.flags=0,Ar(e,3),this.styles=new or(t,window.getComputedStyle(e,null)),ui(e)&&(this.styles.animationDuration.some((function(t){return t>0}))&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=s(this.context,e),Ar(e,4)&&(this.flags|=16)},hr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),dr=0;dr<hr.length;dr++)fr[hr.charCodeAt(dr)]=dr;for(var pr=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},gr=function(){function t(t,e,n,r,i,a){this.initialValue=t,this.errorValue=e,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=a}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=((e=this.index[t>>5])<<2)+(31&t),this.data[e];if(t<=65535)return e=((e=this.index[2048+(t-55296>>5)])<<2)+(31&t),this.data[e];if(t<this.highStart)return e=2080+(t>>11),e=this.index[e],e+=t>>5&63,e=((e=this.index[e])<<2)+(31&t),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),mr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),vr=0;vr<mr.length;vr++)yr[mr.charCodeAt(vr)]=vr;var br,_r=8,wr=9,Er=11,Cr=12,xr=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return"";for(var r=[],i=-1,a="";++i<n;){var o=t[i];o<=65535?r.push(o):(o-=65536,r.push(55296+(o>>10),o%1024+56320)),(i+1===n||r.length>16384)&&(a+=String.fromCharCode.apply(String,r),r.length=0)}return a},Br=function(t,e){var n=function(t){var e,n,r,i,a,o=.75*t.length,s=t.length,c=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),A=Array.isArray(l)?l:new Uint8Array(l);for(e=0;e<s;e+=4)n=fr[t.charCodeAt(e)],r=fr[t.charCodeAt(e+1)],i=fr[t.charCodeAt(e+2)],a=fr[t.charCodeAt(e+3)],A[c++]=n<<2|r>>4,A[c++]=(15&r)<<4|i>>2,A[c++]=(3&i)<<6|63&a;return l}(t),r=Array.isArray(n)?function(t){for(var e=t.length,n=[],r=0;r<e;r+=4)n.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return n}(n):new Uint32Array(n),i=Array.isArray(n)?function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n.push(t[r+1]<<8|t[r]);return n}(n):new Uint16Array(n),a=pr(i,12,r[4]/2),o=2===r[5]?pr(i,(24+r[4])/2):function(t,e,n){return t.slice?t.slice(e,n):new Uint32Array(Array.prototype.slice.call(t,e,n))}(r,Math.ceil((24+r[4])/4));return new gr(r[0],r[1],r[2],r[3],a,o)}("AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA="),Tr=function(t){return Br.get(t)},kr=function(t,e,n){var r=n-2,i=e[r],a=e[n-1],o=e[n];if(2===a&&3===o)return"×";if(2===a||3===a||4===a)return"÷";if(2===o||3===o||4===o)return"÷";if(a===_r&&-1!==[_r,wr,Er,Cr].indexOf(o))return"×";if(!(a!==Er&&a!==wr||o!==wr&&10!==o))return"×";if((a===Cr||10===a)&&10===o)return"×";if(13===o||5===o)return"×";if(7===o)return"×";if(1===a)return"×";if(13===a&&14===o){for(;5===i;)i=e[--r];if(14===i)return"×"}if(15===a&&15===o){for(var s=0;15===i;)s++,i=e[--r];if(s%2==0)return"×"}return"÷"},Sr=function(t){var e=function(t){for(var e=[],n=0,r=t.length;n<r;){var i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=t.charCodeAt(n++);56320==(64512&a)?e.push(((1023&i)<<10)+(1023&a)+65536):(e.push(i),n--)}else e.push(i)}return e}(t),n=e.length,r=0,i=0,a=e.map(Tr);return{next:function(){if(r>=n)return{done:!0,value:null};for(var t="×";r<n&&"×"===(t=kr(0,a,++r)););if("×"!==t||r===n){var o=xr.apply(null,e.slice(i,r));return i=r,{value:o,done:!1}}return{done:!0,value:null}}}},Ir=function(t){return 0===t[0]&&255===t[1]&&0===t[2]&&255===t[3]},Lr=function(t,e,n,r,i){var a="http://www.w3.org/2000/svg",o=document.createElementNS(a,"svg"),s=document.createElementNS(a,"foreignObject");return o.setAttributeNS(null,"width",t.toString()),o.setAttributeNS(null,"height",e.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",n.toString()),s.setAttributeNS(null,"y",r.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(s),s.appendChild(i),o},Fr=function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){return e(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))}))},Nr={get SUPPORT_RANGE_BOUNDS(){var t=function(t){if(t.createRange){var e=t.createRange();if(e.getBoundingClientRect){var n=t.createElement("boundtest");n.style.height="123px",n.style.display="block",t.body.appendChild(n),e.selectNode(n);var r=e.getBoundingClientRect(),i=Math.round(r.height);if(t.body.removeChild(n),123===i)return!0}}return!1}(document);return Object.defineProperty(Nr,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=Nr.SUPPORT_RANGE_BOUNDS&&function(t){var e=t.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",t.body.appendChild(e);var n=t.createRange();e.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";var r=e.firstChild,i=c(r.data).map((function(t){return l(t)})),a=0,o={},s=i.every((function(t,e){n.setStart(r,a),n.setEnd(r,a+t.length);var i=n.getBoundingClientRect();a+=t.length;var s=i.x>o.x||i.y>o.y;return o=i,0===e||s}));return t.body.removeChild(e),s}(document);return Object.defineProperty(Nr,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=function(t){var e=new Image,n=t.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),n.toDataURL()}catch(t){return!1}return!0}(document);return Object.defineProperty(Nr,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t="function"==typeof Array.from&&"function"==typeof window.fetch?function(t){var e=t.createElement("canvas");e.width=100,e.height=100;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,100,100);var r=new Image,i=e.toDataURL();r.src=i;var a=Lr(100,100,0,0,r);return n.fillStyle="red",n.fillRect(0,0,100,100),Fr(a).then((function(e){n.drawImage(e,0,0);var r=n.getImageData(0,0,100,100).data;n.fillStyle="red",n.fillRect(0,0,100,100);var a=t.createElement("div");return a.style.backgroundImage="url("+i+")",a.style.height="100px",Ir(r)?Fr(Lr(100,100,0,0,a)):Promise.reject(!1)})).then((function(t){return n.drawImage(t,0,0),Ir(n.getImageData(0,0,100,100).data)})).catch((function(){return!1}))}(document):Promise.resolve(!1);return Object.defineProperty(Nr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=void 0!==(new Image).crossOrigin;return Object.defineProperty(Nr,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Nr,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Nr,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Nr,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},Or=function(t,e){this.text=t,this.bounds=e},Dr=function(t,e){var n=e.ownerDocument;if(n){var r=n.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var i=e.parentNode;if(i){i.replaceChild(r,e);var a=s(t,r);return r.firstChild&&i.replaceChild(r.firstChild,r),a}}return o.EMPTY},Mr=function(t,e,n){var r=t.ownerDocument;if(!r)throw new Error("Node has no owner document");var i=r.createRange();return i.setStart(t,e),i.setEnd(t,e+n),i},Rr=function(t){if(Nr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map((function(t){return t.segment}))}return function(t){for(var e,n=Sr(t),r=[];!(e=n.next()).done;)e.value&&r.push(e.value.slice());return r}(t)},Ur=function(t,e){return 0!==e.letterSpacing?Rr(t):function(t,e){if(Nr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(t)).map((function(t){return t.segment}))}return Hr(t,e)}(t,e)},Pr=[32,160,4961,65792,65793,4153,4241],Hr=function(t,e){for(var n,r=function(t,e){var n=c(t),r=rt(n,e),i=r[0],a=r[1],o=r[2],s=n.length,l=0,A=0;return{next:function(){if(A>=s)return{done:!0,value:null};for(var t="×";A<s&&"×"===(t=nt(n,a,i,++A,o)););if("×"!==t||A===s){var e=new it(n,t,l,A);return l=A,{value:e,done:!1}}return{done:!0,value:null}}}}(t,{lineBreak:e.lineBreak,wordBreak:"break-word"===e.overflowWrap?"break-word":e.wordBreak}),i=[],a=function(){if(n.value){var t=n.value.slice(),e=c(t),r="";e.forEach((function(t){-1===Pr.indexOf(t)?r+=l(t):(r.length&&i.push(r),i.push(l(t)),r="")})),r.length&&i.push(r)}};!(n=r.next()).done;)a();return i},Qr=function(t,e,n){this.text=Gr(e.data,n.textTransform),this.textBounds=function(t,e,n,r){var i=Ur(e,n),a=[],s=0;return i.forEach((function(e){if(n.textDecorationLine.length||e.trim().length>0)if(Nr.SUPPORT_RANGE_BOUNDS){var i=Mr(r,s,e.length).getClientRects();if(i.length>1){var c=Rr(e),l=0;c.forEach((function(e){a.push(new Or(e,o.fromDOMRectList(t,Mr(r,l+s,e.length).getClientRects()))),l+=e.length}))}else a.push(new Or(e,o.fromDOMRectList(t,i)))}else{var A=r.splitText(e.length);a.push(new Or(e,Dr(t,r))),r=A}else Nr.SUPPORT_RANGE_BOUNDS||(r=r.splitText(e.length));s+=e.length})),a}(t,this.text,n,e)},Gr=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace(jr,$r);case 2:return t.toUpperCase();default:return t}},jr=/(^|\s|:|-|\(|\))([a-z])/g,$r=function(t,e,n){return t.length>0?e+n.toUpperCase():t},Kr=function(t){function n(e,n){var r=t.call(this,e,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 e(n,t),n}(ur),Yr=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return e(n,t),n}(ur),zr=function(t){function n(e,n){var r=t.call(this,e,n)||this,i=new XMLSerializer,a=s(e,n);return n.setAttribute("width",a.width+"px"),n.setAttribute("height",a.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return e(n,t),n}(ur),Wr=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.value=n.value,r}return e(n,t),n}(ur),Vr=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.start=n.start,r.reversed="boolean"==typeof n.reversed&&!0===n.reversed,r}return e(n,t),n}(ur),qr=[{type:15,flags:0,unit:"px",number:3}],Xr=[{type:16,flags:0,number:50}],Jr="password",Zr=function(t){function n(e,n){var r,i=t.call(this,e,n)||this;switch(i.type=n.type.toLowerCase(),i.checked=n.checked,i.value=function(t){var e=t.type===Jr?new Array(t.value.length+1).join("•"):t.value;return 0===e.length?t.placeholder||"":e}(n),"checkbox"!==i.type&&"radio"!==i.type||(i.styles.backgroundColor=3739148031,i.styles.borderTopColor=i.styles.borderRightColor=i.styles.borderBottomColor=i.styles.borderLeftColor=2779096575,i.styles.borderTopWidth=i.styles.borderRightWidth=i.styles.borderBottomWidth=i.styles.borderLeftWidth=1,i.styles.borderTopStyle=i.styles.borderRightStyle=i.styles.borderBottomStyle=i.styles.borderLeftStyle=1,i.styles.backgroundClip=[0],i.styles.backgroundOrigin=[0],i.bounds=(r=i.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),i.type){case"checkbox":i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=qr;break;case"radio":i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=Xr}return i}return e(n,t),n}(ur),ti=function(t){function n(e,n){var r=t.call(this,e,n)||this,i=n.options[n.selectedIndex||0];return r.value=i&&i.text||"",r}return e(n,t),n}(ur),ei=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.value=n.value,r}return e(n,t),n}(ur),ni=function(t){function n(e,n){var r=t.call(this,e,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=oi(e,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?pe(e,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):ge.TRANSPARENT,a=n.contentWindow.document.body?pe(e,getComputedStyle(n.contentWindow.document.body).backgroundColor):ge.TRANSPARENT;r.backgroundColor=oe(i)?oe(a)?r.styles.backgroundColor:a:i}}catch(t){}return r}return e(n,t),n}(ur),ri=["OL","UL","MENU"],ii=function(t,e,n,r){for(var i=e.firstChild,a=void 0;i;i=a)if(a=i.nextSibling,li(i)&&i.data.trim().length>0)n.textNodes.push(new Qr(t,i,n.styles));else if(Ai(i))if(xi(i)&&i.assignedNodes)i.assignedNodes().forEach((function(e){return ii(t,e,n,r)}));else{var o=ai(t,i);o.styles.isVisible()&&(si(i,o,r)?o.flags|=4:ci(o.styles)&&(o.flags|=2),-1!==ri.indexOf(i.tagName)&&(o.flags|=8),n.elements.push(o),i.slot,i.shadowRoot?ii(t,i.shadowRoot,o,r):Ei(i)||gi(i)||Ci(i)||ii(t,i,o,r))}},ai=function(t,e){return bi(e)?new Kr(t,e):yi(e)?new Yr(t,e):gi(e)?new zr(t,e):fi(e)?new Wr(t,e):di(e)?new Vr(t,e):pi(e)?new Zr(t,e):Ci(e)?new ti(t,e):Ei(e)?new ei(t,e):_i(e)?new ni(t,e):new ur(t,e)},oi=function(t,e){var n=ai(t,e);return n.flags|=4,ii(t,e,n,n),n},si=function(t,e,n){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||mi(t)&&n.styles.isTransparent()},ci=function(t){return t.isPositioned()||t.isFloating()},li=function(t){return t.nodeType===Node.TEXT_NODE},Ai=function(t){return t.nodeType===Node.ELEMENT_NODE},ui=function(t){return Ai(t)&&void 0!==t.style&&!hi(t)},hi=function(t){return"object"==typeof t.className},fi=function(t){return"LI"===t.tagName},di=function(t){return"OL"===t.tagName},pi=function(t){return"INPUT"===t.tagName},gi=function(t){return"svg"===t.tagName},mi=function(t){return"BODY"===t.tagName},yi=function(t){return"CANVAS"===t.tagName},vi=function(t){return"VIDEO"===t.tagName},bi=function(t){return"IMG"===t.tagName},_i=function(t){return"IFRAME"===t.tagName},wi=function(t){return"STYLE"===t.tagName},Ei=function(t){return"TEXTAREA"===t.tagName},Ci=function(t){return"SELECT"===t.tagName},xi=function(t){return"SLOT"===t.tagName},Bi=function(t){return t.tagName.indexOf("-")>0},Ti=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(t){var e=this.counters[t];return e&&e.length?e[e.length-1]:1},t.prototype.getCounterValues=function(t){var e=this.counters[t];return e||[]},t.prototype.pop=function(t){var e=this;t.forEach((function(t){return e.counters[t].pop()}))},t.prototype.parse=function(t){var e=this,n=t.counterIncrement,r=t.counterReset,i=!0;null!==n&&n.forEach((function(t){var n=e.counters[t.counter];n&&0!==t.increment&&(i=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=t.increment)}));var a=[];return i&&r.forEach((function(t){var n=e.counters[t.counter];a.push(t.counter),n||(n=e.counters[t.counter]=[]),n.push(t.reset)})),a},t}(),ki={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"]},Si={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Ii={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Li={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Fi=function(t,e,n,r,i,a){return t<e||t>n?Ri(t,i,a.length>0):r.integers.reduce((function(e,n,i){for(;t>=n;)t-=n,e+=r.values[i];return e}),"")+a},Ni=function(t,e,n,r){var i="";do{n||t--,i=r(t)+i,t/=e}while(t*e>=e);return i},Oi=function(t,e,n,r,i){var a=n-e+1;return(t<0?"-":"")+(Ni(Math.abs(t),a,r,(function(t){return l(Math.floor(t%a)+e)}))+i)},Di=function(t,e,n){void 0===n&&(n=". ");var r=e.length;return Ni(Math.abs(t),r,!1,(function(t){return e[Math.floor(t%r)]}))+n},Mi=function(t,e,n,r,i,a){if(t<-9999||t>9999)return Ri(t,4,i.length>0);var o=Math.abs(t),s=i;if(0===o)return e[0]+s;for(var c=0;o>0&&c<=4;c++){var l=o%10;0===l&&Vn(a,1)&&""!==s?s=e[l]+s:l>1||1===l&&0===c||1===l&&1===c&&Vn(a,2)||1===l&&1===c&&Vn(a,4)&&t>100||1===l&&c>1&&Vn(a,8)?s=e[l]+(c>0?n[c-1]:"")+s:1===l&&c>0&&(s=n[c-1]+s),o=Math.floor(o/10)}return(t<0?r:"")+s},Ri=function(t,e,n){var r=n?". ":"",i=n?"、":"",a=n?", ":"",o=n?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var s=Oi(t,48,57,!0,r);return s.length<4?"0"+s:s;case 4:return Di(t,"〇一二三四五六七八九",i);case 6:return Fi(t,1,3999,ki,3,r).toLowerCase();case 7:return Fi(t,1,3999,ki,3,r);case 8:return Oi(t,945,969,!1,r);case 9:return Oi(t,97,122,!1,r);case 10:return Oi(t,65,90,!1,r);case 11:return Oi(t,1632,1641,!0,r);case 12:case 49:return Fi(t,1,9999,Si,3,r);case 35:return Fi(t,1,9999,Si,3,r).toLowerCase();case 13:return Oi(t,2534,2543,!0,r);case 14:case 30:return Oi(t,6112,6121,!0,r);case 15:return Di(t,"子丑寅卯辰巳午未申酉戌亥",i);case 16:return Di(t,"甲乙丙丁戊己庚辛壬癸",i);case 17:case 48:return Mi(t,"零一二三四五六七八九","十百千萬","負",i,14);case 47:return Mi(t,"零壹貳參肆伍陸柒捌玖","拾佰仟萬","負",i,15);case 42:return Mi(t,"零一二三四五六七八九","十百千萬","负",i,14);case 41:return Mi(t,"零壹贰叁肆伍陆柒捌玖","拾佰仟萬","负",i,15);case 26:return Mi(t,"〇一二三四五六七八九","十百千万","マイナス",i,0);case 25:return Mi(t,"零壱弐参四伍六七八九","拾百千万","マイナス",i,7);case 31:return Mi(t,"영일이삼사오육칠팔구","십백천만","마이너스",a,7);case 33:return Mi(t,"零一二三四五六七八九","十百千萬","마이너스",a,0);case 32:return Mi(t,"零壹貳參四五六七八九","拾百千","마이너스",a,7);case 18:return Oi(t,2406,2415,!0,r);case 20:return Fi(t,1,19999,Li,3,r);case 21:return Oi(t,2790,2799,!0,r);case 22:return Oi(t,2662,2671,!0,r);case 22:return Fi(t,1,10999,Ii,3,r);case 23:return Di(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Di(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Oi(t,3302,3311,!0,r);case 28:return Di(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case 29:return Di(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case 34:return Oi(t,3792,3801,!0,r);case 37:return Oi(t,6160,6169,!0,r);case 38:return Oi(t,4160,4169,!0,r);case 39:return Oi(t,2918,2927,!0,r);case 40:return Oi(t,1776,1785,!0,r);case 43:return Oi(t,3046,3055,!0,r);case 44:return Oi(t,3174,3183,!0,r);case 45:return Oi(t,3664,3673,!0,r);case 46:return Oi(t,3872,3881,!0,r);case 3:default:return Oi(t,48,57,!0,r)}},Ui=function(){function t(t,e,n){if(this.context=t,this.options=n,this.scrolledElements=[],this.referenceElement=e,this.counters=new Ti,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(t,e){var n=this,a=Hi(t,e);if(!a.contentWindow)return Promise.reject("Unable to find iframe window");var o=t.defaultView.pageXOffset,s=t.defaultView.pageYOffset,c=a.contentWindow,l=c.document,A=ji(a).then((function(){return r(n,void 0,void 0,(function(){var t,n;return i(this,(function(r){switch(r.label){case 0:return this.scrolledElements.forEach(Wi),c&&(c.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||c.scrollY===e.top&&c.scrollX===e.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(c.scrollX-e.left,c.scrollY-e.top,0,0))),t=this.options.onclone,void 0===(n=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Gi(l)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof t?[2,Promise.resolve().then((function(){return t(l,n)})).then((function(){return a}))]:[2,a]}}))}))}));return l.open(),l.write(Yi(document.doctype)+"<html></html>"),zi(this.referenceElement.ownerDocument,o,s),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),A},t.prototype.createElementClone=function(t){if(Ar(t,2),yi(t))return this.createCanvasClone(t);if(vi(t))return this.createVideoClone(t);if(wi(t))return this.createStyleClone(t);var e=t.cloneNode(!1);return bi(e)&&(bi(t)&&t.currentSrc&&t.currentSrc!==t.src&&(e.src=t.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),Bi(e)?this.createCustomElementClone(e):e},t.prototype.createCustomElementClone=function(t){var e=document.createElement("html2canvascustomelement");return Ki(t.style,e),e},t.prototype.createStyleClone=function(t){try{var e=t.sheet;if(e&&e.cssRules){var n=[].slice.call(e.cssRules,0).reduce((function(t,e){return e&&"string"==typeof e.cssText?t+e.cssText:t}),""),r=t.cloneNode(!1);return r.textContent=n,r}}catch(t){if(this.context.logger.error("Unable to access cssRules property",t),"SecurityError"!==t.name)throw t}return t.cloneNode(!1)},t.prototype.createCanvasClone=function(t){var e;if(this.options.inlineImages&&t.ownerDocument){var n=t.ownerDocument.createElement("img");try{return n.src=t.toDataURL(),n}catch(e){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var r=t.cloneNode(!1);try{r.width=t.width,r.height=t.height;var i=t.getContext("2d"),a=r.getContext("2d");if(a)if(!this.options.allowTaint&&i)a.putImageData(i.getImageData(0,0,t.width,t.height),0,0);else{var o=null!==(e=t.getContext("webgl2"))&&void 0!==e?e:t.getContext("webgl");if(o){var s=o.getContextAttributes();!1===(null==s?void 0:s.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}a.drawImage(t,0,0)}return r}catch(e){this.context.logger.info("Unable to clone canvas as it is tainted",t)}return r},t.prototype.createVideoClone=function(t){var e=t.ownerDocument.createElement("canvas");e.width=t.offsetWidth,e.height=t.offsetHeight;var n=e.getContext("2d");try{return n&&(n.drawImage(t,0,0,e.width,e.height),this.options.allowTaint||n.getImageData(0,0,e.width,e.height)),e}catch(e){this.context.logger.info("Unable to clone video as it is tainted",t)}var r=t.ownerDocument.createElement("canvas");return r.width=t.offsetWidth,r.height=t.offsetHeight,r},t.prototype.appendChildNode=function(t,e,n){Ai(e)&&(function(t){return"SCRIPT"===t.tagName}(e)||e.hasAttribute("data-html2canvas-ignore")||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&Ai(e)&&wi(e)||t.appendChild(this.cloneNode(e,n))},t.prototype.cloneChildNodes=function(t,e,n){for(var r=this,i=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;i;i=i.nextSibling)if(Ai(i)&&xi(i)&&"function"==typeof i.assignedNodes){var a=i.assignedNodes();a.length&&a.forEach((function(t){return r.appendChildNode(e,t,n)}))}else this.appendChildNode(e,i,n)},t.prototype.cloneNode=function(t,e){if(li(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var n=t.ownerDocument.defaultView;if(n&&Ai(t)&&(ui(t)||hi(t))){var r=this.createElementClone(t);r.style.transitionProperty="none";var i=n.getComputedStyle(t),a=n.getComputedStyle(t,":before"),o=n.getComputedStyle(t,":after");this.referenceElement===t&&ui(r)&&(this.clonedReferenceElement=r),mi(r)&&Xi(r);var s=this.counters.parse(new cr(this.context,i)),c=this.resolvePseudoContent(t,r,a,br.BEFORE);Bi(t)&&(e=!0),vi(t)||this.cloneChildNodes(t,r,e),c&&r.insertBefore(c,r.firstChild);var l=this.resolvePseudoContent(t,r,o,br.AFTER);return l&&r.appendChild(l),this.counters.pop(s),(i&&(this.options.copyStyles||hi(t))&&!_i(t)||e)&&Ki(i,r),0===t.scrollTop&&0===t.scrollLeft||this.scrolledElements.push([r,t.scrollLeft,t.scrollTop]),(Ei(t)||Ci(t))&&(Ei(r)||Ci(r))&&(r.value=t.value),r}return t.cloneNode(!1)},t.prototype.resolvePseudoContent=function(t,e,n,r){var i=this;if(n){var a=n.content,o=e.ownerDocument;if(o&&a&&"none"!==a&&"-moz-alt-content"!==a&&"none"!==n.display){this.counters.parse(new cr(this.context,n));var s=new sr(this.context,n),c=o.createElement("html2canvaspseudoelement");Ki(n,c),s.content.forEach((function(e){if(0===e.type)c.appendChild(o.createTextNode(e.value));else if(22===e.type){var n=o.createElement("img");n.src=e.value,n.style.opacity="1",c.appendChild(n)}else if(18===e.type){if("attr"===e.name){var r=e.values.filter(Ht);r.length&&c.appendChild(o.createTextNode(t.getAttribute(r[0].value)||""))}else if("counter"===e.name){var a=e.values.filter($t),l=a[0],A=a[1];if(l&&Ht(l)){var u=i.counters.getCounterValue(l.value),h=A&&Ht(A)?pn.parse(i.context,A.value):3;c.appendChild(o.createTextNode(Ri(u,h,!1)))}}else if("counters"===e.name){var f=e.values.filter($t),d=(l=f[0],f[1]);if(A=f[2],l&&Ht(l)){var p=i.counters.getCounterValues(l.value),g=A&&Ht(A)?pn.parse(i.context,A.value):3,m=d&&0===d.type?d.value:"",y=p.map((function(t){return Ri(t,g,!1)})).join(m);c.appendChild(o.createTextNode(y))}}}else if(20===e.type)switch(e.value){case"open-quote":c.appendChild(o.createTextNode(er(s.quotes,i.quoteDepth++,!0)));break;case"close-quote":c.appendChild(o.createTextNode(er(s.quotes,--i.quoteDepth,!1)));break;default:c.appendChild(o.createTextNode(e.value))}})),c.className=Vi+" "+qi;var l=r===br.BEFORE?" "+Vi:" "+qi;return hi(e)?e.className.baseValue+=l:e.className+=l,c}}},t.destroy=function(t){return!!t.parentNode&&(t.parentNode.removeChild(t),!0)},t}();!function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"}(br||(br={}));var Pi,Hi=function(t,e){var n=t.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=e.width.toString(),n.height=e.height.toString(),n.scrolling="no",n.setAttribute("data-html2canvas-ignore","true"),t.body.appendChild(n),n},Qi=function(t){return new Promise((function(e){t.complete?e():t.src?(t.onload=e,t.onerror=e):e()}))},Gi=function(t){return Promise.all([].slice.call(t.images,0).map(Qi))},ji=function(t){return new Promise((function(e,n){var r=t.contentWindow;if(!r)return n("No window assigned for iframe");var i=r.document;r.onload=t.onload=function(){r.onload=t.onload=null;var n=setInterval((function(){i.body.childNodes.length>0&&"complete"===i.readyState&&(clearInterval(n),e(t))}),50)}}))},$i=["all","d","content"],Ki=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t.item(n);-1===$i.indexOf(r)&&e.style.setProperty(r,t.getPropertyValue(r))}return e},Yi=function(t){var e="";return t&&(e+="<!DOCTYPE ",t.name&&(e+=t.name),t.internalSubset&&(e+=t.internalSubset),t.publicId&&(e+='"'+t.publicId+'"'),t.systemId&&(e+='"'+t.systemId+'"'),e+=">"),e},zi=function(t,e,n){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||n!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,n)},Wi=function(t){var e=t[0],n=t[1],r=t[2];e.scrollLeft=n,e.scrollTop=r},Vi="___html2canvas___pseudoelement_before",qi="___html2canvas___pseudoelement_after",Xi=function(t){Ji(t,"."+Vi+':before{\n content: "" !important;\n display: none !important;\n}\n .'+qi+':after{\n content: "" !important;\n display: none !important;\n}')},Ji=function(t,e){var n=t.ownerDocument;if(n){var r=n.createElement("style");r.textContent=e,t.appendChild(r)}},Zi=function(){function t(){}return t.getOrigin=function(e){var n=t._link;return n?(n.href=e,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t}(),ta=function(){function t(t,e){this.context=t,this._options=e,this._cache={}}return t.prototype.addImage=function(t){var e=Promise.resolve();return this.has(t)?e:sa(t)||ia(t)?((this._cache[t]=this.loadImage(t)).catch((function(){})),e):e},t.prototype.match=function(t){return this._cache[t]},t.prototype.loadImage=function(t){return r(this,void 0,void 0,(function(){var e,n,r,a,o=this;return i(this,(function(i){switch(i.label){case 0:return e=Zi.isSameOrigin(t),n=!aa(t)&&!0===this._options.useCORS&&Nr.SUPPORT_CORS_IMAGES&&!e,r=!aa(t)&&!e&&!sa(t)&&"string"==typeof this._options.proxy&&Nr.SUPPORT_CORS_XHR&&!n,e||!1!==this._options.allowTaint||aa(t)||sa(t)||r||n?(a=t,r?[4,this.proxy(a)]:[3,2]):[2];case 1:a=i.sent(),i.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise((function(t,e){var r=new Image;r.onload=function(){return t(r)},r.onerror=e,(oa(a)||n)&&(r.crossOrigin="anonymous"),r.src=a,!0===r.complete&&setTimeout((function(){return t(r)}),500),o._options.imageTimeout>0&&setTimeout((function(){return e("Timed out ("+o._options.imageTimeout+"ms) loading image")}),o._options.imageTimeout)}))];case 3:return[2,i.sent()]}}))}))},t.prototype.has=function(t){return void 0!==this._cache[t]},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(t){var e=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=t.substring(0,256);return new Promise((function(i,a){var o=Nr.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(200===s.status)if("text"===o)i(s.response);else{var t=new FileReader;t.addEventListener("load",(function(){return i(t.result)}),!1),t.addEventListener("error",(function(t){return a(t)}),!1),t.readAsDataURL(s.response)}else a("Failed to proxy resource "+r+" with status code "+s.status)},s.onerror=a;var c=n.indexOf("?")>-1?"&":"?";if(s.open("GET",""+n+c+"url="+encodeURIComponent(t)+"&responseType="+o),"text"!==o&&s instanceof XMLHttpRequest&&(s.responseType=o),e._options.imageTimeout){var l=e._options.imageTimeout;s.timeout=l,s.ontimeout=function(){return a("Timed out ("+l+"ms) proxying "+r)}}s.send()}))},t}(),ea=/^data:image\/svg\+xml/i,na=/^data:image\/.*;base64,/i,ra=/^data:image\/.*/i,ia=function(t){return Nr.SUPPORT_SVG_DRAWING||!ca(t)},aa=function(t){return ra.test(t)},oa=function(t){return na.test(t)},sa=function(t){return"blob"===t.substr(0,4)},ca=function(t){return"svg"===t.substr(-3).toLowerCase()||ea.test(t)},la=function(){function t(t,e){this.type=0,this.x=t,this.y=e}return t.prototype.add=function(e,n){return new t(this.x+e,this.y+n)},t}(),Aa=function(t,e,n){return new la(t.x+(e.x-t.x)*n,t.y+(e.y-t.y)*n)},ua=function(){function t(t,e,n,r){this.type=1,this.start=t,this.startControl=e,this.endControl=n,this.end=r}return t.prototype.subdivide=function(e,n){var r=Aa(this.start,this.startControl,e),i=Aa(this.startControl,this.endControl,e),a=Aa(this.endControl,this.end,e),o=Aa(r,i,e),s=Aa(i,a,e),c=Aa(o,s,e);return n?new t(this.start,r,o,c):new t(c,s,a,this.end)},t.prototype.add=function(e,n){return new t(this.start.add(e,n),this.startControl.add(e,n),this.endControl.add(e,n),this.end.add(e,n))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),ha=function(t){return 1===t.type},fa=function(t){var e=t.styles,n=t.bounds,r=Zt(e.borderTopLeftRadius,n.width,n.height),i=r[0],a=r[1],o=Zt(e.borderTopRightRadius,n.width,n.height),s=o[0],c=o[1],l=Zt(e.borderBottomRightRadius,n.width,n.height),A=l[0],u=l[1],h=Zt(e.borderBottomLeftRadius,n.width,n.height),f=h[0],d=h[1],p=[];p.push((i+s)/n.width),p.push((f+A)/n.width),p.push((a+d)/n.height),p.push((c+u)/n.height);var g=Math.max.apply(Math,p);g>1&&(i/=g,a/=g,s/=g,c/=g,A/=g,u/=g,f/=g,d/=g);var m=n.width-s,y=n.height-u,v=n.width-A,b=n.height-d,_=e.borderTopWidth,w=e.borderRightWidth,E=e.borderBottomWidth,C=e.borderLeftWidth,x=te(e.paddingTop,t.bounds.width),B=te(e.paddingRight,t.bounds.width),T=te(e.paddingBottom,t.bounds.width),k=te(e.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||a>0?da(n.left+C/3,n.top+_/3,i-C/3,a-_/3,Pi.TOP_LEFT):new la(n.left+C/3,n.top+_/3),this.topRightBorderDoubleOuterBox=i>0||a>0?da(n.left+m,n.top+_/3,s-w/3,c-_/3,Pi.TOP_RIGHT):new la(n.left+n.width-w/3,n.top+_/3),this.bottomRightBorderDoubleOuterBox=A>0||u>0?da(n.left+v,n.top+y,A-w/3,u-E/3,Pi.BOTTOM_RIGHT):new la(n.left+n.width-w/3,n.top+n.height-E/3),this.bottomLeftBorderDoubleOuterBox=f>0||d>0?da(n.left+C/3,n.top+b,f-C/3,d-E/3,Pi.BOTTOM_LEFT):new la(n.left+C/3,n.top+n.height-E/3),this.topLeftBorderDoubleInnerBox=i>0||a>0?da(n.left+2*C/3,n.top+2*_/3,i-2*C/3,a-2*_/3,Pi.TOP_LEFT):new la(n.left+2*C/3,n.top+2*_/3),this.topRightBorderDoubleInnerBox=i>0||a>0?da(n.left+m,n.top+2*_/3,s-2*w/3,c-2*_/3,Pi.TOP_RIGHT):new la(n.left+n.width-2*w/3,n.top+2*_/3),this.bottomRightBorderDoubleInnerBox=A>0||u>0?da(n.left+v,n.top+y,A-2*w/3,u-2*E/3,Pi.BOTTOM_RIGHT):new la(n.left+n.width-2*w/3,n.top+n.height-2*E/3),this.bottomLeftBorderDoubleInnerBox=f>0||d>0?da(n.left+2*C/3,n.top+b,f-2*C/3,d-2*E/3,Pi.BOTTOM_LEFT):new la(n.left+2*C/3,n.top+n.height-2*E/3),this.topLeftBorderStroke=i>0||a>0?da(n.left+C/2,n.top+_/2,i-C/2,a-_/2,Pi.TOP_LEFT):new la(n.left+C/2,n.top+_/2),this.topRightBorderStroke=i>0||a>0?da(n.left+m,n.top+_/2,s-w/2,c-_/2,Pi.TOP_RIGHT):new la(n.left+n.width-w/2,n.top+_/2),this.bottomRightBorderStroke=A>0||u>0?da(n.left+v,n.top+y,A-w/2,u-E/2,Pi.BOTTOM_RIGHT):new la(n.left+n.width-w/2,n.top+n.height-E/2),this.bottomLeftBorderStroke=f>0||d>0?da(n.left+C/2,n.top+b,f-C/2,d-E/2,Pi.BOTTOM_LEFT):new la(n.left+C/2,n.top+n.height-E/2),this.topLeftBorderBox=i>0||a>0?da(n.left,n.top,i,a,Pi.TOP_LEFT):new la(n.left,n.top),this.topRightBorderBox=s>0||c>0?da(n.left+m,n.top,s,c,Pi.TOP_RIGHT):new la(n.left+n.width,n.top),this.bottomRightBorderBox=A>0||u>0?da(n.left+v,n.top+y,A,u,Pi.BOTTOM_RIGHT):new la(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=f>0||d>0?da(n.left,n.top+b,f,d,Pi.BOTTOM_LEFT):new la(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||a>0?da(n.left+C,n.top+_,Math.max(0,i-C),Math.max(0,a-_),Pi.TOP_LEFT):new la(n.left+C,n.top+_),this.topRightPaddingBox=s>0||c>0?da(n.left+Math.min(m,n.width-w),n.top+_,m>n.width+w?0:Math.max(0,s-w),Math.max(0,c-_),Pi.TOP_RIGHT):new la(n.left+n.width-w,n.top+_),this.bottomRightPaddingBox=A>0||u>0?da(n.left+Math.min(v,n.width-C),n.top+Math.min(y,n.height-E),Math.max(0,A-w),Math.max(0,u-E),Pi.BOTTOM_RIGHT):new la(n.left+n.width-w,n.top+n.height-E),this.bottomLeftPaddingBox=f>0||d>0?da(n.left+C,n.top+Math.min(b,n.height-E),Math.max(0,f-C),Math.max(0,d-E),Pi.BOTTOM_LEFT):new la(n.left+C,n.top+n.height-E),this.topLeftContentBox=i>0||a>0?da(n.left+C+k,n.top+_+x,Math.max(0,i-(C+k)),Math.max(0,a-(_+x)),Pi.TOP_LEFT):new la(n.left+C+k,n.top+_+x),this.topRightContentBox=s>0||c>0?da(n.left+Math.min(m,n.width+C+k),n.top+_+x,m>n.width+C+k?0:s-C+k,c-(_+x),Pi.TOP_RIGHT):new la(n.left+n.width-(w+B),n.top+_+x),this.bottomRightContentBox=A>0||u>0?da(n.left+Math.min(v,n.width-(C+k)),n.top+Math.min(y,n.height+_+x),Math.max(0,A-(w+B)),u-(E+T),Pi.BOTTOM_RIGHT):new la(n.left+n.width-(w+B),n.top+n.height-(E+T)),this.bottomLeftContentBox=f>0||d>0?da(n.left+C+k,n.top+b,Math.max(0,f-(C+k)),d-(E+T),Pi.BOTTOM_LEFT):new la(n.left+C+k,n.top+n.height-(E+T))};!function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(Pi||(Pi={}));var da=function(t,e,n,r,i){var a=(Math.sqrt(2)-1)/3*4,o=n*a,s=r*a,c=t+n,l=e+r;switch(i){case Pi.TOP_LEFT:return new ua(new la(t,l),new la(t,l-s),new la(c-o,e),new la(c,e));case Pi.TOP_RIGHT:return new ua(new la(t,e),new la(t+o,e),new la(c,l-s),new la(c,l));case Pi.BOTTOM_RIGHT:return new ua(new la(c,e),new la(c,e+s),new la(t+o,l),new la(t,l));case Pi.BOTTOM_LEFT:default:return new ua(new la(c,l),new la(c-o,l),new la(t,e+s),new la(t,e))}},pa=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},ga=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},ma=function(t,e,n){this.offsetX=t,this.offsetY=e,this.matrix=n,this.type=0,this.target=6},ya=function(t,e){this.path=t,this.target=e,this.type=1},va=function(t){this.opacity=t,this.type=2,this.target=6},ba=function(t){return 1===t.type},_a=function(t,e){return t.length===e.length&&t.some((function(t,n){return t===e[n]}))},wa=function(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},Ea=function(){function t(t,e){if(this.container=t,this.parent=e,this.effects=[],this.curves=new fa(this.container),this.container.styles.opacity<1&&this.effects.push(new va(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,i=this.container.styles.transform;this.effects.push(new ma(n,r,i))}if(0!==this.container.styles.overflowX){var a=pa(this.curves),o=ga(this.curves);_a(a,o)?this.effects.push(new ya(a,6)):(this.effects.push(new ya(a,2)),this.effects.push(new ya(o,4)))}}return t.prototype.getEffects=function(t){for(var e=-1===[2,3].indexOf(this.container.styles.position),n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter((function(t){return!ba(t)}));if(e||0!==n.container.styles.position||!n.parent){if(r.unshift.apply(r,i),e=-1===[2,3].indexOf(n.container.styles.position),0!==n.container.styles.overflowX){var a=pa(n.curves),o=ga(n.curves);_a(a,o)||r.unshift(new ya(o,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter((function(e){return Vn(e.target,t)}))},t}(),Ca=function(t,e,n,r){t.container.elements.forEach((function(i){var a=Vn(i.flags,4),o=Vn(i.flags,2),s=new Ea(i,t);Vn(i.styles.display,2048)&&r.push(s);var c=Vn(i.flags,8)?[]:r;if(a||o){var l=a||i.styles.isPositioned()?n:e,A=new wa(s);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var u=i.styles.zIndex.order;if(u<0){var h=0;l.negativeZIndex.some((function(t,e){return u>t.element.container.styles.zIndex.order?(h=e,!1):h>0})),l.negativeZIndex.splice(h,0,A)}else if(u>0){var f=0;l.positiveZIndex.some((function(t,e){return u>=t.element.container.styles.zIndex.order?(f=e+1,!1):f>0})),l.positiveZIndex.splice(f,0,A)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(A)}else i.styles.isFloating()?l.nonPositionedFloats.push(A):l.nonPositionedInlineLevel.push(A);Ca(s,A,a?A:n,c)}else i.styles.isInlineLevel()?e.inlineLevel.push(s):e.nonInlineLevel.push(s),Ca(s,e,n,c);Vn(i.flags,8)&&xa(i,c)}))},xa=function(t,e){for(var n=t instanceof Vr?t.start:1,r=t instanceof Vr&&t.reversed,i=0;i<e.length;i++){var a=e[i];a.container instanceof Wr&&"number"==typeof a.container.value&&0!==a.container.value&&(n=a.container.value),a.listValue=Ri(n,a.container.styles.listStyleType,!0),n+=r?-1:1}},Ba=function(t,e){switch(e){case 0:return ka(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return ka(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return ka(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return ka(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},Ta=function(t,e){var n=[];return ha(t)?n.push(t.subdivide(.5,!1)):n.push(t),ha(e)?n.push(e.subdivide(.5,!0)):n.push(e),n},ka=function(t,e,n,r){var i=[];return ha(t)?i.push(t.subdivide(.5,!1)):i.push(t),ha(n)?i.push(n.subdivide(.5,!0)):i.push(n),ha(r)?i.push(r.subdivide(.5,!0).reverse()):i.push(r),ha(e)?i.push(e.subdivide(.5,!1).reverse()):i.push(e),i},Sa=function(t){var e=t.bounds,n=t.styles;return e.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},Ia=function(t){var e=t.styles,n=t.bounds,r=te(e.paddingLeft,n.width),i=te(e.paddingRight,n.width),a=te(e.paddingTop,n.width),o=te(e.paddingBottom,n.width);return n.add(r+e.borderLeftWidth,a+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+i),-(e.borderTopWidth+e.borderBottomWidth+a+o))},La=function(t,e,n){var r=function(t,e){return 0===t?e.bounds:2===t?Ia(e):Sa(e)}(Da(t.styles.backgroundOrigin,e),t),i=function(t,e){return 0===t?e.bounds:2===t?Ia(e):Sa(e)}(Da(t.styles.backgroundClip,e),t),a=Oa(Da(t.styles.backgroundSize,e),n,r),o=a[0],s=a[1],c=Zt(Da(t.styles.backgroundPosition,e),r.width-o,r.height-s);return[Ma(Da(t.styles.backgroundRepeat,e),c,a,r,i),Math.round(r.left+c[0]),Math.round(r.top+c[1]),o,s]},Fa=function(t){return Ht(t)&&t.value===he.AUTO},Na=function(t){return"number"==typeof t},Oa=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=t[0],s=t[1];if(!o)return[0,0];if(Wt(o)&&s&&Wt(s))return[te(o,n.width),te(s,n.height)];var c=Na(a);if(Ht(o)&&(o.value===he.CONTAIN||o.value===he.COVER))return Na(a)?n.width/n.height<a!=(o.value===he.COVER)?[n.width,n.width/a]:[n.height*a,n.height]:[n.width,n.height];var l=Na(r),A=Na(i),u=l||A;if(Fa(o)&&(!s||Fa(s)))return l&&A?[r,i]:c||u?u&&c?[l?r:i*a,A?i:r/a]:[l?r:n.width,A?i:n.height]:[n.width,n.height];if(c){var h=0,f=0;return Wt(o)?h=te(o,n.width):Wt(s)&&(f=te(s,n.height)),Fa(o)?h=f*a:s&&!Fa(s)||(f=h/a),[h,f]}var d=null,p=null;if(Wt(o)?d=te(o,n.width):s&&Wt(s)&&(p=te(s,n.height)),null===d||s&&!Fa(s)||(p=l&&A?d/r*i:n.height),null!==p&&Fa(o)&&(d=l&&A?p/i*r:n.width),null!==d&&null!==p)return[d,p];throw new Error("Unable to calculate background-size for element")},Da=function(t,e){var n=t[e];return void 0===n?t[0]:n},Ma=function(t,e,n,r,i){var a=e[0],o=e[1],s=n[0],c=n[1];switch(t){case 2:return[new la(Math.round(r.left),Math.round(r.top+o)),new la(Math.round(r.left+r.width),Math.round(r.top+o)),new la(Math.round(r.left+r.width),Math.round(c+r.top+o)),new la(Math.round(r.left),Math.round(c+r.top+o))];case 3:return[new la(Math.round(r.left+a),Math.round(r.top)),new la(Math.round(r.left+a+s),Math.round(r.top)),new la(Math.round(r.left+a+s),Math.round(r.height+r.top)),new la(Math.round(r.left+a),Math.round(r.height+r.top))];case 1:return[new la(Math.round(r.left+a),Math.round(r.top+o)),new la(Math.round(r.left+a+s),Math.round(r.top+o)),new la(Math.round(r.left+a+s),Math.round(r.top+o+c)),new la(Math.round(r.left+a),Math.round(r.top+o+c))];default:return[new la(Math.round(i.left),Math.round(i.top)),new la(Math.round(i.left+i.width),Math.round(i.top)),new la(Math.round(i.left+i.width),Math.round(i.height+i.top)),new la(Math.round(i.left),Math.round(i.height+i.top))]}},Ra=function(){function t(t){this._data={},this._document=t}return t.prototype.parseMetrics=function(t,e){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),a=this._document.body;n.style.visibility="hidden",n.style.fontFamily=t,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",a.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",i.style.fontFamily=t,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode("Hidden Text")),n.appendChild(i),n.appendChild(r);var o=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode("Hidden Text")),n.style.lineHeight="normal",r.style.verticalAlign="super";var s=r.offsetTop-n.offsetTop+2;return a.removeChild(n),{baseline:o,middle:s}},t.prototype.getMetrics=function(t,e){var n=t+" "+e;return void 0===this._data[n]&&(this._data[n]=this.parseMetrics(t,e)),this._data[n]},t}(),Ua=function(t,e){this.context=t,this.options=e},Pa=function(t){function n(e,n){var r=t.call(this,e,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 Ra(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 e(n,t),n.prototype.applyEffects=function(t){for(var e=this;this._activeEffects.length;)this.popEffect();t.forEach((function(t){return e.applyEffect(t)}))},n.prototype.applyEffect=function(t){this.ctx.save(),function(t){return 2===t.type}(t)&&(this.ctx.globalAlpha=t.opacity),function(t){return 0===t.type}(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),ba(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},n.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},n.prototype.renderStack=function(t){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return t.element.container.styles.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},n.prototype.renderNode=function(t){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return Vn(t.container.flags,16),t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return e.sent(),[4,this.renderNodeContent(t)];case 2:e.sent(),e.label=3;case 3:return[2]}}))}))},n.prototype.renderTextWithLetterSpacing=function(t,e,n){var r=this;0===e?this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+n):Rr(t.text).reduce((function(e,i){return r.ctx.fillText(i,e,t.bounds.top+n),e+r.ctx.measureText(i).width}),t.bounds.left)},n.prototype.createFontStyle=function(t){var e=t.fontVariant.filter((function(t){return"normal"===t||"small-caps"===t})).join(""),n=$a(t.fontFamily).join(", "),r=Ut(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,e,t.fontWeight,r,n].join(" "),n,r]},n.prototype.renderTextNode=function(t,e){return r(this,void 0,void 0,(function(){var n,r,a,o,s,c,l,A,u=this;return i(this,(function(i){return n=this.createFontStyle(e),r=n[0],a=n[1],o=n[2],this.ctx.font=r,this.ctx.direction=1===e.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",s=this.fontMetrics.getMetrics(a,o),c=s.baseline,l=s.middle,A=e.paintOrder,t.textBounds.forEach((function(t){A.forEach((function(n){switch(n){case 0:u.ctx.fillStyle=se(e.color),u.renderTextWithLetterSpacing(t,e.letterSpacing,c);var r=e.textShadow;r.length&&t.text.trim().length&&(r.slice(0).reverse().forEach((function(n){u.ctx.shadowColor=se(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(t,e.letterSpacing,c)})),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),e.textDecorationLine.length&&(u.ctx.fillStyle=se(e.textDecorationColor||e.color),e.textDecorationLine.forEach((function(e){switch(e){case 1:u.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top+c),t.bounds.width,1);break;case 2:u.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top),t.bounds.width,1);break;case 3:u.ctx.fillRect(t.bounds.left,Math.ceil(t.bounds.top+l),t.bounds.width,1)}})));break;case 1:e.webkitTextStrokeWidth&&t.text.trim().length&&(u.ctx.strokeStyle=se(e.webkitTextStrokeColor),u.ctx.lineWidth=e.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(t.text,t.bounds.left,t.bounds.top+c)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter"}}))})),[2]}))}))},n.prototype.renderReplacedElement=function(t,e,n){if(n&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var r=Ia(t),i=ga(e);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,t.intrinsicWidth,t.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(t){return r(this,void 0,void 0,(function(){var e,r,a,s,c,l,A,u,h,f,d,p,g,m,y,v,b,_;return i(this,(function(i){switch(i.label){case 0:this.applyEffects(t.getEffects(4)),e=t.container,r=t.curves,a=e.styles,s=0,c=e.textNodes,i.label=1;case 1:return s<c.length?(l=c[s],[4,this.renderTextNode(l,a)]):[3,4];case 2:i.sent(),i.label=3;case 3:return s++,[3,1];case 4:if(!(e instanceof Kr))return[3,8];i.label=5;case 5:return i.trys.push([5,7,,8]),[4,this.context.cache.match(e.src)];case 6:return y=i.sent(),this.renderReplacedElement(e,r,y),[3,8];case 7:return i.sent(),this.context.logger.error("Error loading image "+e.src),[3,8];case 8:if(e instanceof Yr&&this.renderReplacedElement(e,r,e.canvas),!(e instanceof zr))return[3,12];i.label=9;case 9:return i.trys.push([9,11,,12]),[4,this.context.cache.match(e.svg)];case 10:return y=i.sent(),this.renderReplacedElement(e,r,y),[3,12];case 11:return i.sent(),this.context.logger.error("Error loading svg "+e.svg.substring(0,255)),[3,12];case 12:return e instanceof ni&&e.tree?[4,new n(this.context,{scale:this.options.scale,backgroundColor:e.backgroundColor,x:0,y:0,width:e.width,height:e.height}).render(e.tree)]:[3,14];case 13:A=i.sent(),e.width&&e.height&&this.ctx.drawImage(A,0,0,e.width,e.height,e.bounds.left,e.bounds.top,e.bounds.width,e.bounds.height),i.label=14;case 14:if(e instanceof Zr&&(u=Math.min(e.bounds.width,e.bounds.height),"checkbox"===e.type?e.checked&&(this.ctx.save(),this.path([new la(e.bounds.left+.39363*u,e.bounds.top+.79*u),new la(e.bounds.left+.16*u,e.bounds.top+.5549*u),new la(e.bounds.left+.27347*u,e.bounds.top+.44071*u),new la(e.bounds.left+.39694*u,e.bounds.top+.5649*u),new la(e.bounds.left+.72983*u,e.bounds.top+.23*u),new la(e.bounds.left+.84*u,e.bounds.top+.34085*u),new la(e.bounds.left+.39363*u,e.bounds.top+.79*u)]),this.ctx.fillStyle=se(707406591),this.ctx.fill(),this.ctx.restore()):"radio"===e.type&&e.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(e.bounds.left+u/2,e.bounds.top+u/2,u/4,0,2*Math.PI,!0),this.ctx.fillStyle=se(707406591),this.ctx.fill(),this.ctx.restore())),Ha(e)&&e.value.length){switch(h=this.createFontStyle(a),b=h[0],f=h[1],d=this.fontMetrics.getMetrics(b,f).baseline,this.ctx.font=b,this.ctx.fillStyle=se(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Ga(e.styles.textAlign),_=Ia(e),p=0,e.styles.textAlign){case 1:p+=_.width/2;break;case 2:p+=_.width}g=_.add(p,0,0,-_.height/2+1),this.ctx.save(),this.path([new la(_.left,_.top),new la(_.left+_.width,_.top),new la(_.left+_.width,_.top+_.height),new la(_.left,_.top+_.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Or(e.value,g),a.letterSpacing,d),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Vn(e.styles.display,2048))return[3,20];if(null===e.styles.listStyleImage)return[3,19];if(0!==(m=e.styles.listStyleImage).type)return[3,18];y=void 0,v=m.url,i.label=15;case 15:return i.trys.push([15,17,,18]),[4,this.context.cache.match(v)];case 16:return y=i.sent(),this.ctx.drawImage(y,e.bounds.left-(y.width+10),e.bounds.top),[3,18];case 17:return i.sent(),this.context.logger.error("Error loading list-style-image "+v),[3,18];case 18:return[3,20];case 19:t.listValue&&-1!==e.styles.listStyleType&&(b=this.createFontStyle(a)[0],this.ctx.font=b,this.ctx.fillStyle=se(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",_=new o(e.bounds.left,e.bounds.top+te(e.styles.paddingTop,e.bounds.width),e.bounds.width,hn(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Or(t.listValue,_),a.letterSpacing,hn(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),i.label=20;case 20:return[2]}}))}))},n.prototype.renderStackContent=function(t){return r(this,void 0,void 0,(function(){var e,n,r,a,o,s,c,l,A,u,h,f,d,p,g;return i(this,(function(i){switch(i.label){case 0:return Vn(t.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:i.sent(),e=0,n=t.negativeZIndex,i.label=2;case 2:return e<n.length?(g=n[e],[4,this.renderStack(g)]):[3,5];case 3:i.sent(),i.label=4;case 4:return e++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:i.sent(),r=0,a=t.nonInlineLevel,i.label=7;case 7:return r<a.length?(g=a[r],[4,this.renderNode(g)]):[3,10];case 8:i.sent(),i.label=9;case 9:return r++,[3,7];case 10:o=0,s=t.nonPositionedFloats,i.label=11;case 11:return o<s.length?(g=s[o],[4,this.renderStack(g)]):[3,14];case 12:i.sent(),i.label=13;case 13:return o++,[3,11];case 14:c=0,l=t.nonPositionedInlineLevel,i.label=15;case 15:return c<l.length?(g=l[c],[4,this.renderStack(g)]):[3,18];case 16:i.sent(),i.label=17;case 17:return c++,[3,15];case 18:A=0,u=t.inlineLevel,i.label=19;case 19:return A<u.length?(g=u[A],[4,this.renderNode(g)]):[3,22];case 20:i.sent(),i.label=21;case 21:return A++,[3,19];case 22:h=0,f=t.zeroOrAutoZIndexOrTransformedOrOpacity,i.label=23;case 23:return h<f.length?(g=f[h],[4,this.renderStack(g)]):[3,26];case 24:i.sent(),i.label=25;case 25:return h++,[3,23];case 26:d=0,p=t.positiveZIndex,i.label=27;case 27:return d<p.length?(g=p[d],[4,this.renderStack(g)]):[3,30];case 28:i.sent(),i.label=29;case 29:return d++,[3,27];case 30:return[2]}}))}))},n.prototype.mask=function(t){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(t.slice(0).reverse()),this.ctx.closePath()},n.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},n.prototype.formatPath=function(t){var e=this;t.forEach((function(t,n){var r=ha(t)?t.start:t;0===n?e.ctx.moveTo(r.x,r.y):e.ctx.lineTo(r.x,r.y),ha(t)&&e.ctx.bezierCurveTo(t.startControl.x,t.startControl.y,t.endControl.x,t.endControl.y,t.end.x,t.end.y)}))},n.prototype.renderRepeat=function(t,e,n,r){this.path(t),this.ctx.fillStyle=e,this.ctx.translate(n,r),this.ctx.fill(),this.ctx.translate(-n,-r)},n.prototype.resizeImage=function(t,e,n){var r;if(t.width===e&&t.height===n)return t;var i=(null!==(r=this.canvas.ownerDocument)&&void 0!==r?r:document).createElement("canvas");return i.width=Math.max(1,e),i.height=Math.max(1,n),i.getContext("2d").drawImage(t,0,0,t.width,t.height,0,0,e,n),i},n.prototype.renderBackgroundImage=function(t){return r(this,void 0,void 0,(function(){var e,n,r,a,o,s;return i(this,(function(c){switch(c.label){case 0:e=t.styles.backgroundImage.length-1,n=function(n){var a,o,s,c,l,A,u,h,f,d,p,g,m,y,v,b,_,w,E,C,x,B,T,k,S,I,L,F,N,O,D;return i(this,(function(i){switch(i.label){case 0:if(0!==n.type)return[3,5];a=void 0,o=n.url,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,r.context.cache.match(o)];case 2:return a=i.sent(),[3,4];case 3:return i.sent(),r.context.logger.error("Error loading background-image "+o),[3,4];case 4:return a&&(s=La(t,e,[a.width,a.height,a.width/a.height]),b=s[0],B=s[1],T=s[2],E=s[3],C=s[4],y=r.ctx.createPattern(r.resizeImage(a,E,C),"repeat"),r.renderRepeat(b,y,B,T)),[3,6];case 5:1===n.type?(c=La(t,e,[null,null,null]),b=c[0],B=c[1],T=c[2],E=c[3],C=c[4],l=_e(n.angle,E,C),A=l[0],u=l[1],h=l[2],f=l[3],d=l[4],(p=document.createElement("canvas")).width=E,p.height=C,g=p.getContext("2d"),m=g.createLinearGradient(u,f,h,d),be(n.stops,A).forEach((function(t){return m.addColorStop(t.stop,se(t.color))})),g.fillStyle=m,g.fillRect(0,0,E,C),E>0&&C>0&&(y=r.ctx.createPattern(p,"repeat"),r.renderRepeat(b,y,B,T))):function(t){return 2===t.type}(n)&&(v=La(t,e,[null,null,null]),b=v[0],_=v[1],w=v[2],E=v[3],C=v[4],x=0===n.position.length?[Xt]:n.position,B=te(x[0],E),T=te(x[x.length-1],C),k=function(t,e,n,r,i){var a=0,o=0;switch(t.size){case 0:0===t.shape?a=o=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(n),Math.abs(n-i)):1===t.shape&&(a=Math.min(Math.abs(e),Math.abs(e-r)),o=Math.min(Math.abs(n),Math.abs(n-i)));break;case 2:if(0===t.shape)a=o=Math.min(we(e,n),we(e,n-i),we(e-r,n),we(e-r,n-i));else if(1===t.shape){var s=Math.min(Math.abs(n),Math.abs(n-i))/Math.min(Math.abs(e),Math.abs(e-r)),c=Ee(r,i,e,n,!0),l=c[0],A=c[1];o=s*(a=we(l-e,(A-n)/s))}break;case 1:0===t.shape?a=o=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(n),Math.abs(n-i)):1===t.shape&&(a=Math.max(Math.abs(e),Math.abs(e-r)),o=Math.max(Math.abs(n),Math.abs(n-i)));break;case 3:if(0===t.shape)a=o=Math.max(we(e,n),we(e,n-i),we(e-r,n),we(e-r,n-i));else if(1===t.shape){s=Math.max(Math.abs(n),Math.abs(n-i))/Math.max(Math.abs(e),Math.abs(e-r));var u=Ee(r,i,e,n,!1);l=u[0],A=u[1],o=s*(a=we(l-e,(A-n)/s))}}return Array.isArray(t.size)&&(a=te(t.size[0],r),o=2===t.size.length?te(t.size[1],i):a),[a,o]}(n,B,T,E,C),S=k[0],I=k[1],S>0&&I>0&&(L=r.ctx.createRadialGradient(_+B,w+T,0,_+B,w+T,S),be(n.stops,2*S).forEach((function(t){return L.addColorStop(t.stop,se(t.color))})),r.path(b),r.ctx.fillStyle=L,S!==I?(F=t.bounds.left+.5*t.bounds.width,N=t.bounds.top+.5*t.bounds.height,D=1/(O=I/S),r.ctx.save(),r.ctx.translate(F,N),r.ctx.transform(1,0,0,O,0,0),r.ctx.translate(-F,-N),r.ctx.fillRect(_,D*(w-N)+N,E,C*D),r.ctx.restore()):r.ctx.fill())),i.label=6;case 6:return e--,[2]}}))},r=this,a=0,o=t.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return a<o.length?(s=o[a],[5,n(s)]):[3,4];case 2:c.sent(),c.label=3;case 3:return a++,[3,1];case 4:return[2]}}))}))},n.prototype.renderSolidBorder=function(t,e,n){return r(this,void 0,void 0,(function(){return i(this,(function(r){return this.path(Ba(n,e)),this.ctx.fillStyle=se(t),this.ctx.fill(),[2]}))}))},n.prototype.renderDoubleBorder=function(t,e,n,a){return r(this,void 0,void 0,(function(){var r,o;return i(this,(function(i){switch(i.label){case 0:return e<3?[4,this.renderSolidBorder(t,n,a)]:[3,2];case 1:return i.sent(),[2];case 2:return r=function(t,e){switch(e){case 0:return ka(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return ka(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return ka(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return ka(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}}(a,n),this.path(r),this.ctx.fillStyle=se(t),this.ctx.fill(),o=function(t,e){switch(e){case 0:return ka(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return ka(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return ka(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return ka(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}}(a,n),this.path(o),this.ctx.fill(),[2]}}))}))},n.prototype.renderNodeBackgroundAndBorders=function(t){return r(this,void 0,void 0,(function(){var e,n,r,a,o,s,c,l,A=this;return i(this,(function(i){switch(i.label){case 0:return this.applyEffects(t.getEffects(2)),e=t.container.styles,n=!oe(e.backgroundColor)||e.backgroundImage.length,r=[{style:e.borderTopStyle,color:e.borderTopColor,width:e.borderTopWidth},{style:e.borderRightStyle,color:e.borderRightColor,width:e.borderRightWidth},{style:e.borderBottomStyle,color:e.borderBottomColor,width:e.borderBottomWidth},{style:e.borderLeftStyle,color:e.borderLeftColor,width:e.borderLeftWidth}],a=Qa(Da(e.backgroundClip,0),t.curves),n||e.boxShadow.length?(this.ctx.save(),this.path(a),this.ctx.clip(),oe(e.backgroundColor)||(this.ctx.fillStyle=se(e.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:i.sent(),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach((function(e){A.ctx.save();var n=pa(t.curves),r=e.inset?0:1e4,i=function(t,e,n,r,i){return t.map((function(t,a){switch(a){case 0:return t.add(e,n);case 1:return t.add(e+r,n);case 2:return t.add(e+r,n+i);case 3:return t.add(e,n+i)}return t}))}(n,-r+(e.inset?1:-1)*e.spread.number,(e.inset?1:-1)*e.spread.number,e.spread.number*(e.inset?-2:2),e.spread.number*(e.inset?-2:2));e.inset?(A.path(n),A.ctx.clip(),A.mask(i)):(A.mask(n),A.ctx.clip(),A.path(i)),A.ctx.shadowOffsetX=e.offsetX.number+r,A.ctx.shadowOffsetY=e.offsetY.number,A.ctx.shadowColor=se(e.color),A.ctx.shadowBlur=e.blur.number,A.ctx.fillStyle=e.inset?se(e.color):"rgba(0,0,0,1)",A.ctx.fill(),A.ctx.restore()})),i.label=2;case 2:o=0,s=0,c=r,i.label=3;case 3:return s<c.length?0!==(l=c[s]).style&&!oe(l.color)&&l.width>0?2!==l.style?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,o,t.curves,2)]:[3,11]:[3,13];case 4:return i.sent(),[3,11];case 5:return 3!==l.style?[3,7]:[4,this.renderDashedDottedBorder(l.color,l.width,o,t.curves,3)];case 6:return i.sent(),[3,11];case 7:return 4!==l.style?[3,9]:[4,this.renderDoubleBorder(l.color,l.width,o,t.curves)];case 8:return i.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,o,t.curves)];case 10:i.sent(),i.label=11;case 11:o++,i.label=12;case 12:return s++,[3,3];case 13:return[2]}}))}))},n.prototype.renderDashedDottedBorder=function(t,e,n,a,o){return r(this,void 0,void 0,(function(){var r,s,c,l,A,u,h,f,d,p,g,m,y,v,b,_;return i(this,(function(i){return this.ctx.save(),r=function(t,e){switch(e){case 0:return Ta(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return Ta(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return Ta(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return Ta(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}}(a,n),s=Ba(a,n),2===o&&(this.path(s),this.ctx.clip()),ha(s[0])?(c=s[0].start.x,l=s[0].start.y):(c=s[0].x,l=s[0].y),ha(s[1])?(A=s[1].end.x,u=s[1].end.y):(A=s[1].x,u=s[1].y),h=0===n||2===n?Math.abs(c-A):Math.abs(l-u),this.ctx.beginPath(),3===o?this.formatPath(r):this.formatPath(s.slice(0,2)),f=e<3?3*e:2*e,d=e<3?2*e:e,3===o&&(f=e,d=e),p=!0,h<=2*f?p=!1:h<=2*f+d?(f*=g=h/(2*f+d),d*=g):(m=Math.floor((h+d)/(f+d)),y=(h-m*f)/(m-1),d=(v=(h-(m+1)*f)/m)<=0||Math.abs(d-y)<Math.abs(d-v)?y:v),p&&(3===o?this.ctx.setLineDash([0,f+d]):this.ctx.setLineDash([f,d])),3===o?(this.ctx.lineCap="round",this.ctx.lineWidth=e):this.ctx.lineWidth=2*e+1.1,this.ctx.strokeStyle=se(t),this.ctx.stroke(),this.ctx.setLineDash([]),2===o&&(ha(s[0])&&(b=s[3],_=s[0],this.ctx.beginPath(),this.formatPath([new la(b.end.x,b.end.y),new la(_.start.x,_.start.y)]),this.ctx.stroke()),ha(s[1])&&(b=s[1],_=s[2],this.ctx.beginPath(),this.formatPath([new la(b.end.x,b.end.y),new la(_.start.x,_.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]}))}))},n.prototype.render=function(t){return r(this,void 0,void 0,(function(){var e;return i(this,(function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=se(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),e=function(t){var e=new Ea(t,null),n=new wa(e),r=[];return Ca(e,n,n,r),xa(e.container,r),n}(t),[4,this.renderStack(e)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}}))}))},n}(Ua),Ha=function(t){return t instanceof ei||t instanceof ti||t instanceof Zr&&"radio"!==t.type&&"checkbox"!==t.type},Qa=function(t,e){switch(t){case 0:return pa(e);case 2:return function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]}(e);case 1:default:return ga(e)}},Ga=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},ja=["-apple-system","system-ui"],$a=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter((function(t){return-1===ja.indexOf(t)})):t},Ka=function(t){function n(e,n){var r=t.call(this,e,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 e(n,t),n.prototype.render=function(t){return r(this,void 0,void 0,(function(){var e,n;return i(this,(function(r){switch(r.label){case 0:return e=Lr(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,Ya(e)];case 1:return n=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=se(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}(Ua),Ya=function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))}))},za=function(){function t(t){var e=t.id,n=t.enabled;this.id=e,this.enabled=n,this.start=Date.now()}return t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,a([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,a([this.id,this.getTime()+"ms"],t))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,a([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,a([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},t.instances={},t}(),Wa=function(){function t(e,n){var r;this.windowBounds=n,this.instanceName="#"+t.instanceCount++,this.logger=new za({id:this.instanceName,enabled:e.logging}),this.cache=null!==(r=e.cache)&&void 0!==r?r:new ta(this,e)}return t.instanceCount=1,t}();"undefined"!=typeof window&&Zi.setContext(window);var Va=function(t,e){return r(void 0,void 0,void 0,(function(){var r,a,c,l,A,u,h,f,d,p,g,m,y,v,b,_,w,E,C,x,B,T,k,S,I,L,F,N,O,D,M,R,U,P,H,Q,G,j;return i(this,(function(i){switch(i.label){case 0:if(!t||"object"!=typeof t)return[2,Promise.reject("Invalid element provided as first argument")];if(!(r=t.ownerDocument))throw new Error("Element is not attached to a Document");if(!(a=r.defaultView))throw new Error("Document is not attached to a Window");return c={allowTaint:null!==(T=e.allowTaint)&&void 0!==T&&T,imageTimeout:null!==(k=e.imageTimeout)&&void 0!==k?k:15e3,proxy:e.proxy,useCORS:null!==(S=e.useCORS)&&void 0!==S&&S},l=n({logging:null===(I=e.logging)||void 0===I||I,cache:e.cache},c),A={windowWidth:null!==(L=e.windowWidth)&&void 0!==L?L:a.innerWidth,windowHeight:null!==(F=e.windowHeight)&&void 0!==F?F:a.innerHeight,scrollX:null!==(N=e.scrollX)&&void 0!==N?N:a.pageXOffset,scrollY:null!==(O=e.scrollY)&&void 0!==O?O:a.pageYOffset},u=new o(A.scrollX,A.scrollY,A.windowWidth,A.windowHeight),h=new Wa(l,u),f=null!==(D=e.foreignObjectRendering)&&void 0!==D&&D,d={allowTaint:null!==(M=e.allowTaint)&&void 0!==M&&M,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:f,copyStyles:f},h.logger.debug("Starting document clone with size "+u.width+"x"+u.height+" scrolled to "+-u.left+","+-u.top),p=new Ui(h,t,d),(g=p.clonedReferenceElement)?[4,p.toIFrame(r,u)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=i.sent(),y=mi(g)||function(t){return"HTML"===t.tagName}(g)?function(t){var e=t.body,n=t.documentElement;if(!e||!n)throw new Error("Unable to get document size");var r=Math.max(Math.max(e.scrollWidth,n.scrollWidth),Math.max(e.offsetWidth,n.offsetWidth),Math.max(e.clientWidth,n.clientWidth)),i=Math.max(Math.max(e.scrollHeight,n.scrollHeight),Math.max(e.offsetHeight,n.offsetHeight),Math.max(e.clientHeight,n.clientHeight));return new o(0,0,r,i)}(g.ownerDocument):s(h,g),v=y.width,b=y.height,_=y.left,w=y.top,E=qa(h,g,e.backgroundColor),C={canvas:e.canvas,backgroundColor:E,scale:null!==(U=null!==(R=e.scale)&&void 0!==R?R:a.devicePixelRatio)&&void 0!==U?U:1,x:(null!==(P=e.x)&&void 0!==P?P:0)+_,y:(null!==(H=e.y)&&void 0!==H?H:0)+w,width:null!==(Q=e.width)&&void 0!==Q?Q:Math.ceil(v),height:null!==(G=e.height)&&void 0!==G?G:Math.ceil(b)},f?(h.logger.debug("Document cloned, using foreign object rendering"),[4,new Ka(h,C).render(g)]):[3,3];case 2:return x=i.sent(),[3,5];case 3:return h.logger.debug("Document cloned, element located at "+_+","+w+" with size "+v+"x"+b+" using computed rendering"),h.logger.debug("Starting DOM parsing"),B=oi(h,g),E===B.styles.backgroundColor&&(B.styles.backgroundColor=ge.TRANSPARENT),h.logger.debug("Starting renderer for element at "+C.x+","+C.y+" with size "+C.width+"x"+C.height),[4,new Pa(h,C).render(B)];case 4:x=i.sent(),i.label=5;case 5:return(null===(j=e.removeContainer)||void 0===j||j)&&(Ui.destroy(m)||h.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),h.logger.debug("Finished rendering"),[2,x]}}))}))},qa=function(t,e,n){var r=e.ownerDocument,i=r.documentElement?pe(t,getComputedStyle(r.documentElement).backgroundColor):ge.TRANSPARENT,a=r.body?pe(t,getComputedStyle(r.body).backgroundColor):ge.TRANSPARENT,o="string"==typeof n?pe(t,n):null===n?ge.TRANSPARENT:4294967295;return e===r.documentElement?oe(i)?oe(a)?o:a:i:o};return function(t,e){return void 0===e&&(e={}),Va(t,e)}}()})),zv=function(t,e){var n=t.cloneNode(!0);n.className=n.className.replace("cherry-previewer--hidden",""),n.style.width="100%";var r=n.querySelectorAll("mjx-assistive-mml");ji(r).call(r,(function(t){t instanceof HTMLElement&&t.style.setProperty("visibility","hidden")}));var i=document.createElement("div");i.appendChild(n);var a=function(){var t,e=[];return ji(t=gl(document.body.children)).call(t,(function(t,n){e[n]=t.style.display,t.style.display="none"})),e}();document.body.appendChild(i);var o=document.body.style.overflow;document.body.style.overflow="visible",e(n,(function(){i.remove(),function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];ji(t=gl(document.body.children)).call(t,(function(t,n){void 0!==e[n]&&(t.style.display=e[n])}))}(a),document.body.style.overflow=o}))};function Wv(t,e){var n=document.title;document.title=e,zv(t,(function(t,e){window.print(),e(),document.title=n}))}function Vv(t,e){zv(t,(function(t,n){window.scrollTo(0,0),Yv(t,{allowTaint:!0,height:t.clientHeight,width:t.clientWidth,scrollY:0,scrollX:0}).then((function(t){!function(t,e){var n=document.createElement("a");n.style.display="none",n.href=t,n.download="".concat(e,".png"),document.body.appendChild(n),n.click(),document.body.removeChild(n)}(t.toDataURL("image/jpeg"),e),n()}))}))}function qv(t,e){var n=new Blob([t],{type:"text/markdown;charset=utf-8"}),r=document.createElement("a");r.style.display="none",r.href=Kv.createObjectURL(n),r.download="".concat(e,".md"),document.body.appendChild(r),r.click(),document.body.removeChild(r)}function Xv(t,e){var n=new Blob([t],{type:"text/markdown;charset=utf-8"}),r=document.createElement("a");r.style.display="none",r.href=Kv.createObjectURL(n),r.download="".concat(e,".html"),document.body.appendChild(r),r.click(),document.body.removeChild(r)}var Jv=T.f,Zv=b(Jv),tb=b([].push),eb=function(t){return function(e){for(var n,r=R(e),i=Ge(r),a=i.length,o=0,s=[];a>o;)n=i[o++],w&&!Zv(r,n)||tb(s,t?[n,r[n]]:r[n]);return s}},nb={entries:eb(!0),values:eb(!1)},rb=nb.values;Xt({target:"Object",stat:!0},{values:function(t){return rb(t)}});var ib=P.Object.values,ab=nb.entries;Xt({target:"Object",stat:!0},{entries:function(t){return ab(t)}});var ob=P.Object.entries,sb={mouseResize:{},getImgPosition:function(){var t=this.img.getBoundingClientRect(),e=this.previewerDom.parentNode.getBoundingClientRect(),n=vA(this.img.style.padding)||0;return{bottom:t.bottom-e.bottom,top:t.top-e.top+1.5*n,height:t.height,width:t.width,right:t.right-e.right,left:t.left-e.left+1.5*n,x:t.x-e.x,y:t.y-e.y}},initBubbleButtons:function(){var t=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:t.left-1,top:t.top-1,marginTop:0,marginLeft:0},scrollTop:this.previewerDom.scrollTop,position:t}},showBubble:function(t,e,n){this.$isResizing()||(this.img=t,this.previewerDom=n,this.container=e,this.buts=this.initBubbleButtons(),this.drawBubbleButs())},emit:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t){case"mousedown":return this.resizeBegin(e);case"mouseup":return this.resizeStop(e);case"mousemove":return this.resizeWorking(e);case"scroll":return this.dealScroll(e);case"remove":return this.remove();case"previewUpdate":return this.previewUpdate(e)}},previewUpdate:function(t){this.$isResizing()||(this.remove(),t())},drawBubbleButs:function(){var t,e=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.appendChild(this.butsImg),this.butsPoints={},ji(t=fn(this.buts.points.arr)).call(t,(function(t){var n=e.buts.points.arr[t],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,e.butsLayout.appendChild(r),e.butsPoints["pints-".concat(n)]=r}))),this.updateBubbleButs()},remove:function(){this.butsLayout=!1},updateBubbleButs:function(){var t,e,n=this;this.$updatePointsInfo(),ji(t=fn(this.buts.style)).call(t,(function(t){n.butsLayout.style[t]="".concat(n.buts.style[t],"px")})),ji(e=fn(this.buts.points.arr)).call(e,(function(t){var e=n.buts.points.arr[t];n.butsPoints["pints-".concat(e)].style.top="".concat(n.buts.points.arrInfo[e].top,"px"),n.butsPoints["pints-".concat(e)].style.left="".concat(n.buts.points.arrInfo[e].left,"px")}))},$updatePointsInfo:function(){var t,e=this,n=this.buts.style.width,r=this.buts.style.height,i=this.$getPointsInfo(n,r);ji(t=fn(this.buts.points.arr)).call(t,(function(t){var n=e.buts.points.arr[t];e.buts.points.arrInfo[n].left!==i[n].left&&(e.buts.points.arrInfo[n].left=i[n].left),e.buts.points.arrInfo[n].top!==i[n].top&&(e.buts.points.arrInfo[n].top=i[n].top)}))},$getPointsInfo:function(t,e){return{leftTop:{left:0,top:0},leftBottom:{left:0,top:e},rightTop:{left:t,top:0},rightBottom:{left:t,top:e},leftMiddle:{left:0,top:e/2},middleBottom:{left:t/2,top:e},middleTop:{left:t/2,top:0},rightMiddle:{left:t,top:e/2}}},$isResizing:function(){return this.mouseResize.resize},dealScroll:function(t){var e=this.getImgPosition();this.butsLayout.style.marginTop!==e.top-this.buts.position.top&&(this.butsLayout.style.marginTop="".concat(e.top-this.buts.position.top,"px"),this.buts.style.marginTop="".concat(e.top-this.buts.position.top,"px")),this.butsLayout.style.marginLeft!==e.left-this.buts.position.left&&(this.butsLayout.style.marginLeft="".concat(e.left-this.buts.position.left,"px"),this.buts.style.marginLeft="".concat(e.left-this.buts.position.left,"px"))},initMouse:function(){return{left:0,top:0,resize:!1,name:""}},resizeBegin:function(t){var e=t.target;if(!e.classList.contains("cherry-previewer-img-size-hander__points"))return!1;this.mouseResize.left=t.clientX,this.mouseResize.top=t.clientY,this.mouseResize.resize=!0,this.mouseResize.name=e.getAttribute("data-name"),this.previewerDom.classList.add("doing-resize-img")},resizeStop:function(t,e,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(t,e){if(this.$isResizing()){var n=t.clientX-this.mouseResize.left,r=t.clientY-this.mouseResize.top,i={};switch(this.mouseResize.name){case"leftTop":case"leftBottom":case"leftMiddle":i=this.$getChange(n,r,"x"),this.buts.style.width=this.buts.position.width-i.changeX,"leftMiddle"!==this.mouseResize.name&&(this.buts.style.height=this.buts.position.height-i.changeY);break;case"rightTop":case"rightBottom":case"rightMiddle":i=this.$getChange(n,r,"x"),this.buts.style.width=this.buts.position.width+i.changeX,"rightMiddle"!==this.mouseResize.name&&(this.buts.style.height=this.buts.position.height+i.changeY);break;case"middleTop":i=this.$getChange(n,r,"y"),this.buts.style.height=this.buts.position.height-i.changeY;break;case"middleBottom":i=this.$getChange(n,r,"y"),this.buts.style.height=this.buts.position.height+i.changeY}this.updateBubbleButs(),this.change()}},change:function(){this.emitChange(this.img,{width:this.buts.style.width,height:this.buts.style.height})},bindChange:function(t){this.emitChange=t},$getChange:function(t,e,n){var r={changeX:0,changeY:0};switch(n){case"y":r.changeY=e,r.changeX=e*this.buts.position.width/this.buts.position.height;break;default:r.changeX=t,r.changeY=t*this.buts.position.height/this.buts.position.width}return r}},cb=Xn.every,lb=Mi("every");Xt({target:"Array",proto:!0,forced:!lb},{every:function(t){return cb(this,t,arguments.length>1?arguments[1]:void 0)}});var Ab=Wr("Array").every,ub=Array.prototype,hb=function(t){var e=t.every;return t===ub||G(ub,t)&&e===ub.every?Ab:e},fb=l.TypeError,db=function(t,e,n,r,i,a,o,s){for(var c,l,A=i,u=0,h=!!o&&Pt(o,s);u<r;){if(u in n){if(c=h?h(n[u],u,e):n[u],a>0&&Kn(c))l=Oe(c),A=db(t,e,c,l,A,a-1)-1;else{if(A>=9007199254740991)throw fb("Exceed the acceptable array length");t[A]=c}A++}u++}return A},pb=db;Xt({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=lt(this),n=Oe(e),r=Wn(e,0);return r.length=pb(r,e,e,n,0,void 0===t?1:ke(t)),r}});var gb=Wr("Array").flat,mb=Array.prototype,yb=function(t){var e=t.flat;return t===mb||G(mb,t)&&e===mb.flat?gb:e},vb=function(){function t(e,n,r,i,a){Ji(this,t),Fa(this,"tableEditor",{info:{},tableCodes:[],editorDom:{}}),this.trigger=e,this.target=n,this.previewerDom=i,this.container=r,this.codeMirror=a,this.$initReg(),this.$findTableInEditor()}return ta(t,[{key:"emit",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};switch(t){case"keyup":return"click"===this.trigger&&this.$onInputChange(e);case"remove":return this.$remove();case"scroll":case"previewUpdate":return this.$refreshPosition();case"mouseup":return"click"===this.trigger&&this.$tryRemoveMe(e,n)}}},{key:"$tryRemoveMe",value:function(t,e){/textarea/i.test(t.target.tagName)||(this.$remove(),e())}},{key:"$getPosition",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tableEditor.info.tdNode,e=t.getBoundingClientRect(),n=this.previewerDom.parentNode.getBoundingClientRect();return{top:e.top-n.top,height:e.height,width:e.width,left:e.left-n.left,maxHeight:n.height}}},{key:"setStyle",value:function(t,e,n){t.getBoundingClientRect()[e]!==n&&(t.style[e]=n)}},{key:"$setInputOffset",value:function(){var t=this.$getPosition(),e=this.tableEditor.editorDom.inputDiv;this.setStyle(e,"width","".concat(t.width,"px")),this.setStyle(e,"height","".concat(t.height,"px")),this.setStyle(e,"top","".concat(t.top,"px")),this.setStyle(e,"left","".concat(t.left,"px"));var n=t.top>=0&&t.top+t.height<=t.maxHeight;this.setStyle(e,"display",n?"":"none")}},{key:"$setSymbolOffset",value:function(){var t,e=this,n=this.tableEditor.editorDom.symbolContainer,r=this.tableEditor.info,i=r.tableNode,a=r.trNode,o=r.isTHead,s=this.$getPosition(i),c=this.$getPosition(a),l=this.$getPosition(),A=this.previewerDom.getBoundingClientRect();this.setStyle(this.container,"width","".concat(s.width,"px")),this.setStyle(this.container,"height","".concat(s.height,"px")),this.setStyle(this.container,"top","".concat(s.top,"px")),this.setStyle(this.container,"left","".concat(s.left,"px"));ji(t=n.childNodes).call(t,(function(t){var n,r=t.dataset,i=r.index,a=r.type,u=r.dir,h=20,f=7;e.setStyle(t,{Row:["left","right"],Col:["top","bottom"]}[u][i],"-".concat(h,"px")),e.setStyle(t,"display","");var d={LastRow:function(){return e.setStyle(t,"top","".concat(c.top-s.top-f,"px"))},NextRow:function(){return e.setStyle(t,"top","".concat(c.top-s.top+c.height-f,"px"))},LastCol:function(){return e.setStyle(t,"left","".concat(l.left-s.left-f,"px"))},NextCol:function(){return e.setStyle(t,"left","".concat(l.left-s.left+l.width-f,"px"))}},p=Da(n="".concat(a)).call(n,u);d[p](),e.setStyle(t,"display",function(t){var e,n=t.getBoundingClientRect(),r={top:[A.top,A.top+A.height-n.height],left:[A.left,A.left+A.width-n.width]};return hb(e=ob(r)).call(e,(function(t){var e=Jl(t,2),r=e[0],i=Jl(e[1],2),a=i[0],o=i[1];return n[r]>=a&&n[r]<=o}))}(t)?"":"none"),o&&"LastRow"===p&&e.setStyle(t,"display","none")}))}},{key:"$refreshPosition",value:function(){"click"!==this.trigger?this.$setSymbolOffset():this.$setInputOffset()}},{key:"$remove",value:function(){this.tableEditor={info:{},tableCodes:[],editorDom:{}}}},{key:"$collectTableCode",value:function(){var t=[];this.codeMirror.getValue().replace(this.codeBlockReg,(function(t){return t.replace(/\|/g,".")})).replace(this.tableReg,(function(e){var n,r=e.replace(/^\n*/,""),i=((n=(arguments.length<=1?0:arguments.length-1)-2+1)<1||arguments.length<=n?void 0:arguments[n])+e.match(/^\n*/)[0].length;t.push({code:r,offset:i})})),this.tableEditor.tableCodes=t}},{key:"$collectTableDom",value:function(){var t,e,n,r=gl(this.previewerDom.querySelectorAll("table.cherry-table")),i=this.$getClosestNode(this.target,"TABLE");if(!1===i)return!1;var a=Xr(t=gl(this.target.parentElement.childNodes)).call(t,(function(t){return"td"===t.tagName.toLowerCase()})).length;this.tableEditor.info={tableNode:i,tdNode:this.target,trNode:this.target.parentElement,tdIndex:Zl(e=gl(this.target.parentElement.childNodes)).call(e,this.target),trIndex:Zl(n=gl(this.target.parentElement.parentElement.childNodes)).call(n,this.target.parentElement),isTHead:"TBODY"!==this.target.parentElement.parentElement.tagName,totalTables:r.length,tableIndex:Zl(r).call(r,i),tableText:i.textContent.replace(/[\s]/g,""),columns:a}}},{key:"$setSelection",value:function(t){var e,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"table",a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=this.tableEditor.tableCodes[t],s=this.codeMirror.getValue(),c=this.tableEditor.info,l=null!==(e=null===(n=eA(s).call(s,0,o.offset).match(/\n/g))||void 0===n?void 0:n.length)&&void 0!==e?e:0,A=this.$getTdOffset(o.code,c.isTHead,c.trIndex,c.tdIndex),u=A.preLine,h=A.preCh,f=A.plusCh,d=A.currentTd;if("table"===i){var p=l+o.code.match(/\n/g).length,g=o.code.match(/[^\n]+\n*$/)[0].length;this.tableEditor.info.selection=[{line:l,ch:0},{line:p,ch:g}]}else this.tableEditor.info.selection=[{line:l+u,ch:h},{line:l+u,ch:h+f}];a&&(r=this.codeMirror).setSelection.apply(r,sf(this.tableEditor.info.selection)),this.tableEditor.info.code=d}},{key:"$getTdOffset",value:function(t,e,n,r){for(var i=e?0:n+2,a=t.split(/\n/)[i].split(/\|/),o=/^\s*$/.test(a[0]),s=o?r+1:r,c=a[s],l=[],A=0;A<s;A++)l.push(a[A]);return{preLine:i,preCh:o?l.join("|").length+1:l.join("|").length,plusCh:c.length,currentTd:c}}},{key:"$findTableInEditor",value:function(){if(this.$collectTableDom(),this.$collectTableCode(),this.tableEditor.info.totalTables!==this.tableEditor.tableCodes.length)return!1;this.$setSelection(this.tableEditor.info.tableIndex,"td","click"===this.trigger)}},{key:"$initReg",value:function(){this.tableReg=this.tableReg?this.tableReg:GA(!0),this.codeBlockReg=this.codeBlockReg?this.codeBlockReg:jA().reg}},{key:"showBubble",value:function(){"click"!==this.trigger?this.$drawSymbol():this.$drawEditor()}},{key:"$isEditing",value:function(){return this.tableEditor.editing}},{key:"$drawEditor",value:function(){var t=document.createElement("div");t.className="cherry-previewer-table-content-hander__input";var e=document.createElement("textarea");t.appendChild(e),this.tableEditor.editorDom.inputDiv=t,this.tableEditor.editorDom.inputDom=e,this.$updateEditorPosition(),this.container.appendChild(this.tableEditor.editorDom.inputDiv),this.tableEditor.editorDom.inputDom.value=this.tableEditor.info.code.replace(/<br>/g,"\n"),this.tableEditor.editorDom.inputDom.focus()}},{key:"$onInputChange",value:function(t){"TEXTAREA"===t.target.tagName&&this.codeMirror.replaceSelection(t.target.value.replace(/\n/g,"<br>"),"around")}},{key:"$updateEditorPosition",value:function(){this.$setInputOffset();var t=getComputedStyle(this.tableEditor.info.tdNode);this.tableEditor.editorDom.inputDom.style.textAlign=t.textAlign||"left",this.tableEditor.editorDom.inputDom.style.fontSize=t.fontSize||"16px",this.tableEditor.editorDom.inputDom.style.fontFamily=t.fontFamily,this.tableEditor.editorDom.inputDom.style.lineHeight=t.lineHeight,this.tableEditor.editorDom.inputDom.style.padding=t.padding,/left/.test(t.textAlign)&&(this.tableEditor.editorDom.inputDom.style.paddingRight="0px"),/right/.test(t.textAlign)&&(this.tableEditor.editorDom.inputDom.style.paddingLeft="0px"),/center/.test(t.textAlign)&&(this.tableEditor.editorDom.inputDom.style.paddingLeft="0px",this.tableEditor.editorDom.inputDom.style.paddingRight="0px"),this.tableEditor.editorDom.inputDom.style.paddingBottom="0px"}},{key:"$getClosestNode",value:function(t,e){return t.tagName===e?t:"BODY"!==t.parentNode.tagName&&this.$getClosestNode(t.parentNode,e)}},{key:"$drawSymbol",value:function(){var t,e=this,n=["Last","Next"],r=["Row","Col"],i={Row:"行",Col:"列"},a=yb(t=yu(r).call(r,(function(t,e){return yu(n).call(n,(function(t){return yu(r).call(r,(function(n){return["".concat(e),t,n]}))}))}))).call(t,2),o=document.createElement("ul");o.className="cherry-previewer-table-hover-handler-container",ji(a).call(a,(function(t){var n=Jl(t,3),r=n[0],a=n[1],s=n[2],c=document.createElement("li");c.setAttribute("data-index",r),c.setAttribute("data-type",a),c.setAttribute("data-dir",s),c.className="cherry-previewer-table-hover-handler__symbol",c.title="添加".concat(i[s]),c.innerHTML="+",c.addEventListener("click",(function(t){var n,r=t.target;if(r instanceof HTMLElement){var i=r.dataset,a=i.type,o=i.dir;e[Da(n="$add".concat(a)).call(n,o)]()}})),o.appendChild(c)}),!0),this.tableEditor.editorDom.symbolContainer=o,this.container.appendChild(this.tableEditor.editorDom.symbolContainer),this.$setSymbolOffset()}},{key:"$addLastRow",value:function(){var t,e=Jl(this.tableEditor.info.selection,1)[0].line,n="".concat(zf(t="|").call(t,this.tableEditor.info.columns),"\n");this.codeMirror.replaceRange(n,{line:e,ch:0}),this.$findTableInEditor(),this.$setSelection(this.tableEditor.info.tableIndex,"td")}},{key:"$addNextRow",value:function(){var t,e=Jl(this.tableEditor.info.selection,2)[1].line,n="".concat(zf(t="|").call(t,this.tableEditor.info.columns),"\n");this.codeMirror.replaceRange(n,{line:e+1,ch:0}),this.$findTableInEditor(),this.$setSelection(this.tableEditor.info.tableIndex,"td")}},{key:"$addLastCol",value:function(){var t=this;this.$setSelection(this.tableEditor.info.tableIndex,"table");var e=this.codeMirror.getSelection().split("\n"),n=yu(e).call(e,(function(e,n){var r=e.split("|"),i=1===n?":-:":"";return Au(r).call(r,t.tableEditor.info.tdIndex+1,0,i),r.join("|")})).join("\n");this.codeMirror.replaceSelection(n),this.$findTableInEditor(),this.$setSelection(this.tableEditor.info.tableIndex,"table")}},{key:"$addNextCol",value:function(){var t=this;this.$setSelection(this.tableEditor.info.tableIndex,"table");var e=this.codeMirror.getSelection().split("\n"),n=yu(e).call(e,(function(e,n){var r=e.split("|"),i=1===n?":-:":"";return Au(r).call(r,t.tableEditor.info.tdIndex+2,0,i),r.join("|")})).join("\n");this.codeMirror.replaceSelection(n),this.$findTableInEditor(),this.$setSelection(this.tableEditor.info.tableIndex,"table")}}]),t}(),bb={open:function(){this.dom.style.display="block",this.postMessage("ready?")},close:function(){this.dom.style.display="none"},postMessage:function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";null===(e=this.iframeDom)||void 0===e||null===(n=e.contentWindow)||void 0===n||n.postMessage({eventName:t,value:r},"*")},draw:function(t,e,n){var r=this,i=t.iframeSrc,a=t.title;if(this.onSubmit=n,this.onReady=e,this.dom)return new RegExp("".concat(i,"$"),"i").test(this.iframeDom.src)||(this.iframeDom.src=i),void this.open();window.addEventListener("message",(function(t){if(t.data&&t.data.eventName)switch(t.data.eventName){case"getData:success":r.onSubmit(t.data.value),r.close();case"ready":r.onReady()}})),this.iframeDom=EA("iframe","cherry-dialog-iframe",{src:i,style:"border: none;"}),this.dom=EA("div","cherry-dialog",{style:["z-index:9999","display: block","position: absolute","top: 10%;left: 10%;bottom: 10%;right: 10%","background-color: #FFF","box-shadow: 0px 50px 100px -12px rgba(0,0,0,.05),0px 30px 60px -30px rgba(0,0,0,.1)","border-radius: 6px","border: 1px solid #ddd;"].join(";")}),this.head=EA("div","cherry-dialog--head",{style:["height: 30px","line-height: 30px","padding-left: 10px","padding-right: 10px"].join(";")}),this.body=EA("div","cherry-dialog--body",{style:["position: absolute","bottom: 30px","top: 30px","left: 0","right: 0","overflow: hidden"].join(";")}),this.foot=EA("div","cherry-dialog--foot",{style:["height: 30px","line-height: 30px","padding-left: 10px","padding-right: 10px","position: absolute","bottom: 0","left: 0","right: 0"].join(";")}),this.headTitle=EA("span","cherry-dialog--title",{style:"user-select:none;"}),this.headCloseButton=EA("i","cherry-dialog--close ch-icon ch-icon-close",{style:"float: right;font-size: 12px;cursor: pointer;"}),this.footSureButton=EA("button","cherry-dialog--sure",{style:["float: right","cursor: pointer","margin: 3px","background-color: #4d90fe","color: #FFF","border: 1px solid #4d90fe","border-radius: 2px","padding: 2px 15px","user-select:none"].join(";")}),this.headCloseButton.title="关闭",this.footSureButton.textContent="确定",this.headTitle.textContent=a,this.head.appendChild(this.headTitle),this.head.appendChild(this.headCloseButton),this.foot.appendChild(this.footSureButton),this.body.appendChild(this.iframeDom),this.dom.appendChild(this.head),this.dom.appendChild(this.body),this.dom.appendChild(this.foot),this.headCloseButton.addEventListener("click",(function(){r.close()})),this.footSureButton.addEventListener("click",(function(){r.postMessage("getData")})),document.body.appendChild(this.dom)}};function _b(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r={iframeSrc:t,title:"draw.io"};bb.draw(r,(function(){bb.postMessage("setData",e)}),(function(t){n(t)}))}function wb(t){function e(e){e.clipboardData.setData("text/html",t),e.clipboardData.setData("text/plain",t),e.preventDefault()}document.addEventListener("copy",e),document.execCommand("copy"),document.removeEventListener("copy",e)}var Eb=function(){return uo.Date.now()},Cb=/\s/;var xb=function(t){for(var e=t.length;e--&&Cb.test(t.charAt(e)););return e},Bb=/^\s+/;var Tb=function(t){return t?t.slice(0,xb(t)+1).replace(Bb,""):t},kb=/^[-+]0x[0-9a-f]+$/i,Sb=/^0b[01]+$/i,Ib=/^0o[0-7]+$/i,Lb=parseInt;var Fb=function(t){if("number"==typeof t)return t;if(Up(t))return NaN;if(Eo(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Eo(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Tb(t);var n=Sb.test(t);return n||Ib.test(t)?Lb(t.slice(2),n?2:8):kb.test(t)?NaN:+t},Nb=Math.max,Ob=Math.min;var Db=function(t,e,n){var r,i,a,o,s,c,l=0,A=!1,u=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function f(e){var n=r,a=i;return r=i=void 0,l=e,o=t.apply(a,n)}function d(t){return l=t,s=setTimeout(g,e),A?f(t):o}function p(t){var n=t-c;return void 0===c||n>=e||n<0||u&&t-l>=a}function g(){var t=Eb();if(p(t))return m(t);s=setTimeout(g,function(t){var n=e-(t-c);return u?Ob(n,a-(t-l)):n}(t))}function m(t){return s=void 0,h&&r?f(t):(r=i=void 0,o)}function y(){var t=Eb(),n=p(t);if(r=arguments,i=this,c=t,n){if(void 0===s)return d(c);if(u)return clearTimeout(s),s=setTimeout(g,e),f(c)}return void 0===s&&(s=setTimeout(g,e)),o}return e=Fb(e)||0,Eo(n)&&(A=!!n.leading,a=(u="maxWait"in n)?Nb(Fb(n.maxWait)||0,e):a,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=c=i=s=void 0},y.flush=function(){return void 0===s?o:m(Eb())},y},Mb=function(){function t(e){Ji(this,t),this.previewer=e,this.editor=e.editor,this.previewerDom=this.previewer.getDom(),this.enablePreviewerBubble=this.previewer.options.enablePreviewerBubble,this.bubble={},this.bubbleHandler={},this.init()}return ta(t,[{key:"init",value:function(){var t,e,n,r,i=this;this.previewerDom.addEventListener("click",Pa(t=this.$onClick).call(t,this)),this.previewerDom.addEventListener("mouseover",Pa(e=this.$onMouseOver).call(e,this)),this.previewerDom.addEventListener("mouseout",Pa(n=this.$onMouseOut).call(n,this)),document.addEventListener("mousedown",(function(t){var e;ji(e=ib(i.bubbleHandler)).call(e,(function(e){return e.emit("mousedown",t)}))})),document.addEventListener("mouseup",(function(t){var e;ji(e=ib(i.bubbleHandler)).call(e,(function(e){return e.emit("mouseup",t,(function(){return i.$removeAllPreviewerBubbles("click")}))}))})),document.addEventListener("mousemove",(function(t){var e;ji(e=ib(i.bubbleHandler)).call(e,(function(e){return e.emit("mousemove",t)}))})),document.addEventListener("keyup",(function(t){var e;ji(e=ib(i.bubbleHandler)).call(e,(function(e){return e.emit("keyup",t)}))})),this.previewerDom.addEventListener("scroll",(function(t){var e;ji(e=ib(i.bubbleHandler)).call(e,(function(e){return e.emit("scroll",t)}))}),!0),kA.on(this.previewer.instanceId,kA.Events.previewerClose,(function(){return i.$removeAllPreviewerBubbles()})),this.previewer.options.afterUpdateCallBack.push((function(){var t;ji(t=ib(i.bubbleHandler)).call(t,(function(t){return t.emit("previewUpdate",(function(){return i.$removeAllPreviewerBubbles()}))}))})),this.previewerDom.addEventListener("change",Pa(r=this.$onChange).call(r,this)),this.removeHoverBubble=Db((function(){return i.$removeAllPreviewerBubbles("hover")}),400)}},{key:"isCherryTable",value:function(t){var e=this.$getClosestNode(t,"DIV");return!1!==e&&!(/simple-table/.test(e.className)||!/cherry-table-container/.test(e.className))}},{key:"$onMouseOver",value:function(t){if(this.enablePreviewerBubble&&"hide"!==this.previewer.$cherry.getStatus().editor){var e=t.target;if(void 0!==e.tagName)switch(e.tagName){case"TD":case"TH":if(!this.isCherryTable(t.target))return;return this.removeHoverBubble.cancel(),this.$removeAllPreviewerBubbles("hover"),void this.$showTablePreviewerBubbles("hover",t.target)}}}},{key:"$onMouseOut",value:function(){this.enablePreviewerBubble&&("hide"!==this.previewer.$cherry.getStatus().editor&&this.removeHoverBubble())}},{key:"$dealCheckboxClick",value:function(t){var e=this,n=t.target,r=gl(this.previewerDom.querySelectorAll(".ch-icon-square, .ch-icon-check"));this.checkboxIdx=Zl(r).call(r,n);var i=this.getValueWithoutCode().split("\n"),a=0,o=-1,s=-1;ji(i).call(i,(function(t,n){var r=Xc(t).call(t);(kl(r).call(r,"- [ ]")||kl(r).call(r,"- [x]"))&&(a===e.checkboxIdx&&(o=n,s=Zl(t).call(t,"- [")+3),a+=1)})),-1!==o&&(this.editor.editor.setSelection({line:o,ch:s},{line:o,ch:s+1}),this.editor.editor.replaceSelection(" "===this.editor.editor.getSelection()?"x":" ","around"))}},{key:"$onClick",value:function(t){var e=this,n=t.target;this.$dealCopyCodeBlock(t);var r=this.previewer.$cherry.getStatus();if("hide"!==r.editor)if("IMG"!==n.tagName||"drawio"!==n.getAttribute("data-type")){if(this.enablePreviewerBubble&&("ch-icon ch-icon-square"!==n.className&&"ch-icon ch-icon-check"!==n.className||this.$dealCheckboxClick(t),this.$removeAllPreviewerBubbles(),void 0!==n.tagName))switch(n.tagName){case"IMG":this.$showImgPreviewerBubbles(n);break;case"TD":case"TH":if(!this.isCherryTable(t.target))return;this.$showTablePreviewerBubbles("click",t.target)}}else{if(!this.beginChangeDrawioImg(n))return;var i=decodeURI(n.getAttribute("data-xml"));_b(this.previewer.$cherry.options.drawioIframeUrl,i,(function(t){var n,r=t.xmlData,i=t.base64;e.editor.editor.replaceSelection(Da(n="(".concat(i,"){data-type=drawio data-xml=")).call(n,encodeURI(r),"}"),"around")}))}else"show"===r.previewer&&this.previewer.$cherry.options.callback.onClickPreview&&this.previewer.$cherry.options.callback.onClickPreview(t)}},{key:"$onChange",value:function(t){"cherry-code-preview-lang-select"===t.target.className&&this.$codePreviewLangSelectEventHandler(t)}},{key:"$getClosestNode",value:function(t,e){return t.tagName===e?t:"BODY"!==t.parentNode.tagName&&this.$getClosestNode(t.parentNode,e)}},{key:"$dealCopyCodeBlock",value:function(t){var e,n=t.target;if("cherry-copy-code-block"===n.className||"cherry-copy-code-block"===(null===(e=n.parentNode)||void 0===e?void 0:e.className)){var r="cherry-copy-code-block"===n.className?n.parentNode:n.parentNode.parentNode,i=r.innerText,a=this.previewer.$cherry.options.callback.onCopyCode(t,i);if(!1===a)return!1;var o=r.querySelector("i.ch-icon-copy");o&&(o.className=o.className.replace("copy","ok"),Wa((function(){o.className=o.className.replace("ok","copy")}),1500)),wb(a)}}},{key:"$removeAllPreviewerBubbles",value:function(){var t,e,n,r,i=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";ji(t=Xr(e=ob(this.bubble)).call(e,(function(t){var e=Jl(t,1)[0];return!a||a===e}))).call(t,(function(t){var e=Jl(t,2),n=e[0];e[1].remove(),delete i.bubble[n]})),ji(n=Xr(r=ob(this.bubbleHandler)).call(r,(function(t){var e=Jl(t,1)[0];return!a||a===e}))).call(n,(function(t){var e=Jl(t,2),n=e[0];e[1].emit("remove"),delete i.bubbleHandler[n]}))}},{key:"$showTablePreviewerBubbles",value:function(t,e){this.$createPreviewerBubbles(t,"click"===t?"table-content-hander":"table-hover-handler");var n=new vb(t,e,this.bubble[t],this.previewerDom,this.editor.editor);n.showBubble(),this.bubbleHandler[t]=n}},{key:"$showImgPreviewerBubbles",value:function(t){var e;this.$createPreviewerBubbles();var n=gl(this.previewerDom.querySelectorAll("img"));if(this.totalImgs=n.length,this.imgIndex=Zl(n).call(n,t),!this.beginChangeImgValue(t))return{emit:function(){}};sb.showBubble(t,this.bubble.click,this.previewerDom),sb.bindChange(Pa(e=this.changeImgValue).call(e,this)),this.bubbleHandler.click=sb}},{key:"getValueWithoutCode",value:function(){return this.editor.editor.getValue().replace(jA().reg,(function(t){return t.replace(/^.*$/gm,"/n")})).replace(/(`+)(.+?(?:\n.+?)*?)\1/g,(function(t){return t.replace(/[![\]()]/g,".")}))}},{key:"beginChangeDrawioImg",value:function(t){var e,n=gl(this.previewerDom.querySelectorAll('img[data-type="drawio"]')),r=n.length,i=Zl(n).call(n,t),a=this.getValueWithoutCode(),o=a.match(VA),s=o[i]?Xc(e=o[i].replace(/^!\[.*?\]\((.*?)\)/,"$1")).call(e):"";if(o.length===r||t.getAttribute("src")===s)for(var c=a.split(VA),l=0,A=0,u=0,h=0,f=0;f<c.length;f++){var d=c[f];if(d===o[h]){if(h===i)return u=A+d.length,A+=d.replace(/^(!\[[^\]]*])[^\n]*$/,"$1").length,this.editor.editor.setSelection({line:l,ch:A},{line:l,ch:u}),this.editor.dealBigData(),!0;h+=1}else{var p,g;l+=null!==(p=null===(g=d.match(/\n/g))||void 0===g?void 0:g.length)&&void 0!==p?p:0,/\n/.test(d)?A=d.replace(/^[\w\W]*\n([^\n]*)$/,"$1").length:A+=d.length}}return!1}},{key:"beginChangeImgValue",value:function(t){var e,n=this.getValueWithoutCode(),r=t.getAttribute("src"),i=/(!\[[^\n]*?\]\([^)]+\))/g,a=n.match(i),o=a[this.imgIndex]?Xc(e=a[this.imgIndex].replace(/^!\[.*?\]\((.*?)\)/,"$1")).call(e):"";if(a.length===this.totalImgs||r===o)for(var s=n.split(i),c=/^!\[.*?((?:#center|#right|#left|#float-right|#float-left|#border|#B|#shadow|#S|#radius|#R)+).*?\].*$/,l=0,A=0,u=0,h=0,f=0;f<s.length;f++){var d,p,g=s[f];if(g===a[h]){if(h===this.imgIndex)return this.imgAppend=!!c.test(g)&&g.replace(c,"$1"),u=(A+=g.replace(/^(!\[[^#\]]*).*$/,"$1").length)+g.replace(/^(!\[[^#\]]*)([^\]]*?)\].*$/,"$2").length,this.editor.editor.setSelection({line:l,ch:A},{line:l,ch:u}),!0;h+=1}l+=null!==(d=null===(p=g.match(/\n/g))||void 0===p?void 0:p.length)&&void 0!==d?d:0,/\n/.test(g)?A=g.replace(/^[\w\W]*\n([^\n]*)$/,"$1").length:A+=g.length}return!1}},{key:"changeImgValue",value:function(t,e){var n,r,i=this.imgAppend?" ".concat(this.imgAppend):"";this.editor.editor.replaceSelection(Da(n=Da(r="#".concat(Math.round(e.width),"px #")).call(r,Math.round(e.height),"px")).call(n,i),"around")}},{key:"$createPreviewerBubbles",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"click",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"img-size-hander";this.bubble[t]||(this.bubble[t]=document.createElement("div"),this.bubble[t].className="cherry-previewer-".concat(e),this.previewerDom.after(this.bubble[t]),"hover"===t&&(this.bubble[t].addEventListener("mouseover",this.removeHoverBubble.cancel),this.bubble[t].addEventListener("mouseout",this.removeHoverBubble)))}},{key:"$showBorderBubbles",value:function(){}},{key:"$showBtnBubbles",value:function(){}},{key:"$codePreviewLangSelectEventHandler",value:function(t){for(var e=gl(this.previewerDom.querySelectorAll(".".concat("cherry-code-preview-lang-select"))),n=Zl(e).call(e,t.target),r=this.editor.editor.getValue().split("\n"),i=-1,a=-1,o=0,s=0;s<r.length&&!(a>=n);){var c=s+1;if(/^`{3,}[\s\S]*$/.test(r[s]))for(var l,A,u=null!==(l=null===(A=r[s].match(/^(`*)/g))||void 0===A?void 0:A[0].length)&&void 0!==l?l:0;c<r.length;){var h,f,d=!1,p=null!==(h=null===(f=r[c].match(/^(`*)/g))||void 0===f?void 0:f[0].length)&&void 0!==h?h:0;if(/^`{3,}$/.test(r[c])&&p===u&&(d=!0,(a+=1)===n&&(i=s,o=u)),c+=1,d)break}s=c}o&&(this.editor.editor.setSelection({line:i,ch:o},{line:i,ch:r[i].length}),this.editor.editor.replaceSelection(t.target.value||""))}}]),t}(),Rb=P.setInterval,Ub=function(){function t(e,n){Ji(this,t),Fa(this,"options",{loadingImgPath:"",maxNumPerTime:2,noLoadImgNum:5,autoLoadImgNum:5,maxTryTimesPerSrc:2,beforeLoadOneImgCallback:function(t){},failLoadOneImgCallback:function(t){},afterLoadOneImgCallback:function(t){},afterLoadAllImgCallback:function(){}}),Pc(this.options,e),this.previewer=n,this.srcLoadedList=[],this.srcFailLoadedList={},this.srcLoadingList=[],this.srcList=[],this.loadingImgNum=0,this.lastLoadAllNum=0,this.previewerDom=this.previewer.getDomContainer()}return ta(t,[{key:"isLoaded",value:function(t){var e;return Mp(e=this.srcLoadedList).call(e,t)}},{key:"isLoading",value:function(t){var e;return Mp(e=this.srcLoadingList).call(e,t)}},{key:"loadFailed",value:function(t){this.srcFailLoadedList[t]=this.srcFailLoadedList[t]?this.srcFailLoadedList[t]+1:1}},{key:"isFailLoadedMax",value:function(t){return this.srcFailLoadedList[t]&&this.srcFailLoadedList[t]>this.options.maxTryTimesPerSrc}},{key:"isLoadedAllDone",value:function(){var t=this.previewerDom.querySelectorAll("img[data-src]"),e=this.srcLoadedList.length;return t.length<=0&&this.lastLoadAllNum<e&&(this.lastLoadAllNum=e,this.options.afterLoadAllImgCallback(),!0)}},{key:"loadOneImg",value:function(){for(var t,e,n=this,r=this.previewerDom.querySelectorAll("img[data-src]"),i=this.previewerDom.getBoundingClientRect(),a=i.height,o=i.top,s=a+o+100,c=null!==(t=null===(e=window)||void 0===e?void 0:e.innerHeight)&&void 0!==t?t:100,l=Math.min(s,c),A=o-30,u=this.options.autoLoadImgNum,h=function(t){var e=r[t],i=e.getBoundingClientRect(),a=i.top>=A&&i.top<=l,o=n.srcList.length<u;if(!a&&!o)return"continue";var s=e.getAttribute("data-src");if(!s)return"continue";if((n.isLoaded(s)||n.isFailLoadedMax(s))&&(e.setAttribute("src",s),e.removeAttribute("data-src")),n.isLoading(s))return"continue";if(n.loadingImgNum>=n.options.maxNumPerTime)return{v:!1};var c,h=n.options.beforeLoadOneImgCallback(e);if(void 0!==h&&!h)return n.loadFailed(s),"continue";s=null!==(c=e.getAttribute("data-src"))&&void 0!==c?c:s,n.loadingImgNum+=1,n.srcList.push(s),n.srcLoadingList.push(s),n.tryLoadOneImg(s,(function(){var t,r;e.setAttribute("src",s),e.removeAttribute("data-src"),n.srcLoadedList.push(s),n.loadingImgNum-=1,Au(t=n.srcLoadingList).call(t,Zl(r=n.srcLoadingList).call(r,s),1),n.options.afterLoadOneImgCallback(e),n.loadOneImg()}),(function(){var t,r;n.loadFailed(s),n.loadingImgNum-=1,Au(t=n.srcLoadingList).call(t,Zl(r=n.srcLoadingList).call(r,s),1),n.options.failLoadOneImgCallback(e),n.loadOneImg()}))},f=0;f<r.length;f++){var d=h(f);if("continue"!==d&&"object"===Ba(d))return d.v}return!1}},{key:"tryLoadOneImg",value:function(t,e,n){var r=document.createElement("img");r.onload=function(){e(),r.remove()},r.onerror=function(){n(),r.remove()},r.setAttribute("src",t)}},{key:"doLazyLoad",value:function(){var t=this;if(!this.isRunning){this.isRunning=!0;var e=this.options.maxNumPerTime;!function n(){t.loadOneImg();for(var r=1;r<e;r++)t.loadOneImg();Wa(n,200)}(),Rb((function(){t.isLoadedAllDone()}),1e3)}}},{key:"changeDataSrc2Src",value:function(t){var e=this;return t.replace(/<img ([^>]*?)data-src="([^"]+)"([^>]*?)>/g,(function(t,n,r,i){var a,o;return Da(a=Da(o="<img ".concat(e.$removeSrc(n),' src="')).call(o,r,'" ')).call(a,e.$removeSrc(i),">").replace(/ {2,}/g," ")}))}},{key:"changeLoadedDataSrc2Src",value:function(t){var e=this;return t.replace(/<img ([^>]*?)data-src="([^"]+)"([^>]*?)>/g,(function(t,n,r,i){var a,o;return e.isLoaded(r)?Da(a=Da(o="<img ".concat(e.$removeSrc(n),' src="')).call(o,r,'" ')).call(a,e.$removeSrc(i),">").replace(/ {2,}/g," "):t}))}},{key:"$removeSrc",value:function(t){return" ".concat(t).replace(/^(.*?) src=".*?"(.*?$)/,"$1$2")}},{key:"changeSrc2DataSrc",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.options.loadingImgPath,i=this.options.noLoadImgNum,a=0;return t.replace(/<img ([^>]*?)src="([^"]+)"([^>]*?)>/g,(function(t,o,s,c){var l,A,u,h,f;if(/data-src="/.test(t)||!/ src="/.test(t)||i<0)return t;if(!1===n){if(a<i)return a+=1,t;if(e.isLoaded(s))return t}return r?Da(u=Da(h=Da(f="<img ".concat(o,'src="')).call(f,r,'" data-src="')).call(h,s,'"')).call(u,c,">"):Da(l=Da(A="<img ".concat(o,'data-src="')).call(A,s,'"')).call(l,c,">")}))}}]),t}(),Pb=function(){},Hb=function t(e){var n,r;if(e.nodeType===Node.TEXT_NODE&&""!==Xc(n=e.textContent).call(n))return Xc(r=e.textContent).call(r);for(var i=0;i<e.childNodes.length;i++){var a=t(e.childNodes[i]);if(a)return a}return null},Qb=function(){function t(e){Ji(this,t),Fa(this,"applyingDomChanges",!1),Fa(this,"syncScrollLockTimer",0),Fa(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(t){},failLoadOneImgCallback:function(t){},afterLoadOneImgCallback:function(t){},afterLoadAllImgCallback:function(){}}},Pc(this.options,e),this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.getInstanceId(),this.animation={}}return ta(t,[{key:"init",value:function(t){this.disableScrollListener=!1,this.bindScroll(),this.editor=t,this.bindDrag(),this.$initPreviewerBubble(),this.lazyLoadImg=new Ub(this.options.lazyLoadImg,this),this.lazyLoadImg.doLazyLoad(),this.onMouseDown()}},{key:"$initPreviewerBubble",value:function(){this.previewerBubble=new Mb(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 t,e,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 i=this.$cherry.wrapperDom.getAttribute("data-inline-code-theme"),a=this.$cherry.wrapperDom.getAttribute("data-code-block-theme");return Da(t=Da(e='<div data-inline-code-theme="'.concat(i,'" data-code-block-theme="')).call(e,a,'">')).call(t,r,"</div>")}},{key:"isPreviewerHidden",value:function(){return this.options.previewerDom.classList.contains("cherry-previewer--hidden")}},{key:"calculateRealLayout",value:function(t){var e=+(t/(this.editor.options.editorDom.getBoundingClientRect().width+this.options.previewerDom.getBoundingClientRect().width)).toFixed(3);e<this.options.minBlockPercentage?e=+this.options.minBlockPercentage.toFixed(3):e>1-this.options.minBlockPercentage&&(e=+(1-this.options.minBlockPercentage).toFixed(3));var n=+(1-e).toFixed(3);return{editorPercentage:"".concat(100*e,"%"),previewerPercentage:"".concat(100*n,"%")}}},{key:"setRealLayout",value:function(t,e){var n=t,r=e;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 t=this.editor.options.editorDom.getBoundingClientRect(),e=this.options.previewerDom.getBoundingClientRect(),n=t.height,r=this.editor.options.editorDom.offsetTop,i=t.left,a=t.width,o=e.left?e.left-i:0,s=e.width||0,c=this.options,l=c.editorMaskDom,A=c.previewerMaskDom,u=c.virtualDragLineDom;u.style.top="".concat(r,"px"),u.style.left="".concat(o,"px"),u.style.bottom="0px",l.style.height="".concat(n,"px"),l.style.top="".concat(r,"px"),l.style.left="0px",l.style.width="".concat(a,"px"),A.style.height="".concat(n,"px"),A.style.top="".concat(r,"px"),A.style.left="".concat(o,"px"),A.style.width="".concat(s,"px")}},{key:"calculateVirtualLayout",value:function(t,e){var n=this.editor.options.editorDom.getBoundingClientRect().width+this.options.previewerDom.getBoundingClientRect().width,r=t.toFixed(0),i=e-t;i<n*this.options.minBlockPercentage?i=+(n*this.options.minBlockPercentage).toFixed(0):i>n*(1-this.options.minBlockPercentage)&&(i=+(n*(1-this.options.minBlockPercentage)).toFixed(0));var a=n-i;return{startWidth:lA(r,10),leftWidth:i,rightWidth:a}}},{key:"setVirtualLayout",value:function(t,e,n){var r=this.options,i=r.editorMaskDom,a=r.previewerMaskDom,o=r.virtualDragLineDom;i.style.left="".concat(0,"px"),i.style.width="".concat(e,"px"),o.style.left="".concat(0+e,"px"),a.style.left="".concat(0+e,"px"),a.style.width="".concat(n,"px")}},{key:"bindDrag",value:function(){var t,e=this,n=function(t){t&&t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,t.preventDefault?t.preventDefault():window.event.returnValue=!1;var n=e.editor.options.editorDom.getBoundingClientRect().left,r=t.clientX,i=e.calculateVirtualLayout(n,r);return e.setVirtualLayout(i.startWidth,i.leftWidth,i.rightWidth),!1},r=function t(r){r&&r.stopPropagation?r.stopPropagation():r.cancelBubble=!0,r.preventDefault?r.preventDefault():window.event.returnValue=!1;var i=e.editor.options.editorDom.getBoundingClientRect().left,a=r.clientX,o=e.calculateRealLayout(a-i);return e.setRealLayout(o.editorPercentage,o.previewerPercentage),e.editor.options.editorDom.classList.remove("no-select"),e.options.previewerDom.classList.remove("no-select"),e.options.editorMaskDom.classList.remove("cherry-editor-mask--show"),e.options.previewerMaskDom.classList.remove("cherry-previewer-mask--show"),e.options.virtualDragLineDom.classList.remove("cherry-drag--show"),e.editor.editor.refresh(),BA(document,"mousemove",n,!1),BA(document,"mouseup",t,!1),!1};xA(this.options.virtualDragLineDom,"mousedown",(function(t){t&&t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,t.preventDefault?t.preventDefault():window.event.returnValue=!1,e.syncVirtualLayoutFromReal();var i=e.editor.options.editorDom.getBoundingClientRect().left,a=t.clientX,o=e.calculateVirtualLayout(i,a);return e.setVirtualLayout(o.startWidth,o.leftWidth,o.rightWidth),e.options.virtualDragLineDom.classList.contains("cherry-drag--show")||(e.options.virtualDragLineDom.classList.add("cherry-drag--show"),e.options.editorMaskDom.classList.add("cherry-editor-mask--show"),e.options.previewerMaskDom.classList.add("cherry-previewer-mask--show"),e.options.previewerDom.classList.add("no-select"),e.editor.options.editorDom.classList.add("no-select"),xA(document,"mousemove",n,!1),xA(document,"mouseup",r,!1)),!1}),!1),xA(window,"resize",Pa(t=this.syncVirtualLayoutFromReal).call(t,this),!1),this.setRealLayout()}},{key:"bindScroll",value:function(){var t=this,e=this.getDomContainer();Pb=function(){if(t.applyingDomChanges)TA.log(new Date,"sync scroll locked");else if(t.disableScrollListener)t.disableScrollListener=!1;else if(e.scrollTop<=0)t.editor.scrollToLineNum(0,0,1);else if(e.scrollTop+e.offsetHeight+10>e.scrollHeight)t.editor.scrollToLineNum(null);else{for(var n,r=e.getBoundingClientRect(),i={x:r.left+r.width/2,y:r.top+1},a=function(t,e){if("function"==typeof document.elementsFromPoint)return document.elementsFromPoint(t,e);if("function"==typeof document.msElementsFromPoint){var n=document.msElementsFromPoint(t,e);return null!==n?gl(n):n}var r,i=[],a=[];do{var o=document.elementFromPoint(t,e);r!==o?(r=o,i.push(r),a.push(r.style.pointerEvents),r.style.pointerEvents="none"):r=null}while(r);return ji(i).call(i,(function(t,e){t.style.pointerEvents=a[e]})),i}(i.x,i.y),o=0;o<a.length;o++)if(e.contains(a[o])){n=a[o];break}if(n&&n!==e){for(var s=n.closest("[data-sign]");s&&s.parentElement&&s.parentElement!==e;)s=s.parentElement.closest("[data-sign]");if(s){for(var c=0,l=s;l;)c+=+l.getAttribute("data-lines"),l=l.previousElementSibling;var A=getComputedStyle(s),u=vA(A.marginTop),h=vA(A.marginBottom),f=s.getBoundingClientRect(),d=f.height+u+h,p=f.y-u-r.y,g=+s.getAttribute("data-lines"),m=100*Math.abs(p)/d/100;return t.editor.scrollToLineNum(c-g,g,m)}}}},xA(e,"scroll",Pb,!1),xA(e,"wheel",(function(){t.disableScrollListener=!1,cancelAnimationFrame(t.animation.timer),t.animation.timer=0}),!1)}},{key:"removeScroll",value:function(){BA(this.getDomContainer(),"scroll",Pb,!1)}},{key:"$html2H",value:function(t){if(void 0===t)return Dg("span",{},[]);if(!t.tagName)return t.textContent;var e=t.tagName,n="true"===t.getAttribute("data-cm-atomic"),r=this.$getAttrsForH(t.attributes),i=[];if(!n&&t.childNodes&&t.childNodes.length>0)for(var a=0;a<t.childNodes.length;a++)i.push(this.$html2H(t.childNodes[a]));return Dg(e,r,i)}},{key:"$getAttrsForH",value:function(t){if(!t)return{};for(var e={dataset:{}},n=0;n<t.length;n++){var r,i=t[n].name,a=t[n].value;if(/^(width|height)$/i.test(i)&&isNaN(a))e.style=e.style?e.style:[],e.style.push(Da(r="".concat(i,":")).call(r,a));else/^(class|id|href|rel|target|src|title|controls|align|width|height|style|open)$/i.test(i)?"style"===(i="class"===i?"className":i)?(e.style=e.style?e.style:[],e.style.push(a)):e[i]="open"===i||a:("colspan"===i?i="colSpan":"rowspan"===i&&(i="rowSpan"),/^data-/i.test(i)?i=i.replace(/^data-/i,""):e[i]=a,e.dataset[i]=a)}return e.style&&(e.style={cssText:e.style.join(";")}),e}},{key:"$updateDom",value:function(t,e){var n=Xg(this.$html2H(e),this.$html2H(t));return pm(e,n)}},{key:"$testChild",value:function(t){return!t.parentNode||(!!t.parentNode.classList.contains("cherry-previewer")||!t.parentNode.getAttribute("data-sign")&&this.$testChild(t.parentNode))}},{key:"_testMaxIndex",value:function(t,e){if(!e)return!1;for(var n=0;n<e.length;n++)if(t<=e[n])return!0;return!1}},{key:"$getSignData",value:function(t){for(var e=t.querySelectorAll("[data-sign]"),n={list:[],signs:{}},r=0;r<e.length;r++)if(this.$testChild(e[r])){var i=e[r].getAttribute("data-sign");n.list.push({sign:i,dom:e[r]}),n.signs[i]||(n.signs[i]=[]),n.signs[i].push(r)}return n}},{key:"_hasNewSign",value:function(t,e,n){var r;return t.length>0&&(ji(t).call(t,(function(t,i){var a;eA(a=t.sign).call(a,0,12)===eA(e).call(e,0,12)&&i>n&&(r={index:i>n?i:n,sign:e})})),r)}},{key:"$dealWithMyersDiffResult",value:function(t,e,n,r){var i=this;ji(t).call(t,(function(t){switch(n[t.newIndex].dom&&(n[t.newIndex].dom.innerHTML=i.lazyLoadImg.changeLoadedDataSrc2Src(n[t.newIndex].dom.innerHTML)),t.type){case"delete":r.removeChild(e[t.oldIndex].dom);break;case"insert":e[t.oldIndex]?r.insertBefore(n[t.newIndex].dom,e[t.oldIndex].dom):r.appendChild(n[t.newIndex].dom);break;case"update":try{if(n[t.newIndex].dom.querySelector("svg"))throw new Error;i.$updateDom(n[t.newIndex].dom,e[t.oldIndex].dom)}catch(i){r.insertBefore(n[t.newIndex].dom,e[t.oldIndex].dom),r.removeChild(e[t.oldIndex].dom)}}}))}},{key:"$dealUpdate",value:function(t,e,n){if(n.list!==e.list)if(n.list.length&&e.list.length){var r=new gm(n.list,e.list,(function(t,e){return t[e].sign})).doDiff();TA.log(r),this.$dealWithMyersDiffResult(r,e.list,n.list,t)}else if(n.list.length&&!e.list.length){var i;TA.log("add all"),ji(i=n.list).call(i,(function(e){t.appendChild(e.dom)}))}else if(!n.list.length&&e.list.length){var a;TA.log("delete all"),ji(a=e.list).call(a,(function(e){t.removeChild(e.dom)}))}}},{key:"refresh",value:function(t){this.getDomContainer().innerHTML=t}},{key:"update",value:function(t){var e=this,n=this.lazyLoadImg.changeSrc2DataSrc(t);if(this.isPreviewerHidden())this.doHtmlCache(n);else{window.clearTimeout(this.syncScrollLockTimer),this.applyingDomChanges=!0;var r=document.createElement("div"),i=this.getDomContainer();r.innerHTML=n;var a=this.$getSignData(r),o=this.$getSignData(i);try{this.$dealUpdate(i,o,a),this.afterUpdate()}finally{this.syncScrollLockTimer=Wa((function(){e.applyingDomChanges=!1}),50)}}}},{key:"$dealEditAndPreviewOnly",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n={editorPercentage:"0%",previewerPercentage:"100%"};e&&(n={editorPercentage:"100%",previewerPercentage:"0%"});var r=this.editor.options.editorDom.getBoundingClientRect().width,i=this.calculateRealLayout(r);this.options.previewerCache.layout=i,this.setRealLayout(n.editorPercentage,n.previewerPercentage),this.options.virtualDragLineDom.classList.add("cherry-drag--hidden");var a=this.options.previewerDom,o=this.editor.options.editorDom;e?(a.classList.add("cherry-previewer--hidden"),o.classList.add("cherry-editor--full"),a.classList.remove("cherry-preview--full"),o.classList.remove("cherry-editor--hidden")):(a.classList.add("cherry-preview--full"),o.classList.add("cherry-editor--hidden"),a.classList.remove("cherry-previewer--hidden"),o.classList.remove("cherry-editor--full")),Wa((function(){return t.editor.editor.refresh()}),0)}},{key:"previewOnly",value:function(){this.$dealEditAndPreviewOnly(!1),this.options.previewerCache.htmlChanged&&this.update(this.options.previewerCache.html),this.cleanHtmlCache(),kA.emit(this.instanceId,kA.Events.previewerOpen),kA.emit(this.instanceId,kA.Events.editorClose)}},{key:"editOnly",value:function(){this.$dealEditAndPreviewOnly(!0),this.cleanHtmlCache(),kA.emit(this.instanceId,kA.Events.previewerClose),kA.emit(this.instanceId,kA.Events.editorOpen)}},{key:"recoverPreviewer",value:function(){var t=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 e=this.options.previewerCache.layout;this.setRealLayout(e.editorPercentage,e.previewerPercentage)}this.options.previewerCache.htmlChanged&&this.update(this.options.previewerCache.html),this.cleanHtmlCache(),kA.emit(this.instanceId,kA.Events.previewerOpen),kA.emit(this.instanceId,kA.Events.editorOpen),Wa((function(){return t.editor.editor.refresh()}),0)}},{key:"doHtmlCache",value:function(t){this.options.previewerCache.html=t,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 t;yu(t=this.options.afterUpdateCallBack).call(t,(function(t){return t()})),void 0===this.highlightLineNum&&(this.highlightLineNum=0),this.highlightLine(this.highlightLineNum)}},{key:"registerAfterUpdate",value:function(t){if(_u(t)){var e;this.options.afterUpdateCallBack=Da(e=this.options.afterUpdateCallBack).call(e,t)}else{if(!t)throw new Error("[markdown error]: Previewer registerAfterUpdate params are undefined");this.options.afterUpdateCallBack.push(t)}}},{key:"$getTopByLineNum",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.getDomContainer();if(null===t)return n.scrollHeight;for(var r="number"==typeof t?t:lA(t,10),i=n.querySelectorAll("[data-sign]"),a=0,o=n.offsetTop,s=0;s<i.length;s++)if(i[s].parentNode===n){var c=lA(i[s].getAttribute("data-lines"),10);if(!(a+c<r)){var l=_A(i[s]),A=l.height,u=l.offsetTop,h=u-o,f=h+A*e;if(c>1){var d=c-Math.abs(r-(a+c))-1,p=d/c*A,g=A/c;f=h+p+g*e}return f}a+=c}return n.scrollHeight}},{key:"highlightLine",value:function(t){var e,n,r,i,a,o=this.getDomContainer();if(ji(e=o.querySelectorAll(".cherry-highlight-line")).call(e,(function(t){t.classList.remove("cherry-highlight-line")})),"show"===(null===(n=this.$cherry)||void 0===n||null===(r=n.status)||void 0===r?void 0:r.previewer)&&"show"===(null===(i=this.$cherry)||void 0===i||null===(a=i.status)||void 0===a?void 0:a.editor))for(var s=o.querySelectorAll("[data-sign]"),c=0,l=0;l<s.length;l++)if(s[l].parentNode===o){var A=lA(s[l].getAttribute("data-lines"),10);if(!(c+A<t))return this.highlightLineNum=t,void s[l].classList.add("cherry-highlight-line");c+=A}}},{key:"scrollToLineNumWithOffset",value:function(t,e){var n=this.$getTopByLineNum(t)-e;this.$scrollAnimation(n),this.highlightLine(t)}},{key:"$scrollAnimation",value:function(t){var e=this;if(this.animation.destinationTop=t,!this.animation.timer){this.animation.timer=requestAnimationFrame((function t(){var n=e.getDomContainer(),r=n.scrollTop,i=e.animation.destinationTop-r,a=Math.ceil(Math.min(Math.abs(i),Math.max(1,Math.abs(i)/(100/16.7))));if(0===i||r>=n.scrollHeight||a>Math.abs(i))return cancelAnimationFrame(e.animation.timer),void(e.animation.timer=0);e.disableScrollListener=!0,e.getDomContainer().scrollTo(null,r+i/Math.abs(i)*a),e.animation.timer=requestAnimationFrame(t)}))}}},{key:"scrollToLineNum",value:function(t,e){var n=this.$getTopByLineNum(t,e);this.$scrollAnimation(n)}},{key:"onMouseDown",value:function(){var t=this;xA(this.getDomContainer(),"mousedown",(function(){Wa((function(){kA.emit(t.instanceId,kA.Events.cleanAllSubMenus)}))}))}},{key:"export",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pdf",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!n){var r=new DOMParser,i=r.parseFromString(this.getValue(),"text/html"),a=Hb(i);t=a||"cherry"}"pdf"===e?Wv(this.getDomContainer(),t):"screenShot"===e?Vv(this.getDomContainer(),t):"markdown"===e?qv(this.$cherry.getMarkdown(),t):"html"===e&&Xv(this.getValue(),t)}}]),t}(),Gb=navigator.userAgent,jb=navigator.platform,$b=(/gecko\/\d/i.test(Gb),/MSIE \d/.test(Gb)),Kb=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Gb),Yb=/Edge\/(\d+)/.exec(Gb),zb=(($b||Kb||Yb)&&($b?document.documentMode:(Yb||Kb)[1]),!Yb&&/WebKit\//.test(Gb)),Wb=(zb&&/Qt\/\d+\.\d+/.test(Gb),!Yb&&/Chrome\//.test(Gb),/Opera\//.test(Gb)),Vb=(/Apple Computer/.test(navigator.vendor),/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Gb),/PhantomJS/.test(Gb),!Yb&&/AppleWebKit/.test(Gb)&&/Mobile\/\w+/.test(Gb)),qb=/Android/.test(Gb),Xb=(Vb||qb||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Gb),Vb||/Mac/.test(jb)),Jb=(/\bCrOS\b/.test(Gb),/win/i.test(jb),Wb&&Gb.match(/Version\/(\d*\.\d*)/));function Zb(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"absolute",n=t.getBoundingClientRect();if("fixed"===e)return n;if("sidebar"===e){var r=t_.getTargetParentByButton(t);return{left:r.offsetLeft-130+n.width,top:t.offsetTop+n.height/2,width:n.width,height:n.height}}return{left:t.offsetLeft,top:t.offsetTop,width:n.width,height:n.height}}Jb&&(Jb=Number(Jb[1])),Jb&&Jb>=15&&(Wb=!1,zb=!0);var t_=function(){function t(e){Ji(this,t),Fa(this,"_onClick",void 0),this.$cherry=e,this.bubbleMenu=!1,this.subMenu=null,this.name="",this.editor=e.editor,this.locale=e.locale,this.dom=null,this.updateMarkdown=!0,this.subMenuConfig=[],this.noIcon=!1,this.cacheOnce=!1,this.positionModel="absolute","function"==typeof this._onClick&&(TA.warn("`MenuBase._onClick` is deprecated. Override `fire` instead"),this.fire=this._onClick)}return ta(t,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"setName",value:function(t,e){this.name=t,this.iconName=e}},{key:"setCacheOnce",value:function(t){this.cacheOnce=t}},{key:"getAndCleanCacheOnce",value:function(){this.updateMarkdown=!0;var t=this.cacheOnce;return this.cacheOnce=!1,t}},{key:"hasCacheOnce",value:function(){return!1!==this.cacheOnce}},{key:"createBtn",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=t?"cherry-dropdown-item":"cherry-toolbar-button cherry-toolbar-".concat(this.iconName?this.iconName:this.name),n=EA("span",e,{title:this.locale[this.name]||qu(this.name)});if(this.iconName&&!this.noIcon){var r=EA("i","ch-icon ch-icon-".concat(this.iconName));n.appendChild(r)}return(t||this.noIcon)&&(n.innerHTML+=this.locale[this.name]||qu(this.name)),t||this.dom||(this.dom=n),n}},{key:"createSubBtnByConfig",value:function(t){var e=t.name,n=t.iconName,r=t.onclick,i=EA("span","cherry-dropdown-item",{title:this.locale[e]||qu(e)});if(n){var a=EA("i","ch-icon ch-icon-".concat(n));i.appendChild(a)}return i.innerHTML+=this.locale[e]||qu(e),i.addEventListener("click",r,!1),i}},{key:"fire",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(null==t||t.stopPropagation(),"function"==typeof this.onClick){var r=this.editor.editor.getSelections();this.isSelections=r.length>1;var i=yu(r).call(r,(function(r,i,a){return e.onClick(r,n,t)||a[i]}));!this.bubbleMenu&&this.updateMarkdown&&(this.editor.editor.replaceSelections(i,"around"),this.editor.editor.focus(),this.$afterClick())}}},{key:"$getSelectionRange",value:function(){var t=this.editor.editor.listSelections()[0],e=t.anchor,n=t.head;return e.line===n.line&&e.ch>n.ch||e.line>n.line?{begin:n,end:e}:{begin:e,end:n}}},{key:"registerAfterClickCb",value:function(t){this.afterClickCb=t}},{key:"$afterClick",value:function(){"function"!=typeof this.afterClickCb||this.isSelections||(this.afterClickCb(),this.afterClickCb=null)}},{key:"setLessSelection",value:function(t,e){var n,r,i,a,o=this.editor.editor,s=this.$getSelectionRange(),c=s.begin,l=s.end,A={line:(null===(n=t.match(/\n/g))||void 0===n?void 0:n.length)>0?c.line+t.match(/\n/g).length:c.line,ch:(null===(r=t.match(/\n/g))||void 0===r?void 0:r.length)>0?t.replace(/^[\s\S]*?\n([^\n]*)$/,"$1").length:c.ch+t.length},u=(null===(i=e.match(/\n/g))||void 0===i?void 0:i.length)>0?l.line-e.match(/\n/g).length:l.line,h={line:u,ch:(null===(a=e.match(/\n/g))||void 0===a?void 0:a.length)>0?o.getLine(u).length:l.ch-e.length};o.setSelection(A,h)}},{key:"getMoreSelection",value:function(t,e,n){var r=this.editor.editor,i=this.$getSelectionRange(),a=i.begin,o=i.end,s=/\n/.test(t)?0:a.ch-t.length;s=s<0?0:s;var c,l=/\n/.test(t)?a.line-t.match(/\n/g).length:a.line,A={line:l=l<0?0:l,ch:s},u=o.line,h=o.ch;/\n/.test(e)?(u=o.line+e.match(/\n/g).length,h=null===(c=r.getLine(u))||void 0===c?void 0:c.length):h=r.getLine(o.line).length<o.ch+e.length?r.getLine(o.line).length:o.ch+e.length;var f={line:u,ch:h};r.setSelection(A,f),!1===n()&&r.setSelection(a,o)}},{key:"getSelection",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"word",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.editor.editor;if(this.isSelections)return t;if(t&&!n)return t;if("line"===e){var i=this.$getSelectionRange(),a=i.begin,o=i.end;return r.setSelection({line:a.line,ch:0},{line:o.line,ch:r.getLine(o.line).length}),r.getSelection()}if("word"===e){var s=r.findWordAt(r.getCursor()),c=s.anchor,l=s.head;return r.setSelection(c,l),r.getSelection()}}},{key:"bindSubClick",value:function(t,e){return this.fire(null,t)}},{key:"onClick",value:function(t,e,n){return t}},{key:"shortcutKeys",get:function(){return[]}},{key:"getMenuPosition",value:function(){var e=t.getTargetParentByButton(this.dom),n=/cherry-sidebar/.test(e.className);return/cherry-bubble/.test(e.className)||/cherry-floatmenu/.test(e.className)?this.positionModel="fixed":this.positionModel=n?"sidebar":"absolute",Zb(this.dom,this.positionModel)}}],[{key:"getTargetParentByButton",value:function(t){var e=t.parentElement;return/toolbar-(left|right)/.test(e.className)&&(e=e.parentElement),e}}]),t}();function e_(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var n_=function(t){ca(n,t);var e=e_(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("bold","bold"),r}return ta(n,[{key:"$testIsBold",value:function(t){return/^\s*(\*\*|__)[\s\S]+(\1)/.test(t)}},{key:"onClick",value:function(t){var e=this,n=this.getSelection(t)||this.locale.bold;return this.isSelections||this.$testIsBold(n)||this.getMoreSelection("**","**",(function(){var t=e.editor.editor.getSelection(),r=e.$testIsBold(t);return r&&(n=t),r})),this.$testIsBold(n)?n.replace(/(^)(\s*)(\*\*|__)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){e.setLessSelection("**","**")})),n.replace(/(^)([^\n]+)($)/gm,"$1**$2**$3"))}},{key:"shortcutKeys",get:function(){return["Ctrl-b"]}}]),n}(t_);function r_(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var i_=function(t){ca(n,t);var e=r_(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("italic","italic"),r}return ta(n,[{key:"$testIsItalic",value:function(t){return/^\s*(\*|_)[\s\S]+(\1)/.test(t)}},{key:"onClick",value:function(t){var e=this,n=this.getSelection(t)||this.locale.italic;return this.isSelections||this.$testIsItalic(n)||this.getMoreSelection("*","*",(function(){var t=e.editor.editor.getSelection(),r=e.$testIsItalic(t);return r&&(n=t),r})),this.$testIsItalic(n)?n.replace(/(^)(\s*)(\*|_)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){e.setLessSelection("*","*")})),n.replace(/(^)([^\n]+)($)/gm,"$1*$2*$3"))}},{key:"shortcutKeys",get:function(){return["Ctrl-i"]}}]),n}(t_);function a_(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var o_=function(t){ca(n,t);var e=a_(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("split","|"),r}return ta(n,[{key:"createBtn",value:function(){var t=document.createElement("i");return t.className="cherry-toolbar-button cherry-toolbar-split",t}}]),n}(t_);function s_(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"word",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(t.getSelections().length>1)return e;if(e&&!r)return e;if("line"===n){var i=t.listSelections()[0],a=i.anchor,o=i.head;return a.line===o.line&&a.ch>o.ch||a.line>o.line?t.setSelection({line:o.line,ch:0},{line:a.line,ch:t.getLine(a.line).length}):t.setSelection({line:a.line,ch:0},{line:o.line,ch:t.getLine(o.line).length}),t.getSelection()}if("word"===n){var s=t.findWordAt(t.getCursor()),c=s.anchor,l=s.head;return t.setSelection(c,l),t.getSelection()}}function c_(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var l_=function(t){ca(n,t);var e=c_(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("strikethrough","strike"),r}return ta(n,[{key:"$testIsStrike",value:function(t){return/(~~)[\s\S]+(\1)/.test(t)}},{key:"onClick",value:function(t){var e,n,r,i,a,o,s=this,c=s_(this.editor.editor,t)||this.locale.strikethrough,l=(null===(e=this.$cherry)||void 0===e||null===(n=e.options)||void 0===n||null===(r=n.engine)||void 0===r||null===(i=r.syntax)||void 0===i||null===(a=i.strikethrough)||void 0===a?void 0:a.needWhitespace)?" ":"";return this.isSelections||this.$testIsStrike(c)||this.getMoreSelection("".concat(l,"~~"),"~~".concat(l),(function(){var t=s.editor.editor.getSelection(),e=s.$testIsStrike(t);return e&&(c=t),e})),this.$testIsStrike(c)?t.replace(/[\s]*(~~)([\s\S]+)(\1)[\s]*/g,"$2"):(this.registerAfterClickCb((function(){s.setLessSelection("".concat(l,"~~"),"~~".concat(l))})),c.replace(/(^)[\s]*([\s\S]+?)[\s]*($)/g,Da(o="$1".concat(l,"~~$2~~")).call(o,l,"$3")))}},{key:"shortcutKeys",get:function(){return["Ctrl-d"]}}]),n}(t_);function A_(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var u_=function(t){ca(n,t);var e=A_(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("sub","sub"),r}return ta(n,[{key:"$testIsSub",value:function(t){return/^\s*(\^\^)[\s\S]+(\1)/.test(t)}},{key:"onClick",value:function(t){var e=this,n=s_(this.editor.editor,t)||this.locale.sub;return this.isSelections||this.$testIsSub(n)||this.getMoreSelection("^^","^^",(function(){var t=e.editor.editor.getSelection(),r=e.$testIsSub(t);return r&&(n=t),r})),this.$testIsSub(n)?n.replace(/(^)(\s*)(\^\^)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){e.setLessSelection("^^","^^")})),n.replace(/(^)([^\n]+)($)/gm,"$1^^$2^^$3"))}}]),n}(t_);function h_(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var f_=function(t){ca(n,t);var e=h_(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("sup","sup"),r}return ta(n,[{key:"$testIsSup",value:function(t){return/^\s*(\^)[\s\S]+(\1)/.test(t)}},{key:"onClick",value:function(t){var e=this,n=s_(this.editor.editor,t)||this.locale.sup;return this.isSelections||this.$testIsSup(n)||this.getMoreSelection("^","^",(function(){var t=e.editor.editor.getSelection(),r=e.$testIsSup(t);return r&&(n=t),r})),this.$testIsSup(n)?t.replace(/(^)(\s*)(\^)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){e.setLessSelection("^","^")})),n.replace(/(^)([^\n]+)($)/gm,"$1^$2^$3"))}}]),n}(t_);function d_(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var p_=function(t){ca(n,t);var e=d_(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("color","color"),r.bubbleColor=new g_(t),r}return ta(n,[{key:"$testIsColor",value:function(t,e){var n=/^\s*!!![^\s]+ [\s\S]+!!!\s*$/;return"text"===t?/^\s*!![^\s]+ [\s\S]+!!\s*$/.test(e)&&!n.test(e):n.test(e)}},{key:"onClick",value:function(t){var e=this,n=arguments.length>2?arguments[2]:void 0,r=s_(this.editor.editor,t)||this.locale.color;if(this.hasCacheOnce()){var i,a,o=this.getAndCleanCacheOnce(),s=o.type,c=o.color,l="text"===s?"!!".concat(c," "):"!!!".concat(c," "),A="text"===s?"!!":"!!!";if(this.isSelections||this.$testIsColor(s,r)||this.getMoreSelection(l,A,(function(){var t=e.editor.editor.getSelection();return!!e.$testIsColor(s,t)&&(r=t,!0)})),this.$testIsColor(s,r)){var u,h=new RegExp(Da(u="(^\\s*".concat(A,")([^\\s]+) ([\\s\\S]+")).call(u,A,"\\s*$)"),"gm"),f=!0,d=r.replace(h,(function(t,e,n,r){var i,a;return f=!!f&&n===c,Da(i=Da(a="".concat(e)).call(a,c," ")).call(i,r)}));return f?r.replace(h,"$3").replace(/!+\s*$/gm,""):(this.registerAfterClickCb((function(){e.setLessSelection(l,A)})),d)}return this.registerAfterClickCb((function(){e.setLessSelection(l,A)})),Da(i=Da(a="".concat(l)).call(a,r)).call(i,A)}var p=0,g=0;if(n.target.closest(".cherry-bubble")){var m=n.target.closest(".cherry-bubble"),y=m.getBoundingClientRect();p=y.top+m.offsetHeight,g=n.target.closest(".cherry-toolbar-color").offsetLeft+y.left}else{var v=n.target.closest(".cherry-toolbar-color"),b=v.getBoundingClientRect();p=b.top+v.offsetHeight,g=b.left}this.updateMarkdown=!1,this.bubbleColor.show({left:g,top:p,$color:this})}}]),n}(t_),g_=function(){function t(e){Ji(this,t),Fa(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=e.editor,this.init(),this.initAction()}return ta(t,[{key:"setSelection",value:function(t){this.selection=t}},{key:"getFontColorDom",value:function(t){var e,n,r=yu(e=this.colorStack).call(e,(function(t){var e,n;return Da(e=Da(n='<span class="cherry-color-item cherry-color-item__'.concat(t.replace("#",""),'" unselectable="on" data-val="')).call(n,t,'"\n style="background-color:')).call(e,t,'"></span>')})).join("");return Da(n="<h3>".concat(t,"</h3>")).call(n,r)}},{key:"getDom",value:function(){var t=document.createElement("div");t.classList.add("cherry-color-wrap"),t.classList.add("cherry-dropdown");var e=document.createElement("div");e.classList.add("cherry-color-text"),e.innerHTML=this.getFontColorDom("文本颜色"),t.appendChild(e);var n=document.createElement("div");return n.classList.add("cherry-color-bg"),n.innerHTML=this.getFontColorDom("背景颜色"),t.appendChild(n),t}},{key:"init",value:function(){this.dom=this.getDom(),this.editor.options.wrapperDom.appendChild(this.dom)}},{key:"onClick",value:function(){var t,e;return"text"===this.type?/^!!#\S+ [\s\S]+?!!/.test(this.selection)?this.selection.replace(/^!!#\S+ ([\s\S]+?)!!/,"!!".concat(this.colorValue," $1!!")):Da(e="!!".concat(this.colorValue," ")).call(e,this.selection,"!!"):/^!!!#\S+ [\s\S]+?!!!/.test(this.selection)?this.selection.replace(/^!!!#\S+ ([\s\S]+?)!!!/,"!!!".concat(this.colorValue," $1!!!")):Da(t="!!!".concat(this.colorValue," ")).call(t,this.selection,"!!!")}},{key:"initAction",value:function(){var t=this;this.dom.addEventListener("click",(function(e){var n=e.target;if(t.colorValue=n.getAttribute("data-val"),!t.colorValue)return!1;t.type=n.closest(".cherry-color-text")?"text":"bg",t.$color.setCacheOnce({type:t.type,color:t.colorValue}),t.$color.fire(null)}),!1),this.dom.addEventListener("EditorHideToolbarSubMenu",(function(){"none"!==t.dom.style.display&&(t.dom.style.display="none")}))}},{key:"show",value:function(t){var e=t.left,n=t.top,r=t.$color;this.dom.style.left="".concat(e,"px"),this.dom.style.top="".concat(n,"px"),this.dom.style.display="block",this.$color=r}}]),t}();function m_(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var y_=function(t){ca(n,t);var e=m_(n);function n(t){var r,i,a,o,s,c;return Ji(this,n),(c=e.call(this,t)).setName("header","header"),c.subMenuConfig=[{iconName:"h1",name:"h1",onclick:Pa(r=c.bindSubClick).call(r,na(c),"1")},{iconName:"h2",name:"h2",onclick:Pa(i=c.bindSubClick).call(i,na(c),"2")},{iconName:"h3",name:"h3",onclick:Pa(a=c.bindSubClick).call(a,na(c),"3")},{iconName:"h4",name:"h4",onclick:Pa(o=c.bindSubClick).call(o,na(c),"4")},{iconName:"h5",name:"h5",onclick:Pa(s=c.bindSubClick).call(s,na(c),"5")}],c}return ta(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"$getFlagStr",value:function(t){var e,n=+("string"==typeof t?t.replace(/[^0-9]+([0-9])/g,"$1"):t);return zf(e="#").call(e,n||1)}},{key:"$testIsHead",value:function(t){return/^\s*(#+)\s*.+/.test(t)}},{key:"onClick",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=s_(this.editor.editor,t,"line",!0)||this.locale.header,i=this.$getFlagStr(n);if(this.isSelections||this.$testIsHead(r)||this.getMoreSelection("\n","",(function(){var t=e.editor.editor.getSelection(),n=e.$testIsHead(t);return n&&(r=t),n})),this.$testIsHead(r)){var a=!0,o=r.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(t,e,n,r,o){var s,c,l;return a=!!a&&n.length===i.length,Da(s=Da(c=Da(l="".concat(e)).call(l,i)).call(c,r)).call(s,o)}));return a?r.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb((function(){e.setLessSelection("".concat(i," "),"")})),o)}return this.registerAfterClickCb((function(){e.setLessSelection("".concat(i," "),"")})),r.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat(i," $3$4"))}},{key:"shortcutKeys",get:function(){return["Ctrl-1","Ctrl-2","Ctrl-3","Ctrl-4","Ctrl-5","Ctrl-6"]}}]),n}(t_),v_=function(t,e){var n,r=document.createElement("td");return r.className=e||"table-item",ji(n=fn(t)).call(n,(function(e){r.dataset[e]=t[e]})),r},b_=function(){function t(e,n){var r=e.row,i=e.col;Ji(this,t),this.init(r,i,n),this.initEventListeners(),this.afterClick=function(){}}return ta(t,[{key:"init",value:function(t,e,n){var r=this,i=document.createElement("table"),a=[];i.className=["cherry-insert-table-menu","cherry-dropdown"].join(" ");for(var o=1;o<=t;o++){var s=document.createElement("tr");s.className="cherry-insert-table-menu-row",a[o-1]=[];for(var c=1;c<=e;c++){var l=v_({row:o,col:c},"cherry-insert-table-menu-item");s.appendChild(l),a[o-1][c-1]=l}i.appendChild(s)}return i.style.display="none",i.addEventListener("EditorHideToolbarSubMenu",(function(){r.hide()})),this.dom=i,this.cell=a,this.maxRow=t,this.maxCol=e,this.activeRow=0,this.activeCol=0,this.dom}},{key:"initEventListeners",value:function(){var t,e;this.dom.addEventListener("mousemove",Pa(t=this.handleMouseMove).call(t,this),!1),this.dom.addEventListener("mouseup",Pa(e=this.handleMouseUp).call(e,this))}},{key:"setActiveCell",value:function(t,e){if(this.activeRow!==t||this.activeCol!==e){var n=Math.min(this.activeRow,t),r=Math.max(this.activeRow,t);if(n!==r)for(var i=r;i>n;i--)for(var a=1;a<=this.activeCol;a++)this.cell[i-1][a-1].classList.toggle("active");var o=Math.min(this.activeCol,e),s=Math.max(this.activeCol,e);if(o!==s)for(var c=s;c>o;c--)for(var l=1;l<=t;l++)this.cell[l-1][c-1].classList.toggle("active");this.activeRow=t,this.activeCol=e}}},{key:"handleMouseMove",value:function(t){var e=t.target;e!==this.dom&&(e.classList.contains("cherry-insert-table-menu-item")||(e=e.querySelector(".cherry-insert-table-menu-item")),e&&this.setActiveCell(e.dataset.row,e.dataset.col))}},{key:"handleMouseUp",value:function(t){var e=t.target;return e===this.dom||e.classList.contains("cherry-insert-table-menu-item")||(e=e.querySelector(".cherry-insert-table-menu-item")),this.afterClick(this.activeRow,this.activeCol),void this.hide()}},{key:"show",value:function(t){this.dom.style.display="block",this.afterClick=t}},{key:"hide",value:function(){this.dom.style.display="none";for(var t=0;t<this.maxRow;t++)for(var e=0;e<this.maxCol;e++)this.cell[t][e].classList.remove("active");this.activeRow=0,this.activeCol=0}}]),t}();function __(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var w_=function(t){ca(n,t);var e=__(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("insert","insert"),r.noIcon=!0,r.subBubbleTableMenu=new b_({row:9,col:9}),t.editor.options.wrapperDom.appendChild(r.subBubbleTableMenu.dom),r}return ta(n,[{key:"handleUpload",value:function(){var t=this,e=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=Jl(n.target.files,1)[0];t.$cherry.options.fileUpload(r,(function(n){if("string"==typeof n&&n){var i,a="";if("image"===e)a=Da(i="![".concat(r.name,"](")).call(i,n,")");else if("video"===e){var o;a=Da(o="!video[".concat(r.name,"](")).call(o,n,")")}else if("audio"===e){var s;a=Da(s="!audio[".concat(r.name,"](")).call(s,n,")")}else{var c;a=Da(c="[".concat(r.name,"](")).call(c,n,")")}t.$cherry.$cherry.doc.replaceSelection(a)}}))})),n.click()}},{key:"onClick",value:function(t){var e,n,r,i,a,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=arguments.length>2?arguments[2]:void 0;if(/normal-table/.test(o)){var c,l,A,u,h,f,d=o.match(/([0-9]+)[^0-9]([0-9]+)/),p=d?+d[1]:3,g=d?+d[2]:5,m=zf(c=" Header |").call(c,g),y=zf(l=" ------ |").call(l,g),v="\n|".concat(zf(A=" Sample |").call(A,g)),b=Da(u=Da(h=Da(f="".concat(t,"\n\n|")).call(f,m,"\n|")).call(h,y)).call(u,zf(v).call(v,p),"\n\n");return b}var _=s_(this.editor.editor,t);switch(o){case"hr":return"".concat(t,"\n\n---\n");case"br":return"".concat(t,"<br>");case"code":return"\n``` \n".concat(t||"code...","\n```\n");case"formula":return"".concat(t,"\n\n$ e=mc^2 $\n\n");case"checklist":return"".concat(t,"\n\n- [x] Item 1\n- [ ] Item 2\n- [ ] Item 3\n");case"toc":return"".concat(t,"\n\n[[toc]]\n");case"link":return Da(e="".concat(t,"[")).call(e,this.locale.link,"](http://url.com) ");case"image":return this.handleUpload("image"),t;case"video":return this.handleUpload("video"),t;case"audio":return this.handleUpload("audio"),t;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(e,n){var r,i,a,o,c,l,A=zf(r=" Header |").call(r,n),u=zf(i=" ------ |").call(i,n),h="\n|".concat(zf(a=" Sample |").call(a,n)),f=Da(o=Da(c=Da(l="".concat(t,"\n\n|")).call(l,A,"\n|")).call(c,u)).call(o,zf(h).call(h,e),"\n\n");s(f)}));case"line-table":return Da(n="".concat(t,"\n\n")).call(n,["| :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 Da(r="".concat(t,"\n\n")).call(r,["| :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(e,n){var r,i,a,o,c,l=Da(r=Da(i="".concat(t,"\n\n||")).call(i,zf(a=" ~Header ||").call(a,n))).call(r,zf(o="\n||".concat(zf(c=" SampleT ||").call(c,n))).call(o,e-1),"\n\n");s(l)}));case"pdf":return this.handleUpload("pdf"),t;case"word":return this.handleUpload("word"),t;case"ruby":return/^\s*\{[\s\S]+\|[\s\S]+\}/.test(_)?_.replace(/^\s*\{\s*([\s\S]+?)\s*\|[\s\S]+\}\s*/gm,"$1"):Da(i=" { ".concat(_," | ")).call(i,Xc(a=this.editor.$cherry.options.callback.changeString2Pinyin(_)).call(a)," } ")}}}]),n}(t_);function E_(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var C_=function(t){ca(n,t);var e=E_(n);function n(t){var r,i,a,o;return Ji(this,n),(o=e.call(this,t)).setName("list","list"),o.subMenuConfig=[{iconName:"ol",name:"ol",onclick:Pa(r=o.bindSubClick).call(r,na(o),"1")},{iconName:"ul",name:"ul",onclick:Pa(i=o.bindSubClick).call(i,na(o),"2")},{iconName:"checklist",name:"checklist",onclick:Pa(a=o.bindSubClick).call(a,na(o),"3")}],o}return ta(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"onClick",value:function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=[null,"ol","ul","checklist"],a=s_(this.editor.editor,t,"line",!0),o=a.match(/^\n*/),s=Jl(o,1),c=s[0],l=a.match(/\n*$/),A=Jl(l,1),u=A[0];return null!==i[r]?Da(e=Da(n="".concat(c)).call(n,$A(a,i[r]))).call(e,u):a}}]),n}(t_);function x_(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var B_=function(t){ca(n,t);var e=x_(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("ol","ol"),r}return ta(n,[{key:"onClick",value:function(t){var e,n,r=s_(this.editor.editor,t,"line",!0)||"Item 1\n Item 1.1\nItem 2",i=r.match(/^\n*/),a=Jl(i,1)[0],o=r.match(/\n*$/),s=Jl(o,1)[0];return Da(e=Da(n="".concat(a)).call(n,$A(r,"ol"))).call(e,s)}}]),n}(t_);function T_(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var k_=function(t){ca(n,t);var e=T_(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("ul","ul"),r}return ta(n,[{key:"onClick",value:function(t){var e,n,r=s_(this.editor.editor,t,"line",!0)||"Item 1\n Item 1.1\nItem 2",i=r.match(/^\n*/),a=Jl(i,1)[0],o=r.match(/\n*$/),s=Jl(o,1)[0];return Da(e=Da(n="".concat(a)).call(n,$A(r,"ul"))).call(e,s)}}]),n}(t_);function S_(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var I_=function(t){ca(n,t);var e=S_(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("checklist","checklist"),r}return ta(n,[{key:"onClick",value:function(t){var e,n,r=s_(this.editor.editor,t,"line",!0)||"Item 1\n Item 1.1\nItem 2",i=r.match(/^\n*/),a=Jl(i,1)[0],o=r.match(/\n*$/),s=Jl(o,1)[0];return Da(e=Da(n="".concat(a)).call(n,$A(r,"checklist"))).call(e,s)}}]),n}(t_);function L_(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}function F_(t,e){return[t,"```mermaid",e,"```"].join("\n")}var N_=["\tA[公司] --\x3e| 下 班 | B(菜市场)","\tB --\x3e C{看见<br>卖西瓜的}","\tC --\x3e|Yes| D[买一个包子]","\tC --\x3e|No| E[买一斤包子]"].join("\n"),O_={flow:["FlowChart",F_("左右结构","graph LR\n".concat(N_)),F_("上下结构","graph TD\n".concat(N_))].join("\n"),sequence:F_("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:F_("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:F_("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:F_("PieChart",["pie","title 饼图",'"A" : 100','"B" : 80','"C" : 40','"D" : 30'].join("\n")),gantt:F_("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"))},D_=function(t){ca(n,t);var e=L_(n);function n(t){var r,i,a,o,s,c,l;return Ji(this,n),(l=e.call(this,t)).setName("graph","insertChart"),l.noIcon=!0,l.subMenuConfig=[{iconName:"insertFlow",name:"insertFlow",onclick:Pa(r=l.bindSubClick).call(r,na(l),"1")},{iconName:"insertSeq",name:"insertSeq",onclick:Pa(i=l.bindSubClick).call(i,na(l),"2")},{iconName:"insertState",name:"insertState",onclick:Pa(a=l.bindSubClick).call(a,na(l),"3")},{iconName:"insertClass",name:"insertClass",onclick:Pa(o=l.bindSubClick).call(o,na(l),"4")},{iconName:"insertPie",name:"insertPie",onclick:Pa(s=l.bindSubClick).call(s,na(l),"5")},{iconName:"insertGantt",name:"insertGantt",onclick:Pa(c=l.bindSubClick).call(c,na(l),"6")}],l}return ta(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"onClick",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r="".concat(n),i=[,"flow","sequence","state","class","pie","gantt"],a=i[+r];if(i[+r])return this.registerAfterClickCb((function(){e.setLessSelection("\n\n\n\n\n","\n\n")})),"\n\n".concat(this.$getSampleCode(a),"\n")}},{key:"$getSampleCode",value:function(t){return O_[t].replace(/\t/g," ")}}]),n}(t_);function M_(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var R_=function(t){ca(n,t);var e=M_(n);function n(t){var r,i,a,o,s;return Ji(this,n),(s=e.call(this,t)).setName("size","size"),s.subMenuConfig=[{name:"小",noIcon:!0,onclick:Pa(r=s.bindSubClick).call(r,na(s),"12")},{name:"中",noIcon:!0,onclick:Pa(i=s.bindSubClick).call(i,na(s),"17")},{name:"大",noIcon:!0,onclick:Pa(a=s.bindSubClick).call(a,na(s),"24")},{name:"特大",noIcon:!0,onclick:Pa(o=s.bindSubClick).call(o,na(s),"32")}],s.shortKeyMap={"Alt-1":"12","Alt-2":"17","Alt-3":"24","Alt-4":"32"},s}return ta(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"_getFlagStr",value:function(t){for(var e=t.replace(/[^0-9]+([0-9])/g,"$1"),n="#",r=1;r<e;r++)n+="#";return n}},{key:"$testIsSize",value:function(t){return/^\s*(![0-9]+) [\s\S]+!/.test(t)}},{key:"$getSizeByShortKey",value:function(t){return/^[0-9]+$/.test(t)?t:this.shortKeyMap[t]||"17"}},{key:"onClick",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"17",r=this.$getSizeByShortKey(n),i=s_(this.editor.editor,t)||"字号";if(this.isSelections||this.$testIsSize(i)||this.getMoreSelection("!32 ","!",(function(){var t=e.editor.editor.getSelection();return!!e.$testIsSize(t)&&(i=t,!0)})),this.$testIsSize(i)){var a=!0,o=i.replace(/(^)(\s*)(![0-9]+)([^\n]+)(!)(\s*)($)/gm,(function(t,e,n,i,o,s,c,l){var A,u,h,f,d,p;return a=!!a&&i==="!".concat(r),Da(A=Da(u=Da(h=Da(f=Da(d=Da(p="".concat(e)).call(p,n,"!")).call(d,r)).call(f,o)).call(h,s)).call(u,c)).call(A,l)}));return a?i.replace(/(^)(\s*)(![0-9]+\s*)([^\n]+)(!)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){e.setLessSelection("!".concat(r," "),"!")})),o)}return this.registerAfterClickCb((function(){e.setLessSelection("!".concat(r," "),"!")})),i.replace(/(^)([^\n]+)($)/gm,"$1!".concat(r," $2!$3"))}},{key:"shortcutKeys",get:function(){return["Alt-1","Alt-2","Alt-3","Alt-4"]}}]),n}(t_);function U_(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var P_=function(t){ca(n,t);var e=U_(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("h1","h1"),r}return ta(n,[{key:"$testIsHead",value:function(t){return/^\s*(#+)\s*.+/.test(t)}},{key:"onClick",value:function(t){var e=this,n=s_(this.editor.editor,t,"line",!0)||this.locale.h1;if(this.isSelections||this.$testIsHead(n)||this.getMoreSelection("\n","",(function(){var t=e.editor.editor.getSelection(),r=e.$testIsHead(t);return r&&(n=t),r})),this.$testIsHead(n)){var r=!0,i=n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(t,e,n,i,a){var o,s,c;return r=!!r&&n.length==="#".length,Da(o=Da(s=Da(c="".concat(e)).call(c,"#")).call(s,i)).call(o,a)}));return r?n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb((function(){e.setLessSelection("".concat("#"," "),"")})),i)}return this.registerAfterClickCb((function(){e.setLessSelection("".concat("#"," "),"")})),n.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat("#"," $3$4"))}}]),n}(t_);function H_(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var Q_=function(t){ca(n,t);var e=H_(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("h2","h2"),r}return ta(n,[{key:"$testIsHead",value:function(t){return/^\s*(#+)\s*.+/.test(t)}},{key:"onClick",value:function(t){var e=this,n=s_(this.editor.editor,t,"line",!0)||this.locale.h2;if(this.isSelections||this.$testIsHead(n)||this.getMoreSelection("\n","",(function(){var t=e.editor.editor.getSelection(),r=e.$testIsHead(t);return r&&(n=t),r})),this.$testIsHead(n)){var r=!0,i=n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(t,e,n,i,a){var o,s,c;return r=!!r&&n.length==="##".length,Da(o=Da(s=Da(c="".concat(e)).call(c,"##")).call(s,i)).call(o,a)}));return r?n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb((function(){e.setLessSelection("".concat("##"," "),"")})),i)}return this.registerAfterClickCb((function(){e.setLessSelection("".concat("##"," "),"")})),n.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat("##"," $3$4"))}}]),n}(t_);function G_(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var j_=function(t){ca(n,t);var e=G_(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("h3","h3"),r}return ta(n,[{key:"$testIsHead",value:function(t){return/^\s*(#+)\s*.+/.test(t)}},{key:"onClick",value:function(t){var e=this,n=s_(this.editor.editor,t,"line",!0)||this.locale.h3;if(this.isSelections||this.$testIsHead(n)||this.getMoreSelection("\n","",(function(){var t=e.editor.editor.getSelection(),r=e.$testIsHead(t);return r&&(n=t),r})),this.$testIsHead(n)){var r=!0,i=n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,(function(t,e,n,i,a){var o,s,c;return r=!!r&&n.length==="###".length,Da(o=Da(s=Da(c="".concat(e)).call(c,"###")).call(s,i)).call(o,a)}));return r?n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb((function(){e.setLessSelection("".concat("###"," "),"")})),i)}return this.registerAfterClickCb((function(){e.setLessSelection("".concat("###"," "),"")})),n.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat("###"," $3$4"))}}]),n}(t_);function $_(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var K_=function(t){ca(n,t);var e=$_(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("quote","blockquote"),r}return ta(n,[{key:"onClick",value:function(t){var e,n=this,r=s_(this.editor.editor,t,"line",!0)||this.locale.quote;return hb(e=r.split("\n")).call(e,(function(t){return/^\s*>[^\n]+$/.exec(t)}))?r.replace(/(^\s*)>\s*([^\n]+)($)/gm,"$1$2$3").replace(/\n+$/,"\n\n"):(this.registerAfterClickCb((function(){n.setLessSelection("> ","")})),r.replace(/(^)([^\n]+)($)/gm,"$1> $2$3").replace(/\n+$/,"\n\n"))}}]),n}(t_);function Y_(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var z_=function(t){ca(n,t);var e=Y_(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("quickTable","table"),r}return ta(n,[{key:"onClick",value:function(t){return"".concat(t,"| LeftAlignedCol | CenterAlignedCol | RightAlignedCol |\n")+"| :--- | :---: | ---: |\n| sampleText | sampleText | sampleText |\n| **left**Text | centered Text | *right*Text |\n"}}]),n}(t_);function W_(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var V_=function(t){ca(n,t);var e=W_(n);function n(t){var r;return Ji(this,n),r=e.call(this,t),Fa(na(r),"$previewerHidden",!1),r.setName("previewClose","previewClose"),r.instanceId=t.instanceId,r.updateMarkdown=!1,r.attachEventListeners(),r}return ta(n,[{key:"attachEventListeners",value:function(){var t=this;kA.on(this.instanceId,kA.Events.previewerClose,(function(){t.isHidden=!0})),kA.on(this.instanceId,kA.Events.previewerOpen,(function(){t.isHidden=!1}))}},{key:"isHidden",get:function(){return this.$previewerHidden},set:function(t){if(t!==this.$previewerHidden){var e=this.dom.querySelector("i");t?(e.classList.toggle("ch-icon-previewClose",!1),e.classList.toggle("ch-icon-preview",!0),e.title=this.locale.togglePreview):(e.classList.toggle("ch-icon-previewClose",!0),e.classList.toggle("ch-icon-preview",!1),e.title=this.locale.previewClose),this.$previewerHidden=t}}},{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}(t_);function q_(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var X_=function(t){ca(n,t);var e=q_(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).updateMarkdown=!1,r.setName("fullScreen","fullscreen"),r}return ta(n,[{key:"onClick",value:function(){for(var t=this.editor.options.editorDom.parentElement.classList,e=document.querySelector(".cherry-toolbar-fullscreen");e.firstChild;)e.removeChild(e.firstChild);if(t.contains("fullscreen")){var n=EA("i","ch-icon ch-icon-fullscreen");e.appendChild(n),t.remove("fullscreen")}else{var r=EA("i","ch-icon ch-icon-minscreen");e.appendChild(r),t.add("fullscreen")}this.editor.editor.refresh()}}]),n}(t_);function J_(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var Z_=function(t){ca(n,t);var e=J_(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("undo","undo"),r}return ta(n,[{key:"onClick",value:function(){this.editor.editor.undo()}}]),n}(t_);function tw(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var ew=function(t){ca(n,t);var e=tw(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("redo","redo"),r}return ta(n,[{key:"onClick",value:function(){this.editor.editor.redo()}}]),n}(t_);function nw(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var rw=function(t){ca(n,t);var e=nw(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("code","code"),r}return ta(n,[{key:"onClick",value:function(t){var e=this,n=t||"code...";return this.registerAfterClickCb((function(){e.setLessSelection("\n``` \n","\n```\n")})),"\n``` \n".concat(n,"\n```\n")}},{key:"shortcutKeys",get:function(){return["Ctrl-k"]}}]),n}(t_);function iw(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var aw=function(t){ca(n,t);var e=iw(n);function n(t){var r,i,a,o,s,c,l,A,u;return Ji(this,n),(u=e.call(this,t)).setName("codeTheme"),u.updateMarkdown=!1,u.noIcon=!0,u.subMenuConfig=[{noIcon:!0,name:"default",onclick:Pa(r=u.bindSubClick).call(r,na(u),"default")},{noIcon:!0,name:"dark",onclick:Pa(i=u.bindSubClick).call(i,na(u),"dark")},{noIcon:!0,name:"funky",onclick:Pa(a=u.bindSubClick).call(a,na(u),"funky")},{noIcon:!0,name:"okaidia",onclick:Pa(o=u.bindSubClick).call(o,na(u),"okaidia")},{noIcon:!0,name:"twilight",onclick:Pa(s=u.bindSubClick).call(s,na(u),"twilight")},{noIcon:!0,name:"coy",onclick:Pa(c=u.bindSubClick).call(c,na(u),"coy")},{noIcon:!0,name:"solarized light",onclick:Pa(l=u.bindSubClick).call(l,na(u),"solarized-light")},{noIcon:!0,name:"tomorrow night",onclick:Pa(A=u.bindSubClick).call(A,na(u),"tomorrow-night")}],u}return ta(n,[{key:"onClick",value:function(){var t=arguments.length>1?arguments[1]:void 0;document.querySelector(".cherry").setAttribute("data-code-block-theme",t)}}]),n}(t_);function ow(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var sw=function(t){ca(n,t);var e=ow(n);function n(t){var r,i,a,o,s;return Ji(this,n),(s=e.call(this,t)).setName("export"),s.noIcon=!0,s.updateMarkdown=!1,s.subMenuConfig=[{noIcon:!0,name:"exportToPdf",onclick:Pa(r=s.bindSubClick).call(r,na(s),"pdf")},{noIcon:!0,name:"exportScreenshot",onclick:Pa(i=s.bindSubClick).call(i,na(s),"screenShot")},{noIcon:!0,name:"exportMarkdownFile",onclick:Pa(a=s.bindSubClick).call(a,na(s),"markdown")},{noIcon:!0,name:"exportHTMLFile",onclick:Pa(o=s.bindSubClick).call(o,na(s),"html")}],s}return ta(n,[{key:"onClick",value:function(){var t=arguments.length>1?arguments[1]:void 0;document.querySelector(".cherry-dropdown[name=export]")&&(document.querySelector(".cherry-dropdown[name=export]").style.display="none");var e=this.$cherry.previewer,n="";n=e.isPreviewerHidden()?e.options.previewerCache.html:e.getDomContainer().innerHTML,n=e.lazyLoadImg.changeDataSrc2Src(n),e.refresh(n),e.export(t)}}]),n}(t_);function cw(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var lw=function(t){ca(n,t);var e=cw(n);function n(t){var r,i,a,o,s;Ji(this,n),(s=e.call(this,t)).setName("settings","settings"),s.updateMarkdown=!1,s.engine=t.engine;var c=Eu("classicBr")?xu():null===(r=s.engine.$cherry.options.engine.global)||void 0===r?void 0:r.classicBr,l=t.editor.options.defaultModel,A=c?"br":"normal",u=c?"classicBr":"normalBr",h="editOnly"===l?"preview":"previewClose",f="editOnly"===l?"togglePreview":"previewClose";return s.instanceId=t.instanceId,s.subMenuConfig=[{iconName:A,name:u,onclick:Pa(i=s.bindSubClick).call(i,na(s),"classicBr")},{iconName:h,name:f,onclick:Pa(a=s.bindSubClick).call(a,na(s),"previewClose")},{iconName:"",name:"hide",onclick:Pa(o=s.bindSubClick).call(o,na(s),"toggleToolbar")}],s.attachEventListeners(),s.shortcutKeyMaps=[{shortKey:"toggleToolbar",shortcutKey:"Ctrl-0"}],s}return ta(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"bindSubClick",value:function(t,e,n,r){return n?this.onClick(e,t,r):this.onClick(e,t)}},{key:"togglePreviewBtn",value:function(t){var e=this,n=t?"previewClose":"preview",r=t?"previewClose":"togglePreview";if(this.subMenu){var i=document.querySelector('.cherry-dropdown[name="settings"]');if(i){var a=i.querySelector(".ch-icon-previewClose,.ch-icon-preview");a.classList.toggle("ch-icon-previewClose"),a.classList.toggle("ch-icon-preview"),a.title=this.locale[r],a.parentElement.innerHTML=a.parentElement.innerHTML.replace(/<\/i>.+$/,"</i>".concat(this.locale[r]))}}else{var o;this.subMenuConfig=yu(o=this.subMenuConfig).call(o,(function(t){var i;return"previewClose"===t.iconName||"preview"===t.iconName?{iconName:n,name:r,onclick:Pa(i=e.bindSubClick).call(i,e,"previewClose")}:t}))}}},{key:"attachEventListeners",value:function(){var t=this;kA.on(this.instanceId,kA.Events.previewerClose,(function(){t.togglePreviewBtn(!1)})),kA.on(this.instanceId,kA.Events.previewerOpen,(function(){t.togglePreviewBtn(!0)}))}},{key:"onClick",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("classicBr"===(e=this.matchShortcutKey(e))){var n,r=!xu();Cu(r),this.engine.$cherry.options.engine.global.classicBr=r,ji(n=this.engine.hookCenter.hookList.paragraph).call(n,(function(t){t.classicBr=r}));var i=this.$cherry.wrapperDom.querySelector(".cherry-dropdown .ch-icon-normal");i=i||this.$cherry.wrapperDom.querySelector(".cherry-dropdown .ch-icon-br"),r?(i.classList.replace("ch-icon-normal","ch-icon-br"),i.parentElement.childNodes[1].textContent=this.locale.classicBr):(i.classList.replace("ch-icon-br","ch-icon-normal"),i.parentElement.childNodes[1].textContent=this.locale.normalBr),this.engine.$cherry.previewer.update(""),this.engine.$cherry.initText(this.engine.$cherry.editor.editor)}else"previewClose"===e?this.editor.previewer.isPreviewerHidden()?this.editor.previewer.recoverPreviewer(!0):this.editor.previewer.editOnly(!0):"toggleToolbar"===e&&this.toggleToolbar();return t}},{key:"matchShortcutKey",value:function(t){var e,n=Nl(e=this.shortcutKeyMaps).call(e,(function(e){return e.shortcutKey===t}));return void 0!==n?n.shortKey:t}},{key:"toggleToolbar",value:function(){var t=this.engine.$cherry.wrapperDom;if(t instanceof HTMLDivElement){var e,n=this.engine.$cherry.toolbar.instanceId;Zl(e=t.className).call(e,"cherry--no-toolbar")>-1?(t.classList.remove("cherry--no-toolbar"),kA.emit(n,kA.Events.toolbarShow)):(t.classList.add("cherry--no-toolbar"),kA.emit(n,kA.Events.toolbarHide))}}},{key:"shortcutKeys",get:function(){var t;return yu(t=this.shortcutKeyMaps).call(t,(function(t){return t.shortcutKey}))}}]),n}(t_);function Aw(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var uw=function(t){ca(n,t);var e=Aw(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("underline","underline"),r}return ta(n,[{key:"$testIsUnderline",value:function(t){return/^\s*(\/)[\s\S]+(\1)/.test(t)}},{key:"onClick",value:function(t){var e=this,n=t||this.locale.underline;return this.isSelections||this.$testIsUnderline(n)||this.getMoreSelection(" /","/ ",(function(){var t=e.editor.editor.getSelection(),r=e.$testIsUnderline(t);return r&&(n=t),r})),this.$testIsUnderline(n)?n.replace(/(^)(\s*)(\/)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb((function(){e.setLessSelection(" /","/ ")})),n.replace(/(^)([^\n]+)($)/gm,"$1 /$2/ $3"))}},{key:"shortcutKeys",get:function(){return["Ctrl-u"]}}]),n}(t_);function hw(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var fw=function(t){ca(n,t);var e=hw(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("switchPreview"),r.instanceId=t.instanceId,r.attachEventListeners(),r}return ta(n,[{key:"attachEventListeners",value:function(){var t=this;kA.on(this.instanceId,kA.Events.toolbarHide,(function(){t.dom.textContent=t.locale.switchEdit})),kA.on(this.instanceId,kA.Events.toolbarShow,(function(){t.dom.textContent=t.locale.switchPreview}))}},{key:"onClick",value:function(){this.editor.previewer.isPreviewerHidden()?(this.editor.previewer.previewOnly(),this.dom.parentElement.parentElement.classList.add("preview-only"),this.dom.textContent=this.locale.switchEdit):(this.editor.previewer.editOnly(!0),this.dom.parentElement.parentElement.classList.remove("preview-only"),this.dom.textContent=this.locale.switchPreview)}}]),n}(t_);function dw(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var pw=function(t){ca(n,t);var e=dw(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("image","image"),r}return ta(n,[{key:"onClick",value:function(t){var e,n,r,i=this;if(this.hasCacheOnce()){var a,o,s=this.getAndCleanCacheOnce(),c=s.name,l=s.url,A=s.params,u="](".concat(l,")");this.registerAfterClickCb((function(){i.setLessSelection("![",u)}));var h=A.name?A.name:c;return Da(a=Da(o="".concat("![").concat(h)).call(o,IA(A))).call(a,u)}var f=null!==(e=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.image)&&void 0!==e?e:"*";return SA(this.editor,"image",f,(function(t,e,n){i.setCacheOnce({name:t,url:e,params:n}),i.fire(null)})),this.updateMarkdown=!1,t}},{key:"shortcutKeys",get:function(){return["Ctrl-g"]}}]),n}(t_);function gw(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var mw=function(t){ca(n,t);var e=gw(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("audio","video"),r}return ta(n,[{key:"onClick",value:function(t){var e,n,r,i=this;if(this.hasCacheOnce()){var a,o,s=this.getAndCleanCacheOnce(),c=s.name,l=s.url,A=s.params,u="](".concat(l,")");this.registerAfterClickCb((function(){i.setLessSelection("!audio[",u)}));var h=A.name?A.name:c;return Da(a=Da(o="".concat("!audio[").concat(h)).call(o,IA(A))).call(a,u)}var f=null!==(e=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.audio)&&void 0!==e?e:"*";return SA(this.editor,"audio",f,(function(t,e,n){i.setCacheOnce({name:t,url:e,params:n}),i.fire(null)})),this.updateMarkdown=!1,t}}]),n}(t_);function yw(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var vw=function(t){ca(n,t);var e=yw(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("video","video"),r}return ta(n,[{key:"onClick",value:function(t){var e,n,r,i=this;if(this.hasCacheOnce()){var a,o,s,c=this.getAndCleanCacheOnce(),l=c.name,A=c.url,u=c.params,h=u.poster?Da(a="](".concat(A,"){poster=")).call(a,u.poster,"}"):"](".concat(A,")");this.registerAfterClickCb((function(){i.setLessSelection("!video[",h)}));var f=u.name?u.name:l;return Da(o=Da(s="".concat("!video[").concat(f)).call(s,IA(u))).call(o,h)}var d=null!==(e=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.video)&&void 0!==e?e:"*";return SA(this.editor,"video",d,(function(t,e,n){i.setCacheOnce({name:t,url:e,params:n}),i.fire(null)})),this.updateMarkdown=!1,t}}]),n}(t_);function bw(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var _w=function(t){ca(n,t);var e=bw(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("br","br"),r}return ta(n,[{key:"onClick",value:function(t){return"".concat(t,"<br>")}}]),n}(t_);function ww(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var Ew=function(t){ca(n,t);var e=ww(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("hr","line"),r}return ta(n,[{key:"onClick",value:function(t){return"".concat(t,"\n\n---\n")}}]),n}(t_);function Cw(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var xw=function(t){ca(n,t);var e=Cw(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("formula","insertFormula"),r}return ta(n,[{key:"onClick",value:function(t){var e,n=this,r="".concat(t," $ ");return this.registerAfterClickCb((function(){n.setLessSelection(r," $ ")})),Da(e="".concat(r,"e=mc^2")).call(e," $ ")}},{key:"shortcutKeys",get:function(){return["Ctrl-m"]}}]),n}(t_);function Bw(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var Tw=function(t){ca(n,t);var e=Bw(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("link","link"),r}return ta(n,[{key:"onClick",value:function(t){var e;if(/^http/.test(t))return Da(e="[".concat(this.locale.link,"](")).call(e,t,")");var n=t||this.locale.link;return"[".concat(n,"](http://url.com) ")}},{key:"shortcutKeys",get:function(){return["Ctrl-l"]}}]),n}(t_);function kw(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var Sw=function(t){ca(n,t);var e=kw(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("table","table"),r.subBubbleTableMenu=new b_({row:9,col:9}),t.editor.options.wrapperDom.appendChild(r.subBubbleTableMenu.dom),r.catchOnce="",r}return ta(n,[{key:"onClick",value:function(t){var e=this;if("none"===this.subBubbleTableMenu.dom.style.display||!this.hasCacheOnce()){var n=this.dom.getBoundingClientRect();return 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 i,a,o,s,c,l,A=zf(i=" Header |").call(i,r),u=zf(a=" ------ |").call(a,r),h="\n|".concat(zf(o=" Sample |").call(o,r)),f=Da(s=Da(c=Da(l="".concat(t,"\n\n|")).call(l,A,"\n|")).call(c,u)).call(s,zf(h).call(h,n),"\n\n");e.setCacheOnce(f),e.fire(null)})),this.updateMarkdown=!1,!1}return this.getAndCleanCacheOnce()}}]),n}(t_);function Iw(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var Lw=function(t){ca(n,t);var e=Iw(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("toc","toc"),r}return ta(n,[{key:"onClick",value:function(t){return"".concat(t,"\n\n[[toc]]\n")}}]),n}(t_);function Fw(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var Nw=function(t){ca(n,t);var e=Fw(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("lineTable","table"),r}return ta(n,[{key:"onClick",value:function(t){var e;return Da(e="".concat(t,"\n\n")).call(e,["| :line: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n")}}]),n}(t_);function Ow(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var Dw=function(t){ca(n,t);var e=Ow(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("brTable","table"),r}return ta(n,[{key:"onClick",value:function(t){var e;return Da(e="".concat(t,"\n\n")).call(e,["| :bar: {x,y} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n")}}]),n}(t_);function Mw(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var Rw=function(t){ca(n,t);var e=Mw(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("pdf","pdf"),r}return ta(n,[{key:"onClick",value:function(t){var e,n,r,i=this;if(this.hasCacheOnce()){var a,o=this.getAndCleanCacheOnce(),s=o.name,c=o.url,l=o.params,A="](".concat(c,")");this.registerAfterClickCb((function(){i.setLessSelection("[",A)}));var u=l.name?l.name:s;return Da(a="".concat("[").concat(u)).call(a,A)}var h=null!==(e=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.pdf)&&void 0!==e?e:"*";return SA(this.editor,"pdf",h,(function(t,e,n){i.setCacheOnce({name:t,url:e,params:n}),i.fire(null)})),this.updateMarkdown=!1,t}}]),n}(t_);function Uw(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var Pw=function(t){ca(n,t);var e=Uw(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("file","phone"),r}return ta(n,[{key:"onClick",value:function(t){var e,n,r,i=this;if(this.hasCacheOnce()){var a,o=this.getAndCleanCacheOnce(),s=o.name,c=o.url,l=o.params,A="](".concat(c,")");this.registerAfterClickCb((function(){i.setLessSelection("[",A)}));var u=l.name?l.name:s;return Da(a="".concat("[").concat(u)).call(a,A)}var h=null!==(e=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.file)&&void 0!==e?e:"*";return SA(this.editor,"file",h,(function(t,e,n){i.setCacheOnce({name:t,url:e,params:n}),i.fire(null)})),this.updateMarkdown=!1,t}}]),n}(t_);function Hw(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var Qw=function(t){ca(n,t);var e=Hw(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("word","word"),r}return ta(n,[{key:"onClick",value:function(t){var e,n,r,i=this;if(this.hasCacheOnce()){var a,o=this.getAndCleanCacheOnce(),s=o.name,c=o.url,l=o.params,A="](".concat(c,")");this.registerAfterClickCb((function(){i.setLessSelection("[",A)}));var u=l.name?l.name:s;return Da(a="".concat("[").concat(u)).call(a,A)}var h=null!==(e=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.word)&&void 0!==e?e:"*";return SA(this.editor,"word",h,(function(t,e,n){i.setCacheOnce({name:t,url:e,params:n}),i.fire(null)})),this.updateMarkdown=!1,t}}]),n}(t_);function Gw(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var jw=function(t){ca(n,t);var e=Gw(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("pinyin","pinyin"),r}return ta(n,[{key:"$testIsRuby",value:function(t){return/^\s*\{[\s\S]+\|[\s\S]+\}/.test(t)}},{key:"onClick",value:function(t){var e,n,r=this,i=s_(this.editor.editor,t)||"拼音";if(this.isSelections||this.$testIsRuby(i)||this.getMoreSelection(" { "," } ",(function(){var t=r.editor.editor.getSelection(),e=r.$testIsRuby(t);return e&&(i=t),e})),this.$testIsRuby(i))return i.replace(/^\s*\{\s*([\s\S]+?)\s*\|[\s\S]+\}\s*/gm,"$1");var a=Xc(e=this.editor.$cherry.options.callback.changeString2Pinyin(i)||"pin yin").call(e);return this.registerAfterClickCb((function(){r.setLessSelection(" { "," } ")})),Da(n=" { ".concat(i," | ")).call(n,a," } ")}}]),n}(t_);function $w(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var Kw=function(t){ca(n,t);var e=$w(n);function n(t){var r,i;Ji(this,n),(i=e.call(this,t)).setName("theme","insertChart"),i.subMenuConfig=[];var a=na(i);return ji(r=t.options.theme).call(r,(function(t){var e;a.subMenuConfig.push({iconName:t.className,name:t.label,onclick:Pa(e=a.bindSubClick).call(e,a,t.className)})})),i}return ta(n,[{key:"onClick",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return ku(this.$cherry,e),this.updateMarkdown=!1,""}}]),n}(t_),Yw=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}},zw=Object.prototype.toString;function Ww(t){return Array.isArray(t)}function Vw(t){return void 0===t}function qw(t){return"[object ArrayBuffer]"===zw.call(t)}function Xw(t){return null!==t&&"object"==typeof t}function Jw(t){if("[object Object]"!==zw.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function Zw(t){return"[object Function]"===zw.call(t)}function tE(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),Ww(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}var eE={isArray:Ww,isArrayBuffer:qw,isBuffer:function(t){return null!==t&&!Vw(t)&&null!==t.constructor&&!Vw(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"[object FormData]"===zw.call(t)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&qw(t.buffer)},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:Xw,isPlainObject:Jw,isUndefined:Vw,isDate:function(t){return"[object Date]"===zw.call(t)},isFile:function(t){return"[object File]"===zw.call(t)},isBlob:function(t){return"[object Blob]"===zw.call(t)},isFunction:Zw,isStream:function(t){return Xw(t)&&Zw(t.pipe)},isURLSearchParams:function(t){return"[object URLSearchParams]"===zw.call(t)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:tE,merge:function t(){var e={};function n(n,r){Jw(e[r])&&Jw(n)?e[r]=t(e[r],n):Jw(n)?e[r]=t({},n):Ww(n)?e[r]=n.slice():e[r]=n}for(var r=0,i=arguments.length;r<i;r++)tE(arguments[r],n);return e},extend:function(t,e,n){return tE(e,(function(e,r){t[r]=n&&"function"==typeof e?Yw(e,n):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}};function nE(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var rE=function(t,e,n){if(!e)return t;var r;if(n)r=n(e);else if(eE.isURLSearchParams(e))r=e.toString();else{var i=[];eE.forEach(e,(function(t,e){null!=t&&(eE.isArray(t)?e+="[]":t=[t],eE.forEach(t,(function(t){eE.isDate(t)?t=t.toISOString():eE.isObject(t)&&(t=JSON.stringify(t)),i.push(nE(e)+"="+nE(t))})))})),r=i.join("&")}if(r){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t};function iE(){this.handlers=[]}iE.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},iE.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},iE.prototype.forEach=function(t){eE.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var aE=iE,oE=function(t,e){eE.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))},sE=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},cE={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lE=function(t,e,n,r,i){var a=new Error(t);return sE(a,e,n,r,i)},AE=eE.isStandardBrowserEnv()?{write:function(t,e,n,r,i,a){var o=[];o.push(t+"="+encodeURIComponent(e)),eE.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),eE.isString(r)&&o.push("path="+r),eE.isString(i)&&o.push("domain="+i),!0===a&&o.push("secure"),document.cookie=o.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},uE=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],hE=eE.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=r(window.location.href),function(e){var n=eE.isString(e)?r(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0};function fE(t){this.message=t}fE.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},fE.prototype.__CANCEL__=!0;var dE=fE,pE=function(t){return new Promise((function(e,n){var r,i=t.data,a=t.headers,o=t.responseType;function s(){t.cancelToken&&t.cancelToken.unsubscribe(r),t.signal&&t.signal.removeEventListener("abort",r)}eE.isFormData(i)&&delete a["Content-Type"];var c=new XMLHttpRequest;if(t.auth){var l=t.auth.username||"",A=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";a.Authorization="Basic "+btoa(l+":"+A)}var u,h,f=(u=t.baseURL,h=t.url,u&&!function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}(h)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(u,h):h);function d(){if(c){var r="getAllResponseHeaders"in c?function(t){var e,n,r,i={};return t?(eE.forEach(t.split("\n"),(function(t){if(r=t.indexOf(":"),e=eE.trim(t.substr(0,r)).toLowerCase(),n=eE.trim(t.substr(r+1)),e){if(i[e]&&uE.indexOf(e)>=0)return;i[e]="set-cookie"===e?(i[e]?i[e]:[]).concat([n]):i[e]?i[e]+", "+n:n}})),i):i}(c.getAllResponseHeaders()):null;!function(t,e,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(lE("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}((function(t){e(t),s()}),(function(t){n(t),s()}),{data:o&&"text"!==o&&"json"!==o?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:t,request:c}),c=null}}if(c.open(t.method.toUpperCase(),rE(f,t.params,t.paramsSerializer),!0),c.timeout=t.timeout,"onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(d)},c.onabort=function(){c&&(n(lE("Request aborted",t,"ECONNABORTED",c)),c=null)},c.onerror=function(){n(lE("Network Error",t,null,c)),c=null},c.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",r=t.transitional||cE;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(lE(e,t,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},eE.isStandardBrowserEnv()){var p=(t.withCredentials||hE(f))&&t.xsrfCookieName?AE.read(t.xsrfCookieName):void 0;p&&(a[t.xsrfHeaderName]=p)}"setRequestHeader"in c&&eE.forEach(a,(function(t,e){void 0===i&&"content-type"===e.toLowerCase()?delete a[e]:c.setRequestHeader(e,t)})),eE.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),o&&"json"!==o&&(c.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&c.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(r=function(t){c&&(n(!t||t&&t.type?new dE("canceled"):t),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(r),t.signal&&(t.signal.aborted?r():t.signal.addEventListener("abort",r))),i||(i=null),c.send(i)}))},gE={"Content-Type":"application/x-www-form-urlencoded"};function mE(t,e){!eE.isUndefined(t)&&eE.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var yE={transitional:cE,adapter:function(){var t;return("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(t=pE),t}(),transformRequest:[function(t,e){return oE(e,"Accept"),oE(e,"Content-Type"),eE.isFormData(t)||eE.isArrayBuffer(t)||eE.isBuffer(t)||eE.isStream(t)||eE.isFile(t)||eE.isBlob(t)?t:eE.isArrayBufferView(t)?t.buffer:eE.isURLSearchParams(t)?(mE(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):eE.isObject(t)||e&&"application/json"===e["Content-Type"]?(mE(e,"application/json"),function(t,e,n){if(eE.isString(t))try{return(e||JSON.parse)(t),eE.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||yE.transitional,n=e&&e.silentJSONParsing,r=e&&e.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&eE.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(i){if("SyntaxError"===t.name)throw sE(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};eE.forEach(["delete","get","head"],(function(t){yE.headers[t]={}})),eE.forEach(["post","put","patch"],(function(t){yE.headers[t]=eE.merge(gE)}));var vE=yE,bE=function(t,e,n){var r=this||vE;return eE.forEach(n,(function(n){t=n.call(r,t,e)})),t},_E=function(t){return!(!t||!t.__CANCEL__)};function wE(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new dE("canceled")}var EE=function(t){return wE(t),t.headers=t.headers||{},t.data=bE.call(t,t.data,t.headers,t.transformRequest),t.headers=eE.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),eE.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||vE.adapter)(t).then((function(e){return wE(t),e.data=bE.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return _E(e)||(wE(t),e&&e.response&&(e.response.data=bE.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},CE=function(t,e){e=e||{};var n={};function r(t,e){return eE.isPlainObject(t)&&eE.isPlainObject(e)?eE.merge(t,e):eE.isPlainObject(e)?eE.merge({},e):eE.isArray(e)?e.slice():e}function i(n){return eE.isUndefined(e[n])?eE.isUndefined(t[n])?void 0:r(void 0,t[n]):r(t[n],e[n])}function a(t){if(!eE.isUndefined(e[t]))return r(void 0,e[t])}function o(n){return eE.isUndefined(e[n])?eE.isUndefined(t[n])?void 0:r(void 0,t[n]):r(void 0,e[n])}function s(n){return n in e?r(t[n],e[n]):n in t?r(void 0,t[n]):void 0}var c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s};return eE.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=c[t]||i,r=e(t);eE.isUndefined(r)&&e!==s||(n[t]=r)})),n},xE="0.26.1",BE=xE,TE={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){TE[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var kE={};TE.transitional=function(t,e,n){function r(t,e){return"[Axios v"+BE+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,i,a){if(!1===t)throw new Error(r(i," has been removed"+(e?" in "+e:"")));return e&&!kE[i]&&(kE[i]=!0,console.warn(r(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,i,a)}};var SE={assertOptions:function(t,e,n){if("object"!=typeof t)throw new TypeError("options must be an object");for(var r=Object.keys(t),i=r.length;i-- >0;){var a=r[i],o=e[a];if(o){var s=t[a],c=void 0===s||o(s,a,t);if(!0!==c)throw new TypeError("option "+a+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+a)}},validators:TE},IE=SE.validators;function LE(t){this.defaults=t,this.interceptors={request:new aE,response:new aE}}LE.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=CE(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var n=e.transitional;void 0!==n&&SE.assertOptions(n,{silentJSONParsing:IE.transitional(IE.boolean),forcedJSONParsing:IE.transitional(IE.boolean),clarifyTimeoutError:IE.transitional(IE.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(i=i&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var a,o=[];if(this.interceptors.response.forEach((function(t){o.push(t.fulfilled,t.rejected)})),!i){var s=[EE,void 0];for(Array.prototype.unshift.apply(s,r),s=s.concat(o),a=Promise.resolve(e);s.length;)a=a.then(s.shift(),s.shift());return a}for(var c=e;r.length;){var l=r.shift(),A=r.shift();try{c=l(c)}catch(t){A(t);break}}try{a=EE(c)}catch(t){return Promise.reject(t)}for(;o.length;)a=a.then(o.shift(),o.shift());return a},LE.prototype.getUri=function(t){return t=CE(this.defaults,t),rE(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},eE.forEach(["delete","get","head","options"],(function(t){LE.prototype[t]=function(e,n){return this.request(CE(n||{},{method:t,url:e,data:(n||{}).data}))}})),eE.forEach(["post","put","patch"],(function(t){LE.prototype[t]=function(e,n,r){return this.request(CE(r||{},{method:t,url:e,data:n}))}}));var FE=LE;function NE(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;this.promise.then((function(t){if(n._listeners){var e,r=n._listeners.length;for(e=0;e<r;e++)n._listeners[e](t);n._listeners=null}})),this.promise.then=function(t){var e,r=new Promise((function(t){n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t){n.reason||(n.reason=new dE(t),e(n.reason))}))}NE.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},NE.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},NE.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},NE.source=function(){var t;return{token:new NE((function(e){t=e})),cancel:t}};var OE=NE;var DE=function t(e){var n=new FE(e),r=Yw(FE.prototype.request,n);return eE.extend(r,FE.prototype,n),eE.extend(r,n),r.create=function(n){return t(CE(e,n))},r}(vE);DE.Axios=FE,DE.Cancel=dE,DE.CancelToken=OE,DE.isCancel=_E,DE.VERSION=xE,DE.all=function(t){return Promise.all(t)},DE.spread=function(t){return function(e){return t.apply(null,e)}},DE.isAxiosError=function(t){return eE.isObject(t)&&!0===t.isAxiosError};var ME=DE,RE=DE;ME.default=RE;var UE=ME,PE=r((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.RequiredError=e.BaseAPI=e.COLLECTION_FORMATS=e.BASE_PATH=void 0,e.BASE_PATH="https://api.openai.com/v1".replace(/\/+$/,""),e.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"\t",pipes:"|"};e.BaseAPI=class{constructor(t,n=e.BASE_PATH,r=UE.default){this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}};class n extends Error{constructor(t,e){super(e),this.field=t,this.name="RequiredError"}}e.RequiredError=n}));n(PE);PE.RequiredError,PE.BaseAPI,PE.COLLECTION_FORMATS,PE.BASE_PATH;var HE=r((function(t,n){var r=e&&e.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{c(r.next(t))}catch(t){a(t)}}function s(t){try{c(r.throw(t))}catch(t){a(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(n,"__esModule",{value:!0}),n.createRequestFunction=n.toPathString=n.serializeDataIfNeeded=n.setSearchParams=n.setOAuthToObject=n.setBearerAuthToObject=n.setBasicAuthToObject=n.setApiKeyToObject=n.assertParamExists=n.DUMMY_BASE_URL=void 0,n.DUMMY_BASE_URL="https://example.com",n.assertParamExists=function(t,e,n){if(null==n)throw new PE.RequiredError(e,`Required parameter ${e} was null or undefined when calling ${t}.`)},n.setApiKeyToObject=function(t,e,n){return r(this,void 0,void 0,(function*(){if(n&&n.apiKey){const r="function"==typeof n.apiKey?yield n.apiKey(e):yield n.apiKey;t[e]=r}}))},n.setBasicAuthToObject=function(t,e){e&&(e.username||e.password)&&(t.auth={username:e.username,password:e.password})},n.setBearerAuthToObject=function(t,e){return r(this,void 0,void 0,(function*(){if(e&&e.accessToken){const n="function"==typeof e.accessToken?yield e.accessToken():yield e.accessToken;t.Authorization="Bearer "+n}}))},n.setOAuthToObject=function(t,e,n,i){return r(this,void 0,void 0,(function*(){if(i&&i.accessToken){const r="function"==typeof i.accessToken?yield i.accessToken(e,n):yield i.accessToken;t.Authorization="Bearer "+r}}))},n.setSearchParams=function(t,...e){const n=new URLSearchParams(t.search);!function t(e,n,r=""){null!=n&&("object"==typeof n?Array.isArray(n)?n.forEach(n=>t(e,n,r)):Object.keys(n).forEach(i=>t(e,n[i],`${r}${""!==r?".":""}${i}`)):e.has(r)?e.append(r,n):e.set(r,n))}(n,e),t.search=n.toString()},n.serializeDataIfNeeded=function(t,e,n){const r="string"!=typeof t;return(r&&n&&n.isJsonMime?n.isJsonMime(e.headers["Content-Type"]):r)?JSON.stringify(void 0!==t?t:{}):t||""},n.toPathString=function(t){return t.pathname+t.search+t.hash},n.createRequestFunction=function(t,e,n,r){return(i=e,a=n)=>{const o=Object.assign(Object.assign({},t.options),{url:((null==r?void 0:r.basePath)||a)+t.url});return i.request(o)}}}));n(HE);HE.createRequestFunction,HE.toPathString,HE.serializeDataIfNeeded,HE.setSearchParams,HE.setOAuthToObject,HE.setBearerAuthToObject,HE.setBasicAuthToObject,HE.setApiKeyToObject,HE.assertParamExists,HE.DUMMY_BASE_URL;var QE=r((function(t,n){var r=e&&e.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{c(r.next(t))}catch(t){a(t)}}function s(t){try{c(r.throw(t))}catch(t){a(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}c((r=r.apply(t,e||[])).next())}))};Object.defineProperty(n,"__esModule",{value:!0}),n.OpenAIApi=n.OpenAIApiFactory=n.OpenAIApiFp=n.OpenAIApiAxiosParamCreator=n.CreateImageRequestResponseFormatEnum=n.CreateImageRequestSizeEnum=n.ChatCompletionResponseMessageRoleEnum=n.ChatCompletionRequestMessageRoleEnum=void 0,n.ChatCompletionRequestMessageRoleEnum={System:"system",User:"user",Assistant:"assistant",Function:"function"},n.ChatCompletionResponseMessageRoleEnum={System:"system",User:"user",Assistant:"assistant",Function:"function"},n.CreateImageRequestSizeEnum={_256x256:"256x256",_512x512:"512x512",_1024x1024:"1024x1024"},n.CreateImageRequestResponseFormatEnum={Url:"url",B64Json:"b64_json"},n.OpenAIApiAxiosParamCreator=function(t){return{cancelFineTune:(e,n={})=>r(this,void 0,void 0,(function*(){HE.assertParamExists("cancelFineTune","fineTuneId",e);const r="/fine-tunes/{fine_tune_id}/cancel".replace("{fine_tune_id}",encodeURIComponent(String(e))),i=new URL(r,HE.DUMMY_BASE_URL);let a;t&&(a=t.baseOptions);const o=Object.assign(Object.assign({method:"POST"},a),n);HE.setSearchParams(i,{});let s=a&&a.headers?a.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},{}),s),n.headers),{url:HE.toPathString(i),options:o}})),createAnswer:(e,n={})=>r(this,void 0,void 0,(function*(){HE.assertParamExists("createAnswer","createAnswerRequest",e);const r=new URL("/answers",HE.DUMMY_BASE_URL);let i;t&&(i=t.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),o={};o["Content-Type"]="application/json",HE.setSearchParams(r,{});let s=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},o),s),n.headers),a.data=HE.serializeDataIfNeeded(e,a,t),{url:HE.toPathString(r),options:a}})),createChatCompletion:(e,n={})=>r(this,void 0,void 0,(function*(){HE.assertParamExists("createChatCompletion","createChatCompletionRequest",e);const r=new URL("/chat/completions",HE.DUMMY_BASE_URL);let i;t&&(i=t.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),o={};o["Content-Type"]="application/json",HE.setSearchParams(r,{});let s=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},o),s),n.headers),a.data=HE.serializeDataIfNeeded(e,a,t),{url:HE.toPathString(r),options:a}})),createClassification:(e,n={})=>r(this,void 0,void 0,(function*(){HE.assertParamExists("createClassification","createClassificationRequest",e);const r=new URL("/classifications",HE.DUMMY_BASE_URL);let i;t&&(i=t.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),o={};o["Content-Type"]="application/json",HE.setSearchParams(r,{});let s=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},o),s),n.headers),a.data=HE.serializeDataIfNeeded(e,a,t),{url:HE.toPathString(r),options:a}})),createCompletion:(e,n={})=>r(this,void 0,void 0,(function*(){HE.assertParamExists("createCompletion","createCompletionRequest",e);const r=new URL("/completions",HE.DUMMY_BASE_URL);let i;t&&(i=t.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),o={};o["Content-Type"]="application/json",HE.setSearchParams(r,{});let s=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},o),s),n.headers),a.data=HE.serializeDataIfNeeded(e,a,t),{url:HE.toPathString(r),options:a}})),createEdit:(e,n={})=>r(this,void 0,void 0,(function*(){HE.assertParamExists("createEdit","createEditRequest",e);const r=new URL("/edits",HE.DUMMY_BASE_URL);let i;t&&(i=t.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),o={};o["Content-Type"]="application/json",HE.setSearchParams(r,{});let s=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},o),s),n.headers),a.data=HE.serializeDataIfNeeded(e,a,t),{url:HE.toPathString(r),options:a}})),createEmbedding:(e,n={})=>r(this,void 0,void 0,(function*(){HE.assertParamExists("createEmbedding","createEmbeddingRequest",e);const r=new URL("/embeddings",HE.DUMMY_BASE_URL);let i;t&&(i=t.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),o={};o["Content-Type"]="application/json",HE.setSearchParams(r,{});let s=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},o),s),n.headers),a.data=HE.serializeDataIfNeeded(e,a,t),{url:HE.toPathString(r),options:a}})),createFile:(e,n,i={})=>r(this,void 0,void 0,(function*(){HE.assertParamExists("createFile","file",e),HE.assertParamExists("createFile","purpose",n);const r=new URL("/files",HE.DUMMY_BASE_URL);let a;t&&(a=t.baseOptions);const o=Object.assign(Object.assign({method:"POST"},a),i),s={},c=new(t&&t.formDataCtor||FormData);void 0!==e&&c.append("file",e),void 0!==n&&c.append("purpose",n),s["Content-Type"]="multipart/form-data",HE.setSearchParams(r,{});let l=a&&a.headers?a.headers:{};return o.headers=Object.assign(Object.assign(Object.assign(Object.assign({},s),c.getHeaders()),l),i.headers),o.data=c,{url:HE.toPathString(r),options:o}})),createFineTune:(e,n={})=>r(this,void 0,void 0,(function*(){HE.assertParamExists("createFineTune","createFineTuneRequest",e);const r=new URL("/fine-tunes",HE.DUMMY_BASE_URL);let i;t&&(i=t.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),o={};o["Content-Type"]="application/json",HE.setSearchParams(r,{});let s=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},o),s),n.headers),a.data=HE.serializeDataIfNeeded(e,a,t),{url:HE.toPathString(r),options:a}})),createImage:(e,n={})=>r(this,void 0,void 0,(function*(){HE.assertParamExists("createImage","createImageRequest",e);const r=new URL("/images/generations",HE.DUMMY_BASE_URL);let i;t&&(i=t.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),o={};o["Content-Type"]="application/json",HE.setSearchParams(r,{});let s=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},o),s),n.headers),a.data=HE.serializeDataIfNeeded(e,a,t),{url:HE.toPathString(r),options:a}})),createImageEdit:(e,n,i,a,o,s,c,l={})=>r(this,void 0,void 0,(function*(){HE.assertParamExists("createImageEdit","image",e),HE.assertParamExists("createImageEdit","prompt",n);const r=new URL("/images/edits",HE.DUMMY_BASE_URL);let A;t&&(A=t.baseOptions);const u=Object.assign(Object.assign({method:"POST"},A),l),h={},f=new(t&&t.formDataCtor||FormData);void 0!==e&&f.append("image",e),void 0!==i&&f.append("mask",i),void 0!==n&&f.append("prompt",n),void 0!==a&&f.append("n",a),void 0!==o&&f.append("size",o),void 0!==s&&f.append("response_format",s),void 0!==c&&f.append("user",c),h["Content-Type"]="multipart/form-data",HE.setSearchParams(r,{});let d=A&&A.headers?A.headers:{};return u.headers=Object.assign(Object.assign(Object.assign(Object.assign({},h),f.getHeaders()),d),l.headers),u.data=f,{url:HE.toPathString(r),options:u}})),createImageVariation:(e,n,i,a,o,s={})=>r(this,void 0,void 0,(function*(){HE.assertParamExists("createImageVariation","image",e);const r=new URL("/images/variations",HE.DUMMY_BASE_URL);let c;t&&(c=t.baseOptions);const l=Object.assign(Object.assign({method:"POST"},c),s),A={},u=new(t&&t.formDataCtor||FormData);void 0!==e&&u.append("image",e),void 0!==n&&u.append("n",n),void 0!==i&&u.append("size",i),void 0!==a&&u.append("response_format",a),void 0!==o&&u.append("user",o),A["Content-Type"]="multipart/form-data",HE.setSearchParams(r,{});let h=c&&c.headers?c.headers:{};return l.headers=Object.assign(Object.assign(Object.assign(Object.assign({},A),u.getHeaders()),h),s.headers),l.data=u,{url:HE.toPathString(r),options:l}})),createModeration:(e,n={})=>r(this,void 0,void 0,(function*(){HE.assertParamExists("createModeration","createModerationRequest",e);const r=new URL("/moderations",HE.DUMMY_BASE_URL);let i;t&&(i=t.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),o={};o["Content-Type"]="application/json",HE.setSearchParams(r,{});let s=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},o),s),n.headers),a.data=HE.serializeDataIfNeeded(e,a,t),{url:HE.toPathString(r),options:a}})),createSearch:(e,n,i={})=>r(this,void 0,void 0,(function*(){HE.assertParamExists("createSearch","engineId",e),HE.assertParamExists("createSearch","createSearchRequest",n);const r="/engines/{engine_id}/search".replace("{engine_id}",encodeURIComponent(String(e))),a=new URL(r,HE.DUMMY_BASE_URL);let o;t&&(o=t.baseOptions);const s=Object.assign(Object.assign({method:"POST"},o),i),c={};c["Content-Type"]="application/json",HE.setSearchParams(a,{});let l=o&&o.headers?o.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},c),l),i.headers),s.data=HE.serializeDataIfNeeded(n,s,t),{url:HE.toPathString(a),options:s}})),createTranscription:(e,n,i,a,o,s,c={})=>r(this,void 0,void 0,(function*(){HE.assertParamExists("createTranscription","file",e),HE.assertParamExists("createTranscription","model",n);const r=new URL("/audio/transcriptions",HE.DUMMY_BASE_URL);let l;t&&(l=t.baseOptions);const A=Object.assign(Object.assign({method:"POST"},l),c),u={},h=new(t&&t.formDataCtor||FormData);void 0!==e&&h.append("file",e),void 0!==n&&h.append("model",n),void 0!==i&&h.append("prompt",i),void 0!==a&&h.append("response_format",a),void 0!==o&&h.append("temperature",o),void 0!==s&&h.append("language",s),u["Content-Type"]="multipart/form-data",HE.setSearchParams(r,{});let f=l&&l.headers?l.headers:{};return A.headers=Object.assign(Object.assign(Object.assign(Object.assign({},u),h.getHeaders()),f),c.headers),A.data=h,{url:HE.toPathString(r),options:A}})),createTranslation:(e,n,i,a,o,s={})=>r(this,void 0,void 0,(function*(){HE.assertParamExists("createTranslation","file",e),HE.assertParamExists("createTranslation","model",n);const r=new URL("/audio/translations",HE.DUMMY_BASE_URL);let c;t&&(c=t.baseOptions);const l=Object.assign(Object.assign({method:"POST"},c),s),A={},u=new(t&&t.formDataCtor||FormData);void 0!==e&&u.append("file",e),void 0!==n&&u.append("model",n),void 0!==i&&u.append("prompt",i),void 0!==a&&u.append("response_format",a),void 0!==o&&u.append("temperature",o),A["Content-Type"]="multipart/form-data",HE.setSearchParams(r,{});let h=c&&c.headers?c.headers:{};return l.headers=Object.assign(Object.assign(Object.assign(Object.assign({},A),u.getHeaders()),h),s.headers),l.data=u,{url:HE.toPathString(r),options:l}})),deleteFile:(e,n={})=>r(this,void 0,void 0,(function*(){HE.assertParamExists("deleteFile","fileId",e);const r="/files/{file_id}".replace("{file_id}",encodeURIComponent(String(e))),i=new URL(r,HE.DUMMY_BASE_URL);let a;t&&(a=t.baseOptions);const o=Object.assign(Object.assign({method:"DELETE"},a),n);HE.setSearchParams(i,{});let s=a&&a.headers?a.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},{}),s),n.headers),{url:HE.toPathString(i),options:o}})),deleteModel:(e,n={})=>r(this,void 0,void 0,(function*(){HE.assertParamExists("deleteModel","model",e);const r="/models/{model}".replace("{model}",encodeURIComponent(String(e))),i=new URL(r,HE.DUMMY_BASE_URL);let a;t&&(a=t.baseOptions);const o=Object.assign(Object.assign({method:"DELETE"},a),n);HE.setSearchParams(i,{});let s=a&&a.headers?a.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},{}),s),n.headers),{url:HE.toPathString(i),options:o}})),downloadFile:(e,n={})=>r(this,void 0,void 0,(function*(){HE.assertParamExists("downloadFile","fileId",e);const r="/files/{file_id}/content".replace("{file_id}",encodeURIComponent(String(e))),i=new URL(r,HE.DUMMY_BASE_URL);let a;t&&(a=t.baseOptions);const o=Object.assign(Object.assign({method:"GET"},a),n);HE.setSearchParams(i,{});let s=a&&a.headers?a.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},{}),s),n.headers),{url:HE.toPathString(i),options:o}})),listEngines:(e={})=>r(this,void 0,void 0,(function*(){const n=new URL("/engines",HE.DUMMY_BASE_URL);let r;t&&(r=t.baseOptions);const i=Object.assign(Object.assign({method:"GET"},r),e);HE.setSearchParams(n,{});let a=r&&r.headers?r.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},{}),a),e.headers),{url:HE.toPathString(n),options:i}})),listFiles:(e={})=>r(this,void 0,void 0,(function*(){const n=new URL("/files",HE.DUMMY_BASE_URL);let r;t&&(r=t.baseOptions);const i=Object.assign(Object.assign({method:"GET"},r),e);HE.setSearchParams(n,{});let a=r&&r.headers?r.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},{}),a),e.headers),{url:HE.toPathString(n),options:i}})),listFineTuneEvents:(e,n,i={})=>r(this,void 0,void 0,(function*(){HE.assertParamExists("listFineTuneEvents","fineTuneId",e);const r="/fine-tunes/{fine_tune_id}/events".replace("{fine_tune_id}",encodeURIComponent(String(e))),a=new URL(r,HE.DUMMY_BASE_URL);let o;t&&(o=t.baseOptions);const s=Object.assign(Object.assign({method:"GET"},o),i),c={};void 0!==n&&(c.stream=n),HE.setSearchParams(a,c);let l=o&&o.headers?o.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},{}),l),i.headers),{url:HE.toPathString(a),options:s}})),listFineTunes:(e={})=>r(this,void 0,void 0,(function*(){const n=new URL("/fine-tunes",HE.DUMMY_BASE_URL);let r;t&&(r=t.baseOptions);const i=Object.assign(Object.assign({method:"GET"},r),e);HE.setSearchParams(n,{});let a=r&&r.headers?r.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},{}),a),e.headers),{url:HE.toPathString(n),options:i}})),listModels:(e={})=>r(this,void 0,void 0,(function*(){const n=new URL("/models",HE.DUMMY_BASE_URL);let r;t&&(r=t.baseOptions);const i=Object.assign(Object.assign({method:"GET"},r),e);HE.setSearchParams(n,{});let a=r&&r.headers?r.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},{}),a),e.headers),{url:HE.toPathString(n),options:i}})),retrieveEngine:(e,n={})=>r(this,void 0,void 0,(function*(){HE.assertParamExists("retrieveEngine","engineId",e);const r="/engines/{engine_id}".replace("{engine_id}",encodeURIComponent(String(e))),i=new URL(r,HE.DUMMY_BASE_URL);let a;t&&(a=t.baseOptions);const o=Object.assign(Object.assign({method:"GET"},a),n);HE.setSearchParams(i,{});let s=a&&a.headers?a.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},{}),s),n.headers),{url:HE.toPathString(i),options:o}})),retrieveFile:(e,n={})=>r(this,void 0,void 0,(function*(){HE.assertParamExists("retrieveFile","fileId",e);const r="/files/{file_id}".replace("{file_id}",encodeURIComponent(String(e))),i=new URL(r,HE.DUMMY_BASE_URL);let a;t&&(a=t.baseOptions);const o=Object.assign(Object.assign({method:"GET"},a),n);HE.setSearchParams(i,{});let s=a&&a.headers?a.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},{}),s),n.headers),{url:HE.toPathString(i),options:o}})),retrieveFineTune:(e,n={})=>r(this,void 0,void 0,(function*(){HE.assertParamExists("retrieveFineTune","fineTuneId",e);const r="/fine-tunes/{fine_tune_id}".replace("{fine_tune_id}",encodeURIComponent(String(e))),i=new URL(r,HE.DUMMY_BASE_URL);let a;t&&(a=t.baseOptions);const o=Object.assign(Object.assign({method:"GET"},a),n);HE.setSearchParams(i,{});let s=a&&a.headers?a.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},{}),s),n.headers),{url:HE.toPathString(i),options:o}})),retrieveModel:(e,n={})=>r(this,void 0,void 0,(function*(){HE.assertParamExists("retrieveModel","model",e);const r="/models/{model}".replace("{model}",encodeURIComponent(String(e))),i=new URL(r,HE.DUMMY_BASE_URL);let a;t&&(a=t.baseOptions);const o=Object.assign(Object.assign({method:"GET"},a),n);HE.setSearchParams(i,{});let s=a&&a.headers?a.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},{}),s),n.headers),{url:HE.toPathString(i),options:o}}))}},n.OpenAIApiFp=function(t){const e=n.OpenAIApiAxiosParamCreator(t);return{cancelFineTune(n,i){return r(this,void 0,void 0,(function*(){const r=yield e.cancelFineTune(n,i);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))},createAnswer(n,i){return r(this,void 0,void 0,(function*(){const r=yield e.createAnswer(n,i);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))},createChatCompletion(n,i){return r(this,void 0,void 0,(function*(){const r=yield e.createChatCompletion(n,i);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))},createClassification(n,i){return r(this,void 0,void 0,(function*(){const r=yield e.createClassification(n,i);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))},createCompletion(n,i){return r(this,void 0,void 0,(function*(){const r=yield e.createCompletion(n,i);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))},createEdit(n,i){return r(this,void 0,void 0,(function*(){const r=yield e.createEdit(n,i);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))},createEmbedding(n,i){return r(this,void 0,void 0,(function*(){const r=yield e.createEmbedding(n,i);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))},createFile(n,i,a){return r(this,void 0,void 0,(function*(){const r=yield e.createFile(n,i,a);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))},createFineTune(n,i){return r(this,void 0,void 0,(function*(){const r=yield e.createFineTune(n,i);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))},createImage(n,i){return r(this,void 0,void 0,(function*(){const r=yield e.createImage(n,i);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))},createImageEdit(n,i,a,o,s,c,l,A){return r(this,void 0,void 0,(function*(){const r=yield e.createImageEdit(n,i,a,o,s,c,l,A);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))},createImageVariation(n,i,a,o,s,c){return r(this,void 0,void 0,(function*(){const r=yield e.createImageVariation(n,i,a,o,s,c);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))},createModeration(n,i){return r(this,void 0,void 0,(function*(){const r=yield e.createModeration(n,i);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))},createSearch(n,i,a){return r(this,void 0,void 0,(function*(){const r=yield e.createSearch(n,i,a);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))},createTranscription(n,i,a,o,s,c,l){return r(this,void 0,void 0,(function*(){const r=yield e.createTranscription(n,i,a,o,s,c,l);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))},createTranslation(n,i,a,o,s,c){return r(this,void 0,void 0,(function*(){const r=yield e.createTranslation(n,i,a,o,s,c);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))},deleteFile(n,i){return r(this,void 0,void 0,(function*(){const r=yield e.deleteFile(n,i);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))},deleteModel(n,i){return r(this,void 0,void 0,(function*(){const r=yield e.deleteModel(n,i);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))},downloadFile(n,i){return r(this,void 0,void 0,(function*(){const r=yield e.downloadFile(n,i);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))},listEngines(n){return r(this,void 0,void 0,(function*(){const r=yield e.listEngines(n);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))},listFiles(n){return r(this,void 0,void 0,(function*(){const r=yield e.listFiles(n);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))},listFineTuneEvents(n,i,a){return r(this,void 0,void 0,(function*(){const r=yield e.listFineTuneEvents(n,i,a);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))},listFineTunes(n){return r(this,void 0,void 0,(function*(){const r=yield e.listFineTunes(n);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))},listModels(n){return r(this,void 0,void 0,(function*(){const r=yield e.listModels(n);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))},retrieveEngine(n,i){return r(this,void 0,void 0,(function*(){const r=yield e.retrieveEngine(n,i);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))},retrieveFile(n,i){return r(this,void 0,void 0,(function*(){const r=yield e.retrieveFile(n,i);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))},retrieveFineTune(n,i){return r(this,void 0,void 0,(function*(){const r=yield e.retrieveFineTune(n,i);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))},retrieveModel(n,i){return r(this,void 0,void 0,(function*(){const r=yield e.retrieveModel(n,i);return HE.createRequestFunction(r,UE.default,PE.BASE_PATH,t)}))}}},n.OpenAIApiFactory=function(t,e,r){const i=n.OpenAIApiFp(t);return{cancelFineTune:(t,n)=>i.cancelFineTune(t,n).then(t=>t(r,e)),createAnswer:(t,n)=>i.createAnswer(t,n).then(t=>t(r,e)),createChatCompletion:(t,n)=>i.createChatCompletion(t,n).then(t=>t(r,e)),createClassification:(t,n)=>i.createClassification(t,n).then(t=>t(r,e)),createCompletion:(t,n)=>i.createCompletion(t,n).then(t=>t(r,e)),createEdit:(t,n)=>i.createEdit(t,n).then(t=>t(r,e)),createEmbedding:(t,n)=>i.createEmbedding(t,n).then(t=>t(r,e)),createFile:(t,n,a)=>i.createFile(t,n,a).then(t=>t(r,e)),createFineTune:(t,n)=>i.createFineTune(t,n).then(t=>t(r,e)),createImage:(t,n)=>i.createImage(t,n).then(t=>t(r,e)),createImageEdit:(t,n,a,o,s,c,l,A)=>i.createImageEdit(t,n,a,o,s,c,l,A).then(t=>t(r,e)),createImageVariation:(t,n,a,o,s,c)=>i.createImageVariation(t,n,a,o,s,c).then(t=>t(r,e)),createModeration:(t,n)=>i.createModeration(t,n).then(t=>t(r,e)),createSearch:(t,n,a)=>i.createSearch(t,n,a).then(t=>t(r,e)),createTranscription:(t,n,a,o,s,c,l)=>i.createTranscription(t,n,a,o,s,c,l).then(t=>t(r,e)),createTranslation:(t,n,a,o,s,c)=>i.createTranslation(t,n,a,o,s,c).then(t=>t(r,e)),deleteFile:(t,n)=>i.deleteFile(t,n).then(t=>t(r,e)),deleteModel:(t,n)=>i.deleteModel(t,n).then(t=>t(r,e)),downloadFile:(t,n)=>i.downloadFile(t,n).then(t=>t(r,e)),listEngines:t=>i.listEngines(t).then(t=>t(r,e)),listFiles:t=>i.listFiles(t).then(t=>t(r,e)),listFineTuneEvents:(t,n,a)=>i.listFineTuneEvents(t,n,a).then(t=>t(r,e)),listFineTunes:t=>i.listFineTunes(t).then(t=>t(r,e)),listModels:t=>i.listModels(t).then(t=>t(r,e)),retrieveEngine:(t,n)=>i.retrieveEngine(t,n).then(t=>t(r,e)),retrieveFile:(t,n)=>i.retrieveFile(t,n).then(t=>t(r,e)),retrieveFineTune:(t,n)=>i.retrieveFineTune(t,n).then(t=>t(r,e)),retrieveModel:(t,n)=>i.retrieveModel(t,n).then(t=>t(r,e))}};class i extends PE.BaseAPI{cancelFineTune(t,e){return n.OpenAIApiFp(this.configuration).cancelFineTune(t,e).then(t=>t(this.axios,this.basePath))}createAnswer(t,e){return n.OpenAIApiFp(this.configuration).createAnswer(t,e).then(t=>t(this.axios,this.basePath))}createChatCompletion(t,e){return n.OpenAIApiFp(this.configuration).createChatCompletion(t,e).then(t=>t(this.axios,this.basePath))}createClassification(t,e){return n.OpenAIApiFp(this.configuration).createClassification(t,e).then(t=>t(this.axios,this.basePath))}createCompletion(t,e){return n.OpenAIApiFp(this.configuration).createCompletion(t,e).then(t=>t(this.axios,this.basePath))}createEdit(t,e){return n.OpenAIApiFp(this.configuration).createEdit(t,e).then(t=>t(this.axios,this.basePath))}createEmbedding(t,e){return n.OpenAIApiFp(this.configuration).createEmbedding(t,e).then(t=>t(this.axios,this.basePath))}createFile(t,e,r){return n.OpenAIApiFp(this.configuration).createFile(t,e,r).then(t=>t(this.axios,this.basePath))}createFineTune(t,e){return n.OpenAIApiFp(this.configuration).createFineTune(t,e).then(t=>t(this.axios,this.basePath))}createImage(t,e){return n.OpenAIApiFp(this.configuration).createImage(t,e).then(t=>t(this.axios,this.basePath))}createImageEdit(t,e,r,i,a,o,s,c){return n.OpenAIApiFp(this.configuration).createImageEdit(t,e,r,i,a,o,s,c).then(t=>t(this.axios,this.basePath))}createImageVariation(t,e,r,i,a,o){return n.OpenAIApiFp(this.configuration).createImageVariation(t,e,r,i,a,o).then(t=>t(this.axios,this.basePath))}createModeration(t,e){return n.OpenAIApiFp(this.configuration).createModeration(t,e).then(t=>t(this.axios,this.basePath))}createSearch(t,e,r){return n.OpenAIApiFp(this.configuration).createSearch(t,e,r).then(t=>t(this.axios,this.basePath))}createTranscription(t,e,r,i,a,o,s){return n.OpenAIApiFp(this.configuration).createTranscription(t,e,r,i,a,o,s).then(t=>t(this.axios,this.basePath))}createTranslation(t,e,r,i,a,o){return n.OpenAIApiFp(this.configuration).createTranslation(t,e,r,i,a,o).then(t=>t(this.axios,this.basePath))}deleteFile(t,e){return n.OpenAIApiFp(this.configuration).deleteFile(t,e).then(t=>t(this.axios,this.basePath))}deleteModel(t,e){return n.OpenAIApiFp(this.configuration).deleteModel(t,e).then(t=>t(this.axios,this.basePath))}downloadFile(t,e){return n.OpenAIApiFp(this.configuration).downloadFile(t,e).then(t=>t(this.axios,this.basePath))}listEngines(t){return n.OpenAIApiFp(this.configuration).listEngines(t).then(t=>t(this.axios,this.basePath))}listFiles(t){return n.OpenAIApiFp(this.configuration).listFiles(t).then(t=>t(this.axios,this.basePath))}listFineTuneEvents(t,e,r){return n.OpenAIApiFp(this.configuration).listFineTuneEvents(t,e,r).then(t=>t(this.axios,this.basePath))}listFineTunes(t){return n.OpenAIApiFp(this.configuration).listFineTunes(t).then(t=>t(this.axios,this.basePath))}listModels(t){return n.OpenAIApiFp(this.configuration).listModels(t).then(t=>t(this.axios,this.basePath))}retrieveEngine(t,e){return n.OpenAIApiFp(this.configuration).retrieveEngine(t,e).then(t=>t(this.axios,this.basePath))}retrieveFile(t,e){return n.OpenAIApiFp(this.configuration).retrieveFile(t,e).then(t=>t(this.axios,this.basePath))}retrieveFineTune(t,e){return n.OpenAIApiFp(this.configuration).retrieveFineTune(t,e).then(t=>t(this.axios,this.basePath))}retrieveModel(t,e){return n.OpenAIApiFp(this.configuration).retrieveModel(t,e).then(t=>t(this.axios,this.basePath))}}n.OpenAIApi=i}));n(QE);QE.OpenAIApi,QE.OpenAIApiFactory,QE.OpenAIApiFp,QE.OpenAIApiAxiosParamCreator,QE.CreateImageRequestResponseFormatEnum,QE.CreateImageRequestSizeEnum,QE.ChatCompletionResponseMessageRoleEnum,QE.ChatCompletionRequestMessageRoleEnum;var GE="Node.js library for the OpenAI API",jE={type:"git",url:"git@github.com:openai/openai-node.git"},$E=["openai","open","ai","gpt-3","gpt3"],KE="./dist/index.js",YE="./dist/index.d.ts",zE={build:"tsc --outDir dist/"},WE={axios:"^0.26.0","form-data":"^4.0.0"},VE={"@types/node":"^12.11.5",typescript:"^3.6.4"},qE={name:"openai",version:"3.3.0",description:GE,repository:jE,keywords:$E,author:"OpenAI",license:"MIT",main:KE,types:YE,scripts:zE,dependencies:WE,devDependencies:VE},XE=Object.freeze({__proto__:null,name:"openai",version:"3.3.0",description:GE,repository:jE,keywords:$E,author:"OpenAI",license:"MIT",main:KE,types:YE,scripts:zE,dependencies:WE,devDependencies:VE,default:qE}),JE="object"==typeof self?self.FormData:window.FormData,ZE=i(XE),tC=r((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Configuration=void 0;e.Configuration=class{constructor(t={}){this.apiKey=t.apiKey,this.organization=t.organization,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.baseOptions=t.baseOptions,this.formDataCtor=t.formDataCtor,this.baseOptions||(this.baseOptions={}),this.baseOptions.headers=Object.assign({"User-Agent":"OpenAI/NodeJS/"+ZE.version,Authorization:"Bearer "+this.apiKey},this.baseOptions.headers),this.organization&&(this.baseOptions.headers["OpenAI-Organization"]=this.organization),this.formDataCtor||(this.formDataCtor=JE)}isJsonMime(t){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==t&&(e.test(t)||"application/json-patch+json"===t.toLowerCase())}}}));n(tC);tC.Configuration;var eC,nC,rC=n(r((function(t,n){var r=e&&e.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=e&&e.__exportStar||function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||r(e,t,n)};Object.defineProperty(n,"__esModule",{value:!0}),i(QE,n),i(tC,n)})));function iC(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var aC="complement",oC="summary",sC=function(t){ca(n,t);var e=iC(n);function n(t){var r,i,a;Ji(this,n),(a=e.call(this,t)).setName("chatgpt","chatgpt"),a.noIcon=!0,a.subMenuConfig=[{iconName:a.locale.complement,name:aC,onclick:Pa(r=a.bindSubClick).call(r,na(a),aC)},{iconName:a.locale.summary,name:oC,onclick:Pa(i=a.bindSubClick).call(i,na(a),oC)}];var o=a.$cherry.options.openai||{},s=o.apiKey,c=void 0===s?"":s,l=o.proxy,A=(l=void 0===l?{}:l).host,u=void 0===A?"":A,h=l.port,f=void 0===h?"":h,d=o.ignoreError;if(c){var p=new rC.OpenAIApi(new rC.Configuration({apiKey:c}));a.openai=p}return u&&f&&(a.proxy={host:u,port:f}),a.ignoreError=d,a}return ta(n,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"onClick",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(e)switch(e){case aC:if(!this.openai)return;this.queryOpenAIApi(aC,t);break;case oC:this.queryOpenAIApi(oC,t);break;default:return}}},{key:"concatText",value:function(t,e){var n,r,i,a,o;this.button.className=this.button.className.replace("icon-loading loading",""),this.button.innerText=this.button.title,null===(n=this.editor)||void 0===n||null===(r=n.editor)||void 0===r||r.replaceSelection(Da(i="".concat(t||""," \n")).call(i,e)),null===(a=this.editor)||void 0===a||null===(o=a.editor)||void 0===o||o.focus()}},{key:"queryOpenAIApi",value:function(t,e){var n=this;if(this.openai&&(this.button=this.$cherry.wrapperDom.getElementsByClassName("cherry-toolbar-chatgpt")[0],!/icon-loading loading/.test(this.button.className))){this.button.className+=" icon-loading loading",this.button.innerText="";var r=e||this.$cherry.editor.editor.getValue();AC[t].apply(this,[r]).then((function(t){var r,i,a,o;return n.concatText(e,(null===(r=t.data)||void 0===r||null===(i=r.choices)||void 0===i||null===(a=i[0])||void 0===a||null===(o=a.message)||void 0===o?void 0:o.content)||"")})).catch((function(t){var r,i,a,o=(null==t||null===(r=t.response)||void 0===r||null===(i=r.data)||void 0===i||null===(a=i.error)||void 0===a?void 0:a.message)||"";o&&!1===n.ignoreError&&n.concatText(e,o)}))}}}]),n}(t_),cC=(Fa(eC={},aC,(function(t,e){return"zh_CN"===e?"请续写以下文字: ".concat(t):"continue writing with the following text: ".concat(t)})),Fa(eC,oC,(function(t,e){return"zh_CN"===e?"请总结以下文字: ".concat(t):"summary the following text: ".concat(t)})),eC);function lC(t,e){return this.openai.createChatCompletion({model:"gpt-3.5-turbo",messages:[{role:"user",content:cC[t](e,this.$cherry.options.locale||"")}]},{proxy:this.proxy})}var AC=(Fa(nC={},aC,(function(t){return lC.apply(this,[aC,t])})),Fa(nC,oC,(function(t){return lC.apply(this,[oC,t])})),nC);function uC(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var hC=function(t){ca(n,t);var e=uC(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).previewer=t.previewer,r.updateMarkdown=!1,r.setName("mobilePreview","phone"),r}return ta(n,[{key:"onClick",value:function(){this.previewer.removeScroll();var t=this.previewer.getDomContainer();this.previewer.isMobilePreview?t.parentNode.innerHTML=t.innerHTML:t.innerHTML="<div class='cherry-mobile-previewer-content'>".concat(t.innerHTML,"</div>"),this.previewer.isMobilePreview=!this.previewer.isMobilePreview,this.previewer.bindScroll()}}]),n}(t_),fC=Error,dC=b("".replace),pC=String(fC("zxcasd").stack),gC=/\n\s*at [^:]*:[^\n]*/,mC=gC.test(pC),yC=function(t,e){if(mC&&"string"==typeof t&&!fC.prepareStackTrace)for(;e--;)t=dC(t,gC,"");return t},vC=function(t,e){U(e)&&"cause"in e&&Wt(t,"cause",e.cause)},bC=function(t,e){return void 0===t?arguments.length<2?"":e:pn(t)},_C=!A((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",k(1,7)),7!==t.stack)})),wC=bt("toStringTag"),EC=l.Error,CC=[].push,xC=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,i=G(BC,this);Ci?n=Ci(new EC,i?di(this):BC):(n=i?this:Je(BC),Wt(n,wC,"Error")),void 0!==e&&Wt(n,"message",bC(e)),_C&&Wt(n,"stack",yC(n.stack,1)),vC(n,r);var a=[];return uh(t,CC,{that:a}),Wt(n,"errors",a),n};Ci?Ci(xC,EC):function(t,e,n){for(var r=Ki(e),i=zt.f,a=It.f,o=0;o<r.length;o++){var s=r[o];ut(t,s)||n&&ut(n,s)||i(t,s,a(e,s))}}(xC,EC,{name:!0});var BC=xC.prototype=Je(EC.prototype,{constructor:k(1,xC),message:k(1,""),name:k(1,"AggregateError")});Xt({global:!0,constructor:!0,arity:2},{AggregateError:xC});var TC,kC,SC,IC,LC=/(?:ipad|iphone|ipod).*applewebkit/i.test(j),FC=l.setImmediate,NC=l.clearImmediate,OC=l.process,DC=l.Dispatch,MC=l.Function,RC=l.MessageChannel,UC=l.String,PC=0,HC={};try{TC=l.location}catch(t){}var QC=function(t){if(ut(HC,t)){var e=HC[t];delete HC[t],e()}},GC=function(t){return function(){QC(t)}},jC=function(t){QC(t.data)},$C=function(t){l.postMessage(UC(t),TC.protocol+"//"+TC.host)};FC&&NC||(FC=function(t){Qa(arguments.length,1);var e=_(t)?t:MC(t),n=Jt(arguments,1);return HC[++PC]=function(){p(e,void 0,n)},kC(PC),PC},NC=function(t){delete HC[t]},fd?kC=function(t){OC.nextTick(GC(t))}:DC&&DC.now?kC=function(t){DC.now(GC(t))}:RC&&!LC?(IC=(SC=new RC).port2,SC.port1.onmessage=jC,kC=Pt(IC.postMessage,IC)):l.addEventListener&&_(l.postMessage)&&!l.importScripts&&TC&&"file:"!==TC.protocol&&!A($C)?(kC=$C,l.addEventListener("message",jC,!1)):kC="onreadystatechange"in Tt("script")?function(t){$e.appendChild(Tt("script")).onreadystatechange=function(){$e.removeChild(this),QC(t)}}:function(t){setTimeout(GC(t),0)});var KC,YC,zC,WC,VC,qC,XC,JC,ZC={set:FC,clear:NC},tx=/ipad|iphone|ipod/i.test(j)&&void 0!==l.Pebble,ex=/web0s(?!.*chrome)/i.test(j),nx=It.f,rx=ZC.set,ix=l.MutationObserver||l.WebKitMutationObserver,ax=l.document,ox=l.process,sx=l.Promise,cx=nx(l,"queueMicrotask"),lx=cx&&cx.value;lx||(KC=function(){var t,e;for(fd&&(t=ox.domain)&&t.exit();YC;){e=YC.fn,YC=YC.next;try{e()}catch(t){throw YC?WC():zC=void 0,t}}zC=void 0,t&&t.enter()},LC||fd||ex||!ix||!ax?!tx&&sx&&sx.resolve?((XC=sx.resolve(void 0)).constructor=sx,JC=Pt(XC.then,XC),WC=function(){JC(KC)}):fd?WC=function(){ox.nextTick(KC)}:(rx=Pt(rx,l),WC=function(){rx(KC)}):(VC=!0,qC=ax.createTextNode(""),new ix(KC).observe(qC,{characterData:!0}),WC=function(){qC.data=VC=!VC}));var Ax=lx||function(t){var e={fn:t,next:void 0};zC&&(zC.next=e),YC||(YC=e,WC()),zC=e},ux=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},hx=function(){this.head=null,this.tail=null};hx.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var fx,dx,px=hx,gx=l.Promise,mx="object"==typeof window&&"object"!=typeof Deno,yx=gx&&gx.prototype,vx=bt("species"),bx=!1,_x=_(l.PromiseRejectionEvent),wx={CONSTRUCTOR:Rt("Promise",(function(){var t=he(gx),e=t!==String(gx);if(!e&&66===W)return!0;if(!yx.catch||!yx.finally)return!0;if(W>=51&&/native code/.test(t))return!1;var n=new gx((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[vx]=r,!(bx=n.then((function(){}))instanceof r)||!e&&mx&&!_x})),REJECTION_EVENT:_x,SUBCLASSING:bx},Ex=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=nt(e),this.reject=nt(n)},Cx={f:function(t){return new Ex(t)}},xx=ZC.set,Bx=wx.CONSTRUCTOR,Tx=wx.REJECTION_EVENT,kx=$n.getterFor("Promise"),Sx=$n.set,Ix=gx&&gx.prototype,Lx=gx,Fx=Ix,Nx=l.TypeError,Ox=l.document,Dx=l.process,Mx=Cx.f,Rx=Mx,Ux=!!(Ox&&Ox.createEvent&&l.dispatchEvent),Px=function(t){var e;return!(!U(t)||!_(e=t.then))&&e},Hx=function(t,e){var n,r,i,a=e.value,o=1==e.state,s=o?t.ok:t.fail,c=t.resolve,l=t.reject,A=t.domain;try{s?(o||(2===e.rejection&&Kx(e),e.rejection=1),!0===s?n=a:(A&&A.enter(),n=s(a),A&&(A.exit(),i=!0)),n===t.promise?l(Nx("Promise-chain cycle")):(r=Px(n))?C(r,n,c,l):c(n)):l(a)}catch(t){A&&!i&&A.exit(),l(t)}},Qx=function(t,e){t.notified||(t.notified=!0,Ax((function(){for(var n,r=t.reactions;n=r.get();)Hx(n,t);t.notified=!1,e&&!t.rejection&&jx(t)})))},Gx=function(t,e,n){var r,i;Ux?((r=Ox.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),l.dispatchEvent(r)):r={promise:e,reason:n},!Tx&&(i=l["on"+t])?i(r):"unhandledrejection"===t&&function(t,e){var n=l.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},jx=function(t){C(xx,l,(function(){var e,n=t.facade,r=t.value;if($x(t)&&(e=ux((function(){fd?Dx.emit("unhandledRejection",r,n):Gx("unhandledrejection",n,r)})),t.rejection=fd||$x(t)?2:1,e.error))throw e.value}))},$x=function(t){return 1!==t.rejection&&!t.parent},Kx=function(t){C(xx,l,(function(){var e=t.facade;fd?Dx.emit("rejectionHandled",e):Gx("rejectionhandled",e,t.value)}))},Yx=function(t,e,n){return function(r){t(e,r,n)}},zx=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Qx(t,!0))},Wx=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw Nx("Promise can't be resolved itself");var r=Px(e);r?Ax((function(){var n={done:!1};try{C(r,e,Yx(Wx,n,t),Yx(zx,n,t))}catch(e){zx(n,e,t)}})):(t.value=e,t.state=1,Qx(t,!1))}catch(e){zx({done:!1},e,t)}}};Bx&&(Fx=(Lx=function(t){fh(this,Fx),nt(t),C(fx,this);var e=kx(this);try{t(Yx(Wx,e),Yx(zx,e))}catch(t){zx(e,t)}}).prototype,(fx=function(t){Sx(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new px,rejection:!1,state:0,value:void 0})}).prototype=Bn(Fx,"then",(function(t,e){var n=kx(this),r=Mx(Fh(this,Lx));return n.parent=!0,r.ok=!_(t)||t,r.fail=_(e)&&e,r.domain=fd?Dx.domain:void 0,0==n.state?n.reactions.add(r):Ax((function(){Hx(r,n)})),r.promise})),dx=function(){var t=new fx,e=kx(t);this.promise=t,this.resolve=Yx(Wx,e),this.reject=Yx(zx,e)},Cx.f=Mx=function(t){return t===Lx||void 0===t?new dx(t):Rx(t)}),Xt({global:!0,constructor:!0,wrap:!0,forced:Bx},{Promise:Lx}),On(Lx,"Promise",!1,!0),_h("Promise");var Vx=wx.CONSTRUCTOR||!fl((function(t){gx.all(t).then(void 0,(function(){}))}));Xt({target:"Promise",stat:!0,forced:Vx},{all:function(t){var e=this,n=Cx.f(e),r=n.resolve,i=n.reject,a=ux((function(){var n=nt(e.resolve),a=[],o=0,s=1;uh(t,(function(t){var c=o++,l=!1;s++,C(n,e,t).then((function(t){l||(l=!0,a[c]=t,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise}});var qx=wx.CONSTRUCTOR;gx&&gx.prototype;Xt({target:"Promise",proto:!0,forced:qx,real:!0},{catch:function(t){return this.then(void 0,t)}}),Xt({target:"Promise",stat:!0,forced:Vx},{race:function(t){var e=this,n=Cx.f(e),r=n.reject,i=ux((function(){var i=nt(e.resolve);uh(t,(function(t){C(i,e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}}),Xt({target:"Promise",stat:!0,forced:wx.CONSTRUCTOR},{reject:function(t){var e=Cx.f(this);return C(e.reject,void 0,t),e.promise}});var Xx=function(t,e){if(jt(t),U(e)&&e.constructor===t)return e;var n=Cx.f(t);return(0,n.resolve)(e),n.promise},Jx=wx.CONSTRUCTOR,Zx=Q("Promise"),tB=!Jx;Xt({target:"Promise",stat:!0,forced:!0},{resolve:function(t){return Xx(tB&&this===Zx?gx:this,t)}}),Xt({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=Cx.f(e),r=n.resolve,i=n.reject,a=ux((function(){var n=nt(e.resolve),i=[],a=0,o=1;uh(t,(function(t){var s=a++,c=!1;o++,C(n,e,t).then((function(t){c||(c=!0,i[s]={status:"fulfilled",value:t},--o||r(i))}),(function(t){c||(c=!0,i[s]={status:"rejected",reason:t},--o||r(i))}))})),--o||r(i)}));return a.error&&i(a.value),n.promise}});Xt({target:"Promise",stat:!0},{any:function(t){var e=this,n=Q("AggregateError"),r=Cx.f(e),i=r.resolve,a=r.reject,o=ux((function(){var r=nt(e.resolve),o=[],s=0,c=1,l=!1;uh(t,(function(t){var A=s++,u=!1;c++,C(r,e,t).then((function(t){u||l||(l=!0,i(t))}),(function(t){u||l||(u=!0,o[A]=t,--c||a(new n(o,"No one promise resolved")))}))})),--c||a(new n(o,"No one promise resolved"))}));return o.error&&a(o.value),r.promise}});var eB=gx&&gx.prototype,nB=!!gx&&A((function(){eB.finally.call({then:function(){}},(function(){}))}));Xt({target:"Promise",proto:!0,real:!0,forced:nB},{finally:function(t){var e=Fh(this,Q("Promise")),n=_(t);return this.then(n?function(n){return Xx(e,t()).then((function(){return n}))}:t,n?function(n){return Xx(e,t()).then((function(){throw n}))}:t)}});var rB=P.Promise,iB=rB;Xt({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=Cx.f(this),n=ux(t);return(n.error?e.reject:e.resolve)(n.value),e.promise}});var aB=iB,oB=n(r((function(t){function e(t,e,n,r,i,a,o){try{var s=t[a](o),c=s.value}catch(t){return void n(t)}s.done?e(c):aB.resolve(c).then(r,i)}t.exports=function(t){return function(){var n=this,r=arguments;return new aB((function(i,a){var o=t.apply(n,r);function s(t){e(o,i,a,s,c,"next",t)}function c(t){e(o,i,a,s,c,"throw",t)}s(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports}))),sB=Gi,cB=b([].reverse),lB=[1,2];Xt({target:"Array",proto:!0,forced:String(lB)===String(lB.reverse())},{reverse:function(){return Kn(this)&&(this.length=this.length),cB(this)}});var AB=Wr("Array").reverse,uB=Array.prototype,hB=function(t){var e=t.reverse;return t===uB||G(uB,t)&&e===uB.reverse?AB:e},fB=r((function(t){var e=xa.default;function n(){t.exports=n=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var r={},i=Object.prototype,a=i.hasOwnProperty,o="function"==typeof pa?pa:{},s=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function A(t,e,n){return Zi(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{A({},"")}catch(t){A=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof d?e:d,a=aa(i.prototype),o=new x(r||[]);return a._invoke=function(t,e,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return T()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=w(o,n);if(s){if(s===f)continue;return s}}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 c=h(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(t,n,o),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=u;var f={};function d(){}function p(){}function g(){}var m={};A(m,s,(function(){return this}));var y=Sa&&Sa(Sa(B([])));y&&y!==i&&a.call(y,s)&&(m=y);var v=g.prototype=d.prototype=aa(m);function b(t){var e;sB(e=["next","throw","return"]).call(e,(function(e){A(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,n){var r;this._invoke=function(i,o){function s(){return new n((function(r,s){!function r(i,o,s,c){var l=h(t[i],t,o);if("throw"!==l.type){var A=l.arg,u=A.value;return u&&"object"==e(u)&&a.call(u,"__await")?n.resolve(u.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):n.resolve(u).then((function(t){A.value=t,s(A)}),(function(t){return r("throw",t,s,c)}))}c(l.arg)}(i,o,r,s)}))}return r=r?r.then(s,s):s()}}function w(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=h(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,f;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],sB(t).call(t,E,this),this.reset(!0)}function B(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(a.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=g,A(v,"constructor",g),A(g,"constructor",p),p.displayName=A(g,l,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return oa?oa(t,g):(t.__proto__=g,A(t,l,"GeneratorFunction")),t.prototype=aa(v),t},r.awrap=function(t){return{__await:t}},b(_.prototype),A(_.prototype,c,(function(){return this})),r.AsyncIterator=_,r.async=function(t,e,n,i,a){void 0===a&&(a=aB);var o=new _(u(t,e,n,i),a);return r.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},b(v),A(v,l,"Generator"),A(v,s,(function(){return this})),A(v,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=[];for(var n in t)e.push(n);return hB(e).call(e),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},r.values=B,x.prototype={constructor:x,reset:function(t){var e;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,sB(e=this.tryEntries).call(e,C),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+zl(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return o.type="throw",o.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:B(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},r}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}));n(fB);var dB=fB(),pB=rB;const gB={xml:!1,decodeEntities:!0},mB={_useHtmlParser2:!0,xmlMode:!0};function yB(t){return(null==t?void 0:t.xml)?"boolean"==typeof t.xml?mB:{...mB,...t.xml}:null!=t?t:void 0}var vB;!function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"}(vB||(vB={}));const bB=vB.Root,_B=vB.Text,wB=vB.Directive,EB=vB.Comment,CB=vB.Script,xB=vB.Style,BB=vB.Tag,TB=vB.CDATA,kB=vB.Doctype;class SB{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(t){this.parent=t}get previousSibling(){return this.prev}set previousSibling(t){this.prev=t}get nextSibling(){return this.next}set nextSibling(t){this.next=t}cloneNode(t=!1){return KB(this,t)}}class IB extends SB{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}}class LB extends IB{constructor(){super(...arguments),this.type=vB.Text}get nodeType(){return 3}}class FB extends IB{constructor(){super(...arguments),this.type=vB.Comment}get nodeType(){return 8}}class NB extends IB{constructor(t,e){super(e),this.name=t,this.type=vB.Directive}get nodeType(){return 1}}class OB extends SB{constructor(t){super(),this.children=t}get firstChild(){var t;return null!==(t=this.children[0])&&void 0!==t?t:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(t){this.children=t}}class DB extends OB{constructor(){super(...arguments),this.type=vB.CDATA}get nodeType(){return 4}}class MB extends OB{constructor(){super(...arguments),this.type=vB.Root}get nodeType(){return 9}}class RB extends OB{constructor(t,e,n=[],r=("script"===t?vB.Script:"style"===t?vB.Style:vB.Tag)){super(n),this.name=t,this.attribs=e,this.type=r}get nodeType(){return 1}get tagName(){return this.name}set tagName(t){this.name=t}get attributes(){return Object.keys(this.attribs).map(t=>{var e,n;return{name:t,value:this.attribs[t],namespace:null===(e=this["x-attribsNamespace"])||void 0===e?void 0:e[t],prefix:null===(n=this["x-attribsPrefix"])||void 0===n?void 0:n[t]}})}}function UB(t){return(e=t).type===vB.Tag||e.type===vB.Script||e.type===vB.Style;var e}function PB(t){return t.type===vB.CDATA}function HB(t){return t.type===vB.Text}function QB(t){return t.type===vB.Comment}function GB(t){return t.type===vB.Directive}function jB(t){return t.type===vB.Root}function $B(t){return Object.prototype.hasOwnProperty.call(t,"children")}function KB(t,e=!1){let n;if(HB(t))n=new LB(t.data);else if(QB(t))n=new FB(t.data);else if(UB(t)){const r=e?YB(t.children):[],i=new RB(t.name,{...t.attribs},r);r.forEach(t=>t.parent=i),null!=t.namespace&&(i.namespace=t.namespace),t["x-attribsNamespace"]&&(i["x-attribsNamespace"]={...t["x-attribsNamespace"]}),t["x-attribsPrefix"]&&(i["x-attribsPrefix"]={...t["x-attribsPrefix"]}),n=i}else if(PB(t)){const r=e?YB(t.children):[],i=new DB(r);r.forEach(t=>t.parent=i),n=i}else if(jB(t)){const r=e?YB(t.children):[],i=new MB(r);r.forEach(t=>t.parent=i),t["x-mode"]&&(i["x-mode"]=t["x-mode"]),n=i}else{if(!GB(t))throw new Error("Not implemented yet: "+t.type);{const e=new NB(t.name,t.data);null!=t["x-name"]&&(e["x-name"]=t["x-name"],e["x-publicId"]=t["x-publicId"],e["x-systemId"]=t["x-systemId"]),n=e}}return n.startIndex=t.startIndex,n.endIndex=t.endIndex,null!=t.sourceCodeLocation&&(n.sourceCodeLocation=t.sourceCodeLocation),n}function YB(t){const e=t.map(t=>KB(t,!0));for(let t=1;t<e.length;t++)e[t].prev=e[t-1],e[t-1].next=e[t];return e}const zB={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class WB{constructor(t,e,n){this.dom=[],this.root=new MB(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof e&&(n=e,e=zB),"object"==typeof t&&(e=t,t=void 0),this.callback=null!=t?t:null,this.options=null!=e?e:zB,this.elementCB=null!=n?n:null}onparserinit(t){this.parser=t}onreset(){this.dom=[],this.root=new MB(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(t){this.handleCallback(t)}onclosetag(){this.lastNode=null;const t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)}onopentag(t,e){const n=this.options.xmlMode?vB.Tag:void 0,r=new RB(t,e,void 0,n);this.addNode(r),this.tagStack.push(r)}ontext(t){const{lastNode:e}=this;if(e&&e.type===vB.Text)e.data+=t,this.options.withEndIndices&&(e.endIndex=this.parser.endIndex);else{const e=new LB(t);this.addNode(e),this.lastNode=e}}oncomment(t){if(this.lastNode&&this.lastNode.type===vB.Comment)return void(this.lastNode.data+=t);const e=new FB(t);this.addNode(e),this.lastNode=e}oncommentend(){this.lastNode=null}oncdatastart(){const t=new LB(""),e=new DB([t]);this.addNode(e),t.parent=e,this.lastNode=t}oncdataend(){this.lastNode=null}onprocessinginstruction(t,e){const n=new NB(t,e);this.addNode(n)}handleCallback(t){if("function"==typeof this.callback)this.callback(t,this.dom);else if(t)throw t}addNode(t){const e=this.tagStack[this.tagStack.length-1],n=e.children[e.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),e.children.push(t),n&&(t.prev=n,n.next=t),t.parent=e,this.lastNode=null}}const VB=/["&'<>$\x80-\uFFFF]/g,qB=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),XB=null!=String.prototype.codePointAt?(t,e)=>t.codePointAt(e):(t,e)=>55296==(64512&t.charCodeAt(e))?1024*(t.charCodeAt(e)-55296)+t.charCodeAt(e+1)-56320+65536:t.charCodeAt(e);function JB(t){let e,n="",r=0;for(;null!==(e=VB.exec(t));){const i=e.index,a=t.charCodeAt(i),o=qB.get(a);void 0!==o?(n+=t.substring(r,i)+o,r=i+1):(n+=`${t.substring(r,i)}&#x${XB(t,i).toString(16)};`,r=VB.lastIndex+=Number(55296==(64512&a)))}return n+t.substr(r)}function ZB(t,e){return function(n){let r,i=0,a="";for(;r=t.exec(n);)i!==r.index&&(a+=n.substring(i,r.index)),a+=e.get(r[0].charCodeAt(0)),i=r.index+1;return a+n.substring(i)}}const tT=ZB(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),eT=ZB(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),nT=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(t=>[t.toLowerCase(),t])),rT=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(t=>[t.toLowerCase(),t])),iT=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function aT(t){return t.replace(/"/g,"&quot;")}const oT=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function sT(t,e={}){const n="length"in t?t:[t];let r="";for(let t=0;t<n.length;t++)r+=cT(n[t],e);return r}function cT(t,e){switch(t.type){case bB:return sT(t.children,e);case kB:case wB:return`<${t.data}>`;case EB:return function(t){return`\x3c!--${t.data}--\x3e`}(t);case TB:return function(t){return`<![CDATA[${t.children[0].data}]]>`}(t);case CB:case xB:case BB:return function(t,e){var n;"foreign"===e.xmlMode&&(t.name=null!==(n=nT.get(t.name))&&void 0!==n?n:t.name,t.parent&&lT.has(t.parent.name)&&(e={...e,xmlMode:!1}));!e.xmlMode&&AT.has(t.name)&&(e={...e,xmlMode:"foreign"});let r="<"+t.name;const i=function(t,e){var n;if(!t)return;const r=!1===(null!==(n=e.encodeEntities)&&void 0!==n?n:e.decodeEntities)?aT:e.xmlMode||"utf8"!==e.encodeEntities?JB:tT;return Object.keys(t).map(n=>{var i,a;const o=null!==(i=t[n])&&void 0!==i?i:"";return"foreign"===e.xmlMode&&(n=null!==(a=rT.get(n))&&void 0!==a?a:n),e.emptyAttrs||e.xmlMode||""!==o?`${n}="${r(o)}"`:n}).join(" ")}(t.attribs,e);i&&(r+=" "+i);0===t.children.length&&(e.xmlMode?!1!==e.selfClosingTags:e.selfClosingTags&&oT.has(t.name))?(e.xmlMode||(r+=" "),r+="/>"):(r+=">",t.children.length>0&&(r+=sT(t.children,e)),!e.xmlMode&&oT.has(t.name)||(r+=`</${t.name}>`));return r}(t,e);case _B:return function(t,e){var n;let r=t.data||"";!1===(null!==(n=e.encodeEntities)&&void 0!==n?n:e.decodeEntities)||!e.xmlMode&&t.parent&&iT.has(t.parent.name)||(r=e.xmlMode||"utf8"!==e.encodeEntities?JB(r):eT(r));return r}(t,e)}}const lT=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),AT=new Set(["svg","math"]);function uT(t,e){return sT(t,e)}function hT(t){return Array.isArray(t)?t.map(hT).join(""):$B(t)&&!QB(t)?hT(t.children):HB(t)?t.data:""}function fT(t){return Array.isArray(t)?t.map(fT).join(""):$B(t)&&(t.type===vB.Tag||PB(t))?fT(t.children):HB(t)?t.data:""}function dT(t){return $B(t)?t.children:[]}function pT(t){return t.parent||null}function gT(t){const e=pT(t);if(null!=e)return dT(e);const n=[t];let{prev:r,next:i}=t;for(;null!=r;)n.unshift(r),({prev:r}=r);for(;null!=i;)n.push(i),({next:i}=i);return n}function mT(t){let{next:e}=t;for(;null!==e&&!UB(e);)({next:e}=e);return e}function yT(t){let{prev:e}=t;for(;null!==e&&!UB(e);)({prev:e}=e);return e}function vT(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){const e=t.parent.children;e.splice(e.lastIndexOf(t),1)}}function bT(t,e,n=!0,r=1/0){return Array.isArray(e)||(e=[e]),_T(t,e,n,r)}function _T(t,e,n,r){const i=[];for(const a of e){if(t(a)&&(i.push(a),--r<=0))break;if(n&&$B(a)&&a.children.length>0){const e=_T(t,a.children,n,r);if(i.push(...e),(r-=e.length)<=0)break}}return i}function wT(t,e,n=!0){let r=null;for(let i=0;i<e.length&&!r;i++){const a=e[i];UB(a)&&(t(a)?r=a:n&&a.children.length>0&&(r=wT(t,a.children,!0)))}return r}const ET={tag_name:t=>"function"==typeof t?e=>UB(e)&&t(e.name):"*"===t?UB:e=>UB(e)&&e.name===t,tag_type:t=>"function"==typeof t?e=>t(e.type):e=>e.type===t,tag_contains:t=>"function"==typeof t?e=>HB(e)&&t(e.data):e=>HB(e)&&e.data===t};function CT(t,e){return"function"==typeof e?n=>UB(n)&&e(n.attribs[t]):n=>UB(n)&&n.attribs[t]===e}function xT(t,e){return n=>t(n)||e(n)}function BT(t){const e=Object.keys(t).map(e=>{const n=t[e];return Object.prototype.hasOwnProperty.call(ET,e)?ET[e](n):CT(e,n)});return 0===e.length?null:e.reduce(xT)}function TT(t,e,n=!0,r=1/0){return bT(ET.tag_name(t),e,n,r)}var kT;function ST(t,e){const n=[],r=[];if(t===e)return 0;let i=$B(t)?t:t.parent;for(;i;)n.unshift(i),i=i.parent;for(i=$B(e)?e:e.parent;i;)r.unshift(i),i=i.parent;const a=Math.min(n.length,r.length);let o=0;for(;o<a&&n[o]===r[o];)o++;if(0===o)return kT.DISCONNECTED;const s=n[o-1],c=s.children,l=n[o],A=r[o];return c.indexOf(l)>c.indexOf(A)?s===e?kT.FOLLOWING|kT.CONTAINED_BY:kT.FOLLOWING:s===t?kT.PRECEDING|kT.CONTAINS:kT.PRECEDING}function IT(t){return(t=t.filter((t,e,n)=>!n.includes(t,e+1))).sort((t,e)=>{const n=ST(t,e);return n&kT.PRECEDING?-1:n&kT.FOLLOWING?1:0}),t}!function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"}(kT||(kT={}));const LT=["url","type","lang"],FT=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function NT(t){return TT("media:content",t).map(t=>{const{attribs:e}=t,n={medium:e.medium,isDefault:!!e.isDefault};for(const t of LT)e[t]&&(n[t]=e[t]);for(const t of FT)e[t]&&(n[t]=parseInt(e[t],10));return e.expression&&(n.expression=e.expression),n})}function OT(t,e){return TT(t,e,!0,1)[0]}function DT(t,e,n=!1){return hT(TT(t,e,n,1)).trim()}function MT(t,e,n,r,i=!1){const a=DT(n,r,i);a&&(t[e]=a)}function RT(t){return"rss"===t||"feed"===t||"rdf:RDF"===t}var UT=Object.freeze({__proto__:null,isTag:UB,isCDATA:PB,isText:HB,isComment:QB,isDocument:jB,hasChildren:$B,getOuterHTML:uT,getInnerHTML:function(t,e){return $B(t)?t.children.map(t=>uT(t,e)).join(""):""},getText:function t(e){return Array.isArray(e)?e.map(t).join(""):UB(e)?"br"===e.name?"\n":t(e.children):PB(e)?t(e.children):HB(e)?e.data:""},textContent:hT,innerText:fT,getChildren:dT,getParent:pT,getSiblings:gT,getAttributeValue:function(t,e){var n;return null===(n=t.attribs)||void 0===n?void 0:n[e]},hasAttrib:function(t,e){return null!=t.attribs&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&null!=t.attribs[e]},getName:function(t){return t.name},nextElementSibling:mT,prevElementSibling:yT,removeElement:vT,replaceElement:function(t,e){const n=e.prev=t.prev;n&&(n.next=e);const r=e.next=t.next;r&&(r.prev=e);const i=e.parent=t.parent;if(i){const n=i.children;n[n.lastIndexOf(t)]=e,t.parent=null}},appendChild:function(t,e){if(vT(e),e.next=null,e.parent=t,t.children.push(e)>1){const n=t.children[t.children.length-2];n.next=e,e.prev=n}else e.prev=null},append:function(t,e){vT(e);const{parent:n}=t,r=t.next;if(e.next=r,e.prev=t,t.next=e,e.parent=n,r){if(r.prev=e,n){const t=n.children;t.splice(t.lastIndexOf(r),0,e)}}else n&&n.children.push(e)},prependChild:function(t,e){if(vT(e),e.parent=t,e.prev=null,1!==t.children.unshift(e)){const n=t.children[1];n.prev=e,e.next=n}else e.next=null},prepend:function(t,e){vT(e);const{parent:n}=t;if(n){const r=n.children;r.splice(r.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=n,e.prev=t.prev,e.next=t,t.prev=e},filter:bT,find:_T,findOneChild:function(t,e){return e.find(t)},findOne:wT,existsOne:function t(e,n){return n.some(n=>UB(n)&&(e(n)||n.children.length>0&&t(e,n.children)))},findAll:function(t,e){var n;const r=[],i=e.filter(UB);let a;for(;a=i.shift();){const e=null===(n=a.children)||void 0===n?void 0:n.filter(UB);e&&e.length>0&&i.unshift(...e),t(a)&&r.push(a)}return r},testElement:function(t,e){const n=BT(t);return!n||n(e)},getElements:function(t,e,n,r=1/0){const i=BT(t);return i?bT(i,e,n,r):[]},getElementById:function(t,e,n=!0){return Array.isArray(e)||(e=[e]),wT(CT("id",t),e,n)},getElementsByTagName:TT,getElementsByTagType:function(t,e,n=!0,r=1/0){return bT(ET.tag_type(t),e,n,r)},removeSubsets:function(t){let e=t.length;for(;--e>=0;){const n=t[e];if(e>0&&t.lastIndexOf(n,e-1)>=0)t.splice(e,1);else for(let r=n.parent;r;r=r.parent)if(t.includes(r)){t.splice(e,1);break}}return t},get DocumentPosition(){return kT},compareDocumentPosition:ST,uniqueSort:IT,getFeed:function(t){const e=OT(RT,t);return e?"feed"===e.name?function(t){var e;const n=t.children,r={type:"atom",items:TT("entry",n).map(t=>{var e;const{children:n}=t,r={media:NT(n)};MT(r,"id","id",n),MT(r,"title","title",n);const i=null===(e=OT("link",n))||void 0===e?void 0:e.attribs.href;i&&(r.link=i);const a=DT("summary",n)||DT("content",n);a&&(r.description=a);const o=DT("updated",n);return o&&(r.pubDate=new Date(o)),r})};MT(r,"id","id",n),MT(r,"title","title",n);const i=null===(e=OT("link",n))||void 0===e?void 0:e.attribs.href;i&&(r.link=i);MT(r,"description","subtitle",n);const a=DT("updated",n);a&&(r.updated=new Date(a));return MT(r,"author","email",n,!0),r}(e):function(t){var e,n;const r=null!==(n=null===(e=OT("channel",t.children))||void 0===e?void 0:e.children)&&void 0!==n?n:[],i={type:t.name.substr(0,3),id:"",items:TT("item",t.children).map(t=>{const{children:e}=t,n={media:NT(e)};MT(n,"id","guid",e),MT(n,"title","title",e),MT(n,"link","link",e),MT(n,"description","description",e);const r=DT("pubDate",e);return r&&(n.pubDate=new Date(r)),n})};MT(i,"title","title",r),MT(i,"link","link",r),MT(i,"description","description",r);const a=DT("lastBuildDate",r);a&&(i.updated=new Date(a));return MT(i,"author","managingEditor",r,!0),i}(e):null}});function PT(t,e,n){return t?t(null!=e?e:t._root.children,null,void 0,n).toString():""}function HT(t){const e=t||(this?this.root():[]);let n="";for(let t=0;t<e.length;t++)n+=hT(e[t]);return n}function QT(t,e){if(e===t)return!1;let n=e;for(;n&&n!==n.parent;)if(n=n.parent,n===t)return!0;return!1}function GT(t){if(Array.isArray(t))return!0;if("object"!=typeof t||!Object.prototype.hasOwnProperty.call(t,"length")||"number"!=typeof t.length||t.length<0)return!1;for(let e=0;e<t.length;e++)if(!(e in t))return!1;return!0}var jT,$T=Object.freeze({__proto__:null,html:function(t,e){return PT(this,function(t,e){return!e&&"object"==typeof t&&null!=t&&!("length"in t)&&!("type"in t)}(t)?void(e=t):t,{...gB,...null==this?void 0:this._options,...yB(null!=e?e:{})})},xml:function(t){return PT(this,t,{...this._options,xmlMode:!0})},text:HT,parseHTML:function(t,e,n="boolean"==typeof e&&e){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e);const r=this.load(t,gB,!1);return n||r("script").remove(),r.root()[0].children.slice()},root:function(){return this(this._root)},contains:QT,merge:function(t,e){if(!GT(t)||!GT(e))return;let n=t.length;const r=+e.length;for(let i=0;i<r;i++)t[n++]=e[i];return t.length=n,t}});function KT(t){return null!=t.cheerio}function YT(t,e){const n=t.length;for(let r=0;r<n;r++)e(t[r],r);return t}function zT(t){const e="length"in t?Array.prototype.map.call(t,t=>KB(t,!0)):[KB(t,!0)],n=new MB(e);return e.forEach(t=>{t.parent=n}),e}function WT(t){const e=t.indexOf("<");if(e<0||e>t.length-3)return!1;const n=t.charCodeAt(e+1);return(n>=jT.LowerA&&n<=jT.LowerZ||n>=jT.UpperA&&n<=jT.UpperZ||n===jT.Exclamation)&&t.includes(">",e+2)}!function(t){t[t.LowerA=97]="LowerA",t[t.LowerZ=122]="LowerZ",t[t.UpperA=65]="UpperA",t[t.UpperZ=90]="UpperZ",t[t.Exclamation=33]="Exclamation"}(jT||(jT={}));const VT=Object.prototype.hasOwnProperty,qT=/\s+/,XT={null:null,true:!0,false:!1},JT=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,ZT=/^{[^]*}$|^\[[^]*]$/;function tk(t,e,n){var r;if(t&&UB(t))return null!==(r=t.attribs)&&void 0!==r||(t.attribs={}),e?VT.call(t.attribs,e)?!n&&JT.test(e)?e:t.attribs[e]:"option"===t.name&&"value"===e?HT(t.children):"input"!==t.name||"radio"!==t.attribs.type&&"checkbox"!==t.attribs.type||"value"!==e?void 0:"on":t.attribs}function ek(t,e,n){null===n?ok(t,e):t.attribs[e]=""+n}function nk(t,e,n){if(t&&UB(t))return e in t?t[e]:!n&&JT.test(e)?void 0!==tk(t,e,!1):tk(t,e,n)}function rk(t,e,n,r){e in t?t[e]=n:ek(t,e,!r&&JT.test(e)?n?"":null:""+n)}function ik(t,e,n){var r;const i=t;null!==(r=i.data)&&void 0!==r||(i.data={}),"object"==typeof e?Object.assign(i.data,e):"string"==typeof e&&void 0!==n&&(i.data[e]=n)}function ak(t,e){let n,r,i;var a;null==e?(n=Object.keys(t.attribs).filter(t=>t.startsWith("data-")),r=n.map(t=>t.slice("data-".length).replace(/[_.-](\w|$)/g,(t,e)=>e.toUpperCase()))):(n=["data-"+(a=e,a.replace(/[A-Z]/g,"-$&").toLowerCase())],r=[e]);for(let e=0;e<n.length;++e){const a=n[e],o=r[e];if(VT.call(t.attribs,a)&&!VT.call(t.data,o)){if(i=t.attribs[a],VT.call(XT,i))i=XT[i];else if(i===String(Number(i)))i=Number(i);else if(ZT.test(i))try{i=JSON.parse(i)}catch(t){}t.data[o]=i}}return null==e?t.data:i}function ok(t,e){t.attribs&&VT.call(t.attribs,e)&&delete t.attribs[e]}function sk(t){return t?t.trim().split(qT):[]}var ck,lk,Ak=Object.freeze({__proto__:null,attr:function(t,e){if("object"==typeof t||void 0!==e){if("function"==typeof e){if("string"!=typeof t)throw new Error("Bad combination of arguments.");return YT(this,(n,r)=>{UB(n)&&ek(n,t,e.call(n,r,n.attribs[t]))})}return YT(this,n=>{UB(n)&&("object"==typeof t?Object.keys(t).forEach(e=>{const r=t[e];ek(n,e,r)}):ek(n,t,e))})}return arguments.length>1?this:tk(this[0],t,this.options.xmlMode)},prop:function(t,e){var n;if("string"==typeof t&&void 0===e)switch(t){case"style":{const t=this.css(),e=Object.keys(t);return e.forEach((e,n)=>{t[n]=e}),t.length=e.length,t}case"tagName":case"nodeName":{const t=this[0];return UB(t)?t.name.toUpperCase():void 0}case"href":case"src":{const e=this[0];if(!UB(e))return;const r=null===(n=e.attribs)||void 0===n?void 0:n[t];return"undefined"==typeof URL||("href"!==t||"a"!==e.tagName&&"link"!==e.name)&&("src"!==t||"img"!==e.tagName&&"iframe"!==e.tagName&&"audio"!==e.tagName&&"video"!==e.tagName&&"source"!==e.tagName)||void 0===r||!this.options.baseURI?r:new URL(r,this.options.baseURI).href}case"innerText":return fT(this[0]);case"textContent":return hT(this[0]);case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return nk(this[0],t,this.options.xmlMode)}if("object"==typeof t||void 0!==e){if("function"==typeof e){if("object"==typeof t)throw new Error("Bad combination of arguments.");return YT(this,(n,r)=>{UB(n)&&rk(n,t,e.call(n,r,nk(n,t,this.options.xmlMode)),this.options.xmlMode)})}return YT(this,n=>{UB(n)&&("object"==typeof t?Object.keys(t).forEach(e=>{const r=t[e];rk(n,e,r,this.options.xmlMode)}):rk(n,t,e,this.options.xmlMode))})}},data:function(t,e){var n;const r=this[0];if(!r||!UB(r))return;const i=r;return null!==(n=i.data)&&void 0!==n||(i.data={}),t?"object"==typeof t||void 0!==e?(YT(this,n=>{UB(n)&&("object"==typeof t?ik(n,t):ik(n,t,e))}),this):VT.call(i.data,t)?i.data[t]:ak(i,t):ak(i)},val:function(t){const e=0===arguments.length,n=this[0];if(!n||!UB(n))return e?void 0:this;switch(n.name){case"textarea":return this.text(t);case"select":{const n=this.find("option:selected");if(!e){if(null==this.attr("multiple")&&"object"==typeof t)return this;this.find("option").removeAttr("selected");const e="object"!=typeof t?[t]:t;for(let t=0;t<e.length;t++)this.find(`option[value="${e[t]}"]`).attr("selected","");return this}return this.attr("multiple")?n.toArray().map(t=>HT(t.children)):n.attr("value")}case"input":case"option":return e?this.attr("value"):this.attr("value",t)}},removeAttr:function(t){const e=sk(t);for(let t=0;t<e.length;t++)YT(this,n=>{UB(n)&&ok(n,e[t])});return this},hasClass:function(t){return this.toArray().some(e=>{const n=UB(e)&&e.attribs.class;let r=-1;if(n&&t.length)for(;(r=n.indexOf(t,r+1))>-1;){const e=r+t.length;if((0===r||qT.test(n[r-1]))&&(e===n.length||qT.test(n[e])))return!0}return!1})},addClass:function t(e){if("function"==typeof e)return YT(this,(n,r)=>{if(UB(n)){const i=n.attribs.class||"";t.call([n],e.call(n,r,i))}});if(!e||"string"!=typeof e)return this;const n=e.split(qT),r=this.length;for(let t=0;t<r;t++){const e=this[t];if(!UB(e))continue;const r=tk(e,"class",!1);if(r){let t=` ${r} `;for(let e=0;e<n.length;e++){const r=n[e]+" ";t.includes(" "+r)||(t+=r)}ek(e,"class",t.trim())}else ek(e,"class",n.join(" ").trim())}return this},removeClass:function t(e){if("function"==typeof e)return YT(this,(n,r)=>{UB(n)&&t.call([n],e.call(n,r,n.attribs.class||""))});const n=sk(e),r=n.length,i=0===arguments.length;return YT(this,t=>{if(UB(t))if(i)t.attribs.class="";else{const e=sk(t.attribs.class);let i=!1;for(let t=0;t<r;t++){const r=e.indexOf(n[t]);r>=0&&(e.splice(r,1),i=!0,t--)}i&&(t.attribs.class=e.join(" "))}})},toggleClass:function t(e,n){if("function"==typeof e)return YT(this,(r,i)=>{UB(r)&&t.call([r],e.call(r,i,r.attribs.class||"",n),n)});if(!e||"string"!=typeof e)return this;const r=e.split(qT),i=r.length,a="boolean"==typeof n?n?1:-1:0,o=this.length;for(let t=0;t<o;t++){const e=this[t];if(!UB(e))continue;const n=sk(e.attribs.class);for(let t=0;t<i;t++){const e=n.indexOf(r[t]);a>=0&&e<0?n.push(r[t]):a<=0&&e>=0&&n.splice(e,1)}e.attribs.class=n.join(" ")}return this}});!function(t){t.Attribute="attribute",t.Pseudo="pseudo",t.PseudoElement="pseudo-element",t.Tag="tag",t.Universal="universal",t.Adjacent="adjacent",t.Child="child",t.Descendant="descendant",t.Parent="parent",t.Sibling="sibling",t.ColumnCombinator="column-combinator"}(ck||(ck={})),function(t){t.Any="any",t.Element="element",t.End="end",t.Equals="equals",t.Exists="exists",t.Hyphen="hyphen",t.Not="not",t.Start="start"}(lk||(lk={}));const uk=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,hk=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,fk=new Map([[126,lk.Element],[94,lk.Start],[36,lk.End],[42,lk.Any],[33,lk.Not],[124,lk.Hyphen]]),dk=new Set(["has","not","matches","is","where","host","host-context"]);function pk(t){switch(t.type){case ck.Adjacent:case ck.Child:case ck.Descendant:case ck.Parent:case ck.Sibling:case ck.ColumnCombinator:return!0;default:return!1}}const gk=new Set(["contains","icontains"]);function mk(t,e,n){const r=parseInt(e,16)-65536;return r!=r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)}function yk(t){return t.replace(hk,mk)}function vk(t){return 39===t||34===t}function bk(t){return 32===t||9===t||10===t||12===t||13===t}function _k(t){const e=[],n=function t(e,n,r){let i=[];function a(t){const e=n.slice(r+t).match(uk);if(!e)throw new Error("Expected name, found "+n.slice(r));const[i]=e;return r+=t+i.length,yk(i)}function o(t){for(r+=t;r<n.length&&bk(n.charCodeAt(r));)r++}function s(){const t=r+=1;let e=1;for(;e>0&&r<n.length;r++)40!==n.charCodeAt(r)||c(r)?41!==n.charCodeAt(r)||c(r)||e--:e++;if(e)throw new Error("Parenthesis not matched");return yk(n.slice(t,r-1))}function c(t){let e=0;for(;92===n.charCodeAt(--t);)e++;return 1==(1&e)}function l(){if(i.length>0&&pk(i[i.length-1]))throw new Error("Did not expect successive traversals.")}function A(t){i.length>0&&i[i.length-1].type===ck.Descendant?i[i.length-1].type=t:(l(),i.push({type:t}))}function u(t,e){i.push({type:ck.Attribute,name:t,action:e,value:a(1),namespace:null,ignoreCase:"quirks"})}function h(){if(i.length&&i[i.length-1].type===ck.Descendant&&i.pop(),0===i.length)throw new Error("Empty sub-selector");e.push(i)}if(o(0),n.length===r)return r;t:for(;r<n.length;){const e=n.charCodeAt(r);switch(e){case 32:case 9:case 10:case 12:case 13:0!==i.length&&i[0].type===ck.Descendant||(l(),i.push({type:ck.Descendant})),o(1);break;case 62:A(ck.Child),o(1);break;case 60:A(ck.Parent),o(1);break;case 126:A(ck.Sibling),o(1);break;case 43:A(ck.Adjacent),o(1);break;case 46:u("class",lk.Element);break;case 35:u("id",lk.Equals);break;case 91:{let t;o(1);let e=null;124===n.charCodeAt(r)?t=a(1):n.startsWith("*|",r)?(e="*",t=a(2)):(t=a(0),124===n.charCodeAt(r)&&61!==n.charCodeAt(r+1)&&(e=t,t=a(1))),o(0);let s=lk.Exists;const l=fk.get(n.charCodeAt(r));if(l){if(s=l,61!==n.charCodeAt(r+1))throw new Error("Expected `=`");o(2)}else 61===n.charCodeAt(r)&&(s=lk.Equals,o(1));let A="",u=null;if("exists"!==s){if(vk(n.charCodeAt(r))){const t=n.charCodeAt(r);let e=r+1;for(;e<n.length&&(n.charCodeAt(e)!==t||c(e));)e+=1;if(n.charCodeAt(e)!==t)throw new Error("Attribute value didn't end");A=yk(n.slice(r+1,e)),r=e+1}else{const t=r;for(;r<n.length&&(!bk(n.charCodeAt(r))&&93!==n.charCodeAt(r)||c(r));)r+=1;A=yk(n.slice(t,r))}o(0);const t=32|n.charCodeAt(r);115===t?(u=!1,o(1)):105===t&&(u=!0,o(1))}if(93!==n.charCodeAt(r))throw new Error("Attribute selector didn't terminate");r+=1;const h={type:ck.Attribute,name:t,action:s,value:A,namespace:e,ignoreCase:u};i.push(h);break}case 58:{if(58===n.charCodeAt(r+1)){i.push({type:ck.PseudoElement,name:a(2).toLowerCase(),data:40===n.charCodeAt(r)?s():null});continue}const e=a(1).toLowerCase();let o=null;if(40===n.charCodeAt(r))if(dk.has(e)){if(vk(n.charCodeAt(r+1)))throw new Error(`Pseudo-selector ${e} cannot be quoted`);if(o=[],r=t(o,n,r+1),41!==n.charCodeAt(r))throw new Error(`Missing closing parenthesis in :${e} (${n})`);r+=1}else{if(o=s(),gk.has(e)){const t=o.charCodeAt(0);t===o.charCodeAt(o.length-1)&&vk(t)&&(o=o.slice(1,-1))}o=yk(o)}i.push({type:ck.Pseudo,name:e,data:o});break}case 44:h(),i=[],o(1);break;default:{if(n.startsWith("/*",r)){const t=n.indexOf("*/",r+2);if(t<0)throw new Error("Comment was not terminated");r=t+2,0===i.length&&o(0);break}let t,s=null;if(42===e)r+=1,t="*";else if(124===e){if(t="",124===n.charCodeAt(r+1)){A(ck.ColumnCombinator),o(2);break}}else{if(!uk.test(n.slice(r)))break t;t=a(0)}124===n.charCodeAt(r)&&124!==n.charCodeAt(r+1)&&(s=t,42===n.charCodeAt(r+1)?(t="*",r+=2):t=a(1)),i.push("*"===t?{type:ck.Universal,namespace:s}:{type:ck.Tag,name:t,namespace:s})}}}return h(),r}(e,""+t,0);if(n<t.length)throw new Error("Unmatched selector: "+t.slice(n));return e}var wk={trueFunc:function(){return!0},falseFunc:function(){return!1}},Ek=wk.trueFunc,Ck=wk.falseFunc;const xk=new Map([[ck.Universal,50],[ck.Tag,30],[ck.Attribute,1],[ck.Pseudo,0]]);function Bk(t){return!xk.has(t.type)}const Tk=new Map([[lk.Exists,10],[lk.Equals,8],[lk.Not,7],[lk.Start,6],[lk.End,6],[lk.Any,5]]);function kk(t){const e=t.map(Sk);for(let n=1;n<t.length;n++){const r=e[n];if(!(r<0))for(let i=n-1;i>=0&&r<e[i];i--){const n=t[i+1];t[i+1]=t[i],t[i]=n,e[i+1]=e[i],e[i]=r}}}function Sk(t){var e,n;let r=null!==(e=xk.get(t.type))&&void 0!==e?e:-1;return t.type===ck.Attribute?(r=null!==(n=Tk.get(t.action))&&void 0!==n?n:4,t.action===lk.Equals&&"id"===t.name&&(r=9),t.ignoreCase&&(r>>=1)):t.type===ck.Pseudo&&(t.data?"has"===t.name||"contains"===t.name?r=0:Array.isArray(t.data)?(r=Math.min(...t.data.map(t=>Math.min(...t.map(Sk)))),r<0&&(r=0)):r=2:r=3),r}const Ik=/[-[\]{}()*+?.,\\^$|#\s]/g;function Lk(t){return t.replace(Ik,"\\$&")}const Fk=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 Nk(t,e){return"boolean"==typeof t.ignoreCase?t.ignoreCase:"quirks"===t.ignoreCase?!!e.quirksMode:!e.xmlMode&&Fk.has(t.name)}const Ok={equals(t,e,n){const{adapter:r}=n,{name:i}=e;let{value:a}=e;return Nk(e,n)?(a=a.toLowerCase(),e=>{const n=r.getAttributeValue(e,i);return null!=n&&n.length===a.length&&n.toLowerCase()===a&&t(e)}):e=>r.getAttributeValue(e,i)===a&&t(e)},hyphen(t,e,n){const{adapter:r}=n,{name:i}=e;let{value:a}=e;const o=a.length;return Nk(e,n)?(a=a.toLowerCase(),function(e){const n=r.getAttributeValue(e,i);return null!=n&&(n.length===o||"-"===n.charAt(o))&&n.substr(0,o).toLowerCase()===a&&t(e)}):function(e){const n=r.getAttributeValue(e,i);return null!=n&&(n.length===o||"-"===n.charAt(o))&&n.substr(0,o)===a&&t(e)}},element(t,e,n){const{adapter:r}=n,{name:i,value:a}=e;if(/\s/.test(a))return wk.falseFunc;const o=new RegExp(`(?:^|\\s)${Lk(a)}(?:$|\\s)`,Nk(e,n)?"i":"");return function(e){const n=r.getAttributeValue(e,i);return null!=n&&n.length>=a.length&&o.test(n)&&t(e)}},exists:(t,{name:e},{adapter:n})=>r=>n.hasAttrib(r,e)&&t(r),start(t,e,n){const{adapter:r}=n,{name:i}=e;let{value:a}=e;const o=a.length;return 0===o?wk.falseFunc:Nk(e,n)?(a=a.toLowerCase(),e=>{const n=r.getAttributeValue(e,i);return null!=n&&n.length>=o&&n.substr(0,o).toLowerCase()===a&&t(e)}):e=>{var n;return!!(null===(n=r.getAttributeValue(e,i))||void 0===n?void 0:n.startsWith(a))&&t(e)}},end(t,e,n){const{adapter:r}=n,{name:i}=e;let{value:a}=e;const o=-a.length;return 0===o?wk.falseFunc:Nk(e,n)?(a=a.toLowerCase(),e=>{var n;return(null===(n=r.getAttributeValue(e,i))||void 0===n?void 0:n.substr(o).toLowerCase())===a&&t(e)}):e=>{var n;return!!(null===(n=r.getAttributeValue(e,i))||void 0===n?void 0:n.endsWith(a))&&t(e)}},any(t,e,n){const{adapter:r}=n,{name:i,value:a}=e;if(""===a)return wk.falseFunc;if(Nk(e,n)){const e=new RegExp(Lk(a),"i");return function(n){const o=r.getAttributeValue(n,i);return null!=o&&o.length>=a.length&&e.test(o)&&t(n)}}return e=>{var n;return!!(null===(n=r.getAttributeValue(e,i))||void 0===n?void 0:n.includes(a))&&t(e)}},not(t,e,n){const{adapter:r}=n,{name:i}=e;let{value:a}=e;return""===a?e=>!!r.getAttributeValue(e,i)&&t(e):Nk(e,n)?(a=a.toLowerCase(),e=>{const n=r.getAttributeValue(e,i);return(null==n||n.length!==a.length||n.toLowerCase()!==a)&&t(e)}):e=>r.getAttributeValue(e,i)!==a&&t(e)}},Dk=new Set([9,10,12,13,32]),Mk="0".charCodeAt(0),Rk="9".charCodeAt(0);function Uk(t){return function(t){const e=t[0],n=t[1]-1;if(n<0&&e<=0)return Ck;if(-1===e)return t=>t<=n;if(0===e)return t=>t===n;if(1===e)return n<0?Ek:t=>t>=n;const r=Math.abs(e),i=(n%r+r)%r;return e>1?t=>t>=n&&t%r===i:t=>t<=n&&t%r===i}(function(t){if("even"===(t=t.trim().toLowerCase()))return[2,0];if("odd"===t)return[2,1];let e=0,n=0,r=a(),i=o();if(e<t.length&&"n"===t.charAt(e)&&(e++,n=r*(null!=i?i:1),s(),e<t.length?(r=a(),s(),i=o()):r=i=0),null===i||e<t.length)throw new Error(`n-th rule couldn't be parsed ('${t}')`);return[n,r*i];function a(){return"-"===t.charAt(e)?(e++,-1):("+"===t.charAt(e)&&e++,1)}function o(){const n=e;let r=0;for(;e<t.length&&t.charCodeAt(e)>=Mk&&t.charCodeAt(e)<=Rk;)r=10*r+(t.charCodeAt(e)-Mk),e++;return e===n?null:r}function s(){for(;e<t.length&&Dk.has(t.charCodeAt(e));)e++}}(t))}function Pk(t,e){return n=>{const r=e.getParent(n);return null!=r&&e.isTag(r)&&t(n)}}const Hk={contains:(t,e,{adapter:n})=>function(r){return t(r)&&n.getText(r).includes(e)},icontains(t,e,{adapter:n}){const r=e.toLowerCase();return function(e){return t(e)&&n.getText(e).toLowerCase().includes(r)}},"nth-child"(t,e,{adapter:n,equals:r}){const i=Uk(e);return i===wk.falseFunc?wk.falseFunc:i===wk.trueFunc?Pk(t,n):function(e){const a=n.getSiblings(e);let o=0;for(let t=0;t<a.length&&!r(e,a[t]);t++)n.isTag(a[t])&&o++;return i(o)&&t(e)}},"nth-last-child"(t,e,{adapter:n,equals:r}){const i=Uk(e);return i===wk.falseFunc?wk.falseFunc:i===wk.trueFunc?Pk(t,n):function(e){const a=n.getSiblings(e);let o=0;for(let t=a.length-1;t>=0&&!r(e,a[t]);t--)n.isTag(a[t])&&o++;return i(o)&&t(e)}},"nth-of-type"(t,e,{adapter:n,equals:r}){const i=Uk(e);return i===wk.falseFunc?wk.falseFunc:i===wk.trueFunc?Pk(t,n):function(e){const a=n.getSiblings(e);let o=0;for(let t=0;t<a.length;t++){const i=a[t];if(r(e,i))break;n.isTag(i)&&n.getName(i)===n.getName(e)&&o++}return i(o)&&t(e)}},"nth-last-of-type"(t,e,{adapter:n,equals:r}){const i=Uk(e);return i===wk.falseFunc?wk.falseFunc:i===wk.trueFunc?Pk(t,n):function(e){const a=n.getSiblings(e);let o=0;for(let t=a.length-1;t>=0;t--){const i=a[t];if(r(e,i))break;n.isTag(i)&&n.getName(i)===n.getName(e)&&o++}return i(o)&&t(e)}},root:(t,e,{adapter:n})=>e=>{const r=n.getParent(e);return(null==r||!n.isTag(r))&&t(e)},scope(t,e,n,r){const{equals:i}=n;return r&&0!==r.length?1===r.length?e=>i(r[0],e)&&t(e):e=>r.includes(e)&&t(e):Hk.root(t,e,n)},hover:Qk("isHovered"),visited:Qk("isVisited"),active:Qk("isActive")};function Qk(t){return function(e,n,{adapter:r}){const i=r[t];return"function"!=typeof i?wk.falseFunc:function(t){return i(t)&&e(t)}}}const Gk={empty:(t,{adapter:e})=>!e.getChildren(t).some(t=>e.isTag(t)||""!==e.getText(t)),"first-child"(t,{adapter:e,equals:n}){if(e.prevElementSibling)return null==e.prevElementSibling(t);const r=e.getSiblings(t).find(t=>e.isTag(t));return null!=r&&n(t,r)},"last-child"(t,{adapter:e,equals:n}){const r=e.getSiblings(t);for(let i=r.length-1;i>=0;i--){if(n(t,r[i]))return!0;if(e.isTag(r[i]))break}return!1},"first-of-type"(t,{adapter:e,equals:n}){const r=e.getSiblings(t),i=e.getName(t);for(let a=0;a<r.length;a++){const o=r[a];if(n(t,o))return!0;if(e.isTag(o)&&e.getName(o)===i)break}return!1},"last-of-type"(t,{adapter:e,equals:n}){const r=e.getSiblings(t),i=e.getName(t);for(let a=r.length-1;a>=0;a--){const o=r[a];if(n(t,o))return!0;if(e.isTag(o)&&e.getName(o)===i)break}return!1},"only-of-type"(t,{adapter:e,equals:n}){const r=e.getName(t);return e.getSiblings(t).every(i=>n(t,i)||!e.isTag(i)||e.getName(i)!==r)},"only-child":(t,{adapter:e,equals:n})=>e.getSiblings(t).every(r=>n(t,r)||!e.isTag(r))};function jk(t,e,n,r){if(null===n){if(t.length>r)throw new Error(`Pseudo-class :${e} requires an argument`)}else if(t.length===r)throw new Error(`Pseudo-class :${e} doesn't have any arguments`)}const $k={"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])"},Kk={};function Yk(t,e){const n=e.getSiblings(t);if(n.length<=1)return[];const r=n.indexOf(t);return r<0||r===n.length-1?[]:n.slice(r+1).filter(e.isTag)}function zk(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}const Wk=(t,e,n,r,i)=>{const a=i(e,zk(n),r);return a===wk.trueFunc?t:a===wk.falseFunc?wk.falseFunc:e=>a(e)&&t(e)},Vk={is:Wk,matches:Wk,where:Wk,not(t,e,n,r,i){const a=i(e,zk(n),r);return a===wk.falseFunc?t:a===wk.trueFunc?wk.falseFunc:e=>!a(e)&&t(e)},has(t,e,n,r,i){const{adapter:a}=n,o=zk(n);o.relativeSelector=!0;const s=e.some(t=>t.some(Bk))?[Kk]:void 0,c=i(e,o,s);if(c===wk.falseFunc)return wk.falseFunc;const l=function(t,e){return t===wk.falseFunc?wk.falseFunc:n=>e.isTag(n)&&t(n)}(c,a);if(s&&c!==wk.trueFunc){const{shouldTestNextSiblings:e=!1}=c;return n=>{if(!t(n))return!1;s[0]=n;const r=a.getChildren(n),i=e?[...r,...Yk(n,a)]:r;return a.existsOne(l,i)}}return e=>t(e)&&a.existsOne(l,a.getChildren(e))}};function qk(t,e){const n=e.getParent(t);return n&&e.isTag(n)?n:null}function Xk(t,e,n,r,i){const{adapter:a,equals:o}=n;switch(e.type){case ck.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case ck.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case ck.Attribute:if(null!=e.namespace)throw new Error("Namespaced attributes are not yet supported by css-select");return n.xmlMode&&!n.lowerCaseAttributeNames||(e.name=e.name.toLowerCase()),Ok[e.action](t,e,n);case ck.Pseudo:return function(t,e,n,r,i){var a;const{name:o,data:s}=e;if(Array.isArray(s)){if(!(o in Vk))throw new Error(`Unknown pseudo-class :${o}(${s})`);return Vk[o](t,s,n,r,i)}const c=null===(a=n.pseudos)||void 0===a?void 0:a[o],l="string"==typeof c?c:$k[o];if("string"==typeof l){if(null!=s)throw new Error(`Pseudo ${o} doesn't have any arguments`);const e=_k(l);return Vk.is(t,e,n,r,i)}if("function"==typeof c)return jk(c,o,s,1),e=>c(e,s)&&t(e);if(o in Hk)return Hk[o](t,s,n,r);if(o in Gk){const e=Gk[o];return jk(e,o,s,2),r=>e(r,n,s)&&t(r)}throw new Error("Unknown pseudo-class :"+o)}(t,e,n,r,i);case ck.Tag:{if(null!=e.namespace)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:r}=e;return n.xmlMode&&!n.lowerCaseTags||(r=r.toLowerCase()),function(e){return a.getName(e)===r&&t(e)}}case ck.Descendant:{if(!1===n.cacheResults||"undefined"==typeof WeakSet)return function(e){let n=e;for(;n=qk(n,a);)if(t(n))return!0;return!1};const e=new WeakSet;return function(n){let r=n;for(;r=qk(r,a);)if(!e.has(r)){if(a.isTag(r)&&t(r))return!0;e.add(r)}return!1}}case"_flexibleDescendant":return function(e){let n=e;do{if(t(n))return!0}while(n=qk(n,a));return!1};case ck.Parent:return function(e){return a.getChildren(e).some(e=>a.isTag(e)&&t(e))};case ck.Child:return function(e){const n=a.getParent(e);return null!=n&&a.isTag(n)&&t(n)};case ck.Sibling:return function(e){const n=a.getSiblings(e);for(let r=0;r<n.length;r++){const i=n[r];if(o(e,i))break;if(a.isTag(i)&&t(i))return!0}return!1};case ck.Adjacent:return a.prevElementSibling?function(e){const n=a.prevElementSibling(e);return null!=n&&t(n)}:function(e){const n=a.getSiblings(e);let r;for(let t=0;t<n.length;t++){const i=n[t];if(o(e,i))break;a.isTag(i)&&(r=i)}return!!r&&t(r)};case ck.Universal:if(null!=e.namespace&&"*"!==e.namespace)throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}function Jk(t){return t.type===ck.Pseudo&&("scope"===t.name||Array.isArray(t.data)&&t.data.some(t=>t.some(Jk)))}const Zk={type:ck.Descendant},tS={type:"_flexibleDescendant"},eS={type:ck.Pseudo,name:"scope",data:null};function nS(t,e,n){var r;t.forEach(kk),n=null!==(r=e.context)&&void 0!==r?r:n;const i=Array.isArray(n),a=n&&(Array.isArray(n)?n:[n]);if(!1!==e.relativeSelector)!function(t,{adapter:e},n){const r=!!(null==n?void 0:n.every(t=>{const n=e.isTag(t)&&e.getParent(t);return t===Kk||n&&e.isTag(n)}));for(const e of t){if(e.length>0&&Bk(e[0])&&e[0].type!==ck.Descendant);else{if(!r||e.some(Jk))continue;e.unshift(Zk)}e.unshift(eS)}}(t,e,a);else if(t.some(t=>t.length>0&&Bk(t[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let o=!1;const s=t.map(t=>{if(t.length>=2){const[e,n]=t;e.type!==ck.Pseudo||"scope"!==e.name||(i&&n.type===ck.Descendant?t[1]=tS:n.type!==ck.Adjacent&&n.type!==ck.Sibling||(o=!0))}return function(t,e,n){var r;return t.reduce((t,r)=>t===wk.falseFunc?wk.falseFunc:Xk(t,r,e,n,nS),null!==(r=e.rootFunc)&&void 0!==r?r:wk.trueFunc)}(t,e,a)}).reduce(rS,wk.falseFunc);return s.shouldTestNextSiblings=o,s}function rS(t,e){return e===wk.falseFunc||t===wk.trueFunc?t:t===wk.falseFunc||e===wk.trueFunc?e:function(n){return t(n)||e(n)}}const iS=(t,e)=>t===e,aS={adapter:UT,equals:iS};const oS=(sS=nS,function(t,e,n){const r=function(t){var e,n,r,i;const a=null!=t?t:aS;return null!==(e=a.adapter)&&void 0!==e||(a.adapter=UT),null!==(n=a.equals)&&void 0!==n||(a.equals=null!==(i=null===(r=a.adapter)||void 0===r?void 0:r.equals)&&void 0!==i?i:iS),a}(e);return sS(t,r,n)});var sS;function cS(t,e,n=!1){return n&&(t=function(t,e){const n=Array.isArray(t)?t.slice(0):[t],r=n.length;for(let t=0;t<r;t++){const r=Yk(n[t],e);n.push(...r)}return n}(t,e)),Array.isArray(t)?e.removeSubsets(t):e.getChildren(t)}const lS=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function AS(t){return"pseudo"===t.type&&(!!lS.has(t.name)||!("not"!==t.name||!Array.isArray(t.data))&&t.data.some(t=>t.some(AS)))}function uS(t){const e=[],n=[];for(const r of t)r.some(AS)?e.push(r):n.push(r);return[n,e]}const hS={type:ck.Universal,namespace:null},fS={type:ck.Pseudo,name:"scope",data:null};function dS(t,e,n={}){return pS([t],e,n)}function pS(t,e,n={}){if("function"==typeof e)return t.some(e);const[r,i]=uS(_k(e));return r.length>0&&t.some(oS(r,n))||i.some(e=>yS(e,t,n).length>0)}function gS(t,e,n={}){return mS(_k(t),e,n)}function mS(t,e,n){if(0===e.length)return[];const[r,i]=uS(t);let a;if(r.length){const t=wS(e,r,n);if(0===i.length)return t;t.length&&(a=new Set(t))}for(let t=0;t<i.length&&(null==a?void 0:a.size)!==e.length;t++){const r=i[t];if(0===(a?e.filter(t=>UB(t)&&!a.has(t)):e).length)break;const o=yS(r,e,n);if(o.length)if(a)o.forEach(t=>a.add(t));else{if(t===i.length-1)return o;a=new Set(o)}}return void 0!==a?a.size===e.length?e:e.filter(t=>a.has(t)):[]}function yS(t,e,n){var r;if(t.some(pk)){const i=null!==(r=n.root)&&void 0!==r?r:function(t){for(;t.parent;)t=t.parent;return t}(e[0]),a={...n,context:e,relativeSelector:!1};return t.push(fS),vS(i,t,a,!0,e.length)}return vS(e,t,n,!1,e.length)}function vS(t,e,n,r,i){const a=e.findIndex(AS),o=e.slice(0,a),s=e[a],c=e.length-1===a?i:1/0,l=function(t,e,n){const r=null!=e?parseInt(e,10):NaN;switch(t){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}}(s.name,s.data,c);if(0===l)return[];const A=(0!==o.length||Array.isArray(t)?0===o.length?(Array.isArray(t)?t:[t]).filter(UB):r||o.some(pk)?bS(t,[o],n,l):wS(t,[o],n):dT(t).filter(UB)).slice(0,l);let u=function(t,e,n,r){const i="string"==typeof n?parseInt(n,10):NaN;switch(t){case"first":case"lt":return e;case"last":return e.length>0?[e[e.length-1]]:e;case"nth":case"eq":return isFinite(i)&&Math.abs(i)<e.length?[i<0?e[e.length+i]:e[i]]:[];case"gt":return isFinite(i)?e.slice(i+1):[];case"even":return e.filter((t,e)=>e%2==0);case"odd":return e.filter((t,e)=>e%2==1);case"not":{const t=new Set(mS(n,e,r));return e.filter(e=>!t.has(e))}}}(s.name,A,s.data,n);if(0===u.length||e.length===a+1)return u;const h=e.slice(a+1),f=h.some(pk);if(f){if(pk(h[0])){const{type:t}=h[0];t!==ck.Sibling&&t!==ck.Adjacent||(u=cS(u,UT,!0)),h.unshift(hS)}n={...n,relativeSelector:!1,rootFunc:t=>u.includes(t)}}else n.rootFunc&&n.rootFunc!==Ek&&(n={...n,rootFunc:Ek});return h.some(AS)?vS(u,h,n,!1,i):f?bS(u,[h],n,i):wS(u,[h],n)}function bS(t,e,n,r){return _S(t,oS(e,n,t),r)}function _S(t,e,n=1/0){return _T(t=>UB(t)&&e(t),cS(t,UT,e.shouldTestNextSiblings),!0,n)}function wS(t,e,n){const r=(Array.isArray(t)?t:[t]).filter(UB);if(0===r.length)return r;const i=oS(e,n);return i===Ek?r:r.filter(i)}const ES=/^\s*[~+]/;function CS(t){return function(e,...n){return function(r){var i;let a=t(e,this);return r&&(a=QS(a,r,this.options.xmlMode,null===(i=this._root)||void 0===i?void 0:i[0])),this._make(this.length>1&&a.length>1?n.reduce((t,e)=>e(t),a):a)}}}const xS=CS((t,e)=>{const n=[];for(let r=0;r<e.length;r++){const i=t(e[r]);n.push(i)}return(new Array).concat(...n)}),BS=CS((t,e)=>{const n=[];for(let r=0;r<e.length;r++){const i=t(e[r]);null!==i&&n.push(i)}return n});function TS(t,...e){let n=null;const r=CS((t,e)=>{const r=[];return YT(e,e=>{for(let i;(i=t(e))&&!(null==n?void 0:n(i,r.length));e=i)r.push(i)}),r})(t,...e);return function(t,e){n="string"==typeof t?e=>dS(e,t,this.options):t?HS(t):null;const i=r.call(this,e);return n=null,i}}function kS(t){return Array.from(new Set(t))}const SS=BS(({parent:t})=>t&&!jB(t)?t:null,kS),IS=xS(t=>{const e=[];for(;t.parent&&!jB(t.parent);)e.push(t.parent),t=t.parent;return e},IT,t=>t.reverse()),LS=TS(({parent:t})=>t&&!jB(t)?t:null,IT,t=>t.reverse());const FS=BS(t=>mT(t)),NS=xS(t=>{const e=[];for(;t.next;)UB(t=t.next)&&e.push(t);return e},kS),OS=TS(t=>mT(t),kS),DS=BS(t=>yT(t)),MS=xS(t=>{const e=[];for(;t.prev;)UB(t=t.prev)&&e.push(t);return e},kS),RS=TS(t=>yT(t),kS),US=xS(t=>gT(t).filter(e=>UB(e)&&e!==t),IT),PS=xS(t=>dT(t).filter(UB),kS);function HS(t){return"function"==typeof t?(e,n)=>t.call(e,n,e):KT(t)?e=>Array.prototype.includes.call(t,e):function(e){return t===e}}function QS(t,e,n,r){return"string"==typeof e?gS(e,t,{xmlMode:n,root:r}):t.filter(HS(e))}var GS=Object.freeze({__proto__:null,find:function(t){var e;if(!t)return this._make([]);const n=this.toArray();if("string"!=typeof t){const e=KT(t)?t.toArray():[t];return this._make(e.filter(t=>n.some(e=>QT(e,t))))}const r=ES.test(t)?n:this.children().toArray(),i={context:n,root:null===(e=this._root)||void 0===e?void 0:e[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(t,e,n={},r=1/0){if("function"==typeof t)return _S(e,t);const[i,a]=uS(_k(t)),o=a.map(t=>vS(e,t,n,!0,r));return i.length&&o.push(bS(e,i,n,r)),0===o.length?[]:1===o.length?o[0]:IT(o.reduce((t,e)=>[...t,...e]))}(t,r,i))},parent:SS,parents:IS,parentsUntil:LS,closest:function(t){var e;const n=[];if(!t)return this._make(n);const r={xmlMode:this.options.xmlMode,root:null===(e=this._root)||void 0===e?void 0:e[0]},i="string"==typeof t?e=>dS(e,t,r):HS(t);return YT(this,t=>{for(;t&&UB(t);){if(i(t,0)){n.includes(t)||n.push(t);break}t=t.parent}}),this._make(n)},next:FS,nextAll:NS,nextUntil:OS,prev:DS,prevAll:MS,prevUntil:RS,siblings:US,children:PS,contents:function(){const t=this.toArray().reduce((t,e)=>$B(e)?t.concat(e.children):t,[]);return this._make(t)},each:function(t){let e=0;const n=this.length;for(;e<n&&!1!==t.call(this[e],e,this[e]);)++e;return this},map:function(t){let e=[];for(let n=0;n<this.length;n++){const r=this[n],i=t.call(r,n,r);null!=i&&(e=e.concat(i))}return this._make(e)},filter:function(t){var e;return this._make(QS(this.toArray(),t,this.options.xmlMode,null===(e=this._root)||void 0===e?void 0:e[0]))},filterArray:QS,is:function(t){const e=this.toArray();return"string"==typeof t?pS(e.filter(UB),t,this.options):!!t&&e.some(HS(t))},not:function(t){let e=this.toArray();if("string"==typeof t){const n=new Set(gS(t,e,this.options));e=e.filter(t=>!n.has(t))}else{const n=HS(t);e=e.filter((t,e)=>!n(t,e))}return this._make(e)},has:function(t){return this.filter("string"==typeof t?`:has(${t})`:(e,n)=>this._make(n).find(t).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(t){var e;return 0===(t=+t)&&this.length<=1?this:(t<0&&(t=this.length+t),this._make(null!==(e=this[t])&&void 0!==e?e:[]))},get:function(t){return null==t?this.toArray():this[t<0?this.length+t:t]},toArray:function(){return Array.prototype.slice.call(this)},index:function(t){let e,n;return null==t?(e=this.parent().children(),n=this[0]):"string"==typeof t?(e=this._make(t),n=this[0]):(e=this,n=KT(t)?t[0]:t),Array.prototype.indexOf.call(e,n)},slice:function(t,e){return this._make(Array.prototype.slice.call(this,t,e))},end:function(){var t;return null!==(t=this.prevObject)&&void 0!==t?t:this._make([])},add:function(t,e){const n=this._make(t,e),r=IT([...this.get(),...n.get()]);return this._make(r)},addBack:function(t){return this.prevObject?this.add(t?this.prevObject.filter(t):this.prevObject):this}});function jS(t,e){const n=Array.isArray(t)?t:[t];e?e.children=n:e=null;for(let t=0;t<n.length;t++){const r=n[t];r.parent&&r.parent.children!==n&&vT(r),e?(r.prev=n[t-1]||null,r.next=n[t+1]||null):r.prev=r.next=null,r.parent=e}return e}function $S(t){return function(...e){const n=this.length-1;return YT(this,(r,i)=>{if(!$B(r))return;const a="function"==typeof e[0]?e[0].call(r,i,this._render(r.children)):e,o=this._makeDomArray(a,i<n);t(o,r.children,r)})}}function KS(t,e,n,r,i){var a,o;const s=[e,n,...r],c=0===e?null:t[e-1],l=e+n>=t.length?null:t[e+n];for(let t=0;t<r.length;++t){const n=r[t],A=n.parent;if(A){const t=A.children.indexOf(n);t>-1&&(A.children.splice(t,1),i===A&&e>t&&s[0]--)}n.parent=i,n.prev&&(n.prev.next=null!==(a=n.next)&&void 0!==a?a:null),n.next&&(n.next.prev=null!==(o=n.prev)&&void 0!==o?o:null),n.prev=0===t?c:r[t-1],n.next=t===r.length-1?l:r[t+1]}return c&&(c.next=r[0]),l&&(l.prev=r[r.length-1]),t.splice(...s)}const YS=$S((t,e,n)=>{KS(e,e.length,0,t,n)}),zS=$S((t,e,n)=>{KS(e,0,0,t,n)});function WS(t){return function(e){const n=this.length-1,r=this.parents().last();for(let i=0;i<this.length;i++){const a=this[i],o="function"==typeof e?e.call(a,i,a):"string"!=typeof e||WT(e)?e:r.find(e).clone(),[s]=this._makeDomArray(o,i<n);if(!s||!$B(s))continue;let c=s,l=0;for(;l<c.children.length;){const t=c.children[l];UB(t)?(c=t,l=0):l++}t(a,c,[s])}return this}}const VS=WS((t,e,n)=>{const{parent:r}=t;if(!r)return;const i=r.children,a=i.indexOf(t);jS([t],e),KS(i,a,0,n,r)}),qS=WS((t,e,n)=>{$B(t)&&(jS(t.children,e),jS(n,t))});var XS=Object.freeze({__proto__:null,_makeDomArray:function(t,e){return null==t?[]:KT(t)?e?zT(t.get()):t.get():Array.isArray(t)?t.reduce((t,n)=>t.concat(this._makeDomArray(n,e)),[]):"string"==typeof t?this._parse(t,this.options,!1,null).children:e?zT([t]):[t]},appendTo:function(t){return(KT(t)?t:this._make(t)).append(this),this},prependTo:function(t){return(KT(t)?t:this._make(t)).prepend(this),this},append:YS,prepend:zS,wrap:VS,wrapInner:qS,unwrap:function(t){return this.parent(t).not("body").each((t,e)=>{this._make(e).replaceWith(e.children)}),this},wrapAll:function(t){const e=this[0];if(e){const n=this._make("function"==typeof t?t.call(e,0,e):t).insertBefore(e);let r;for(let t=0;t<n.length;t++)"tag"===n[t].type&&(r=n[t]);let i=0;for(;r&&i<r.children.length;){const t=r.children[i];"tag"===t.type?(r=t,i=0):i++}r&&this._make(r).append(this)}return this},after:function(...t){const e=this.length-1;return YT(this,(n,r)=>{const{parent:i}=n;if(!$B(n)||!i)return;const a=i.children,o=a.indexOf(n);if(o<0)return;const s="function"==typeof t[0]?t[0].call(n,r,this._render(n.children)):t;KS(a,o+1,0,this._makeDomArray(s,r<e),i)})},insertAfter:function(t){"string"==typeof t&&(t=this._make(t)),this.remove();const e=[];return this._makeDomArray(t).forEach(t=>{const n=this.clone().toArray(),{parent:r}=t;if(!r)return;const i=r.children,a=i.indexOf(t);a<0||(KS(i,a+1,0,n,r),e.push(...n))}),this._make(e)},before:function(...t){const e=this.length-1;return YT(this,(n,r)=>{const{parent:i}=n;if(!$B(n)||!i)return;const a=i.children,o=a.indexOf(n);if(o<0)return;const s="function"==typeof t[0]?t[0].call(n,r,this._render(n.children)):t;KS(a,o,0,this._makeDomArray(s,r<e),i)})},insertBefore:function(t){const e=this._make(t);this.remove();const n=[];return YT(e,t=>{const e=this.clone().toArray(),{parent:r}=t;if(!r)return;const i=r.children,a=i.indexOf(t);a<0||(KS(i,a,0,e,r),n.push(...e))}),this._make(n)},remove:function(t){return YT(t?this.filter(t):this,t=>{vT(t),t.prev=t.next=t.parent=null}),this},replaceWith:function(t){return YT(this,(e,n)=>{const{parent:r}=e;if(!r)return;const i=r.children,a="function"==typeof t?t.call(e,n,e):t,o=this._makeDomArray(a);jS(o,null);const s=i.indexOf(e);KS(i,s,1,o,r),o.includes(e)||(e.parent=e.prev=e.next=null)})},empty:function(){return YT(this,t=>{$B(t)&&(t.children.forEach(t=>{t.next=t.prev=t.parent=null}),t.children.length=0)})},html:function(t){if(void 0===t){const t=this[0];return t&&$B(t)?this._render(t.children):null}return YT(this,e=>{if(!$B(e))return;e.children.forEach(t=>{t.next=t.prev=t.parent=null});jS(KT(t)?t.toArray():this._parse(""+t,this.options,!1,e).children,e)})},toString:function(){return this._render(this)},text:function(t){return void 0===t?HT(this):YT(this,"function"==typeof t?(e,n)=>this._make(e).text(t.call(e,n,HT([e]))):e=>{if(!$B(e))return;e.children.forEach(t=>{t.next=t.prev=t.parent=null});jS(new LB(""+t),e)})},clone:function(){return this._make(zT(this.get()))}});function JS(t,e){if(!t||!UB(t))return;const n=function(t){if(!(t=(t||"").trim()))return{};const e={};let n;for(const r of t.split(";")){const t=r.indexOf(":");if(t<1||t===r.length-1){const t=r.trimEnd();t.length>0&&void 0!==n&&(e[n]+=";"+t)}else n=r.slice(0,t).trim(),e[n]=r.slice(t+1).trim()}return e}(t.attribs.style);if("string"==typeof e)return n[e];if(Array.isArray(e)){const t={};return e.forEach(e=>{null!=n[e]&&(t[e]=n[e])}),t}return n}var ZS=Object.freeze({__proto__:null,css:function(t,e){return null!=t&&null!=e||"object"==typeof t&&!Array.isArray(t)?YT(this,(n,r)=>{UB(n)&&function t(e,n,r,i){if("string"==typeof n){const t=JS(e),o="function"==typeof r?r.call(e,i,t[n]):r;""===o?delete t[n]:null!=o&&(t[n]=o),e.attribs.style=(a=t,Object.keys(a).reduce((t,e)=>`${t}${t?" ":""}${e}: ${a[e]};`,""))}else"object"==typeof n&&Object.keys(n).forEach((r,i)=>{t(e,r,n[r],i)});var a}(n,t,e,r)}):0!==this.length?JS(this[0],t):void 0}});const tI=/%20/g,eI=/\r?\n/g;var nI=Object.freeze({__proto__:null,serialize:function(){return this.serializeArray().map(t=>`${encodeURIComponent(t.name)}=${encodeURIComponent(t.value)}`).join("&").replace(tI,"+")},serializeArray:function(){return this.map((t,e)=>{const n=this._make(e);return UB(e)&&"form"===e.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((t,e)=>{var n;const r=this._make(e),i=r.attr("name"),a=null!==(n=r.val())&&void 0!==n?n:"";return Array.isArray(a)?a.map(t=>({name:i,value:t.replace(eI,"\r\n")})):{name:i,value:a.replace(eI,"\r\n")}}).toArray()}});class rI{constructor(t,e,n){if(this.length=0,this.options=n,this._root=e,t){for(let e=0;e<t.length;e++)this[e]=t[e];this.length=t.length}}}rI.prototype.cheerio="[cheerio object]",rI.prototype.splice=Array.prototype.splice,rI.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(rI.prototype,Ak,GS,XS,ZS,nI);const iI=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 aI;!function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.NUMBER_SIGN=35]="NUMBER_SIGN",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",t[t.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_F=102]="LATIN_SMALL_F",t[t.LATIN_SMALL_X=120]="LATIN_SMALL_X",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",t[t.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"}(aI||(aI={}));const oI="--",sI="[CDATA[",cI="doctype",lI="script",AI="public",uI="system";function hI(t){return t>=55296&&t<=57343}function fI(t){return 32!==t&&10!==t&&13!==t&&9!==t&&12!==t&&t>=1&&t<=31||t>=127&&t<=159}function dI(t){return t>=64976&&t<=65007||iI.has(t)}var pI;!function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",t.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",t.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",t.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",t.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",t.missingDoctypePublicIdentifier="missing-doctype-public-identifier",t.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",t.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",t.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",t.cdataInHtmlContent="cdata-in-html-content",t.incorrectlyOpenedComment="incorrectly-opened-comment",t.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",t.eofInDoctype="eof-in-doctype",t.nestedComment="nested-comment",t.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",t.eofInComment="eof-in-comment",t.incorrectlyClosedComment="incorrectly-closed-comment",t.eofInCdata="eof-in-cdata",t.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",t.nullCharacterReference="null-character-reference",t.surrogateCharacterReference="surrogate-character-reference",t.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",t.controlCharacterReference="control-character-reference",t.noncharacterCharacterReference="noncharacter-character-reference",t.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",t.missingDoctypeName="missing-doctype-name",t.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",t.duplicateAttribute="duplicate-attribute",t.nonConformingDoctype="non-conforming-doctype",t.missingDoctype="missing-doctype",t.misplacedDoctype="misplaced-doctype",t.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",t.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",t.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",t.openElementsLeftAfterEof="open-elements-left-after-eof",t.abandonedHeadElementChild="abandoned-head-element-child",t.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",t.nestedNoscriptInHead="nested-noscript-in-head",t.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"}(pI||(pI={}));class gI{constructor(t){this.handler=t,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(t){const{line:e,col:n,offset:r}=this;return{code:t,startLine:e,endLine:e,startCol:n,endCol:n,startOffset:r,endOffset:r}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const e=this.html.charCodeAt(this.pos+1);if(function(t){return t>=56320&&t<=57343}(e))return this.pos++,this._addGap(),1024*(t-55296)+9216+e}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,aI.EOF;return this._err(pI.surrogateInInputStream),t}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(t,e){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=e}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,e){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(e)return this.html.startsWith(t,this.pos);for(let e=0;e<t.length;e++){if((32|this.html.charCodeAt(this.pos+e))!==t.charCodeAt(e))return!1}return!0}peek(t){const e=this.pos+t;return e>=this.html.length?(this.endOfChunkHit=!this.lastChunkWritten,aI.EOF):this.html.charCodeAt(e)}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,aI.EOF;let t=this.html.charCodeAt(this.pos);if(t===aI.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,aI.LINE_FEED;if(t===aI.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance();this.skipNextNewLine=!1,hI(t)&&(t=this._processSurrogate(t));return null===this.handler.onParseError||t>31&&t<127||t===aI.LINE_FEED||t===aI.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t}_checkForProblematicCharacters(t){fI(t)?this._err(pI.controlCharacterInInputStream):dI(t)&&this._err(pI.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var mI;function yI(t,e){for(let n=t.attrs.length-1;n>=0;n--)if(t.attrs[n].name===e)return t.attrs[n].value;return null}!function(t){t[t.CHARACTER=0]="CHARACTER",t[t.NULL_CHARACTER=1]="NULL_CHARACTER",t[t.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",t[t.START_TAG=3]="START_TAG",t[t.END_TAG=4]="END_TAG",t[t.COMMENT=5]="COMMENT",t[t.DOCTYPE=6]="DOCTYPE",t[t.EOF=7]="EOF",t[t.HIBERNATION=8]="HIBERNATION"}(mI||(mI={}));var vI=r((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.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(vI);var bI=r((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.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(bI);var _I=r((function(t,e){var n;Object.defineProperty(e,"__esModule",{value:!0}),e.replaceCodePoint=e.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 i(t){var e;return t>=55296&&t<=57343||t>1114111?65533:null!==(e=r.get(t))&&void 0!==e?e:t}e.fromCodePoint=null!==(n=String.fromCodePoint)&&void 0!==n?n:function(t){var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+=String.fromCharCode(t)},e.replaceCodePoint=i,e.default=function(t){return(0,e.fromCodePoint)(i(t))}}));n(_I);_I.replaceCodePoint,_I.fromCodePoint;var wI=r((function(t,n){var r=e&&e.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};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 i=r(vI);n.htmlDecodeTree=i.default;var a=r(bI);n.xmlDecodeTree=a.default;var o=r(_I);n.decodeCodePoint=o.default;var s,c,l=_I;function A(t){return function(e,n){for(var r="",i=0,a=0;(a=e.indexOf("&",a))>=0;)if(r+=e.slice(i,a),i=a,a+=1,e.charCodeAt(a)!==s.NUM){for(var l=0,A=1,h=0,f=t[h];a<e.length&&!((h=u(t,f,h+1,e.charCodeAt(a)))<0);a++,A++){var d=(f=t[h])&c.VALUE_LENGTH;if(d){var p;if(n&&e.charCodeAt(a)!==s.SEMI||(l=h,A=0),0===(p=(d>>14)-1))break;h+=p}}if(0!==l)r+=1===(p=(t[l]&c.VALUE_LENGTH)>>14)?String.fromCharCode(t[l]&~c.VALUE_LENGTH):2===p?String.fromCharCode(t[l+1]):String.fromCharCode(t[l+1],t[l+2]),i=a-A+1}else{var g=a+1,m=10,y=e.charCodeAt(g);(y|s.To_LOWER_BIT)===s.LOWER_X&&(m=16,a+=1,g+=1);do{y=e.charCodeAt(++a)}while(y>=s.ZERO&&y<=s.NINE||16===m&&(y|s.To_LOWER_BIT)>=s.LOWER_A&&(y|s.To_LOWER_BIT)<=s.LOWER_F);if(g!==a){var v=e.substring(g,a),b=parseInt(v,m);if(e.charCodeAt(a)===s.SEMI)a+=1;else if(n)continue;r+=(0,o.default)(b),i=a}}return r+e.slice(i)}}function u(t,e,n,r){var i=(e&c.BRANCH_LENGTH)>>7,a=e&c.JUMP_TABLE;if(0===i)return 0!==a&&r===a?n:-1;if(a){var o=r-a;return o<0||o>i?-1:t[n+o]-1}for(var s=n,l=s+i-1;s<=l;){var A=s+l>>>1,u=t[A];if(u<r)s=A+1;else{if(!(u>r))return t[A+i];l=A-1}}return-1}Object.defineProperty(n,"replaceCodePoint",{enumerable:!0,get:function(){return l.replaceCodePoint}}),Object.defineProperty(n,"fromCodePoint",{enumerable:!0,get:function(){return l.fromCodePoint}}),function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.To_LOWER_BIT=32]="To_LOWER_BIT"}(s||(s={})),function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"}(c=n.BinTrieFlags||(n.BinTrieFlags={})),n.determineBranch=u;var h=A(i.default),f=A(a.default);n.decodeHTML=function(t){return h(t,!1)},n.decodeHTMLStrict=function(t){return h(t,!0)},n.decodeXML=function(t){return f(t,!0)}}));n(wI);wI.decodeXML,wI.decodeHTMLStrict,wI.decodeHTML;var EI,CI,xI,BI,TI,kI=wI.determineBranch,SI=wI.BinTrieFlags,II=wI.fromCodePoint,LI=wI.replaceCodePoint,FI=(wI.decodeCodePoint,wI.xmlDecodeTree),NI=wI.htmlDecodeTree;!function(t){t.HTML="http://www.w3.org/1999/xhtml",t.MATHML="http://www.w3.org/1998/Math/MathML",t.SVG="http://www.w3.org/2000/svg",t.XLINK="http://www.w3.org/1999/xlink",t.XML="http://www.w3.org/XML/1998/namespace",t.XMLNS="http://www.w3.org/2000/xmlns/"}(EI||(EI={})),function(t){t.TYPE="type",t.ACTION="action",t.ENCODING="encoding",t.PROMPT="prompt",t.NAME="name",t.COLOR="color",t.FACE="face",t.SIZE="size"}(CI||(CI={})),function(t){t.NO_QUIRKS="no-quirks",t.QUIRKS="quirks",t.LIMITED_QUIRKS="limited-quirks"}(xI||(xI={})),function(t){t.A="a",t.ADDRESS="address",t.ANNOTATION_XML="annotation-xml",t.APPLET="applet",t.AREA="area",t.ARTICLE="article",t.ASIDE="aside",t.B="b",t.BASE="base",t.BASEFONT="basefont",t.BGSOUND="bgsound",t.BIG="big",t.BLOCKQUOTE="blockquote",t.BODY="body",t.BR="br",t.BUTTON="button",t.CAPTION="caption",t.CENTER="center",t.CODE="code",t.COL="col",t.COLGROUP="colgroup",t.DD="dd",t.DESC="desc",t.DETAILS="details",t.DIALOG="dialog",t.DIR="dir",t.DIV="div",t.DL="dl",t.DT="dt",t.EM="em",t.EMBED="embed",t.FIELDSET="fieldset",t.FIGCAPTION="figcaption",t.FIGURE="figure",t.FONT="font",t.FOOTER="footer",t.FOREIGN_OBJECT="foreignObject",t.FORM="form",t.FRAME="frame",t.FRAMESET="frameset",t.H1="h1",t.H2="h2",t.H3="h3",t.H4="h4",t.H5="h5",t.H6="h6",t.HEAD="head",t.HEADER="header",t.HGROUP="hgroup",t.HR="hr",t.HTML="html",t.I="i",t.IMG="img",t.IMAGE="image",t.INPUT="input",t.IFRAME="iframe",t.KEYGEN="keygen",t.LABEL="label",t.LI="li",t.LINK="link",t.LISTING="listing",t.MAIN="main",t.MALIGNMARK="malignmark",t.MARQUEE="marquee",t.MATH="math",t.MENU="menu",t.META="meta",t.MGLYPH="mglyph",t.MI="mi",t.MO="mo",t.MN="mn",t.MS="ms",t.MTEXT="mtext",t.NAV="nav",t.NOBR="nobr",t.NOFRAMES="noframes",t.NOEMBED="noembed",t.NOSCRIPT="noscript",t.OBJECT="object",t.OL="ol",t.OPTGROUP="optgroup",t.OPTION="option",t.P="p",t.PARAM="param",t.PLAINTEXT="plaintext",t.PRE="pre",t.RB="rb",t.RP="rp",t.RT="rt",t.RTC="rtc",t.RUBY="ruby",t.S="s",t.SCRIPT="script",t.SECTION="section",t.SELECT="select",t.SOURCE="source",t.SMALL="small",t.SPAN="span",t.STRIKE="strike",t.STRONG="strong",t.STYLE="style",t.SUB="sub",t.SUMMARY="summary",t.SUP="sup",t.TABLE="table",t.TBODY="tbody",t.TEMPLATE="template",t.TEXTAREA="textarea",t.TFOOT="tfoot",t.TD="td",t.TH="th",t.THEAD="thead",t.TITLE="title",t.TR="tr",t.TRACK="track",t.TT="tt",t.U="u",t.UL="ul",t.SVG="svg",t.VAR="var",t.WBR="wbr",t.XMP="xmp"}(BI||(BI={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.A=1]="A",t[t.ADDRESS=2]="ADDRESS",t[t.ANNOTATION_XML=3]="ANNOTATION_XML",t[t.APPLET=4]="APPLET",t[t.AREA=5]="AREA",t[t.ARTICLE=6]="ARTICLE",t[t.ASIDE=7]="ASIDE",t[t.B=8]="B",t[t.BASE=9]="BASE",t[t.BASEFONT=10]="BASEFONT",t[t.BGSOUND=11]="BGSOUND",t[t.BIG=12]="BIG",t[t.BLOCKQUOTE=13]="BLOCKQUOTE",t[t.BODY=14]="BODY",t[t.BR=15]="BR",t[t.BUTTON=16]="BUTTON",t[t.CAPTION=17]="CAPTION",t[t.CENTER=18]="CENTER",t[t.CODE=19]="CODE",t[t.COL=20]="COL",t[t.COLGROUP=21]="COLGROUP",t[t.DD=22]="DD",t[t.DESC=23]="DESC",t[t.DETAILS=24]="DETAILS",t[t.DIALOG=25]="DIALOG",t[t.DIR=26]="DIR",t[t.DIV=27]="DIV",t[t.DL=28]="DL",t[t.DT=29]="DT",t[t.EM=30]="EM",t[t.EMBED=31]="EMBED",t[t.FIELDSET=32]="FIELDSET",t[t.FIGCAPTION=33]="FIGCAPTION",t[t.FIGURE=34]="FIGURE",t[t.FONT=35]="FONT",t[t.FOOTER=36]="FOOTER",t[t.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",t[t.FORM=38]="FORM",t[t.FRAME=39]="FRAME",t[t.FRAMESET=40]="FRAMESET",t[t.H1=41]="H1",t[t.H2=42]="H2",t[t.H3=43]="H3",t[t.H4=44]="H4",t[t.H5=45]="H5",t[t.H6=46]="H6",t[t.HEAD=47]="HEAD",t[t.HEADER=48]="HEADER",t[t.HGROUP=49]="HGROUP",t[t.HR=50]="HR",t[t.HTML=51]="HTML",t[t.I=52]="I",t[t.IMG=53]="IMG",t[t.IMAGE=54]="IMAGE",t[t.INPUT=55]="INPUT",t[t.IFRAME=56]="IFRAME",t[t.KEYGEN=57]="KEYGEN",t[t.LABEL=58]="LABEL",t[t.LI=59]="LI",t[t.LINK=60]="LINK",t[t.LISTING=61]="LISTING",t[t.MAIN=62]="MAIN",t[t.MALIGNMARK=63]="MALIGNMARK",t[t.MARQUEE=64]="MARQUEE",t[t.MATH=65]="MATH",t[t.MENU=66]="MENU",t[t.META=67]="META",t[t.MGLYPH=68]="MGLYPH",t[t.MI=69]="MI",t[t.MO=70]="MO",t[t.MN=71]="MN",t[t.MS=72]="MS",t[t.MTEXT=73]="MTEXT",t[t.NAV=74]="NAV",t[t.NOBR=75]="NOBR",t[t.NOFRAMES=76]="NOFRAMES",t[t.NOEMBED=77]="NOEMBED",t[t.NOSCRIPT=78]="NOSCRIPT",t[t.OBJECT=79]="OBJECT",t[t.OL=80]="OL",t[t.OPTGROUP=81]="OPTGROUP",t[t.OPTION=82]="OPTION",t[t.P=83]="P",t[t.PARAM=84]="PARAM",t[t.PLAINTEXT=85]="PLAINTEXT",t[t.PRE=86]="PRE",t[t.RB=87]="RB",t[t.RP=88]="RP",t[t.RT=89]="RT",t[t.RTC=90]="RTC",t[t.RUBY=91]="RUBY",t[t.S=92]="S",t[t.SCRIPT=93]="SCRIPT",t[t.SECTION=94]="SECTION",t[t.SELECT=95]="SELECT",t[t.SOURCE=96]="SOURCE",t[t.SMALL=97]="SMALL",t[t.SPAN=98]="SPAN",t[t.STRIKE=99]="STRIKE",t[t.STRONG=100]="STRONG",t[t.STYLE=101]="STYLE",t[t.SUB=102]="SUB",t[t.SUMMARY=103]="SUMMARY",t[t.SUP=104]="SUP",t[t.TABLE=105]="TABLE",t[t.TBODY=106]="TBODY",t[t.TEMPLATE=107]="TEMPLATE",t[t.TEXTAREA=108]="TEXTAREA",t[t.TFOOT=109]="TFOOT",t[t.TD=110]="TD",t[t.TH=111]="TH",t[t.THEAD=112]="THEAD",t[t.TITLE=113]="TITLE",t[t.TR=114]="TR",t[t.TRACK=115]="TRACK",t[t.TT=116]="TT",t[t.U=117]="U",t[t.UL=118]="UL",t[t.SVG=119]="SVG",t[t.VAR=120]="VAR",t[t.WBR=121]="WBR",t[t.XMP=122]="XMP"}(TI||(TI={}));const OI=new Map([[BI.A,TI.A],[BI.ADDRESS,TI.ADDRESS],[BI.ANNOTATION_XML,TI.ANNOTATION_XML],[BI.APPLET,TI.APPLET],[BI.AREA,TI.AREA],[BI.ARTICLE,TI.ARTICLE],[BI.ASIDE,TI.ASIDE],[BI.B,TI.B],[BI.BASE,TI.BASE],[BI.BASEFONT,TI.BASEFONT],[BI.BGSOUND,TI.BGSOUND],[BI.BIG,TI.BIG],[BI.BLOCKQUOTE,TI.BLOCKQUOTE],[BI.BODY,TI.BODY],[BI.BR,TI.BR],[BI.BUTTON,TI.BUTTON],[BI.CAPTION,TI.CAPTION],[BI.CENTER,TI.CENTER],[BI.CODE,TI.CODE],[BI.COL,TI.COL],[BI.COLGROUP,TI.COLGROUP],[BI.DD,TI.DD],[BI.DESC,TI.DESC],[BI.DETAILS,TI.DETAILS],[BI.DIALOG,TI.DIALOG],[BI.DIR,TI.DIR],[BI.DIV,TI.DIV],[BI.DL,TI.DL],[BI.DT,TI.DT],[BI.EM,TI.EM],[BI.EMBED,TI.EMBED],[BI.FIELDSET,TI.FIELDSET],[BI.FIGCAPTION,TI.FIGCAPTION],[BI.FIGURE,TI.FIGURE],[BI.FONT,TI.FONT],[BI.FOOTER,TI.FOOTER],[BI.FOREIGN_OBJECT,TI.FOREIGN_OBJECT],[BI.FORM,TI.FORM],[BI.FRAME,TI.FRAME],[BI.FRAMESET,TI.FRAMESET],[BI.H1,TI.H1],[BI.H2,TI.H2],[BI.H3,TI.H3],[BI.H4,TI.H4],[BI.H5,TI.H5],[BI.H6,TI.H6],[BI.HEAD,TI.HEAD],[BI.HEADER,TI.HEADER],[BI.HGROUP,TI.HGROUP],[BI.HR,TI.HR],[BI.HTML,TI.HTML],[BI.I,TI.I],[BI.IMG,TI.IMG],[BI.IMAGE,TI.IMAGE],[BI.INPUT,TI.INPUT],[BI.IFRAME,TI.IFRAME],[BI.KEYGEN,TI.KEYGEN],[BI.LABEL,TI.LABEL],[BI.LI,TI.LI],[BI.LINK,TI.LINK],[BI.LISTING,TI.LISTING],[BI.MAIN,TI.MAIN],[BI.MALIGNMARK,TI.MALIGNMARK],[BI.MARQUEE,TI.MARQUEE],[BI.MATH,TI.MATH],[BI.MENU,TI.MENU],[BI.META,TI.META],[BI.MGLYPH,TI.MGLYPH],[BI.MI,TI.MI],[BI.MO,TI.MO],[BI.MN,TI.MN],[BI.MS,TI.MS],[BI.MTEXT,TI.MTEXT],[BI.NAV,TI.NAV],[BI.NOBR,TI.NOBR],[BI.NOFRAMES,TI.NOFRAMES],[BI.NOEMBED,TI.NOEMBED],[BI.NOSCRIPT,TI.NOSCRIPT],[BI.OBJECT,TI.OBJECT],[BI.OL,TI.OL],[BI.OPTGROUP,TI.OPTGROUP],[BI.OPTION,TI.OPTION],[BI.P,TI.P],[BI.PARAM,TI.PARAM],[BI.PLAINTEXT,TI.PLAINTEXT],[BI.PRE,TI.PRE],[BI.RB,TI.RB],[BI.RP,TI.RP],[BI.RT,TI.RT],[BI.RTC,TI.RTC],[BI.RUBY,TI.RUBY],[BI.S,TI.S],[BI.SCRIPT,TI.SCRIPT],[BI.SECTION,TI.SECTION],[BI.SELECT,TI.SELECT],[BI.SOURCE,TI.SOURCE],[BI.SMALL,TI.SMALL],[BI.SPAN,TI.SPAN],[BI.STRIKE,TI.STRIKE],[BI.STRONG,TI.STRONG],[BI.STYLE,TI.STYLE],[BI.SUB,TI.SUB],[BI.SUMMARY,TI.SUMMARY],[BI.SUP,TI.SUP],[BI.TABLE,TI.TABLE],[BI.TBODY,TI.TBODY],[BI.TEMPLATE,TI.TEMPLATE],[BI.TEXTAREA,TI.TEXTAREA],[BI.TFOOT,TI.TFOOT],[BI.TD,TI.TD],[BI.TH,TI.TH],[BI.THEAD,TI.THEAD],[BI.TITLE,TI.TITLE],[BI.TR,TI.TR],[BI.TRACK,TI.TRACK],[BI.TT,TI.TT],[BI.U,TI.U],[BI.UL,TI.UL],[BI.SVG,TI.SVG],[BI.VAR,TI.VAR],[BI.WBR,TI.WBR],[BI.XMP,TI.XMP]]);function DI(t){var e;return null!==(e=OI.get(t))&&void 0!==e?e:TI.UNKNOWN}const MI=TI,RI={[EI.HTML]:new Set([MI.ADDRESS,MI.APPLET,MI.AREA,MI.ARTICLE,MI.ASIDE,MI.BASE,MI.BASEFONT,MI.BGSOUND,MI.BLOCKQUOTE,MI.BODY,MI.BR,MI.BUTTON,MI.CAPTION,MI.CENTER,MI.COL,MI.COLGROUP,MI.DD,MI.DETAILS,MI.DIR,MI.DIV,MI.DL,MI.DT,MI.EMBED,MI.FIELDSET,MI.FIGCAPTION,MI.FIGURE,MI.FOOTER,MI.FORM,MI.FRAME,MI.FRAMESET,MI.H1,MI.H2,MI.H3,MI.H4,MI.H5,MI.H6,MI.HEAD,MI.HEADER,MI.HGROUP,MI.HR,MI.HTML,MI.IFRAME,MI.IMG,MI.INPUT,MI.LI,MI.LINK,MI.LISTING,MI.MAIN,MI.MARQUEE,MI.MENU,MI.META,MI.NAV,MI.NOEMBED,MI.NOFRAMES,MI.NOSCRIPT,MI.OBJECT,MI.OL,MI.P,MI.PARAM,MI.PLAINTEXT,MI.PRE,MI.SCRIPT,MI.SECTION,MI.SELECT,MI.SOURCE,MI.STYLE,MI.SUMMARY,MI.TABLE,MI.TBODY,MI.TD,MI.TEMPLATE,MI.TEXTAREA,MI.TFOOT,MI.TH,MI.THEAD,MI.TITLE,MI.TR,MI.TRACK,MI.UL,MI.WBR,MI.XMP]),[EI.MATHML]:new Set([MI.MI,MI.MO,MI.MN,MI.MS,MI.MTEXT,MI.ANNOTATION_XML]),[EI.SVG]:new Set([MI.TITLE,MI.FOREIGN_OBJECT,MI.DESC]),[EI.XLINK]:new Set,[EI.XML]:new Set,[EI.XMLNS]:new Set};function UI(t){return t===MI.H1||t===MI.H2||t===MI.H3||t===MI.H4||t===MI.H5||t===MI.H6}const PI=new Set([BI.STYLE,BI.SCRIPT,BI.XMP,BI.IFRAME,BI.NOEMBED,BI.NOFRAMES,BI.PLAINTEXT]);const HI=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 QI;!function(t){t[t.DATA=0]="DATA",t[t.RCDATA=1]="RCDATA",t[t.RAWTEXT=2]="RAWTEXT",t[t.SCRIPT_DATA=3]="SCRIPT_DATA",t[t.PLAINTEXT=4]="PLAINTEXT",t[t.TAG_OPEN=5]="TAG_OPEN",t[t.END_TAG_OPEN=6]="END_TAG_OPEN",t[t.TAG_NAME=7]="TAG_NAME",t[t.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",t[t.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",t[t.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",t[t.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",t[t.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",t[t.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",t[t.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",t[t.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",t[t.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",t[t.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",t[t.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",t[t.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",t[t.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",t[t.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",t[t.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",t[t.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",t[t.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",t[t.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",t[t.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",t[t.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",t[t.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",t[t.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",t[t.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",t[t.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",t[t.BOGUS_COMMENT=40]="BOGUS_COMMENT",t[t.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",t[t.COMMENT_START=42]="COMMENT_START",t[t.COMMENT_START_DASH=43]="COMMENT_START_DASH",t[t.COMMENT=44]="COMMENT",t[t.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",t[t.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",t[t.COMMENT_END_DASH=49]="COMMENT_END_DASH",t[t.COMMENT_END=50]="COMMENT_END",t[t.COMMENT_END_BANG=51]="COMMENT_END_BANG",t[t.DOCTYPE=52]="DOCTYPE",t[t.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",t[t.DOCTYPE_NAME=54]="DOCTYPE_NAME",t[t.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",t[t.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",t[t.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",t[t.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",t[t.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",t[t.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",t[t.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",t[t.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",t[t.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",t[t.CDATA_SECTION=68]="CDATA_SECTION",t[t.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",t[t.CDATA_SECTION_END=70]="CDATA_SECTION_END",t[t.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",t[t.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",t[t.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",t[t.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",t[t.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",t[t.DECIMAL_CHARACTER_REFERENCE_START=76]="DECIMAL_CHARACTER_REFERENCE_START",t[t.HEXADEMICAL_CHARACTER_REFERENCE=77]="HEXADEMICAL_CHARACTER_REFERENCE",t[t.DECIMAL_CHARACTER_REFERENCE=78]="DECIMAL_CHARACTER_REFERENCE",t[t.NUMERIC_CHARACTER_REFERENCE_END=79]="NUMERIC_CHARACTER_REFERENCE_END"}(QI||(QI={}));const GI={DATA:QI.DATA,RCDATA:QI.RCDATA,RAWTEXT:QI.RAWTEXT,SCRIPT_DATA:QI.SCRIPT_DATA,PLAINTEXT:QI.PLAINTEXT,CDATA_SECTION:QI.CDATA_SECTION};function jI(t){return t>=aI.DIGIT_0&&t<=aI.DIGIT_9}function $I(t){return t>=aI.LATIN_CAPITAL_A&&t<=aI.LATIN_CAPITAL_Z}function KI(t){return function(t){return t>=aI.LATIN_SMALL_A&&t<=aI.LATIN_SMALL_Z}(t)||$I(t)}function YI(t){return KI(t)||jI(t)}function zI(t){return t>=aI.LATIN_CAPITAL_A&&t<=aI.LATIN_CAPITAL_F}function WI(t){return t>=aI.LATIN_SMALL_A&&t<=aI.LATIN_SMALL_F}function VI(t){return t+32}function qI(t){return t===aI.SPACE||t===aI.LINE_FEED||t===aI.TABULATION||t===aI.FORM_FEED}function XI(t){return qI(t)||t===aI.SOLIDUS||t===aI.GREATER_THAN_SIGN}class JI{constructor(t,e){this.options=t,this.handler=e,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=QI.DATA,this.returnState=QI.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new gI(e),this.currentLocation=this.getCurrentLocation(-1)}_err(t){var e,n;null===(n=(e=this.handler).onParseError)||void 0===n||n.call(e,this.preprocessor.getError(t))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==t||t())}write(t,e,n){this.active=!0,this.preprocessor.write(t,e),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}_reconsumeInState(t){this.state=t,this._unconsume(1)}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let e=0;e<t;e++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,e){return!!this.preprocessor.startsWith(t,e)&&(this._advanceBy(t.length-1),!0)}_createStartTagToken(){this.currentToken={type:mI.START_TAG,tagName:"",tagID:TI.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:mI.END_TAG,tagName:"",tagID:TI.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:mI.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:mI.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,e){this.currentCharacterToken={type:t,chars:e,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,e;const n=this.currentToken;if(null===yI(n,this.currentAttr.name)){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){(null!==(t=(e=n.location).attrs)&&void 0!==t?t:e.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(pI.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=DI(t.tagName),t.type===mI.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(pI.endTagWithAttributes),t.selfClosing&&this._err(pI.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case mI.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case mI.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case mI.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:mI.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,e){if(this.currentCharacterToken){if(this.currentCharacterToken.type===t)return void(this.currentCharacterToken.chars+=e);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(t,e)}_emitCodePoint(t){let e=mI.CHARACTER;qI(t)?e=mI.WHITESPACE_CHARACTER:t===aI.NULL&&(e=mI.NULL_CHARACTER),this._appendCharToCurrentCharacterToken(e,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(mI.CHARACTER,t)}_matchNamedCharacterReference(t){let e=null,n=0,r=!1;for(let a=0,o=NI[0];a>=0&&(a=kI(NI,o,a+1,t),!(a<0));t=this._consume()){n+=1,o=NI[a];const s=o&SI.VALUE_LENGTH;if(s){const o=(s>>14)-1;if(t!==aI.SEMICOLON&&this._isCharacterReferenceInAttribute()&&((i=this.preprocessor.peek(1))===aI.EQUALS_SIGN||YI(i))?(e=[aI.AMPERSAND],a+=o):(e=0===o?[NI[a]&~SI.VALUE_LENGTH]:1===o?[NI[++a]]:[NI[++a],NI[++a]],n=0,r=t!==aI.SEMICOLON),0===o){this._consume();break}}}var i;return this._unconsume(n),r&&!this.preprocessor.endOfChunkHit&&this._err(pI.missingSemicolonAfterCharacterReference),this._unconsume(1),e}_isCharacterReferenceInAttribute(){return this.returnState===QI.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===QI.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===QI.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case QI.DATA:this._stateData(t);break;case QI.RCDATA:this._stateRcdata(t);break;case QI.RAWTEXT:this._stateRawtext(t);break;case QI.SCRIPT_DATA:this._stateScriptData(t);break;case QI.PLAINTEXT:this._statePlaintext(t);break;case QI.TAG_OPEN:this._stateTagOpen(t);break;case QI.END_TAG_OPEN:this._stateEndTagOpen(t);break;case QI.TAG_NAME:this._stateTagName(t);break;case QI.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(t);break;case QI.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(t);break;case QI.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(t);break;case QI.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(t);break;case QI.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(t);break;case QI.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(t);break;case QI.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(t);break;case QI.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(t);break;case QI.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(t);break;case QI.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(t);break;case QI.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(t);break;case QI.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(t);break;case QI.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(t);break;case QI.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(t);break;case QI.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(t);break;case QI.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(t);break;case QI.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(t);break;case QI.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(t);break;case QI.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(t);break;case QI.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(t);break;case QI.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(t);break;case QI.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(t);break;case QI.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(t);break;case QI.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(t);break;case QI.ATTRIBUTE_NAME:this._stateAttributeName(t);break;case QI.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(t);break;case QI.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(t);break;case QI.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(t);break;case QI.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(t);break;case QI.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(t);break;case QI.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(t);break;case QI.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(t);break;case QI.BOGUS_COMMENT:this._stateBogusComment(t);break;case QI.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(t);break;case QI.COMMENT_START:this._stateCommentStart(t);break;case QI.COMMENT_START_DASH:this._stateCommentStartDash(t);break;case QI.COMMENT:this._stateComment(t);break;case QI.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(t);break;case QI.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(t);break;case QI.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(t);break;case QI.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(t);break;case QI.COMMENT_END_DASH:this._stateCommentEndDash(t);break;case QI.COMMENT_END:this._stateCommentEnd(t);break;case QI.COMMENT_END_BANG:this._stateCommentEndBang(t);break;case QI.DOCTYPE:this._stateDoctype(t);break;case QI.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(t);break;case QI.DOCTYPE_NAME:this._stateDoctypeName(t);break;case QI.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(t);break;case QI.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(t);break;case QI.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(t);break;case QI.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(t);break;case QI.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(t);break;case QI.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(t);break;case QI.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break;case QI.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(t);break;case QI.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(t);break;case QI.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(t);break;case QI.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(t);break;case QI.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(t);break;case QI.BOGUS_DOCTYPE:this._stateBogusDoctype(t);break;case QI.CDATA_SECTION:this._stateCdataSection(t);break;case QI.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(t);break;case QI.CDATA_SECTION_END:this._stateCdataSectionEnd(t);break;case QI.CHARACTER_REFERENCE:this._stateCharacterReference(t);break;case QI.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(t);break;case QI.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(t);break;case QI.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(t);break;case QI.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(t);break;case QI.DECIMAL_CHARACTER_REFERENCE_START:this._stateDecimalCharacterReferenceStart(t);break;case QI.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(t);break;case QI.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(t);break;case QI.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd();break;default:throw new Error("Unknown state")}}_stateData(t){switch(t){case aI.LESS_THAN_SIGN:this.state=QI.TAG_OPEN;break;case aI.AMPERSAND:this.returnState=QI.DATA,this.state=QI.CHARACTER_REFERENCE;break;case aI.NULL:this._err(pI.unexpectedNullCharacter),this._emitCodePoint(t);break;case aI.EOF:this._emitEOFToken();break;default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case aI.AMPERSAND:this.returnState=QI.RCDATA,this.state=QI.CHARACTER_REFERENCE;break;case aI.LESS_THAN_SIGN:this.state=QI.RCDATA_LESS_THAN_SIGN;break;case aI.NULL:this._err(pI.unexpectedNullCharacter),this._emitChars("<22>");break;case aI.EOF:this._emitEOFToken();break;default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case aI.LESS_THAN_SIGN:this.state=QI.RAWTEXT_LESS_THAN_SIGN;break;case aI.NULL:this._err(pI.unexpectedNullCharacter),this._emitChars("<22>");break;case aI.EOF:this._emitEOFToken();break;default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case aI.LESS_THAN_SIGN:this.state=QI.SCRIPT_DATA_LESS_THAN_SIGN;break;case aI.NULL:this._err(pI.unexpectedNullCharacter),this._emitChars("<22>");break;case aI.EOF:this._emitEOFToken();break;default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case aI.NULL:this._err(pI.unexpectedNullCharacter),this._emitChars("<22>");break;case aI.EOF:this._emitEOFToken();break;default:this._emitCodePoint(t)}}_stateTagOpen(t){if(KI(t))this._createStartTagToken(),this.state=QI.TAG_NAME,this._stateTagName(t);else switch(t){case aI.EXCLAMATION_MARK:this.state=QI.MARKUP_DECLARATION_OPEN;break;case aI.SOLIDUS:this.state=QI.END_TAG_OPEN;break;case aI.QUESTION_MARK:this._err(pI.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=QI.BOGUS_COMMENT,this._stateBogusComment(t);break;case aI.EOF:this._err(pI.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(pI.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=QI.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(KI(t))this._createEndTagToken(),this.state=QI.TAG_NAME,this._stateTagName(t);else switch(t){case aI.GREATER_THAN_SIGN:this._err(pI.missingEndTagName),this.state=QI.DATA;break;case aI.EOF:this._err(pI.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(pI.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=QI.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const e=this.currentToken;switch(t){case aI.SPACE:case aI.LINE_FEED:case aI.TABULATION:case aI.FORM_FEED:this.state=QI.BEFORE_ATTRIBUTE_NAME;break;case aI.SOLIDUS:this.state=QI.SELF_CLOSING_START_TAG;break;case aI.GREATER_THAN_SIGN:this.state=QI.DATA,this.emitCurrentTagToken();break;case aI.NULL:this._err(pI.unexpectedNullCharacter),e.tagName+="<22>";break;case aI.EOF:this._err(pI.eofInTag),this._emitEOFToken();break;default:e.tagName+=String.fromCodePoint($I(t)?VI(t):t)}}_stateRcdataLessThanSign(t){t===aI.SOLIDUS?this.state=QI.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=QI.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){KI(t)?(this.state=QI.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=QI.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){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 aI.SPACE:case aI.LINE_FEED:case aI.TABULATION:case aI.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=QI.BEFORE_ATTRIBUTE_NAME,!1;case aI.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=QI.SELF_CLOSING_START_TAG,!1;case aI.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=QI.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=QI.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===aI.SOLIDUS?this.state=QI.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=QI.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){KI(t)?(this.state=QI.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=QI.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=QI.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case aI.SOLIDUS:this.state=QI.SCRIPT_DATA_END_TAG_OPEN;break;case aI.EXCLAMATION_MARK:this.state=QI.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=QI.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){KI(t)?(this.state=QI.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=QI.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=QI.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===aI.HYPHEN_MINUS?(this.state=QI.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=QI.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===aI.HYPHEN_MINUS?(this.state=QI.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=QI.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case aI.HYPHEN_MINUS:this.state=QI.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case aI.LESS_THAN_SIGN:this.state=QI.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case aI.NULL:this._err(pI.unexpectedNullCharacter),this._emitChars("<22>");break;case aI.EOF:this._err(pI.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case aI.HYPHEN_MINUS:this.state=QI.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case aI.LESS_THAN_SIGN:this.state=QI.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case aI.NULL:this._err(pI.unexpectedNullCharacter),this.state=QI.SCRIPT_DATA_ESCAPED,this._emitChars("<22>");break;case aI.EOF:this._err(pI.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=QI.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case aI.HYPHEN_MINUS:this._emitChars("-");break;case aI.LESS_THAN_SIGN:this.state=QI.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case aI.GREATER_THAN_SIGN:this.state=QI.SCRIPT_DATA,this._emitChars(">");break;case aI.NULL:this._err(pI.unexpectedNullCharacter),this.state=QI.SCRIPT_DATA_ESCAPED,this._emitChars("<22>");break;case aI.EOF:this._err(pI.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=QI.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===aI.SOLIDUS?this.state=QI.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:KI(t)?(this._emitChars("<"),this.state=QI.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=QI.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){KI(t)?(this.state=QI.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=QI.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=QI.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(lI,!1)&&XI(this.preprocessor.peek(lI.length))){this._emitCodePoint(t);for(let t=0;t<lI.length;t++)this._emitCodePoint(this._consume());this.state=QI.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=QI.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case aI.HYPHEN_MINUS:this.state=QI.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case aI.LESS_THAN_SIGN:this.state=QI.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case aI.NULL:this._err(pI.unexpectedNullCharacter),this._emitChars("<22>");break;case aI.EOF:this._err(pI.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case aI.HYPHEN_MINUS:this.state=QI.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case aI.LESS_THAN_SIGN:this.state=QI.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case aI.NULL:this._err(pI.unexpectedNullCharacter),this.state=QI.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("<22>");break;case aI.EOF:this._err(pI.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=QI.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case aI.HYPHEN_MINUS:this._emitChars("-");break;case aI.LESS_THAN_SIGN:this.state=QI.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case aI.GREATER_THAN_SIGN:this.state=QI.SCRIPT_DATA,this._emitChars(">");break;case aI.NULL:this._err(pI.unexpectedNullCharacter),this.state=QI.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("<22>");break;case aI.EOF:this._err(pI.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=QI.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===aI.SOLIDUS?(this.state=QI.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=QI.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(lI,!1)&&XI(this.preprocessor.peek(lI.length))){this._emitCodePoint(t);for(let t=0;t<lI.length;t++)this._emitCodePoint(this._consume());this.state=QI.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=QI.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case aI.SPACE:case aI.LINE_FEED:case aI.TABULATION:case aI.FORM_FEED:break;case aI.SOLIDUS:case aI.GREATER_THAN_SIGN:case aI.EOF:this.state=QI.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break;case aI.EQUALS_SIGN:this._err(pI.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=QI.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=QI.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case aI.SPACE:case aI.LINE_FEED:case aI.TABULATION:case aI.FORM_FEED:case aI.SOLIDUS:case aI.GREATER_THAN_SIGN:case aI.EOF:this._leaveAttrName(),this.state=QI.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break;case aI.EQUALS_SIGN:this._leaveAttrName(),this.state=QI.BEFORE_ATTRIBUTE_VALUE;break;case aI.QUOTATION_MARK:case aI.APOSTROPHE:case aI.LESS_THAN_SIGN:this._err(pI.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break;case aI.NULL:this._err(pI.unexpectedNullCharacter),this.currentAttr.name+="<22>";break;default:this.currentAttr.name+=String.fromCodePoint($I(t)?VI(t):t)}}_stateAfterAttributeName(t){switch(t){case aI.SPACE:case aI.LINE_FEED:case aI.TABULATION:case aI.FORM_FEED:break;case aI.SOLIDUS:this.state=QI.SELF_CLOSING_START_TAG;break;case aI.EQUALS_SIGN:this.state=QI.BEFORE_ATTRIBUTE_VALUE;break;case aI.GREATER_THAN_SIGN:this.state=QI.DATA,this.emitCurrentTagToken();break;case aI.EOF:this._err(pI.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=QI.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case aI.SPACE:case aI.LINE_FEED:case aI.TABULATION:case aI.FORM_FEED:break;case aI.QUOTATION_MARK:this.state=QI.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case aI.APOSTROPHE:this.state=QI.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case aI.GREATER_THAN_SIGN:this._err(pI.missingAttributeValue),this.state=QI.DATA,this.emitCurrentTagToken();break;default:this.state=QI.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case aI.QUOTATION_MARK:this.state=QI.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case aI.AMPERSAND:this.returnState=QI.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=QI.CHARACTER_REFERENCE;break;case aI.NULL:this._err(pI.unexpectedNullCharacter),this.currentAttr.value+="<22>";break;case aI.EOF:this._err(pI.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case aI.APOSTROPHE:this.state=QI.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case aI.AMPERSAND:this.returnState=QI.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=QI.CHARACTER_REFERENCE;break;case aI.NULL:this._err(pI.unexpectedNullCharacter),this.currentAttr.value+="<22>";break;case aI.EOF:this._err(pI.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case aI.SPACE:case aI.LINE_FEED:case aI.TABULATION:case aI.FORM_FEED:this._leaveAttrValue(),this.state=QI.BEFORE_ATTRIBUTE_NAME;break;case aI.AMPERSAND:this.returnState=QI.ATTRIBUTE_VALUE_UNQUOTED,this.state=QI.CHARACTER_REFERENCE;break;case aI.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=QI.DATA,this.emitCurrentTagToken();break;case aI.NULL:this._err(pI.unexpectedNullCharacter),this.currentAttr.value+="<22>";break;case aI.QUOTATION_MARK:case aI.APOSTROPHE:case aI.LESS_THAN_SIGN:case aI.EQUALS_SIGN:case aI.GRAVE_ACCENT:this._err(pI.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break;case aI.EOF:this._err(pI.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case aI.SPACE:case aI.LINE_FEED:case aI.TABULATION:case aI.FORM_FEED:this._leaveAttrValue(),this.state=QI.BEFORE_ATTRIBUTE_NAME;break;case aI.SOLIDUS:this._leaveAttrValue(),this.state=QI.SELF_CLOSING_START_TAG;break;case aI.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=QI.DATA,this.emitCurrentTagToken();break;case aI.EOF:this._err(pI.eofInTag),this._emitEOFToken();break;default:this._err(pI.missingWhitespaceBetweenAttributes),this.state=QI.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case aI.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=QI.DATA,this.emitCurrentTagToken();break;case aI.EOF:this._err(pI.eofInTag),this._emitEOFToken();break;default:this._err(pI.unexpectedSolidusInTag),this.state=QI.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const e=this.currentToken;switch(t){case aI.GREATER_THAN_SIGN:this.state=QI.DATA,this.emitCurrentComment(e);break;case aI.EOF:this.emitCurrentComment(e),this._emitEOFToken();break;case aI.NULL:this._err(pI.unexpectedNullCharacter),e.data+="<22>";break;default:e.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(oI,!0)?(this._createCommentToken(oI.length+1),this.state=QI.COMMENT_START):this._consumeSequenceIfMatch(cI,!1)?(this.currentLocation=this.getCurrentLocation(cI.length+1),this.state=QI.DOCTYPE):this._consumeSequenceIfMatch(sI,!0)?this.inForeignNode?this.state=QI.CDATA_SECTION:(this._err(pI.cdataInHtmlContent),this._createCommentToken(sI.length+1),this.currentToken.data="[CDATA[",this.state=QI.BOGUS_COMMENT):this._ensureHibernation()||(this._err(pI.incorrectlyOpenedComment),this._createCommentToken(2),this.state=QI.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case aI.HYPHEN_MINUS:this.state=QI.COMMENT_START_DASH;break;case aI.GREATER_THAN_SIGN:{this._err(pI.abruptClosingOfEmptyComment),this.state=QI.DATA;const t=this.currentToken;this.emitCurrentComment(t);break}default:this.state=QI.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const e=this.currentToken;switch(t){case aI.HYPHEN_MINUS:this.state=QI.COMMENT_END;break;case aI.GREATER_THAN_SIGN:this._err(pI.abruptClosingOfEmptyComment),this.state=QI.DATA,this.emitCurrentComment(e);break;case aI.EOF:this._err(pI.eofInComment),this.emitCurrentComment(e),this._emitEOFToken();break;default:e.data+="-",this.state=QI.COMMENT,this._stateComment(t)}}_stateComment(t){const e=this.currentToken;switch(t){case aI.HYPHEN_MINUS:this.state=QI.COMMENT_END_DASH;break;case aI.LESS_THAN_SIGN:e.data+="<",this.state=QI.COMMENT_LESS_THAN_SIGN;break;case aI.NULL:this._err(pI.unexpectedNullCharacter),e.data+="<22>";break;case aI.EOF:this._err(pI.eofInComment),this.emitCurrentComment(e),this._emitEOFToken();break;default:e.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const e=this.currentToken;switch(t){case aI.EXCLAMATION_MARK:e.data+="!",this.state=QI.COMMENT_LESS_THAN_SIGN_BANG;break;case aI.LESS_THAN_SIGN:e.data+="<";break;default:this.state=QI.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===aI.HYPHEN_MINUS?this.state=QI.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=QI.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===aI.HYPHEN_MINUS?this.state=QI.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=QI.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==aI.GREATER_THAN_SIGN&&t!==aI.EOF&&this._err(pI.nestedComment),this.state=QI.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const e=this.currentToken;switch(t){case aI.HYPHEN_MINUS:this.state=QI.COMMENT_END;break;case aI.EOF:this._err(pI.eofInComment),this.emitCurrentComment(e),this._emitEOFToken();break;default:e.data+="-",this.state=QI.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const e=this.currentToken;switch(t){case aI.GREATER_THAN_SIGN:this.state=QI.DATA,this.emitCurrentComment(e);break;case aI.EXCLAMATION_MARK:this.state=QI.COMMENT_END_BANG;break;case aI.HYPHEN_MINUS:e.data+="-";break;case aI.EOF:this._err(pI.eofInComment),this.emitCurrentComment(e),this._emitEOFToken();break;default:e.data+="--",this.state=QI.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const e=this.currentToken;switch(t){case aI.HYPHEN_MINUS:e.data+="--!",this.state=QI.COMMENT_END_DASH;break;case aI.GREATER_THAN_SIGN:this._err(pI.incorrectlyClosedComment),this.state=QI.DATA,this.emitCurrentComment(e);break;case aI.EOF:this._err(pI.eofInComment),this.emitCurrentComment(e),this._emitEOFToken();break;default:e.data+="--!",this.state=QI.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case aI.SPACE:case aI.LINE_FEED:case aI.TABULATION:case aI.FORM_FEED:this.state=QI.BEFORE_DOCTYPE_NAME;break;case aI.GREATER_THAN_SIGN:this.state=QI.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break;case aI.EOF:{this._err(pI.eofInDoctype),this._createDoctypeToken(null);const t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(pI.missingWhitespaceBeforeDoctypeName),this.state=QI.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if($I(t))this._createDoctypeToken(String.fromCharCode(VI(t))),this.state=QI.DOCTYPE_NAME;else switch(t){case aI.SPACE:case aI.LINE_FEED:case aI.TABULATION:case aI.FORM_FEED:break;case aI.NULL:this._err(pI.unexpectedNullCharacter),this._createDoctypeToken("<22>"),this.state=QI.DOCTYPE_NAME;break;case aI.GREATER_THAN_SIGN:{this._err(pI.missingDoctypeName),this._createDoctypeToken(null);const t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=QI.DATA;break}case aI.EOF:{this._err(pI.eofInDoctype),this._createDoctypeToken(null);const t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=QI.DOCTYPE_NAME}}_stateDoctypeName(t){const e=this.currentToken;switch(t){case aI.SPACE:case aI.LINE_FEED:case aI.TABULATION:case aI.FORM_FEED:this.state=QI.AFTER_DOCTYPE_NAME;break;case aI.GREATER_THAN_SIGN:this.state=QI.DATA,this.emitCurrentDoctype(e);break;case aI.NULL:this._err(pI.unexpectedNullCharacter),e.name+="<22>";break;case aI.EOF:this._err(pI.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:e.name+=String.fromCodePoint($I(t)?VI(t):t)}}_stateAfterDoctypeName(t){const e=this.currentToken;switch(t){case aI.SPACE:case aI.LINE_FEED:case aI.TABULATION:case aI.FORM_FEED:break;case aI.GREATER_THAN_SIGN:this.state=QI.DATA,this.emitCurrentDoctype(e);break;case aI.EOF:this._err(pI.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(AI,!1)?this.state=QI.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(uI,!1)?this.state=QI.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(pI.invalidCharacterSequenceAfterDoctypeName),e.forceQuirks=!0,this.state=QI.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const e=this.currentToken;switch(t){case aI.SPACE:case aI.LINE_FEED:case aI.TABULATION:case aI.FORM_FEED:this.state=QI.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case aI.QUOTATION_MARK:this._err(pI.missingWhitespaceAfterDoctypePublicKeyword),e.publicId="",this.state=QI.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case aI.APOSTROPHE:this._err(pI.missingWhitespaceAfterDoctypePublicKeyword),e.publicId="",this.state=QI.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case aI.GREATER_THAN_SIGN:this._err(pI.missingDoctypePublicIdentifier),e.forceQuirks=!0,this.state=QI.DATA,this.emitCurrentDoctype(e);break;case aI.EOF:this._err(pI.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(pI.missingQuoteBeforeDoctypePublicIdentifier),e.forceQuirks=!0,this.state=QI.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const e=this.currentToken;switch(t){case aI.SPACE:case aI.LINE_FEED:case aI.TABULATION:case aI.FORM_FEED:break;case aI.QUOTATION_MARK:e.publicId="",this.state=QI.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case aI.APOSTROPHE:e.publicId="",this.state=QI.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case aI.GREATER_THAN_SIGN:this._err(pI.missingDoctypePublicIdentifier),e.forceQuirks=!0,this.state=QI.DATA,this.emitCurrentDoctype(e);break;case aI.EOF:this._err(pI.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(pI.missingQuoteBeforeDoctypePublicIdentifier),e.forceQuirks=!0,this.state=QI.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const e=this.currentToken;switch(t){case aI.QUOTATION_MARK:this.state=QI.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case aI.NULL:this._err(pI.unexpectedNullCharacter),e.publicId+="<22>";break;case aI.GREATER_THAN_SIGN:this._err(pI.abruptDoctypePublicIdentifier),e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=QI.DATA;break;case aI.EOF:this._err(pI.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:e.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const e=this.currentToken;switch(t){case aI.APOSTROPHE:this.state=QI.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case aI.NULL:this._err(pI.unexpectedNullCharacter),e.publicId+="<22>";break;case aI.GREATER_THAN_SIGN:this._err(pI.abruptDoctypePublicIdentifier),e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=QI.DATA;break;case aI.EOF:this._err(pI.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:e.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const e=this.currentToken;switch(t){case aI.SPACE:case aI.LINE_FEED:case aI.TABULATION:case aI.FORM_FEED:this.state=QI.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case aI.GREATER_THAN_SIGN:this.state=QI.DATA,this.emitCurrentDoctype(e);break;case aI.QUOTATION_MARK:this._err(pI.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),e.systemId="",this.state=QI.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case aI.APOSTROPHE:this._err(pI.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),e.systemId="",this.state=QI.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case aI.EOF:this._err(pI.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(pI.missingQuoteBeforeDoctypeSystemIdentifier),e.forceQuirks=!0,this.state=QI.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const e=this.currentToken;switch(t){case aI.SPACE:case aI.LINE_FEED:case aI.TABULATION:case aI.FORM_FEED:break;case aI.GREATER_THAN_SIGN:this.emitCurrentDoctype(e),this.state=QI.DATA;break;case aI.QUOTATION_MARK:e.systemId="",this.state=QI.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case aI.APOSTROPHE:e.systemId="",this.state=QI.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case aI.EOF:this._err(pI.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(pI.missingQuoteBeforeDoctypeSystemIdentifier),e.forceQuirks=!0,this.state=QI.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const e=this.currentToken;switch(t){case aI.SPACE:case aI.LINE_FEED:case aI.TABULATION:case aI.FORM_FEED:this.state=QI.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case aI.QUOTATION_MARK:this._err(pI.missingWhitespaceAfterDoctypeSystemKeyword),e.systemId="",this.state=QI.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case aI.APOSTROPHE:this._err(pI.missingWhitespaceAfterDoctypeSystemKeyword),e.systemId="",this.state=QI.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case aI.GREATER_THAN_SIGN:this._err(pI.missingDoctypeSystemIdentifier),e.forceQuirks=!0,this.state=QI.DATA,this.emitCurrentDoctype(e);break;case aI.EOF:this._err(pI.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(pI.missingQuoteBeforeDoctypeSystemIdentifier),e.forceQuirks=!0,this.state=QI.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const e=this.currentToken;switch(t){case aI.SPACE:case aI.LINE_FEED:case aI.TABULATION:case aI.FORM_FEED:break;case aI.QUOTATION_MARK:e.systemId="",this.state=QI.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case aI.APOSTROPHE:e.systemId="",this.state=QI.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case aI.GREATER_THAN_SIGN:this._err(pI.missingDoctypeSystemIdentifier),e.forceQuirks=!0,this.state=QI.DATA,this.emitCurrentDoctype(e);break;case aI.EOF:this._err(pI.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(pI.missingQuoteBeforeDoctypeSystemIdentifier),e.forceQuirks=!0,this.state=QI.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const e=this.currentToken;switch(t){case aI.QUOTATION_MARK:this.state=QI.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case aI.NULL:this._err(pI.unexpectedNullCharacter),e.systemId+="<22>";break;case aI.GREATER_THAN_SIGN:this._err(pI.abruptDoctypeSystemIdentifier),e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=QI.DATA;break;case aI.EOF:this._err(pI.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:e.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const e=this.currentToken;switch(t){case aI.APOSTROPHE:this.state=QI.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case aI.NULL:this._err(pI.unexpectedNullCharacter),e.systemId+="<22>";break;case aI.GREATER_THAN_SIGN:this._err(pI.abruptDoctypeSystemIdentifier),e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=QI.DATA;break;case aI.EOF:this._err(pI.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:e.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const e=this.currentToken;switch(t){case aI.SPACE:case aI.LINE_FEED:case aI.TABULATION:case aI.FORM_FEED:break;case aI.GREATER_THAN_SIGN:this.emitCurrentDoctype(e),this.state=QI.DATA;break;case aI.EOF:this._err(pI.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(pI.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=QI.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const e=this.currentToken;switch(t){case aI.GREATER_THAN_SIGN:this.emitCurrentDoctype(e),this.state=QI.DATA;break;case aI.NULL:this._err(pI.unexpectedNullCharacter);break;case aI.EOF:this.emitCurrentDoctype(e),this._emitEOFToken()}}_stateCdataSection(t){switch(t){case aI.RIGHT_SQUARE_BRACKET:this.state=QI.CDATA_SECTION_BRACKET;break;case aI.EOF:this._err(pI.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===aI.RIGHT_SQUARE_BRACKET?this.state=QI.CDATA_SECTION_END:(this._emitChars("]"),this.state=QI.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case aI.GREATER_THAN_SIGN:this.state=QI.DATA;break;case aI.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=QI.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(t){t===aI.NUMBER_SIGN?this.state=QI.NUMERIC_CHARACTER_REFERENCE:YI(t)?(this.state=QI.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(t)):(this._flushCodePointConsumedAsCharacterReference(aI.AMPERSAND),this._reconsumeInState(this.returnState))}_stateNamedCharacterReference(t){const e=this._matchNamedCharacterReference(t);if(this._ensureHibernation());else if(e){for(let t=0;t<e.length;t++)this._flushCodePointConsumedAsCharacterReference(e[t]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(aI.AMPERSAND),this.state=QI.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(t){YI(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===aI.SEMICOLON&&this._err(pI.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}_stateNumericCharacterReference(t){this.charRefCode=0,t===aI.LATIN_SMALL_X||t===aI.LATIN_CAPITAL_X?this.state=QI.HEXADEMICAL_CHARACTER_REFERENCE_START:(this.state=QI.DECIMAL_CHARACTER_REFERENCE_START,this._stateDecimalCharacterReferenceStart(t))}_stateHexademicalCharacterReferenceStart(t){!function(t){return jI(t)||zI(t)||WI(t)}(t)?(this._err(pI.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(aI.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(aI.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState):(this.state=QI.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(t))}_stateDecimalCharacterReferenceStart(t){jI(t)?(this.state=QI.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(t)):(this._err(pI.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(aI.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(aI.NUMBER_SIGN),this._reconsumeInState(this.returnState))}_stateHexademicalCharacterReference(t){zI(t)?this.charRefCode=16*this.charRefCode+t-55:WI(t)?this.charRefCode=16*this.charRefCode+t-87:jI(t)?this.charRefCode=16*this.charRefCode+t-48:t===aI.SEMICOLON?this.state=QI.NUMERIC_CHARACTER_REFERENCE_END:(this._err(pI.missingSemicolonAfterCharacterReference),this.state=QI.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd())}_stateDecimalCharacterReference(t){jI(t)?this.charRefCode=10*this.charRefCode+t-48:t===aI.SEMICOLON?this.state=QI.NUMERIC_CHARACTER_REFERENCE_END:(this._err(pI.missingSemicolonAfterCharacterReference),this.state=QI.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd())}_stateNumericCharacterReferenceEnd(){if(this.charRefCode===aI.NULL)this._err(pI.nullCharacterReference),this.charRefCode=aI.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(pI.characterReferenceOutsideUnicodeRange),this.charRefCode=aI.REPLACEMENT_CHARACTER;else if(hI(this.charRefCode))this._err(pI.surrogateCharacterReference),this.charRefCode=aI.REPLACEMENT_CHARACTER;else if(dI(this.charRefCode))this._err(pI.noncharacterCharacterReference);else if(fI(this.charRefCode)||this.charRefCode===aI.CARRIAGE_RETURN){this._err(pI.controlCharacterReference);const t=HI.get(this.charRefCode);void 0!==t&&(this.charRefCode=t)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState)}}const ZI=new Set([TI.DD,TI.DT,TI.LI,TI.OPTGROUP,TI.OPTION,TI.P,TI.RB,TI.RP,TI.RT,TI.RTC]),tL=new Set([...ZI,TI.CAPTION,TI.COLGROUP,TI.TBODY,TI.TD,TI.TFOOT,TI.TH,TI.THEAD,TI.TR]),eL=new Map([[TI.APPLET,EI.HTML],[TI.CAPTION,EI.HTML],[TI.HTML,EI.HTML],[TI.MARQUEE,EI.HTML],[TI.OBJECT,EI.HTML],[TI.TABLE,EI.HTML],[TI.TD,EI.HTML],[TI.TEMPLATE,EI.HTML],[TI.TH,EI.HTML],[TI.ANNOTATION_XML,EI.MATHML],[TI.MI,EI.MATHML],[TI.MN,EI.MATHML],[TI.MO,EI.MATHML],[TI.MS,EI.MATHML],[TI.MTEXT,EI.MATHML],[TI.DESC,EI.SVG],[TI.FOREIGN_OBJECT,EI.SVG],[TI.TITLE,EI.SVG]]),nL=[TI.H1,TI.H2,TI.H3,TI.H4,TI.H5,TI.H6],rL=[TI.TR,TI.TEMPLATE,TI.HTML],iL=[TI.TBODY,TI.TFOOT,TI.THEAD,TI.TEMPLATE,TI.HTML],aL=[TI.TABLE,TI.TEMPLATE,TI.HTML],oL=[TI.TD,TI.TH];class sL{constructor(t,e,n){this.treeAdapter=e,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=TI.UNKNOWN,this.current=t}get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===TI.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===EI.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,e){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=e,this.currentTagId=e,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,e,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,e){const n=this._indexOf(t);this.items[n]=e,n===this.stackTop&&(this.current=e)}insertAfter(t,e,n){const r=this._indexOf(t)+1;this.items.splice(r,0,e),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(t){let e=this.stackTop+1;do{e=this.tagIDs.lastIndexOf(t,e-1)}while(e>0&&this.treeAdapter.getNamespaceURI(this.items[e])!==EI.HTML);this.shortenToLength(e<0?0:e)}shortenToLength(t){for(;this.stackTop>=t;){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,this.stackTop<t)}}popUntilElementPopped(t){const e=this._indexOf(t);this.shortenToLength(e<0?0:e)}popUntilPopped(t,e){const n=this._indexOfTagNames(t,e);this.shortenToLength(n<0?0:n)}popUntilNumberedHeaderPopped(){this.popUntilPopped(nL,EI.HTML)}popUntilTableCellPopped(){this.popUntilPopped(oL,EI.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,e){for(let n=this.stackTop;n>=0;n--)if(t.includes(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===e)return n;return-1}clearBackTo(t,e){const n=this._indexOfTagNames(t,e);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(aL,EI.HTML)}clearBackToTableBodyContext(){this.clearBackTo(iL,EI.HTML)}clearBackToTableRowContext(){this.clearBackTo(rL,EI.HTML)}remove(t){const e=this._indexOf(t);e>=0&&(e===this.stackTop?this.pop():(this.items.splice(e,1),this.tagIDs.splice(e,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===TI.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const e=this._indexOf(t)-1;return e>=0?this.items[e]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===TI.HTML}hasInScope(t){for(let e=this.stackTop;e>=0;e--){const n=this.tagIDs[e],r=this.treeAdapter.getNamespaceURI(this.items[e]);if(n===t&&r===EI.HTML)return!0;if(eL.get(n)===r)return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const e=this.tagIDs[t],n=this.treeAdapter.getNamespaceURI(this.items[t]);if(UI(e)&&n===EI.HTML)return!0;if(eL.get(e)===n)return!1}return!0}hasInListItemScope(t){for(let e=this.stackTop;e>=0;e--){const n=this.tagIDs[e],r=this.treeAdapter.getNamespaceURI(this.items[e]);if(n===t&&r===EI.HTML)return!0;if((n===TI.UL||n===TI.OL)&&r===EI.HTML||eL.get(n)===r)return!1}return!0}hasInButtonScope(t){for(let e=this.stackTop;e>=0;e--){const n=this.tagIDs[e],r=this.treeAdapter.getNamespaceURI(this.items[e]);if(n===t&&r===EI.HTML)return!0;if(n===TI.BUTTON&&r===EI.HTML||eL.get(n)===r)return!1}return!0}hasInTableScope(t){for(let e=this.stackTop;e>=0;e--){const n=this.tagIDs[e];if(this.treeAdapter.getNamespaceURI(this.items[e])===EI.HTML){if(n===t)return!0;if(n===TI.TABLE||n===TI.TEMPLATE||n===TI.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const e=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===EI.HTML){if(e===TI.TBODY||e===TI.THEAD||e===TI.TFOOT)return!0;if(e===TI.TABLE||e===TI.HTML)return!1}}return!0}hasInSelectScope(t){for(let e=this.stackTop;e>=0;e--){const n=this.tagIDs[e];if(this.treeAdapter.getNamespaceURI(this.items[e])===EI.HTML){if(n===t)return!0;if(n!==TI.OPTION&&n!==TI.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;ZI.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;tL.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&tL.has(this.currentTagId);)this.pop()}}var cL;!function(t){t[t.Marker=0]="Marker",t[t.Element=1]="Element"}(cL||(cL={}));const lL={type:cL.Marker};class AL{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,e){const n=[],r=e.length,i=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let t=0;t<this.entries.length;t++){const e=this.entries[t];if(e.type===cL.Marker)break;const{element:o}=e;if(this.treeAdapter.getTagName(o)===i&&this.treeAdapter.getNamespaceURI(o)===a){const e=this.treeAdapter.getAttrList(o);e.length===r&&n.push({idx:t,attrs:e})}}return n}_ensureNoahArkCondition(t){if(this.entries.length<3)return;const e=this.treeAdapter.getAttrList(t),n=this._getNoahArkConditionCandidates(t,e);if(n.length<3)return;const r=new Map(e.map(t=>[t.name,t.value]));let i=0;for(let t=0;t<n.length;t++){const e=n[t];e.attrs.every(t=>r.get(t.name)===t.value)&&(i+=1,i>=3&&this.entries.splice(e.idx,1))}}insertMarker(){this.entries.unshift(lL)}pushElement(t,e){this._ensureNoahArkCondition(t),this.entries.unshift({type:cL.Element,element:t,token:e})}insertElementAfterBookmark(t,e){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:cL.Element,element:t,token:e})}removeEntry(t){const e=this.entries.indexOf(t);e>=0&&this.entries.splice(e,1)}clearToLastMarker(){const t=this.entries.indexOf(lL);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const e=this.entries.find(e=>e.type===cL.Marker||this.treeAdapter.getTagName(e.element)===t);return e&&e.type===cL.Element?e:null}getElementEntry(t){return this.entries.find(e=>e.type===cL.Element&&e.element===t)}}var uL;function hL(t){return{nodeName:uL.Text,value:t,parentNode:null}}!function(t){t.Document="#document",t.DocumentFragment="#document-fragment",t.Comment="#comment",t.Text="#text",t.DocumentType="#documentType"}(uL||(uL={}));const fL={createDocument:()=>({nodeName:uL.Document,mode:xI.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:uL.DocumentFragment,childNodes:[]}),createElement:(t,e,n)=>({nodeName:t,tagName:t,attrs:n,namespaceURI:e,childNodes:[],parentNode:null}),createCommentNode:t=>({nodeName:uL.Comment,data:t,parentNode:null}),appendChild(t,e){t.childNodes.push(e),e.parentNode=t},insertBefore(t,e,n){const r=t.childNodes.indexOf(n);t.childNodes.splice(r,0,e),e.parentNode=t},setTemplateContent(t,e){t.content=e},getTemplateContent:t=>t.content,setDocumentType(t,e,n,r){const i=t.childNodes.find(t=>t.nodeName===uL.DocumentType);if(i)i.name=e,i.publicId=n,i.systemId=r;else{const i={nodeName:uL.DocumentType,name:e,publicId:n,systemId:r,parentNode:null};fL.appendChild(t,i)}},setDocumentMode(t,e){t.mode=e},getDocumentMode:t=>t.mode,detachNode(t){if(t.parentNode){const e=t.parentNode.childNodes.indexOf(t);t.parentNode.childNodes.splice(e,1),t.parentNode=null}},insertText(t,e){if(t.childNodes.length>0){const n=t.childNodes[t.childNodes.length-1];if(fL.isTextNode(n))return void(n.value+=e)}fL.appendChild(t,hL(e))},insertTextBefore(t,e,n){const r=t.childNodes[t.childNodes.indexOf(n)-1];r&&fL.isTextNode(r)?r.value+=e:fL.insertBefore(t,hL(e),n)},adoptAttributes(t,e){const n=new Set(t.attrs.map(t=>t.name));for(let r=0;r<e.length;r++)n.has(e[r].name)||t.attrs.push(e[r])},getFirstChild:t=>t.childNodes[0],getChildNodes:t=>t.childNodes,getParentNode:t=>t.parentNode,getAttrList:t=>t.attrs,getTagName:t=>t.tagName,getNamespaceURI:t=>t.namespaceURI,getTextNodeContent:t=>t.value,getCommentNodeContent:t=>t.data,getDocumentTypeNodeName:t=>t.name,getDocumentTypeNodePublicId:t=>t.publicId,getDocumentTypeNodeSystemId:t=>t.systemId,isTextNode:t=>"#text"===t.nodeName,isCommentNode:t=>"#comment"===t.nodeName,isDocumentTypeNode:t=>t.nodeName===uL.DocumentType,isElementNode:t=>Object.prototype.hasOwnProperty.call(t,"tagName"),setNodeSourceCodeLocation(t,e){t.sourceCodeLocation=e},getNodeSourceCodeLocation:t=>t.sourceCodeLocation,updateNodeSourceCodeLocation(t,e){t.sourceCodeLocation={...t.sourceCodeLocation,...e}}},dL=["+//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//"],pL=[...dL,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],gL=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),mL=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],yL=[...mL,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function vL(t,e){return e.some(e=>t.startsWith(e))}const bL="text/html",_L="application/xhtml+xml",wL=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(t=>[t.toLowerCase(),t])),EL=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:EI.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:EI.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:EI.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:EI.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:EI.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:EI.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:EI.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:EI.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:EI.XML}],["xml:space",{prefix:"xml",name:"space",namespace:EI.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:EI.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:EI.XMLNS}]]),CL=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(t=>[t.toLowerCase(),t])),xL=new Set([TI.B,TI.BIG,TI.BLOCKQUOTE,TI.BODY,TI.BR,TI.CENTER,TI.CODE,TI.DD,TI.DIV,TI.DL,TI.DT,TI.EM,TI.EMBED,TI.H1,TI.H2,TI.H3,TI.H4,TI.H5,TI.H6,TI.HEAD,TI.HR,TI.I,TI.IMG,TI.LI,TI.LISTING,TI.MENU,TI.META,TI.NOBR,TI.OL,TI.P,TI.PRE,TI.RUBY,TI.S,TI.SMALL,TI.SPAN,TI.STRONG,TI.STRIKE,TI.SUB,TI.SUP,TI.TABLE,TI.TT,TI.U,TI.UL,TI.VAR]);function BL(t){for(let e=0;e<t.attrs.length;e++)if("definitionurl"===t.attrs[e].name){t.attrs[e].name="definitionURL";break}}function TL(t){for(let e=0;e<t.attrs.length;e++){const n=wL.get(t.attrs[e].name);null!=n&&(t.attrs[e].name=n)}}function kL(t){for(let e=0;e<t.attrs.length;e++){const n=EL.get(t.attrs[e].name);n&&(t.attrs[e].prefix=n.prefix,t.attrs[e].name=n.name,t.attrs[e].namespace=n.namespace)}}function SL(t,e,n,r){return(!r||r===EI.HTML)&&function(t,e,n){if(e===EI.MATHML&&t===TI.ANNOTATION_XML)for(let t=0;t<n.length;t++)if(n[t].name===CI.ENCODING){const e=n[t].value.toLowerCase();return e===bL||e===_L}return e===EI.SVG&&(t===TI.FOREIGN_OBJECT||t===TI.DESC||t===TI.TITLE)}(t,e,n)||(!r||r===EI.MATHML)&&function(t,e){return e===EI.MATHML&&(t===TI.MI||t===TI.MO||t===TI.MN||t===TI.MS||t===TI.MTEXT)}(t,e)}var IL;!function(t){t[t.INITIAL=0]="INITIAL",t[t.BEFORE_HTML=1]="BEFORE_HTML",t[t.BEFORE_HEAD=2]="BEFORE_HEAD",t[t.IN_HEAD=3]="IN_HEAD",t[t.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",t[t.AFTER_HEAD=5]="AFTER_HEAD",t[t.IN_BODY=6]="IN_BODY",t[t.TEXT=7]="TEXT",t[t.IN_TABLE=8]="IN_TABLE",t[t.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",t[t.IN_CAPTION=10]="IN_CAPTION",t[t.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",t[t.IN_TABLE_BODY=12]="IN_TABLE_BODY",t[t.IN_ROW=13]="IN_ROW",t[t.IN_CELL=14]="IN_CELL",t[t.IN_SELECT=15]="IN_SELECT",t[t.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",t[t.IN_TEMPLATE=17]="IN_TEMPLATE",t[t.AFTER_BODY=18]="AFTER_BODY",t[t.IN_FRAMESET=19]="IN_FRAMESET",t[t.AFTER_FRAMESET=20]="AFTER_FRAMESET",t[t.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",t[t.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"}(IL||(IL={}));const LL={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},FL=new Set([TI.TABLE,TI.TBODY,TI.TFOOT,TI.THEAD,TI.TR]),NL={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:fL,onParseError:null};class OL{constructor(t,e,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=IL.INITIAL,this.originalInsertionMode=IL.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={...NL,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=e?e:this.treeAdapter.createDocument(),this.tokenizer=new JI(this.options,this),this.activeFormattingElements=new AL(this.treeAdapter),this.fragmentContextID=n?DI(this.treeAdapter.getTagName(n)):TI.UNKNOWN,this._setContextModes(null!=n?n:this.document,this.fragmentContextID),this.openElements=new sL(this.document,this.treeAdapter,this)}static parse(t,e){const n=new this(e);return n.tokenizer.write(t,!0),n.document}static getFragmentParser(t,e){const n={...NL,...e};null!=t||(t=n.treeAdapter.createElement(BI.TEMPLATE,EI.HTML,[]));const r=n.treeAdapter.createElement("documentmock",EI.HTML,[]),i=new this(n,r,t);return i.fragmentContextID===TI.TEMPLATE&&i.tmplInsertionModeStack.unshift(IL.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),e=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,e),e}_err(t,e,n){var r;if(!this.onParseError)return;const i=null!==(r=t.location)&&void 0!==r?r:LL,a={code:e,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:n?i.startLine:i.endLine,endCol:n?i.startCol:i.endCol,endOffset:n?i.startOffset:i.endOffset};this.onParseError(a)}onItemPush(t,e,n){var r,i;null===(i=(r=this.treeAdapter).onItemPush)||void 0===i||i.call(r,t),n&&this.openElements.stackTop>0&&this._setContextModes(t,e)}onItemPop(t,e){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,t,this.openElements.current),e){let t,e;0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,e=this.fragmentContextID):({current:t,currentTagId:e}=this.openElements),this._setContextModes(t,e)}}_setContextModes(t,e){const n=t===this.document||this.treeAdapter.getNamespaceURI(t)===EI.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(e,t)}_switchToTextParsing(t,e){this._insertElement(t,EI.HTML),this.tokenizer.state=e,this.originalInsertionMode=this.insertionMode,this.insertionMode=IL.TEXT}switchToPlaintextParsing(){this.insertionMode=IL.TEXT,this.originalInsertionMode=IL.IN_BODY,this.tokenizer.state=GI.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===BI.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===EI.HTML)switch(this.fragmentContextID){case TI.TITLE:case TI.TEXTAREA:this.tokenizer.state=GI.RCDATA;break;case TI.STYLE:case TI.XMP:case TI.IFRAME:case TI.NOEMBED:case TI.NOFRAMES:case TI.NOSCRIPT:this.tokenizer.state=GI.RAWTEXT;break;case TI.SCRIPT:this.tokenizer.state=GI.SCRIPT_DATA;break;case TI.PLAINTEXT:this.tokenizer.state=GI.PLAINTEXT}}_setDocumentType(t){const e=t.name||"",n=t.publicId||"",r=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,e,n,r),t.location){const e=this.treeAdapter.getChildNodes(this.document).find(t=>this.treeAdapter.isDocumentTypeNode(t));e&&this.treeAdapter.setNodeSourceCodeLocation(e,t.location)}}_attachElementToTree(t,e){if(this.options.sourceCodeLocationInfo){const n=e&&{...e,startTag:e};this.treeAdapter.setNodeSourceCodeLocation(t,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const e=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(e,t)}}_appendElement(t,e){const n=this.treeAdapter.createElement(t.tagName,e,t.attrs);this._attachElementToTree(n,t.location)}_insertElement(t,e){const n=this.treeAdapter.createElement(t.tagName,e,t.attrs);this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID)}_insertFakeElement(t,e){const n=this.treeAdapter.createElement(t,EI.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,e)}_insertTemplate(t){const e=this.treeAdapter.createElement(t.tagName,EI.HTML,t.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(e,n),this._attachElementToTree(e,t.location),this.openElements.push(e,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(BI.HTML,EI.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,TI.HTML)}_appendCommentNode(t,e){const n=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(e,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,t.location)}_insertCharacters(t){let e,n;if(this._shouldFosterParentOnInsertion()?(({parent:e,beforeElement:n}=this._findFosterParentingLocation()),n?this.treeAdapter.insertTextBefore(e,t.chars,n):this.treeAdapter.insertText(e,t.chars)):(e=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(e,t.chars)),!t.location)return;const r=this.treeAdapter.getChildNodes(e),i=n?r.lastIndexOf(n):r.length,a=r[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:e,endCol:n,endOffset:r}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:e,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}_adoptNodes(t,e){for(let n=this.treeAdapter.getFirstChild(t);n;n=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(e,n)}_setEndLocation(t,e){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&e.location){const n=e.location,r=this.treeAdapter.getTagName(t),i=e.type===mI.END_TAG&&r===e.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let e,n;return 0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,n=this.fragmentContextID):({current:e,currentTagId:n}=this.openElements),(t.tagID!==TI.SVG||this.treeAdapter.getTagName(e)!==BI.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(e)!==EI.MATHML)&&(this.tokenizer.inForeignNode||(t.tagID===TI.MGLYPH||t.tagID===TI.MALIGNMARK)&&!this._isIntegrationPoint(n,e,EI.HTML))}_processToken(t){switch(t.type){case mI.CHARACTER:this.onCharacter(t);break;case mI.NULL_CHARACTER:this.onNullCharacter(t);break;case mI.COMMENT:this.onComment(t);break;case mI.DOCTYPE:this.onDoctype(t);break;case mI.START_TAG:this._processStartTag(t);break;case mI.END_TAG:this.onEndTag(t);break;case mI.EOF:this.onEof(t);break;case mI.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(t)}}_isIntegrationPoint(t,e,n){return SL(t,this.treeAdapter.getNamespaceURI(e),this.treeAdapter.getAttrList(e),n)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const e=this.activeFormattingElements.entries.findIndex(t=>t.type===cL.Marker||this.openElements.contains(t.element));for(let n=e<0?t-1:e-1;n>=0;n--){const t=this.activeFormattingElements.entries[n];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=IL.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(TI.P),this.openElements.popUntilTagNamePopped(TI.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(0===t&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case TI.TR:return void(this.insertionMode=IL.IN_ROW);case TI.TBODY:case TI.THEAD:case TI.TFOOT:return void(this.insertionMode=IL.IN_TABLE_BODY);case TI.CAPTION:return void(this.insertionMode=IL.IN_CAPTION);case TI.COLGROUP:return void(this.insertionMode=IL.IN_COLUMN_GROUP);case TI.TABLE:return void(this.insertionMode=IL.IN_TABLE);case TI.BODY:return void(this.insertionMode=IL.IN_BODY);case TI.FRAMESET:return void(this.insertionMode=IL.IN_FRAMESET);case TI.SELECT:return void this._resetInsertionModeForSelect(t);case TI.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case TI.HTML:return void(this.insertionMode=this.headElement?IL.AFTER_HEAD:IL.BEFORE_HEAD);case TI.TD:case TI.TH:if(t>0)return void(this.insertionMode=IL.IN_CELL);break;case TI.HEAD:if(t>0)return void(this.insertionMode=IL.IN_HEAD)}this.insertionMode=IL.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let e=t-1;e>0;e--){const t=this.openElements.tagIDs[e];if(t===TI.TEMPLATE)break;if(t===TI.TABLE)return void(this.insertionMode=IL.IN_SELECT_IN_TABLE)}this.insertionMode=IL.IN_SELECT}_isElementCausesFosterParenting(t){return FL.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const e=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case TI.TEMPLATE:if(this.treeAdapter.getNamespaceURI(e)===EI.HTML)return{parent:this.treeAdapter.getTemplateContent(e),beforeElement:null};break;case TI.TABLE:{const n=this.treeAdapter.getParentNode(e);return n?{parent:n,beforeElement:e}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const e=this._findFosterParentingLocation();e.beforeElement?this.treeAdapter.insertBefore(e.parent,t,e.beforeElement):this.treeAdapter.appendChild(e.parent,t)}_isSpecialElement(t,e){const n=this.treeAdapter.getNamespaceURI(t);return RI[n].has(e)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(t,e){t._insertCharacters(e),t.framesetOk=!1}(this,t);else switch(this.insertionMode){case IL.INITIAL:$L(this,t);break;case IL.BEFORE_HTML:KL(this,t);break;case IL.BEFORE_HEAD:YL(this,t);break;case IL.IN_HEAD:VL(this,t);break;case IL.IN_HEAD_NO_SCRIPT:qL(this,t);break;case IL.AFTER_HEAD:XL(this,t);break;case IL.IN_BODY:case IL.IN_CAPTION:case IL.IN_CELL:case IL.IN_TEMPLATE:tF(this,t);break;case IL.TEXT:case IL.IN_SELECT:case IL.IN_SELECT_IN_TABLE:this._insertCharacters(t);break;case IL.IN_TABLE:case IL.IN_TABLE_BODY:case IL.IN_ROW:lF(this,t);break;case IL.IN_TABLE_TEXT:dF(this,t);break;case IL.IN_COLUMN_GROUP:yF(this,t);break;case IL.AFTER_BODY:TF(this,t);break;case IL.AFTER_AFTER_BODY:kF(this,t)}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(t,e){e.chars="<22>",t._insertCharacters(e)}(this,t);else switch(this.insertionMode){case IL.INITIAL:$L(this,t);break;case IL.BEFORE_HTML:KL(this,t);break;case IL.BEFORE_HEAD:YL(this,t);break;case IL.IN_HEAD:VL(this,t);break;case IL.IN_HEAD_NO_SCRIPT:qL(this,t);break;case IL.AFTER_HEAD:XL(this,t);break;case IL.TEXT:this._insertCharacters(t);break;case IL.IN_TABLE:case IL.IN_TABLE_BODY:case IL.IN_ROW:lF(this,t);break;case IL.IN_COLUMN_GROUP:yF(this,t);break;case IL.AFTER_BODY:TF(this,t);break;case IL.AFTER_AFTER_BODY:kF(this,t)}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML)GL(this,t);else switch(this.insertionMode){case IL.INITIAL:case IL.BEFORE_HTML:case IL.BEFORE_HEAD:case IL.IN_HEAD:case IL.IN_HEAD_NO_SCRIPT:case IL.AFTER_HEAD:case IL.IN_BODY:case IL.IN_TABLE:case IL.IN_CAPTION:case IL.IN_COLUMN_GROUP:case IL.IN_TABLE_BODY:case IL.IN_ROW:case IL.IN_CELL:case IL.IN_SELECT:case IL.IN_SELECT_IN_TABLE:case IL.IN_TEMPLATE:case IL.IN_FRAMESET:case IL.AFTER_FRAMESET:GL(this,t);break;case IL.IN_TABLE_TEXT:pF(this,t);break;case IL.AFTER_BODY:!function(t,e){t._appendCommentNode(e,t.openElements.items[0])}(this,t);break;case IL.AFTER_AFTER_BODY:case IL.AFTER_AFTER_FRAMESET:!function(t,e){t._appendCommentNode(e,t.document)}(this,t)}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case IL.INITIAL:!function(t,e){t._setDocumentType(e);const n=e.forceQuirks?xI.QUIRKS:function(t){if("html"!==t.name)return xI.QUIRKS;const{systemId:e}=t;if(e&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===e.toLowerCase())return xI.QUIRKS;let{publicId:n}=t;if(null!==n){if(n=n.toLowerCase(),gL.has(n))return xI.QUIRKS;let t=null===e?pL:dL;if(vL(n,t))return xI.QUIRKS;if(t=null===e?mL:yL,vL(n,t))return xI.LIMITED_QUIRKS}return xI.NO_QUIRKS}(e);(function(t){return"html"===t.name&&null===t.publicId&&(null===t.systemId||"about:legacy-compat"===t.systemId)})(e)||t._err(e,pI.nonConformingDoctype);t.treeAdapter.setDocumentMode(t.document,n),t.insertionMode=IL.BEFORE_HTML}(this,t);break;case IL.BEFORE_HEAD:case IL.IN_HEAD:case IL.IN_HEAD_NO_SCRIPT:case IL.AFTER_HEAD:this._err(t,pI.misplacedDoctype);break;case IL.IN_TABLE_TEXT:pF(this,t)}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,pI.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?function(t,e){if(function(t){const e=t.tagID;return e===TI.FONT&&t.attrs.some(({name:t})=>t===CI.COLOR||t===CI.SIZE||t===CI.FACE)||xL.has(e)}(e))SF(t),t._startTagOutsideForeignContent(e);else{const n=t._getAdjustedCurrentElement(),r=t.treeAdapter.getNamespaceURI(n);r===EI.MATHML?BL(e):r===EI.SVG&&(!function(t){const e=CL.get(t.tagName);null!=e&&(t.tagName=e,t.tagID=DI(t.tagName))}(e),TL(e)),kL(e),e.selfClosing?t._appendElement(e,r):t._insertElement(e,r),e.ackSelfClosing=!0}}(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case IL.INITIAL:$L(this,t);break;case IL.BEFORE_HTML:!function(t,e){e.tagID===TI.HTML?(t._insertElement(e,EI.HTML),t.insertionMode=IL.BEFORE_HEAD):KL(t,e)}(this,t);break;case IL.BEFORE_HEAD:!function(t,e){switch(e.tagID){case TI.HTML:aF(t,e);break;case TI.HEAD:t._insertElement(e,EI.HTML),t.headElement=t.openElements.current,t.insertionMode=IL.IN_HEAD;break;default:YL(t,e)}}(this,t);break;case IL.IN_HEAD:zL(this,t);break;case IL.IN_HEAD_NO_SCRIPT:!function(t,e){switch(e.tagID){case TI.HTML:aF(t,e);break;case TI.BASEFONT:case TI.BGSOUND:case TI.HEAD:case TI.LINK:case TI.META:case TI.NOFRAMES:case TI.STYLE:zL(t,e);break;case TI.NOSCRIPT:t._err(e,pI.nestedNoscriptInHead);break;default:qL(t,e)}}(this,t);break;case IL.AFTER_HEAD:!function(t,e){switch(e.tagID){case TI.HTML:aF(t,e);break;case TI.BODY:t._insertElement(e,EI.HTML),t.framesetOk=!1,t.insertionMode=IL.IN_BODY;break;case TI.FRAMESET:t._insertElement(e,EI.HTML),t.insertionMode=IL.IN_FRAMESET;break;case TI.BASE:case TI.BASEFONT:case TI.BGSOUND:case TI.LINK:case TI.META:case TI.NOFRAMES:case TI.SCRIPT:case TI.STYLE:case TI.TEMPLATE:case TI.TITLE:t._err(e,pI.abandonedHeadElementChild),t.openElements.push(t.headElement,TI.HEAD),zL(t,e),t.openElements.remove(t.headElement);break;case TI.HEAD:t._err(e,pI.misplacedStartTagForHeadElement);break;default:XL(t,e)}}(this,t);break;case IL.IN_BODY:aF(this,t);break;case IL.IN_TABLE:AF(this,t);break;case IL.IN_TABLE_TEXT:pF(this,t);break;case IL.IN_CAPTION:!function(t,e){const n=e.tagID;gF.has(n)?t.openElements.hasInTableScope(TI.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(TI.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=IL.IN_TABLE,AF(t,e)):aF(t,e)}(this,t);break;case IL.IN_COLUMN_GROUP:mF(this,t);break;case IL.IN_TABLE_BODY:vF(this,t);break;case IL.IN_ROW:_F(this,t);break;case IL.IN_CELL:!function(t,e){const n=e.tagID;gF.has(n)?(t.openElements.hasInTableScope(TI.TD)||t.openElements.hasInTableScope(TI.TH))&&(t._closeTableCell(),_F(t,e)):aF(t,e)}(this,t);break;case IL.IN_SELECT:EF(this,t);break;case IL.IN_SELECT_IN_TABLE:!function(t,e){const n=e.tagID;n===TI.CAPTION||n===TI.TABLE||n===TI.TBODY||n===TI.TFOOT||n===TI.THEAD||n===TI.TR||n===TI.TD||n===TI.TH?(t.openElements.popUntilTagNamePopped(TI.SELECT),t._resetInsertionMode(),t._processStartTag(e)):EF(t,e)}(this,t);break;case IL.IN_TEMPLATE:!function(t,e){switch(e.tagID){case TI.BASE:case TI.BASEFONT:case TI.BGSOUND:case TI.LINK:case TI.META:case TI.NOFRAMES:case TI.SCRIPT:case TI.STYLE:case TI.TEMPLATE:case TI.TITLE:zL(t,e);break;case TI.CAPTION:case TI.COLGROUP:case TI.TBODY:case TI.TFOOT:case TI.THEAD:t.tmplInsertionModeStack[0]=IL.IN_TABLE,t.insertionMode=IL.IN_TABLE,AF(t,e);break;case TI.COL:t.tmplInsertionModeStack[0]=IL.IN_COLUMN_GROUP,t.insertionMode=IL.IN_COLUMN_GROUP,mF(t,e);break;case TI.TR:t.tmplInsertionModeStack[0]=IL.IN_TABLE_BODY,t.insertionMode=IL.IN_TABLE_BODY,vF(t,e);break;case TI.TD:case TI.TH:t.tmplInsertionModeStack[0]=IL.IN_ROW,t.insertionMode=IL.IN_ROW,_F(t,e);break;default:t.tmplInsertionModeStack[0]=IL.IN_BODY,t.insertionMode=IL.IN_BODY,aF(t,e)}}(this,t);break;case IL.AFTER_BODY:!function(t,e){e.tagID===TI.HTML?aF(t,e):TF(t,e)}(this,t);break;case IL.IN_FRAMESET:!function(t,e){switch(e.tagID){case TI.HTML:aF(t,e);break;case TI.FRAMESET:t._insertElement(e,EI.HTML);break;case TI.FRAME:t._appendElement(e,EI.HTML),e.ackSelfClosing=!0;break;case TI.NOFRAMES:zL(t,e)}}(this,t);break;case IL.AFTER_FRAMESET:!function(t,e){switch(e.tagID){case TI.HTML:aF(t,e);break;case TI.NOFRAMES:zL(t,e)}}(this,t);break;case IL.AFTER_AFTER_BODY:!function(t,e){e.tagID===TI.HTML?aF(t,e):kF(t,e)}(this,t);break;case IL.AFTER_AFTER_FRAMESET:!function(t,e){switch(e.tagID){case TI.HTML:aF(t,e);break;case TI.NOFRAMES:zL(t,e)}}(this,t)}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?function(t,e){if(e.tagID===TI.P||e.tagID===TI.BR)return SF(t),void t._endTagOutsideForeignContent(e);for(let n=t.openElements.stackTop;n>0;n--){const r=t.openElements.items[n];if(t.treeAdapter.getNamespaceURI(r)===EI.HTML){t._endTagOutsideForeignContent(e);break}const i=t.treeAdapter.getTagName(r);if(i.toLowerCase()===e.tagName){e.tagName=i,t.openElements.shortenToLength(n);break}}}(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case IL.INITIAL:$L(this,t);break;case IL.BEFORE_HTML:!function(t,e){const n=e.tagID;n!==TI.HTML&&n!==TI.HEAD&&n!==TI.BODY&&n!==TI.BR||KL(t,e)}(this,t);break;case IL.BEFORE_HEAD:!function(t,e){const n=e.tagID;n===TI.HEAD||n===TI.BODY||n===TI.HTML||n===TI.BR?YL(t,e):t._err(e,pI.endTagWithoutMatchingOpenElement)}(this,t);break;case IL.IN_HEAD:WL(this,t);break;case IL.IN_HEAD_NO_SCRIPT:!function(t,e){switch(e.tagID){case TI.NOSCRIPT:t.openElements.pop(),t.insertionMode=IL.IN_HEAD;break;case TI.BR:qL(t,e);break;default:t._err(e,pI.endTagWithoutMatchingOpenElement)}}(this,t);break;case IL.AFTER_HEAD:!function(t,e){switch(e.tagID){case TI.BODY:case TI.HTML:case TI.BR:XL(t,e);break;case TI.TEMPLATE:WL(t,e);break;default:t._err(e,pI.endTagWithoutMatchingOpenElement)}}(this,t);break;case IL.IN_BODY:sF(this,t);break;case IL.TEXT:!function(t,e){var n;e.tagID===TI.SCRIPT&&(null===(n=t.scriptHandler)||void 0===n||n.call(t,t.openElements.current));t.openElements.pop(),t.insertionMode=t.originalInsertionMode}(this,t);break;case IL.IN_TABLE:uF(this,t);break;case IL.IN_TABLE_TEXT:pF(this,t);break;case IL.IN_CAPTION:!function(t,e){const n=e.tagID;switch(n){case TI.CAPTION:case TI.TABLE:t.openElements.hasInTableScope(TI.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(TI.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=IL.IN_TABLE,n===TI.TABLE&&uF(t,e));break;case TI.BODY:case TI.COL:case TI.COLGROUP:case TI.HTML:case TI.TBODY:case TI.TD:case TI.TFOOT:case TI.TH:case TI.THEAD:case TI.TR:break;default:sF(t,e)}}(this,t);break;case IL.IN_COLUMN_GROUP:!function(t,e){switch(e.tagID){case TI.COLGROUP:t.openElements.currentTagId===TI.COLGROUP&&(t.openElements.pop(),t.insertionMode=IL.IN_TABLE);break;case TI.TEMPLATE:WL(t,e);break;case TI.COL:break;default:yF(t,e)}}(this,t);break;case IL.IN_TABLE_BODY:bF(this,t);break;case IL.IN_ROW:wF(this,t);break;case IL.IN_CELL:!function(t,e){const n=e.tagID;switch(n){case TI.TD:case TI.TH:t.openElements.hasInTableScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=IL.IN_ROW);break;case TI.TABLE:case TI.TBODY:case TI.TFOOT:case TI.THEAD:case TI.TR:t.openElements.hasInTableScope(n)&&(t._closeTableCell(),wF(t,e));break;case TI.BODY:case TI.CAPTION:case TI.COL:case TI.COLGROUP:case TI.HTML:break;default:sF(t,e)}}(this,t);break;case IL.IN_SELECT:CF(this,t);break;case IL.IN_SELECT_IN_TABLE:!function(t,e){const n=e.tagID;n===TI.CAPTION||n===TI.TABLE||n===TI.TBODY||n===TI.TFOOT||n===TI.THEAD||n===TI.TR||n===TI.TD||n===TI.TH?t.openElements.hasInTableScope(n)&&(t.openElements.popUntilTagNamePopped(TI.SELECT),t._resetInsertionMode(),t.onEndTag(e)):CF(t,e)}(this,t);break;case IL.IN_TEMPLATE:!function(t,e){e.tagID===TI.TEMPLATE&&WL(t,e)}(this,t);break;case IL.AFTER_BODY:BF(this,t);break;case IL.IN_FRAMESET:!function(t,e){e.tagID!==TI.FRAMESET||t.openElements.isRootHtmlElementCurrent()||(t.openElements.pop(),t.fragmentContext||t.openElements.currentTagId===TI.FRAMESET||(t.insertionMode=IL.AFTER_FRAMESET))}(this,t);break;case IL.AFTER_FRAMESET:!function(t,e){e.tagID===TI.HTML&&(t.insertionMode=IL.AFTER_AFTER_FRAMESET)}(this,t);break;case IL.AFTER_AFTER_BODY:kF(this,t)}}onEof(t){switch(this.insertionMode){case IL.INITIAL:$L(this,t);break;case IL.BEFORE_HTML:KL(this,t);break;case IL.BEFORE_HEAD:YL(this,t);break;case IL.IN_HEAD:VL(this,t);break;case IL.IN_HEAD_NO_SCRIPT:qL(this,t);break;case IL.AFTER_HEAD:XL(this,t);break;case IL.IN_BODY:case IL.IN_TABLE:case IL.IN_CAPTION:case IL.IN_COLUMN_GROUP:case IL.IN_TABLE_BODY:case IL.IN_ROW:case IL.IN_CELL:case IL.IN_SELECT:case IL.IN_SELECT_IN_TABLE:cF(this,t);break;case IL.TEXT:!function(t,e){t._err(e,pI.eofInElementThatCanContainOnlyText),t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t.onEof(e)}(this,t);break;case IL.IN_TABLE_TEXT:pF(this,t);break;case IL.IN_TEMPLATE:xF(this,t);break;case IL.AFTER_BODY:case IL.IN_FRAMESET:case IL.AFTER_FRAMESET:case IL.AFTER_AFTER_BODY:case IL.AFTER_AFTER_FRAMESET:jL(this,t)}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===aI.LINE_FEED)){if(1===t.chars.length)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(t);else switch(this.insertionMode){case IL.IN_HEAD:case IL.IN_HEAD_NO_SCRIPT:case IL.AFTER_HEAD:case IL.TEXT:case IL.IN_COLUMN_GROUP:case IL.IN_SELECT:case IL.IN_SELECT_IN_TABLE:case IL.IN_FRAMESET:case IL.AFTER_FRAMESET:this._insertCharacters(t);break;case IL.IN_BODY:case IL.IN_CAPTION:case IL.IN_CELL:case IL.IN_TEMPLATE:case IL.AFTER_BODY:case IL.AFTER_AFTER_BODY:case IL.AFTER_AFTER_FRAMESET:ZL(this,t);break;case IL.IN_TABLE:case IL.IN_TABLE_BODY:case IL.IN_ROW:lF(this,t);break;case IL.IN_TABLE_TEXT:fF(this,t)}}}function DL(t,e){let n=t.activeFormattingElements.getElementEntryInScopeWithTagName(e.tagName);return n?t.openElements.contains(n.element)?t.openElements.hasInScope(e.tagID)||(n=null):(t.activeFormattingElements.removeEntry(n),n=null):oF(t,e),n}function ML(t,e){let n=null,r=t.openElements.stackTop;for(;r>=0;r--){const i=t.openElements.items[r];if(i===e.element)break;t._isSpecialElement(i,t.openElements.tagIDs[r])&&(n=i)}return n||(t.openElements.shortenToLength(r<0?0:r),t.activeFormattingElements.removeEntry(e)),n}function RL(t,e,n){let r=e,i=t.openElements.getCommonAncestor(e);for(let a=0,o=i;o!==n;a++,o=i){i=t.openElements.getCommonAncestor(o);const n=t.activeFormattingElements.getElementEntry(o),s=n&&a>=3;!n||s?(s&&t.activeFormattingElements.removeEntry(n),t.openElements.remove(o)):(o=UL(t,n),r===e&&(t.activeFormattingElements.bookmark=n),t.treeAdapter.detachNode(r),t.treeAdapter.appendChild(o,r),r=o)}return r}function UL(t,e){const n=t.treeAdapter.getNamespaceURI(e.element),r=t.treeAdapter.createElement(e.token.tagName,n,e.token.attrs);return t.openElements.replace(e.element,r),e.element=r,r}function PL(t,e,n){const r=DI(t.treeAdapter.getTagName(e));if(t._isElementCausesFosterParenting(r))t._fosterParentElement(n);else{const i=t.treeAdapter.getNamespaceURI(e);r===TI.TEMPLATE&&i===EI.HTML&&(e=t.treeAdapter.getTemplateContent(e)),t.treeAdapter.appendChild(e,n)}}function HL(t,e,n){const r=t.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=t.treeAdapter.createElement(i.tagName,r,i.attrs);t._adoptNodes(e,a),t.treeAdapter.appendChild(e,a),t.activeFormattingElements.insertElementAfterBookmark(a,i),t.activeFormattingElements.removeEntry(n),t.openElements.remove(n.element),t.openElements.insertAfter(e,a,i.tagID)}function QL(t,e){for(let n=0;n<8;n++){const n=DL(t,e);if(!n)break;const r=ML(t,n);if(!r)break;t.activeFormattingElements.bookmark=n;const i=RL(t,r,n.element),a=t.openElements.getCommonAncestor(n.element);t.treeAdapter.detachNode(i),a&&PL(t,a,i),HL(t,r,n)}}function GL(t,e){t._appendCommentNode(e,t.openElements.currentTmplContentOrNode)}function jL(t,e){if(t.stopped=!0,e.location){const n=t.fragmentContext?0:2;for(let r=t.openElements.stackTop;r>=n;r--)t._setEndLocation(t.openElements.items[r],e);if(!t.fragmentContext&&t.openElements.stackTop>=0){const n=t.openElements.items[0],r=t.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(t._setEndLocation(n,e),t.openElements.stackTop>=1)){const n=t.openElements.items[1],r=t.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&t._setEndLocation(n,e)}}}}function $L(t,e){t._err(e,pI.missingDoctype,!0),t.treeAdapter.setDocumentMode(t.document,xI.QUIRKS),t.insertionMode=IL.BEFORE_HTML,t._processToken(e)}function KL(t,e){t._insertFakeRootElement(),t.insertionMode=IL.BEFORE_HEAD,t._processToken(e)}function YL(t,e){t._insertFakeElement(BI.HEAD,TI.HEAD),t.headElement=t.openElements.current,t.insertionMode=IL.IN_HEAD,t._processToken(e)}function zL(t,e){switch(e.tagID){case TI.HTML:aF(t,e);break;case TI.BASE:case TI.BASEFONT:case TI.BGSOUND:case TI.LINK:case TI.META:t._appendElement(e,EI.HTML),e.ackSelfClosing=!0;break;case TI.TITLE:t._switchToTextParsing(e,GI.RCDATA);break;case TI.NOSCRIPT:t.options.scriptingEnabled?t._switchToTextParsing(e,GI.RAWTEXT):(t._insertElement(e,EI.HTML),t.insertionMode=IL.IN_HEAD_NO_SCRIPT);break;case TI.NOFRAMES:case TI.STYLE:t._switchToTextParsing(e,GI.RAWTEXT);break;case TI.SCRIPT:t._switchToTextParsing(e,GI.SCRIPT_DATA);break;case TI.TEMPLATE:t._insertTemplate(e),t.activeFormattingElements.insertMarker(),t.framesetOk=!1,t.insertionMode=IL.IN_TEMPLATE,t.tmplInsertionModeStack.unshift(IL.IN_TEMPLATE);break;case TI.HEAD:t._err(e,pI.misplacedStartTagForHeadElement);break;default:VL(t,e)}}function WL(t,e){switch(e.tagID){case TI.HEAD:t.openElements.pop(),t.insertionMode=IL.AFTER_HEAD;break;case TI.BODY:case TI.BR:case TI.HTML:VL(t,e);break;case TI.TEMPLATE:t.openElements.tmplCount>0?(t.openElements.generateImpliedEndTagsThoroughly(),t.openElements.currentTagId!==TI.TEMPLATE&&t._err(e,pI.closingOfElementWithOpenChildElements),t.openElements.popUntilTagNamePopped(TI.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode()):t._err(e,pI.endTagWithoutMatchingOpenElement);break;default:t._err(e,pI.endTagWithoutMatchingOpenElement)}}function VL(t,e){t.openElements.pop(),t.insertionMode=IL.AFTER_HEAD,t._processToken(e)}function qL(t,e){const n=e.type===mI.EOF?pI.openElementsLeftAfterEof:pI.disallowedContentInNoscriptInHead;t._err(e,n),t.openElements.pop(),t.insertionMode=IL.IN_HEAD,t._processToken(e)}function XL(t,e){t._insertFakeElement(BI.BODY,TI.BODY),t.insertionMode=IL.IN_BODY,JL(t,e)}function JL(t,e){switch(e.type){case mI.CHARACTER:tF(t,e);break;case mI.WHITESPACE_CHARACTER:ZL(t,e);break;case mI.COMMENT:GL(t,e);break;case mI.START_TAG:aF(t,e);break;case mI.END_TAG:sF(t,e);break;case mI.EOF:cF(t,e)}}function ZL(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e)}function tF(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e),t.framesetOk=!1}function eF(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,EI.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}function nF(t){const e=yI(t,CI.TYPE);return null!=e&&"hidden"===e.toLowerCase()}function rF(t,e){t._switchToTextParsing(e,GI.RAWTEXT)}function iF(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,EI.HTML)}function aF(t,e){switch(e.tagID){case TI.I:case TI.S:case TI.B:case TI.U:case TI.EM:case TI.TT:case TI.BIG:case TI.CODE:case TI.FONT:case TI.SMALL:case TI.STRIKE:case TI.STRONG:!function(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,EI.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}(t,e);break;case TI.A:!function(t,e){const n=t.activeFormattingElements.getElementEntryInScopeWithTagName(BI.A);n&&(QL(t,e),t.openElements.remove(n.element),t.activeFormattingElements.removeEntry(n)),t._reconstructActiveFormattingElements(),t._insertElement(e,EI.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}(t,e);break;case TI.H1:case TI.H2:case TI.H3:case TI.H4:case TI.H5:case TI.H6:!function(t,e){t.openElements.hasInButtonScope(TI.P)&&t._closePElement(),UI(t.openElements.currentTagId)&&t.openElements.pop(),t._insertElement(e,EI.HTML)}(t,e);break;case TI.P:case TI.DL:case TI.OL:case TI.UL:case TI.DIV:case TI.DIR:case TI.NAV:case TI.MAIN:case TI.MENU:case TI.ASIDE:case TI.CENTER:case TI.FIGURE:case TI.FOOTER:case TI.HEADER:case TI.HGROUP:case TI.DIALOG:case TI.DETAILS:case TI.ADDRESS:case TI.ARTICLE:case TI.SECTION:case TI.SUMMARY:case TI.FIELDSET:case TI.BLOCKQUOTE:case TI.FIGCAPTION:!function(t,e){t.openElements.hasInButtonScope(TI.P)&&t._closePElement(),t._insertElement(e,EI.HTML)}(t,e);break;case TI.LI:case TI.DD:case TI.DT:!function(t,e){t.framesetOk=!1;const n=e.tagID;for(let e=t.openElements.stackTop;e>=0;e--){const r=t.openElements.tagIDs[e];if(n===TI.LI&&r===TI.LI||(n===TI.DD||n===TI.DT)&&(r===TI.DD||r===TI.DT)){t.openElements.generateImpliedEndTagsWithExclusion(r),t.openElements.popUntilTagNamePopped(r);break}if(r!==TI.ADDRESS&&r!==TI.DIV&&r!==TI.P&&t._isSpecialElement(t.openElements.items[e],r))break}t.openElements.hasInButtonScope(TI.P)&&t._closePElement(),t._insertElement(e,EI.HTML)}(t,e);break;case TI.BR:case TI.IMG:case TI.WBR:case TI.AREA:case TI.EMBED:case TI.KEYGEN:eF(t,e);break;case TI.HR:!function(t,e){t.openElements.hasInButtonScope(TI.P)&&t._closePElement(),t._appendElement(e,EI.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}(t,e);break;case TI.RB:case TI.RTC:!function(t,e){t.openElements.hasInScope(TI.RUBY)&&t.openElements.generateImpliedEndTags(),t._insertElement(e,EI.HTML)}(t,e);break;case TI.RT:case TI.RP:!function(t,e){t.openElements.hasInScope(TI.RUBY)&&t.openElements.generateImpliedEndTagsWithExclusion(TI.RTC),t._insertElement(e,EI.HTML)}(t,e);break;case TI.PRE:case TI.LISTING:!function(t,e){t.openElements.hasInButtonScope(TI.P)&&t._closePElement(),t._insertElement(e,EI.HTML),t.skipNextNewLine=!0,t.framesetOk=!1}(t,e);break;case TI.XMP:!function(t,e){t.openElements.hasInButtonScope(TI.P)&&t._closePElement(),t._reconstructActiveFormattingElements(),t.framesetOk=!1,t._switchToTextParsing(e,GI.RAWTEXT)}(t,e);break;case TI.SVG:!function(t,e){t._reconstructActiveFormattingElements(),TL(e),kL(e),e.selfClosing?t._appendElement(e,EI.SVG):t._insertElement(e,EI.SVG),e.ackSelfClosing=!0}(t,e);break;case TI.HTML:!function(t,e){0===t.openElements.tmplCount&&t.treeAdapter.adoptAttributes(t.openElements.items[0],e.attrs)}(t,e);break;case TI.BASE:case TI.LINK:case TI.META:case TI.STYLE:case TI.TITLE:case TI.SCRIPT:case TI.BGSOUND:case TI.BASEFONT:case TI.TEMPLATE:zL(t,e);break;case TI.BODY:!function(t,e){const n=t.openElements.tryPeekProperlyNestedBodyElement();n&&0===t.openElements.tmplCount&&(t.framesetOk=!1,t.treeAdapter.adoptAttributes(n,e.attrs))}(t,e);break;case TI.FORM:!function(t,e){const n=t.openElements.tmplCount>0;t.formElement&&!n||(t.openElements.hasInButtonScope(TI.P)&&t._closePElement(),t._insertElement(e,EI.HTML),n||(t.formElement=t.openElements.current))}(t,e);break;case TI.NOBR:!function(t,e){t._reconstructActiveFormattingElements(),t.openElements.hasInScope(TI.NOBR)&&(QL(t,e),t._reconstructActiveFormattingElements()),t._insertElement(e,EI.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}(t,e);break;case TI.MATH:!function(t,e){t._reconstructActiveFormattingElements(),BL(e),kL(e),e.selfClosing?t._appendElement(e,EI.MATHML):t._insertElement(e,EI.MATHML),e.ackSelfClosing=!0}(t,e);break;case TI.TABLE:!function(t,e){t.treeAdapter.getDocumentMode(t.document)!==xI.QUIRKS&&t.openElements.hasInButtonScope(TI.P)&&t._closePElement(),t._insertElement(e,EI.HTML),t.framesetOk=!1,t.insertionMode=IL.IN_TABLE}(t,e);break;case TI.INPUT:!function(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,EI.HTML),nF(e)||(t.framesetOk=!1),e.ackSelfClosing=!0}(t,e);break;case TI.PARAM:case TI.TRACK:case TI.SOURCE:!function(t,e){t._appendElement(e,EI.HTML),e.ackSelfClosing=!0}(t,e);break;case TI.IMAGE:!function(t,e){e.tagName=BI.IMG,e.tagID=TI.IMG,eF(t,e)}(t,e);break;case TI.BUTTON:!function(t,e){t.openElements.hasInScope(TI.BUTTON)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(TI.BUTTON)),t._reconstructActiveFormattingElements(),t._insertElement(e,EI.HTML),t.framesetOk=!1}(t,e);break;case TI.APPLET:case TI.OBJECT:case TI.MARQUEE:!function(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,EI.HTML),t.activeFormattingElements.insertMarker(),t.framesetOk=!1}(t,e);break;case TI.IFRAME:!function(t,e){t.framesetOk=!1,t._switchToTextParsing(e,GI.RAWTEXT)}(t,e);break;case TI.SELECT:!function(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,EI.HTML),t.framesetOk=!1,t.insertionMode=t.insertionMode===IL.IN_TABLE||t.insertionMode===IL.IN_CAPTION||t.insertionMode===IL.IN_TABLE_BODY||t.insertionMode===IL.IN_ROW||t.insertionMode===IL.IN_CELL?IL.IN_SELECT_IN_TABLE:IL.IN_SELECT}(t,e);break;case TI.OPTION:case TI.OPTGROUP:!function(t,e){t.openElements.currentTagId===TI.OPTION&&t.openElements.pop(),t._reconstructActiveFormattingElements(),t._insertElement(e,EI.HTML)}(t,e);break;case TI.NOEMBED:rF(t,e);break;case TI.FRAMESET:!function(t,e){const n=t.openElements.tryPeekProperlyNestedBodyElement();t.framesetOk&&n&&(t.treeAdapter.detachNode(n),t.openElements.popAllUpToHtmlElement(),t._insertElement(e,EI.HTML),t.insertionMode=IL.IN_FRAMESET)}(t,e);break;case TI.TEXTAREA:!function(t,e){t._insertElement(e,EI.HTML),t.skipNextNewLine=!0,t.tokenizer.state=GI.RCDATA,t.originalInsertionMode=t.insertionMode,t.framesetOk=!1,t.insertionMode=IL.TEXT}(t,e);break;case TI.NOSCRIPT:t.options.scriptingEnabled?rF(t,e):iF(t,e);break;case TI.PLAINTEXT:!function(t,e){t.openElements.hasInButtonScope(TI.P)&&t._closePElement(),t._insertElement(e,EI.HTML),t.tokenizer.state=GI.PLAINTEXT}(t,e);break;case TI.COL:case TI.TH:case TI.TD:case TI.TR:case TI.HEAD:case TI.FRAME:case TI.TBODY:case TI.TFOOT:case TI.THEAD:case TI.CAPTION:case TI.COLGROUP:break;default:iF(t,e)}}function oF(t,e){const n=e.tagName,r=e.tagID;for(let e=t.openElements.stackTop;e>0;e--){const i=t.openElements.items[e],a=t.openElements.tagIDs[e];if(r===a&&(r!==TI.UNKNOWN||t.treeAdapter.getTagName(i)===n)){t.openElements.generateImpliedEndTagsWithExclusion(r),t.openElements.stackTop>=e&&t.openElements.shortenToLength(e);break}if(t._isSpecialElement(i,a))break}}function sF(t,e){switch(e.tagID){case TI.A:case TI.B:case TI.I:case TI.S:case TI.U:case TI.EM:case TI.TT:case TI.BIG:case TI.CODE:case TI.FONT:case TI.NOBR:case TI.SMALL:case TI.STRIKE:case TI.STRONG:QL(t,e);break;case TI.P:!function(t){t.openElements.hasInButtonScope(TI.P)||t._insertFakeElement(BI.P,TI.P),t._closePElement()}(t);break;case TI.DL:case TI.UL:case TI.OL:case TI.DIR:case TI.DIV:case TI.NAV:case TI.PRE:case TI.MAIN:case TI.MENU:case TI.ASIDE:case TI.CENTER:case TI.FIGURE:case TI.FOOTER:case TI.HEADER:case TI.HGROUP:case TI.DIALOG:case TI.ADDRESS:case TI.ARTICLE:case TI.DETAILS:case TI.SECTION:case TI.SUMMARY:case TI.LISTING:case TI.FIELDSET:case TI.BLOCKQUOTE:case TI.FIGCAPTION:!function(t,e){const n=e.tagID;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n))}(t,e);break;case TI.LI:!function(t){t.openElements.hasInListItemScope(TI.LI)&&(t.openElements.generateImpliedEndTagsWithExclusion(TI.LI),t.openElements.popUntilTagNamePopped(TI.LI))}(t);break;case TI.DD:case TI.DT:!function(t,e){const n=e.tagID;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTagsWithExclusion(n),t.openElements.popUntilTagNamePopped(n))}(t,e);break;case TI.H1:case TI.H2:case TI.H3:case TI.H4:case TI.H5:case TI.H6:!function(t){t.openElements.hasNumberedHeaderInScope()&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilNumberedHeaderPopped())}(t);break;case TI.BR:!function(t){t._reconstructActiveFormattingElements(),t._insertFakeElement(BI.BR,TI.BR),t.openElements.pop(),t.framesetOk=!1}(t);break;case TI.BODY:!function(t,e){if(t.openElements.hasInScope(TI.BODY)&&(t.insertionMode=IL.AFTER_BODY,t.options.sourceCodeLocationInfo)){const n=t.openElements.tryPeekProperlyNestedBodyElement();n&&t._setEndLocation(n,e)}}(t,e);break;case TI.HTML:!function(t,e){t.openElements.hasInScope(TI.BODY)&&(t.insertionMode=IL.AFTER_BODY,BF(t,e))}(t,e);break;case TI.FORM:!function(t){const e=t.openElements.tmplCount>0,{formElement:n}=t;e||(t.formElement=null),(n||e)&&t.openElements.hasInScope(TI.FORM)&&(t.openElements.generateImpliedEndTags(),e?t.openElements.popUntilTagNamePopped(TI.FORM):n&&t.openElements.remove(n))}(t);break;case TI.APPLET:case TI.OBJECT:case TI.MARQUEE:!function(t,e){const n=e.tagID;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n),t.activeFormattingElements.clearToLastMarker())}(t,e);break;case TI.TEMPLATE:WL(t,e);break;default:oF(t,e)}}function cF(t,e){t.tmplInsertionModeStack.length>0?xF(t,e):jL(t,e)}function lF(t,e){if(FL.has(t.openElements.currentTagId))switch(t.pendingCharacterTokens.length=0,t.hasNonWhitespacePendingCharacterToken=!1,t.originalInsertionMode=t.insertionMode,t.insertionMode=IL.IN_TABLE_TEXT,e.type){case mI.CHARACTER:dF(t,e);break;case mI.WHITESPACE_CHARACTER:fF(t,e)}else hF(t,e)}function AF(t,e){switch(e.tagID){case TI.TD:case TI.TH:case TI.TR:!function(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(BI.TBODY,TI.TBODY),t.insertionMode=IL.IN_TABLE_BODY,vF(t,e)}(t,e);break;case TI.STYLE:case TI.SCRIPT:case TI.TEMPLATE:zL(t,e);break;case TI.COL:!function(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(BI.COLGROUP,TI.COLGROUP),t.insertionMode=IL.IN_COLUMN_GROUP,mF(t,e)}(t,e);break;case TI.FORM:!function(t,e){t.formElement||0!==t.openElements.tmplCount||(t._insertElement(e,EI.HTML),t.formElement=t.openElements.current,t.openElements.pop())}(t,e);break;case TI.TABLE:!function(t,e){t.openElements.hasInTableScope(TI.TABLE)&&(t.openElements.popUntilTagNamePopped(TI.TABLE),t._resetInsertionMode(),t._processStartTag(e))}(t,e);break;case TI.TBODY:case TI.TFOOT:case TI.THEAD:!function(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,EI.HTML),t.insertionMode=IL.IN_TABLE_BODY}(t,e);break;case TI.INPUT:!function(t,e){nF(e)?t._appendElement(e,EI.HTML):hF(t,e),e.ackSelfClosing=!0}(t,e);break;case TI.CAPTION:!function(t,e){t.openElements.clearBackToTableContext(),t.activeFormattingElements.insertMarker(),t._insertElement(e,EI.HTML),t.insertionMode=IL.IN_CAPTION}(t,e);break;case TI.COLGROUP:!function(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,EI.HTML),t.insertionMode=IL.IN_COLUMN_GROUP}(t,e);break;default:hF(t,e)}}function uF(t,e){switch(e.tagID){case TI.TABLE:t.openElements.hasInTableScope(TI.TABLE)&&(t.openElements.popUntilTagNamePopped(TI.TABLE),t._resetInsertionMode());break;case TI.TEMPLATE:WL(t,e);break;case TI.BODY:case TI.CAPTION:case TI.COL:case TI.COLGROUP:case TI.HTML:case TI.TBODY:case TI.TD:case TI.TFOOT:case TI.TH:case TI.THEAD:case TI.TR:break;default:hF(t,e)}}function hF(t,e){const n=t.fosterParentingEnabled;t.fosterParentingEnabled=!0,JL(t,e),t.fosterParentingEnabled=n}function fF(t,e){t.pendingCharacterTokens.push(e)}function dF(t,e){t.pendingCharacterTokens.push(e),t.hasNonWhitespacePendingCharacterToken=!0}function pF(t,e){let n=0;if(t.hasNonWhitespacePendingCharacterToken)for(;n<t.pendingCharacterTokens.length;n++)hF(t,t.pendingCharacterTokens[n]);else for(;n<t.pendingCharacterTokens.length;n++)t._insertCharacters(t.pendingCharacterTokens[n]);t.insertionMode=t.originalInsertionMode,t._processToken(e)}const gF=new Set([TI.CAPTION,TI.COL,TI.COLGROUP,TI.TBODY,TI.TD,TI.TFOOT,TI.TH,TI.THEAD,TI.TR]);function mF(t,e){switch(e.tagID){case TI.HTML:aF(t,e);break;case TI.COL:t._appendElement(e,EI.HTML),e.ackSelfClosing=!0;break;case TI.TEMPLATE:zL(t,e);break;default:yF(t,e)}}function yF(t,e){t.openElements.currentTagId===TI.COLGROUP&&(t.openElements.pop(),t.insertionMode=IL.IN_TABLE,t._processToken(e))}function vF(t,e){switch(e.tagID){case TI.TR:t.openElements.clearBackToTableBodyContext(),t._insertElement(e,EI.HTML),t.insertionMode=IL.IN_ROW;break;case TI.TH:case TI.TD:t.openElements.clearBackToTableBodyContext(),t._insertFakeElement(BI.TR,TI.TR),t.insertionMode=IL.IN_ROW,_F(t,e);break;case TI.CAPTION:case TI.COL:case TI.COLGROUP:case TI.TBODY:case TI.TFOOT:case TI.THEAD:t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=IL.IN_TABLE,AF(t,e));break;default:AF(t,e)}}function bF(t,e){const n=e.tagID;switch(e.tagID){case TI.TBODY:case TI.TFOOT:case TI.THEAD:t.openElements.hasInTableScope(n)&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=IL.IN_TABLE);break;case TI.TABLE:t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=IL.IN_TABLE,uF(t,e));break;case TI.BODY:case TI.CAPTION:case TI.COL:case TI.COLGROUP:case TI.HTML:case TI.TD:case TI.TH:case TI.TR:break;default:uF(t,e)}}function _F(t,e){switch(e.tagID){case TI.TH:case TI.TD:t.openElements.clearBackToTableRowContext(),t._insertElement(e,EI.HTML),t.insertionMode=IL.IN_CELL,t.activeFormattingElements.insertMarker();break;case TI.CAPTION:case TI.COL:case TI.COLGROUP:case TI.TBODY:case TI.TFOOT:case TI.THEAD:case TI.TR:t.openElements.hasInTableScope(TI.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=IL.IN_TABLE_BODY,vF(t,e));break;default:AF(t,e)}}function wF(t,e){switch(e.tagID){case TI.TR:t.openElements.hasInTableScope(TI.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=IL.IN_TABLE_BODY);break;case TI.TABLE:t.openElements.hasInTableScope(TI.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=IL.IN_TABLE_BODY,bF(t,e));break;case TI.TBODY:case TI.TFOOT:case TI.THEAD:(t.openElements.hasInTableScope(e.tagID)||t.openElements.hasInTableScope(TI.TR))&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=IL.IN_TABLE_BODY,bF(t,e));break;case TI.BODY:case TI.CAPTION:case TI.COL:case TI.COLGROUP:case TI.HTML:case TI.TD:case TI.TH:break;default:uF(t,e)}}function EF(t,e){switch(e.tagID){case TI.HTML:aF(t,e);break;case TI.OPTION:t.openElements.currentTagId===TI.OPTION&&t.openElements.pop(),t._insertElement(e,EI.HTML);break;case TI.OPTGROUP:t.openElements.currentTagId===TI.OPTION&&t.openElements.pop(),t.openElements.currentTagId===TI.OPTGROUP&&t.openElements.pop(),t._insertElement(e,EI.HTML);break;case TI.INPUT:case TI.KEYGEN:case TI.TEXTAREA:case TI.SELECT:t.openElements.hasInSelectScope(TI.SELECT)&&(t.openElements.popUntilTagNamePopped(TI.SELECT),t._resetInsertionMode(),e.tagID!==TI.SELECT&&t._processStartTag(e));break;case TI.SCRIPT:case TI.TEMPLATE:zL(t,e)}}function CF(t,e){switch(e.tagID){case TI.OPTGROUP:t.openElements.stackTop>0&&t.openElements.currentTagId===TI.OPTION&&t.openElements.tagIDs[t.openElements.stackTop-1]===TI.OPTGROUP&&t.openElements.pop(),t.openElements.currentTagId===TI.OPTGROUP&&t.openElements.pop();break;case TI.OPTION:t.openElements.currentTagId===TI.OPTION&&t.openElements.pop();break;case TI.SELECT:t.openElements.hasInSelectScope(TI.SELECT)&&(t.openElements.popUntilTagNamePopped(TI.SELECT),t._resetInsertionMode());break;case TI.TEMPLATE:WL(t,e)}}function xF(t,e){t.openElements.tmplCount>0?(t.openElements.popUntilTagNamePopped(TI.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode(),t.onEof(e)):jL(t,e)}function BF(t,e){var n;if(e.tagID===TI.HTML){if(t.fragmentContext||(t.insertionMode=IL.AFTER_AFTER_BODY),t.options.sourceCodeLocationInfo&&t.openElements.tagIDs[0]===TI.HTML){t._setEndLocation(t.openElements.items[0],e);const r=t.openElements.items[1];r&&!(null===(n=t.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)&&t._setEndLocation(r,e)}}else TF(t,e)}function TF(t,e){t.insertionMode=IL.IN_BODY,JL(t,e)}function kF(t,e){t.insertionMode=IL.IN_BODY,JL(t,e)}function SF(t){for(;t.treeAdapter.getNamespaceURI(t.openElements.current)!==EI.HTML&&!t._isIntegrationPoint(t.openElements.currentTagId,t.openElements.current);)t.openElements.pop()}var IF=r((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.escapeText=e.escapeAttribute=e.escapeUTF8=e.escape=e.encodeXML=e.getCodePoint=e.xmlReplacer=void 0,e.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var n=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);function r(t){for(var r,i="",a=0;null!==(r=e.xmlReplacer.exec(t));){var o=r.index,s=t.charCodeAt(o),c=n.get(s);void 0!==c?(i+=t.substring(a,o)+c,a=o+1):(i+="".concat(t.substring(a,o),"&#x").concat((0,e.getCodePoint)(t,o).toString(16),";"),a=e.xmlReplacer.lastIndex+=Number(55296==(64512&s)))}return i+t.substr(a)}function i(t,e){return function(n){for(var r,i=0,a="";r=t.exec(n);)i!==r.index&&(a+=n.substring(i,r.index)),a+=e.get(r[0].charCodeAt(0)),i=r.index+1;return a+n.substring(i)}}e.getCodePoint=null!=String.prototype.codePointAt?function(t,e){return t.codePointAt(e)}:function(t,e){return 55296==(64512&t.charCodeAt(e))?1024*(t.charCodeAt(e)-55296)+t.charCodeAt(e+1)-56320+65536:t.charCodeAt(e)},e.encodeXML=r,e.escape=r,e.escapeUTF8=i(/[&<>'"]/g,n),e.escapeAttribute=i(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),e.escapeText=i(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))}));n(IF);var LF=IF.escapeText,FF=IF.escapeAttribute;IF.escapeUTF8,IF.escape,IF.encodeXML,IF.getCodePoint,IF.xmlReplacer;const NF=new Set([BI.AREA,BI.BASE,BI.BASEFONT,BI.BGSOUND,BI.BR,BI.COL,BI.EMBED,BI.FRAME,BI.HR,BI.IMG,BI.INPUT,BI.KEYGEN,BI.LINK,BI.META,BI.PARAM,BI.SOURCE,BI.TRACK,BI.WBR]);const OF={treeAdapter:fL,scriptingEnabled:!0};function DF(t,e){return MF(t,{...OF,...e})}function MF(t,e){return e.treeAdapter.isElementNode(t)?function(t,e){const n=e.treeAdapter.getTagName(t);return`<${n}${function(t,{treeAdapter:e}){let n="";for(const r of e.getAttrList(t)){if(n+=" ",r.namespace)switch(r.namespace){case EI.XML:n+="xml:"+r.name;break;case EI.XMLNS:"xmlns"!==r.name&&(n+="xmlns:"),n+=r.name;break;case EI.XLINK:n+="xlink:"+r.name;break;default:n+=`${r.prefix}:${r.name}`}else n+=r.name;n+=`="${FF(r.value)}"`}return n}(t,e)}>${function(t,e){return e.treeAdapter.isElementNode(t)&&e.treeAdapter.getNamespaceURI(t)===EI.HTML&&NF.has(e.treeAdapter.getTagName(t))}(t,e)?"":`${function(t,e){let n="";const r=e.treeAdapter.isElementNode(t)&&e.treeAdapter.getTagName(t)===BI.TEMPLATE&&e.treeAdapter.getNamespaceURI(t)===EI.HTML?e.treeAdapter.getTemplateContent(t):t,i=e.treeAdapter.getChildNodes(r);if(i)for(const t of i)n+=MF(t,e);return n}(t,e)}</${n}>`}`}(t,e):e.treeAdapter.isTextNode(t)?function(t,e){const{treeAdapter:n}=e,r=n.getTextNodeContent(t),i=n.getParentNode(t),a=i&&n.isElementNode(i)&&n.getTagName(i);return a&&n.getNamespaceURI(i)===EI.HTML&&(o=a,s=e.scriptingEnabled,PI.has(o)||s&&o===BI.NOSCRIPT)?r:LF(r);var o,s}(t,e):e.treeAdapter.isCommentNode(t)?function(t,{treeAdapter:e}){return`\x3c!--${e.getCommentNodeContent(t)}--\x3e`}(t,e):e.treeAdapter.isDocumentTypeNode(t)?function(t,{treeAdapter:e}){return`<!DOCTYPE ${e.getDocumentTypeNodeName(t)}>`}(t,e):""}yh("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Bh);var RF=P.Set,UF=Math.min,PF=[].lastIndexOf,HF=!!PF&&1/[1].lastIndexOf(1,-0)<0,QF=Mi("lastIndexOf"),GF=HF||!QF?function(t){if(HF)return p(PF,this,arguments)||0;var e=R(this),n=Oe(e),r=n-1;for(arguments.length>1&&(r=UF(r,ke(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}:PF;Xt({target:"Array",proto:!0,forced:GF!==[].lastIndexOf},{lastIndexOf:GF});Wr("Array").lastIndexOf,Wr("Array").entries;var jF,$F,KF,YF,zF,WF,VF,qF,XF,JF=Th;new RF([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(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.NUMBER_SIGN=35]="NUMBER_SIGN",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",t[t.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_F=102]="LATIN_SMALL_F",t[t.LATIN_SMALL_X=120]="LATIN_SMALL_X",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",t[t.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"}(jF||(jF={})),function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",t.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",t.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",t.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",t.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",t.missingDoctypePublicIdentifier="missing-doctype-public-identifier",t.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",t.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",t.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",t.cdataInHtmlContent="cdata-in-html-content",t.incorrectlyOpenedComment="incorrectly-opened-comment",t.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",t.eofInDoctype="eof-in-doctype",t.nestedComment="nested-comment",t.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",t.eofInComment="eof-in-comment",t.incorrectlyClosedComment="incorrectly-closed-comment",t.eofInCdata="eof-in-cdata",t.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",t.nullCharacterReference="null-character-reference",t.surrogateCharacterReference="surrogate-character-reference",t.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",t.controlCharacterReference="control-character-reference",t.noncharacterCharacterReference="noncharacter-character-reference",t.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",t.missingDoctypeName="missing-doctype-name",t.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",t.duplicateAttribute="duplicate-attribute",t.nonConformingDoctype="non-conforming-doctype",t.missingDoctype="missing-doctype",t.misplacedDoctype="misplaced-doctype",t.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",t.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",t.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",t.openElementsLeftAfterEof="open-elements-left-after-eof",t.abandonedHeadElementChild="abandoned-head-element-child",t.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",t.nestedNoscriptInHead="nested-noscript-in-head",t.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"}($F||($F={})),function(t){t[t.CHARACTER=0]="CHARACTER",t[t.NULL_CHARACTER=1]="NULL_CHARACTER",t[t.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",t[t.START_TAG=3]="START_TAG",t[t.END_TAG=4]="END_TAG",t[t.COMMENT=5]="COMMENT",t[t.DOCTYPE=6]="DOCTYPE",t[t.EOF=7]="EOF",t[t.HIBERNATION=8]="HIBERNATION"}(KF||(KF={})),function(t){t.HTML="http://www.w3.org/1999/xhtml",t.MATHML="http://www.w3.org/1998/Math/MathML",t.SVG="http://www.w3.org/2000/svg",t.XLINK="http://www.w3.org/1999/xlink",t.XML="http://www.w3.org/XML/1998/namespace",t.XMLNS="http://www.w3.org/2000/xmlns/"}(zF||(zF={})),function(t){t.TYPE="type",t.ACTION="action",t.ENCODING="encoding",t.PROMPT="prompt",t.NAME="name",t.COLOR="color",t.FACE="face",t.SIZE="size"}(WF||(WF={})),function(t){t.NO_QUIRKS="no-quirks",t.QUIRKS="quirks",t.LIMITED_QUIRKS="limited-quirks"}(VF||(VF={})),function(t){t.A="a",t.ADDRESS="address",t.ANNOTATION_XML="annotation-xml",t.APPLET="applet",t.AREA="area",t.ARTICLE="article",t.ASIDE="aside",t.B="b",t.BASE="base",t.BASEFONT="basefont",t.BGSOUND="bgsound",t.BIG="big",t.BLOCKQUOTE="blockquote",t.BODY="body",t.BR="br",t.BUTTON="button",t.CAPTION="caption",t.CENTER="center",t.CODE="code",t.COL="col",t.COLGROUP="colgroup",t.DD="dd",t.DESC="desc",t.DETAILS="details",t.DIALOG="dialog",t.DIR="dir",t.DIV="div",t.DL="dl",t.DT="dt",t.EM="em",t.EMBED="embed",t.FIELDSET="fieldset",t.FIGCAPTION="figcaption",t.FIGURE="figure",t.FONT="font",t.FOOTER="footer",t.FOREIGN_OBJECT="foreignObject",t.FORM="form",t.FRAME="frame",t.FRAMESET="frameset",t.H1="h1",t.H2="h2",t.H3="h3",t.H4="h4",t.H5="h5",t.H6="h6",t.HEAD="head",t.HEADER="header",t.HGROUP="hgroup",t.HR="hr",t.HTML="html",t.I="i",t.IMG="img",t.IMAGE="image",t.INPUT="input",t.IFRAME="iframe",t.KEYGEN="keygen",t.LABEL="label",t.LI="li",t.LINK="link",t.LISTING="listing",t.MAIN="main",t.MALIGNMARK="malignmark",t.MARQUEE="marquee",t.MATH="math",t.MENU="menu",t.META="meta",t.MGLYPH="mglyph",t.MI="mi",t.MO="mo",t.MN="mn",t.MS="ms",t.MTEXT="mtext",t.NAV="nav",t.NOBR="nobr",t.NOFRAMES="noframes",t.NOEMBED="noembed",t.NOSCRIPT="noscript",t.OBJECT="object",t.OL="ol",t.OPTGROUP="optgroup",t.OPTION="option",t.P="p",t.PARAM="param",t.PLAINTEXT="plaintext",t.PRE="pre",t.RB="rb",t.RP="rp",t.RT="rt",t.RTC="rtc",t.RUBY="ruby",t.S="s",t.SCRIPT="script",t.SECTION="section",t.SELECT="select",t.SOURCE="source",t.SMALL="small",t.SPAN="span",t.STRIKE="strike",t.STRONG="strong",t.STYLE="style",t.SUB="sub",t.SUMMARY="summary",t.SUP="sup",t.TABLE="table",t.TBODY="tbody",t.TEMPLATE="template",t.TEXTAREA="textarea",t.TFOOT="tfoot",t.TD="td",t.TH="th",t.THEAD="thead",t.TITLE="title",t.TR="tr",t.TRACK="track",t.TT="tt",t.U="u",t.UL="ul",t.SVG="svg",t.VAR="var",t.WBR="wbr",t.XMP="xmp"}(qF||(qF={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.A=1]="A",t[t.ADDRESS=2]="ADDRESS",t[t.ANNOTATION_XML=3]="ANNOTATION_XML",t[t.APPLET=4]="APPLET",t[t.AREA=5]="AREA",t[t.ARTICLE=6]="ARTICLE",t[t.ASIDE=7]="ASIDE",t[t.B=8]="B",t[t.BASE=9]="BASE",t[t.BASEFONT=10]="BASEFONT",t[t.BGSOUND=11]="BGSOUND",t[t.BIG=12]="BIG",t[t.BLOCKQUOTE=13]="BLOCKQUOTE",t[t.BODY=14]="BODY",t[t.BR=15]="BR",t[t.BUTTON=16]="BUTTON",t[t.CAPTION=17]="CAPTION",t[t.CENTER=18]="CENTER",t[t.CODE=19]="CODE",t[t.COL=20]="COL",t[t.COLGROUP=21]="COLGROUP",t[t.DD=22]="DD",t[t.DESC=23]="DESC",t[t.DETAILS=24]="DETAILS",t[t.DIALOG=25]="DIALOG",t[t.DIR=26]="DIR",t[t.DIV=27]="DIV",t[t.DL=28]="DL",t[t.DT=29]="DT",t[t.EM=30]="EM",t[t.EMBED=31]="EMBED",t[t.FIELDSET=32]="FIELDSET",t[t.FIGCAPTION=33]="FIGCAPTION",t[t.FIGURE=34]="FIGURE",t[t.FONT=35]="FONT",t[t.FOOTER=36]="FOOTER",t[t.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",t[t.FORM=38]="FORM",t[t.FRAME=39]="FRAME",t[t.FRAMESET=40]="FRAMESET",t[t.H1=41]="H1",t[t.H2=42]="H2",t[t.H3=43]="H3",t[t.H4=44]="H4",t[t.H5=45]="H5",t[t.H6=46]="H6",t[t.HEAD=47]="HEAD",t[t.HEADER=48]="HEADER",t[t.HGROUP=49]="HGROUP",t[t.HR=50]="HR",t[t.HTML=51]="HTML",t[t.I=52]="I",t[t.IMG=53]="IMG",t[t.IMAGE=54]="IMAGE",t[t.INPUT=55]="INPUT",t[t.IFRAME=56]="IFRAME",t[t.KEYGEN=57]="KEYGEN",t[t.LABEL=58]="LABEL",t[t.LI=59]="LI",t[t.LINK=60]="LINK",t[t.LISTING=61]="LISTING",t[t.MAIN=62]="MAIN",t[t.MALIGNMARK=63]="MALIGNMARK",t[t.MARQUEE=64]="MARQUEE",t[t.MATH=65]="MATH",t[t.MENU=66]="MENU",t[t.META=67]="META",t[t.MGLYPH=68]="MGLYPH",t[t.MI=69]="MI",t[t.MO=70]="MO",t[t.MN=71]="MN",t[t.MS=72]="MS",t[t.MTEXT=73]="MTEXT",t[t.NAV=74]="NAV",t[t.NOBR=75]="NOBR",t[t.NOFRAMES=76]="NOFRAMES",t[t.NOEMBED=77]="NOEMBED",t[t.NOSCRIPT=78]="NOSCRIPT",t[t.OBJECT=79]="OBJECT",t[t.OL=80]="OL",t[t.OPTGROUP=81]="OPTGROUP",t[t.OPTION=82]="OPTION",t[t.P=83]="P",t[t.PARAM=84]="PARAM",t[t.PLAINTEXT=85]="PLAINTEXT",t[t.PRE=86]="PRE",t[t.RB=87]="RB",t[t.RP=88]="RP",t[t.RT=89]="RT",t[t.RTC=90]="RTC",t[t.RUBY=91]="RUBY",t[t.S=92]="S",t[t.SCRIPT=93]="SCRIPT",t[t.SECTION=94]="SECTION",t[t.SELECT=95]="SELECT",t[t.SOURCE=96]="SOURCE",t[t.SMALL=97]="SMALL",t[t.SPAN=98]="SPAN",t[t.STRIKE=99]="STRIKE",t[t.STRONG=100]="STRONG",t[t.STYLE=101]="STYLE",t[t.SUB=102]="SUB",t[t.SUMMARY=103]="SUMMARY",t[t.SUP=104]="SUP",t[t.TABLE=105]="TABLE",t[t.TBODY=106]="TBODY",t[t.TEMPLATE=107]="TEMPLATE",t[t.TEXTAREA=108]="TEXTAREA",t[t.TFOOT=109]="TFOOT",t[t.TD=110]="TD",t[t.TH=111]="TH",t[t.THEAD=112]="THEAD",t[t.TITLE=113]="TITLE",t[t.TR=114]="TR",t[t.TRACK=115]="TRACK",t[t.TT=116]="TT",t[t.U=117]="U",t[t.UL=118]="UL",t[t.SVG=119]="SVG",t[t.VAR=120]="VAR",t[t.WBR=121]="WBR",t[t.XMP=122]="XMP"}(XF||(XF={}));new JF([[qF.A,XF.A],[qF.ADDRESS,XF.ADDRESS],[qF.ANNOTATION_XML,XF.ANNOTATION_XML],[qF.APPLET,XF.APPLET],[qF.AREA,XF.AREA],[qF.ARTICLE,XF.ARTICLE],[qF.ASIDE,XF.ASIDE],[qF.B,XF.B],[qF.BASE,XF.BASE],[qF.BASEFONT,XF.BASEFONT],[qF.BGSOUND,XF.BGSOUND],[qF.BIG,XF.BIG],[qF.BLOCKQUOTE,XF.BLOCKQUOTE],[qF.BODY,XF.BODY],[qF.BR,XF.BR],[qF.BUTTON,XF.BUTTON],[qF.CAPTION,XF.CAPTION],[qF.CENTER,XF.CENTER],[qF.CODE,XF.CODE],[qF.COL,XF.COL],[qF.COLGROUP,XF.COLGROUP],[qF.DD,XF.DD],[qF.DESC,XF.DESC],[qF.DETAILS,XF.DETAILS],[qF.DIALOG,XF.DIALOG],[qF.DIR,XF.DIR],[qF.DIV,XF.DIV],[qF.DL,XF.DL],[qF.DT,XF.DT],[qF.EM,XF.EM],[qF.EMBED,XF.EMBED],[qF.FIELDSET,XF.FIELDSET],[qF.FIGCAPTION,XF.FIGCAPTION],[qF.FIGURE,XF.FIGURE],[qF.FONT,XF.FONT],[qF.FOOTER,XF.FOOTER],[qF.FOREIGN_OBJECT,XF.FOREIGN_OBJECT],[qF.FORM,XF.FORM],[qF.FRAME,XF.FRAME],[qF.FRAMESET,XF.FRAMESET],[qF.H1,XF.H1],[qF.H2,XF.H2],[qF.H3,XF.H3],[qF.H4,XF.H4],[qF.H5,XF.H5],[qF.H6,XF.H6],[qF.HEAD,XF.HEAD],[qF.HEADER,XF.HEADER],[qF.HGROUP,XF.HGROUP],[qF.HR,XF.HR],[qF.HTML,XF.HTML],[qF.I,XF.I],[qF.IMG,XF.IMG],[qF.IMAGE,XF.IMAGE],[qF.INPUT,XF.INPUT],[qF.IFRAME,XF.IFRAME],[qF.KEYGEN,XF.KEYGEN],[qF.LABEL,XF.LABEL],[qF.LI,XF.LI],[qF.LINK,XF.LINK],[qF.LISTING,XF.LISTING],[qF.MAIN,XF.MAIN],[qF.MALIGNMARK,XF.MALIGNMARK],[qF.MARQUEE,XF.MARQUEE],[qF.MATH,XF.MATH],[qF.MENU,XF.MENU],[qF.META,XF.META],[qF.MGLYPH,XF.MGLYPH],[qF.MI,XF.MI],[qF.MO,XF.MO],[qF.MN,XF.MN],[qF.MS,XF.MS],[qF.MTEXT,XF.MTEXT],[qF.NAV,XF.NAV],[qF.NOBR,XF.NOBR],[qF.NOFRAMES,XF.NOFRAMES],[qF.NOEMBED,XF.NOEMBED],[qF.NOSCRIPT,XF.NOSCRIPT],[qF.OBJECT,XF.OBJECT],[qF.OL,XF.OL],[qF.OPTGROUP,XF.OPTGROUP],[qF.OPTION,XF.OPTION],[qF.P,XF.P],[qF.PARAM,XF.PARAM],[qF.PLAINTEXT,XF.PLAINTEXT],[qF.PRE,XF.PRE],[qF.RB,XF.RB],[qF.RP,XF.RP],[qF.RT,XF.RT],[qF.RTC,XF.RTC],[qF.RUBY,XF.RUBY],[qF.S,XF.S],[qF.SCRIPT,XF.SCRIPT],[qF.SECTION,XF.SECTION],[qF.SELECT,XF.SELECT],[qF.SOURCE,XF.SOURCE],[qF.SMALL,XF.SMALL],[qF.SPAN,XF.SPAN],[qF.STRIKE,XF.STRIKE],[qF.STRONG,XF.STRONG],[qF.STYLE,XF.STYLE],[qF.SUB,XF.SUB],[qF.SUMMARY,XF.SUMMARY],[qF.SUP,XF.SUP],[qF.TABLE,XF.TABLE],[qF.TBODY,XF.TBODY],[qF.TEMPLATE,XF.TEMPLATE],[qF.TEXTAREA,XF.TEXTAREA],[qF.TFOOT,XF.TFOOT],[qF.TD,XF.TD],[qF.TH,XF.TH],[qF.THEAD,XF.THEAD],[qF.TITLE,XF.TITLE],[qF.TR,XF.TR],[qF.TRACK,XF.TRACK],[qF.TT,XF.TT],[qF.U,XF.U],[qF.UL,XF.UL],[qF.SVG,XF.SVG],[qF.VAR,XF.VAR],[qF.WBR,XF.WBR],[qF.XMP,XF.XMP]]);var ZF,tN=XF;Fa(YF={},zF.HTML,new RF([tN.ADDRESS,tN.APPLET,tN.AREA,tN.ARTICLE,tN.ASIDE,tN.BASE,tN.BASEFONT,tN.BGSOUND,tN.BLOCKQUOTE,tN.BODY,tN.BR,tN.BUTTON,tN.CAPTION,tN.CENTER,tN.COL,tN.COLGROUP,tN.DD,tN.DETAILS,tN.DIR,tN.DIV,tN.DL,tN.DT,tN.EMBED,tN.FIELDSET,tN.FIGCAPTION,tN.FIGURE,tN.FOOTER,tN.FORM,tN.FRAME,tN.FRAMESET,tN.H1,tN.H2,tN.H3,tN.H4,tN.H5,tN.H6,tN.HEAD,tN.HEADER,tN.HGROUP,tN.HR,tN.HTML,tN.IFRAME,tN.IMG,tN.INPUT,tN.LI,tN.LINK,tN.LISTING,tN.MAIN,tN.MARQUEE,tN.MENU,tN.META,tN.NAV,tN.NOEMBED,tN.NOFRAMES,tN.NOSCRIPT,tN.OBJECT,tN.OL,tN.P,tN.PARAM,tN.PLAINTEXT,tN.PRE,tN.SCRIPT,tN.SECTION,tN.SELECT,tN.SOURCE,tN.STYLE,tN.SUMMARY,tN.TABLE,tN.TBODY,tN.TD,tN.TEMPLATE,tN.TEXTAREA,tN.TFOOT,tN.TH,tN.THEAD,tN.TITLE,tN.TR,tN.TRACK,tN.UL,tN.WBR,tN.XMP])),Fa(YF,zF.MATHML,new RF([tN.MI,tN.MO,tN.MN,tN.MS,tN.MTEXT,tN.ANNOTATION_XML])),Fa(YF,zF.SVG,new RF([tN.TITLE,tN.FOREIGN_OBJECT,tN.DESC])),Fa(YF,zF.XLINK,new RF),Fa(YF,zF.XML,new RF),Fa(YF,zF.XMLNS,new RF),new RF([qF.STYLE,qF.SCRIPT,qF.XMP,qF.IFRAME,qF.NOEMBED,qF.NOFRAMES,qF.PLAINTEXT]),new JF([[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(t){t[t.DATA=0]="DATA",t[t.RCDATA=1]="RCDATA",t[t.RAWTEXT=2]="RAWTEXT",t[t.SCRIPT_DATA=3]="SCRIPT_DATA",t[t.PLAINTEXT=4]="PLAINTEXT",t[t.TAG_OPEN=5]="TAG_OPEN",t[t.END_TAG_OPEN=6]="END_TAG_OPEN",t[t.TAG_NAME=7]="TAG_NAME",t[t.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",t[t.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",t[t.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",t[t.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",t[t.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",t[t.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",t[t.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",t[t.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",t[t.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",t[t.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",t[t.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",t[t.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",t[t.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",t[t.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",t[t.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",t[t.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",t[t.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",t[t.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",t[t.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",t[t.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",t[t.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",t[t.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",t[t.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",t[t.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",t[t.BOGUS_COMMENT=40]="BOGUS_COMMENT",t[t.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",t[t.COMMENT_START=42]="COMMENT_START",t[t.COMMENT_START_DASH=43]="COMMENT_START_DASH",t[t.COMMENT=44]="COMMENT",t[t.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",t[t.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",t[t.COMMENT_END_DASH=49]="COMMENT_END_DASH",t[t.COMMENT_END=50]="COMMENT_END",t[t.COMMENT_END_BANG=51]="COMMENT_END_BANG",t[t.DOCTYPE=52]="DOCTYPE",t[t.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",t[t.DOCTYPE_NAME=54]="DOCTYPE_NAME",t[t.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",t[t.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",t[t.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",t[t.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",t[t.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",t[t.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",t[t.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",t[t.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",t[t.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",t[t.CDATA_SECTION=68]="CDATA_SECTION",t[t.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",t[t.CDATA_SECTION_END=70]="CDATA_SECTION_END",t[t.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",t[t.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",t[t.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",t[t.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",t[t.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",t[t.DECIMAL_CHARACTER_REFERENCE_START=76]="DECIMAL_CHARACTER_REFERENCE_START",t[t.HEXADEMICAL_CHARACTER_REFERENCE=77]="HEXADEMICAL_CHARACTER_REFERENCE",t[t.DECIMAL_CHARACTER_REFERENCE=78]="DECIMAL_CHARACTER_REFERENCE",t[t.NUMERIC_CHARACTER_REFERENCE_END=79]="NUMERIC_CHARACTER_REFERENCE_END"}(ZF||(ZF={}));ZF.DATA,ZF.RCDATA,ZF.RAWTEXT,ZF.SCRIPT_DATA,ZF.PLAINTEXT,ZF.CDATA_SECTION;var eN,nN,rN=new RF([XF.DD,XF.DT,XF.LI,XF.OPTGROUP,XF.OPTION,XF.P,XF.RB,XF.RP,XF.RT,XF.RTC]);new RF(Da(eN=[]).call(eN,sf(rN),[XF.CAPTION,XF.COLGROUP,XF.TBODY,XF.TD,XF.TFOOT,XF.TH,XF.THEAD,XF.TR])),new JF([[XF.APPLET,zF.HTML],[XF.CAPTION,zF.HTML],[XF.HTML,zF.HTML],[XF.MARQUEE,zF.HTML],[XF.OBJECT,zF.HTML],[XF.TABLE,zF.HTML],[XF.TD,zF.HTML],[XF.TEMPLATE,zF.HTML],[XF.TH,zF.HTML],[XF.ANNOTATION_XML,zF.MATHML],[XF.MI,zF.MATHML],[XF.MN,zF.MATHML],[XF.MO,zF.MATHML],[XF.MS,zF.MATHML],[XF.MTEXT,zF.MATHML],[XF.DESC,zF.SVG],[XF.FOREIGN_OBJECT,zF.SVG],[XF.TITLE,zF.SVG]]),XF.H1,XF.H2,XF.H3,XF.H4,XF.H5,XF.H6,XF.TR,XF.TEMPLATE,XF.HTML,XF.TBODY,XF.TFOOT,XF.THEAD,XF.TEMPLATE,XF.HTML,XF.TABLE,XF.TEMPLATE,XF.HTML,XF.TD,XF.TH;!function(t){t[t.Marker=0]="Marker",t[t.Element=1]="Element"}(nN||(nN={}));var iN,aN,oN;nN.Marker;!function(t){t.Document="#document",t.DocumentFragment="#document-fragment",t.Comment="#comment",t.Text="#text",t.DocumentType="#documentType"}(iN||(iN={}));var sN,cN,lN;Da(aN=[]).call(aN,["+//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 RF(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Da(oN=[]).call(oN,["-//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 JF(yu(sN=["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(sN,(function(t){return[t.toLowerCase(),t]}))),new JF([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:zF.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:zF.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:zF.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:zF.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:zF.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:zF.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:zF.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:zF.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:zF.XML}],["xml:space",{prefix:"xml",name:"space",namespace:zF.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:zF.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:zF.XMLNS}]]),new JF(yu(cN=["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(cN,(function(t){return[t.toLowerCase(),t]}))),new RF([XF.B,XF.BIG,XF.BLOCKQUOTE,XF.BODY,XF.BR,XF.CENTER,XF.CODE,XF.DD,XF.DIV,XF.DL,XF.DT,XF.EM,XF.EMBED,XF.H1,XF.H2,XF.H3,XF.H4,XF.H5,XF.H6,XF.HEAD,XF.HR,XF.I,XF.IMG,XF.LI,XF.LISTING,XF.MENU,XF.META,XF.NOBR,XF.OL,XF.P,XF.PRE,XF.RUBY,XF.S,XF.SMALL,XF.SPAN,XF.STRONG,XF.STRIKE,XF.SUB,XF.SUP,XF.TABLE,XF.TT,XF.U,XF.UL,XF.VAR]);!function(t){t[t.INITIAL=0]="INITIAL",t[t.BEFORE_HTML=1]="BEFORE_HTML",t[t.BEFORE_HEAD=2]="BEFORE_HEAD",t[t.IN_HEAD=3]="IN_HEAD",t[t.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",t[t.AFTER_HEAD=5]="AFTER_HEAD",t[t.IN_BODY=6]="IN_BODY",t[t.TEXT=7]="TEXT",t[t.IN_TABLE=8]="IN_TABLE",t[t.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",t[t.IN_CAPTION=10]="IN_CAPTION",t[t.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",t[t.IN_TABLE_BODY=12]="IN_TABLE_BODY",t[t.IN_ROW=13]="IN_ROW",t[t.IN_CELL=14]="IN_CELL",t[t.IN_SELECT=15]="IN_SELECT",t[t.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",t[t.IN_TEMPLATE=17]="IN_TEMPLATE",t[t.AFTER_BODY=18]="AFTER_BODY",t[t.IN_FRAMESET=19]="IN_FRAMESET",t[t.AFTER_FRAMESET=20]="AFTER_FRAMESET",t[t.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",t[t.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"}(lN||(lN={}));new RF([XF.TABLE,XF.TBODY,XF.TFOOT,XF.THEAD,XF.TR]),new RF([XF.CAPTION,XF.COL,XF.COLGROUP,XF.TBODY,XF.TD,XF.TFOOT,XF.TH,XF.THEAD,XF.TR]),new RF([qF.AREA,qF.BASE,qF.BASEFONT,qF.BGSOUND,qF.BR,qF.COL,qF.EMBED,qF.FRAME,qF.HR,qF.IMG,qF.INPUT,qF.KEYGEN,qF.LINK,qF.META,qF.PARAM,qF.SOURCE,qF.TRACK,qF.WBR]);function AN(t,e){var n=fn(t);if(jr){var r=jr(t);e&&(r=Xr(r).call(r,(function(e){return ii(t,e).enumerable}))),n.push.apply(n,r)}return n}function uN(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?ji(n=AN(Object(i),!0)).call(n,(function(e){Fa(t,e,i[e])})):Yi?Wi(t,Yi(i)):ji(r=AN(Object(i))).call(r,(function(e){Xi(t,e,ii(i,e))}))}return t}function hN(t){return new LB(t)}function fN(t){var e=Mp(t).call(t,'"')?"'":'"';return e+t+e}var dN={isCommentNode:QB,isElementNode:UB,isTextNode:HB,createDocument:function(){var t=new MB([]);return t["x-mode"]=VF.NO_QUIRKS,t},createDocumentFragment:function(){return new MB([])},createElement:function(t,e,n){for(var r=tA(null),i=tA(null),a=tA(null),o=0;o<n.length;o++){var s=n[o].name;r[s]=n[o].value,i[s]=n[o].namespace,a[s]=n[o].prefix}var c=new RB(t,r,[]);return c.namespace=e,c["x-attribsNamespace"]=i,c["x-attribsPrefix"]=a,c},createCommentNode:function(t){return new FB(t)},appendChild:function(t,e){var n=t.children[t.children.length-1];n&&(n.next=e,e.prev=n),t.children.push(e),e.parent=t},insertBefore:function(t,e,n){var r,i,a=Zl(r=t.children).call(r,n),o=n.prev;o&&(o.next=e,e.prev=o),n.prev=e,e.next=n,Au(i=t.children).call(i,a,0,e),e.parent=t},setTemplateContent:function(t,e){dN.appendChild(t,e)},getTemplateContent:function(t){return t.children[0]},setDocumentType:function(t,e,n,r){var i,a=function(t,e,n){var r="!DOCTYPE ";return t&&(r+=t),e?r+=" PUBLIC ".concat(fN(e)):n&&(r+=" SYSTEM"),n&&(r+=" ".concat(fN(n))),r}(e,n,r),o=Nl(i=t.children).call(i,(function(t){return GB(t)&&"!doctype"===t.name}));o?o.data=null!=a?a:null:(o=new NB("!doctype",a),dN.appendChild(t,o)),o["x-name"]=null!=e?e:void 0,o["x-publicId"]=null!=n?n:void 0,o["x-systemId"]=null!=r?r:void 0},setDocumentMode:function(t,e){t["x-mode"]=e},getDocumentMode:function(t){return t["x-mode"]},detachNode:function(t){if(t.parent){var e,n,r=Zl(e=t.parent.children).call(e,t),i=t.prev,a=t.next;t.prev=null,t.next=null,i&&(i.next=a),a&&(a.prev=i),Au(n=t.parent.children).call(n,r,1),t.parent=null}},insertText:function(t,e){var n=t.children[t.children.length-1];n&&HB(n)?n.data+=e:dN.appendChild(t,hN(e))},insertTextBefore:function(t,e,n){var r,i=t.children[Zl(r=t.children).call(r,n)-1];i&&HB(i)?i.data+=e:dN.insertBefore(t,hN(e),n)},adoptAttributes:function(t,e){for(var n=0;n<e.length;n++){var r=e[n].name;void 0===t.attribs[r]&&(t.attribs[r]=e[n].value,t["x-attribsNamespace"][r]=e[n].namespace,t["x-attribsPrefix"][r]=e[n].prefix)}},getFirstChild:function(t){return t.children[0]},getChildNodes:function(t){return t.children},getParentNode:function(t){return t.parent},getAttrList:function(t){return t.attributes},getTagName:function(t){return t.name},getNamespaceURI:function(t){return t.namespace},getTextNodeContent:function(t){return t.data},getCommentNodeContent:function(t){return t.data},getDocumentTypeNodeName:function(t){var e;return null!==(e=t["x-name"])&&void 0!==e?e:""},getDocumentTypeNodePublicId:function(t){var e;return null!==(e=t["x-publicId"])&&void 0!==e?e:""},getDocumentTypeNodeSystemId:function(t){var e;return null!==(e=t["x-systemId"])&&void 0!==e?e:""},isDocumentTypeNode:function(t){return GB(t)&&"!doctype"===t.name},setNodeSourceCodeLocation:function(t,e){e&&(t.startIndex=e.startOffset,t.endIndex=e.endOffset),t.sourceCodeLocation=e},getNodeSourceCodeLocation:function(t){return t.sourceCodeLocation},updateNodeSourceCodeLocation:function(t,e){null!=e.endOffset&&(t.endIndex=e.endOffset),t.sourceCodeLocation=uN(uN({},t.sourceCodeLocation),e)}};function pN(t,e,n,r){const i={scriptingEnabled:"boolean"!=typeof e.scriptingEnabled||e.scriptingEnabled,treeAdapter:dN,sourceCodeLocationInfo:e.sourceCodeLocationInfo};return n?function(t,e){return OL.parse(t,e)}(t,i):function(t,e,n){"string"==typeof t&&(n=e,e=t,t=null);const r=OL.getFragmentParser(t,n);return r.tokenizer.write(e,!0),r.getFragment()}(r,t,i)}const gN={treeAdapter:dN};var mN,yN,vN;function bN(t){return t===mN.Space||t===mN.NewLine||t===mN.Tab||t===mN.FormFeed||t===mN.CarriageReturn}function _N(t){return t===mN.Slash||t===mN.Gt||bN(t)}function wN(t){return t>=mN.Zero&&t<=mN.Nine}!function(t){t[t.Tab=9]="Tab",t[t.NewLine=10]="NewLine",t[t.FormFeed=12]="FormFeed",t[t.CarriageReturn=13]="CarriageReturn",t[t.Space=32]="Space",t[t.ExclamationMark=33]="ExclamationMark",t[t.Num=35]="Num",t[t.Amp=38]="Amp",t[t.SingleQuote=39]="SingleQuote",t[t.DoubleQuote=34]="DoubleQuote",t[t.Dash=45]="Dash",t[t.Slash=47]="Slash",t[t.Zero=48]="Zero",t[t.Nine=57]="Nine",t[t.Semi=59]="Semi",t[t.Lt=60]="Lt",t[t.Eq=61]="Eq",t[t.Gt=62]="Gt",t[t.Questionmark=63]="Questionmark",t[t.UpperA=65]="UpperA",t[t.LowerA=97]="LowerA",t[t.UpperF=70]="UpperF",t[t.LowerF=102]="LowerF",t[t.UpperZ=90]="UpperZ",t[t.LowerZ=122]="LowerZ",t[t.LowerX=120]="LowerX",t[t.OpeningSquareBracket=91]="OpeningSquareBracket"}(mN||(mN={})),function(t){t[t.Text=1]="Text",t[t.BeforeTagName=2]="BeforeTagName",t[t.InTagName=3]="InTagName",t[t.InSelfClosingTag=4]="InSelfClosingTag",t[t.BeforeClosingTagName=5]="BeforeClosingTagName",t[t.InClosingTagName=6]="InClosingTagName",t[t.AfterClosingTagName=7]="AfterClosingTagName",t[t.BeforeAttributeName=8]="BeforeAttributeName",t[t.InAttributeName=9]="InAttributeName",t[t.AfterAttributeName=10]="AfterAttributeName",t[t.BeforeAttributeValue=11]="BeforeAttributeValue",t[t.InAttributeValueDq=12]="InAttributeValueDq",t[t.InAttributeValueSq=13]="InAttributeValueSq",t[t.InAttributeValueNq=14]="InAttributeValueNq",t[t.BeforeDeclaration=15]="BeforeDeclaration",t[t.InDeclaration=16]="InDeclaration",t[t.InProcessingInstruction=17]="InProcessingInstruction",t[t.BeforeComment=18]="BeforeComment",t[t.CDATASequence=19]="CDATASequence",t[t.InSpecialComment=20]="InSpecialComment",t[t.InCommentLike=21]="InCommentLike",t[t.BeforeSpecialS=22]="BeforeSpecialS",t[t.SpecialStartSequence=23]="SpecialStartSequence",t[t.InSpecialTag=24]="InSpecialTag",t[t.BeforeEntity=25]="BeforeEntity",t[t.BeforeNumericEntity=26]="BeforeNumericEntity",t[t.InNamedEntity=27]="InNamedEntity",t[t.InNumericEntity=28]="InNumericEntity",t[t.InHexEntity=29]="InHexEntity"}(yN||(yN={})),function(t){t[t.NoValue=0]="NoValue",t[t.Unquoted=1]="Unquoted",t[t.Single=2]="Single",t[t.Double=3]="Double"}(vN||(vN={}));const EN={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 CN{constructor({xmlMode:t=!1,decodeEntities:e=!0},n){this.cbs=n,this.state=yN.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=yN.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=t,this.decodeEntities=e,this.entityTrie=t?FI:NI}reset(){this.state=yN.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=yN.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(t){this.offset+=this.buffer.length,this.buffer=t,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(t){t===mN.Lt||!this.decodeEntities&&this.fastForwardTo(mN.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=yN.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===mN.Amp&&(this.state=yN.BeforeEntity)}stateSpecialStartSequence(t){const e=this.sequenceIndex===this.currentSequence.length;if(e?_N(t):(32|t)===this.currentSequence[this.sequenceIndex]){if(!e)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=yN.InTagName,this.stateInTagName(t)}stateInSpecialTag(t){if(this.sequenceIndex===this.currentSequence.length){if(t===mN.Gt||bN(t)){const e=this.index-this.currentSequence.length;if(this.sectionStart<e){const t=this.index;this.index=e,this.cbs.ontext(this.sectionStart,e),this.index=t}return this.isSpecial=!1,this.sectionStart=e+2,void this.stateInClosingTagName(t)}this.sequenceIndex=0}(32|t)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===EN.TitleEnd?this.decodeEntities&&t===mN.Amp&&(this.state=yN.BeforeEntity):this.fastForwardTo(mN.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(t===mN.Lt)}stateCDATASequence(t){t===EN.Cdata[this.sequenceIndex]?++this.sequenceIndex===EN.Cdata.length&&(this.state=yN.InCommentLike,this.currentSequence=EN.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=yN.InDeclaration,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===t)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===EN.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=yN.Text):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(t){return this.xmlMode?!_N(t):function(t){return t>=mN.LowerA&&t<=mN.LowerZ||t>=mN.UpperA&&t<=mN.UpperZ}(t)}startSpecial(t,e){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=e,this.state=yN.SpecialStartSequence}stateBeforeTagName(t){if(t===mN.ExclamationMark)this.state=yN.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===mN.Questionmark)this.state=yN.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){const e=32|t;this.sectionStart=this.index,this.xmlMode||e!==EN.TitleEnd[2]?this.state=this.xmlMode||e!==EN.ScriptEnd[2]?yN.InTagName:yN.BeforeSpecialS:this.startSpecial(EN.TitleEnd,3)}else t===mN.Slash?this.state=yN.BeforeClosingTagName:(this.state=yN.Text,this.stateText(t))}stateInTagName(t){_N(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=yN.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateBeforeClosingTagName(t){bN(t)||(t===mN.Gt?this.state=yN.Text:(this.state=this.isTagStartChar(t)?yN.InClosingTagName:yN.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(t){(t===mN.Gt||bN(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=yN.AfterClosingTagName,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){(t===mN.Gt||this.fastForwardTo(mN.Gt))&&(this.state=yN.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(t){t===mN.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=yN.InSpecialTag,this.sequenceIndex=0):this.state=yN.Text,this.baseState=this.state,this.sectionStart=this.index+1):t===mN.Slash?this.state=yN.InSelfClosingTag:bN(t)||(this.state=yN.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===mN.Gt?(this.cbs.onselfclosingtag(this.index),this.state=yN.Text,this.baseState=yN.Text,this.sectionStart=this.index+1,this.isSpecial=!1):bN(t)||(this.state=yN.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateInAttributeName(t){(t===mN.Eq||_N(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=yN.AfterAttributeName,this.stateAfterAttributeName(t))}stateAfterAttributeName(t){t===mN.Eq?this.state=yN.BeforeAttributeValue:t===mN.Slash||t===mN.Gt?(this.cbs.onattribend(vN.NoValue,this.index),this.state=yN.BeforeAttributeName,this.stateBeforeAttributeName(t)):bN(t)||(this.cbs.onattribend(vN.NoValue,this.index),this.state=yN.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(t){t===mN.DoubleQuote?(this.state=yN.InAttributeValueDq,this.sectionStart=this.index+1):t===mN.SingleQuote?(this.state=yN.InAttributeValueSq,this.sectionStart=this.index+1):bN(t)||(this.sectionStart=this.index,this.state=yN.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))}handleInAttributeValue(t,e){t===e||!this.decodeEntities&&this.fastForwardTo(e)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(e===mN.DoubleQuote?vN.Double:vN.Single,this.index),this.state=yN.BeforeAttributeName):this.decodeEntities&&t===mN.Amp&&(this.baseState=this.state,this.state=yN.BeforeEntity)}stateInAttributeValueDoubleQuotes(t){this.handleInAttributeValue(t,mN.DoubleQuote)}stateInAttributeValueSingleQuotes(t){this.handleInAttributeValue(t,mN.SingleQuote)}stateInAttributeValueNoQuotes(t){bN(t)||t===mN.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(vN.Unquoted,this.index),this.state=yN.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===mN.Amp&&(this.baseState=this.state,this.state=yN.BeforeEntity)}stateBeforeDeclaration(t){t===mN.OpeningSquareBracket?(this.state=yN.CDATASequence,this.sequenceIndex=0):this.state=t===mN.Dash?yN.BeforeComment:yN.InDeclaration}stateInDeclaration(t){(t===mN.Gt||this.fastForwardTo(mN.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=yN.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===mN.Gt||this.fastForwardTo(mN.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=yN.Text,this.sectionStart=this.index+1)}stateBeforeComment(t){t===mN.Dash?(this.state=yN.InCommentLike,this.currentSequence=EN.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=yN.InDeclaration}stateInSpecialComment(t){(t===mN.Gt||this.fastForwardTo(mN.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=yN.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){const e=32|t;e===EN.ScriptEnd[3]?this.startSpecial(EN.ScriptEnd,4):e===EN.StyleEnd[3]?this.startSpecial(EN.StyleEnd,4):(this.state=yN.InTagName,this.stateInTagName(t))}stateBeforeEntity(t){this.entityExcess=1,this.entityResult=0,t===mN.Num?this.state=yN.BeforeNumericEntity:t===mN.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=yN.InNamedEntity,this.stateInNamedEntity(t))}stateInNamedEntity(t){if(this.entityExcess+=1,this.trieIndex=kI(this.entityTrie,this.trieCurrent,this.trieIndex+1,t),this.trieIndex<0)return this.emitNamedEntity(),void this.index--;this.trieCurrent=this.entityTrie[this.trieIndex];const e=this.trieCurrent&SI.VALUE_LENGTH;if(e){const n=(e>>14)-1;if(this.allowLegacyEntity()||t===mN.Semi){const t=this.index-this.entityExcess+1;t>this.sectionStart&&this.emitPartial(this.sectionStart,t),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]&SI.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~SI.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(t){(32|t)===mN.LowerX?(this.entityExcess++,this.state=yN.InHexEntity):(this.state=yN.InNumericEntity,this.stateInNumericEntity(t))}emitNumericEntity(t){const e=this.index-this.entityExcess-1;e+2+Number(this.state===yN.InHexEntity)!==this.index&&(e>this.sectionStart&&this.emitPartial(this.sectionStart,e),this.sectionStart=this.index+Number(t),this.emitCodePoint(LI(this.entityResult))),this.state=this.baseState}stateInNumericEntity(t){t===mN.Semi?this.emitNumericEntity(!0):wN(t)?(this.entityResult=10*this.entityResult+(t-mN.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(t){t===mN.Semi?this.emitNumericEntity(!0):wN(t)?(this.entityResult=16*this.entityResult+(t-mN.Zero),this.entityExcess++):!function(t){return t>=mN.UpperA&&t<=mN.UpperF||t>=mN.LowerA&&t<=mN.LowerF}(t)?(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--):(this.entityResult=16*this.entityResult+((32|t)-mN.LowerA+10),this.entityExcess++)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===yN.Text||this.baseState===yN.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===yN.Text||this.state===yN.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.state!==yN.InAttributeValueDq&&this.state!==yN.InAttributeValueSq&&this.state!==yN.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 t=this.buffer.charCodeAt(this.index-this.offset);this.state===yN.Text?this.stateText(t):this.state===yN.SpecialStartSequence?this.stateSpecialStartSequence(t):this.state===yN.InSpecialTag?this.stateInSpecialTag(t):this.state===yN.CDATASequence?this.stateCDATASequence(t):this.state===yN.InAttributeValueDq?this.stateInAttributeValueDoubleQuotes(t):this.state===yN.InAttributeName?this.stateInAttributeName(t):this.state===yN.InCommentLike?this.stateInCommentLike(t):this.state===yN.InSpecialComment?this.stateInSpecialComment(t):this.state===yN.BeforeAttributeName?this.stateBeforeAttributeName(t):this.state===yN.InTagName?this.stateInTagName(t):this.state===yN.InClosingTagName?this.stateInClosingTagName(t):this.state===yN.BeforeTagName?this.stateBeforeTagName(t):this.state===yN.AfterAttributeName?this.stateAfterAttributeName(t):this.state===yN.InAttributeValueSq?this.stateInAttributeValueSingleQuotes(t):this.state===yN.BeforeAttributeValue?this.stateBeforeAttributeValue(t):this.state===yN.BeforeClosingTagName?this.stateBeforeClosingTagName(t):this.state===yN.AfterClosingTagName?this.stateAfterClosingTagName(t):this.state===yN.BeforeSpecialS?this.stateBeforeSpecialS(t):this.state===yN.InAttributeValueNq?this.stateInAttributeValueNoQuotes(t):this.state===yN.InSelfClosingTag?this.stateInSelfClosingTag(t):this.state===yN.InDeclaration?this.stateInDeclaration(t):this.state===yN.BeforeDeclaration?this.stateBeforeDeclaration(t):this.state===yN.BeforeComment?this.stateBeforeComment(t):this.state===yN.InProcessingInstruction?this.stateInProcessingInstruction(t):this.state===yN.InNamedEntity?this.stateInNamedEntity(t):this.state===yN.BeforeEntity?this.stateBeforeEntity(t):this.state===yN.InHexEntity?this.stateInHexEntity(t):this.state===yN.InNumericEntity?this.stateInNumericEntity(t):this.stateBeforeNumericEntity(t),this.index++}this.cleanup()}finish(){this.state===yN.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length+this.offset;this.state===yN.InCommentLike?this.currentSequence===EN.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===yN.InNumericEntity&&this.allowLegacyEntity()||this.state===yN.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===yN.InTagName||this.state===yN.BeforeAttributeName||this.state===yN.BeforeAttributeValue||this.state===yN.AfterAttributeName||this.state===yN.InAttributeName||this.state===yN.InAttributeValueSq||this.state===yN.InAttributeValueDq||this.state===yN.InAttributeValueNq||this.state===yN.InClosingTagName||this.cbs.ontext(this.sectionStart,t)}emitPartial(t,e){this.baseState!==yN.Text&&this.baseState!==yN.InSpecialTag?this.cbs.onattribdata(t,e):this.cbs.ontext(t,e)}emitCodePoint(t){this.baseState!==yN.Text&&this.baseState!==yN.InSpecialTag?this.cbs.onattribentity(t):this.cbs.ontextentity(t)}}const xN=new Set(["input","option","optgroup","select","button","datalist","textarea"]),BN=new Set(["p"]),TN=new Set(["thead","tbody"]),kN=new Set(["dd","dt"]),SN=new Set(["rt","rp"]),IN=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",BN],["h1",BN],["h2",BN],["h3",BN],["h4",BN],["h5",BN],["h6",BN],["select",xN],["input",xN],["output",xN],["button",xN],["datalist",xN],["textarea",xN],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",kN],["dt",kN],["address",BN],["article",BN],["aside",BN],["blockquote",BN],["details",BN],["div",BN],["dl",BN],["fieldset",BN],["figcaption",BN],["figure",BN],["footer",BN],["form",BN],["header",BN],["hr",BN],["main",BN],["nav",BN],["ol",BN],["pre",BN],["section",BN],["table",BN],["ul",BN],["rt",SN],["rp",SN],["tbody",TN],["tfoot",TN]]),LN=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),FN=new Set(["math","svg"]),NN=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),ON=/\s|\//;class DN{constructor(t,e={}){var n,r,i,a,o;this.options=e,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!=t?t:{},this.lowerCaseTagNames=null!==(n=e.lowerCaseTags)&&void 0!==n?n:!e.xmlMode,this.lowerCaseAttributeNames=null!==(r=e.lowerCaseAttributeNames)&&void 0!==r?r:!e.xmlMode,this.tokenizer=new(null!==(i=e.Tokenizer)&&void 0!==i?i:CN)(this.options,this),null===(o=(a=this.cbs).onparserinit)||void 0===o||o.call(a,this)}ontext(t,e){var n,r;const i=this.getSlice(t,e);this.endIndex=e-1,null===(r=(n=this.cbs).ontext)||void 0===r||r.call(n,i),this.startIndex=e}ontextentity(t){var e,n;const r=this.tokenizer.getSectionStart();this.endIndex=r-1,null===(n=(e=this.cbs).ontext)||void 0===n||n.call(e,II(t)),this.startIndex=r}isVoidElement(t){return!this.options.xmlMode&&LN.has(t)}onopentagname(t,e){this.endIndex=e;let n=this.getSlice(t,e);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)}emitOpenTag(t){var e,n,r,i;this.openTagStart=this.startIndex,this.tagname=t;const a=!this.options.xmlMode&&IN.get(t);if(a)for(;this.stack.length>0&&a.has(this.stack[this.stack.length-1]);){const t=this.stack.pop();null===(n=(e=this.cbs).onclosetag)||void 0===n||n.call(e,t,!0)}this.isVoidElement(t)||(this.stack.push(t),FN.has(t)?this.foreignContext.push(!0):NN.has(t)&&this.foreignContext.push(!1)),null===(i=(r=this.cbs).onopentagname)||void 0===i||i.call(r,t),this.cbs.onopentag&&(this.attribs={})}endOpenTag(t){var e,n;this.startIndex=this.openTagStart,this.attribs&&(null===(n=(e=this.cbs).onopentag)||void 0===n||n.call(e,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}onclosetag(t,e){var n,r,i,a,o,s;this.endIndex=e;let c=this.getSlice(t,e);if(this.lowerCaseTagNames&&(c=c.toLowerCase()),(FN.has(c)||NN.has(c))&&this.foreignContext.pop(),this.isVoidElement(c))this.options.xmlMode||"br"!==c||(null===(r=(n=this.cbs).onopentagname)||void 0===r||r.call(n,"br"),null===(a=(i=this.cbs).onopentag)||void 0===a||a.call(i,"br",{},!0),null===(s=(o=this.cbs).onclosetag)||void 0===s||s.call(o,"br",!1));else{const t=this.stack.lastIndexOf(c);if(-1!==t)if(this.cbs.onclosetag){let e=this.stack.length-t;for(;e--;)this.cbs.onclosetag(this.stack.pop(),0!==e)}else this.stack.length=t;else this.options.xmlMode||"p"!==c||(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=e+1}onselfclosingtag(t){this.endIndex=t,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}closeCurrentTag(t){var e,n;const r=this.tagname;this.endOpenTag(t),this.stack[this.stack.length-1]===r&&(null===(n=(e=this.cbs).onclosetag)||void 0===n||n.call(e,r,!t),this.stack.pop())}onattribname(t,e){this.startIndex=t;const n=this.getSlice(t,e);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n}onattribdata(t,e){this.attribvalue+=this.getSlice(t,e)}onattribentity(t){this.attribvalue+=II(t)}onattribend(t,e){var n,r;this.endIndex=e,null===(r=(n=this.cbs).onattribute)||void 0===r||r.call(n,this.attribname,this.attribvalue,t===vN.Double?'"':t===vN.Single?"'":t===vN.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(t){const e=t.search(ON);let n=e<0?t:t.substr(0,e);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n}ondeclaration(t,e){this.endIndex=e;const n=this.getSlice(t,e);if(this.cbs.onprocessinginstruction){const t=this.getInstructionName(n);this.cbs.onprocessinginstruction("!"+t,"!"+n)}this.startIndex=e+1}onprocessinginstruction(t,e){this.endIndex=e;const n=this.getSlice(t,e);if(this.cbs.onprocessinginstruction){const t=this.getInstructionName(n);this.cbs.onprocessinginstruction("?"+t,"?"+n)}this.startIndex=e+1}oncomment(t,e,n){var r,i,a,o;this.endIndex=e,null===(i=(r=this.cbs).oncomment)||void 0===i||i.call(r,this.getSlice(t,e-n)),null===(o=(a=this.cbs).oncommentend)||void 0===o||o.call(a),this.startIndex=e+1}oncdata(t,e,n){var r,i,a,o,s,c,l,A,u,h;this.endIndex=e;const f=this.getSlice(t,e-n);this.options.xmlMode||this.options.recognizeCDATA?(null===(i=(r=this.cbs).oncdatastart)||void 0===i||i.call(r),null===(o=(a=this.cbs).ontext)||void 0===o||o.call(a,f),null===(c=(s=this.cbs).oncdataend)||void 0===c||c.call(s)):(null===(A=(l=this.cbs).oncomment)||void 0===A||A.call(l,`[CDATA[${f}]]`),null===(h=(u=this.cbs).oncommentend)||void 0===h||h.call(u)),this.startIndex=e+1}onend(){var t,e;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let t=this.stack.length;t>0;this.cbs.onclosetag(this.stack[--t],!0));}null===(e=(t=this.cbs).onend)||void 0===e||e.call(t)}reset(){var t,e,n,r;null===(e=(t=this.cbs).onreset)||void 0===e||e.call(t),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(t){this.reset(),this.end(t)}getSlice(t,e){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let n=this.buffers[0].slice(t-this.bufferOffset,e-this.bufferOffset);for(;e-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,e-this.bufferOffset);return n}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(t){var e,n;this.ended?null===(n=(e=this.cbs).onerror)||void 0===n||n.call(e,new Error(".write() after done!")):(this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++))}end(t){var e,n;this.ended?null===(n=(e=this.cbs).onerror)||void 0===n||n.call(e,Error(".end() after done!")):(t&&this.write(t),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(t){this.write(t)}done(t){this.end(t)}}var MN=function(t,e){return function n(r,i,a=!0){if(null==r)throw new Error("cheerio.load() expects a string");const o={...gB,...yB(i)},s=t(r,o,a,null);class c extends rI{_make(t,e){const n=l(t,e);return n.prevObject=this,n}_parse(e,n,r,i){return t(e,n,r,i)}_render(t){return e(t,this.options)}}function l(e,n,r=s,i){if(e&&KT(e))return e;const a={...o,...yB(i)},l="string"==typeof r?[t(r,a,!1,null)]:"length"in r?r:[r],A=KT(l)?l:new c(l,null,a);if(A._root=A,!e)return new c(void 0,A,a);const u="string"==typeof e&&WT(e)?t(e,a,!1,null).children:(h=e).name||"root"===h.type||"text"===h.type||"comment"===h.type?[e]:Array.isArray(e)?e:void 0;var h;const f=new c(u,A,a);if(u)return f;if("string"!=typeof e)throw new Error("Unexpected type of selector");let d=e;const p=n?"string"==typeof n?WT(n)?new c([t(n,a,!1,null)],A,a):(d=`${n} ${d}`,A):KT(n)?n:new c(Array.isArray(n)?n:[n],A,a):A;return p?p.find(d):f}return Object.assign(l,$T,{load:n,_root:s,_options:o,fn:c.prototype,prototype:c.prototype}),l}}(function(t){return function(e,n,r,i){if("undefined"!=typeof Buffer&&Buffer.isBuffer(e)&&(e=e.toString()),"string"==typeof e)return t(e,n,r,i);const a=e;if(!Array.isArray(a)&&jB(a))return a;const o=new MB([]);return jS(a,o),o}}((t,e,n,r)=>e.xmlMode||e._useHtmlParser2?function(t,e){const n=new WB(void 0,e);return new DN(n,e).end(t),n.root}(t,e):pN(t,e,n,r)),(t,e)=>e.xmlMode||e._useHtmlParser2?sT(t,e):function(t){const e="length"in t?t:[t];for(let t=0;t<e.length;t+=1){const n=e[t];jB(n)&&Array.prototype.splice.call(e,t,1,...n.children)}let n="";for(let t=0;t<e.length;t+=1){n+=DF(e[t],gN)}return n}(t))([]),RN=r((function(t,e){function n(t){var e=[].slice.call(arguments,1);e.unshift("["+t+"]"),process.stderr.write(e.join(" ")+"\n")}t.exports=function(t){return n.bind(null,t)}})),UN=r((function(t,e){RN("lex");t.exports=function(t){var e,n="",r=0,i=-1,a=0,o=1,s="before-selector",c=[s],l={},A=[],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 h(t){return t?c[c.length-1-t]:s}function f(e){var n=t.slice(i).indexOf(e);return n>0&&n}function d(t){return t===p(1)}function p(e){return t[i+(e||1)]}function g(){var t=c.pop();return s=c[c.length-1],t}function m(t){return s=t,c.push(s),c.length}function y(t){var e=s;return c[c.length-1]=s=t,e}function v(e){if(1==(e||1))"\n"==t[i]?(o++,r=1):r++,i++;else{var n=t.slice(i,i+e).split("\n");n.length>1&&(o+=n.length-1,r=1),r+=n[n.length-1].length,i+=e}}function b(){l.end={line:o,col:r},A.push(l),n="",l={}}function _(t){l={type:t,start:{line:o,col:r}}}for(;v(),e=t[i];)switch(e){case" ":switch(h()){case"selector":case"value":case"value-paren":case"at-group":case"at-value":case"comment":case"double-string":case"single-string":n+=e}break;case"\n":case"\t":case"\r":case"\f":switch(h()){case"value":case"value-paren":case"at-group":case"comment":case"single-string":case"double-string":case"selector":n+=e;break;case"at-value":"\n"===e&&(l.value=n.trim(),b(),g())}break;case":":switch(h()){case"name":l.name=n.trim(),n="",y("before-value");break;case"before-selector":n+=e,_("selector"),m("selector");break;case"before-value":y("value"),n+=e;break;default:n+=e}break;case";":switch(h()){case"name":case"before-value":case"value":n.trim().length>0&&(l.value=n.trim(),b()),y("before-name");break;case"value-paren":n+=e;break;case"at-value":l.value=n.trim(),b(),g();break;case"before-name":break;default:n+=e}break;case"{":switch(h()){case"selector":if("\\"===p(-1)){n+=e;break}l.text=n.trim(),b(),y("before-name"),a+=1;break;case"at-group":switch(l.name=n.trim(),l.type){case"font-face":case"viewport":case"page":m("before-name");break;default:m("before-selector")}b(),a+=1;break;case"name":case"at-rule":l.name=n.trim(),b(),m("before-name"),a+=1;break;case"comment":case"double-string":case"single-string":n+=e;break;case"before-value":y("value"),n+=e}break;case"}":switch(h()){case"before-name":case"name":case"before-value":case"value":n&&(l.value=n.trim()),l.name&&l.value&&b(),_("end"),b(),g(),"at-group"===h()&&(_("at-group-end"),b(),g()),a>0&&(a-=1);break;case"at-group":case"before-selector":case"selector":if("\\"===p(-1)){n+=e;break}a>0&&"at-group"===h(1)&&(_("at-group-end"),b()),a>1&&g(),a>0&&(a-=1);break;case"double-string":case"single-string":case"comment":n+=e}break;case'"':case"'":switch(h()){case"double-string":'"'===e&&"\\"!==p(-1)&&g();break;case"single-string":"'"===e&&"\\"!==p(-1)&&g();break;case"before-at-value":y("at-value"),m('"'===e?"double-string":"single-string");break;case"before-value":y("value"),m('"'===e?"double-string":"single-string");break;case"comment":break;default:"\\"!==p(-1)&&m('"'===e?"double-string":"single-string")}n+=e;break;case"/":switch(h()){case"comment":case"double-string":case"single-string":n+=e;break;case"before-value":case"selector":case"name":case"value":if(d("*")){var w=f("*/");w&&v(w+1)}else"before-value"==h()&&y("value"),n+=e;break;default:d("*")?(_("comment"),m("comment"),v()):n+=e}break;case"*":switch(h()){case"comment":d("/")?(l.text=n,v(),b(),g()):n+=e;break;case"before-selector":n+=e,_("selector"),m("selector");break;case"before-value":y("value"),n+=e;break;default:n+=e}break;case"@":switch(h()){case"comment":case"double-string":case"single-string":n+=e;break;case"before-value":y("value"),n+=e;break;default:for(var E,C,x=!1,B=0,T=u.length;!x&&B<T;++B)E=(C=u[B]).name||C,S=void 0,S=i+1,(k=E)===t.slice(S,S+k.length)&&(x=!0,_(E),m(C.state||"at-group"),v(E.length),C.prefix&&(l.prefix=C.prefix),C.type&&(l.type=C.type));x||(n+=e)}break;case"(":switch(h()){case"value":m("value-paren");break;case"before-value":y("value")}n+=e;break;case")":switch(h()){case"value-paren":g();break;case"before-value":y("value")}n+=e;break;default:switch(h()){case"before-selector":_("selector"),m("selector");break;case"before-name":_("property"),y("name");break;case"before-value":y("value");break;case"before-at-value":y("at-value")}n+=e}var k,S;return A}})),PN=r((function(t,e){var n,r,i,a;RN("parse");function o(t,e){var n;e||(e={});for(var r=["type","name","value"],a={},o=0;o<r.length;++o)t[n=r[o]]&&(a[n]=e[n]||t[n]);for(r=Object.keys(e),o=0;o<r.length;++o)a[n=r[o]]||(a[n]=e[n]);return i&&(a.position={start:t.start,end:t.end}),a}function s(){return a.shift()}function c(t){r+=1;var e={};switch(t.type){case"font-face":case"viewport":e.declarations=u();break;case"page":e.prefix=t.prefix,e.declarations=u();break;default:e.prefix=t.prefix,e.rules=A((function(){return r}))}return o(t,e)}function l(t){switch(t.type){case"property":return function(t){return o(t)}(t);case"selector":return function(t){return o(t,{type:"rule",selectors:t.text.split(",").map((function(t){return t.trim()})),declarations:u()})}(t);case"at-group-end":return void(r-=1);case"media":case"keyframes":return c(t);case"comment":if(n)return function(t){return o(t,{text:t.text})}(t);break;case"charset":case"import":case"namespace":return function(t){return o(t)}(t);case"font-face":case"supports":case"viewport":case"document":case"page":return c(t)}}function A(t){for(var e,n,r=[];(n=s())&&t&&t(n);)(e=l(n))&&r.push(e);return n&&"end"!==n.type&&a.unshift(n),r}function u(){return A((function(t){return"property"===t.type||"comment"===t.type}))}t.exports=function(t,e){var o;e||(e={}),n=!!e.comments,i=!!e.position,r=0,a=Array.isArray(t)?t.slice():UN(t);var c,A=[];for(;c=s();)(o=l(c))&&A.push(o);return{type:"stylesheet",stylesheet:{rules:A}}}})),HN=r((function(t,e){var n,r,i,a,o,s;RN("stringify");function c(t){if(!t)return r?"":Array(a).join(i||"");a+=t}function l(t){var e="",n=t.prefix||"";t.name&&(e=" "+t.name);var r="page"!==t.type;return"@"+n+t.type+e+s+f(t,r)+o}function A(t){return n?"/*"+(t.text||"")+"*/"+o:""}function u(t){var e;return t.selectors?e=t.selectors.join(","+o):(e="@"+t.type,e+=t.name?" "+t.name:""),c()+e+s+f(t)+o}function h(t,e){return t.reduce((function(t,n){var r="comment"===n.type?A(n):e(n);return r&&t.push(r),t}),[])}function f(t,e){var n=t.declarations,r=d;return t.rules&&(n=t.rules,r=u),(n=function(t,e){if(!t)return"";c(1);var n=h(t,e);if(c(-1),!n.length)return"";return n.join(o)}(n,r))&&(n=o+n+(e?"":o)),"{"+n+c()+"}"}function d(t){if("property"===t.type)return function(t){var e=t.name?t.name+":"+s:"";return c()+e+t.value+";"}(t)}function p(t){switch(t.type){case"rule":return u(t);case"media":case"keyframes":return l(t);case"comment":return A(t);case"import":case"charset":case"namespace":return function(t){return"@"+t.type+" "+t.value+";"+o}(t);case"font-face":case"supports":case"viewport":case"document":case"page":return l(t)}}t.exports=function(t,e){e||(e={}),i=e.indentation||"",r=!!e.compress,n=!!e.comments,a=1,r?o=s="":(o="\n",s=" ");return h(t.stylesheet.rules,p).join("\n").trim()}})),QN={lex:UN,parse:PN,stringify:HN},GN=/([-.*+?^${}()|[\]\/\\])/g,jN=/\\/g,$N=function(t){return(t+"").replace(GN,"\\$1")},KN=function(t){return(t+"").replace(jN,"")},YN=RegExp("^(?:\\s*(,)\\s*|\\s*(<combinator>+)\\s*|(\\s+)|(<unicode>+|\\*)|\\#(<unicode>+)|\\.(<unicode>+)|\\[\\s*(<unicode1>+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:([\"']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(<unicode>+)(?:\\((?:(?:([\"'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)".replace(/<combinator>/,"["+$N(">+~`!@$%^&={}\\;</")+"]").replace(/<unicode>/g,"(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])").replace(/<unicode1>/g,"(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])")),zN=function(t){this.combinator=t||" ",this.tag="*"};zN.prototype.toString=function(){if(!this.raw){var t,e,n="";if(n+=this.tag||"*",this.id&&(n+="#"+this.id),this.classes&&(n+="."+this.classList.join(".")),this.attributes)for(t=0;e=this.attributes[t++];)n+="["+e.name+(e.operator?e.operator+'"'+e.value+'"':"")+"]";if(this.pseudos)for(t=0;e=this.pseudos[t++];)n+=":"+e.name,e.value&&(n+="("+e.value+")");this.raw=n}return this.raw};var WN=function(){this.length=0};WN.prototype.toString=function(){if(!this.raw){for(var t,e="",n=0;t=this[n++];)1!==n&&(e+=" ")," "!==t.combinator&&(e+=t.combinator+" "),e+=t;this.raw=e}return this.raw};var VN=function(t,e,n,r,i,a,o,s,c,l,A,u,h,f,d,p){var g,m;if((e||!this.length)&&(g=this[this.length++]=new WN,e))return"";if(g||(g=this[this.length-1]),(n||r||!g.length)&&(m=g[g.length++]=new zN(n)),m||(m=g[g.length-1]),i)m.tag=KN(i);else if(a)m.id=KN(a);else if(o){var y=KN(o),v=m.classes||(m.classes={});if(!v[y]){v[y]=$N(o);var b=m.classList||(m.classList=[]);b.push(y),b.sort()}}else h?(p=p||d,(m.pseudos||(m.pseudos=[])).push({type:1==u.length?"class":"element",name:KN(h),escapedName:$N(h),value:p?KN(p):null,escapedValue:p?$N(p):null})):s&&(A=A?$N(A):null,(m.attributes||(m.attributes=[])).push({operator:c,name:KN(s),escapedName:$N(s),value:A?KN(A):null,escapedValue:A?$N(A):null}));return""},qN=function(t){this.length=0;for(var e,n=this,r=t;t;){if((e=t.replace(YN,(function(){return VN.apply(n,arguments)})))===t)throw new Error(r+" is an invalid expression");t=e}};qN.prototype.toString=function(){if(!this.raw){for(var t,e=[],n=0;t=this[n++];)e.push(t);this.raw=e.join(", ")}return this.raw};var XN={},JN=function(t){return null==t?null:(t=(""+t).replace(/^\s+|\s+$/g,""),XN[t]||(XN[t]=new qN(t)))},ZN=r((function(t,e){function n(t,e){this.text=t,this.spec=void 0,this.styleAttribute=e||!1}function r(t){try{return JN(t)[0]}catch(t){return[]}}t.exports=n,n.prototype.parsed=function(){return this.tokens||(this.tokens=r(this.text)),this.tokens},n.prototype.specificity=function(){var t=this.styleAttribute;return this.spec||(this.spec=function e(n,i){for(var a=i||r(n),o=[t?1:0,0,0,0],s=[],c=0;c<a.length;c++){var l=a[c],A=l.pseudos;if(l.id&&o[1]++,l.attributes&&(o[2]+=l.attributes.length),l.classList&&(o[2]+=l.classList.length),l.tag&&"*"!==l.tag&&o[3]++,A){o[3]+=A.length;for(var u=0;u<A.length;u++)"not"===A[u].name&&(s.push(A[u].value),o[3]--)}}for(var h=s.length;h--;)for(var f=e(s[h]),d=4;d--;)o[d]+=f[d];return o}(this.text,this.parsed())),this.spec}})),tO=r((function(t,e){function n(t,e,n,r,i){this.prop=t,this.value=e,this.selector=n,this.priority=r||0,this.additionalPriority=i||[]}t.exports=n,n.prototype.compareFunc=function(t){var e=[];e.push.apply(e,this.selector.specificity()),e.push.apply(e,this.additionalPriority),e[0]+=this.priority;var n=[];return n.push.apply(n,t.selector.specificity()),n.push.apply(n,t.additionalPriority),n[0]+=t.priority,eO.compareFunc(e,n)},n.prototype.compare=function(t){return 1===this.compareFunc(t)?this:t},n.prototype.toString=function(){return this.prop+": "+this.value.replace(/['"]+/g,"")+";"}})),eO=r((function(t,e){e.Selector=ZN,e.Property=tO,e.extract=function(t){for(var e=0,n=[],r="",i=0,a=t.length;i<a;i++){var o=t.charAt(i);e?("]"!==o&&")"!==o||e--,r+=o):","===o?(n.push(r),r=""):("["!==o&&"("!==o||e++,(r.length||","!==o&&"\n"!==o&&" "!==o)&&(r+=o))}return r.length&&n.push(r),n},e.parseCSS=function(t){for(var e=QN.parse(t,{position:!0,comments:!0}),n=void 0!==e.stylesheet&&e.stylesheet.rules?e.stylesheet.rules:[],r=[],i=0,a=n.length;i<a;i++)if("rule"==n[i].type)for(var o=n[i],s=o.selectors,c=0,l=s.length;c<l;c++)r.push([s[c],o.declarations]);return r},e.getPreservedText=function(t,e,n){for(var r=QN.parse(t,{position:!0,comments:!0}),i=void 0!==r.stylesheet&&r.stylesheet.rules?r.stylesheet.rules:[],a=[],o=i.length-1;o>=0;o--)(e.fontFaces&&"font-face"===i[o].type||e.mediaQueries&&"media"===i[o].type||e.keyFrames&&"keyframes"===i[o].type||e.pseudos&&i[o].selectors&&this.matchesPseudo(i[o].selectors[0],n))&&a.unshift(QN.stringify({stylesheet:{rules:[i[o]]}},{comments:!1,indentation:" "})),i[o].position.start;return 0!==a.length&&"\n"+a.join("\n")+"\n"},e.normalizeLineEndings=function(t){return t.replace(/\r\n/g,"\n").replace(/\n/g,"\r\n")},e.matchesPseudo=function(t,e){return e.find((function(e){return t.indexOf(e)>-1}))},e.compareFunc=function(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++)if(t[r]!==e[r])return t[r]>e[r]?1:-1;return t.length-e.length},e.compare=function(t,n){return 1==e.compareFunc(t,n)?t:n},e.getDefaultOptions=function(t){var e=Object.assign({extraCss:"",insertPreservedExtraCss:!0,applyStyleTags:!0,removeStyleTags:!0,preserveMediaQueries:!0,preserveFontFaces:!0,preserveKeyFrames:!0,preservePseudos:!0,applyWidthAttributes:!0,applyHeightAttributes:!0,applyAttributesTableElements:!0,url:""},t);return e.webResources=e.webResources||{},e}})),nO=(eO.Selector,eO.Property,eO.extract,eO.parseCSS,eO.getPreservedText,eO.normalizeLineEndings,eO.matchesPseudo,eO.compareFunc,eO.compare,eO.getDefaultOptions,r((function(t){t.exports=function(e,n,r,i){var a,o=(a=[],{encodeEntities:function(e){var n=t.exports.codeBlocks;return Object.keys(n).forEach((function(t){var r=new RegExp(n[t].start+"([\\S\\s]*?)"+n[t].end,"g");e=e.replace(r,(function(t,e){return a.push(t),"JUICE_CODE_BLOCK_"+(a.length-1)+"_"}))})),e},decodeEntities:function(t){for(var e=0;e<a.length;e++){var n=new RegExp("JUICE_CODE_BLOCK_"+e+'_(="")?',"gi");t=t.replace(n,(function(){return a[e]}))}return t}}),s=function(t,e,n){return e=Object.assign({decodeEntities:!1,_useHtmlParser2:!0},e),t=n(t),MN.load(t,e)}(e,n,o.encodeEntities),c=[s];c.push.apply(c,i);var l=r.apply(void 0,c)||s;return n&&n.xmlMode?o.decodeEntities(l.xml()):o.decodeEntities(l.html())},t.exports.codeBlocks={EJS:{start:"<%",end:"%>"},HBS:{start:"{{",end:"}}"}}}))),rO=(nO.codeBlocks,function(t){if(isNaN(t))return NaN;for(var e=String(+t).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="",i=3;i--;)r=(n[+e.pop()+10*i]||"")+r;return Array(+e.join("")+1).join("M")+r}),iO=function(t){for(var e,n="";t>0;)e=(t-1)%26,n=String.fromCharCode(65+e)+n,t=(t-e)/26|0;return n||void 0},aO=function(t){function e(e,o,s){s=s||{};var c=eO.parseCSS(o),l=[],A="style",u={};if(s.styleAttributeName&&(A=s.styleAttributeName),c.forEach((function(r){var i=r[0],o=r[1],c=new eO.Selector(i),h=c.parsed();if(!h)return;for(var f,d=function(t){if(0===t.length)return;var e=t[t.length-1].pseudos;if(!e)return;for(var n=0;n<e.length;n++)if(a(e[n]))return e[n].name}(h),p=0;p<h.length;++p){var g=h[p];if(g.pseudos)for(var m=0;m<g.pseudos.length;++m){var y=g.pseudos[m];if(t.ignoredPseudos.indexOf(y.name)>=0)return}}if(d){var v=h[h.length-1],b=v.pseudos;v.pseudos=function(t){return t.filter((function(t){return!a(t)}))}(v.pseudos),i=h.toString(),v.pseudos=b}try{f=e(i)}catch(t){return}f.each((function(){var r=this;if(!(r.name&&t.nonVisualElements.indexOf(r.name.toUpperCase())>=0)){if(d){var i="pseudo"+d,a=r[i];a||((a=r[i]=e("<span />").get(0)).pseudoElementType=d,a.pseudoElementParent=r,a.counterProps=r.counterProps,r[i]=a),r=a}if(!r.styleProps){if(r.styleProps={},e(r).attr(A)){var h="* { "+e(r).attr(A)+" } ";g(eO.parseCSS(h)[0][1],new eO.Selector("<style>",!0))}l.push(r)}r.counterProps||(r.counterProps=r.parent&&r.parent.counterProps?Object.create(r.parent.counterProps):{}),g(o,c)}function f(t,e){for(var n=e.split(/\s+/),r=0;r<n.length;r++){var i=n[r],a=parseInt(n[r+1],10);isNaN(a)?t.counterProps[i]=u[i]=0:t.counterProps[i]=u[n[r++]]=a}}function p(t,e){for(var n=e.split(/\s+/),r=0;r<n.length;r++){var i=n[r];if(void 0!==t.counterProps[i]){var a=parseInt(n[r+1],10);isNaN(a)?t.counterProps[i]=u[i]+=1:t.counterProps[i]=u[n[r++]]+=a}}}function g(e,i){for(var a=0,o=e.length;a<o;a++)if("property"==e[a].type){var c=e[a].name,l=e[a].value;"counter-reset"===c&&f(r,l),"counter-increment"===c&&p(r,l);var A=null!==l.match(/!important$/);A&&!s.preserveImportant&&(l=n(l));var u=[e[a].position.start.line,e[a].position.start.col],h=new eO.Property(c,l,i,A?2:0,u),d=r.styleProps[c];t.excludedProperties.indexOf(c)<0&&(d&&d.compare(h)===h||!d)&&(d&&d.selector!==i?delete r.styleProps[c]:d&&(h.nextProp=d),r.styleProps[c]=h)}}}))})),l.forEach((function(t){Object.keys(t.styleProps).length;var n=[];Object.keys(t.styleProps).forEach((function(e){for(var r=t.styleProps[e];void 0!==r;)n.push(r),r=r.nextProp})),n.sort((function(t,e){return t.compareFunc(e)}));var r=n.filter((function(t){return"content"!==t.prop})).map((function(t){return t.prop+": "+t.value.replace(/["]/g,"'")+";"})).join(" ");r&&e(t).attr(A,r)})),s.inlinePseudoElements&&l.forEach((function(t){if(t.pseudoElementType&&t.styleProps.content){var n=function(t){var e=t.styleProps.content.value;if("none"===e||"normal"===e)return"";var n=e.match(/^\s*url\s*\(\s*(.*?)\s*\)\s*$/i);if(n){return{img:n[1].replace(/^['"]|['"]$/g,"")}}for(var a=[],o=e.split(/['"]/),s=0;s<o.length;s++)if(""!==o[s]){var c=o[s].match(/var\s*\(\s*(.*?)\s*(,\s*(.*?)\s*)?\s*\)/i);if(c){var l=r(t,c[1])||c[2];a.push(l.replace(/^['"]|['"]$/g,""))}else{var A=o[s].match(/counter\s*\(\s*(.*?)\s*(,\s*(.*?)\s*)?\s*\)/i);if(A&&A[1]in t.counterProps){var u=t.counterProps[A[1]];a.push(i(u,A[3]))}else{var h=o[s].match(/attr\s*\(\s*(.*?)\s*\)/i);if(h){var f=h[1];a.push(t.pseudoElementParent?t.pseudoElementParent.attribs[f]:t.attribs[f])}else a.push(o[s])}}}return e=(e=a.join("")).replace(/\\/g,"")}(t);n.img?(t.name="img",e(t).attr("src",n.img)):e(t).text(n);var a=t.pseudoElementParent;"before"===t.pseudoElementType?e(a).prepend(t):e(a).append(t)}})),s.applyWidthAttributes&&l.forEach((function(t){d(t,"width")})),s.applyHeightAttributes&&l.forEach((function(t){d(t,"height")})),s.applyAttributesTableElements&&l.forEach((function(r){if(!r.name)return;var i=r.name.toUpperCase(),a=Object.keys(t.styleToAttribute);if(t.tableElements.indexOf(i)>-1)for(var o in r.styleProps)if(a.indexOf(r.styleProps[o].prop)>-1){var c=t.styleToAttribute[r.styleProps[o].prop],l=r.styleProps[o].value;if(s.preserveImportant&&(l=n(l)),"background"===c&&(l=p(l)),/(linear|radial)-gradient\(/i.test(l))continue;e(r).attr(c,l)}})),s.insertPreservedExtraCss&&s.extraCss){var h=eO.getPreservedText(s.extraCss,{mediaQueries:s.preserveMediaQueries,fontFaces:s.preserveFontFaces,keyFrames:s.preserveKeyFrames});if(h){var f=null;!0!==s.insertPreservedExtraCss?f=e(s.insertPreservedExtraCss):((f=e("head")).length||(f=e("body")),f.length||(f=e.root())),f.first().append("<style>"+h+"</style>")}}function d(r,i){if(r.name){var a=r.name.toUpperCase();if(t[i+"Elements"].indexOf(a)>-1)for(var o in r.styleProps)if(r.styleProps[o].prop===i){var c=r.styleProps[o].value;if(s.preserveImportant&&(c=n(c)),c.match(/px/)){var l=c.replace("px","");return void e(r).attr(i,l)}if(t.tableElements.indexOf(a)>-1&&c.match(/\%/))return void e(r).attr(i,c)}}}function p(t){return 0!==t.indexOf("url(")?t:t.replace(/^url\((["'])?([^"']+)\1\)$/,"$2")}}function n(t){return t.replace(/\s*!important$/,"")}function r(t,e){for(;t;){if(e in t.styleProps)return t.styleProps[e].value;t=t.parent||t.pseudoElementParent}}function i(t,e){switch(e){case"lower-roman":return rO(t).toLowerCase();case"upper-roman":return rO(t);case"lower-latin":case"lower-alpha":return iO(t).toLowerCase();case"upper-latin":case"upper-alpha":return iO(t);default:return t.toString()}}function a(t){return"before"===t.name||"after"===t.name}return t.ignoredPseudos=["hover","active","focus","visited","link"],t.widthElements=["TABLE","TD","TH","IMG"],t.heightElements=["TABLE","TD","TH","IMG"],t.tableElements=["TABLE","TH","TR","TD","CAPTION","COLGROUP","COL","THEAD","TBODY","TFOOT"],t.nonVisualElements=["HEAD","TITLE","BASE","LINK","STYLE","META","SCRIPT","NOSCRIPT"],t.styleToAttribute={"background-color":"bgcolor","background-image":"background","text-align":"align","vertical-align":"valign"},t.excludedProperties=[],t.juiceDocument=function(n,r){r=eO.getDefaultOptions(r);var i=function(e,n){return function(e,n){var r,i,a,o=[];return e("style").each((function(){var s=!!(a=this).childNodes;if(1===(r=s?a.childNodes:a.children).length){if(i=r[0].data,n.applyStyleTags&&void 0===e(a).attr("data-embed")&&o.push(i),n.removeStyleTags&&void 0===e(a).attr("data-embed")){var c=s?a.childNodes[0].nodeValue:a.children[0].data,l=eO.getPreservedText(c,{mediaQueries:n.preserveMediaQueries,fontFaces:n.preserveFontFaces,keyFrames:n.preserveKeyFrames,pseudos:n.preservePseudos},t.ignoredPseudos);l?s?a.childNodes[0].nodeValue=l:a.children[0].data=l:e(a).remove()}e(a).removeAttr("data-embed")}else n.removeStyleTags&&e(a).remove()})),o}(e,n).join("\n")}(n,r);return i+="\n"+r.extraCss,e(n,i,r),n},t.inlineDocument=e,t}((function(t,e){return nO(t,{xmlMode:e&&e.xmlMode},oO,[e])})),oO=function(t,e){return aO.juiceDocument(t,e)};aO.inlineContent=function(t,e,n){return nO(t,{xmlMode:n&&n.xmlMode},aO.inlineDocument,[e,n])};var sO=aO;function cO(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var lO=function(t){ca(r,t);var e,n=cO(r);function r(t){var e;return Ji(this,r),(e=n.call(this,t)).previewer=t.previewer,e.isLoading=!1,e.updateMarkdown=!1,e.setName("copy","copy"),e}return ta(r,[{key:"adaptWechat",value:(e=oB(dB.mark((function t(e){var n,r,i,a,o;return dB.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=/(<figure data-lines=.+?<)div(.+?<\/)div(>.*?<\/figure>)/g,r=e.replace(n,(function(t,e,n,r){var i,a;return Da(i=Da(a="".concat(e,"p")).call(a,n,"p")).call(i,r)})),i=/(<img.+?src=")(.+?)(".*?>)/g,a=[],r.replace(i,(function(t,e,n){a.push(AO(n))})),t.next=7,pB.all(a);case 7:return o=t.sent,t.abrupt("return",r.replace(i,(function(t,e,n,r){return e+o.shift()+r})));case 9:case"end":return t.stop()}}),t)}))),function(t){return e.apply(this,arguments)})},{key:"getStyleFromSheets",value:function(t){var e,n=Xr(e=gl(document.styleSheets)).call(e,(function(e){var n;return Zl(n=e.cssRules[0].cssText).call(n,t)>-1}));return"<style>".concat(yd(n).call(n,(function(t,e){var n;return t+yd(n=gl(e.cssRules)).call(n,(function(t,e){return t+e.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="'.concat(this.locale.copy,'"></i>'):document.querySelector(".ch-icon-copy").outerHTML='<div class="icon-loading loading"></div>';this.isLoading=!this.isLoading}},{key:"onClick",value:function(t){var e=this;this.toggleLoading();var n=document.querySelector(".cherry").getAttribute("data-inline-code-theme"),r=document.querySelector(".cherry").getAttribute("data-code-block-theme"),i=this.computeStyle(),a=i.mathStyle,o=i.echartStyle,s=i.cherryStyle,c=this.previewer.isPreviewerHidden()?this.previewer.options.previewerCache.html:this.previewer.getValue();this.adaptWechat(c).then((function(t){var i,c,l;wb(sO(Da(i=Da(c=Da(l='<div data-inline-code-theme="'.concat(n,'" data-code-block-theme="')).call(l,r,'">\n <div class="cherry-markdown">')).call(c,t,"</div>\n </div>")).call(i,a+o+s))),e.toggleLoading()}))}}]),r}(t_);function AO(t,e,n){return new pB((function(e){var r=document.createElement("CANVAS"),i=r.getContext("2d"),a=new Image;a.crossOrigin="Anonymous",a.onload=function(){r.height=a.height,r.width=a.width,i.drawImage(a,0,0);var t=r.toDataURL(n||"image/png");e(t),r=null},a.src=t}))}function uO(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var hO=function(t){ca(n,t);var e=uO(n);function n(t){var r,i,a,o,s,c;return Ji(this,n),(c=e.call(this,t)).setName("panel","tips"),c.panelRule=KA().reg,c.subMenuConfig=[{iconName:"tips",name:"tips",onclick:Pa(r=c.bindSubClick).call(r,na(c),"primary")},{iconName:"info",name:"info",onclick:Pa(i=c.bindSubClick).call(i,na(c),"info")},{iconName:"warning",name:"warning",onclick:Pa(a=c.bindSubClick).call(a,na(c),"warning")},{iconName:"danger",name:"danger",onclick:Pa(o=c.bindSubClick).call(o,na(c),"danger")},{iconName:"success",name:"success",onclick:Pa(s=c.bindSubClick).call(s,na(c),"success")}],c}return ta(n,[{key:"$getNameFromStr",value:function(t){var e=!1;return this.panelRule.lastIndex=0,t.replace(this.panelRule,(function(t,n,r,i){var a=/\s/.test(Xc(r).call(r))?Xc(r).call(r).replace(/\s.*$/,""):r;return e=a?Xc(a).call(a).toLowerCase():"",t})),e}},{key:"$getTitle",value:function(t){return this.panelRule.lastIndex=0,t.replace(this.panelRule,(function(t,e,n,r){var i=Xc(n).call(n);return/\s/.test(i)?i.replace(/[^\s]+\s/,""):""})),""}},{key:"onClick",value:function(t){var e,n,r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=s_(this.editor.editor,t,"line",!0)||"内容",o=this.$getNameFromStr(a),s=this.$getTitle(a);return!1===o&&this.getMoreSelection("::: ","\n",(function(){var t=r.editor.editor.getSelection(),e=r.$getNameFromStr(t);return!1!==e&&(a=t,o=e,s=r.$getTitle(t)),!1!==e})),!1!==o?o===i?(this.panelRule.lastIndex=0,a.replace(this.panelRule,(function(t,e,n,r){var i,a=Xc(n).call(n),o=/\s/.test(a)?a.replace(/[^\s]+\s/,""):"";return Da(i="".concat(o,"\n")).call(i,r)}))):(this.registerAfterClickCb((function(){r.setLessSelection("::: ","\n")})),this.panelRule.lastIndex=0,a.replace(this.panelRule,(function(t,e,n,r){var a,o,s=Xc(n).call(n),c=/\s/.test(s)?s.replace(/[^\s]+\s/,""):"";return Da(a=Da(o="::: ".concat(i," ")).call(o,c,"\n")).call(a,r.replace(/\n+$/,""),"\n:::")}))):(this.registerAfterClickCb((function(){r.setLessSelection("::: ","\n")})),a=a.replace(/^\n+/,""),/\n/.test(a)?s||(s=a.replace(/\n[\w\W]+$/,""),a=a.replace(/^[^\n]+\n/,"")):s=s||"标题",Da(e=Da(n="::: ".concat(i," ")).call(n,s,"\n")).call(e,a,"\n:::").replace(/\n{2,}:::/g,"\n:::"))}}]),n}(t_);function fO(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}function dO(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}function pO(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var gO={bold:n_,italic:i_,"|":o_,strikethrough:l_,sub:u_,sup:f_,header:y_,insert:w_,list:C_,ol:B_,ul:k_,checklist:I_,graph:D_,size:R_,h1:P_,h2:Q_,h3:j_,color:p_,quote:K_,quickTable:z_,togglePreview:V_,code:rw,codeTheme:aw,export:sw,settings:lw,fullScreen:X_,mobilePreview:hC,copy:lO,undo:Z_,redo:ew,underline:uw,switchModel:fw,image:pw,audio:mw,video:vw,br:_w,hr:Ew,formula:xw,link:Tw,table:Sw,toc:Lw,lineTable:Nw,barTable:Dw,pdf:Rw,word:Qw,ruby:jw,theme:Kw,file:Pw,panel:hO,justify:function(t){ca(n,t);var e=fO(n);function n(t){var r,i,a,o;return Ji(this,n),(o=e.call(this,t)).setName("justify","justify"),o.panelRule=KA().reg,o.subMenuConfig=[{iconName:"justifyLeft",name:"左对齐",onclick:Pa(r=o.bindSubClick).call(r,na(o),"left")},{iconName:"justifyCenter",name:"居中",onclick:Pa(i=o.bindSubClick).call(i,na(o),"center")},{iconName:"justifyRight",name:"右对齐",onclick:Pa(a=o.bindSubClick).call(a,na(o),"right")}],o}return ta(n,[{key:"$getTitle",value:function(){return" "}}]),n}(hO),detail:function(t){ca(n,t);var e=dO(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("detail","insertFlow"),r.detailRule=YA().reg,r}return ta(n,[{key:"onClick",value:function(t){var e,n=this,r=s_(this.editor.editor,t,"line",!0)||"点击展开更多\n内容\n++- 默认展开\n内容\n++ 默认收起\n内容";if(this.detailRule.lastIndex=0,this.detailRule.test(r)||this.getMoreSelection("+++ ","\n",(function(){var t=n.editor.editor.getSelection();n.detailRule.lastIndex=0;var e=n.detailRule.test(t);return!1!==e&&(r=t),!1!==e})),this.detailRule.lastIndex=0,this.detailRule.test(r))return this.detailRule.lastIndex=0,r.replace(this.detailRule,(function(t,e,n,r,i){var a;return Da(a="".concat(r,"\n")).call(a,i)}));(r=r.replace(/^\s+/,""),/\n/.test(r))||(r=Da(e="".concat(r,"\n")).call(e,r));return this.registerAfterClickCb((function(){n.setLessSelection("+++ ","\n")})),"+++ ".concat(r,"\n+++").replace(/\n{2,}\+\+\+/g,"\n+++")}}]),n}(t_),drawIo:function(t){ca(n,t);var e=pO(n);function n(t){var r;return Ji(this,n),(r=e.call(this,t)).setName("draw.io","draw.io"),r.noIcon=!0,r.drawioIframeUrl=t.options.drawioIframeUrl,r}return ta(n,[{key:"onClick",value:function(t){var e=this;if(!this.drawioIframeUrl)return t;if(this.hasCacheOnce()){var n,r=this.getAndCleanCacheOnce(),i=r.xmlData,a=r.base64,o=Da(n="](".concat(a,"){data-type=drawio data-xml=")).call(n,encodeURI(i),"}");return this.registerAfterClickCb((function(){e.setLessSelection("![",o)})),"".concat("![","在预览区点击图片重新编辑draw.io").concat(o)}return _b(this.drawioIframeUrl,"",(function(t){e.setCacheOnce(t),e.fire(null)})),this.updateMarkdown=!1,t}}]),n}(t_),chatgpt:sC},mO=function(){function t(e){Ji(this,t),this.toolbar=e,this.hooks={},this.allMenusName=[],this.level1MenusName=[],this.level2MenusName={},this.init()}return ta(t,[{key:"$newMenu",value:function(t){if(!this.hooks[t]){var e=this.toolbar.options,n=e.$cherry,r=e.customMenu;gO[t]?(this.allMenusName.push(t),this.hooks[t]=new gO[t](n)):null!=r&&r[t]&&(this.allMenusName.push(t),this.hooks[t]=new r[t](n))}}},{key:"init",value:function(){var t=this,e=this.toolbar.options.buttonConfig;ji(e).call(e,(function(e){if("string"==typeof e)t.level1MenusName.push(e),t.$newMenu(e);else if("object"===Ba(e)){var n=fn(e);if(1===n.length){var r,i=Jl(n,1)[0];t.level1MenusName.push(i),t.$newMenu(i),t.level2MenusName[i]=e[i],ji(r=e[i]).call(r,(function(e){t.$newMenu(e)}))}}}))}}]),t}(),yO=function(){function t(e){Ji(this,t),Fa(this,"toolbarHandlers",{}),this.menus={},this.shortcutKeyMap={},this.subMenus={},this.options={dom:document.createElement("div"),buttonConfig:["bold"],customMenu:[],buttonRightConfig:[]},Pc(this.options,e),this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.instanceId,this.menus=new mO(this),this.drawMenus(),this.init()}return ta(t,[{key:"init",value:function(){var t=this;this.collectShortcutKey(),this.collectToolbarHandler(),kA.on(this.instanceId,kA.Events.cleanAllSubMenus,(function(){return t.hideAllSubMenu()}))}},{key:"previewOnly",value:function(){this.options.dom.classList.add("preview-only"),kA.emit(this.instanceId,kA.Events.toolbarHide)}},{key:"showToolbar",value:function(){this.options.dom.classList.remove("preview-only"),kA.emit(this.instanceId,kA.Events.toolbarShow)}},{key:"isHasLevel2Menu",value:function(t){return this.menus.level2MenusName[t]}},{key:"isHasConfigMenu",value:function(t){return this.menus.hooks[t].subMenuConfig||[]}},{key:"isHasSubMenu",value:function(t){return Boolean(this.isHasLevel2Menu(t)||this.isHasConfigMenu(t).length>0)}},{key:"drawMenus",value:function(){var t,e,n=this,r=document.createDocumentFragment(),i=EA("div","toolbar-left");ji(t=this.menus.level1MenusName).call(t,(function(t){var e=n.menus.hooks[t].createBtn();e.addEventListener("click",(function(e){n.onClick(e,t)}),!1),n.isHasSubMenu(t)&&e.classList.add("cherry-toolbar-dropdown"),r.appendChild(e)})),i.appendChild(r),this.options.dom.appendChild(i),null!==(e=this.options.buttonRightConfig)&&void 0!==e&&e.length&&this.drawRightMenus(this.options.buttonRightConfig)}},{key:"drawRightMenus",value:function(t){var e,n=EA("div","toolbar-right"),r=document.createDocumentFragment(),i={options:{$cherry:this.$cherry,buttonConfig:t,customMenu:[]}},a=new mO(i);ji(e=a.level1MenusName).call(e,(function(t){var e=a.hooks[t].createBtn();e.addEventListener("click",(function(e){a.hooks[t].fire(e,t)}),!1),r.appendChild(e)})),n.appendChild(r),this.options.dom.appendChild(n)}},{key:"setSubMenuPosition",value:function(t,e){var n=t.getMenuPosition();e.style.left="".concat(n.left+n.width/2,"px"),e.style.top="".concat(n.top+n.height,"px"),e.style.position=t.positionModel}},{key:"drawSubMenus",value:function(t){var e=this;this.subMenus[t]=EA("div","cherry-dropdown",{name:t}),this.setSubMenuPosition(this.menus.hooks[t],this.subMenus[t]);var n=this.isHasLevel2Menu(t);n&&ji(n).call(n,(function(n){var r=e.menus.hooks[n];if(void 0!==r&&"function"==typeof r.createBtn){var i=r.createBtn(!0);r.dom=r.dom?r.dom:e.menus.hooks[t].dom,i.addEventListener("click",(function(t){return e.onClick(t,n,!0)}),!1),e.subMenus[t].appendChild(i)}}));var r=this.isHasConfigMenu(t);r.length>0&&ji(r).call(r,(function(n){var r=e.menus.hooks[t].createSubBtnByConfig(n);r.addEventListener("click",(function(){return e.hideAllSubMenu()}),!1),e.subMenus[t].appendChild(r)})),this.$cherry.wrapperDom.appendChild(this.subMenus[t])}},{key:"onClick",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.menus.hooks[e];r&&(this.isHasSubMenu(e)&&!n?this.toggleSubMenu(e):(this.hideAllSubMenu(),r.fire(t,e)))}},{key:"toggleSubMenu",value:function(t){if(!this.subMenus[t])return this.hideAllSubMenu(),this.drawSubMenus(t),void(this.subMenus[t].style.display="block");"none"===this.subMenus[t].style.display?(this.hideAllSubMenu(),this.subMenus[t].style.display="block",this.setSubMenuPosition(this.menus.hooks[t],this.subMenus[t])):this.subMenus[t].style.display="none"}},{key:"hideAllSubMenu",value:function(){var t;ji(t=this.$cherry.wrapperDom.querySelectorAll(".cherry-dropdown")).call(t,(function(t){t.style.display="none"}))}},{key:"collectShortcutKey",value:function(){var t,e=this;ji(t=this.menus.allMenusName).call(t,(function(t){var n;null===(n=e.menus.hooks[t].shortcutKeys)||void 0===n||ji(n).call(n,(function(n){e.shortcutKeyMap[n]=t}))}))}},{key:"collectToolbarHandler",value:function(){var t,e=this;this.toolbarHandlers=yd(t=this.menus.allMenusName).call(t,(function(t,n){var r=e.menus.hooks[n];return r?(t[n]=function(t,e){"function"==typeof e&&TA.warn("MenuBase#onClick param callback is no longer supported. Please register the callback via MenuBase#registerAfterClickCb instead."),r.fire.call(r,void 0,t)},t):t}),{})}},{key:"matchShortcutKey",value:function(t){return!!this.shortcutKeyMap[this.getCurrentKey(t)]}},{key:"fireShortcutKey",value:function(t){var e,n=this.getCurrentKey(t);null===(e=this.menus.hooks[this.shortcutKeyMap[n]])||void 0===e||e.fire(t,n)}},{key:"getCurrentKey",value:function(t){var e="";return t.ctrlKey&&(e+="Ctrl-"),t.altKey&&(e+="Alt-"),t.metaKey&&Xb&&(e+="Ctrl-"),t.shiftKey&&(e+="Shift-"),t.key&&"shift"!==t.key.toLowerCase()&&(e+=t.key.toLowerCase()),e}}]),t}();function vO(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var bO=function(t){ca(n,t);var e=vO(n);function n(){return Ji(this,n),e.apply(this,arguments)}return ta(n,[{key:"visible",get:function(){var t=window.getComputedStyle(this.bubbleDom);return"none"!==t.display&&"hidden"!==t.visibility},set:function(t){var e=window.getComputedStyle(this.bubbleDom);t?"none"===e.display&&(this.bubbleDom.style.display=n.displayType):"none"!==e.display&&(this.bubbleDom.style.display="none")}},{key:"init",value:function(){this.options.editor=this.$cherry.editor,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(){this.bubbleDom.style.display===n.displayType&&(this.bubbleDom.style.marginTop="".concat(vA(this.bubbleDom.dataset.scrollTop)-this.getScrollTop(),"px"))}},{key:"showBubble",value:function(t,e){this.visible||(this.visible=!0,this.bubbleDom.style.marginTop="0",this.bubbleDom.dataset.scrollTop=String(this.getScrollTop()));var n=this.editorDom.querySelector(".CodeMirror-lines").firstChild.getBoundingClientRect(),r=this.editorDom.getBoundingClientRect(),i=n.left-r.left,a=n.width+i,o=t;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 s=e-this.bubbleDom.offsetWidth/2;s<i?(s=i,this.$setBubbleCursorPosition("".concat(e-i,"px"))):s+this.bubbleDom.offsetWidth>a?(s=a-this.bubbleDom.offsetWidth,this.$setBubbleCursorPosition("".concat(e-s,"px"))):this.$setBubbleCursorPosition("50%"),this.bubbleDom.style.left="".concat(Math.max(20,s),"px")}},{key:"hideBubble",value:function(){this.visible=!1}},{key:"$setBubbleCursorPosition",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"50%";if("50%"===t)this.bubbleTop.style.left="50%",this.bubbleBottom.style.left="50%";else{var e=vA(t)<10?"10px":t;this.bubbleTop.style.left=e,this.bubbleBottom.style.left=e}}},{key:"initBubbleDom",value:function(){var t=document.createElement("div");t.className="cherry-bubble-top";var e=document.createElement("div");e.className="cherry-bubble-bottom",this.bubbleTop=t,this.bubbleBottom=e,this.bubbleDom.appendChild(t),this.bubbleDom.appendChild(e),this.visible=!1}},{key:"getBubbleDom",value:function(){return this.bubbleDom}},{key:"addSelectionChangeListener",value:function(){var t=this;this.options.editor.addListener("change",(function(e){t.hideBubble()})),this.options.editor.addListener("refresh",(function(e){t.hideBubble()})),this.options.editor.addListener("scroll",(function(e){t.updatePositionWhenScroll()})),this.options.editor.addListener("beforeSelectionChange",(function(e,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,i=1e6*n.ranges[0].head.line+n.ranges[0].head.ch,a="asc";r>i&&(a="desc"),Wa((function(){if(e.getSelections().join("").length<=0)t.hideBubble();else{var n=e.getWrapperElement().getElementsByClassName("CodeMirror-selected"),r=t.editorDom.getBoundingClientRect(),i=0,o=0;if("object"!==Ba(n)||n.length<=0)t.hideBubble();else{for(var s=0;s<n.length;s++){var c=n[s].getBoundingClientRect(),l=c.top-r.top;"asc"===a?l>=o&&(o=l,i=c.left-r.left+c.width/2):(l<=o||o<=0)&&(o=l,i=c.left-r.left+c.width/2)}t.showBubble(o,i)}}}),10)}))}}]),n}(yO);function _O(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}Fa(bO,"displayType","flex");var wO=function(t){ca(n,t);var e=_O(n);function n(){return Ji(this,n),e.apply(this,arguments)}return ta(n,[{key:"init",value:function(){this.editor=this.$cherry.editor,this.editorDom=this.editor.getEditorDom(),this.editorDom.querySelector(".CodeMirror-scroll").appendChild(this.options.dom),this.initAction()}},{key:"initAction",value:function(){var t=this;this.editor.addListener("cursorActivity",(function(e,n){t.cursorActivity(n,e)})),this.editor.addListener("update",(function(e,n){t.cursorActivity(n,e)})),this.editor.addListener("refresh",(function(e,n){Wa((function(){t.cursorActivity(n,e)}),0)}))}},{key:"update",value:function(t,e){var n=e.getCursor();if(this.isHidden(n.line,e))return this.options.dom.style.display="none",!1;this.options.dom.style.display="inline-block"}},{key:"cursorActivity",value:function(t,e){var n=e.getCursor(),r=document.querySelector(".cherry-editor .CodeMirror-lines");if(!r)return!1;var i=getComputedStyle(r),a=vA(i.paddingLeft),o=vA(i.paddingTop);if(this.isHidden(n.line,e))return this.options.dom.style.display="none",!1;this.options.dom.style.display="inline-block",this.options.dom.style.left="".concat(a,"px"),this.options.dom.style.top="".concat(this.getLineHeight(n.line,e)+o,"px")}},{key:"isHidden",value:function(t,e){return e.getSelections().length>1||(e.getSelection().length>0||!!e.getLine(t))}},{key:"getLineHeight",value:function(t,e){var n=0;return e.getDoc().eachLine(0,t,(function(t){n+=t.height})),n}}]),n}(yO);function EO(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}var CO=function(t){ca(n,t);var e=EO(n);function n(){return Ji(this,n),e.apply(this,arguments)}return ta(n)}(yO);function xO(t,e,n,r){if(t===e)return t?[[0,t]]:[];if(null!=n){var i=function(t,e,n){var r="number"==typeof n?{index:n,length:0}:n.oldRange,i="number"==typeof n?null:n.newRange,a=t.length,o=e.length;if(0===r.length&&(null===i||0===i.length)){var s=r.index,c=t.slice(0,s),l=t.slice(s),A=i?i.index:null,u=s+o-a;if((null===A||A===u)&&!(u<0||u>o)){var h=e.slice(0,u);if((v=e.slice(u))===l){var f=Math.min(s,u),d=c.slice(0,f),p=h.slice(0,f);if(d===p){var g=c.slice(f),m=h.slice(f);return NO(d,g,m,l)}}}if(null===A||A===s){var y=s,v=(h=e.slice(0,y),e.slice(y));if(h===c){var b=Math.min(a-y,o-y),_=l.slice(l.length-b),w=v.slice(v.length-b);if(_===w){g=l.slice(0,l.length-b),m=v.slice(0,v.length-b);return NO(c,g,m,_)}}}}if(r.length>0&&i&&0===i.length){d=t.slice(0,r.index),_=t.slice(r.index+r.length),f=d.length,b=_.length;if(!(o<f+b)){p=e.slice(0,f),w=e.slice(o-b);if(d===p&&_===w){g=t.slice(f,a-b),m=e.slice(f,o-b);return NO(d,g,m,_)}}}return null}(t,e,n);if(i)return i}var a=TO(t,e),o=t.substring(0,a);a=kO(t=t.substring(a),e=e.substring(a));var s=t.substring(t.length-a),c=function(t,e){var n;if(!t)return[[1,e]];if(!e)return[[-1,t]];var r=t.length>e.length?t:e,i=t.length>e.length?e:t,a=r.indexOf(i);if(-1!==a)return n=[[1,r.substring(0,a)],[0,i],[1,r.substring(a+i.length)]],t.length>e.length&&(n[0][0]=n[2][0]=-1),n;if(1===i.length)return[[-1,t],[1,e]];var o=function(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length<n.length)return null;function i(t,e,n){for(var r,i,a,o,s=t.substring(n,n+Math.floor(t.length/4)),c=-1,l="";-1!==(c=e.indexOf(s,c+1));){var A=TO(t.substring(n),e.substring(c)),u=kO(t.substring(0,n),e.substring(0,c));l.length<u+A&&(l=e.substring(c-u,c)+e.substring(c,c+A),r=t.substring(0,n-u),i=t.substring(n+A),a=e.substring(0,c-u),o=e.substring(c+A))}return 2*l.length>=t.length?[r,i,a,o,l]:null}var a,o,s,c,l,A=i(n,r,Math.ceil(n.length/4)),u=i(n,r,Math.ceil(n.length/2));if(!A&&!u)return null;a=u?A&&A[4].length>u[4].length?A:u:A;t.length>e.length?(o=a[0],s=a[1],c=a[2],l=a[3]):(c=a[0],l=a[1],o=a[2],s=a[3]);var h=a[4];return[o,s,c,l,h]}(t,e);if(o){var s=o[0],c=o[1],l=o[2],A=o[3],u=o[4],h=xO(s,l),f=xO(c,A);return h.concat([[0,u]],f)}return function(t,e){for(var n=t.length,r=e.length,i=Math.ceil((n+r)/2),a=i,o=2*i,s=new Array(o),c=new Array(o),l=0;l<o;l++)s[l]=-1,c[l]=-1;s[a+1]=0,c[a+1]=0;for(var A=n-r,u=A%2!=0,h=0,f=0,d=0,p=0,g=0;g<i;g++){for(var m=-g+h;m<=g-f;m+=2){for(var y=a+m,v=(C=m===-g||m!==g&&s[y-1]<s[y+1]?s[y+1]:s[y-1]+1)-m;C<n&&v<r&&t.charAt(C)===e.charAt(v);)C++,v++;if(s[y]=C,C>n)f+=2;else if(v>r)h+=2;else if(u){if((w=a+A-m)>=0&&w<o&&-1!==c[w]){var b=n-c[w];if(C>=b)return BO(t,e,C,v)}}}for(var _=-g+d;_<=g-p;_+=2){for(var w=a+_,E=(b=_===-g||_!==g&&c[w-1]<c[w+1]?c[w+1]:c[w-1]+1)-_;b<n&&E<r&&t.charAt(n-b-1)===e.charAt(r-E-1);)b++,E++;if(c[w]=b,b>n)p+=2;else if(E>r)d+=2;else if(!u){if((y=a+A-_)>=0&&y<o&&-1!==s[y]){var C=s[y];v=a+C-y;if(C>=(b=n-b))return BO(t,e,C,v)}}}}return[[-1,t],[1,e]]}(t,e)}(t=t.substring(0,t.length-a),e=e.substring(0,e.length-a));return o&&c.unshift([0,o]),s&&c.push([0,s]),function t(e,n){e.push([0,""]);var r,i=0,a=0,o=0,s="",c="";for(;i<e.length;)if(i<e.length-1&&!e[i][1])e.splice(i,1);else switch(e[i][0]){case 1:o++,c+=e[i][1],i++;break;case-1:a++,s+=e[i][1],i++;break;case 0:var l=i-o-a-1;if(n){if(l>=0&&FO(e[l][1])){var A=e[l][1].slice(-1);if(e[l][1]=e[l][1].slice(0,-1),s=A+s,c=A+c,!e[l][1]){e.splice(l,1),i--;var u=l-1;e[u]&&1===e[u][0]&&(o++,c=e[u][1]+c,u--),e[u]&&-1===e[u][0]&&(a++,s=e[u][1]+s,u--),l=u}}if(LO(e[i][1])){A=e[i][1].charAt(0);e[i][1]=e[i][1].slice(1),s+=A,c+=A}}if(i<e.length-1&&!e[i][1]){e.splice(i,1);break}if(s.length>0||c.length>0){s.length>0&&c.length>0&&(0!==(r=TO(c,s))&&(l>=0?e[l][1]+=c.substring(0,r):(e.splice(0,0,[0,c.substring(0,r)]),i++),c=c.substring(r),s=s.substring(r)),0!==(r=kO(c,s))&&(e[i][1]=c.substring(c.length-r)+e[i][1],c=c.substring(0,c.length-r),s=s.substring(0,s.length-r)));var h=o+a;0===s.length&&0===c.length?(e.splice(i-h,h),i-=h):0===s.length?(e.splice(i-h,h,[1,c]),i=i-h+1):0===c.length?(e.splice(i-h,h,[-1,s]),i=i-h+1):(e.splice(i-h,h,[-1,s],[1,c]),i=i-h+2)}0!==i&&0===e[i-1][0]?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,o=0,a=0,s="",c=""}""===e[e.length-1][1]&&e.pop();var f=!1;i=1;for(;i<e.length-1;)0===e[i-1][0]&&0===e[i+1][0]&&(e[i][1].substring(e[i][1].length-e[i-1][1].length)===e[i-1][1]?(e[i][1]=e[i-1][1]+e[i][1].substring(0,e[i][1].length-e[i-1][1].length),e[i+1][1]=e[i-1][1]+e[i+1][1],e.splice(i-1,1),f=!0):e[i][1].substring(0,e[i+1][1].length)==e[i+1][1]&&(e[i-1][1]+=e[i+1][1],e[i][1]=e[i][1].substring(e[i+1][1].length)+e[i+1][1],e.splice(i+1,1),f=!0)),i++;f&&t(e,n)}(c,r),c}function BO(t,e,n,r){var i=t.substring(0,n),a=e.substring(0,r),o=t.substring(n),s=e.substring(r),c=xO(i,a),l=xO(o,s);return c.concat(l)}function TO(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,a=0;n<i;)t.substring(a,i)==e.substring(a,i)?a=n=i:r=i,i=Math.floor((r-n)/2+n);return SO(t.charCodeAt(i-1))&&i--,i}function kO(t,e){if(!t||!e||t.slice(-1)!==e.slice(-1))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,a=0;n<i;)t.substring(t.length-i,t.length-a)==e.substring(e.length-i,e.length-a)?a=n=i:r=i,i=Math.floor((r-n)/2+n);return IO(t.charCodeAt(t.length-i))&&i--,i}function SO(t){return t>=55296&&t<=56319}function IO(t){return t>=56320&&t<=57343}function LO(t){return IO(t.charCodeAt(0))}function FO(t){return SO(t.charCodeAt(t.length-1))}function NO(t,e,n,r){return FO(t)||LO(r)?null:function(t){for(var e=[],n=0;n<t.length;n++)t[n][1].length>0&&e.push(t[n]);return e}([[0,t],[-1,e],[1,n],[0,r]])}function OO(t,e,n){return xO(t,e,n,!0)}OO.INSERT=1,OO.DELETE=-1,OO.EQUAL=0;var DO=OO;function MO(t,e,n){for(var r=DO(e,n),i=t,a=t,o=0;o<r.length;o++){var s=r[o];if(a<=0)return i;var c=s[0],l=s[1].length;switch(c){case DO.EQUAL:if(a<=l)return i;a-=l;break;case DO.DELETE:if(a<=l)return i-l+a;a-=l,i-=l;break;case DO.INSERT:i+=l}}return i}var RO=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t},UO=vs(Object.keys,Object),PO=Object.prototype.hasOwnProperty;var HO=function(t){if(!ws(t))return UO(t);var e=[];for(var n in Object(t))PO.call(t,n)&&"constructor"!=n&&e.push(n);return e};var QO=function(t){return Fs(t)?nc(t):HO(t)};var GO=function(t,e){return t&&Xs(e,QO(e),t)};var jO=function(t,e){return t&&Xs(e,oc(e),t)};var $O=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,a=[];++n<r;){var o=t[n];e(o,n,t)&&(a[i++]=o)}return a};var KO=function(){return[]},YO=Object.prototype.propertyIsEnumerable,zO=Object.getOwnPropertySymbols,WO=zO?function(t){return null==t?[]:(t=Object(t),$O(zO(t),(function(e){return YO.call(t,e)})))}:KO;var VO=function(t,e){return Xs(t,WO(t),e)};var qO=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t},XO=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)qO(e,WO(t)),t=bs(t);return e}:KO;var JO=function(t,e){return Xs(t,XO(t),e)};var ZO=function(t,e,n){var r=e(t);return Is(t)?r:qO(r,n(t))};var tD=function(t){return ZO(t,QO,WO)};var eD=function(t){return ZO(t,oc,XO)},nD=Uo(uo,"DataView"),rD=Uo(uo,"Promise"),iD=Uo(uo,"Set"),aD=Uo(uo,"WeakMap"),oD=So(nD),sD=So(Po),cD=So(rD),lD=So(iD),AD=So(aD),uD=wo;(nD&&"[object DataView]"!=uD(new nD(new ArrayBuffer(1)))||Po&&"[object Map]"!=uD(new Po)||rD&&"[object Promise]"!=uD(rD.resolve())||iD&&"[object Set]"!=uD(new iD)||aD&&"[object WeakMap]"!=uD(new aD))&&(uD=function(t){var e=wo(t),n="[object Object]"==e?t.constructor:void 0,r=n?So(n):"";if(r)switch(r){case oD:return"[object DataView]";case sD:return"[object Map]";case cD:return"[object Promise]";case lD:return"[object Set]";case AD:return"[object WeakMap]"}return e});var hD=uD,fD=Object.prototype.hasOwnProperty;var dD=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&fD.call(t,"index")&&(n.index=t.index,n.input=t.input),n};var pD=function(t,e){var n=e?ds(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)},gD=/\w*$/;var mD=function(t){var e=new t.constructor(t.source,gD.exec(t));return e.lastIndex=t.lastIndex,e},yD=ho?ho.prototype:void 0,vD=yD?yD.valueOf:void 0;var bD=function(t){return vD?Object(vD.call(t)):{}};var _D=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return ds(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return pD(t,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 ps(t,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return mD(t);case"[object Set]":return new r;case"[object Symbol]":return bD(t)}};var wD=function(t){return Cs(t)&&"[object Map]"==hD(t)},ED=Ks&&Ks.isMap,CD=ED?$s(ED):wD;var xD=function(t){return Cs(t)&&"[object Set]"==hD(t)},BD=Ks&&Ks.isSet,TD=BD?$s(BD):xD,kD={};kD["[object Arguments]"]=kD["[object Array]"]=kD["[object ArrayBuffer]"]=kD["[object DataView]"]=kD["[object Boolean]"]=kD["[object Date]"]=kD["[object Float32Array]"]=kD["[object Float64Array]"]=kD["[object Int8Array]"]=kD["[object Int16Array]"]=kD["[object Int32Array]"]=kD["[object Map]"]=kD["[object Number]"]=kD["[object Object]"]=kD["[object RegExp]"]=kD["[object Set]"]=kD["[object String]"]=kD["[object Symbol]"]=kD["[object Uint8Array]"]=kD["[object Uint8ClampedArray]"]=kD["[object Uint16Array]"]=kD["[object Uint32Array]"]=!0,kD["[object Error]"]=kD["[object Function]"]=kD["[object WeakMap]"]=!1;var SD=function t(e,n,r,i,a,o){var s,c=1&n,l=2&n,A=4&n;if(r&&(s=a?r(e,i,a,o):r(e)),void 0!==s)return s;if(!Eo(e))return e;var u=Is(e);if(u){if(s=dD(e),!c)return gs(e,s)}else{var h=hD(e),f="[object Function]"==h||"[object GeneratorFunction]"==h;if(Ds(e))return hs(e,c);if("[object Object]"==h||"[object Arguments]"==h||f&&!a){if(s=l||f?{}:Es(e),!c)return l?JO(e,jO(s,e)):VO(e,GO(s,e))}else{if(!kD[h])return a?e:{};s=_D(e,h,c)}}o||(o=new ss);var d=o.get(e);if(d)return d;o.set(e,s),TD(e)?e.forEach((function(i){s.add(t(i,n,r,i,e,o))})):CD(e)&&e.forEach((function(i,a){s.set(a,t(i,n,r,a,e,o))}));var p=u?void 0:(A?l?eD:tD:l?oc:QO)(e);return RO(p||e,(function(i,a){p&&(i=e[a=i]),qs(s,a,t(i,n,r,a,e,o))})),s};var ID=function(t){return SD(t,5)},LD={urlProcessor:function(t,e){return t},fileUpload:function(t,e){/video/i.test(t.type)?e("images/demo-dog.png",{name:"".concat(t.name.replace(/\.[^.]+$/,"")),poster:"images/demo-dog.png?poster=true",isBorder:!0,isShadow:!0,isRadius:!0}):e("images/demo-dog.png",{name:"".concat(t.name.replace(/\.[^.]+$/,"")),isShadow:!0})},afterChange:function(t,e){},afterInit:function(t,e){},beforeImageMounted:function(t,e){return{srcProp:t,src:e}},onClickPreview:function(t){},onCopyCode:function(t,e){return e},changeString2Pinyin:function(t){return t}},FD=ID({externals:{},openai:{apiKey:"",ignoreError:!1},engine:{global:{classicBr:!1,urlProcessor:LD.urlProcessor,htmlWhiteList:""},syntax:{link:{target:"",rel:""},autoLink:{target:"",rel:"",enableShortLink:!0,shortLinkLength:20},list:{listNested:!1,indentSpace:2},table:{enableChart:!1},inlineCode:{theme:"red"},codeBlock:{theme:"dark",wrap:!0,lineNumber:!0,copyCode:!0,customRenderer:{},mermaid:{svg2img:!1},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:{id:"code",name:"code",autoSave2Textarea:!1,theme:"default",height:"100%",defaultModel:"edit&preview",convertWhenPaste:!0,codemirror:{autofocus:!0},writingStyle:"normal"},toolbars:{theme:"dark",showToolbar:!0,toolbar:["bold","italic","strikethrough","|","color","header","ruby","|","list","panel","detail",{insert:["image","audio","video","link","hr","br","code","formula","toc","table","line-table","bar-table","pdf","word"]},"graph","settings"],toolbarRight:[],sidebar:[],bubble:["bold","italic","underline","strikethrough","sub","sup","quote","|","size","color"],float:["h1","h2","h3","|","checklist","quote","table","code"]},drawioIframeUrl:"",fileUpload:LD.fileUpload,fileTypeLimitMap:{video:"video/*",audio:"audio/*",image:"image/*",word:".doc,.docx",pdf:".pdf",file:"*"},callback:{afterChange:LD.afterChange,afterInit:LD.afterInit,beforeImageMounted:LD.beforeImageMounted,onClickPreview:LD.onClickPreview,onCopyCode:LD.onCopyCode,changeString2Pinyin:LD.changeString2Pinyin},previewer:{dom:!1,className:"cherry-markdown",enablePreviewerBubble:!0,lazyLoadImg:{loadingImgPath:"",maxNumPerTime:2,noLoadImgNum:5,autoLoadImgNum:5,maxTryTimesPerSrc:2,beforeLoadOneImgCallback:function(t){return!0},failLoadOneImgCallback:function(t){},afterLoadOneImgCallback:function(t){},afterLoadAllImgCallback:function(){}}},theme:[{className:"default",label:"默认"},{className:"dark",label:"暗黑"},{className:"light",label:"明亮"},{className:"green",label:"清新"},{className:"red",label:"热情"},{className:"violet",label:"淡雅"},{className:"blue",label:"清幽"}],isPreviewOnly:!1,autoScrollByCursor:!0,forceAppend:!0,locale:"zh_CN"}),ND={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:"导出",underline:"下划线",pinyin:"拼音",file:"文件",pastePlain:"粘贴为纯文本格式",pasteMarkdown:"粘贴为markdown格式",hide:"隐藏(ctrl+0)",exportToPdf:"导出PDF",exportScreenshot:"导出长图",exportMarkdownFile:"导出markdown",exportHTMLFile:"导出html",theme:"主题",panel:"面板",detail:"手风琴","H1 Heading":"H1 一级标题","H2 Heading":"H2 二级标题","H3 Heading":"H3 三级标题",complement:"续写",summary:"总结"},en_US:{bold:"Bold",code:"Code",graph:"Graph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",header:"Header",insert:"Insert",italic:"Italic",list:"List",quickTable:"Quick Table",quote:"Quote",size:"Size",color:"Text Color & Background",strikethrough:"Strikethrough",sub:"Sub",sup:"Sup",togglePreview:"Toggle Preview",fullScreen:"Full Screen",image:"Image",audio:"Audio",video:"Video",link:"Link",hr:"Horizontal Rule",br:"New Line",toc:"Table Of Content",pdf:"PDF",word:"Word",table:"Table","line-table":"Line Table","bar-table":"Bar Table",formula:"Formula",insertFormula:"Insert Formula",insertFlow:"Insert Flow",insertSeq:"Insert Seq",insertState:"Insert State",insertClass:"Insert Class",insertPie:"Insert Pie",insertGantt:"Insert Gantt",checklist:"Checklist",ol:"Ordered List",ul:"Unordered List",undo:"Undo",redo:"Redo",previewClose:"Preview Close",codeTheme:"Code Theme",switchModel:"Switch Model",switchPreview:"Switch Preview",switchEdit:"Switch Edit",classicBr:"Classic New Line",normalBr:"Normal New Line",settings:"Settings",mobilePreview:"Mobile Preview",copy:"Copy",export:"Export",underline:"Underline",pinyin:"Pinyin",pastePlain:"Paste as Plain Text",pasteMarkdown:"Paste as Markdown",hide:"Hide (ctrl+0)",exportToPdf:"Export to PDF",exportScreenshot:"Screenshot",exportMarkdownFile:"Export Markdown File",exportHTMLFile:"Export preview HTML File","H1 Heading":"H1 Heading","H2 Heading":"H1 Heading","H3 Heading":"H1 Heading",complement:"Complement",summary:"Summary"}};function OD(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}function DD(t,e,n){var r,i={};return ji(r=fn(t)).call(r,(function(r){-1!==Zl(e).call(e,r)&&("object"===Ba(n)?"string"==typeof n[r]?Ba(t[r])===n[r]&&(i[r]=t[r]):t[r]instanceof n[r]&&(i[r]=t[r]):"string"==typeof n&&Ba(t[r])===n&&(i[r]=t[r]))})),i}var MD={HOOKS_TYPE_LIST:hu},RD=[];Ed()||ji(RD).call(RD,(function(t){}));var UD=function(){function t(){Ji(this,t)}return ta(t,null,[{key:"usePlugin",value:function(e){var n;if(this===t)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!==e.$cherry$mounted){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];e.install.apply(e,Da(n=[this.config.defaults]).call(n,i)),e.$cherry$mounted=!0}}}]),t}();function PD(t,e){var n=fn(t);if(jr){var r=jr(t);e&&(r=Xr(r).call(r,(function(e){return ii(t,e).enumerable}))),n.push.apply(n,r)}return n}function HD(t){var e=function(){if("undefined"==typeof Reflect||!sn)return!1;if(sn.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(sn(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=La(t);if(e){var i=La(this).constructor;n=sn(r,arguments,i)}else n=r.apply(this,arguments);return Ta(this,n)}}Fa(UD,"createSyntaxHook",(function(t,e,n){var r,i=e===hu.PAR?nh:fu,a=DD(n,["beforeMakeHtml","makeHtml","afterMakeHtml","rule","test"],"function"),o={needCache:n.needCache,defaultCache:n.defaultCache};return Fa(r=function(t){ca(r,t);var n=OD(r);function r(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Ji(this,r),(t=e===hu.PAR?n.call(this,{needCache:!!o.needCache,defaultCache:o.defaultCache}):n.call(this)).config=i.config,Ta(t)}return ta(r,[{key:"beforeMakeHtml",value:function(){for(var t,e,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a.beforeMakeHtml?a.beforeMakeHtml.apply(this,i):(t=nd(La(r.prototype),"beforeMakeHtml",this)).call.apply(t,Da(e=[this]).call(e,i))}},{key:"makeHtml",value:function(){for(var t,e,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a.makeHtml?a.makeHtml.apply(this,i):(t=nd(La(r.prototype),"makeHtml",this)).call.apply(t,Da(e=[this]).call(e,i))}},{key:"afterMakeHtml",value:function(){for(var t,e,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a.afterMakeHtml?a.afterMakeHtml.apply(this,i):(t=nd(La(r.prototype),"afterMakeHtml",this)).call.apply(t,Da(e=[this]).call(e,i))}},{key:"test",value:function(){for(var t,e,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a.test?a.test.apply(this,i):(t=nd(La(r.prototype),"test",this)).call.apply(t,Da(e=[this]).call(e,i))}},{key:"rule",value:function(){for(var t,e,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return a.rule?a.rule.apply(this,i):(t=nd(La(r.prototype),"rule",this)).call.apply(t,Da(e=[this]).call(e,i))}}]),r}(i),"HOOK_NAME",t),r})),Fa(UD,"createMenuHook",(function(t,e){var n=DD(e,["subMenuConfig","onClick","shortcutKeys","iconName"],{subMenuConfig:Array,onClick:"function",shortcutKeys:Array,iconName:"string"});return function(e){ca(i,e);var r=OD(i);function i(e){var a;return Ji(this,i),a=r.call(this,e),n.iconName||(a.noIcon=!0),a.setName(t,n.iconName),a.subMenuConfig=n.subMenuConfig||[],a}return ta(i,[{key:"onClick",value:function(){for(var t,e,r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n.onClick?n.onClick.apply(this,a):(t=nd(La(i.prototype),"onClick",this)).call.apply(t,Da(e=[this]).call(e,a))}},{key:"shortcutKeys",get:function(){return n.shortcutKeys?n.shortcutKeys:[]}}]),i}(t_)})),Fa(UD,"constants",MD),Fa(UD,"VERSION","0.8.21");var QD=function(t){ca(n,t);var e=HD(n);function n(t){var r,i;Ji(this,n),i=e.call(this),n.initialized=!0;var a,o=ID(n.config.defaults);return i.defaultToolbar=o.toolbars.toolbar,zh(t,Object),i.options=bc({},o,t,wu),i.locale=ND[i.options.locale],"function"==typeof i.options.engine.global.urlProcessor&&(i.options.engine.global.urlProcessor=(a=i.options.engine.global.urlProcessor,function(t,e){if(Qf.isInnerLink(t)){var n=a(Qf.get(t),e);return Qf.replace(t,n)}return a(t,e)})),i.status={toolbar:"show",previewer:"show",editor:"show"},(i.options.isPreviewOnly||"previewOnly"===i.options.editor.defaultModel)&&(i.options.toolbars.showToolbar=!1,i.options.editor.defaultModel="previewOnly",i.status.editor="hide",i.status.toolbar="hide"),i.instanceId=Da(r="cherry-".concat((new Date).getTime())).call(r,Math.random()),i.options.instanceId=i.instanceId,i.engine=new ig(i.options,na(i)),i.init(),i}return ta(n,[{key:"init",value:function(){var t,e=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(),i=this.createEditor(),a=this.createPreviewer();!1!==this.options.toolbars.showToolbar&&!1!==this.options.toolbars.toolbar||(r.classList.add("cherry--no-toolbar"),this.options.toolbars.toolbar=this.defaultToolbar),zh(this.options.toolbars.toolbar,Array),this.toolbar=this.createToolbar();var o=document.createDocumentFragment();o.appendChild(this.toolbar.options.dom),o.appendChild(i.options.editorDom),this.createSidebar(o),this.options.previewer.dom||o.appendChild(a.options.previewerDom),o.appendChild(a.options.virtualDragLineDom),o.appendChild(a.options.editorMaskDom),o.appendChild(a.options.previewerMaskDom),r.appendChild(o),n.appendChild(r),i.init(a),this.createBubble(),this.createFloatMenu(),a.init(i),a.registerAfterUpdate(Pa(t=this.engine.mounted).call(t,this.engine)),this.initText(i.editor),this.switchModel(this.options.editor.defaultModel),kA.on(this.instanceId,kA.Events.toolbarHide,(function(){e.status.toolbar="hide"})),kA.on(this.instanceId,kA.Events.toolbarShow,(function(){e.status.toolbar="show"})),kA.on(this.instanceId,kA.Events.previewerClose,(function(){e.status.previewer="hide"})),kA.on(this.instanceId,kA.Events.previewerOpen,(function(){e.status.previewer="show"})),kA.on(this.instanceId,kA.Events.editorClose,(function(){e.status.editor="hide",e.previewer.highlightLine(0)})),kA.on(this.instanceId,kA.Events.editorOpen,(function(){e.status.editor="show"}))}},{key:"switchModel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"edit&preview";switch(t){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 t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.previewer.getValue(t)}},{key:"getPreviewer",value:function(){return this.previewer}},{key:"getToc",value:function(){var t=this.getHtml(),e=[];return t.replace(/<h([1-6]).*?id="([^"]+?)".*?>(.+?)<\/h[0-6]>/g,(function(t,n,r,i){return e.push({level:+n,id:r,text:i}),t})),e}},{key:"setValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!1===e)return this.editor.editor.setValue(t);var n=this.editor.editor,r=this.getValue(),i=n.getDoc().indexFromPos(n.getCursor()),a=MO(i,r,t),o=n.setValue(t),s=n.getDoc().posFromIndex(a);return n.setCursor(s),o}},{key:"insert",value:function(t){var e=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 i=this.editor.editor.replaceSelection(t,e?"around":"end");return r&&this.editor.editor.focus(),i}},{key:"insertValue",value:function(t){var e=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(t,e,n,r)}},{key:"refreshPreviewer",value:function(){try{var t=this.getValue(),e=this.engine.makeHtml(t);this.previewer.refresh(e)}catch(t){throw new qh(t)}}},{key:"setMarkdown",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.setValue(t,e)}},{key:"createWrapper",value:function(){var t="dark"===this.options.toolbars.theme?"dark":"",e=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=EA("div",["cherry","clearfix",Tu(!0)].join(" "),{"data-toolbarTheme":t,"data-inlineCodeTheme":e,"data-codeBlockTheme":n});return this.wrapperDom=r,r}},{key:"createToolbar",value:function(){var t=EA("div","cherry-toolbar");return this.toolbar=new yO({dom:t,$cherry:this,buttonRightConfig:this.options.toolbars.toolbarRight,buttonConfig:this.options.toolbars.toolbar,customMenu:this.options.toolbars.customMenu}),this.toolbar}},{key:"createSidebar",value:function(t){if(this.options.toolbars.sidebar){zh(this.options.toolbars.sidebar,Array);var e="dark"===this.options.toolbars.theme?"dark":"",n=EA("div","cherry-sidebar ".concat(e));this.sidebar=new CO({dom:n,$cherry:this,buttonConfig:this.options.toolbars.sidebar,customMenu:this.options.toolbars.customMenu}),t.appendChild(this.sidebar.options.dom)}}},{key:"createFloatMenu",value:function(){if(this.options.toolbars.float){var t=EA("div","cherry-floatmenu");zh(this.options.toolbars.float,Array),this.floatMenu=new wO({dom:t,$cherry:this,buttonConfig:this.options.toolbars.float,customMenu:this.options.toolbars.customMenu})}}},{key:"createBubble",value:function(){if(this.options.toolbars.bubble){var t=EA("div","cherry-bubble");zh(this.options.toolbars.bubble,Array),this.bubble=new bO({dom:t,$cherry:this,buttonConfig:this.options.toolbars.bubble,customMenu:this.options.toolbars.customMenu,engine:this.engine})}}},{key:"createEditor",value:function(){var t,e,n,r,i=EA("textarea","",{id:null!==(t=this.options.editor.id)&&void 0!==t?t:"code",name:null!==(e=this.options.editor.name)&&void 0!==e?e:"code"});i.textContent=this.options.value;var a=EA("div","cherry-editor");return a.appendChild(i),this.editor=new JA(function(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?ji(n=PD(Object(i),!0)).call(n,(function(e){Fa(t,e,i[e])})):Yi?Wi(t,Yi(i)):ji(r=PD(Object(i))).call(r,(function(e){Xi(t,e,ii(i,e))}))}return t}({$cherry:this,editorDom:a,wrapperDom:this.wrapperDom,value:this.options.value,onKeydown:Pa(n=this.fireShortcutKey).call(n,this),onChange:Pa(r=this.editText).call(r,this),toolbars:this.options.toolbars,fileUpload:this.options.fileUpload,autoScrollByCursor:this.options.autoScrollByCursor},this.options.editor)),this.editor}},{key:"createPreviewer",value:function(){var t,e="autonumber"===(this.options.engine.syntax.header&&this.options.engine.syntax.header.anchorStyle||"default")?" head-num":"",n=this.options.previewer,r=n.className,i=n.dom,a=n.enablePreviewerBubble,o=["cherry-previewer cherry-markdown",r||"",e,Tu(!0)].join(" ");i?(t=i).className+=" ".concat(o):t=EA("div",o);var s=EA("div","cherry-drag"),c=EA("div","cherry-editor-mask"),l=EA("div","cherry-previewer-mask");return this.previewer=new Qb({$cherry:this,virtualDragLineDom:s,editorMaskDom:c,previewerMaskDom:l,previewerDom:t,value:this.options.value,isPreviewOnly:this.options.isPreviewOnly,enablePreviewerBubble:a,lazyLoadImg:this.options.previewer.lazyLoadImg}),this.previewer}},{key:"initText",value:function(t){try{var e=t.getValue(),n=this.engine.makeHtml(e);this.previewer.update(n),this.options.callback.afterInit&&this.options.callback.afterInit(e,n)}catch(t){throw new qh(t)}}},{key:"editText",value:function(t,e){var n=this;try{this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=Wa((function(){var t=e.getValue(),r=n.engine.makeHtml(t);n.previewer.update(r),n.options.callback.afterChange&&n.options.callback.afterChange(t,r),e.scrollIntoView(null)}),50)}catch(t){throw new qh(t)}}},{key:"onChange",value:function(t){this.editor.editor.on("change",(function(e){t({markdown:e.getValue()})}))}},{key:"fireShortcutKey",value:function(t){this.toolbar.matchShortcutKey(t)&&(t.preventDefault(),this.toolbar.fireShortcutKey(t))}},{key:"export",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pdf",e=arguments.length>1?arguments[1]:void 0;this.previewer.export(t,e)}},{key:"setTheme",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";ku(this,t)}},{key:"setWritingStyle",value:function(t){this.editor.setWritingStyle(t)}}]),n}(UD);function GD(t,e){var n=fn(t);if(jr){var r=jr(t);e&&(r=Xr(r).call(r,(function(e){return ii(t,e).enumerable}))),n.push.apply(n,r)}return n}function jD(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?ji(n=GD(Object(i),!0)).call(n,(function(e){Fa(t,e,i[e])})):Yi?Wi(t,Yi(i)):ji(r=GD(Object(i))).call(r,(function(e){Xi(t,e,ii(i,e))}))}return t}Fa(QD,"initialized",!1),Fa(QD,"config",{defaults:FD}),window&&(window.Cherry=QD);var $D={theme:"default",altFontFamily:"sans-serif",fontFamily:"sans-serif",themeCSS:".label foreignObject { font-size: 90%; overflow: visible; } .label { font-family: sans-serif; }",flowchart:{useMaxWidth:!1},sequence:{useMaxWidth:!1},startOnLoad:!1,logLevel:5},KD=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ji(this,t),Fa(this,"mermaidAPIRefs",null),Fa(this,"options",$D),Fa(this,"dom",null),Fa(this,"mermaidCanvas",null);var n=e.mermaid,r=e.mermaidAPI;if(!(r||window.mermaidAPI||n&&n.mermaidAPI||window.mermaid&&window.mermaid.mermaidAPI))throw new Error("code-block-mermaid-plugin[init]: Package mermaid or mermaidAPI not found.");this.options=jD(jD({},$D),e||{}),this.mermaidAPIRefs=r||window.mermaidAPI||n.mermaidAPI||window.mermaid.mermaidAPI,delete this.options.mermaid,delete this.options.mermaidAPI,this.mermaidAPIRefs.initialize(this.options)}return ta(t,[{key:"mountMermaidCanvas",value:function(t){this.mermaidCanvas&&document.body.contains(this.mermaidCanvas)||(this.mermaidCanvas=document.createElement("div"),this.mermaidCanvas.style="width:1024px;opacity:0;position:fixed;top:100%;",(t.$cherry.wrapperDom||document.body).appendChild(this.mermaidCanvas))}},{key:"convertMermaidSvgToImg",value:function(t,e){var n,r=new DOMParser,i=function(t){return t.replace("<svg ",'<svg style="max-width:100%;height:auto;font-family:sans-serif;" ')};try{var a=r.parseFromString(t,"image/svg+xml"),o=a.documentElement;if("svg"===o.tagName.toLowerCase()){o.style.maxWidth="100%",o.style.height="auto",o.style.fontFamily="sans-serif";var s,c=document.getElementById(e).getBBox();if(o.hasAttribute("viewBox"))c=o.viewBox.baseVal;else o.setAttribute("viewBox",Da(s="0 0 ".concat(c.width," ")).call(s,c.height));if("100%"===o.getAttribute("width")&&o.setAttribute("width","".concat(c.width)),"100%"===o.getAttribute("height")&&o.setAttribute("height","".concat(c.height)),n=a.documentElement.outerHTML,this.svg2img){var l,A="data:image/svg+xml,".concat(encodeURIComponent(a.documentElement.outerHTML));n=Da(l='<img class="svg-img" src="'.concat(A,'" alt="')).call(l,e,'" />')}}else n=i(t)}catch(e){n=i(t)}return n}},{key:"render",value:function(t,e,n){var r,i,a,o=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=e;c||(c=Math.round(1e8*Math.random())),this.mountMermaidCanvas(n);var l=Da(r="mermaid-".concat(c,"-")).call(r,(new Date).getTime());this.svg2img=null!==(i=null==s?void 0:s.svg2img)&&void 0!==i&&i;try{this.mermaidAPIRefs.render(l,t,(function(t){var e=t.replace(/\s*markerUnits="0"/g,"").replace(/\s*x="NaN"/g,"").replace(/<br>/g,"<br/>");a=o.convertMermaidSvgToImg(e,l)}),this.mermaidCanvas)}catch(t){return null==t?void 0:t.str}return a}}],[{key:"install",value:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];bc(e,{engine:{syntax:{codeBlock:{customRenderer:{mermaid:$h(t,r)}}}}})}}]),t}();Fa(KD,"TYPE","figure");var YD=function(){var t,e,n,r,i,a,o,s,c,l,A,u,h,f,d,p,g,m,y,v,b,_,w,E,C,x,B,T,k,S,I,L,F,N,O,D,M,R,U,P,H,Q,G,j,$,K,Y,z,W,V,q,X,J,Z,tt,et=lA(5),nt=null;function rt(){this.fc=0,this.dl=0}function it(){this.dyn_tree=null,this.static_tree=null,this.extra_bits=null,this.extra_base=0,this.elems=0,this.max_length=0,this.max_code=0}function at(t,e,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r}function ot(){this.next=null,this.len=0,this.ptr=new Array(8192),this.off=0}var st=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],ct=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],lt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],At=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ut=[new at(0,0,0,0),new at(4,4,8,4),new at(4,5,16,8),new at(4,6,32,32),new at(4,4,16,16),new at(8,16,32,32),new at(8,16,128,128),new at(8,32,128,256),new at(32,128,258,1024),new at(32,258,258,4096)];function ht(e){e.next=t,t=e}function ft(t){return A[32768+t]}function dt(t,e){return A[32768+t]=e}function pt(r){nt[a+i++]=r,a+i==8192&&function(){if(0!=i){var r,o;for(null!=t?(s=t,t=t.next):s=new ot,s.next=null,s.len=s.off=0,r=s,null==e?e=n=r:n=n.next=r,r.len=i-a,o=0;o<r.len;o++)r.ptr[o]=nt[a+o];i=a=0}var s}()}function gt(t){t&=65535,a+i<8190?(nt[a+i++]=255&t,nt[a+i++]=t>>>8):(pt(255&t),pt(t>>>8))}function mt(){d=8191&(d<<et^255&s[b+3-1]),p=ft(d),A[32767&b]=p,dt(d,b)}function yt(t,e){Mt(e[t].fc,e[t].dl)}function vt(t){return 255&(t<256?G[t]:G[256+(t>>7)])}function bt(t,e,n){return t[e].fc<t[n].fc||t[e].fc==t[n].fc&&H[e]<=H[n]}function _t(t,e,n){var r;for(r=0;r<n&&tt<Z.length;r++)t[e+r]=255&Z.charCodeAt(tt++);return r}function wt(t){var e,n,r=C,i=b,a=v,o=b>32506?b-32506:0,c=b+258,l=s[i+a-1],u=s[i+a];v>=T&&(r>>=2);do{if(s[(e=t)+a]==u&&s[e+a-1]==l&&s[e]==s[i]&&s[++e]==s[i+1]){i+=2,e++;do{}while(s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&i<c);if(n=258-(c-i),i=c-258,n>a){if(_=t,a=n,n>=258)break;l=s[i+a-1],u=s[i+a]}}}while((t=A[32767&t])>o&&0!=--r);return a}function Et(){var t,e,n=65536-E-b;if(-1==n)n--;else if(b>=65274){for(t=0;t<32768;t++)s[t]=s[t+32768];for(_-=32768,b-=32768,f-=32768,t=0;t<8192;t++)dt(t,(e=ft(t))>=32768?e-32768:0);for(t=0;t<32768;t++)e=A[t],A[t]=e>=32768?e-32768:0;n+=32768}w||((t=_t(s,b+E,n))<=0?w=!0:E+=t)}function Ct(){w||(u=0,h=0,function(){var t,e,n,r,i;if(0!=L[0].dl)return;for(N.dyn_tree=k,N.static_tree=I,N.extra_bits=st,N.extra_base=257,N.elems=286,N.max_length=15,N.max_code=0,O.dyn_tree=S,O.static_tree=L,O.extra_bits=ct,O.extra_base=0,O.elems=30,O.max_length=15,O.max_code=0,D.dyn_tree=F,D.static_tree=null,D.extra_bits=lt,D.extra_base=0,D.elems=19,D.max_length=7,D.max_code=0,n=0,r=0;r<28;r++)for(j[r]=n,t=0;t<1<<st[r];t++)Q[n++]=r;for(Q[n-1]=r,i=0,r=0;r<16;r++)for($[r]=i,t=0;t<1<<ct[r];t++)G[i++]=r;for(i>>=7;r<30;r++)for($[r]=i<<7,t=0;t<1<<ct[r]-7;t++)G[256+i++]=r;for(e=0;e<=15;e++)M[e]=0;t=0;for(;t<=143;)I[t++].dl=8,M[8]++;for(;t<=255;)I[t++].dl=9,M[9]++;for(;t<=279;)I[t++].dl=7,M[7]++;for(;t<=287;)I[t++].dl=8,M[8]++;for(St(I,287),t=0;t<30;t++)L[t].dl=5,L[t].fc=Rt(t,5);Tt()}(),function(){var t;for(t=0;t<8192;t++)A[32768+t]=0;if(x=ut[B].max_lazy,T=ut[B].good_length,C=ut[B].max_chain,b=0,f=0,(E=_t(s,0,65536))<=0)return w=!0,void(E=0);for(w=!1;E<262&&!w;)Et();for(d=0,t=0;t<2;t++)d=8191&(d<<et^255&s[t])}(),e=null,i=0,a=0,B<=3?(v=2,y=0):(y=2,m=0),o=!1)}function xt(t,n,i){var a;return r||(Ct(),r=!0,0!=E)?(a=Bt(t,n,i))==i?i:o?a:(B<=3?function(){for(;0!=E&&null==e;){var t;if(mt(),0!=p&&b-p<=32506&&(y=wt(p))>E&&(y=E),y>=3)if(t=Ot(b-_,y-3),E-=y,y<=x){y--;do{b++,mt()}while(0!=--y);b++}else b+=y,y=0,d=8191&((d=255&s[b])<<et^255&s[b+1]);else t=Ot(0,255&s[b]),E--,b++;for(t&&(Nt(0),f=b);E<262&&!w;)Et()}}():function(){for(;0!=E&&null==e;){if(mt(),v=y,g=_,y=2,0!=p&&v<x&&b-p<=32506&&((y=wt(p))>E&&(y=E),3==y&&b-_>4096&&y--),v>=3&&y<=v){var t;t=Ot(b-1-g,v-3),E-=v-1,v-=2;do{b++,mt()}while(0!=--v);m=0,y=2,b++,t&&(Nt(0),f=b)}else 0!=m?(Ot(0,255&s[b-1])&&(Nt(0),f=b),b++,E--):(m=1,b++,E--);for(;E<262&&!w;)Et()}}(),0==E&&(0!=m&&Ot(0,255&s[b-1]),Nt(1),o=!0),a+Bt(t,a+n,i-a)):(o=!0,0)}function Bt(t,n,r){var o,s,c;for(o=0;null!=e&&o<r;){for((s=r-o)>e.len&&(s=e.len),c=0;c<s;c++)t[n+o+c]=e.ptr[e.off+c];var l;if(e.off+=s,e.len-=s,o+=s,0==e.len)l=e,e=e.next,ht(l)}if(o==r)return o;if(a<i){for((s=r-o)>i-a&&(s=i-a),c=0;c<s;c++)t[n+o+c]=nt[a+c];o+=s,i==(a+=s)&&(i=a=0)}return o}function Tt(){var t;for(t=0;t<286;t++)k[t].fc=0;for(t=0;t<30;t++)S[t].fc=0;for(t=0;t<19;t++)F[t].fc=0;k[256].fc=1,X=J=0,Y=z=W=0,V=0,q=1}function kt(t,e){for(var n=R[e],r=e<<1;r<=U&&(r<U&&bt(t,R[r+1],R[r])&&r++,!bt(t,n,R[r]));)R[e]=R[r],e=r,r<<=1;R[e]=n}function St(t,e){var n,r,i=new Array(16),a=0;for(n=1;n<=15;n++)a=a+M[n-1]<<1,i[n]=a;for(r=0;r<=e;r++){var o=t[r].dl;0!=o&&(t[r].fc=Rt(i[o]++,o))}}function It(t){var e,n,r=t.dyn_tree,i=t.static_tree,a=t.elems,o=-1,s=a;for(U=0,P=573,e=0;e<a;e++)0!=r[e].fc?(R[++U]=o=e,H[e]=0):r[e].dl=0;for(;U<2;){var c=R[++U]=o<2?++o:0;r[c].fc=1,H[c]=0,X--,null!=i&&(J-=i[c].dl)}for(t.max_code=o,e=U>>1;e>=1;e--)kt(r,e);do{e=R[1],R[1]=R[U--],kt(r,1),n=R[1],R[--P]=e,R[--P]=n,r[s].fc=r[e].fc+r[n].fc,H[e]>H[n]+1?H[s]=H[e]:H[s]=H[n]+1,r[e].dl=r[n].dl=s,R[1]=s++,kt(r,1)}while(U>=2);R[--P]=R[1],function(t){var e,n,r,i,a,o,s=t.dyn_tree,c=t.extra_bits,l=t.extra_base,A=t.max_code,u=t.max_length,h=t.static_tree,f=0;for(i=0;i<=15;i++)M[i]=0;for(s[R[P]].dl=0,e=P+1;e<573;e++)(i=s[s[n=R[e]].dl].dl+1)>u&&(i=u,f++),s[n].dl=i,n>A||(M[i]++,a=0,n>=l&&(a=c[n-l]),o=s[n].fc,X+=o*(i+a),null!=h&&(J+=o*(h[n].dl+a)));if(0!=f){do{for(i=u-1;0==M[i];)i--;M[i]--,M[i+1]+=2,M[u]--,f-=2}while(f>0);for(i=u;0!=i;i--)for(n=M[i];0!=n;)(r=R[--e])>A||(s[r].dl!=i&&(X+=(i-s[r].dl)*s[r].fc,s[r].fc=i),n--)}}(t),St(r,o)}function Lt(t,e){var n,r,i=-1,a=t[0].dl,o=0,s=7,c=4;for(0==a&&(s=138,c=3),t[e+1].dl=65535,n=0;n<=e;n++)r=a,a=t[n+1].dl,++o<s&&r==a||(o<c?F[r].fc+=o:0!=r?(r!=i&&F[r].fc++,F[16].fc++):o<=10?F[17].fc++:F[18].fc++,o=0,i=r,0==a?(s=138,c=3):r==a?(s=6,c=3):(s=7,c=4))}function Ft(t,e){var n,r,i=-1,a=t[0].dl,o=0,s=7,c=4;for(0==a&&(s=138,c=3),n=0;n<=e;n++)if(r=a,a=t[n+1].dl,!(++o<s&&r==a)){if(o<c)do{yt(r,F)}while(0!=--o);else 0!=r?(r!=i&&(yt(r,F),o--),yt(16,F),Mt(o-3,2)):o<=10?(yt(17,F),Mt(o-3,3)):(yt(18,F),Mt(o-11,7));o=0,i=r,0==a?(s=138,c=3):r==a?(s=6,c=3):(s=7,c=4)}}function Nt(t){var e,n,r,i,a;if(i=b-f,K[W]=V,It(N),It(O),r=function(){var t;for(Lt(k,N.max_code),Lt(S,O.max_code),It(D),t=18;t>=3&&0==F[At[t]].dl;t--);return X+=3*(t+1)+5+5+4,t}(),(n=J+3+7>>3)<=(e=X+3+7>>3)&&(e=n),i+4<=e&&f>=0)for(Mt(0+t,3),Ut(),gt(i),gt(~i),a=0;a<i;a++)pt(s[f+a]);else n==e?(Mt(2+t,3),Dt(I,L)):(Mt(4+t,3),function(t,e,n){var r;for(Mt(t-257,5),Mt(e-1,5),Mt(n-4,4),r=0;r<n;r++)Mt(F[At[r]].dl,3);Ft(k,t-1),Ft(S,e-1)}(N.max_code+1,O.max_code+1,r+1),Dt(k,S));Tt(),0!=t&&Ut()}function Ot(t,e){if(l[Y++]=e,0==t?k[e].fc++:(t--,k[Q[e]+256+1].fc++,S[vt(t)].fc++,c[z++]=t,V|=q),q<<=1,0==(7&Y)&&(K[W++]=V,V=0,q=1),B>2&&0==(4095&Y)){var n,r=8*Y,i=b-f;for(n=0;n<30;n++)r+=S[n].fc*(5+ct[n]);if(r>>=3,z<lA(Y/2)&&r<lA(i/2))return!0}return 8191==Y||8192==z}function Dt(t,e){var n,r,i,a,o=0,s=0,A=0,u=0;if(0!=Y)do{0==(7&o)&&(u=K[A++]),r=255&l[o++],0==(1&u)?yt(r,t):(yt((i=Q[r])+256+1,t),0!=(a=st[i])&&Mt(r-=j[i],a),yt(i=vt(n=c[s++]),e),0!=(a=ct[i])&&Mt(n-=$[i],a)),u>>=1}while(o<Y);yt(256,t)}function Mt(t,e){h>16-e?(gt(u|=t<<h),u=t>>16-h,h+=e-16):(u|=t<<h,h+=e)}function Rt(t,e){var n=0;do{n|=1&t,t>>=1,n<<=1}while(--e>0);return n>>1}function Ut(){h>8?gt(u):h>0&&pt(u),u=0,h=0}return function(i,a){var o,u;Z=i,tt=0,void 0===a&&(a=6),function(i){var a;if(i?i<1?i=1:i>9&&(i=9):i=6,B=i,r=!1,w=!1,null==nt){for(t=e=n=null,nt=new Array(8192),s=new Array(65536),c=new Array(8192),l=new Array(32832),A=new Array(65536),k=new Array(573),a=0;a<573;a++)k[a]=new rt;for(S=new Array(61),a=0;a<61;a++)S[a]=new rt;for(I=new Array(288),a=0;a<288;a++)I[a]=new rt;for(L=new Array(30),a=0;a<30;a++)L[a]=new rt;for(F=new Array(39),a=0;a<39;a++)F[a]=new rt;N=new it,O=new it,D=new it,M=new Array(16),R=new Array(573),H=new Array(573),Q=new Array(256),G=new Array(512),j=new Array(29),$=new Array(30),K=new Array(lA(1024))}}(a);for(var h=new Array(1024),f=[];(o=xt(h,0,h.length))>0;){var d=new Array(o);for(u=0;u<o;u++)d[u]=String.fromCharCode(h[u]);f[f.length]=d.join("")}return Z=null,f.join("")}}();function zD(t,e){var n=fn(t);if(jr){var r=jr(t);e&&(r=Xr(r).call(r,(function(e){return ii(t,e).enumerable}))),n.push.apply(n,r)}return n}function WD(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?ji(n=zD(Object(i),!0)).call(n,(function(e){Fa(t,e,i[e])})):Yi?Wi(t,Yi(i)):ji(r=zD(Object(i))).call(r,(function(e){Xi(t,e,ii(i,e))}))}return t}function VD(t,e,n){var r=(3&t)<<4|e>>4,i=(15&e)<<2|n>>6,a=63&n,o="";return o+=qD(63&t>>2),o+=qD(63&r),o+=qD(63&i),o+=qD(63&a)}function qD(t){var e=t;return e<10?String.fromCharCode(48+e):(e-=10)<26?String.fromCharCode(65+e):(e-=26)<26?String.fromCharCode(97+e):0===(e-=26)?"-":1===e?"_":"?"}function XD(t,e){var n,r=unescape(encodeURIComponent(t));return Da(n="".concat(e,"/svg/")).call(n,function(t){for(var e="",n=0;n<t.length;n+=3)n+2===t.length?e+=VD(t.charCodeAt(n),t.charCodeAt(n+1),0):n+1===t.length?e+=VD(t.charCodeAt(n),0,0):e+=VD(t.charCodeAt(n),t.charCodeAt(n+1),t.charCodeAt(n+2));return e}(YD(r,9)))}var JD=function(){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ji(this,t);var r="http://www.plantuml.com/plantuml";this.baseUrl=null!==(e=n.baseUrl)&&void 0!==e?e:r}return ta(t,[{key:"render",value:function(t,e){var n,r,i=e;i||(i=Math.round(1e8*Math.random()));var a=Da(n="plantuml-".concat(i,"-")).call(n,(new Date).getTime());return Da(r='<img id="'.concat(a,'" src="')).call(r,XD(t,this.baseUrl),'" />')}}],[{key:"install",value:function(e,n){var r;bc(e,{engine:{syntax:{codeBlock:{customRenderer:{plantuml:new t(WD(WD({},n),null!==(r=e.engine.syntax.plantuml)&&void 0!==r?r:{}))}}}}})}}]),t}(),ZD={2536:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,6],n=[1,7],r=[1,8],i=[1,9],a=[1,16],o=[1,11],s=[1,12],l=[1,13],A=[1,14],u=[1,15],h=[1,27],f=[1,33],d=[1,34],p=[1,35],g=[1,36],m=[1,37],y=[1,72],v=[1,73],b=[1,74],_=[1,75],w=[1,76],E=[1,77],C=[1,78],x=[1,38],B=[1,39],T=[1,40],k=[1,41],S=[1,42],I=[1,43],L=[1,44],F=[1,45],N=[1,46],O=[1,47],D=[1,48],M=[1,49],R=[1,50],U=[1,51],P=[1,52],H=[1,53],Q=[1,54],G=[1,55],j=[1,56],$=[1,57],K=[1,59],Y=[1,60],z=[1,61],W=[1,62],V=[1,63],q=[1,64],X=[1,65],J=[1,66],Z=[1,67],tt=[1,68],et=[1,69],nt=[24,52],rt=[24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],it=[15,24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],at=[1,94],ot=[1,95],st=[1,96],ct=[1,97],lt=[15,24,52],At=[7,8,9,10,18,22,25,26,27,28],ut=[15,24,43,52],ht=[15,24,43,52,86,87,89,90],ft=[15,43],dt=[44,46,47,48,49,50,51,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],pt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,C4_CONTEXT:22,statements:23,EOF:24,C4_CONTAINER:25,C4_COMPONENT:26,C4_DYNAMIC:27,C4_DEPLOYMENT:28,otherStatements:29,diagramStatements:30,otherStatement:31,title:32,accDescription:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,boundaryStatement:39,boundaryStartStatement:40,boundaryStopStatement:41,boundaryStart:42,LBRACE:43,ENTERPRISE_BOUNDARY:44,attributes:45,SYSTEM_BOUNDARY:46,BOUNDARY:47,CONTAINER_BOUNDARY:48,NODE:49,NODE_L:50,NODE_R:51,RBRACE:52,diagramStatement:53,PERSON:54,PERSON_EXT:55,SYSTEM:56,SYSTEM_DB:57,SYSTEM_QUEUE:58,SYSTEM_EXT:59,SYSTEM_EXT_DB:60,SYSTEM_EXT_QUEUE:61,CONTAINER:62,CONTAINER_DB:63,CONTAINER_QUEUE:64,CONTAINER_EXT:65,CONTAINER_EXT_DB:66,CONTAINER_EXT_QUEUE:67,COMPONENT:68,COMPONENT_DB:69,COMPONENT_QUEUE:70,COMPONENT_EXT:71,COMPONENT_EXT_DB:72,COMPONENT_EXT_QUEUE:73,REL:74,BIREL:75,REL_U:76,REL_D:77,REL_L:78,REL_R:79,REL_B:80,REL_INDEX:81,UPDATE_EL_STYLE:82,UPDATE_REL_STYLE:83,UPDATE_LAYOUT_CONFIG:84,attribute:85,STR:86,STR_KEY:87,STR_VALUE:88,ATTRIBUTE:89,ATTRIBUTE_EMPTY:90,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"C4_CONTEXT",24:"EOF",25:"C4_CONTAINER",26:"C4_COMPONENT",27:"C4_DYNAMIC",28:"C4_DEPLOYMENT",32:"title",33:"accDescription",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",43:"LBRACE",44:"ENTERPRISE_BOUNDARY",46:"SYSTEM_BOUNDARY",47:"BOUNDARY",48:"CONTAINER_BOUNDARY",49:"NODE",50:"NODE_L",51:"NODE_R",52:"RBRACE",54:"PERSON",55:"PERSON_EXT",56:"SYSTEM",57:"SYSTEM_DB",58:"SYSTEM_QUEUE",59:"SYSTEM_EXT",60:"SYSTEM_EXT_DB",61:"SYSTEM_EXT_QUEUE",62:"CONTAINER",63:"CONTAINER_DB",64:"CONTAINER_QUEUE",65:"CONTAINER_EXT",66:"CONTAINER_EXT_DB",67:"CONTAINER_EXT_QUEUE",68:"COMPONENT",69:"COMPONENT_DB",70:"COMPONENT_QUEUE",71:"COMPONENT_EXT",72:"COMPONENT_EXT_DB",73:"COMPONENT_EXT_QUEUE",74:"REL",75:"BIREL",76:"REL_U",77:"REL_D",78:"REL_L",79:"REL_R",80:"REL_B",81:"REL_INDEX",82:"UPDATE_EL_STYLE",83:"UPDATE_REL_STYLE",84:"UPDATE_LAYOUT_CONFIG",86:"STR",87:"STR_KEY",88:"STR_VALUE",89:"ATTRIBUTE",90:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[11,4],[11,4],[11,4],[11,4],[23,1],[23,1],[23,2],[29,1],[29,2],[29,3],[31,1],[31,1],[31,2],[31,2],[31,1],[39,3],[40,3],[40,3],[40,4],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[41,1],[30,1],[30,2],[30,3],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,1],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[45,1],[45,2],[85,1],[85,2],[85,1],[85,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 4:r.setDirection("TB");break;case 5:r.setDirection("BT");break;case 6:r.setDirection("RL");break;case 7:r.setDirection("LR");break;case 11:a[s],r.parseDirective("%%{","open_directive");break;case 12:break;case 13:a[s]=a[s].trim().replace(/'/g,'"'),a[s],r.parseDirective(a[s],"arg_directive");break;case 14:a[s],r.parseDirective("}%%","close_directive","c4Context");break;case 15:case 16:case 17:case 18:case 19:r.setC4Type(a[s-3]);break;case 26:r.setTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 27:r.setAccDescription(a[s].substring(15)),this.$=a[s].substring(15);break;case 28:this.$=a[s].trim(),r.setTitle(this.$);break;case 29:case 30:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 35:case 36:a[s-1],JSON.stringify(a[s]),a[s].splice(2,0,"ENTERPRISE"),r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 37:a[s-1],JSON.stringify(a[s]),r.addPersonOrSystemBoundary(...a[s]),this.$=a[s];break;case 38:a[s-1],JSON.stringify(a[s]),a[s].splice(2,0,"CONTAINER"),r.addContainerBoundary(...a[s]),this.$=a[s];break;case 39:a[s-1],JSON.stringify(a[s]),r.addDeploymentNode("node",...a[s]),this.$=a[s];break;case 40:a[s-1],JSON.stringify(a[s]),r.addDeploymentNode("nodeL",...a[s]),this.$=a[s];break;case 41:a[s-1],JSON.stringify(a[s]),r.addDeploymentNode("nodeR",...a[s]),this.$=a[s];break;case 42:r.popBoundaryParseStack();break;case 46:a[s-1],JSON.stringify(a[s]),r.addPersonOrSystem("person",...a[s]),this.$=a[s];break;case 47:a[s-1],JSON.stringify(a[s]),r.addPersonOrSystem("external_person",...a[s]),this.$=a[s];break;case 48:a[s-1],JSON.stringify(a[s]),r.addPersonOrSystem("system",...a[s]),this.$=a[s];break;case 49:a[s-1],JSON.stringify(a[s]),r.addPersonOrSystem("system_db",...a[s]),this.$=a[s];break;case 50:a[s-1],JSON.stringify(a[s]),r.addPersonOrSystem("system_queue",...a[s]),this.$=a[s];break;case 51:a[s-1],JSON.stringify(a[s]),r.addPersonOrSystem("external_system",...a[s]),this.$=a[s];break;case 52:a[s-1],JSON.stringify(a[s]),r.addPersonOrSystem("external_system_db",...a[s]),this.$=a[s];break;case 53:a[s-1],JSON.stringify(a[s]),r.addPersonOrSystem("external_system_queue",...a[s]),this.$=a[s];break;case 54:a[s-1],JSON.stringify(a[s]),r.addContainer("container",...a[s]),this.$=a[s];break;case 55:a[s-1],JSON.stringify(a[s]),r.addContainer("container_db",...a[s]),this.$=a[s];break;case 56:a[s-1],JSON.stringify(a[s]),r.addContainer("container_queue",...a[s]),this.$=a[s];break;case 57:a[s-1],JSON.stringify(a[s]),r.addContainer("external_container",...a[s]),this.$=a[s];break;case 58:a[s-1],JSON.stringify(a[s]),r.addContainer("external_container_db",...a[s]),this.$=a[s];break;case 59:a[s-1],JSON.stringify(a[s]),r.addContainer("external_container_queue",...a[s]),this.$=a[s];break;case 60:a[s-1],JSON.stringify(a[s]),r.addComponent("component",...a[s]),this.$=a[s];break;case 61:a[s-1],JSON.stringify(a[s]),r.addComponent("component_db",...a[s]),this.$=a[s];break;case 62:a[s-1],JSON.stringify(a[s]),r.addComponent("component_queue",...a[s]),this.$=a[s];break;case 63:a[s-1],JSON.stringify(a[s]),r.addComponent("external_component",...a[s]),this.$=a[s];break;case 64:a[s-1],JSON.stringify(a[s]),r.addComponent("external_component_db",...a[s]),this.$=a[s];break;case 65:a[s-1],JSON.stringify(a[s]),r.addComponent("external_component_queue",...a[s]),this.$=a[s];break;case 67:a[s-1],JSON.stringify(a[s]),r.addRel("rel",...a[s]),this.$=a[s];break;case 68:a[s-1],JSON.stringify(a[s]),r.addRel("birel",...a[s]),this.$=a[s];break;case 69:a[s-1],JSON.stringify(a[s]),r.addRel("rel_u",...a[s]),this.$=a[s];break;case 70:a[s-1],JSON.stringify(a[s]),r.addRel("rel_d",...a[s]),this.$=a[s];break;case 71:a[s-1],JSON.stringify(a[s]),r.addRel("rel_l",...a[s]),this.$=a[s];break;case 72:a[s-1],JSON.stringify(a[s]),r.addRel("rel_r",...a[s]),this.$=a[s];break;case 73:a[s-1],JSON.stringify(a[s]),r.addRel("rel_b",...a[s]),this.$=a[s];break;case 74:a[s-1],JSON.stringify(a[s]),a[s].splice(0,1),r.addRel("rel",...a[s]),this.$=a[s];break;case 75:a[s-1],JSON.stringify(a[s]),r.updateElStyle("update_el_style",...a[s]),this.$=a[s];break;case 76:a[s-1],JSON.stringify(a[s]),r.updateRelStyle("update_rel_style",...a[s]),this.$=a[s];break;case 77:a[s-1],JSON.stringify(a[s]),r.updateLayoutConfig("update_layout_config",...a[s]),this.$=a[s];break;case 78:a[s],this.$=[a[s]];break;case 79:a[s-1],a[s].unshift(a[s-1]),this.$=a[s];break;case 80:case 82:this.$=a[s].trim();break;case 81:a[s-1],a[s];let t={};t[a[s-1].trim()]=a[s].trim(),this.$=t;break;case 83:this.$=""}},table:[{3:1,4:2,5:3,6:4,7:e,8:n,9:r,10:i,11:5,12:10,18:a,22:o,25:s,26:l,27:A,28:u},{1:[3]},{1:[2,1]},{1:[2,2]},{3:17,4:2,5:3,6:4,7:e,8:n,9:r,10:i,11:5,12:10,18:a,22:o,25:s,26:l,27:A,28:u},{1:[2,8]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{1:[2,7]},{13:18,19:[1,19]},{15:[1,20]},{15:[1,21]},{15:[1,22]},{15:[1,23]},{15:[1,24]},{19:[2,11]},{1:[2,3]},{14:25,16:[1,26],21:h},t([16,21],[2,12]),{23:28,29:29,30:30,31:31,32:f,33:d,34:p,36:g,38:m,39:58,40:70,42:71,44:y,46:v,47:b,48:_,49:w,50:E,51:C,53:32,54:x,55:B,56:T,57:k,58:S,59:I,60:L,61:F,62:N,63:O,64:D,65:M,66:R,67:U,68:P,69:H,70:Q,71:G,72:j,73:$,74:K,75:Y,76:z,77:W,78:V,79:q,80:X,81:J,82:Z,83:tt,84:et},{23:79,29:29,30:30,31:31,32:f,33:d,34:p,36:g,38:m,39:58,40:70,42:71,44:y,46:v,47:b,48:_,49:w,50:E,51:C,53:32,54:x,55:B,56:T,57:k,58:S,59:I,60:L,61:F,62:N,63:O,64:D,65:M,66:R,67:U,68:P,69:H,70:Q,71:G,72:j,73:$,74:K,75:Y,76:z,77:W,78:V,79:q,80:X,81:J,82:Z,83:tt,84:et},{23:80,29:29,30:30,31:31,32:f,33:d,34:p,36:g,38:m,39:58,40:70,42:71,44:y,46:v,47:b,48:_,49:w,50:E,51:C,53:32,54:x,55:B,56:T,57:k,58:S,59:I,60:L,61:F,62:N,63:O,64:D,65:M,66:R,67:U,68:P,69:H,70:Q,71:G,72:j,73:$,74:K,75:Y,76:z,77:W,78:V,79:q,80:X,81:J,82:Z,83:tt,84:et},{23:81,29:29,30:30,31:31,32:f,33:d,34:p,36:g,38:m,39:58,40:70,42:71,44:y,46:v,47:b,48:_,49:w,50:E,51:C,53:32,54:x,55:B,56:T,57:k,58:S,59:I,60:L,61:F,62:N,63:O,64:D,65:M,66:R,67:U,68:P,69:H,70:Q,71:G,72:j,73:$,74:K,75:Y,76:z,77:W,78:V,79:q,80:X,81:J,82:Z,83:tt,84:et},{23:82,29:29,30:30,31:31,32:f,33:d,34:p,36:g,38:m,39:58,40:70,42:71,44:y,46:v,47:b,48:_,49:w,50:E,51:C,53:32,54:x,55:B,56:T,57:k,58:S,59:I,60:L,61:F,62:N,63:O,64:D,65:M,66:R,67:U,68:P,69:H,70:Q,71:G,72:j,73:$,74:K,75:Y,76:z,77:W,78:V,79:q,80:X,81:J,82:Z,83:tt,84:et},{15:[1,83]},{17:84,20:[1,85]},{15:[2,14]},{24:[1,86]},t(nt,[2,20],{53:32,39:58,40:70,42:71,30:87,44:y,46:v,47:b,48:_,49:w,50:E,51:C,54:x,55:B,56:T,57:k,58:S,59:I,60:L,61:F,62:N,63:O,64:D,65:M,66:R,67:U,68:P,69:H,70:Q,71:G,72:j,73:$,74:K,75:Y,76:z,77:W,78:V,79:q,80:X,81:J,82:Z,83:tt,84:et}),t(nt,[2,21]),t(rt,[2,23],{15:[1,88]}),t(nt,[2,43],{15:[1,89]}),t(it,[2,26]),t(it,[2,27]),{35:[1,90]},{37:[1,91]},t(it,[2,30]),{45:92,85:93,86:at,87:ot,89:st,90:ct},{45:98,85:93,86:at,87:ot,89:st,90:ct},{45:99,85:93,86:at,87:ot,89:st,90:ct},{45:100,85:93,86:at,87:ot,89:st,90:ct},{45:101,85:93,86:at,87:ot,89:st,90:ct},{45:102,85:93,86:at,87:ot,89:st,90:ct},{45:103,85:93,86:at,87:ot,89:st,90:ct},{45:104,85:93,86:at,87:ot,89:st,90:ct},{45:105,85:93,86:at,87:ot,89:st,90:ct},{45:106,85:93,86:at,87:ot,89:st,90:ct},{45:107,85:93,86:at,87:ot,89:st,90:ct},{45:108,85:93,86:at,87:ot,89:st,90:ct},{45:109,85:93,86:at,87:ot,89:st,90:ct},{45:110,85:93,86:at,87:ot,89:st,90:ct},{45:111,85:93,86:at,87:ot,89:st,90:ct},{45:112,85:93,86:at,87:ot,89:st,90:ct},{45:113,85:93,86:at,87:ot,89:st,90:ct},{45:114,85:93,86:at,87:ot,89:st,90:ct},{45:115,85:93,86:at,87:ot,89:st,90:ct},{45:116,85:93,86:at,87:ot,89:st,90:ct},t(lt,[2,66]),{45:117,85:93,86:at,87:ot,89:st,90:ct},{45:118,85:93,86:at,87:ot,89:st,90:ct},{45:119,85:93,86:at,87:ot,89:st,90:ct},{45:120,85:93,86:at,87:ot,89:st,90:ct},{45:121,85:93,86:at,87:ot,89:st,90:ct},{45:122,85:93,86:at,87:ot,89:st,90:ct},{45:123,85:93,86:at,87:ot,89:st,90:ct},{45:124,85:93,86:at,87:ot,89:st,90:ct},{45:125,85:93,86:at,87:ot,89:st,90:ct},{45:126,85:93,86:at,87:ot,89:st,90:ct},{45:127,85:93,86:at,87:ot,89:st,90:ct},{30:128,39:58,40:70,42:71,44:y,46:v,47:b,48:_,49:w,50:E,51:C,53:32,54:x,55:B,56:T,57:k,58:S,59:I,60:L,61:F,62:N,63:O,64:D,65:M,66:R,67:U,68:P,69:H,70:Q,71:G,72:j,73:$,74:K,75:Y,76:z,77:W,78:V,79:q,80:X,81:J,82:Z,83:tt,84:et},{15:[1,130],43:[1,129]},{45:131,85:93,86:at,87:ot,89:st,90:ct},{45:132,85:93,86:at,87:ot,89:st,90:ct},{45:133,85:93,86:at,87:ot,89:st,90:ct},{45:134,85:93,86:at,87:ot,89:st,90:ct},{45:135,85:93,86:at,87:ot,89:st,90:ct},{45:136,85:93,86:at,87:ot,89:st,90:ct},{45:137,85:93,86:at,87:ot,89:st,90:ct},{24:[1,138]},{24:[1,139]},{24:[1,140]},{24:[1,141]},t(At,[2,9]),{14:142,21:h},{21:[2,13]},{1:[2,15]},t(nt,[2,22]),t(rt,[2,24],{31:31,29:143,32:f,33:d,34:p,36:g,38:m}),t(nt,[2,44],{29:29,30:30,31:31,53:32,39:58,40:70,42:71,23:144,32:f,33:d,34:p,36:g,38:m,44:y,46:v,47:b,48:_,49:w,50:E,51:C,54:x,55:B,56:T,57:k,58:S,59:I,60:L,61:F,62:N,63:O,64:D,65:M,66:R,67:U,68:P,69:H,70:Q,71:G,72:j,73:$,74:K,75:Y,76:z,77:W,78:V,79:q,80:X,81:J,82:Z,83:tt,84:et}),t(it,[2,28]),t(it,[2,29]),t(lt,[2,46]),t(ut,[2,78],{85:93,45:145,86:at,87:ot,89:st,90:ct}),t(ht,[2,80]),{88:[1,146]},t(ht,[2,82]),t(ht,[2,83]),t(lt,[2,47]),t(lt,[2,48]),t(lt,[2,49]),t(lt,[2,50]),t(lt,[2,51]),t(lt,[2,52]),t(lt,[2,53]),t(lt,[2,54]),t(lt,[2,55]),t(lt,[2,56]),t(lt,[2,57]),t(lt,[2,58]),t(lt,[2,59]),t(lt,[2,60]),t(lt,[2,61]),t(lt,[2,62]),t(lt,[2,63]),t(lt,[2,64]),t(lt,[2,65]),t(lt,[2,67]),t(lt,[2,68]),t(lt,[2,69]),t(lt,[2,70]),t(lt,[2,71]),t(lt,[2,72]),t(lt,[2,73]),t(lt,[2,74]),t(lt,[2,75]),t(lt,[2,76]),t(lt,[2,77]),{41:147,52:[1,148]},{15:[1,149]},{43:[1,150]},t(ft,[2,35]),t(ft,[2,36]),t(ft,[2,37]),t(ft,[2,38]),t(ft,[2,39]),t(ft,[2,40]),t(ft,[2,41]),{1:[2,16]},{1:[2,17]},{1:[2,18]},{1:[2,19]},{15:[1,151]},t(rt,[2,25]),t(nt,[2,45]),t(ut,[2,79]),t(ht,[2,81]),t(lt,[2,31]),t(lt,[2,42]),t(dt,[2,32]),t(dt,[2,33],{15:[1,152]}),t(At,[2,10]),t(dt,[2,34])],defaultActions:{2:[2,1],3:[2,2],5:[2,8],6:[2,4],7:[2,5],8:[2,6],9:[2,7],16:[2,11],17:[2,3],27:[2,14],85:[2,13],86:[2,15],138:[2,16],139:[2,17],140:[2,18],141:[2,19]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,A=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,_,w,E,C,x,B,T,k,S={};;){if(w=n[n.length-1],this.defaultActions[w]?E=this.defaultActions[w]:(null==b&&(b=v()),E=o[w]&&o[w][b]),void 0===E||!E.length||!E[0]){var I="";for(x in k=[],o[w])this.terminals_[x]&&x>u&&k.push("'"+this.terminals_[x]+"'");I=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:k})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(E[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(E[1]),b=null,_?(b=_,_=null):(l=d.yyleng,s=d.yytext,c=d.yylineno,m=d.yylloc,A>0&&A--);break;case 2:if(B=this.productions_[E[1]][1],S.$=i[i.length-B],S._$={first_line:a[a.length-(B||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(B||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(B||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(S,[s,l,c,p.yy,E[1],i,a].concat(f))))return C;B&&(n=n.slice(0,-1*B*2),i=i.slice(0,-1*B),a=a.slice(0,-1*B)),n.push(this.productions_[E[1]][0]),i.push(S.$),a.push(S._$),T=o[n[n.length-2]][n[n.length-1]],n.push(T);break;case 3:return!0}}return!0}},gt={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:return 32;case 10:return 33;case 11:return this.begin("acc_title"),34;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),36;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:case 21:break;case 19:c;break;case 20:return 15;case 22:return 22;case 23:return 25;case 24:return 26;case 25:return 27;case 26:return 28;case 27:return this.begin("person_ext"),55;case 28:return this.begin("person"),54;case 29:return this.begin("system_ext_queue"),61;case 30:return this.begin("system_ext_db"),60;case 31:return this.begin("system_ext"),59;case 32:return this.begin("system_queue"),58;case 33:return this.begin("system_db"),57;case 34:return this.begin("system"),56;case 35:return this.begin("boundary"),47;case 36:return this.begin("enterprise_boundary"),44;case 37:return this.begin("system_boundary"),46;case 38:return this.begin("container_ext_queue"),67;case 39:return this.begin("container_ext_db"),66;case 40:return this.begin("container_ext"),65;case 41:return this.begin("container_queue"),64;case 42:return this.begin("container_db"),63;case 43:return this.begin("container"),62;case 44:return this.begin("container_boundary"),48;case 45:return this.begin("component_ext_queue"),73;case 46:return this.begin("component_ext_db"),72;case 47:return this.begin("component_ext"),71;case 48:return this.begin("component_queue"),70;case 49:return this.begin("component_db"),69;case 50:return this.begin("component"),68;case 51:case 52:return this.begin("node"),49;case 53:return this.begin("node_l"),50;case 54:return this.begin("node_r"),51;case 55:return this.begin("rel"),74;case 56:return this.begin("birel"),75;case 57:case 58:return this.begin("rel_u"),76;case 59:case 60:return this.begin("rel_d"),77;case 61:case 62:return this.begin("rel_l"),78;case 63:case 64:return this.begin("rel_r"),79;case 65:return this.begin("rel_b"),80;case 66:return this.begin("rel_index"),81;case 67:return this.begin("update_el_style"),82;case 68:return this.begin("update_rel_style"),83;case 69:return this.begin("update_layout_config"),84;case 70:return"EOF_IN_STRUCT";case 71:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 72:this.begin("attribute");break;case 73:this.popState(),this.popState();break;case 74:return 90;case 75:break;case 76:return 90;case 77:this.begin("string");break;case 78:this.popState();break;case 79:return"STR";case 80:this.begin("string_kv");break;case 81:return this.begin("string_kv_key"),"STR_KEY";case 82:this.popState(),this.begin("string_kv_value");break;case 83:return"STR_VALUE";case 84:this.popState(),this.popState();break;case 85:return"STR";case 86:return"LBRACE";case 87:return"RBRACE";case 88:return"SPACE";case 89:return"EOL";case 90:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},string_kv_value:{rules:[83,84],inclusive:!1},string_kv_key:{rules:[82],inclusive:!1},string_kv:{rules:[81],inclusive:!1},string:{rules:[78,79],inclusive:!1},attribute:{rules:[73,74,75,76,77,80,85],inclusive:!1},update_layout_config:{rules:[70,71,72,73],inclusive:!1},update_rel_style:{rules:[70,71,72,73],inclusive:!1},update_el_style:{rules:[70,71,72,73],inclusive:!1},rel_b:{rules:[70,71,72,73],inclusive:!1},rel_r:{rules:[70,71,72,73],inclusive:!1},rel_l:{rules:[70,71,72,73],inclusive:!1},rel_d:{rules:[70,71,72,73],inclusive:!1},rel_u:{rules:[70,71,72,73],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[70,71,72,73],inclusive:!1},node_r:{rules:[70,71,72,73],inclusive:!1},node_l:{rules:[70,71,72,73],inclusive:!1},node:{rules:[70,71,72,73],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[70,71,72,73],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[70,71,72,73],inclusive:!1},component_ext:{rules:[70,71,72,73],inclusive:!1},component_queue:{rules:[70,71,72,73],inclusive:!1},component_db:{rules:[70,71,72,73],inclusive:!1},component:{rules:[70,71,72,73],inclusive:!1},container_boundary:{rules:[70,71,72,73],inclusive:!1},container_ext_queue:{rules:[],inclusive:!1},container_ext_db:{rules:[70,71,72,73],inclusive:!1},container_ext:{rules:[70,71,72,73],inclusive:!1},container_queue:{rules:[70,71,72,73],inclusive:!1},container_db:{rules:[70,71,72,73],inclusive:!1},container:{rules:[70,71,72,73],inclusive:!1},birel:{rules:[70,71,72,73],inclusive:!1},system_boundary:{rules:[70,71,72,73],inclusive:!1},enterprise_boundary:{rules:[70,71,72,73],inclusive:!1},boundary:{rules:[70,71,72,73],inclusive:!1},system_ext_queue:{rules:[70,71,72,73],inclusive:!1},system_ext_db:{rules:[70,71,72,73],inclusive:!1},system_ext:{rules:[70,71,72,73],inclusive:!1},system_queue:{rules:[70,71,72,73],inclusive:!1},system_db:{rules:[70,71,72,73],inclusive:!1},system:{rules:[70,71,72,73],inclusive:!1},person_ext:{rules:[70,71,72,73],inclusive:!1},person:{rules:[70,71,72,73],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,86,87,88,89,90],inclusive:!0}}};function mt(){this.yy={}}return pt.lexer=gt,mt.prototype=pt,pt.Parser=mt,new mt}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(t[0],process.exit(1));var r=n(555).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},1362:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,3],n=[1,7],r=[1,8],i=[1,9],a=[1,10],o=[1,13],s=[1,12],c=[1,16,25],l=[1,20],A=[1,31],u=[1,32],h=[1,33],f=[1,35],d=[1,38],p=[1,36],g=[1,37],m=[1,39],y=[1,40],v=[1,41],b=[1,42],_=[1,45],w=[1,46],E=[1,47],C=[1,48],x=[16,25],B=[1,62],T=[1,63],k=[1,64],S=[1,65],I=[1,66],L=[1,67],F=[1,68],N=[16,25,32,44,45,53,56,57,58,59,60,61,62,67,69],O=[16,25,30,32,44,45,49,53,56,57,58,59,60,61,62,67,69,84,85,86,87],D=[5,8,9,10,11,16,19,23,25],M=[53,84,85,86,87],R=[53,61,62,84,85,86,87],U=[53,56,57,58,59,60,84,85,86,87],P=[16,25,32],H=[1,100],Q={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statments:5,direction:6,directive:7,direction_tb:8,direction_bt:9,direction_rl:10,direction_lr:11,graphConfig:12,openDirective:13,typeDirective:14,closeDirective:15,NEWLINE:16,":":17,argDirective:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,CLASS_DIAGRAM:23,statements:24,EOF:25,statement:26,className:27,alphaNumToken:28,classLiteralName:29,GENERICTYPE:30,relationStatement:31,LABEL:32,classStatement:33,methodStatement:34,annotationStatement:35,clickStatement:36,cssClassStatement:37,acc_title:38,acc_title_value:39,acc_descr:40,acc_descr_value:41,acc_descr_multiline_value:42,CLASS:43,STYLE_SEPARATOR:44,STRUCT_START:45,members:46,STRUCT_STOP:47,ANNOTATION_START:48,ANNOTATION_END:49,MEMBER:50,SEPARATOR:51,relation:52,STR:53,relationType:54,lineType:55,AGGREGATION:56,EXTENSION:57,COMPOSITION:58,DEPENDENCY:59,LOLLIPOP:60,LINE:61,DOTTED_LINE:62,CALLBACK:63,LINK:64,LINK_TARGET:65,CLICK:66,CALLBACK_NAME:67,CALLBACK_ARGS:68,HREF:69,CSSCLASS:70,commentToken:71,textToken:72,graphCodeTokens:73,textNoTagsToken:74,TAGSTART:75,TAGEND:76,"==":77,"--":78,PCT:79,DEFAULT:80,SPACE:81,MINUS:82,keywords:83,UNICODE_TEXT:84,NUM:85,ALPHA:86,BQUOTE_STR:87,$accept:0,$end:1},terminals_:{2:"error",5:"statments",8:"direction_tb",9:"direction_bt",10:"direction_rl",11:"direction_lr",16:"NEWLINE",17:":",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",23:"CLASS_DIAGRAM",25:"EOF",30:"GENERICTYPE",32:"LABEL",38:"acc_title",39:"acc_title_value",40:"acc_descr",41:"acc_descr_value",42:"acc_descr_multiline_value",43:"CLASS",44:"STYLE_SEPARATOR",45:"STRUCT_START",47:"STRUCT_STOP",48:"ANNOTATION_START",49:"ANNOTATION_END",50:"MEMBER",51:"SEPARATOR",53:"STR",56:"AGGREGATION",57:"EXTENSION",58:"COMPOSITION",59:"DEPENDENCY",60:"LOLLIPOP",61:"LINE",62:"DOTTED_LINE",63:"CALLBACK",64:"LINK",65:"LINK_TARGET",66:"CLICK",67:"CALLBACK_NAME",68:"CALLBACK_ARGS",69:"HREF",70:"CSSCLASS",73:"graphCodeTokens",75:"TAGSTART",76:"TAGEND",77:"==",78:"--",79:"PCT",80:"DEFAULT",81:"SPACE",82:"MINUS",83:"keywords",84:"UNICODE_TEXT",85:"NUM",86:"ALPHA",87:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[3,1],[3,2],[6,1],[6,1],[6,1],[6,1],[4,1],[7,4],[7,6],[13,1],[14,1],[18,1],[15,1],[12,4],[24,1],[24,2],[24,3],[27,1],[27,1],[27,2],[27,2],[27,2],[26,1],[26,2],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,2],[26,2],[26,1],[33,2],[33,4],[33,5],[33,7],[35,4],[46,1],[46,2],[34,1],[34,2],[34,1],[34,1],[31,3],[31,4],[31,4],[31,5],[52,3],[52,2],[52,2],[52,1],[54,1],[54,1],[54,1],[54,1],[54,1],[55,1],[55,1],[36,3],[36,4],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[37,3],[71,1],[71,1],[72,1],[72,1],[72,1],[72,1],[72,1],[72,1],[72,1],[74,1],[74,1],[74,1],[74,1],[28,1],[28,1],[28,1],[29,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 5:r.setDirection("TB");break;case 6:r.setDirection("BT");break;case 7:r.setDirection("RL");break;case 8:r.setDirection("LR");break;case 12:r.parseDirective("%%{","open_directive");break;case 13:r.parseDirective(a[s],"type_directive");break;case 14:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 15:r.parseDirective("}%%","close_directive","class");break;case 20:case 21:this.$=a[s];break;case 22:this.$=a[s-1]+a[s];break;case 23:case 24:this.$=a[s-1]+"~"+a[s];break;case 25:r.addRelation(a[s]);break;case 26:a[s-1].title=r.cleanupLabel(a[s]),r.addRelation(a[s-1]);break;case 34:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 35:case 36:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 37:r.addClass(a[s]);break;case 38:r.addClass(a[s-2]),r.setCssClass(a[s-2],a[s]);break;case 39:r.addClass(a[s-3]),r.addMembers(a[s-3],a[s-1]);break;case 40:r.addClass(a[s-5]),r.setCssClass(a[s-5],a[s-3]),r.addMembers(a[s-5],a[s-1]);break;case 41:r.addAnnotation(a[s],a[s-2]);break;case 42:this.$=[a[s]];break;case 43:a[s].push(a[s-1]),this.$=a[s];break;case 44:case 46:case 47:break;case 45:r.addMember(a[s-1],r.cleanupLabel(a[s]));break;case 48:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 49:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:"none"};break;case 50:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:"none",relationTitle2:a[s-1]};break;case 51:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 52:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 53:this.$={type1:"none",type2:a[s],lineType:a[s-1]};break;case 54:this.$={type1:a[s-1],type2:"none",lineType:a[s]};break;case 55:this.$={type1:"none",type2:"none",lineType:a[s]};break;case 56:this.$=r.relationType.AGGREGATION;break;case 57:this.$=r.relationType.EXTENSION;break;case 58:this.$=r.relationType.COMPOSITION;break;case 59:this.$=r.relationType.DEPENDENCY;break;case 60:this.$=r.relationType.LOLLIPOP;break;case 61:this.$=r.lineType.LINE;break;case 62:this.$=r.lineType.DOTTED_LINE;break;case 63:case 69:this.$=a[s-2],r.setClickEvent(a[s-1],a[s]);break;case 64:case 70:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 65:case 73:this.$=a[s-2],r.setLink(a[s-1],a[s]);break;case 66:case 74:this.$=a[s-3],r.setLink(a[s-2],a[s-1],a[s]);break;case 67:case 75:this.$=a[s-3],r.setLink(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 68:case 76:this.$=a[s-4],r.setLink(a[s-3],a[s-2],a[s]),r.setTooltip(a[s-3],a[s-1]);break;case 71:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 72:this.$=a[s-4],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 77:r.setCssClass(a[s-1],a[s])}},table:[{3:1,4:2,5:e,6:4,7:5,8:n,9:r,10:i,11:a,12:6,13:11,19:o,23:s},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{3:14,4:2,5:e,6:4,7:5,8:n,9:r,10:i,11:a,12:6,13:11,19:o,23:s},{1:[2,9]},t(c,[2,5]),t(c,[2,6]),t(c,[2,7]),t(c,[2,8]),{14:15,20:[1,16]},{16:[1,17]},{20:[2,12]},{1:[2,4]},{15:18,17:[1,19],22:l},t([17,22],[2,13]),{6:30,7:29,8:n,9:r,10:i,11:a,13:11,19:o,24:21,26:22,27:34,28:43,29:44,31:23,33:24,34:25,35:26,36:27,37:28,38:A,40:u,42:h,43:f,48:d,50:p,51:g,63:m,64:y,66:v,70:b,84:_,85:w,86:E,87:C},{16:[1,49]},{18:50,21:[1,51]},{16:[2,15]},{25:[1,52]},{16:[1,53],25:[2,17]},t(x,[2,25],{32:[1,54]}),t(x,[2,27]),t(x,[2,28]),t(x,[2,29]),t(x,[2,30]),t(x,[2,31]),t(x,[2,32]),t(x,[2,33]),{39:[1,55]},{41:[1,56]},t(x,[2,36]),t(x,[2,44],{52:57,54:60,55:61,32:[1,59],53:[1,58],56:B,57:T,58:k,59:S,60:I,61:L,62:F}),{27:69,28:43,29:44,84:_,85:w,86:E,87:C},t(x,[2,46]),t(x,[2,47]),{28:70,84:_,85:w,86:E},{27:71,28:43,29:44,84:_,85:w,86:E,87:C},{27:72,28:43,29:44,84:_,85:w,86:E,87:C},{27:73,28:43,29:44,84:_,85:w,86:E,87:C},{53:[1,74]},t(N,[2,20],{28:43,29:44,27:75,30:[1,76],84:_,85:w,86:E,87:C}),t(N,[2,21],{30:[1,77]}),t(O,[2,91]),t(O,[2,92]),t(O,[2,93]),t([16,25,30,32,44,45,53,56,57,58,59,60,61,62,67,69],[2,94]),t(D,[2,10]),{15:78,22:l},{22:[2,14]},{1:[2,16]},{6:30,7:29,8:n,9:r,10:i,11:a,13:11,19:o,24:79,25:[2,18],26:22,27:34,28:43,29:44,31:23,33:24,34:25,35:26,36:27,37:28,38:A,40:u,42:h,43:f,48:d,50:p,51:g,63:m,64:y,66:v,70:b,84:_,85:w,86:E,87:C},t(x,[2,26]),t(x,[2,34]),t(x,[2,35]),{27:80,28:43,29:44,53:[1,81],84:_,85:w,86:E,87:C},{52:82,54:60,55:61,56:B,57:T,58:k,59:S,60:I,61:L,62:F},t(x,[2,45]),{55:83,61:L,62:F},t(M,[2,55],{54:84,56:B,57:T,58:k,59:S,60:I}),t(R,[2,56]),t(R,[2,57]),t(R,[2,58]),t(R,[2,59]),t(R,[2,60]),t(U,[2,61]),t(U,[2,62]),t(x,[2,37],{44:[1,85],45:[1,86]}),{49:[1,87]},{53:[1,88]},{53:[1,89]},{67:[1,90],69:[1,91]},{28:92,84:_,85:w,86:E},t(N,[2,22]),t(N,[2,23]),t(N,[2,24]),{16:[1,93]},{25:[2,19]},t(P,[2,48]),{27:94,28:43,29:44,84:_,85:w,86:E,87:C},{27:95,28:43,29:44,53:[1,96],84:_,85:w,86:E,87:C},t(M,[2,54],{54:97,56:B,57:T,58:k,59:S,60:I}),t(M,[2,53]),{28:98,84:_,85:w,86:E},{46:99,50:H},{27:101,28:43,29:44,84:_,85:w,86:E,87:C},t(x,[2,63],{53:[1,102]}),t(x,[2,65],{53:[1,104],65:[1,103]}),t(x,[2,69],{53:[1,105],68:[1,106]}),t(x,[2,73],{53:[1,108],65:[1,107]}),t(x,[2,77]),t(D,[2,11]),t(P,[2,50]),t(P,[2,49]),{27:109,28:43,29:44,84:_,85:w,86:E,87:C},t(M,[2,52]),t(x,[2,38],{45:[1,110]}),{47:[1,111]},{46:112,47:[2,42],50:H},t(x,[2,41]),t(x,[2,64]),t(x,[2,66]),t(x,[2,67],{65:[1,113]}),t(x,[2,70]),t(x,[2,71],{53:[1,114]}),t(x,[2,74]),t(x,[2,75],{65:[1,115]}),t(P,[2,51]),{46:116,50:H},t(x,[2,39]),{47:[2,43]},t(x,[2,68]),t(x,[2,72]),t(x,[2,76]),{47:[1,117]},t(x,[2,40])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],6:[2,9],13:[2,12],14:[2,4],20:[2,15],51:[2,14],52:[2,16],79:[2,19],112:[2,43]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,A=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,_,w,E,C,x,B,T,k,S={};;){if(w=n[n.length-1],this.defaultActions[w]?E=this.defaultActions[w]:(null==b&&(b=v()),E=o[w]&&o[w][b]),void 0===E||!E.length||!E[0]){var I="";for(x in k=[],o[w])this.terminals_[x]&&x>u&&k.push("'"+this.terminals_[x]+"'");I=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:k})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(E[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(E[1]),b=null,_?(b=_,_=null):(l=d.yyleng,s=d.yytext,c=d.yylineno,m=d.yylloc,A>0&&A--);break;case 2:if(B=this.productions_[E[1]][1],S.$=i[i.length-B],S._$={first_line:a[a.length-(B||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(B||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(B||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(S,[s,l,c,p.yy,E[1],i,a].concat(f))))return C;B&&(n=n.slice(0,-1*B*2),i=i.slice(0,-1*B),a=a.slice(0,-1*B)),n.push(this.productions_[E[1]][0]),i.push(S.$),a.push(S._$),T=o[n[n.length-2]][n[n.length-1]],n.push(T);break;case 3:return!0}}return!0}},G={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),19;case 1:return 8;case 2:return 9;case 3:return 10;case 4:return 11;case 5:return this.begin("type_directive"),20;case 6:return this.popState(),this.begin("arg_directive"),17;case 7:return this.popState(),this.popState(),22;case 8:return 21;case 9:case 10:case 19:case 27:break;case 11:return this.begin("acc_title"),38;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),40;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:case 37:case 40:case 43:case 46:case 49:case 52:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:return 16;case 20:case 21:return 23;case 22:return this.begin("struct"),45;case 23:return"EDGE_STATE";case 24:return"EOF_IN_STRUCT";case 25:return"OPEN_IN_STRUCT";case 26:return this.popState(),47;case 28:return"MEMBER";case 29:return 43;case 30:return 70;case 31:return 63;case 32:return 64;case 33:return 66;case 34:return 48;case 35:return 49;case 36:this.begin("generic");break;case 38:return"GENERICTYPE";case 39:this.begin("string");break;case 41:return"STR";case 42:this.begin("bqstring");break;case 44:return"BQUOTE_STR";case 45:this.begin("href");break;case 47:return 69;case 48:this.begin("callback_name");break;case 50:this.popState(),this.begin("callback_args");break;case 51:return 67;case 53:return 68;case 54:case 55:case 56:case 57:return 65;case 58:case 59:return 57;case 60:case 61:return 59;case 62:return 58;case 63:return 56;case 64:return 60;case 65:return 61;case 66:return 62;case 67:return 32;case 68:return 44;case 69:return 82;case 70:return"DOT";case 71:return"PLUS";case 72:return 79;case 73:case 74:return"EQUALS";case 75:return 86;case 76:return"PUNCTUATION";case 77:return 85;case 78:return 84;case 79:return 81;case 80:return 25}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:\[\*\])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[`])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},callback_args:{rules:[52,53],inclusive:!1},callback_name:{rules:[49,50,51],inclusive:!1},href:{rules:[46,47],inclusive:!1},struct:{rules:[23,24,25,26,27,28],inclusive:!1},generic:{rules:[37,38],inclusive:!1},bqstring:{rules:[43,44],inclusive:!1},string:{rules:[40,41],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,23,29,30,31,32,33,34,35,36,39,42,45,48,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80],inclusive:!0}}};function j(){this.yy={}}return Q.lexer=G,j.prototype=Q,Q.Parser=j,new j}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(t[0],process.exit(1));var r=n(8218).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},5890:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,2],n=[1,5],r=[6,9,11,23,25,27,29,30,49],i=[1,17],a=[1,18],o=[1,19],s=[1,20],c=[1,21],l=[1,24],A=[1,29],u=[1,30],h=[1,31],f=[1,32],d=[6,9,11,15,20,23,25,27,29,30,42,43,44,45,49],p=[1,45],g=[30,46,47],m=[4,6,9,11,23,25,27,29,30,49],y=[42,43,44,45],v=[22,37],b=[1,64],_={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,title:23,title_value:24,acc_title:25,acc_title_value:26,acc_descr:27,acc_descr_value:28,acc_descr_multiline_value:29,ALPHANUM:30,".":31,attribute:32,attributeType:33,attributeName:34,attributeKeyType:35,attributeComment:36,ATTRIBUTE_WORD:37,ATTRIBUTE_KEY:38,COMMENT:39,cardinality:40,relType:41,ZERO_OR_ONE:42,ZERO_OR_MORE:43,ONE_OR_MORE:44,ONLY_ONE:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,open_directive:49,type_directive:50,arg_directive:51,close_directive:52,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"title",24:"title_value",25:"acc_title",26:"acc_title_value",27:"acc_descr",28:"acc_descr_value",29:"acc_descr_multiline_value",30:"ALPHANUM",31:".",37:"ATTRIBUTE_WORD",38:"ATTRIBUTE_KEY",39:"COMMENT",42:"ZERO_OR_ONE",43:"ZERO_OR_MORE",44:"ONE_OR_MORE",45:"ONLY_ONE",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD",49:"open_directive",50:"type_directive",51:"arg_directive",52:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[10,2],[10,2],[10,2],[10,1],[17,1],[17,3],[21,1],[21,2],[32,2],[32,3],[32,3],[32,4],[33,1],[34,1],[35,1],[36,1],[18,3],[40,1],[40,1],[40,1],[40,1],[41,1],[41,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:a[s-1].push(a[s]),this.$=a[s-1];break;case 5:case 6:case 20:case 28:case 29:case 30:case 40:this.$=a[s];break;case 12:r.addEntity(a[s-4]),r.addEntity(a[s-2]),r.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 13:r.addEntity(a[s-3]),r.addAttributes(a[s-3],a[s-1]);break;case 14:r.addEntity(a[s-2]);break;case 15:r.addEntity(a[s]);break;case 16:case 17:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 18:case 19:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 21:this.$=a[s-2]+a[s-1]+a[s];break;case 22:this.$=[a[s]];break;case 23:a[s].push(a[s-1]),this.$=a[s];break;case 24:this.$={attributeType:a[s-1],attributeName:a[s]};break;case 25:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeKeyType:a[s]};break;case 26:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeComment:a[s]};break;case 27:this.$={attributeType:a[s-3],attributeName:a[s-2],attributeKeyType:a[s-1],attributeComment:a[s]};break;case 31:case 39:this.$=a[s].replace(/"/g,"");break;case 32:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 33:this.$=r.Cardinality.ZERO_OR_ONE;break;case 34:this.$=r.Cardinality.ZERO_OR_MORE;break;case 35:this.$=r.Cardinality.ONE_OR_MORE;break;case 36:this.$=r.Cardinality.ONLY_ONE;break;case 37:this.$=r.Identification.NON_IDENTIFYING;break;case 38:this.$=r.Identification.IDENTIFYING;break;case 41:r.parseDirective("%%{","open_directive");break;case 42:r.parseDirective(a[s],"type_directive");break;case 43:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 44:r.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:e,7:3,12:4,49:n},{1:[3]},t(r,[2,3],{5:6}),{3:7,4:e,7:3,12:4,49:n},{13:8,50:[1,9]},{50:[2,41]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:i,25:a,27:o,29:s,30:c,49:n},{1:[2,2]},{14:22,15:[1,23],52:l},t([15,52],[2,42]),t(r,[2,8],{1:[2,1]}),t(r,[2,4]),{7:15,10:25,12:4,17:16,23:i,25:a,27:o,29:s,30:c,49:n},t(r,[2,6]),t(r,[2,7]),t(r,[2,11]),t(r,[2,15],{18:26,40:28,20:[1,27],42:A,43:u,44:h,45:f}),{24:[1,33]},{26:[1,34]},{28:[1,35]},t(r,[2,19]),t(d,[2,20],{31:[1,36]}),{11:[1,37]},{16:38,51:[1,39]},{11:[2,44]},t(r,[2,5]),{17:40,30:c},{21:41,22:[1,42],32:43,33:44,37:p},{41:46,46:[1,47],47:[1,48]},t(g,[2,33]),t(g,[2,34]),t(g,[2,35]),t(g,[2,36]),t(r,[2,16]),t(r,[2,17]),t(r,[2,18]),{17:49,30:c},t(m,[2,9]),{14:50,52:l},{52:[2,43]},{15:[1,51]},{22:[1,52]},t(r,[2,14]),{21:53,22:[2,22],32:43,33:44,37:p},{34:54,37:[1,55]},{37:[2,28]},{40:56,42:A,43:u,44:h,45:f},t(y,[2,37]),t(y,[2,38]),t(d,[2,21]),{11:[1,57]},{19:58,30:[1,60],48:[1,59]},t(r,[2,13]),{22:[2,23]},t(v,[2,24],{35:61,36:62,38:[1,63],39:b}),t([22,37,38,39],[2,29]),{30:[2,32]},t(m,[2,10]),t(r,[2,12]),t(r,[2,39]),t(r,[2,40]),t(v,[2,25],{36:65,39:b}),t(v,[2,26]),t([22,37,39],[2,30]),t(v,[2,31]),t(v,[2,27])],defaultActions:{5:[2,41],7:[2,2],24:[2,44],39:[2,43],45:[2,28],53:[2,23],56:[2,32]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,A=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,_,w,E,C,x,B,T,k,S={};;){if(w=n[n.length-1],this.defaultActions[w]?E=this.defaultActions[w]:(null==b&&(b=v()),E=o[w]&&o[w][b]),void 0===E||!E.length||!E[0]){var I="";for(x in k=[],o[w])this.terminals_[x]&&x>u&&k.push("'"+this.terminals_[x]+"'");I=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:k})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(E[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(E[1]),b=null,_?(b=_,_=null):(l=d.yyleng,s=d.yytext,c=d.yylineno,m=d.yylloc,A>0&&A--);break;case 2:if(B=this.productions_[E[1]][1],S.$=i[i.length-B],S._$={first_line:a[a.length-(B||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(B||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(B||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(S,[s,l,c,p.yy,E[1],i,a].concat(f))))return C;B&&(n=n.slice(0,-1*B*2),i=i.slice(0,-1*B),a=a.slice(0,-1*B)),n.push(this.productions_[E[1]][0]),i.push(S.$),a.push(S._$),T=o[n[n.length-2]][n[n.length-1]],n.push(T);break;case 3:return!0}}return!0}},w={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("acc_title"),25;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),27;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.begin("open_directive"),49;case 8:return this.begin("type_directive"),50;case 9:return this.popState(),this.begin("arg_directive"),15;case 10:return this.popState(),this.popState(),52;case 11:return 51;case 12:case 13:case 15:case 20:case 25:break;case 14:return 11;case 16:return 9;case 17:return 48;case 18:return 4;case 19:return this.begin("block"),20;case 21:return 38;case 22:case 23:return 37;case 24:return 39;case 26:return this.popState(),22;case 27:case 40:return e.yytext[0];case 28:case 32:return 42;case 29:case 33:return 43;case 30:case 34:return 44;case 31:return 45;case 35:case 37:case 38:return 46;case 36:return 47;case 39:return 30;case 41:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[A-Za-z][A-Za-z0-9\-_\[\]]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\|o\b)/i,/^(?:\}o\b)/i,/^(?:\}\|)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},open_directive:{rules:[8],inclusive:!1},type_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[10,11],inclusive:!1},block:{rules:[20,21,22,23,24,25,26,27],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,19,28,29,30,31,32,33,34,35,36,37,38,39,40,41],inclusive:!0}}};function E(){this.yy={}}return _.lexer=w,E.prototype=_,_.Parser=E,new E}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(t[0],process.exit(1));var r=n(8009).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},3602:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,9],n=[1,7],r=[1,6],i=[1,8],a=[1,20,21,22,23,38,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],o=[2,10],s=[1,20],c=[1,21],l=[1,22],A=[1,23],u=[1,30],h=[1,32],f=[1,33],d=[1,34],p=[1,62],g=[1,48],m=[1,52],y=[1,36],v=[1,37],b=[1,38],_=[1,39],w=[1,40],E=[1,56],C=[1,63],x=[1,51],B=[1,53],T=[1,55],k=[1,59],S=[1,60],I=[1,41],L=[1,42],F=[1,43],N=[1,44],O=[1,61],D=[1,50],M=[1,54],R=[1,57],U=[1,58],P=[1,49],H=[1,66],Q=[1,71],G=[1,20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],j=[1,75],$=[1,74],K=[1,76],Y=[20,21,23,81,82],z=[1,99],W=[1,104],V=[1,107],q=[1,108],X=[1,101],J=[1,106],Z=[1,109],tt=[1,102],et=[1,114],nt=[1,113],rt=[1,103],it=[1,105],at=[1,110],ot=[1,111],st=[1,112],ct=[1,115],lt=[20,21,22,23,81,82],At=[20,21,22,23,53,81,82],ut=[20,21,22,23,40,52,53,55,57,59,61,63,65,66,67,69,71,73,74,76,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],ht=[20,21,23],ft=[20,21,23,52,66,67,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],dt=[1,12,20,21,22,23,24,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],pt=[52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],gt=[1,149],mt=[1,157],yt=[1,158],vt=[1,159],bt=[1,160],_t=[1,144],wt=[1,145],Et=[1,141],Ct=[1,152],xt=[1,153],Bt=[1,154],Tt=[1,155],kt=[1,156],St=[1,161],It=[1,162],Lt=[1,147],Ft=[1,150],Nt=[1,146],Ot=[1,143],Dt=[20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],Mt=[1,165],Rt=[20,21,22,23,26,52,66,67,91,105,106,109,111,112,122,123,124,125,126,127],Ut=[20,21,22,23,24,26,38,40,41,42,52,56,58,60,62,64,66,67,68,70,72,73,75,77,81,82,86,87,88,89,90,91,92,95,105,106,109,111,112,113,114,122,123,124,125,126,127],Pt=[12,21,22,24],Ht=[22,106],Qt=[1,250],Gt=[1,245],jt=[1,246],$t=[1,254],Kt=[1,251],Yt=[1,248],zt=[1,247],Wt=[1,249],Vt=[1,252],qt=[1,253],Xt=[1,255],Jt=[1,273],Zt=[20,21,23,106],te=[20,21,22,23,66,67,86,102,105,106,109,110,111,112,113],ee={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,link:49,node:50,vertex:51,AMP:52,STYLE_SEPARATOR:53,idString:54,DOUBLECIRCLESTART:55,DOUBLECIRCLEEND:56,PS:57,PE:58,"(-":59,"-)":60,STADIUMSTART:61,STADIUMEND:62,SUBROUTINESTART:63,SUBROUTINEEND:64,VERTEX_WITH_PROPS_START:65,ALPHA:66,COLON:67,PIPE:68,CYLINDERSTART:69,CYLINDEREND:70,DIAMOND_START:71,DIAMOND_STOP:72,TAGEND:73,TRAPSTART:74,TRAPEND:75,INVTRAPSTART:76,INVTRAPEND:77,linkStatement:78,arrowText:79,TESTSTR:80,START_LINK:81,LINK:82,textToken:83,STR:84,keywords:85,STYLE:86,LINKSTYLE:87,CLASSDEF:88,CLASS:89,CLICK:90,DOWN:91,UP:92,textNoTags:93,textNoTagsToken:94,DEFAULT:95,stylesOpt:96,alphaNum:97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,HEX:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,MINUS:109,UNIT:110,BRKT:111,DOT:112,PCT:113,TAGSTART:114,alphaNumToken:115,idStringToken:116,alphaNumStatement:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,PUNCTUATION:122,UNICODE_TEXT:123,PLUS:124,EQUALS:125,MULT:126,UNDERSCORE:127,graphCodeTokens:128,ARROW_CROSS:129,ARROW_POINT:130,ARROW_CIRCLE:131,ARROW_OPEN:132,QUOTE:133,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",44:"acc_title",45:"acc_title_value",46:"acc_descr",47:"acc_descr_value",48:"acc_descr_multiline_value",52:"AMP",53:"STYLE_SEPARATOR",55:"DOUBLECIRCLESTART",56:"DOUBLECIRCLEEND",57:"PS",58:"PE",59:"(-",60:"-)",61:"STADIUMSTART",62:"STADIUMEND",63:"SUBROUTINESTART",64:"SUBROUTINEEND",65:"VERTEX_WITH_PROPS_START",66:"ALPHA",67:"COLON",68:"PIPE",69:"CYLINDERSTART",70:"CYLINDEREND",71:"DIAMOND_START",72:"DIAMOND_STOP",73:"TAGEND",74:"TRAPSTART",75:"TRAPEND",76:"INVTRAPSTART",77:"INVTRAPEND",80:"TESTSTR",81:"START_LINK",82:"LINK",84:"STR",86:"STYLE",87:"LINKSTYLE",88:"CLASSDEF",89:"CLASS",90:"CLICK",91:"DOWN",92:"UP",95:"DEFAULT",98:"CALLBACKNAME",99:"CALLBACKARGS",100:"HREF",101:"LINK_TARGET",102:"HEX",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"MINUS",110:"UNIT",111:"BRKT",112:"DOT",113:"PCT",114:"TAGSTART",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr",122:"PUNCTUATION",123:"UNICODE_TEXT",124:"PLUS",125:"EQUALS",126:"MULT",127:"UNDERSCORE",129:"ARROW_CROSS",130:"ARROW_POINT",131:"ARROW_CIRCLE",132:"ARROW_OPEN",133:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[19,2],[19,2],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[50,1],[50,5],[50,3],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,8],[51,4],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,4],[51,4],[51,1],[49,2],[49,3],[49,3],[49,1],[49,3],[78,1],[79,3],[39,1],[39,2],[39,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[93,1],[93,2],[35,5],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,2],[37,4],[37,4],[37,6],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[103,1],[103,3],[96,1],[96,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[94,1],[94,1],[94,1],[94,1],[54,1],[54,2],[97,1],[97,2],[117,1],[117,1],[117,1],[117,1],[43,1],[43,1],[43,1],[43,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 5:r.parseDirective("%%{","open_directive");break;case 6:r.parseDirective(a[s],"type_directive");break;case 7:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 8:r.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:a[s]!==[]&&a[s-1].push(a[s]),this.$=a[s-1];break;case 12:case 82:case 84:case 96:case 152:case 154:case 155:case 78:case 150:this.$=a[s];break;case 19:r.setDirection("TB"),this.$="TB";break;case 20:r.setDirection(a[s-1]),this.$=a[s-1];break;case 35:this.$=a[s-1].nodes;break;case 41:this.$=r.addSubGraph(a[s-6],a[s-1],a[s-4]);break;case 42:this.$=r.addSubGraph(a[s-3],a[s-1],a[s-3]);break;case 43:this.$=r.addSubGraph(void 0,a[s-1],void 0);break;case 45:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 46:case 47:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 51:r.addLink(a[s-2].stmt,a[s],a[s-1]),this.$={stmt:a[s],nodes:a[s].concat(a[s-2].nodes)};break;case 52:r.addLink(a[s-3].stmt,a[s-1],a[s-2]),this.$={stmt:a[s-1],nodes:a[s-1].concat(a[s-3].nodes)};break;case 53:this.$={stmt:a[s-1],nodes:a[s-1]};break;case 54:this.$={stmt:a[s],nodes:a[s]};break;case 55:case 123:case 125:this.$=[a[s]];break;case 56:this.$=a[s-4].concat(a[s]);break;case 57:this.$=[a[s-2]],r.setClass(a[s-2],a[s]);break;case 58:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"square");break;case 59:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"doublecircle");break;case 60:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],"circle");break;case 61:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"ellipse");break;case 62:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"stadium");break;case 63:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"subroutine");break;case 64:this.$=a[s-7],r.addVertex(a[s-7],a[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[a[s-5],a[s-3]]]));break;case 65:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"cylinder");break;case 66:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"round");break;case 67:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"diamond");break;case 68:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],"hexagon");break;case 69:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"odd");break;case 70:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"trapezoid");break;case 71:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"inv_trapezoid");break;case 72:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"lean_right");break;case 73:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],"lean_left");break;case 74:this.$=a[s],r.addVertex(a[s]);break;case 75:a[s-1].text=a[s],this.$=a[s-1];break;case 76:case 77:a[s-2].text=a[s-1],this.$=a[s-2];break;case 79:var c=r.destructLink(a[s],a[s-2]);this.$={type:c.type,stroke:c.stroke,length:c.length,text:a[s-1]};break;case 80:c=r.destructLink(a[s]),this.$={type:c.type,stroke:c.stroke,length:c.length};break;case 81:this.$=a[s-1];break;case 83:case 97:case 153:case 151:this.$=a[s-1]+""+a[s];break;case 98:case 99:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 100:this.$=a[s-4],r.setClass(a[s-2],a[s]);break;case 101:case 109:this.$=a[s-1],r.setClickEvent(a[s-1],a[s]);break;case 102:case 110:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 103:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 104:this.$=a[s-4],r.setClickEvent(a[s-4],a[s-3],a[s-2]),r.setTooltip(a[s-4],a[s]);break;case 105:case 111:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 106:case 112:this.$=a[s-3],r.setLink(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 107:case 113:this.$=a[s-3],r.setLink(a[s-3],a[s-2],a[s]);break;case 108:case 114:this.$=a[s-5],r.setLink(a[s-5],a[s-4],a[s]),r.setTooltip(a[s-5],a[s-2]);break;case 115:this.$=a[s-4],r.addVertex(a[s-2],void 0,void 0,a[s]);break;case 116:case 118:this.$=a[s-4],r.updateLink(a[s-2],a[s]);break;case 117:this.$=a[s-4],r.updateLink([a[s-2]],a[s]);break;case 119:this.$=a[s-8],r.updateLinkInterpolate([a[s-6]],a[s-2]),r.updateLink([a[s-6]],a[s]);break;case 120:this.$=a[s-8],r.updateLinkInterpolate(a[s-6],a[s-2]),r.updateLink(a[s-6],a[s]);break;case 121:this.$=a[s-6],r.updateLinkInterpolate([a[s-4]],a[s]);break;case 122:this.$=a[s-6],r.updateLinkInterpolate(a[s-4],a[s]);break;case 124:case 126:a[s-2].push(a[s]),this.$=a[s-2];break;case 128:this.$=a[s-1]+a[s];break;case 156:this.$="v";break;case 157:this.$="-";break;case 158:this.$={stmt:"dir",value:"TB"};break;case 159:this.$={stmt:"dir",value:"BT"};break;case 160:this.$={stmt:"dir",value:"RL"};break;case 161:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,5:3,6:5,12:e,16:4,21:n,22:r,24:i},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:e,16:4,21:n,22:r,24:i},t(a,o,{17:11}),{7:12,13:[1,13]},{16:14,21:n,22:r,24:i},{16:15,21:n,22:r,24:i},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:s,21:c,22:l,23:A,32:24,33:25,34:26,35:27,36:28,37:29,38:u,43:31,44:h,46:f,48:d,50:35,51:45,52:p,54:46,66:g,67:m,86:y,87:v,88:b,89:_,90:w,91:E,95:C,105:x,106:B,109:T,111:k,112:S,116:47,118:I,119:L,120:F,121:N,122:O,123:D,124:M,125:R,126:U,127:P},{8:64,10:[1,65],15:H},t([10,15],[2,6]),t(a,[2,17]),t(a,[2,18]),t(a,[2,19]),{20:[1,68],21:[1,69],22:Q,27:67,30:70},t(G,[2,11]),t(G,[2,12]),t(G,[2,13]),t(G,[2,14]),t(G,[2,15]),t(G,[2,16]),{9:72,20:j,21:$,23:K,49:73,78:77,81:[1,78],82:[1,79]},{9:80,20:j,21:$,23:K},{9:81,20:j,21:$,23:K},{9:82,20:j,21:$,23:K},{9:83,20:j,21:$,23:K},{9:84,20:j,21:$,23:K},{9:86,20:j,21:$,22:[1,85],23:K},t(G,[2,44]),{45:[1,87]},{47:[1,88]},t(G,[2,47]),t(Y,[2,54],{30:89,22:Q}),{22:[1,90]},{22:[1,91]},{22:[1,92]},{22:[1,93]},{26:z,52:W,66:V,67:q,84:[1,97],91:X,97:96,98:[1,94],100:[1,95],105:J,106:Z,109:tt,111:et,112:nt,115:100,117:98,122:rt,123:it,124:at,125:ot,126:st,127:ct},t(G,[2,158]),t(G,[2,159]),t(G,[2,160]),t(G,[2,161]),t(lt,[2,55],{53:[1,116]}),t(At,[2,74],{116:129,40:[1,117],52:p,55:[1,118],57:[1,119],59:[1,120],61:[1,121],63:[1,122],65:[1,123],66:g,67:m,69:[1,124],71:[1,125],73:[1,126],74:[1,127],76:[1,128],91:E,95:C,105:x,106:B,109:T,111:k,112:S,122:O,123:D,124:M,125:R,126:U,127:P}),t(ut,[2,150]),t(ut,[2,175]),t(ut,[2,176]),t(ut,[2,177]),t(ut,[2,178]),t(ut,[2,179]),t(ut,[2,180]),t(ut,[2,181]),t(ut,[2,182]),t(ut,[2,183]),t(ut,[2,184]),t(ut,[2,185]),t(ut,[2,186]),t(ut,[2,187]),t(ut,[2,188]),t(ut,[2,189]),t(ut,[2,190]),{9:130,20:j,21:$,23:K},{11:131,14:[1,132]},t(ht,[2,8]),t(a,[2,20]),t(a,[2,26]),t(a,[2,27]),{21:[1,133]},t(ft,[2,34],{30:134,22:Q}),t(G,[2,35]),{50:135,51:45,52:p,54:46,66:g,67:m,91:E,95:C,105:x,106:B,109:T,111:k,112:S,116:47,122:O,123:D,124:M,125:R,126:U,127:P},t(dt,[2,48]),t(dt,[2,49]),t(dt,[2,50]),t(pt,[2,78],{79:136,68:[1,138],80:[1,137]}),{22:gt,24:mt,26:yt,38:vt,39:139,42:bt,52:W,66:V,67:q,73:_t,81:wt,83:140,84:Et,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},t([52,66,67,68,80,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,80]),t(G,[2,36]),t(G,[2,37]),t(G,[2,38]),t(G,[2,39]),t(G,[2,40]),{22:gt,24:mt,26:yt,38:vt,39:163,42:bt,52:W,66:V,67:q,73:_t,81:wt,83:140,84:Et,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},t(Dt,o,{17:164}),t(G,[2,45]),t(G,[2,46]),t(Y,[2,53],{52:Mt}),{26:z,52:W,66:V,67:q,91:X,97:166,102:[1,167],105:J,106:Z,109:tt,111:et,112:nt,115:100,117:98,122:rt,123:it,124:at,125:ot,126:st,127:ct},{95:[1,168],103:169,105:[1,170]},{26:z,52:W,66:V,67:q,91:X,95:[1,171],97:172,105:J,106:Z,109:tt,111:et,112:nt,115:100,117:98,122:rt,123:it,124:at,125:ot,126:st,127:ct},{26:z,52:W,66:V,67:q,91:X,97:173,105:J,106:Z,109:tt,111:et,112:nt,115:100,117:98,122:rt,123:it,124:at,125:ot,126:st,127:ct},t(ht,[2,101],{22:[1,174],99:[1,175]}),t(ht,[2,105],{22:[1,176]}),t(ht,[2,109],{115:100,117:178,22:[1,177],26:z,52:W,66:V,67:q,91:X,105:J,106:Z,109:tt,111:et,112:nt,122:rt,123:it,124:at,125:ot,126:st,127:ct}),t(ht,[2,111],{22:[1,179]}),t(Rt,[2,152]),t(Rt,[2,154]),t(Rt,[2,155]),t(Rt,[2,156]),t(Rt,[2,157]),t(Ut,[2,162]),t(Ut,[2,163]),t(Ut,[2,164]),t(Ut,[2,165]),t(Ut,[2,166]),t(Ut,[2,167]),t(Ut,[2,168]),t(Ut,[2,169]),t(Ut,[2,170]),t(Ut,[2,171]),t(Ut,[2,172]),t(Ut,[2,173]),t(Ut,[2,174]),{52:p,54:180,66:g,67:m,91:E,95:C,105:x,106:B,109:T,111:k,112:S,116:47,122:O,123:D,124:M,125:R,126:U,127:P},{22:gt,24:mt,26:yt,38:vt,39:181,42:bt,52:W,66:V,67:q,73:_t,81:wt,83:140,84:Et,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:gt,24:mt,26:yt,38:vt,39:182,42:bt,52:W,66:V,67:q,73:_t,81:wt,83:140,84:Et,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:gt,24:mt,26:yt,38:vt,39:184,42:bt,52:W,57:[1,183],66:V,67:q,73:_t,81:wt,83:140,84:Et,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:gt,24:mt,26:yt,38:vt,39:185,42:bt,52:W,66:V,67:q,73:_t,81:wt,83:140,84:Et,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:gt,24:mt,26:yt,38:vt,39:186,42:bt,52:W,66:V,67:q,73:_t,81:wt,83:140,84:Et,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:gt,24:mt,26:yt,38:vt,39:187,42:bt,52:W,66:V,67:q,73:_t,81:wt,83:140,84:Et,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{66:[1,188]},{22:gt,24:mt,26:yt,38:vt,39:189,42:bt,52:W,66:V,67:q,73:_t,81:wt,83:140,84:Et,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:gt,24:mt,26:yt,38:vt,39:190,42:bt,52:W,66:V,67:q,71:[1,191],73:_t,81:wt,83:140,84:Et,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:gt,24:mt,26:yt,38:vt,39:192,42:bt,52:W,66:V,67:q,73:_t,81:wt,83:140,84:Et,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:gt,24:mt,26:yt,38:vt,39:193,42:bt,52:W,66:V,67:q,73:_t,81:wt,83:140,84:Et,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:gt,24:mt,26:yt,38:vt,39:194,42:bt,52:W,66:V,67:q,73:_t,81:wt,83:140,84:Et,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},t(ut,[2,151]),t(Pt,[2,3]),{8:195,15:H},{15:[2,7]},t(a,[2,28]),t(ft,[2,33]),t(Y,[2,51],{30:196,22:Q}),t(pt,[2,75],{22:[1,197]}),{22:[1,198]},{22:gt,24:mt,26:yt,38:vt,39:199,42:bt,52:W,66:V,67:q,73:_t,81:wt,83:140,84:Et,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:gt,24:mt,26:yt,38:vt,42:bt,52:W,66:V,67:q,73:_t,81:wt,82:[1,200],83:201,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},t(Ut,[2,82]),t(Ut,[2,84]),t(Ut,[2,140]),t(Ut,[2,141]),t(Ut,[2,142]),t(Ut,[2,143]),t(Ut,[2,144]),t(Ut,[2,145]),t(Ut,[2,146]),t(Ut,[2,147]),t(Ut,[2,148]),t(Ut,[2,149]),t(Ut,[2,85]),t(Ut,[2,86]),t(Ut,[2,87]),t(Ut,[2,88]),t(Ut,[2,89]),t(Ut,[2,90]),t(Ut,[2,91]),t(Ut,[2,92]),t(Ut,[2,93]),t(Ut,[2,94]),t(Ut,[2,95]),{9:203,20:j,21:$,22:gt,23:K,24:mt,26:yt,38:vt,40:[1,202],42:bt,52:W,66:V,67:q,73:_t,81:wt,83:201,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{18:18,19:19,20:s,21:c,22:l,23:A,32:24,33:25,34:26,35:27,36:28,37:29,38:u,42:[1,204],43:31,44:h,46:f,48:d,50:35,51:45,52:p,54:46,66:g,67:m,86:y,87:v,88:b,89:_,90:w,91:E,95:C,105:x,106:B,109:T,111:k,112:S,116:47,118:I,119:L,120:F,121:N,122:O,123:D,124:M,125:R,126:U,127:P},{22:Q,30:205},{22:[1,206],26:z,52:W,66:V,67:q,91:X,105:J,106:Z,109:tt,111:et,112:nt,115:100,117:178,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:[1,207]},{22:[1,208]},{22:[1,209],106:[1,210]},t(Ht,[2,123]),{22:[1,211]},{22:[1,212],26:z,52:W,66:V,67:q,91:X,105:J,106:Z,109:tt,111:et,112:nt,115:100,117:178,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:[1,213],26:z,52:W,66:V,67:q,91:X,105:J,106:Z,109:tt,111:et,112:nt,115:100,117:178,122:rt,123:it,124:at,125:ot,126:st,127:ct},{84:[1,214]},t(ht,[2,103],{22:[1,215]}),{84:[1,216],101:[1,217]},{84:[1,218]},t(Rt,[2,153]),{84:[1,219],101:[1,220]},t(lt,[2,57],{116:129,52:p,66:g,67:m,91:E,95:C,105:x,106:B,109:T,111:k,112:S,122:O,123:D,124:M,125:R,126:U,127:P}),{22:gt,24:mt,26:yt,38:vt,41:[1,221],42:bt,52:W,66:V,67:q,73:_t,81:wt,83:201,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:gt,24:mt,26:yt,38:vt,42:bt,52:W,56:[1,222],66:V,67:q,73:_t,81:wt,83:201,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:gt,24:mt,26:yt,38:vt,39:223,42:bt,52:W,66:V,67:q,73:_t,81:wt,83:140,84:Et,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:gt,24:mt,26:yt,38:vt,42:bt,52:W,58:[1,224],66:V,67:q,73:_t,81:wt,83:201,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:gt,24:mt,26:yt,38:vt,42:bt,52:W,60:[1,225],66:V,67:q,73:_t,81:wt,83:201,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:gt,24:mt,26:yt,38:vt,42:bt,52:W,62:[1,226],66:V,67:q,73:_t,81:wt,83:201,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:gt,24:mt,26:yt,38:vt,42:bt,52:W,64:[1,227],66:V,67:q,73:_t,81:wt,83:201,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{67:[1,228]},{22:gt,24:mt,26:yt,38:vt,42:bt,52:W,66:V,67:q,70:[1,229],73:_t,81:wt,83:201,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:gt,24:mt,26:yt,38:vt,42:bt,52:W,66:V,67:q,72:[1,230],73:_t,81:wt,83:201,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:gt,24:mt,26:yt,38:vt,39:231,42:bt,52:W,66:V,67:q,73:_t,81:wt,83:140,84:Et,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:gt,24:mt,26:yt,38:vt,41:[1,232],42:bt,52:W,66:V,67:q,73:_t,81:wt,83:201,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:gt,24:mt,26:yt,38:vt,42:bt,52:W,66:V,67:q,73:_t,75:[1,233],77:[1,234],81:wt,83:201,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:gt,24:mt,26:yt,38:vt,42:bt,52:W,66:V,67:q,73:_t,75:[1,236],77:[1,235],81:wt,83:201,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{9:237,20:j,21:$,23:K},t(Y,[2,52],{52:Mt}),t(pt,[2,77]),t(pt,[2,76]),{22:gt,24:mt,26:yt,38:vt,42:bt,52:W,66:V,67:q,68:[1,238],73:_t,81:wt,83:201,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},t(pt,[2,79]),t(Ut,[2,83]),{22:gt,24:mt,26:yt,38:vt,39:239,42:bt,52:W,66:V,67:q,73:_t,81:wt,83:140,84:Et,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},t(Dt,o,{17:240}),t(G,[2,43]),{51:241,52:p,54:46,66:g,67:m,91:E,95:C,105:x,106:B,109:T,111:k,112:S,116:47,122:O,123:D,124:M,125:R,126:U,127:P},{22:Qt,66:Gt,67:jt,86:$t,96:242,102:Kt,105:Yt,107:243,108:244,109:zt,110:Wt,111:Vt,112:qt,113:Xt},{22:Qt,66:Gt,67:jt,86:$t,96:256,102:Kt,105:Yt,107:243,108:244,109:zt,110:Wt,111:Vt,112:qt,113:Xt},{22:Qt,66:Gt,67:jt,86:$t,96:257,102:Kt,104:[1,258],105:Yt,107:243,108:244,109:zt,110:Wt,111:Vt,112:qt,113:Xt},{22:Qt,66:Gt,67:jt,86:$t,96:259,102:Kt,104:[1,260],105:Yt,107:243,108:244,109:zt,110:Wt,111:Vt,112:qt,113:Xt},{105:[1,261]},{22:Qt,66:Gt,67:jt,86:$t,96:262,102:Kt,105:Yt,107:243,108:244,109:zt,110:Wt,111:Vt,112:qt,113:Xt},{22:Qt,66:Gt,67:jt,86:$t,96:263,102:Kt,105:Yt,107:243,108:244,109:zt,110:Wt,111:Vt,112:qt,113:Xt},{26:z,52:W,66:V,67:q,91:X,97:264,105:J,106:Z,109:tt,111:et,112:nt,115:100,117:98,122:rt,123:it,124:at,125:ot,126:st,127:ct},t(ht,[2,102]),{84:[1,265]},t(ht,[2,106],{22:[1,266]}),t(ht,[2,107]),t(ht,[2,110]),t(ht,[2,112],{22:[1,267]}),t(ht,[2,113]),t(At,[2,58]),t(At,[2,59]),{22:gt,24:mt,26:yt,38:vt,42:bt,52:W,58:[1,268],66:V,67:q,73:_t,81:wt,83:201,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},t(At,[2,66]),t(At,[2,61]),t(At,[2,62]),t(At,[2,63]),{66:[1,269]},t(At,[2,65]),t(At,[2,67]),{22:gt,24:mt,26:yt,38:vt,42:bt,52:W,66:V,67:q,72:[1,270],73:_t,81:wt,83:201,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},t(At,[2,69]),t(At,[2,70]),t(At,[2,72]),t(At,[2,71]),t(At,[2,73]),t(Pt,[2,4]),t([22,52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,81]),{22:gt,24:mt,26:yt,38:vt,41:[1,271],42:bt,52:W,66:V,67:q,73:_t,81:wt,83:201,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{18:18,19:19,20:s,21:c,22:l,23:A,32:24,33:25,34:26,35:27,36:28,37:29,38:u,42:[1,272],43:31,44:h,46:f,48:d,50:35,51:45,52:p,54:46,66:g,67:m,86:y,87:v,88:b,89:_,90:w,91:E,95:C,105:x,106:B,109:T,111:k,112:S,116:47,118:I,119:L,120:F,121:N,122:O,123:D,124:M,125:R,126:U,127:P},t(lt,[2,56]),t(ht,[2,115],{106:Jt}),t(Zt,[2,125],{108:274,22:Qt,66:Gt,67:jt,86:$t,102:Kt,105:Yt,109:zt,110:Wt,111:Vt,112:qt,113:Xt}),t(te,[2,127]),t(te,[2,129]),t(te,[2,130]),t(te,[2,131]),t(te,[2,132]),t(te,[2,133]),t(te,[2,134]),t(te,[2,135]),t(te,[2,136]),t(te,[2,137]),t(te,[2,138]),t(te,[2,139]),t(ht,[2,116],{106:Jt}),t(ht,[2,117],{106:Jt}),{22:[1,275]},t(ht,[2,118],{106:Jt}),{22:[1,276]},t(Ht,[2,124]),t(ht,[2,98],{106:Jt}),t(ht,[2,99],{106:Jt}),t(ht,[2,100],{115:100,117:178,26:z,52:W,66:V,67:q,91:X,105:J,106:Z,109:tt,111:et,112:nt,122:rt,123:it,124:at,125:ot,126:st,127:ct}),t(ht,[2,104]),{101:[1,277]},{101:[1,278]},{58:[1,279]},{68:[1,280]},{72:[1,281]},{9:282,20:j,21:$,23:K},t(G,[2,42]),{22:Qt,66:Gt,67:jt,86:$t,102:Kt,105:Yt,107:283,108:244,109:zt,110:Wt,111:Vt,112:qt,113:Xt},t(te,[2,128]),{26:z,52:W,66:V,67:q,91:X,97:284,105:J,106:Z,109:tt,111:et,112:nt,115:100,117:98,122:rt,123:it,124:at,125:ot,126:st,127:ct},{26:z,52:W,66:V,67:q,91:X,97:285,105:J,106:Z,109:tt,111:et,112:nt,115:100,117:98,122:rt,123:it,124:at,125:ot,126:st,127:ct},t(ht,[2,108]),t(ht,[2,114]),t(At,[2,60]),{22:gt,24:mt,26:yt,38:vt,39:286,42:bt,52:W,66:V,67:q,73:_t,81:wt,83:140,84:Et,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},t(At,[2,68]),t(Dt,o,{17:287}),t(Zt,[2,126],{108:274,22:Qt,66:Gt,67:jt,86:$t,102:Kt,105:Yt,109:zt,110:Wt,111:Vt,112:qt,113:Xt}),t(ht,[2,121],{115:100,117:178,22:[1,288],26:z,52:W,66:V,67:q,91:X,105:J,106:Z,109:tt,111:et,112:nt,122:rt,123:it,124:at,125:ot,126:st,127:ct}),t(ht,[2,122],{115:100,117:178,22:[1,289],26:z,52:W,66:V,67:q,91:X,105:J,106:Z,109:tt,111:et,112:nt,122:rt,123:it,124:at,125:ot,126:st,127:ct}),{22:gt,24:mt,26:yt,38:vt,41:[1,290],42:bt,52:W,66:V,67:q,73:_t,81:wt,83:201,85:151,86:Ct,87:xt,88:Bt,89:Tt,90:kt,91:St,92:It,94:142,95:Lt,105:J,106:Z,109:Ft,111:et,112:nt,113:Nt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{18:18,19:19,20:s,21:c,22:l,23:A,32:24,33:25,34:26,35:27,36:28,37:29,38:u,42:[1,291],43:31,44:h,46:f,48:d,50:35,51:45,52:p,54:46,66:g,67:m,86:y,87:v,88:b,89:_,90:w,91:E,95:C,105:x,106:B,109:T,111:k,112:S,116:47,118:I,119:L,120:F,121:N,122:O,123:D,124:M,125:R,126:U,127:P},{22:Qt,66:Gt,67:jt,86:$t,96:292,102:Kt,105:Yt,107:243,108:244,109:zt,110:Wt,111:Vt,112:qt,113:Xt},{22:Qt,66:Gt,67:jt,86:$t,96:293,102:Kt,105:Yt,107:243,108:244,109:zt,110:Wt,111:Vt,112:qt,113:Xt},t(At,[2,64]),t(G,[2,41]),t(ht,[2,119],{106:Jt}),t(ht,[2,120],{106:Jt})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],132:[2,7]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,A=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,_,w,E,C,x,B,T,k,S={};;){if(w=n[n.length-1],this.defaultActions[w]?E=this.defaultActions[w]:(null==b&&(b=v()),E=o[w]&&o[w][b]),void 0===E||!E.length||!E[0]){var I="";for(x in k=[],o[w])this.terminals_[x]&&x>u&&k.push("'"+this.terminals_[x]+"'");I=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:k})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(E[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(E[1]),b=null,_?(b=_,_=null):(l=d.yyleng,s=d.yytext,c=d.yylineno,m=d.yylloc,A>0&&A--);break;case 2:if(B=this.productions_[E[1]][1],S.$=i[i.length-B],S._$={first_line:a[a.length-(B||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(B||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(B||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(S,[s,l,c,p.yy,E[1],i,a].concat(f))))return C;B&&(n=n.slice(0,-1*B*2),i=i.slice(0,-1*B),a=a.slice(0,-1*B)),n.push(this.productions_[E[1]][0]),i.push(S.$),a.push(S._$),T=o[n[n.length-2]][n[n.length-1]],n.push(T);break;case 3:return!0}}return!0}},ne={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:case 6:break;case 7:return this.begin("acc_title"),44;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),46;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:case 15:case 24:case 27:case 30:case 33:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 16:return"STR";case 17:return 86;case 18:return 95;case 19:return 87;case 20:return 104;case 21:return 88;case 22:return 89;case 23:this.begin("href");break;case 25:return 100;case 26:this.begin("callbackname");break;case 28:this.popState(),this.begin("callbackargs");break;case 29:return 98;case 31:return 99;case 32:this.begin("click");break;case 34:return 90;case 35:case 36:return t.lex.firstGraph()&&this.begin("dir"),24;case 37:return 38;case 38:return 42;case 39:case 40:case 41:case 42:return 101;case 43:return this.popState(),25;case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:return this.popState(),26;case 54:return 118;case 55:return 119;case 56:return 120;case 57:return 121;case 58:return 105;case 59:return 111;case 60:return 53;case 61:return 67;case 62:return 52;case 63:return 20;case 64:return 106;case 65:return 126;case 66:case 67:case 68:return 82;case 69:case 70:case 71:return 81;case 72:return 59;case 73:return 60;case 74:return 61;case 75:return 62;case 76:return 63;case 77:return 64;case 78:return 65;case 79:return 69;case 80:return 70;case 81:return 55;case 82:return 56;case 83:return 109;case 84:return 112;case 85:return 127;case 86:return 124;case 87:return 113;case 88:case 89:return 125;case 90:return 114;case 91:return 73;case 92:return 92;case 93:return"SEP";case 94:return 91;case 95:return 66;case 96:return 75;case 97:return 74;case 98:return 77;case 99:return 76;case 100:return 122;case 101:return 123;case 102:return 68;case 103:return 57;case 104:return 58;case 105:return 40;case 106:return 41;case 107:return 71;case 108:return 72;case 109:return 133;case 110:return 21;case 111:return 22;case 112:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\])/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[30,31],inclusive:!1},callbackname:{rules:[27,28,29],inclusive:!1},href:{rules:[24,25],inclusive:!1},click:{rules:[33,34],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[43,44,45,46,47,48,49,50,51,52,53],inclusive:!1},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,5,6,7,9,11,14,17,18,19,20,21,22,23,26,32,35,36,37,38,39,40,41,42,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112],inclusive:!0}}};function re(){this.yy={}}return ee.lexer=ne,re.prototype=ee,ee.Parser=re,new re}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(t[0],process.exit(1));var r=n(5354).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},9959:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,3],n=[1,5],r=[7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],i=[1,15],a=[1,16],o=[1,17],s=[1,18],c=[1,19],l=[1,20],A=[1,21],u=[1,22],h=[1,23],f=[1,24],d=[1,25],p=[1,26],g=[1,28],m=[1,30],y=[1,33],v=[5,7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],b={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,excludes:16,includes:17,todayMarker:18,title:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,clickStatement:26,taskTxt:27,taskData:28,openDirective:29,typeDirective:30,closeDirective:31,":":32,argDirective:33,click:34,callbackname:35,callbackargs:36,href:37,clickStatementDebug:38,open_directive:39,type_directive:40,arg_directive:41,close_directive:42,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"excludes",17:"includes",18:"todayMarker",19:"title",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"taskTxt",28:"taskData",32:":",34:"click",35:"callbackname",36:"callbackargs",37:"href",39:"open_directive",40:"type_directive",41:"arg_directive",42:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[26,2],[26,3],[26,3],[26,4],[26,3],[26,4],[26,2],[38,2],[38,3],[38,3],[38,4],[38,3],[38,4],[38,2],[29,1],[30,1],[33,1],[31,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 2:return a[s-1];case 3:case 7:case 8:this.$=[];break;case 4:a[s-1].push(a[s]),this.$=a[s-1];break;case 5:case 6:this.$=a[s];break;case 9:r.setDateFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 10:r.enableInclusiveEndDates(),this.$=a[s].substr(18);break;case 11:r.TopAxis(),this.$=a[s].substr(8);break;case 12:r.setAxisFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 13:r.setExcludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 14:r.setIncludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 15:r.setTodayMarker(a[s].substr(12)),this.$=a[s].substr(12);break;case 16:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 17:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 18:case 19:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 20:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 22:r.addTask(a[s-1],a[s]),this.$="task";break;case 26:this.$=a[s-1],r.setClickEvent(a[s-1],a[s],null);break;case 27:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 28:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],null),r.setLink(a[s-2],a[s]);break;case 29:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setLink(a[s-3],a[s]);break;case 30:this.$=a[s-2],r.setClickEvent(a[s-2],a[s],null),r.setLink(a[s-2],a[s-1]);break;case 31:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-1],a[s]),r.setLink(a[s-3],a[s-2]);break;case 32:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 33:case 39:this.$=a[s-1]+" "+a[s];break;case 34:case 35:case 37:this.$=a[s-2]+" "+a[s-1]+" "+a[s];break;case 36:case 38:this.$=a[s-3]+" "+a[s-2]+" "+a[s-1]+" "+a[s];break;case 40:r.parseDirective("%%{","open_directive");break;case 41:r.parseDirective(a[s],"type_directive");break;case 42:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 43:r.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:e,29:4,39:n},{1:[3]},{3:6,4:2,5:e,29:4,39:n},t(r,[2,3],{6:7}),{30:8,40:[1,9]},{40:[2,40]},{1:[2,1]},{4:29,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:i,13:a,14:o,15:s,16:c,17:l,18:A,19:u,20:h,22:f,24:d,25:p,26:27,27:g,29:4,34:m,39:n},{31:31,32:[1,32],42:y},t([32,42],[2,41]),t(r,[2,8],{1:[2,2]}),t(r,[2,4]),{4:29,10:34,12:i,13:a,14:o,15:s,16:c,17:l,18:A,19:u,20:h,22:f,24:d,25:p,26:27,27:g,29:4,34:m,39:n},t(r,[2,6]),t(r,[2,7]),t(r,[2,9]),t(r,[2,10]),t(r,[2,11]),t(r,[2,12]),t(r,[2,13]),t(r,[2,14]),t(r,[2,15]),t(r,[2,16]),{21:[1,35]},{23:[1,36]},t(r,[2,19]),t(r,[2,20]),t(r,[2,21]),{28:[1,37]},t(r,[2,23]),{35:[1,38],37:[1,39]},{11:[1,40]},{33:41,41:[1,42]},{11:[2,43]},t(r,[2,5]),t(r,[2,17]),t(r,[2,18]),t(r,[2,22]),t(r,[2,26],{36:[1,43],37:[1,44]}),t(r,[2,32],{35:[1,45]}),t(v,[2,24]),{31:46,42:y},{42:[2,42]},t(r,[2,27],{37:[1,47]}),t(r,[2,28]),t(r,[2,30],{36:[1,48]}),{11:[1,49]},t(r,[2,29]),t(r,[2,31]),t(v,[2,25])],defaultActions:{5:[2,40],6:[2,1],33:[2,43],42:[2,42]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,A=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,_,w,E,C,x,B,T,k,S={};;){if(w=n[n.length-1],this.defaultActions[w]?E=this.defaultActions[w]:(null==b&&(b=v()),E=o[w]&&o[w][b]),void 0===E||!E.length||!E[0]){var I="";for(x in k=[],o[w])this.terminals_[x]&&x>u&&k.push("'"+this.terminals_[x]+"'");I=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:k})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(E[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(E[1]),b=null,_?(b=_,_=null):(l=d.yyleng,s=d.yytext,c=d.yylineno,m=d.yylloc,A>0&&A--);break;case 2:if(B=this.productions_[E[1]][1],S.$=i[i.length-B],S._$={first_line:a[a.length-(B||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(B||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(B||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(S,[s,l,c,p.yy,E[1],i,a].concat(f))))return C;B&&(n=n.slice(0,-1*B*2),i=i.slice(0,-1*B),a=a.slice(0,-1*B)),n.push(this.productions_[E[1]][0]),i.push(S.$),a.push(S._$),T=o[n[n.length-2]][n[n.length-1]],n.push(T);break;case 3:return!0}}return!0}},_={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),39;case 1:return this.begin("type_directive"),40;case 2:return this.popState(),this.begin("arg_directive"),32;case 3:return this.popState(),this.popState(),42;case 4:return 41;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 20:case 23:case 26:case 29:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:case 13:case 14:case 16:case 17:case 18:break;case 15:return 11;case 19:this.begin("href");break;case 21:return 37;case 22:this.begin("callbackname");break;case 24:this.popState(),this.begin("callbackargs");break;case 25:return 35;case 27:return 36;case 28:this.begin("click");break;case 30:return 34;case 31:return 5;case 32:return 12;case 33:return 13;case 34:return 14;case 35:return 15;case 36:return 17;case 37:return 16;case 38:return 18;case 39:return"date";case 40:return 19;case 41:return"accDescription";case 42:return 25;case 43:return 27;case 44:return 28;case 45:return 32;case 46:return 7;case 47:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[26,27],inclusive:!1},callbackname:{rules:[23,24,25],inclusive:!1},href:{rules:[20,21],inclusive:!1},click:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,22,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],inclusive:!0}}};function w(){this.yy={}}return b.lexer=_,w.prototype=b,b.Parser=w,new w}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(t[0],process.exit(1));var r=n(6878).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},2553:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,4],n=[1,7],r=[1,5],i=[1,9],a=[1,6],o=[2,6],s=[1,16],c=[6,8,14,20,22,24,25,27,29,32,35,39,49,53],l=[8,14,20,22,24,25,27,29,32,35,39],A=[8,13,14,20,22,24,25,27,29,32,35,39],u=[1,26],h=[6,8,14,49,53],f=[8,14,53],d=[1,64],p=[1,65],g=[1,66],m=[8,14,33,38,41,53],y={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,mergeStatement:18,cherryPickStatement:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,branchStatement:26,CHECKOUT:27,ID:28,BRANCH:29,ORDER:30,NUM:31,CHERRY_PICK:32,COMMIT_ID:33,STR:34,MERGE:35,COMMIT_TYPE:36,commitType:37,COMMIT_TAG:38,COMMIT:39,commit_arg:40,COMMIT_MSG:41,NORMAL:42,REVERSE:43,HIGHLIGHT:44,openDirective:45,typeDirective:46,closeDirective:47,argDirective:48,open_directive:49,type_directive:50,arg_directive:51,close_directive:52,";":53,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"CHECKOUT",28:"ID",29:"BRANCH",30:"ORDER",31:"NUM",32:"CHERRY_PICK",33:"COMMIT_ID",34:"STR",35:"MERGE",36:"COMMIT_TYPE",38:"COMMIT_TAG",39:"COMMIT",41:"COMMIT_MSG",42:"NORMAL",43:"REVERSE",44:"HIGHLIGHT",49:"open_directive",50:"type_directive",51:"arg_directive",52:"close_directive",53:";"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,1],[16,1],[16,2],[16,2],[16,1],[16,1],[16,1],[16,2],[26,2],[26,4],[19,3],[18,2],[18,4],[18,4],[18,4],[18,6],[18,6],[18,6],[18,6],[18,6],[18,6],[18,8],[18,8],[18,8],[18,8],[18,8],[18,8],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[40,0],[40,1],[37,1],[37,1],[37,1],[5,3],[5,5],[45,1],[46,1],[48,1],[47,1],[4,1],[4,1],[4,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return a[s];case 4:return a[s-1];case 5:return r.setDirection(a[s-3]),a[s-1];case 7:r.setOptions(a[s-1]),this.$=a[s];break;case 8:a[s-1]+=a[s],this.$=a[s-1];break;case 10:this.$=[];break;case 11:a[s-1].push(a[s]),this.$=a[s-1];break;case 12:this.$=a[s-1];break;case 17:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 18:case 19:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 20:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 22:r.checkout(a[s]);break;case 23:r.branch(a[s]);break;case 24:r.branch(a[s-2],a[s]);break;case 25:r.cherryPick(a[s]);break;case 26:r.merge(a[s],"","","");break;case 27:r.merge(a[s-2],a[s],"","");break;case 28:r.merge(a[s-2],"",a[s],"");break;case 29:r.merge(a[s-2],"","",a[s]);break;case 30:r.merge(a[s-4],a[s],"",a[s-2]);break;case 31:r.merge(a[s-4],"",a[s],a[s-2]);break;case 32:r.merge(a[s-4],"",a[s-2],a[s]);break;case 33:r.merge(a[s-4],a[s-2],a[s],"");break;case 34:r.merge(a[s-4],a[s-2],"",a[s]);break;case 35:r.merge(a[s-4],a[s],a[s-2],"");break;case 36:r.merge(a[s-6],a[s-4],a[s-2],a[s]);break;case 37:r.merge(a[s-6],a[s],a[s-4],a[s-2]);break;case 38:r.merge(a[s-6],a[s-4],a[s],a[s-2]);break;case 39:r.merge(a[s-6],a[s-2],a[s-4],a[s]);break;case 40:r.merge(a[s-6],a[s],a[s-2],a[s-4]);break;case 41:r.merge(a[s-6],a[s-2],a[s],a[s-4]);break;case 42:r.commit(a[s]);break;case 43:r.commit("","",r.commitType.NORMAL,a[s]);break;case 44:r.commit("","",a[s],"");break;case 45:r.commit("","",a[s],a[s-2]);break;case 46:r.commit("","",a[s-2],a[s]);break;case 47:r.commit("",a[s],r.commitType.NORMAL,"");break;case 48:r.commit("",a[s-2],r.commitType.NORMAL,a[s]);break;case 49:r.commit("",a[s],r.commitType.NORMAL,a[s-2]);break;case 50:r.commit("",a[s-2],a[s],"");break;case 51:r.commit("",a[s],a[s-2],"");break;case 52:r.commit("",a[s-4],a[s-2],a[s]);break;case 53:r.commit("",a[s-4],a[s],a[s-2]);break;case 54:r.commit("",a[s-2],a[s-4],a[s]);break;case 55:r.commit("",a[s],a[s-4],a[s-2]);break;case 56:r.commit("",a[s],a[s-2],a[s-4]);break;case 57:r.commit("",a[s-2],a[s],a[s-4]);break;case 58:r.commit(a[s],"",r.commitType.NORMAL,"");break;case 59:r.commit(a[s],"",r.commitType.NORMAL,a[s-2]);break;case 60:r.commit(a[s-2],"",r.commitType.NORMAL,a[s]);break;case 61:r.commit(a[s-2],"",a[s],"");break;case 62:r.commit(a[s],"",a[s-2],"");break;case 63:r.commit(a[s],a[s-2],r.commitType.NORMAL,"");break;case 64:r.commit(a[s-2],a[s],r.commitType.NORMAL,"");break;case 65:r.commit(a[s-4],"",a[s-2],a[s]);break;case 66:r.commit(a[s-4],"",a[s],a[s-2]);break;case 67:r.commit(a[s-2],"",a[s-4],a[s]);break;case 68:r.commit(a[s],"",a[s-4],a[s-2]);break;case 69:r.commit(a[s],"",a[s-2],a[s-4]);break;case 70:r.commit(a[s-2],"",a[s],a[s-4]);break;case 71:r.commit(a[s-4],a[s],a[s-2],"");break;case 72:r.commit(a[s-4],a[s-2],a[s],"");break;case 73:r.commit(a[s-2],a[s],a[s-4],"");break;case 74:r.commit(a[s],a[s-2],a[s-4],"");break;case 75:r.commit(a[s],a[s-4],a[s-2],"");break;case 76:r.commit(a[s-2],a[s-4],a[s],"");break;case 77:r.commit(a[s-4],a[s],r.commitType.NORMAL,a[s-2]);break;case 78:r.commit(a[s-4],a[s-2],r.commitType.NORMAL,a[s]);break;case 79:r.commit(a[s-2],a[s],r.commitType.NORMAL,a[s-4]);break;case 80:r.commit(a[s],a[s-2],r.commitType.NORMAL,a[s-4]);break;case 81:r.commit(a[s],a[s-4],r.commitType.NORMAL,a[s-2]);break;case 82:r.commit(a[s-2],a[s-4],r.commitType.NORMAL,a[s]);break;case 83:r.commit(a[s-6],a[s-4],a[s-2],a[s]);break;case 84:r.commit(a[s-6],a[s-4],a[s],a[s-2]);break;case 85:r.commit(a[s-6],a[s-2],a[s-4],a[s]);break;case 86:r.commit(a[s-6],a[s],a[s-4],a[s-2]);break;case 87:r.commit(a[s-6],a[s-2],a[s],a[s-4]);break;case 88:r.commit(a[s-6],a[s],a[s-2],a[s-4]);break;case 89:r.commit(a[s-4],a[s-6],a[s-2],a[s]);break;case 90:r.commit(a[s-4],a[s-6],a[s],a[s-2]);break;case 91:r.commit(a[s-2],a[s-6],a[s-4],a[s]);break;case 92:r.commit(a[s],a[s-6],a[s-4],a[s-2]);break;case 93:r.commit(a[s-2],a[s-6],a[s],a[s-4]);break;case 94:r.commit(a[s],a[s-6],a[s-2],a[s-4]);break;case 95:r.commit(a[s],a[s-4],a[s-2],a[s-6]);break;case 96:r.commit(a[s-2],a[s-4],a[s],a[s-6]);break;case 97:r.commit(a[s],a[s-2],a[s-4],a[s-6]);break;case 98:r.commit(a[s-2],a[s],a[s-4],a[s-6]);break;case 99:r.commit(a[s-4],a[s-2],a[s],a[s-6]);break;case 100:r.commit(a[s-4],a[s],a[s-2],a[s-6]);break;case 101:r.commit(a[s-2],a[s-4],a[s-6],a[s]);break;case 102:r.commit(a[s],a[s-4],a[s-6],a[s-2]);break;case 103:r.commit(a[s-2],a[s],a[s-6],a[s-4]);break;case 104:r.commit(a[s],a[s-2],a[s-6],a[s-4]);break;case 105:r.commit(a[s-4],a[s-2],a[s-6],a[s]);break;case 106:r.commit(a[s-4],a[s],a[s-6],a[s-2]);break;case 107:this.$="";break;case 108:this.$=a[s];break;case 109:this.$=r.commitType.NORMAL;break;case 110:this.$=r.commitType.REVERSE;break;case 111:this.$=r.commitType.HIGHLIGHT;break;case 114:r.parseDirective("%%{","open_directive");break;case 115:r.parseDirective(a[s],"type_directive");break;case 116:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 117:r.parseDirective("}%%","close_directive","gitGraph")}},table:[{3:1,4:2,5:3,6:e,8:n,14:r,45:8,49:i,53:a},{1:[3]},{3:10,4:2,5:3,6:e,8:n,14:r,45:8,49:i,53:a},{3:11,4:2,5:3,6:e,8:n,14:r,45:8,49:i,53:a},{7:12,8:o,9:[1,13],10:[1,14],11:15,14:s},t(c,[2,118]),t(c,[2,119]),t(c,[2,120]),{46:17,50:[1,18]},{50:[2,114]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:o,11:15,14:s},{9:[1,21]},t(l,[2,10],{12:22,13:[1,23]}),t(A,[2,9]),{9:[1,25],47:24,52:u},t([9,52],[2,115]),{1:[2,3]},{8:[1,27]},{7:28,8:o,11:15,14:s},{8:[2,7],14:[1,31],15:29,16:30,17:32,18:33,19:34,20:[1,35],22:[1,36],24:[1,37],25:[1,38],26:39,27:[1,40],29:[1,44],32:[1,43],35:[1,42],39:[1,41]},t(A,[2,8]),t(h,[2,112]),{48:45,51:[1,46]},t(h,[2,117]),{1:[2,4]},{8:[1,47]},t(l,[2,11]),{4:48,8:n,14:r,53:a},t(l,[2,13]),t(f,[2,14]),t(f,[2,15]),t(f,[2,16]),{21:[1,49]},{23:[1,50]},t(f,[2,19]),t(f,[2,20]),t(f,[2,21]),{28:[1,51]},t(f,[2,107],{40:52,33:[1,55],34:[1,57],36:[1,54],38:[1,53],41:[1,56]}),{28:[1,58]},{33:[1,59]},{28:[1,60]},{47:61,52:u},{52:[2,116]},{1:[2,5]},t(l,[2,12]),t(f,[2,17]),t(f,[2,18]),t(f,[2,22]),t(f,[2,42]),{34:[1,62]},{37:63,42:d,43:p,44:g},{34:[1,67]},{34:[1,68]},t(f,[2,108]),t(f,[2,26],{33:[1,69],36:[1,70],38:[1,71]}),{34:[1,72]},t(f,[2,23],{30:[1,73]}),t(h,[2,113]),t(f,[2,43],{33:[1,75],36:[1,74],41:[1,76]}),t(f,[2,44],{33:[1,78],38:[1,77],41:[1,79]}),t(m,[2,109]),t(m,[2,110]),t(m,[2,111]),t(f,[2,47],{36:[1,81],38:[1,80],41:[1,82]}),t(f,[2,58],{33:[1,85],36:[1,84],38:[1,83]}),{34:[1,86]},{37:87,42:d,43:p,44:g},{34:[1,88]},t(f,[2,25]),{31:[1,89]},{37:90,42:d,43:p,44:g},{34:[1,91]},{34:[1,92]},{34:[1,93]},{34:[1,94]},{34:[1,95]},{34:[1,96]},{37:97,42:d,43:p,44:g},{34:[1,98]},{34:[1,99]},{37:100,42:d,43:p,44:g},{34:[1,101]},t(f,[2,27],{36:[1,102],38:[1,103]}),t(f,[2,28],{33:[1,105],38:[1,104]}),t(f,[2,29],{33:[1,106],36:[1,107]}),t(f,[2,24]),t(f,[2,45],{33:[1,108],41:[1,109]}),t(f,[2,49],{36:[1,110],41:[1,111]}),t(f,[2,59],{33:[1,113],36:[1,112]}),t(f,[2,46],{33:[1,114],41:[1,115]}),t(f,[2,51],{38:[1,116],41:[1,117]}),t(f,[2,62],{33:[1,119],38:[1,118]}),t(f,[2,48],{36:[1,120],41:[1,121]}),t(f,[2,50],{38:[1,122],41:[1,123]}),t(f,[2,63],{36:[1,124],38:[1,125]}),t(f,[2,60],{33:[1,127],36:[1,126]}),t(f,[2,61],{33:[1,129],38:[1,128]}),t(f,[2,64],{36:[1,130],38:[1,131]}),{37:132,42:d,43:p,44:g},{34:[1,133]},{34:[1,134]},{34:[1,135]},{34:[1,136]},{37:137,42:d,43:p,44:g},{34:[1,138]},{34:[1,139]},{37:140,42:d,43:p,44:g},{34:[1,141]},{37:142,42:d,43:p,44:g},{34:[1,143]},{34:[1,144]},{34:[1,145]},{34:[1,146]},{34:[1,147]},{34:[1,148]},{34:[1,149]},{37:150,42:d,43:p,44:g},{34:[1,151]},{34:[1,152]},{34:[1,153]},{37:154,42:d,43:p,44:g},{34:[1,155]},{37:156,42:d,43:p,44:g},{34:[1,157]},{34:[1,158]},{34:[1,159]},{37:160,42:d,43:p,44:g},{34:[1,161]},t(f,[2,33],{38:[1,162]}),t(f,[2,34],{36:[1,163]}),t(f,[2,32],{33:[1,164]}),t(f,[2,35],{38:[1,165]}),t(f,[2,30],{36:[1,166]}),t(f,[2,31],{33:[1,167]}),t(f,[2,56],{41:[1,168]}),t(f,[2,69],{33:[1,169]}),t(f,[2,57],{41:[1,170]}),t(f,[2,80],{36:[1,171]}),t(f,[2,70],{33:[1,172]}),t(f,[2,79],{36:[1,173]}),t(f,[2,55],{41:[1,174]}),t(f,[2,68],{33:[1,175]}),t(f,[2,54],{41:[1,176]}),t(f,[2,74],{38:[1,177]}),t(f,[2,67],{33:[1,178]}),t(f,[2,73],{38:[1,179]}),t(f,[2,53],{41:[1,180]}),t(f,[2,81],{36:[1,181]}),t(f,[2,52],{41:[1,182]}),t(f,[2,75],{38:[1,183]}),t(f,[2,76],{38:[1,184]}),t(f,[2,82],{36:[1,185]}),t(f,[2,66],{33:[1,186]}),t(f,[2,77],{36:[1,187]}),t(f,[2,65],{33:[1,188]}),t(f,[2,71],{38:[1,189]}),t(f,[2,72],{38:[1,190]}),t(f,[2,78],{36:[1,191]}),{34:[1,192]},{37:193,42:d,43:p,44:g},{34:[1,194]},{34:[1,195]},{37:196,42:d,43:p,44:g},{34:[1,197]},{34:[1,198]},{34:[1,199]},{34:[1,200]},{37:201,42:d,43:p,44:g},{34:[1,202]},{37:203,42:d,43:p,44:g},{34:[1,204]},{34:[1,205]},{34:[1,206]},{34:[1,207]},{34:[1,208]},{34:[1,209]},{34:[1,210]},{37:211,42:d,43:p,44:g},{34:[1,212]},{34:[1,213]},{34:[1,214]},{37:215,42:d,43:p,44:g},{34:[1,216]},{37:217,42:d,43:p,44:g},{34:[1,218]},{34:[1,219]},{34:[1,220]},{37:221,42:d,43:p,44:g},t(f,[2,36]),t(f,[2,38]),t(f,[2,37]),t(f,[2,39]),t(f,[2,41]),t(f,[2,40]),t(f,[2,97]),t(f,[2,98]),t(f,[2,95]),t(f,[2,96]),t(f,[2,100]),t(f,[2,99]),t(f,[2,104]),t(f,[2,103]),t(f,[2,102]),t(f,[2,101]),t(f,[2,106]),t(f,[2,105]),t(f,[2,94]),t(f,[2,93]),t(f,[2,92]),t(f,[2,91]),t(f,[2,89]),t(f,[2,90]),t(f,[2,88]),t(f,[2,87]),t(f,[2,86]),t(f,[2,85]),t(f,[2,83]),t(f,[2,84])],defaultActions:{9:[2,114],10:[2,1],11:[2,2],19:[2,3],27:[2,4],46:[2,116],47:[2,5]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,A=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,_,w,E,C,x,B,T,k,S={};;){if(w=n[n.length-1],this.defaultActions[w]?E=this.defaultActions[w]:(null==b&&(b=v()),E=o[w]&&o[w][b]),void 0===E||!E.length||!E[0]){var I="";for(x in k=[],o[w])this.terminals_[x]&&x>u&&k.push("'"+this.terminals_[x]+"'");I=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:k})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(E[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(E[1]),b=null,_?(b=_,_=null):(l=d.yyleng,s=d.yytext,c=d.yylineno,m=d.yylloc,A>0&&A--);break;case 2:if(B=this.productions_[E[1]][1],S.$=i[i.length-B],S._$={first_line:a[a.length-(B||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(B||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(B||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(S,[s,l,c,p.yy,E[1],i,a].concat(f))))return C;B&&(n=n.slice(0,-1*B*2),i=i.slice(0,-1*B),a=a.slice(0,-1*B)),n.push(this.productions_[E[1]][0]),i.push(S.$),a.push(S._$),T=o[n[n.length-2]][n[n.length-1]],n.push(T);break;case 3:return!0}}return!0}},v={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),49;case 1:return this.begin("type_directive"),50;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),52;case 4:return 51;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 35:case 38:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:return 14;case 13:case 14:case 15:break;case 16:return 6;case 17:return 39;case 18:return 33;case 19:return 36;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 38;case 25:return 29;case 26:return 30;case 27:return 35;case 28:return 32;case 29:return 27;case 30:case 31:return 10;case 32:return 9;case 33:return"CARET";case 34:this.begin("options");break;case 36:return 13;case 37:this.begin("string");break;case 39:return 34;case 40:return 31;case 41:return 28;case 42:return 8}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit\b)/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch\b)/i,/^(?:order:)/i,/^(?:merge\b)/i,/^(?:cherry-pick\b)/i,/^(?:checkout\b)/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+)/i,/^(?:[a-zA-Z][-_\./a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},options:{rules:[35,36],inclusive:!1},string:{rules:[38,39],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,37,40,41,42],inclusive:!0}}};function b(){this.yy={}}return y.lexer=v,b.prototype=y,y.Parser=b,new b}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(t[0],process.exit(1));var r=n(8183).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},6765:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[6,9,10],n={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,r,i,a,o){switch(a.length,i){case 1:return r;case 4:break;case 6:r.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},t(e,[2,3]),t(e,[2,4]),t(e,[2,5]),t(e,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,A=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,_,w,E,C,x,B,T,k,S={};;){if(w=n[n.length-1],this.defaultActions[w]?E=this.defaultActions[w]:(null==b&&(b=v()),E=o[w]&&o[w][b]),void 0===E||!E.length||!E[0]){var I="";for(x in k=[],o[w])this.terminals_[x]&&x>u&&k.push("'"+this.terminals_[x]+"'");I=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:k})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(E[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(E[1]),b=null,_?(b=_,_=null):(l=d.yyleng,s=d.yytext,c=d.yylineno,m=d.yylloc,A>0&&A--);break;case 2:if(B=this.productions_[E[1]][1],S.$=i[i.length-B],S._$={first_line:a[a.length-(B||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(B||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(B||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(S,[s,l,c,p.yy,E[1],i,a].concat(f))))return C;B&&(n=n.slice(0,-1*B*2),i=i.slice(0,-1*B),a=a.slice(0,-1*B)),n.push(this.productions_[E[1]][0]),i.push(S.$),a.push(S._$),T=o[n[n.length-2]][n[n.length-1]],n.push(T);break;case 3:return!0}}return!0}},r={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};function i(){this.yy={}}return n.lexer=r,i.prototype=n,n.Parser=i,new i}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(t[0],process.exit(1));var r=n(1428).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},7062:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,4],n=[1,5],r=[1,6],i=[1,7],a=[1,9],o=[1,11,13,15,17,19,20,26,27,28,29],s=[2,5],c=[1,6,11,13,15,17,19,20,26,27,28,29],l=[26,27,28],A=[2,8],u=[1,18],h=[1,19],f=[1,20],d=[1,21],p=[1,22],g=[1,23],m=[1,28],y=[6,26,27,28,29],v={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,openDirective:21,typeDirective:22,closeDirective:23,":":24,argDirective:25,NEWLINE:26,";":27,EOF:28,open_directive:29,type_directive:30,arg_directive:31,close_directive:32,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",24:":",26:"NEWLINE",27:";",28:"EOF",29:"open_directive",30:"type_directive",31:"arg_directive",32:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[21,1],[22,1],[25,1],[23,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 4:r.setShowData(!0);break;case 7:this.$=a[s-1];break;case 9:r.addSection(a[s-1],r.cleanupValue(a[s]));break;case 10:this.$=a[s].trim(),r.setDiagramTitle(this.$);break;case 11:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 12:case 13:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 14:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 21:r.parseDirective("%%{","open_directive");break;case 22:r.parseDirective(a[s],"type_directive");break;case 23:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 24:r.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:e,21:8,26:n,27:r,28:i,29:a},{1:[3]},{3:10,4:2,5:3,6:e,21:8,26:n,27:r,28:i,29:a},{3:11,4:2,5:3,6:e,21:8,26:n,27:r,28:i,29:a},t(o,s,{7:12,8:[1,13]}),t(c,[2,18]),t(c,[2,19]),t(c,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},t(l,A,{21:8,9:16,10:17,5:24,1:[2,3],11:u,13:h,15:f,17:d,19:p,20:g,29:a}),t(o,s,{7:25}),{23:26,24:[1,27],32:m},t([24,32],[2,22]),t(o,[2,6]),{4:29,26:n,27:r,28:i},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},t(l,[2,13]),t(l,[2,14]),t(l,[2,15]),t(l,A,{21:8,9:16,10:17,5:24,1:[2,4],11:u,13:h,15:f,17:d,19:p,20:g,29:a}),t(y,[2,16]),{25:34,31:[1,35]},t(y,[2,24]),t(o,[2,7]),t(l,[2,9]),t(l,[2,10]),t(l,[2,11]),t(l,[2,12]),{23:36,32:m},{32:[2,23]},t(y,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,A=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,_,w,E,C,x,B,T,k,S={};;){if(w=n[n.length-1],this.defaultActions[w]?E=this.defaultActions[w]:(null==b&&(b=v()),E=o[w]&&o[w][b]),void 0===E||!E.length||!E[0]){var I="";for(x in k=[],o[w])this.terminals_[x]&&x>u&&k.push("'"+this.terminals_[x]+"'");I=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:k})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(E[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(E[1]),b=null,_?(b=_,_=null):(l=d.yyleng,s=d.yytext,c=d.yylineno,m=d.yylloc,A>0&&A--);break;case 2:if(B=this.productions_[E[1]][1],S.$=i[i.length-B],S._$={first_line:a[a.length-(B||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(B||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(B||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(S,[s,l,c,p.yy,E[1],i,a].concat(f))))return C;B&&(n=n.slice(0,-1*B*2),i=i.slice(0,-1*B),a=a.slice(0,-1*B)),n.push(this.productions_[E[1]][0]),i.push(S.$),a.push(S._$),T=o[n[n.length-2]][n[n.length-1]],n.push(T);break;case 3:return!0}}return!0}},b={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),29;case 1:return this.begin("type_directive"),30;case 2:return this.popState(),this.begin("arg_directive"),24;case 3:return this.popState(),this.popState(),32;case 4:return 31;case 5:case 6:case 8:case 9:break;case 7:return 26;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:return this.begin("acc_title"),15;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),17;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:case 20:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:this.begin("string");break;case 21:return"txt";case 22:return 6;case 23:return 8;case 24:return"value";case 25:return 28}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[20,21],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,14,16,19,22,23,24,25],inclusive:!0}}};function _(){this.yy={}}return v.lexer=b,_.prototype=v,v.Parser=_,new _}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(t[0],process.exit(1));var r=n(4551).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},3176:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,3],n=[1,5],r=[1,6],i=[1,7],a=[1,8],o=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],s=[1,22],c=[2,13],l=[1,26],A=[1,27],u=[1,28],h=[1,29],f=[1,30],d=[1,31],p=[1,24],g=[1,32],m=[1,33],y=[1,36],v=[71,72],b=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],_=[1,56],w=[1,57],E=[1,58],C=[1,59],x=[1,60],B=[1,61],T=[1,62],k=[62,63],S=[1,74],I=[1,70],L=[1,71],F=[1,72],N=[1,73],O=[1,75],D=[1,79],M=[1,80],R=[1,77],U=[1,78],P=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],H={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,requirementDef:23,elementDef:24,relationshipDef:25,requirementType:26,requirementName:27,STRUCT_START:28,requirementBody:29,ID:30,COLONSEP:31,id:32,TEXT:33,text:34,RISK:35,riskLevel:36,VERIFYMTHD:37,verifyType:38,STRUCT_STOP:39,REQUIREMENT:40,FUNCTIONAL_REQUIREMENT:41,INTERFACE_REQUIREMENT:42,PERFORMANCE_REQUIREMENT:43,PHYSICAL_REQUIREMENT:44,DESIGN_CONSTRAINT:45,LOW_RISK:46,MED_RISK:47,HIGH_RISK:48,VERIFY_ANALYSIS:49,VERIFY_DEMONSTRATION:50,VERIFY_INSPECTION:51,VERIFY_TEST:52,ELEMENT:53,elementName:54,elementBody:55,TYPE:56,type:57,DOCREF:58,ref:59,END_ARROW_L:60,relationship:61,LINE:62,END_ARROW_R:63,CONTAINS:64,COPIES:65,DERIVES:66,SATISFIES:67,VERIFIES:68,REFINES:69,TRACES:70,unqString:71,qString:72,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",28:"STRUCT_START",30:"ID",31:"COLONSEP",33:"TEXT",35:"RISK",37:"VERIFYMTHD",39:"STRUCT_STOP",40:"REQUIREMENT",41:"FUNCTIONAL_REQUIREMENT",42:"INTERFACE_REQUIREMENT",43:"PERFORMANCE_REQUIREMENT",44:"PHYSICAL_REQUIREMENT",45:"DESIGN_CONSTRAINT",46:"LOW_RISK",47:"MED_RISK",48:"HIGH_RISK",49:"VERIFY_ANALYSIS",50:"VERIFY_DEMONSTRATION",51:"VERIFY_INSPECTION",52:"VERIFY_TEST",53:"ELEMENT",56:"TYPE",58:"DOCREF",60:"END_ARROW_L",62:"LINE",63:"END_ARROW_R",64:"CONTAINS",65:"COPIES",66:"DERIVES",67:"SATISFIES",68:"VERIFIES",69:"REFINES",70:"TRACES",71:"unqString",72:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[4,2],[4,2],[4,1],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[23,5],[29,5],[29,5],[29,5],[29,5],[29,2],[29,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[36,1],[36,1],[36,1],[38,1],[38,1],[38,1],[38,1],[24,5],[55,5],[55,5],[55,2],[55,1],[25,5],[25,5],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[27,1],[27,1],[32,1],[32,1],[34,1],[34,1],[54,1],[54,1],[57,1],[57,1],[59,1],[59,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 6:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 7:case 8:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 9:r.parseDirective("%%{","open_directive");break;case 10:r.parseDirective(a[s],"type_directive");break;case 11:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 12:r.parseDirective("}%%","close_directive","pie");break;case 13:this.$=[];break;case 19:r.addRequirement(a[s-3],a[s-4]);break;case 20:r.setNewReqId(a[s-2]);break;case 21:r.setNewReqText(a[s-2]);break;case 22:r.setNewReqRisk(a[s-2]);break;case 23:r.setNewReqVerifyMethod(a[s-2]);break;case 26:this.$=r.RequirementType.REQUIREMENT;break;case 27:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 28:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 29:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 30:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 31:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 32:this.$=r.RiskLevel.LOW_RISK;break;case 33:this.$=r.RiskLevel.MED_RISK;break;case 34:this.$=r.RiskLevel.HIGH_RISK;break;case 35:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 36:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 37:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 38:this.$=r.VerifyType.VERIFY_TEST;break;case 39:r.addElement(a[s-3]);break;case 40:r.setNewElementType(a[s-2]);break;case 41:r.setNewElementDocRef(a[s-2]);break;case 44:r.addRelationship(a[s-2],a[s],a[s-4]);break;case 45:r.addRelationship(a[s-2],a[s-4],a[s]);break;case 46:this.$=r.Relationships.CONTAINS;break;case 47:this.$=r.Relationships.COPIES;break;case 48:this.$=r.Relationships.DERIVES;break;case 49:this.$=r.Relationships.SATISFIES;break;case 50:this.$=r.Relationships.VERIFIES;break;case 51:this.$=r.Relationships.REFINES;break;case 52:this.$=r.Relationships.TRACES}},table:[{3:1,4:2,6:e,9:4,14:n,16:r,18:i,19:a},{1:[3]},{3:10,4:2,5:[1,9],6:e,9:4,14:n,16:r,18:i,19:a},{5:[1,11]},{10:12,20:[1,13]},{15:[1,14]},{17:[1,15]},t(o,[2,8]),{20:[2,9]},{3:16,4:2,6:e,9:4,14:n,16:r,18:i,19:a},{1:[2,2]},{4:21,5:s,7:17,8:c,9:4,14:n,16:r,18:i,19:a,23:18,24:19,25:20,26:23,32:25,40:l,41:A,42:u,43:h,44:f,45:d,53:p,71:g,72:m},{11:34,12:[1,35],22:y},t([12,22],[2,10]),t(o,[2,6]),t(o,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:s,7:38,8:c,9:4,14:n,16:r,18:i,19:a,23:18,24:19,25:20,26:23,32:25,40:l,41:A,42:u,43:h,44:f,45:d,53:p,71:g,72:m},{4:21,5:s,7:39,8:c,9:4,14:n,16:r,18:i,19:a,23:18,24:19,25:20,26:23,32:25,40:l,41:A,42:u,43:h,44:f,45:d,53:p,71:g,72:m},{4:21,5:s,7:40,8:c,9:4,14:n,16:r,18:i,19:a,23:18,24:19,25:20,26:23,32:25,40:l,41:A,42:u,43:h,44:f,45:d,53:p,71:g,72:m},{4:21,5:s,7:41,8:c,9:4,14:n,16:r,18:i,19:a,23:18,24:19,25:20,26:23,32:25,40:l,41:A,42:u,43:h,44:f,45:d,53:p,71:g,72:m},{4:21,5:s,7:42,8:c,9:4,14:n,16:r,18:i,19:a,23:18,24:19,25:20,26:23,32:25,40:l,41:A,42:u,43:h,44:f,45:d,53:p,71:g,72:m},{27:43,71:[1,44],72:[1,45]},{54:46,71:[1,47],72:[1,48]},{60:[1,49],62:[1,50]},t(v,[2,26]),t(v,[2,27]),t(v,[2,28]),t(v,[2,29]),t(v,[2,30]),t(v,[2,31]),t(b,[2,55]),t(b,[2,56]),t(o,[2,4]),{13:51,21:[1,52]},t(o,[2,12]),{1:[2,3]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{8:[2,17]},{8:[2,18]},{28:[1,53]},{28:[2,53]},{28:[2,54]},{28:[1,54]},{28:[2,59]},{28:[2,60]},{61:55,64:_,65:w,66:E,67:C,68:x,69:B,70:T},{61:63,64:_,65:w,66:E,67:C,68:x,69:B,70:T},{11:64,22:y},{22:[2,11]},{5:[1,65]},{5:[1,66]},{62:[1,67]},t(k,[2,46]),t(k,[2,47]),t(k,[2,48]),t(k,[2,49]),t(k,[2,50]),t(k,[2,51]),t(k,[2,52]),{63:[1,68]},t(o,[2,5]),{5:S,29:69,30:I,33:L,35:F,37:N,39:O},{5:D,39:M,55:76,56:R,58:U},{32:81,71:g,72:m},{32:82,71:g,72:m},t(P,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:S,29:87,30:I,33:L,35:F,37:N,39:O},t(P,[2,25]),t(P,[2,39]),{31:[1,88]},{31:[1,89]},{5:D,39:M,55:90,56:R,58:U},t(P,[2,43]),t(P,[2,44]),t(P,[2,45]),{32:91,71:g,72:m},{34:92,71:[1,93],72:[1,94]},{36:95,46:[1,96],47:[1,97],48:[1,98]},{38:99,49:[1,100],50:[1,101],51:[1,102],52:[1,103]},t(P,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},t(P,[2,42]),{5:[1,110]},{5:[1,111]},{5:[2,57]},{5:[2,58]},{5:[1,112]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[1,113]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[2,38]},{5:[1,114]},{5:[2,61]},{5:[2,62]},{5:[1,115]},{5:[2,63]},{5:[2,64]},{5:S,29:116,30:I,33:L,35:F,37:N,39:O},{5:S,29:117,30:I,33:L,35:F,37:N,39:O},{5:S,29:118,30:I,33:L,35:F,37:N,39:O},{5:S,29:119,30:I,33:L,35:F,37:N,39:O},{5:D,39:M,55:120,56:R,58:U},{5:D,39:M,55:121,56:R,58:U},t(P,[2,20]),t(P,[2,21]),t(P,[2,22]),t(P,[2,23]),t(P,[2,40]),t(P,[2,41])],defaultActions:{8:[2,9],10:[2,2],16:[2,1],37:[2,3],38:[2,14],39:[2,15],40:[2,16],41:[2,17],42:[2,18],44:[2,53],45:[2,54],47:[2,59],48:[2,60],52:[2,11],93:[2,57],94:[2,58],96:[2,32],97:[2,33],98:[2,34],100:[2,35],101:[2,36],102:[2,37],103:[2,38],105:[2,61],106:[2,62],108:[2,63],109:[2,64]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,A=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,_,w,E,C,x,B,T,k,S={};;){if(w=n[n.length-1],this.defaultActions[w]?E=this.defaultActions[w]:(null==b&&(b=v()),E=o[w]&&o[w][b]),void 0===E||!E.length||!E[0]){var I="";for(x in k=[],o[w])this.terminals_[x]&&x>u&&k.push("'"+this.terminals_[x]+"'");I=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:k})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(E[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(E[1]),b=null,_?(b=_,_=null):(l=d.yyleng,s=d.yytext,c=d.yylineno,m=d.yylloc,A>0&&A--);break;case 2:if(B=this.productions_[E[1]][1],S.$=i[i.length-B],S._$={first_line:a[a.length-(B||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(B||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(B||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(S,[s,l,c,p.yy,E[1],i,a].concat(f))))return C;B&&(n=n.slice(0,-1*B*2),i=i.slice(0,-1*B),a=a.slice(0,-1*B)),n.push(this.productions_[E[1]][0]),i.push(S.$),a.push(S._$),T=o[n[n.length-2]][n[n.length-1]],n.push(T);break;case 3:return!0}}return!0}},Q={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),19;case 1:return this.begin("type_directive"),20;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),22;case 4:return 21;case 5:return"title";case 6:return this.begin("acc_title"),14;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),16;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 53:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 5;case 14:case 15:case 16:break;case 17:return 8;case 18:return 6;case 19:return 28;case 20:return 39;case 21:return 31;case 22:return 30;case 23:return 33;case 24:return 35;case 25:return 37;case 26:return 40;case 27:return 41;case 28:return 42;case 29:return 43;case 30:return 44;case 31:return 45;case 32:return 46;case 33:return 47;case 34:return 48;case 35:return 49;case 36:return 50;case 37:return 51;case 38:return 52;case 39:return 53;case 40:return 64;case 41:return 65;case 42:return 66;case 43:return 67;case 44:return 68;case 45:return 69;case 46:return 70;case 47:return 56;case 48:return 58;case 49:return 60;case 50:return 63;case 51:return 62;case 52:this.begin("string");break;case 54:return"qString";case 55:return e.yytext=e.yytext.trim(),71}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[53,54],inclusive:!1},INITIAL:{rules:[0,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,55],inclusive:!0}}};function G(){this.yy={}}return H.lexer=Q,G.prototype=H,H.Parser=G,new G}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(t[0],process.exit(1));var r=n(8800).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},6876:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,2],n=[1,3],r=[1,5],i=[1,7],a=[2,5],o=[1,15],s=[1,17],c=[1,18],l=[1,19],A=[1,21],u=[1,22],h=[1,23],f=[1,29],d=[1,30],p=[1,31],g=[1,32],m=[1,33],y=[1,34],v=[1,35],b=[1,36],_=[1,37],w=[1,38],E=[1,39],C=[1,40],x=[1,43],B=[1,44],T=[1,45],k=[1,46],S=[1,47],I=[1,48],L=[1,51],F=[1,4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,50,51,52,53,58,59,60,61,69,79],N=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,53,58,59,60,61,69,79],O=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,52,53,58,59,60,61,69,79],D=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,51,53,58,59,60,61,69,79],M=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,50,53,58,59,60,61,69,79],R=[67,68,69],U=[1,121],P=[1,4,5,7,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,50,51,52,53,58,59,60,61,69,79],H={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,openDirective:11,typeDirective:12,closeDirective:13,":":14,argDirective:15,participant:16,actor:17,AS:18,restOfLine:19,participant_actor:20,signal:21,autonumber:22,NUM:23,off:24,activate:25,deactivate:26,note_statement:27,links_statement:28,link_statement:29,properties_statement:30,details_statement:31,title:32,legacy_title:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,loop:39,end:40,rect:41,opt:42,alt:43,else_sections:44,par:45,par_sections:46,critical:47,option_sections:48,break:49,option:50,and:51,else:52,note:53,placement:54,text2:55,over:56,actor_pair:57,links:58,link:59,properties:60,details:61,spaceList:62,",":63,left_of:64,right_of:65,signaltype:66,"+":67,"-":68,ACTOR:69,SOLID_OPEN_ARROW:70,DOTTED_OPEN_ARROW:71,SOLID_ARROW:72,DOTTED_ARROW:73,SOLID_CROSS:74,DOTTED_CROSS:75,SOLID_POINT:76,DOTTED_POINT:77,TXT:78,open_directive:79,type_directive:80,arg_directive:81,close_directive:82,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",14:":",16:"participant",18:"AS",19:"restOfLine",20:"participant_actor",22:"autonumber",23:"NUM",24:"off",25:"activate",26:"deactivate",32:"title",33:"legacy_title",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",39:"loop",40:"end",41:"rect",42:"opt",43:"alt",45:"par",47:"critical",49:"break",50:"option",51:"and",52:"else",53:"note",56:"over",58:"links",59:"link",60:"properties",61:"details",63:",",64:"left_of",65:"right_of",67:"+",68:"-",69:"ACTOR",70:"SOLID_OPEN_ARROW",71:"DOTTED_OPEN_ARROW",72:"SOLID_ARROW",73:"DOTTED_ARROW",74:"SOLID_CROSS",75:"DOTTED_CROSS",76:"SOLID_POINT",77:"DOTTED_POINT",78:"TXT",79:"open_directive",80:"type_directive",81:"arg_directive",82:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,5],[10,3],[10,2],[10,4],[10,3],[10,3],[10,2],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,2],[10,2],[10,1],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[48,1],[48,4],[46,1],[46,4],[44,1],[44,4],[27,4],[27,4],[28,3],[29,3],[30,3],[31,3],[62,2],[62,1],[57,3],[57,1],[54,1],[54,1],[21,5],[21,5],[21,4],[17,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[55,1],[11,1],[12,1],[15,1],[13,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 4:return r.apply(a[s]),a[s];case 5:case 9:this.$=[];break;case 6:a[s-1].push(a[s]),this.$=a[s-1];break;case 7:case 8:case 56:this.$=a[s];break;case 12:a[s-3].type="addParticipant",a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 13:a[s-1].type="addParticipant",this.$=a[s-1];break;case 14:a[s-3].type="addActor",a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 15:a[s-1].type="addActor",this.$=a[s-1];break;case 17:this.$={type:"sequenceIndex",sequenceIndex:Number(a[s-2]),sequenceIndexStep:Number(a[s-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(a[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1]};break;case 22:this.$={type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:a[s-1]};break;case 28:r.setDiagramTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 29:r.setDiagramTitle(a[s].substring(7)),this.$=a[s].substring(7);break;case 30:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 31:case 32:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 33:a[s-1].unshift({type:"loopStart",loopText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.LOOP_START}),a[s-1].push({type:"loopEnd",loopText:a[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 34:a[s-1].unshift({type:"rectStart",color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_START}),a[s-1].push({type:"rectEnd",color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=a[s-1];break;case 35:a[s-1].unshift({type:"optStart",optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_START}),a[s-1].push({type:"optEnd",optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=a[s-1];break;case 36:a[s-1].unshift({type:"altStart",altText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.ALT_START}),a[s-1].push({type:"altEnd",signalType:r.LINETYPE.ALT_END}),this.$=a[s-1];break;case 37:a[s-1].unshift({type:"parStart",parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_START}),a[s-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 38:a[s-1].unshift({type:"criticalStart",criticalText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.CRITICAL_START}),a[s-1].push({type:"criticalEnd",signalType:r.LINETYPE.CRITICAL_END}),this.$=a[s-1];break;case 39:a[s-1].unshift({type:"breakStart",breakText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_START}),a[s-1].push({type:"breakEnd",optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_END}),this.$=a[s-1];break;case 42:this.$=a[s-3].concat([{type:"option",optionText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.CRITICAL_OPTION},a[s]]);break;case 44:this.$=a[s-3].concat([{type:"and",parText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.PAR_AND},a[s]]);break;case 46:this.$=a[s-3].concat([{type:"else",altText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.ALT_ELSE},a[s]]);break;case 47:this.$=[a[s-1],{type:"addNote",placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 48:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:"addNote",placement:r.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 49:this.$=[a[s-1],{type:"addLinks",actor:a[s-1].actor,text:a[s]}];break;case 50:this.$=[a[s-1],{type:"addALink",actor:a[s-1].actor,text:a[s]}];break;case 51:this.$=[a[s-1],{type:"addProperties",actor:a[s-1].actor,text:a[s]}];break;case 52:this.$=[a[s-1],{type:"addDetails",actor:a[s-1].actor,text:a[s]}];break;case 55:this.$=[a[s-2],a[s]];break;case 57:this.$=r.PLACEMENT.LEFTOF;break;case 58:this.$=r.PLACEMENT.RIGHTOF;break;case 59:this.$=[a[s-4],a[s-1],{type:"addMessage",from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1]}];break;case 60:this.$=[a[s-4],a[s-1],{type:"addMessage",from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:a[s-4]}];break;case 61:this.$=[a[s-3],a[s-1],{type:"addMessage",from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 62:this.$={type:"addParticipant",actor:a[s]};break;case 63:this.$=r.LINETYPE.SOLID_OPEN;break;case 64:this.$=r.LINETYPE.DOTTED_OPEN;break;case 65:this.$=r.LINETYPE.SOLID;break;case 66:this.$=r.LINETYPE.DOTTED;break;case 67:this.$=r.LINETYPE.SOLID_CROSS;break;case 68:this.$=r.LINETYPE.DOTTED_CROSS;break;case 69:this.$=r.LINETYPE.SOLID_POINT;break;case 70:this.$=r.LINETYPE.DOTTED_POINT;break;case 71:this.$=r.parseMessage(a[s].trim().substring(1));break;case 72:r.parseDirective("%%{","open_directive");break;case 73:r.parseDirective(a[s],"type_directive");break;case 74:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 75:r.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:e,5:n,6:4,7:r,11:6,79:i},{1:[3]},{3:8,4:e,5:n,6:4,7:r,11:6,79:i},{3:9,4:e,5:n,6:4,7:r,11:6,79:i},{3:10,4:e,5:n,6:4,7:r,11:6,79:i},t([1,4,5,16,20,22,25,26,32,33,34,36,38,39,41,42,43,45,47,49,53,58,59,60,61,69,79],a,{8:11}),{12:12,80:[1,13]},{80:[2,72]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:o,5:s,6:41,9:14,10:16,11:6,16:c,17:42,20:l,21:20,22:A,25:u,26:h,27:24,28:25,29:26,30:27,31:28,32:f,33:d,34:p,36:g,38:m,39:y,41:v,42:b,43:_,45:w,47:E,49:C,53:x,58:B,59:T,60:k,61:S,69:I,79:i},{13:49,14:[1,50],82:L},t([14,82],[2,73]),t(F,[2,6]),{6:41,10:52,11:6,16:c,17:42,20:l,21:20,22:A,25:u,26:h,27:24,28:25,29:26,30:27,31:28,32:f,33:d,34:p,36:g,38:m,39:y,41:v,42:b,43:_,45:w,47:E,49:C,53:x,58:B,59:T,60:k,61:S,69:I,79:i},t(F,[2,8]),t(F,[2,9]),{17:53,69:I},{17:54,69:I},{5:[1,55]},{5:[1,58],23:[1,56],24:[1,57]},{17:59,69:I},{17:60,69:I},{5:[1,61]},{5:[1,62]},{5:[1,63]},{5:[1,64]},{5:[1,65]},t(F,[2,28]),t(F,[2,29]),{35:[1,66]},{37:[1,67]},t(F,[2,32]),{19:[1,68]},{19:[1,69]},{19:[1,70]},{19:[1,71]},{19:[1,72]},{19:[1,73]},{19:[1,74]},t(F,[2,40]),{66:75,70:[1,76],71:[1,77],72:[1,78],73:[1,79],74:[1,80],75:[1,81],76:[1,82],77:[1,83]},{54:84,56:[1,85],64:[1,86],65:[1,87]},{17:88,69:I},{17:89,69:I},{17:90,69:I},{17:91,69:I},t([5,18,63,70,71,72,73,74,75,76,77,78],[2,62]),{5:[1,92]},{15:93,81:[1,94]},{5:[2,75]},t(F,[2,7]),{5:[1,96],18:[1,95]},{5:[1,98],18:[1,97]},t(F,[2,16]),{5:[1,100],23:[1,99]},{5:[1,101]},t(F,[2,20]),{5:[1,102]},{5:[1,103]},t(F,[2,23]),t(F,[2,24]),t(F,[2,25]),t(F,[2,26]),t(F,[2,27]),t(F,[2,30]),t(F,[2,31]),t(N,a,{8:104}),t(N,a,{8:105}),t(N,a,{8:106}),t(O,a,{44:107,8:108}),t(D,a,{46:109,8:110}),t(M,a,{48:111,8:112}),t(N,a,{8:113}),{17:116,67:[1,114],68:[1,115],69:I},t(R,[2,63]),t(R,[2,64]),t(R,[2,65]),t(R,[2,66]),t(R,[2,67]),t(R,[2,68]),t(R,[2,69]),t(R,[2,70]),{17:117,69:I},{17:119,57:118,69:I},{69:[2,57]},{69:[2,58]},{55:120,78:U},{55:122,78:U},{55:123,78:U},{55:124,78:U},t(P,[2,10]),{13:125,82:L},{82:[2,74]},{19:[1,126]},t(F,[2,13]),{19:[1,127]},t(F,[2,15]),{5:[1,128]},t(F,[2,18]),t(F,[2,19]),t(F,[2,21]),t(F,[2,22]),{4:o,5:s,6:41,9:14,10:16,11:6,16:c,17:42,20:l,21:20,22:A,25:u,26:h,27:24,28:25,29:26,30:27,31:28,32:f,33:d,34:p,36:g,38:m,39:y,40:[1,129],41:v,42:b,43:_,45:w,47:E,49:C,53:x,58:B,59:T,60:k,61:S,69:I,79:i},{4:o,5:s,6:41,9:14,10:16,11:6,16:c,17:42,20:l,21:20,22:A,25:u,26:h,27:24,28:25,29:26,30:27,31:28,32:f,33:d,34:p,36:g,38:m,39:y,40:[1,130],41:v,42:b,43:_,45:w,47:E,49:C,53:x,58:B,59:T,60:k,61:S,69:I,79:i},{4:o,5:s,6:41,9:14,10:16,11:6,16:c,17:42,20:l,21:20,22:A,25:u,26:h,27:24,28:25,29:26,30:27,31:28,32:f,33:d,34:p,36:g,38:m,39:y,40:[1,131],41:v,42:b,43:_,45:w,47:E,49:C,53:x,58:B,59:T,60:k,61:S,69:I,79:i},{40:[1,132]},{4:o,5:s,6:41,9:14,10:16,11:6,16:c,17:42,20:l,21:20,22:A,25:u,26:h,27:24,28:25,29:26,30:27,31:28,32:f,33:d,34:p,36:g,38:m,39:y,40:[2,45],41:v,42:b,43:_,45:w,47:E,49:C,52:[1,133],53:x,58:B,59:T,60:k,61:S,69:I,79:i},{40:[1,134]},{4:o,5:s,6:41,9:14,10:16,11:6,16:c,17:42,20:l,21:20,22:A,25:u,26:h,27:24,28:25,29:26,30:27,31:28,32:f,33:d,34:p,36:g,38:m,39:y,40:[2,43],41:v,42:b,43:_,45:w,47:E,49:C,51:[1,135],53:x,58:B,59:T,60:k,61:S,69:I,79:i},{40:[1,136]},{4:o,5:s,6:41,9:14,10:16,11:6,16:c,17:42,20:l,21:20,22:A,25:u,26:h,27:24,28:25,29:26,30:27,31:28,32:f,33:d,34:p,36:g,38:m,39:y,40:[2,41],41:v,42:b,43:_,45:w,47:E,49:C,50:[1,137],53:x,58:B,59:T,60:k,61:S,69:I,79:i},{4:o,5:s,6:41,9:14,10:16,11:6,16:c,17:42,20:l,21:20,22:A,25:u,26:h,27:24,28:25,29:26,30:27,31:28,32:f,33:d,34:p,36:g,38:m,39:y,40:[1,138],41:v,42:b,43:_,45:w,47:E,49:C,53:x,58:B,59:T,60:k,61:S,69:I,79:i},{17:139,69:I},{17:140,69:I},{55:141,78:U},{55:142,78:U},{55:143,78:U},{63:[1,144],78:[2,56]},{5:[2,49]},{5:[2,71]},{5:[2,50]},{5:[2,51]},{5:[2,52]},{5:[1,145]},{5:[1,146]},{5:[1,147]},t(F,[2,17]),t(F,[2,33]),t(F,[2,34]),t(F,[2,35]),t(F,[2,36]),{19:[1,148]},t(F,[2,37]),{19:[1,149]},t(F,[2,38]),{19:[1,150]},t(F,[2,39]),{55:151,78:U},{55:152,78:U},{5:[2,61]},{5:[2,47]},{5:[2,48]},{17:153,69:I},t(P,[2,11]),t(F,[2,12]),t(F,[2,14]),t(O,a,{8:108,44:154}),t(D,a,{8:110,46:155}),t(M,a,{8:112,48:156}),{5:[2,59]},{5:[2,60]},{78:[2,55]},{40:[2,46]},{40:[2,44]},{40:[2,42]}],defaultActions:{7:[2,72],8:[2,1],9:[2,2],10:[2,3],51:[2,75],86:[2,57],87:[2,58],94:[2,74],120:[2,49],121:[2,71],122:[2,50],123:[2,51],124:[2,52],141:[2,61],142:[2,47],143:[2,48],151:[2,59],152:[2,60],153:[2,55],154:[2,46],155:[2,44],156:[2,42]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,A=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,_,w,E,C,x,B,T,k,S={};;){if(w=n[n.length-1],this.defaultActions[w]?E=this.defaultActions[w]:(null==b&&(b=v()),E=o[w]&&o[w][b]),void 0===E||!E.length||!E[0]){var I="";for(x in k=[],o[w])this.terminals_[x]&&x>u&&k.push("'"+this.terminals_[x]+"'");I=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:k})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(E[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(E[1]),b=null,_?(b=_,_=null):(l=d.yyleng,s=d.yytext,c=d.yylineno,m=d.yylloc,A>0&&A--);break;case 2:if(B=this.productions_[E[1]][1],S.$=i[i.length-B],S._$={first_line:a[a.length-(B||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(B||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(B||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(S,[s,l,c,p.yy,E[1],i,a].concat(f))))return C;B&&(n=n.slice(0,-1*B*2),i=i.slice(0,-1*B),a=a.slice(0,-1*B)),n.push(this.productions_[E[1]][0]),i.push(S.$),a.push(S._$),T=o[n[n.length-2]][n[n.length-1]],n.push(T);break;case 3:return!0}}return!0}},Q={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),79;case 1:return this.begin("type_directive"),80;case 2:return this.popState(),this.begin("arg_directive"),14;case 3:return this.popState(),this.popState(),82;case 4:return 81;case 5:case 52:case 65:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return 23;case 12:return this.begin("ID"),16;case 13:return this.begin("ID"),20;case 14:return e.yytext=e.yytext.trim(),this.begin("ALIAS"),69;case 15:return this.popState(),this.popState(),this.begin("LINE"),18;case 16:return this.popState(),this.popState(),5;case 17:return this.begin("LINE"),39;case 18:return this.begin("LINE"),41;case 19:return this.begin("LINE"),42;case 20:return this.begin("LINE"),43;case 21:return this.begin("LINE"),52;case 22:return this.begin("LINE"),45;case 23:return this.begin("LINE"),51;case 24:return this.begin("LINE"),47;case 25:return this.begin("LINE"),50;case 26:return this.begin("LINE"),49;case 27:return this.popState(),19;case 28:return 40;case 29:return 64;case 30:return 65;case 31:return 58;case 32:return 59;case 33:return 60;case 34:return 61;case 35:return 56;case 36:return 53;case 37:return this.begin("ID"),25;case 38:return this.begin("ID"),26;case 39:return 32;case 40:return 33;case 41:return this.begin("acc_title"),34;case 42:return this.popState(),"acc_title_value";case 43:return this.begin("acc_descr"),36;case 44:return this.popState(),"acc_descr_value";case 45:this.begin("acc_descr_multiline");break;case 46:this.popState();break;case 47:return"acc_descr_multiline_value";case 48:return 7;case 49:return 22;case 50:return 24;case 51:return 63;case 53:return e.yytext=e.yytext.trim(),69;case 54:return 72;case 55:return 73;case 56:return 70;case 57:return 71;case 58:return 74;case 59:return 75;case 60:return 76;case 61:return 77;case 62:return 78;case 63:return 67;case 64:return 68;case 66:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:[^\->:\n,;]+?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[46,47],inclusive:!1},acc_descr:{rules:[44],inclusive:!1},acc_title:{rules:[42],inclusive:!1},open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,14],inclusive:!1},ALIAS:{rules:[7,8,15,16],inclusive:!1},LINE:{rules:[7,8,27],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,13,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,45,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66],inclusive:!0}}};function G(){this.yy={}}return H.lexer=Q,G.prototype=H,H.Parser=G,new G}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(t[0],process.exit(1));var r=n(1993).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},3584:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,2],n=[1,3],r=[1,5],i=[1,7],a=[2,5],o=[1,15],s=[1,17],c=[1,19],l=[1,20],A=[1,21],u=[1,22],h=[1,33],f=[1,23],d=[1,24],p=[1,25],g=[1,26],m=[1,27],y=[1,30],v=[1,31],b=[1,32],_=[1,35],w=[1,36],E=[1,37],C=[1,38],x=[1,34],B=[1,41],T=[1,4,5,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],k=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],S=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],I=[4,5,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],L={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,idStatement:11,DESCR:12,"--\x3e":13,HIDE_EMPTY:14,scale:15,WIDTH:16,COMPOSIT_STATE:17,STRUCT_START:18,STRUCT_STOP:19,STATE_DESCR:20,AS:21,ID:22,FORK:23,JOIN:24,CHOICE:25,CONCURRENT:26,note:27,notePosition:28,NOTE_TEXT:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,openDirective:36,typeDirective:37,closeDirective:38,":":39,argDirective:40,direction_tb:41,direction_bt:42,direction_rl:43,direction_lr:44,eol:45,";":46,EDGE_STATE:47,left_of:48,right_of:49,open_directive:50,type_directive:51,arg_directive:52,close_directive:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",12:"DESCR",13:"--\x3e",14:"HIDE_EMPTY",15:"scale",16:"WIDTH",17:"COMPOSIT_STATE",18:"STRUCT_START",19:"STRUCT_STOP",20:"STATE_DESCR",21:"AS",22:"ID",23:"FORK",24:"JOIN",25:"CHOICE",26:"CONCURRENT",27:"note",29:"NOTE_TEXT",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",39:":",41:"direction_tb",42:"direction_bt",43:"direction_rl",44:"direction_lr",46:";",47:"EDGE_STATE",48:"left_of",49:"right_of",50:"open_directive",51:"type_directive",52:"arg_directive",53:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[10,1],[10,2],[10,2],[10,1],[6,3],[6,5],[30,1],[30,1],[30,1],[30,1],[45,1],[45,1],[11,1],[11,1],[28,1],[28,1],[36,1],[37,1],[40,1],[38,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 4:return r.setRootDoc(a[s]),a[s];case 5:this.$=[];break;case 6:"nl"!=a[s]&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 7:case 8:case 39:case 40:this.$=a[s];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:a[s],type:"default",description:""};break;case 11:this.$={stmt:"state",id:a[s-1],type:"default",description:r.trimColon(a[s])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:a[s-2],type:"default",description:""},state2:{stmt:"state",id:a[s],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:a[s-3],type:"default",description:""},state2:{stmt:"state",id:a[s-1],type:"default",description:""},description:a[s].substr(1).trim()};break;case 17:this.$={stmt:"state",id:a[s-3],type:"default",description:"",doc:a[s-1]};break;case 18:var c=a[s],l=a[s-2].trim();if(a[s].match(":")){var A=a[s].split(":");c=A[0],l=[l,A[1]]}this.$={stmt:"state",id:c,type:"default",description:l};break;case 19:this.$={stmt:"state",id:a[s-3],type:"default",description:a[s-5],doc:a[s-1]};break;case 20:this.$={stmt:"state",id:a[s],type:"fork"};break;case 21:this.$={stmt:"state",id:a[s],type:"join"};break;case 22:this.$={stmt:"state",id:a[s],type:"choice"};break;case 23:this.$={stmt:"state",id:r.getDividerId(),type:"divider"};break;case 24:this.$={stmt:"state",id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 28:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 29:case 30:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 33:r.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 34:r.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 35:r.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 36:r.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 43:r.parseDirective("%%{","open_directive");break;case 44:r.parseDirective(a[s],"type_directive");break;case 45:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 46:r.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:e,5:n,6:4,7:r,36:6,50:i},{1:[3]},{3:8,4:e,5:n,6:4,7:r,36:6,50:i},{3:9,4:e,5:n,6:4,7:r,36:6,50:i},{3:10,4:e,5:n,6:4,7:r,36:6,50:i},t([1,4,5,14,15,17,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],a,{8:11}),{37:12,51:[1,13]},{51:[2,43]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:o,5:s,6:28,9:14,10:16,11:18,14:c,15:l,17:A,20:u,22:h,23:f,24:d,25:p,26:g,27:m,30:29,31:y,33:v,35:b,36:6,41:_,42:w,43:E,44:C,47:x,50:i},{38:39,39:[1,40],53:B},t([39,53],[2,44]),t(T,[2,6]),{6:28,10:42,11:18,14:c,15:l,17:A,20:u,22:h,23:f,24:d,25:p,26:g,27:m,30:29,31:y,33:v,35:b,36:6,41:_,42:w,43:E,44:C,47:x,50:i},t(T,[2,8]),t(T,[2,9]),t(T,[2,10],{12:[1,43],13:[1,44]}),t(T,[2,14]),{16:[1,45]},t(T,[2,16],{18:[1,46]}),{21:[1,47]},t(T,[2,20]),t(T,[2,21]),t(T,[2,22]),t(T,[2,23]),{28:48,29:[1,49],48:[1,50],49:[1,51]},t(T,[2,26]),t(T,[2,27]),{32:[1,52]},{34:[1,53]},t(T,[2,30]),t(k,[2,39]),t(k,[2,40]),t(T,[2,33]),t(T,[2,34]),t(T,[2,35]),t(T,[2,36]),t(S,[2,31]),{40:54,52:[1,55]},t(S,[2,46]),t(T,[2,7]),t(T,[2,11]),{11:56,22:h,47:x},t(T,[2,15]),t(I,a,{8:57}),{22:[1,58]},{22:[1,59]},{21:[1,60]},{22:[2,41]},{22:[2,42]},t(T,[2,28]),t(T,[2,29]),{38:61,53:B},{53:[2,45]},t(T,[2,12],{12:[1,62]}),{4:o,5:s,6:28,9:14,10:16,11:18,14:c,15:l,17:A,19:[1,63],20:u,22:h,23:f,24:d,25:p,26:g,27:m,30:29,31:y,33:v,35:b,36:6,41:_,42:w,43:E,44:C,47:x,50:i},t(T,[2,18],{18:[1,64]}),{29:[1,65]},{22:[1,66]},t(S,[2,32]),t(T,[2,13]),t(T,[2,17]),t(I,a,{8:67}),t(T,[2,24]),t(T,[2,25]),{4:o,5:s,6:28,9:14,10:16,11:18,14:c,15:l,17:A,19:[1,68],20:u,22:h,23:f,24:d,25:p,26:g,27:m,30:29,31:y,33:v,35:b,36:6,41:_,42:w,43:E,44:C,47:x,50:i},t(T,[2,19])],defaultActions:{7:[2,43],8:[2,1],9:[2,2],10:[2,3],50:[2,41],51:[2,42],55:[2,45]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,A=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,_,w,E,C,x,B,T,k,S={};;){if(w=n[n.length-1],this.defaultActions[w]?E=this.defaultActions[w]:(null==b&&(b=v()),E=o[w]&&o[w][b]),void 0===E||!E.length||!E[0]){var I="";for(x in k=[],o[w])this.terminals_[x]&&x>u&&k.push("'"+this.terminals_[x]+"'");I=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:k})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(E[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(E[1]),b=null,_?(b=_,_=null):(l=d.yyleng,s=d.yytext,c=d.yylineno,m=d.yylloc,A>0&&A--);break;case 2:if(B=this.productions_[E[1]][1],S.$=i[i.length-B],S._$={first_line:a[a.length-(B||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(B||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(B||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(S,[s,l,c,p.yy,E[1],i,a].concat(f))))return C;B&&(n=n.slice(0,-1*B*2),i=i.slice(0,-1*B),a=a.slice(0,-1*B)),n.push(this.productions_[E[1]][0]),i.push(S.$),a.push(S._$),T=o[n[n.length-2]][n[n.length-1]],n.push(T);break;case 3:return!0}}return!0}},F={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:case 33:return 41;case 1:case 34:return 42;case 2:case 35:return 43;case 3:case 36:return 44;case 4:return this.begin("open_directive"),50;case 5:return this.begin("type_directive"),51;case 6:return this.popState(),this.begin("arg_directive"),39;case 7:return this.popState(),this.popState(),53;case 8:return 52;case 9:case 10:case 12:case 13:case 14:case 15:case 46:case 52:break;case 11:case 66:return 5;case 16:return this.pushState("SCALE"),15;case 17:return 16;case 18:case 24:case 40:case 43:this.popState();break;case 19:return this.begin("acc_title"),31;case 20:return this.popState(),"acc_title_value";case 21:return this.begin("acc_descr"),33;case 22:return this.popState(),"acc_descr_value";case 23:this.begin("acc_descr_multiline");break;case 25:return"acc_descr_multiline_value";case 26:this.pushState("STATE");break;case 27:case 30:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),23;case 28:case 31:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),24;case 29:case 32:return this.popState(),e.yytext=e.yytext.slice(0,-10).trim(),25;case 37:this.begin("STATE_STRING");break;case 38:return this.popState(),this.pushState("STATE_ID"),"AS";case 39:case 54:return this.popState(),"ID";case 41:return"STATE_DESCR";case 42:return 17;case 44:return this.popState(),this.pushState("struct"),18;case 45:return this.popState(),19;case 47:return this.begin("NOTE"),27;case 48:return this.popState(),this.pushState("NOTE_ID"),48;case 49:return this.popState(),this.pushState("NOTE_ID"),49;case 50:this.popState(),this.pushState("FLOATING_NOTE");break;case 51:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 53:return"NOTE_TEXT";case 55:return this.popState(),this.pushState("NOTE_TEXT"),22;case 56:return this.popState(),e.yytext=e.yytext.substr(2).trim(),29;case 57:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),29;case 58:case 59:return 7;case 60:return 14;case 61:return 47;case 62:return 22;case 63:return e.yytext=e.yytext.trim(),12;case 64:return 13;case 65:return 26;case 67:return"INVALID"}},rules:[/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[13,14],inclusive:!1},close_directive:{rules:[13,14],inclusive:!1},arg_directive:{rules:[7,8,13,14],inclusive:!1},type_directive:{rules:[6,7,13,14],inclusive:!1},open_directive:{rules:[5,13,14],inclusive:!1},struct:{rules:[13,14,26,33,34,35,36,45,46,47,61,62,63,64,65],inclusive:!1},FLOATING_NOTE_ID:{rules:[54],inclusive:!1},FLOATING_NOTE:{rules:[51,52,53],inclusive:!1},NOTE_TEXT:{rules:[56,57],inclusive:!1},NOTE_ID:{rules:[55],inclusive:!1},NOTE:{rules:[48,49,50],inclusive:!1},acc_descr_multiline:{rules:[24,25],inclusive:!1},acc_descr:{rules:[22],inclusive:!1},acc_title:{rules:[20],inclusive:!1},SCALE:{rules:[17,18],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[39],inclusive:!1},STATE_STRING:{rules:[40,41],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[13,14,27,28,29,30,31,32,37,38,42,43,44],inclusive:!1},ID:{rules:[13,14],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,12,14,15,16,19,21,23,26,44,47,58,59,60,61,62,63,64,66,67],inclusive:!0}}};function N(){this.yy={}}return L.lexer=F,N.prototype=L,L.Parser=N,new N}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(t[0],process.exit(1));var r=n(3069).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},9763:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,2],n=[1,5],r=[6,9,11,17,18,20,22,23,24,26],i=[1,15],a=[1,16],o=[1,17],s=[1,18],c=[1,19],l=[1,20],A=[1,24],u=[4,6,9,11,17,18,20,22,23,24,26],h={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,taskName:24,taskData:25,open_directive:26,type_directive:27,arg_directive:28,close_directive:29,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",24:"taskName",25:"taskData",26:"open_directive",27:"type_directive",28:"arg_directive",29:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 3:case 7:case 8:this.$=[];break;case 4:a[s-1].push(a[s]),this.$=a[s-1];break;case 5:case 6:this.$=a[s];break;case 11:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 13:case 14:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 15:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 16:r.addTask(a[s-1],a[s]),this.$="task";break;case 18:r.parseDirective("%%{","open_directive");break;case 19:r.parseDirective(a[s],"type_directive");break;case 20:a[s]=a[s].trim().replace(/'/g,'"'),r.parseDirective(a[s],"arg_directive");break;case 21:r.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:e,7:3,12:4,26:n},{1:[3]},t(r,[2,3],{5:6}),{3:7,4:e,7:3,12:4,26:n},{13:8,27:[1,9]},{27:[2,18]},{6:[1,10],7:21,8:11,9:[1,12],10:13,11:[1,14],12:4,17:i,18:a,20:o,22:s,23:c,24:l,26:n},{1:[2,2]},{14:22,15:[1,23],29:A},t([15,29],[2,19]),t(r,[2,8],{1:[2,1]}),t(r,[2,4]),{7:21,10:25,12:4,17:i,18:a,20:o,22:s,23:c,24:l,26:n},t(r,[2,6]),t(r,[2,7]),t(r,[2,11]),{19:[1,26]},{21:[1,27]},t(r,[2,14]),t(r,[2,15]),{25:[1,28]},t(r,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},t(r,[2,5]),t(r,[2,12]),t(r,[2,13]),t(r,[2,16]),t(u,[2,9]),{14:32,29:A},{29:[2,20]},{11:[1,33]},t(u,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s="",c=0,l=0,A=0,u=2,h=1,f=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var m=d.yylloc;a.push(m);var y=d.options&&d.options.ranges;function v(){var t;return"number"!=typeof(t=r.pop()||d.lex()||h)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,_,w,E,C,x,B,T,k,S={};;){if(w=n[n.length-1],this.defaultActions[w]?E=this.defaultActions[w]:(null==b&&(b=v()),E=o[w]&&o[w][b]),void 0===E||!E.length||!E[0]){var I="";for(x in k=[],o[w])this.terminals_[x]&&x>u&&k.push("'"+this.terminals_[x]+"'");I=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:m,expected:k})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+b);switch(E[0]){case 1:n.push(b),i.push(d.yytext),a.push(d.yylloc),n.push(E[1]),b=null,_?(b=_,_=null):(l=d.yyleng,s=d.yytext,c=d.yylineno,m=d.yylloc,A>0&&A--);break;case 2:if(B=this.productions_[E[1]][1],S.$=i[i.length-B],S._$={first_line:a[a.length-(B||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(B||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(B||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(S,[s,l,c,p.yy,E[1],i,a].concat(f))))return C;B&&(n=n.slice(0,-1*B*2),i=i.slice(0,-1*B),a=a.slice(0,-1*B)),n.push(this.productions_[E[1]][0]),i.push(S.$),a.push(S._$),T=o[n[n.length-2]][n[n.length-1]],n.push(T);break;case 3:return!0}}return!0}},f={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if((n=this._input.match(this.rules[i[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),26;case 1:return this.begin("type_directive"),27;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),29;case 4:return 28;case 5:case 6:case 8:case 9:break;case 7:return 11;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 24;case 21:return 25;case 22:return 15;case 23:return 6;case 24:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23,24],inclusive:!0}}};function d(){this.yy={}}return h.lexer=f,d.prototype=h,h.Parser=d,new d}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(t[0],process.exit(1));var r=n(9143).readFileSync(n(6470).normalize(t[1]),"utf8");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},7967:(t,e)=>{e.N=void 0;var n=/^([^\w]*)(javascript|data|vbscript)/im,r=/&#(\w+)(^\w|;)?/g,i=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,a=/^([^:]+):/gm,o=[".","/"];e.N=function(t){var e,s=(e=t||"",e.replace(r,(function(t,e){return String.fromCharCode(e)}))).replace(i,"").trim();if(!s)return"about:blank";if(function(t){return o.indexOf(t[0])>-1}(s))return s;var c=s.match(a);if(!c)return s;var l=c[0];return n.test(l)?"about:blank":s}},3841:t=>{t.exports=function(t,e){return t.intersect(e)}},6187:(t,e,n)=>{n.d(e,{Z:()=>wl});var r=n(1941),i=n.n(r),a={debug:1,info:2,warn:3,error:4,fatal:5},o={debug:function(){},info:function(){},warn:function(){},error:function(){},fatal:function(){}},s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fatal";isNaN(t)&&(t=t.toLowerCase(),void 0!==a[t]&&(t=a[t])),o.trace=function(){},o.debug=function(){},o.info=function(){},o.warn=function(){},o.error=function(){},o.fatal=function(){},t<=a.fatal&&(o.fatal=console.error?console.error.bind(console,c("FATAL"),"color: orange"):console.log.bind(console,"",c("FATAL"))),t<=a.error&&(o.error=console.error?console.error.bind(console,c("ERROR"),"color: orange"):console.log.bind(console,"",c("ERROR"))),t<=a.warn&&(o.warn=console.warn?console.warn.bind(console,c("WARN"),"color: orange"):console.log.bind(console,"",c("WARN"))),t<=a.info&&(o.info=console.info?console.info.bind(console,c("INFO"),"color: lightblue"):console.log.bind(console,"",c("INFO"))),t<=a.debug&&(o.debug=console.debug?console.debug.bind(console,c("DEBUG"),"color: lightgreen"):console.log.bind(console,"",c("DEBUG")))},c=function(t){var e=i()().format("ss.SSS");return"%c".concat(e," : ").concat(t," : ")},l=n(7543),A="comm",u="rule",h="decl",f=Math.abs,d=String.fromCharCode;function p(t){return t.trim()}function g(t,e,n){return t.replace(e,n)}function m(t,e){return t.indexOf(e)}function y(t,e){return 0|t.charCodeAt(e)}function v(t,e,n){return t.slice(e,n)}function b(t){return t.length}function _(t){return t.length}function w(t,e){return e.push(t),t}function E(t,e){for(var n="",r=_(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function C(t,e,n,r){switch(t.type){case"@import":case h:return t.return=t.return||t.value;case A:return"";case"@keyframes":return t.return=t.value+"{"+E(t.children,r)+"}";case u:t.value=t.props.join(",")}return b(n=E(t.children,r))?t.return=t.value+"{"+n+"}":""}var x=1,B=1,T=0,k=0,S=0,I="";function L(t,e,n,r,i,a,o){return{value:t,root:e,parent:n,type:r,props:i,children:a,line:x,column:B,length:o,return:""}}function F(){return S=k>0?y(I,--k):0,B--,10===S&&(B=1,x--),S}function N(){return S=k<T?y(I,k++):0,B++,10===S&&(B=1,x++),S}function O(){return y(I,k)}function D(){return k}function M(t,e){return v(I,t,e)}function R(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function U(t){return p(M(k-1,function t(e){for(;N();)switch(S){case e:return k;case 34:case 39:34!==e&&39!==e&&t(S);break;case 40:41===e&&t(e);break;case 92:N()}return k}(91===t?t+2:40===t?t+1:t)))}function P(t){for(;(S=O())&&S<33;)N();return R(t)>2||R(S)>3?"":" "}function H(t,e){for(;--e&&N()&&!(S<48||S>102||S>57&&S<65||S>70&&S<97););return M(t,D()+(e<6&&32==O()&&32==N()))}function Q(t,e){for(;N()&&t+S!==57&&(t+S!==84||47!==O()););return"/*"+M(e,k-1)+"*"+d(47===t?t:N())}function G(t){for(;!R(O());)N();return M(t,k)}function j(t){return function(t){return I="",t}(function t(e,n,r,i,a,o,s,c,l){for(var A=0,u=0,h=s,f=0,p=0,y=0,v=1,_=1,E=1,C=0,x="",B=a,T=o,k=i,S=x;_;)switch(y=C,C=N()){case 40:if(108!=y&&58==S.charCodeAt(h-1)){-1!=m(S+=g(U(C),"&","&\f"),"&\f")&&(E=-1);break}case 34:case 39:case 91:S+=U(C);break;case 9:case 10:case 13:case 32:S+=P(y);break;case 92:S+=H(D()-1,7);continue;case 47:switch(O()){case 42:case 47:w(K(Q(N(),D()),n,r),l);break;default:S+="/"}break;case 123*v:c[A++]=b(S)*E;case 125*v:case 59:case 0:switch(C){case 0:case 125:_=0;case 59+u:p>0&&b(S)-h&&w(p>32?Y(S+";",i,r,h-1):Y(g(S," ","")+";",i,r,h-2),l);break;case 59:S+=";";default:if(w(k=$(S,n,r,A,u,a,c,x,B=[],T=[],h),o),123===C)if(0===u)t(S,n,k,k,B,o,h,c,T);else switch(f){case 100:case 109:case 115:t(e,k,k,i&&w($(e,k,k,0,0,a,c,x,a,B=[],h),T),a,T,h,c,i?B:T);break;default:t(S,k,k,k,[""],T,0,c,T)}}A=u=p=0,v=E=1,x=S="",h=s;break;case 58:h=1+b(S),p=y;default:if(v<1)if(123==C)--v;else if(125==C&&0==v++&&125==F())continue;switch(S+=d(C),C*v){case 38:E=u>0?1:(S+="\f",-1);break;case 44:c[A++]=(b(S)-1)*E,E=1;break;case 64:45===O()&&(S+=U(N())),f=O(),u=h=b(x=S+=G(D())),C++;break;case 45:45===y&&2==b(S)&&(v=0)}}return o}("",null,null,null,[""],t=function(t){return x=B=1,T=b(I=t),k=0,[]}(t),0,[0],t))}function $(t,e,n,r,i,a,o,s,c,l,A){for(var h=i-1,d=0===i?a:[""],m=_(d),y=0,b=0,w=0;y<r;++y)for(var E=0,C=v(t,h+1,h=f(b=o[y])),x=t;E<m;++E)(x=p(b>0?d[E]+" "+C:g(C,/&\f/g,d[E])))&&(c[w++]=x);return L(t,e,n,0===i?u:s,c,l,A)}function K(t,e,n){return L(t,e,n,A,d(S),v(t,2,-2),0)}function Y(t,e,n,r){return L(t,e,n,h,v(t,0,r),v(t,r+1,-1),r)}const z="9.1.7";function W(t){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}const V=function t(e,n,r){var i=Object.assign({depth:2,clobber:!1},r),a=i.depth,o=i.clobber;return Array.isArray(n)&&!Array.isArray(e)?(n.forEach((function(n){return t(e,n,r)})),e):Array.isArray(n)&&Array.isArray(e)?(n.forEach((function(t){-1===e.indexOf(t)&&e.push(t)})),e):void 0===e||a<=0?null!=e&&"object"===W(e)&&"object"===W(n)?Object.assign(e,n):n:(void 0!==n&&"object"===W(e)&&"object"===W(n)&&Object.keys(n).forEach((function(r){"object"!==W(n[r])||void 0!==e[r]&&"object"!==W(e[r])?(o||"object"!==W(e[r])&&"object"!==W(n[r]))&&(e[r]=n[r]):(void 0===e[r]&&(e[r]=Array.isArray(n[r])?[]:{}),e[r]=t(e[r],n[r],{depth:a-1,clobber:o}))})),e)},q={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t),hsl2rgb:({h:t,s:e,l:n},r)=>{if(!e)return 2.55*n;t/=360,e/=100;const i=(n/=100)<.5?n*(1+e):n+e-n*e,a=2*n-i;switch(r){case"r":return 255*q.hue2rgb(a,i,t+1/3);case"g":return 255*q.hue2rgb(a,i,t);case"b":return 255*q.hue2rgb(a,i,t-1/3)}},rgb2hsl:({r:t,g:e,b:n},r)=>{t/=255,e/=255,n/=255;const i=Math.max(t,e,n),a=Math.min(t,e,n),o=(i+a)/2;if("l"===r)return 100*o;if(i===a)return 0;const s=i-a;if("s"===r)return 100*(o>.5?s/(2-i-a):s/(i+a));switch(i){case t:return 60*((e-n)/s+(e<n?6:0));case e:return 60*((n-t)/s+2);case n:return 60*((t-e)/s+4);default:return-1}}},X={channel:q,lang:{clamp:(t,e,n)=>e>n?Math.min(e,Math.max(n,t)):Math.min(n,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:"0"+e}}},J={};for(let t=0;t<=255;t++)J[t]=X.unit.dec2hex(t);const Z=new class{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new class{constructor(){this.type=0}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=0}is(t){return this.type===t}}}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=0,this}_ensureHSL(){const t=this.data,{h:e,s:n,l:r}=t;void 0===e&&(t.h=X.channel.rgb2hsl(t,"h")),void 0===n&&(t.s=X.channel.rgb2hsl(t,"s")),void 0===r&&(t.l=X.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:e,g:n,b:r}=t;void 0===e&&(t.r=X.channel.hsl2rgb(t,"r")),void 0===n&&(t.g=X.channel.hsl2rgb(t,"g")),void 0===r&&(t.b=X.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,e=t.r;return this.type.is(2)||void 0===e?(this._ensureHSL(),X.channel.hsl2rgb(t,"r")):e}get g(){const t=this.data,e=t.g;return this.type.is(2)||void 0===e?(this._ensureHSL(),X.channel.hsl2rgb(t,"g")):e}get b(){const t=this.data,e=t.b;return this.type.is(2)||void 0===e?(this._ensureHSL(),X.channel.hsl2rgb(t,"b")):e}get h(){const t=this.data,e=t.h;return this.type.is(1)||void 0===e?(this._ensureRGB(),X.channel.rgb2hsl(t,"h")):e}get s(){const t=this.data,e=t.s;return this.type.is(1)||void 0===e?(this._ensureRGB(),X.channel.rgb2hsl(t,"s")):e}get l(){const t=this.data,e=t.l;return this.type.is(1)||void 0===e?(this._ensureRGB(),X.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(1),this.changed=!0,this.data.r=t}set g(t){this.type.set(1),this.changed=!0,this.data.g=t}set b(t){this.type.set(1),this.changed=!0,this.data.b=t}set h(t){this.type.set(2),this.changed=!0,this.data.h=t}set s(t){this.type.set(2),this.changed=!0,this.data.s=t}set l(t){this.type.set(2),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}({r:0,g:0,b:0,a:0},"transparent"),tt={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;const e=t.match(tt.re);if(!e)return;const n=e[1],r=parseInt(n,16),i=n.length,a=i%4==0,o=i>4,s=o?1:17,c=o?8:4,l=a?0:-1,A=o?255:15;return Z.set({r:(r>>c*(l+3)&A)*s,g:(r>>c*(l+2)&A)*s,b:(r>>c*(l+1)&A)*s,a:a?(r&A)*s/255:1},t)},stringify:t=>{const{r:e,g:n,b:r,a:i}=t;return i<1?`#${J[Math.round(e)]}${J[Math.round(n)]}${J[Math.round(r)]}${J[Math.round(255*i)]}`:`#${J[Math.round(e)]}${J[Math.round(n)]}${J[Math.round(r)]}`}},et=tt,nt={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(nt.hueRe);if(e){const[,t,n]=e;switch(n){case"grad":return X.channel.clamp.h(.9*parseFloat(t));case"rad":return X.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return X.channel.clamp.h(360*parseFloat(t))}}return X.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(104!==e&&72!==e)return;const n=t.match(nt.re);if(!n)return;const[,r,i,a,o,s]=n;return Z.set({h:nt._hue2deg(r),s:X.channel.clamp.s(parseFloat(i)),l:X.channel.clamp.l(parseFloat(a)),a:o?X.channel.clamp.a(s?parseFloat(o)/100:parseFloat(o)):1},t)},stringify:t=>{const{h:e,s:n,l:r,a:i}=t;return i<1?`hsla(${X.lang.round(e)}, ${X.lang.round(n)}%, ${X.lang.round(r)}%, ${i})`:`hsl(${X.lang.round(e)}, ${X.lang.round(n)}%, ${X.lang.round(r)}%)`}},rt=nt,it={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=it.colors[t];if(e)return et.parse(e)},stringify:t=>{const e=et.stringify(t);for(const t in it.colors)if(it.colors[t]===e)return t}},at=it,ot={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(114!==e&&82!==e)return;const n=t.match(ot.re);if(!n)return;const[,r,i,a,o,s,c,l,A]=n;return Z.set({r:X.channel.clamp.r(i?2.55*parseFloat(r):parseFloat(r)),g:X.channel.clamp.g(o?2.55*parseFloat(a):parseFloat(a)),b:X.channel.clamp.b(c?2.55*parseFloat(s):parseFloat(s)),a:l?X.channel.clamp.a(A?parseFloat(l)/100:parseFloat(l)):1},t)},stringify:t=>{const{r:e,g:n,b:r,a:i}=t;return i<1?`rgba(${X.lang.round(e)}, ${X.lang.round(n)}, ${X.lang.round(r)}, ${X.lang.round(i)})`:`rgb(${X.lang.round(e)}, ${X.lang.round(n)}, ${X.lang.round(r)})`}},st=ot,ct=t=>{if("string"!=typeof t)return t;const e=et.parse(t)||st.parse(t)||rt.parse(t)||at.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},lt=t=>!t.changed&&t.color?t.color:t.type.is(2)||void 0===t.data.r?rt.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?st.stringify(t):et.stringify(t),At=(t,e)=>{const n=ct(t);for(const t in e)n[t]=X.channel.clamp[t](e[t]);return lt(n)},ut=(t,e)=>{const n=ct(t),r={};for(const t in e)e[t]&&(r[t]=n[t]+e[t]);return At(t,r)},ht=(t,e,n=0,r=1)=>{if("number"!=typeof t)return At(t,{a:e});const i=Z.set({r:X.channel.clamp.r(t),g:X.channel.clamp.g(e),b:X.channel.clamp.b(n),a:X.channel.clamp.a(r)});return lt(i)},ft=(t,e=100)=>{const n=ct(t);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,((t,e,n=50)=>{const{r:r,g:i,b:a,a:o}=ct(t),{r:s,g:c,b:l,a:A}=ct(e),u=n/100,h=2*u-1,f=o-A,d=((h*f==-1?h:(h+f)/(1+h*f))+1)/2,p=1-d;return ht(r*d+s*p,i*d+c*p,a*d+l*p,o*u+A*(1-u))})(n,t,e)},dt=(t,e,n)=>{const r=ct(t),i=r[e],a=X.channel.clamp[e](i+n);return i!==a&&(r[e]=a),lt(r)},pt=(t,e)=>dt(t,"l",-e),gt=(t,e)=>dt(t,"l",e);var mt=function(t,e){return ut(t,e?{s:-40,l:10}:{s:-40,l:-10})};function yt(t){return(yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var vt=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.background="#f4f4f4",this.darkMode=!1,this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}var e,n;return e=t,(n=[{key:"updateColors",value:function(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||ut(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ut(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||mt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||mt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||mt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||ft(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ft(this.tertiaryColor),this.lineColor=this.lineColor||ft(this.background),this.textColor=this.textColor||this.primaryTextColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?pt(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||pt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ft(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||gt(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||ut(this.primaryColor,{h:64}),this.fillType3=this.fillType3||ut(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||ut(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||ut(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||ut(this.primaryColor,{h:128}),this.fillType7=this.fillType7||ut(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||ut(this.primaryColor,{l:-10}),this.pie5=this.pie5||ut(this.secondaryColor,{l:-10}),this.pie6=this.pie6||ut(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||ut(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||ut(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||ut(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||ut(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||ut(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||ut(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?pt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||ut(this.primaryColor,{h:-30}),this.git4=this.git4||ut(this.primaryColor,{h:-60}),this.git5=this.git5||ut(this.primaryColor,{h:-90}),this.git6=this.git6||ut(this.primaryColor,{h:60}),this.git7=this.git7||ut(this.primaryColor,{h:120}),this.darkMode?(this.git0=gt(this.git0,25),this.git1=gt(this.git1,25),this.git2=gt(this.git2,25),this.git3=gt(this.git3,25),this.git4=gt(this.git4,25),this.git5=gt(this.git5,25),this.git6=gt(this.git6,25),this.git7=gt(this.git7,25)):(this.git0=pt(this.git0,25),this.git1=pt(this.git1,25),this.git2=pt(this.git2,25),this.git3=pt(this.git3,25),this.git4=pt(this.git4,25),this.git5=pt(this.git5,25),this.git6=pt(this.git6,25),this.git7=pt(this.git7,25)),this.gitInv0=this.gitInv0||ft(this.git0),this.gitInv1=this.gitInv1||ft(this.git1),this.gitInv2=this.gitInv2||ft(this.git2),this.gitInv3=this.gitInv3||ft(this.git3),this.gitInv4=this.gitInv4||ft(this.git4),this.gitInv5=this.gitInv5||ft(this.git5),this.gitInv6=this.gitInv6||ft(this.git6),this.gitInv7=this.gitInv7||ft(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px"}},{key:"calculate",value:function(t){var e=this;if("object"===yt(t)){var n=Object.keys(t);n.forEach((function(n){e[n]=t[n]})),this.updateColors(),n.forEach((function(n){e[n]=t[n]}))}else this.updateColors()}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function bt(t){return(bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var _t=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=gt(this.primaryColor,16),this.tertiaryColor=ut(this.primaryColor,{h:-160}),this.primaryBorderColor=ft(this.background),this.secondaryBorderColor=mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mt(this.tertiaryColor,this.darkMode),this.primaryTextColor=ft(this.primaryColor),this.secondaryTextColor=ft(this.secondaryColor),this.tertiaryTextColor=ft(this.tertiaryColor),this.lineColor=ft(this.background),this.textColor=ft(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=gt(ft("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=ht(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=pt("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=ht(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=ht(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}var e,n;return e=t,(n=[{key:"updateColors",value:function(){this.secondBkg=gt(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=gt(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=gt(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=ut(this.primaryColor,{h:64}),this.fillType3=ut(this.secondaryColor,{h:64}),this.fillType4=ut(this.primaryColor,{h:-64}),this.fillType5=ut(this.secondaryColor,{h:-64}),this.fillType6=ut(this.primaryColor,{h:128}),this.fillType7=ut(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#0b0000",this.pie2=this.pie2||"#4d1037",this.pie3=this.pie3||"#3f5258",this.pie4=this.pie4||"#4f2f1b",this.pie5=this.pie5||"#6e0a0a",this.pie6=this.pie6||"#3b0048",this.pie7=this.pie7||"#995a01",this.pie8=this.pie8||"#154706",this.pie9=this.pie9||"#161722",this.pie10=this.pie10||"#00296f",this.pie11=this.pie11||"#01629c",this.pie12=this.pie12||"#010029",this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?pt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=gt(this.secondaryColor,20),this.git1=gt(this.pie2||this.secondaryColor,20),this.git2=gt(this.pie3||this.tertiaryColor,20),this.git3=gt(this.pie4||ut(this.primaryColor,{h:-30}),20),this.git4=gt(this.pie5||ut(this.primaryColor,{h:-60}),20),this.git5=gt(this.pie6||ut(this.primaryColor,{h:-90}),10),this.git6=gt(this.pie7||ut(this.primaryColor,{h:60}),10),this.git7=gt(this.pie8||ut(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||ft(this.git0),this.gitInv1=this.gitInv1||ft(this.git1),this.gitInv2=this.gitInv2||ft(this.git2),this.gitInv3=this.gitInv3||ft(this.git3),this.gitInv4=this.gitInv4||ft(this.git4),this.gitInv5=this.gitInv5||ft(this.git5),this.gitInv6=this.gitInv6||ft(this.git6),this.gitInv7=this.gitInv7||ft(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px"}},{key:"calculate",value:function(t){var e=this;if("object"===bt(t)){var n=Object.keys(t);n.forEach((function(n){e[n]=t[n]})),this.updateColors(),n.forEach((function(n){e[n]=t[n]}))}else this.updateColors()}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function wt(t){return(wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Et=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=ut(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=ut(this.primaryColor,{h:-160}),this.primaryBorderColor=mt(this.primaryColor,this.darkMode),this.secondaryBorderColor=mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mt(this.tertiaryColor,this.darkMode),this.primaryTextColor=ft(this.primaryColor),this.secondaryTextColor=ft(this.secondaryColor),this.tertiaryTextColor=ft(this.tertiaryColor),this.lineColor=ft(this.background),this.textColor=ft(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=ht(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}var e,n;return e=t,(n=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=gt(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=ut(this.primaryColor,{h:64}),this.fillType3=ut(this.secondaryColor,{h:64}),this.fillType4=ut(this.primaryColor,{h:-64}),this.fillType5=ut(this.secondaryColor,{h:-64}),this.fillType6=ut(this.primaryColor,{h:128}),this.fillType7=ut(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||ut(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||ut(this.primaryColor,{l:-10}),this.pie5=this.pie5||ut(this.secondaryColor,{l:-30}),this.pie6=this.pie6||ut(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||ut(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||ut(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||ut(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||ut(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||ut(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||ut(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||ut(this.primaryColor,{h:-30}),this.git4=this.git4||ut(this.primaryColor,{h:-60}),this.git5=this.git5||ut(this.primaryColor,{h:-90}),this.git6=this.git6||ut(this.primaryColor,{h:60}),this.git7=this.git7||ut(this.primaryColor,{h:120}),this.darkMode?(this.git0=gt(this.git0,25),this.git1=gt(this.git1,25),this.git2=gt(this.git2,25),this.git3=gt(this.git3,25),this.git4=gt(this.git4,25),this.git5=gt(this.git5,25),this.git6=gt(this.git6,25),this.git7=gt(this.git7,25)):(this.git0=pt(this.git0,25),this.git1=pt(this.git1,25),this.git2=pt(this.git2,25),this.git3=pt(this.git3,25),this.git4=pt(this.git4,25),this.git5=pt(this.git5,25),this.git6=pt(this.git6,25),this.git7=pt(this.git7,25)),this.gitInv0=this.gitInv0||pt(ft(this.git0),25),this.gitInv1=this.gitInv1||ft(this.git1),this.gitInv2=this.gitInv2||ft(this.git2),this.gitInv3=this.gitInv3||ft(this.git3),this.gitInv4=this.gitInv4||ft(this.git4),this.gitInv5=this.gitInv5||ft(this.git5),this.gitInv6=this.gitInv6||ft(this.git6),this.gitInv7=this.gitInv7||ft(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||ft(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||ft(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px"}},{key:"calculate",value:function(t){var e=this;if("object"===wt(t)){var n=Object.keys(t);n.forEach((function(n){e[n]=t[n]})),this.updateColors(),n.forEach((function(n){e[n]=t[n]}))}else this.updateColors()}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Ct(t){return(Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var xt=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=gt("#cde498",10),this.primaryBorderColor=mt(this.primaryColor,this.darkMode),this.secondaryBorderColor=mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mt(this.tertiaryColor,this.darkMode),this.primaryTextColor=ft(this.primaryColor),this.secondaryTextColor=ft(this.secondaryColor),this.tertiaryTextColor=ft(this.primaryColor),this.lineColor=ft(this.background),this.textColor=ft(this.background),this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var e,n;return e=t,(n=[{key:"updateColors",value:function(){this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.actorBorder=pt(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=ut(this.primaryColor,{h:64}),this.fillType3=ut(this.secondaryColor,{h:64}),this.fillType4=ut(this.primaryColor,{h:-64}),this.fillType5=ut(this.secondaryColor,{h:-64}),this.fillType6=ut(this.primaryColor,{h:128}),this.fillType7=ut(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||ut(this.primaryColor,{l:-30}),this.pie5=this.pie5||ut(this.secondaryColor,{l:-30}),this.pie6=this.pie6||ut(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||ut(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||ut(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||ut(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||ut(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||ut(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||ut(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||ut(this.primaryColor,{h:-30}),this.git4=this.git4||ut(this.primaryColor,{h:-60}),this.git5=this.git5||ut(this.primaryColor,{h:-90}),this.git6=this.git6||ut(this.primaryColor,{h:60}),this.git7=this.git7||ut(this.primaryColor,{h:120}),this.darkMode?(this.git0=gt(this.git0,25),this.git1=gt(this.git1,25),this.git2=gt(this.git2,25),this.git3=gt(this.git3,25),this.git4=gt(this.git4,25),this.git5=gt(this.git5,25),this.git6=gt(this.git6,25),this.git7=gt(this.git7,25)):(this.git0=pt(this.git0,25),this.git1=pt(this.git1,25),this.git2=pt(this.git2,25),this.git3=pt(this.git3,25),this.git4=pt(this.git4,25),this.git5=pt(this.git5,25),this.git6=pt(this.git6,25),this.git7=pt(this.git7,25)),this.gitInv0=this.gitInv0||ft(this.git0),this.gitInv1=this.gitInv1||ft(this.git1),this.gitInv2=this.gitInv2||ft(this.git2),this.gitInv3=this.gitInv3||ft(this.git3),this.gitInv4=this.gitInv4||ft(this.git4),this.gitInv5=this.gitInv5||ft(this.git5),this.gitInv6=this.gitInv6||ft(this.git6),this.gitInv7=this.gitInv7||ft(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px"}},{key:"calculate",value:function(t){var e=this;if("object"===Ct(t)){var n=Object.keys(t);n.forEach((function(n){e[n]=t[n]})),this.updateColors(),n.forEach((function(n){e[n]=t[n]}))}else this.updateColors()}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Bt(t){return(Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Tt=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=gt(this.contrast,55),this.background="#ffffff",this.tertiaryColor=ut(this.primaryColor,{h:-160}),this.primaryBorderColor=mt(this.primaryColor,this.darkMode),this.secondaryBorderColor=mt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mt(this.tertiaryColor,this.darkMode),this.primaryTextColor=ft(this.primaryColor),this.secondaryTextColor=ft(this.secondaryColor),this.tertiaryTextColor=ft(this.tertiaryColor),this.lineColor=ft(this.background),this.textColor=ft(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}var e,n;return e=t,(n=[{key:"updateColors",value:function(){this.secondBkg=gt(this.contrast,55),this.border2=this.contrast,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.actorBorder=gt(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.sectionBkgColor=gt(this.contrast,30),this.sectionBkgColor2=gt(this.contrast,30),this.taskBorderColor=pt(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=gt(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=pt(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=ut(this.primaryColor,{h:64}),this.fillType3=ut(this.secondaryColor,{h:64}),this.fillType4=ut(this.primaryColor,{h:-64}),this.fillType5=ut(this.secondaryColor,{h:-64}),this.fillType6=ut(this.primaryColor,{h:128}),this.fillType7=ut(this.secondaryColor,{h:128}),this.pie1=this.pie1||"#F4F4F4",this.pie2=this.pie2||"#555",this.pie3=this.pie3||"#BBB",this.pie4=this.pie4||"#777",this.pie5=this.pie5||"#999",this.pie6=this.pie6||"#DDD",this.pie7=this.pie7||"#FFF",this.pie8=this.pie8||"#DDD",this.pie9=this.pie9||"#BBB",this.pie10=this.pie10||"#999",this.pie11=this.pie11||"#777",this.pie12=this.pie12||"#555",this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=pt(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||ut(this.primaryColor,{h:-30}),this.git4=this.pie5||ut(this.primaryColor,{h:-60}),this.git5=this.pie6||ut(this.primaryColor,{h:-90}),this.git6=this.pie7||ut(this.primaryColor,{h:60}),this.git7=this.pie8||ut(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||ft(this.git0),this.gitInv1=this.gitInv1||ft(this.git1),this.gitInv2=this.gitInv2||ft(this.git2),this.gitInv3=this.gitInv3||ft(this.git3),this.gitInv4=this.gitInv4||ft(this.git4),this.gitInv5=this.gitInv5||ft(this.git5),this.gitInv6=this.gitInv6||ft(this.git6),this.gitInv7=this.gitInv7||ft(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px"}},{key:"calculate",value:function(t){var e=this;if("object"===Bt(t)){var n=Object.keys(t);n.forEach((function(n){e[n]=t[n]})),this.updateColors(),n.forEach((function(n){e[n]=t[n]}))}else this.updateColors()}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();const kt={base:{getThemeVariables:function(t){var e=new vt;return e.calculate(t),e}},dark:{getThemeVariables:function(t){var e=new _t;return e.calculate(t),e}},default:{getThemeVariables:function(t){var e=new Et;return e.calculate(t),e}},forest:{getThemeVariables:function(t){var e=new xt;return e.calculate(t),e}},neutral:{getThemeVariables:function(t){var e=new Tt;return e.calculate(t),e}}};function St(t){return function(t){if(Array.isArray(t))return It(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return It(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?It(t,e):void 0}}(t)||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 It(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Lt(t){return(Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Ft={theme:"default",themeVariables:kt.default.getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,deterministicIDSeed:void 0,flowchart:{diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,useMaxWidth:!0,defaultRenderer:"dagre-d3"},sequence:{hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",useMaxWidth:!0,topAxis:!1,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},state:{dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},er:{diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0},requirement:{useWidth:void 0,useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},gitGraph:{diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0},c4:{useWidth:void 0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,useMaxWidth:!0,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"}};Ft.class.arrowMarkerAbsolute=Ft.arrowMarkerAbsolute,Ft.gitGraph.arrowMarkerAbsolute=Ft.arrowMarkerAbsolute;var Nt=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(e).reduce((function(r,i){return Array.isArray(e[i])?r:"object"===Lt(e[i])&&null!==e[i]?[].concat(St(r),[n+i],St(t(e[i],""))):[].concat(St(r),[n+i])}),[])}(Ft,"");const Ot=Ft;function Dt(t){return(Dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Mt,Rt=Object.freeze(Ot),Ut=V({},Rt),Pt=[],Ht=V({},Rt),Qt=function(t,e){for(var n=V({},t),r={},i=0;i<e.length;i++){var a=e[i];$t(a),r=V(r,a)}if(n=V(n,r),r.theme&&kt[r.theme]){var o=V({},Mt),s=V(o.themeVariables||{},r.themeVariables);n.themeVariables=kt[n.theme].getThemeVariables(s)}return Ht=n,n},Gt=function(){return V({},Ut)},jt=function(){return V({},Ht)},$t=function t(e){Object.keys(Ut.secure).forEach((function(t){void 0!==e[Ut.secure[t]]&&(o.debug("Denied attempt to modify a secure key ".concat(Ut.secure[t]),e[Ut.secure[t]]),delete e[Ut.secure[t]])})),Object.keys(e).forEach((function(t){0===t.indexOf("__")&&delete e[t]})),Object.keys(e).forEach((function(n){"string"==typeof e[n]&&(e[n].indexOf("<")>-1||e[n].indexOf(">")>-1||e[n].indexOf("url(data:")>-1)&&delete e[n],"object"===Dt(e[n])&&t(e[n])}))},Kt=function(t){t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),Pt.push(t),Qt(Ut,Pt)},Yt=function(){Qt(Ut,Pt=[])},zt=n(7856),Wt=n.n(zt),Vt=function(t){var e=t.replace(/\\u[\dA-F]{4}/gi,(function(t){return String.fromCharCode(parseInt(t.replace(/\\u/g,""),16))}));return(e=(e=e.replace(/\\x([0-9a-f]{2})/gi,(function(t,e){return String.fromCharCode(parseInt(e,16))}))).replace(/\\[\d\d\d]{3}/gi,(function(t){return String.fromCharCode(parseInt(t.replace(/\\/g,""),8))}))).replace(/\\[\d\d\d]{2}/gi,(function(t){return String.fromCharCode(parseInt(t.replace(/\\/g,""),8))}))},qt=function(t){for(var e="",n=0;n>=0;){if(!((n=t.indexOf("<script"))>=0)){e+=t,n=-1;break}e+=t.substr(0,n),(n=(t=t.substr(n+1)).indexOf("<\/script>"))>=0&&(n+=9,t=t.substr(n))}var r=Vt(e);return(r=(r=(r=(r=r.replace(/script>/gi,"#")).replace(/javascript:/gi,"#")).replace(/javascript&colon/gi,"#")).replace(/onerror=/gi,"onerror:")).replace(/<iframe/gi,"")},Xt=function(t,e){var n=t,r=!0;if(!e.flowchart||!1!==e.flowchart.htmlLabels&&"false"!==e.flowchart.htmlLabels||(r=!1),r){var i=e.securityLevel;"antiscript"===i||"strict"===i?n=qt(n):"loose"!==i&&(n=(n=(n=ee(n)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),n=te(n))}return n},Jt=function(t,e){return t?e.dompurifyConfig?Wt().sanitize(Xt(t,e),e.dompurifyConfig):Wt().sanitize(Xt(t,e)):t},Zt=/<br\s*\/?>/gi,te=function(t){return t.replace(/#br#/g,"<br/>")},ee=function(t){return t.replace(Zt,"#br#")},ne=function(t){return"false"!==t&&!1!==t},re=function t(e){var n=e;return-1!=e.indexOf("~")?t(n=(n=n.replace("~","<")).replace("~",">")):n};const ie={getRows:function(t){if(!t)return 1;var e=ee(t);return(e=e.replace(/\\n/g,"#br#")).split("#br#")},sanitizeText:Jt,sanitizeTextOrArray:function(t,e){return"string"==typeof t?Jt(t,e):t.flat().map((function(t){return Jt(t,e)}))},hasBreaks:function(t){return Zt.test(t)},splitBreaks:function(t){return t.split(Zt)},lineBreakRegex:Zt,removeScript:qt,getUrl:function(t){var e="";return t&&(e=(e=(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),e},evaluate:ne,removeEscapes:Vt};var ae="",oe="",se="",ce=function(t){return Jt(t,jt())},le=function(){ae="",se="",oe=""},Ae=function(t){ae=ce(t).replace(/^\s+/g,"")},ue=function(){return ae||oe},he=function(t){se=ce(t).replace(/\n\s+/g,"\n")},fe=function(){return se},de=function(t){oe=ce(t)},pe=function(){return oe};function ge(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(t);!(o=(r=n.next()).done)&&(a.push(r.value),!e||a.length!==e);o=!0);}catch(t){s=!0,i=t}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return me(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?me(t,e):void 0}}(t,e)||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.")}()}function me(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ye(t){return(ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var ve,be=[],_e=[""],we="global",Ee="",Ce=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],xe=[],Be="",Te=!1,ke=4,Se=2,Ie=function(t){return null==t?be:be.filter((function(e){return e.parentBoundary===t}))},Le=function(){return Te};const Fe={addPersonOrSystem:function(t,e,n,r,i,a,o){if(null!==e&&null!==n){var s={},c=be.find((function(t){return t.alias===e}));if(c&&e===c.alias?s=c:(s.alias=e,be.push(s)),s.label=null==n?{text:""}:{text:n},null==r)s.descr={text:""};else if("object"===ye(r)){var l=ge(Object.entries(r)[0],2),A=l[0],u=l[1];s[A]={text:u}}else s.descr={text:r};if("object"===ye(i)){var h=ge(Object.entries(i)[0],2),f=h[0],d=h[1];s[f]=d}else s.sprite=i;if("object"===ye(a)){var p=ge(Object.entries(a)[0],2),g=p[0],m=p[1];s[g]=m}else s.tags=a;if("object"===ye(o)){var y=ge(Object.entries(o)[0],2),v=y[0],b=y[1];s[v]=b}else s.link=o;s.typeC4Shape={text:t},s.parentBoundary=we,s.wrap=Le()}},addPersonOrSystemBoundary:function(t,e,n,r,i){if(null!==t&&null!==e){var a={},o=Ce.find((function(e){return e.alias===t}));if(o&&t===o.alias?a=o:(a.alias=t,Ce.push(a)),a.label=null==e?{text:""}:{text:e},null==n)a.type={text:"system"};else if("object"===ye(n)){var s=ge(Object.entries(n)[0],2),c=s[0],l=s[1];a[c]={text:l}}else a.type={text:n};if("object"===ye(r)){var A=ge(Object.entries(r)[0],2),u=A[0],h=A[1];a[u]=h}else a.tags=r;if("object"===ye(i)){var f=ge(Object.entries(i)[0],2),d=f[0],p=f[1];a[d]=p}else a.link=i;a.parentBoundary=we,a.wrap=Le(),Ee=we,we=t,_e.push(Ee)}},addContainer:function(t,e,n,r,i,a,o,s){if(null!==e&&null!==n){var c={},l=be.find((function(t){return t.alias===e}));if(l&&e===l.alias?c=l:(c.alias=e,be.push(c)),c.label=null==n?{text:""}:{text:n},null==r)c.techn={text:""};else if("object"===ye(r)){var A=ge(Object.entries(r)[0],2),u=A[0],h=A[1];c[u]={text:h}}else c.techn={text:r};if(null==i)c.descr={text:""};else if("object"===ye(i)){var f=ge(Object.entries(i)[0],2),d=f[0],p=f[1];c[d]={text:p}}else c.descr={text:i};if("object"===ye(a)){var g=ge(Object.entries(a)[0],2),m=g[0],y=g[1];c[m]=y}else c.sprite=a;if("object"===ye(o)){var v=ge(Object.entries(o)[0],2),b=v[0],_=v[1];c[b]=_}else c.tags=o;if("object"===ye(s)){var w=ge(Object.entries(s)[0],2),E=w[0],C=w[1];c[E]=C}else c.link=s;c.wrap=Le(),c.typeC4Shape={text:t},c.parentBoundary=we}},addContainerBoundary:function(t,e,n,r,i){if(null!==t&&null!==e){var a={},o=Ce.find((function(e){return e.alias===t}));if(o&&t===o.alias?a=o:(a.alias=t,Ce.push(a)),a.label=null==e?{text:""}:{text:e},null==n)a.type={text:"container"};else if("object"===ye(n)){var s=ge(Object.entries(n)[0],2),c=s[0],l=s[1];a[c]={text:l}}else a.type={text:n};if("object"===ye(r)){var A=ge(Object.entries(r)[0],2),u=A[0],h=A[1];a[u]=h}else a.tags=r;if("object"===ye(i)){var f=ge(Object.entries(i)[0],2),d=f[0],p=f[1];a[d]=p}else a.link=i;a.parentBoundary=we,a.wrap=Le(),Ee=we,we=t,_e.push(Ee)}},addComponent:function(t,e,n,r,i,a,o,s){if(null!==e&&null!==n){var c={},l=be.find((function(t){return t.alias===e}));if(l&&e===l.alias?c=l:(c.alias=e,be.push(c)),c.label=null==n?{text:""}:{text:n},null==r)c.techn={text:""};else if("object"===ye(r)){var A=ge(Object.entries(r)[0],2),u=A[0],h=A[1];c[u]={text:h}}else c.techn={text:r};if(null==i)c.descr={text:""};else if("object"===ye(i)){var f=ge(Object.entries(i)[0],2),d=f[0],p=f[1];c[d]={text:p}}else c.descr={text:i};if("object"===ye(a)){var g=ge(Object.entries(a)[0],2),m=g[0],y=g[1];c[m]=y}else c.sprite=a;if("object"===ye(o)){var v=ge(Object.entries(o)[0],2),b=v[0],_=v[1];c[b]=_}else c.tags=o;if("object"===ye(s)){var w=ge(Object.entries(s)[0],2),E=w[0],C=w[1];c[E]=C}else c.link=s;c.wrap=Le(),c.typeC4Shape={text:t},c.parentBoundary=we}},addDeploymentNode:function(t,e,n,r,i,a,o,s){if(null!==e&&null!==n){var c={},l=Ce.find((function(t){return t.alias===e}));if(l&&e===l.alias?c=l:(c.alias=e,Ce.push(c)),c.label=null==n?{text:""}:{text:n},null==r)c.type={text:"node"};else if("object"===ye(r)){var A=ge(Object.entries(r)[0],2),u=A[0],h=A[1];c[u]={text:h}}else c.type={text:r};if(null==i)c.descr={text:""};else if("object"===ye(i)){var f=ge(Object.entries(i)[0],2),d=f[0],p=f[1];c[d]={text:p}}else c.descr={text:i};if("object"===ye(o)){var g=ge(Object.entries(o)[0],2),m=g[0],y=g[1];c[m]=y}else c.tags=o;if("object"===ye(s)){var v=ge(Object.entries(s)[0],2),b=v[0],_=v[1];c[b]=_}else c.link=s;c.nodeType=t,c.parentBoundary=we,c.wrap=Le(),Ee=we,we=e,_e.push(Ee)}},popBoundaryParseStack:function(){we=Ee,_e.pop(),Ee=_e.pop(),_e.push(Ee)},addRel:function(t,e,n,r,i,a,o,s,c){if(null!=t&&null!=e&&null!=n&&null!=r){var l={},A=xe.find((function(t){return t.from===e&&t.to===n}));if(A?l=A:xe.push(l),l.type=t,l.from=e,l.to=n,l.label={text:r},null==i)l.techn={text:""};else if("object"===ye(i)){var u=ge(Object.entries(i)[0],2),h=u[0],f=u[1];l[h]={text:f}}else l.techn={text:i};if(null==a)l.descr={text:""};else if("object"===ye(a)){var d=ge(Object.entries(a)[0],2),p=d[0],g=d[1];l[p]={text:g}}else l.descr={text:a};if("object"===ye(o)){var m=ge(Object.entries(o)[0],2),y=m[0],v=m[1];l[y]=v}else l.sprite=o;if("object"===ye(s)){var b=ge(Object.entries(s)[0],2),_=b[0],w=b[1];l[_]=w}else l.tags=s;if("object"===ye(c)){var E=ge(Object.entries(c)[0],2),C=E[0],x=E[1];l[C]=x}else l.link=c;l.wrap=Le()}},updateElStyle:function(t,e,n,r,i,a,o,s,c,l,A){var u=be.find((function(t){return t.alias===e}));if(void 0!==u||void 0!==(u=Ce.find((function(t){return t.alias===e})))){if(null!=n)if("object"===ye(n)){var h=ge(Object.entries(n)[0],2),f=h[0],d=h[1];u[f]=d}else u.bgColor=n;if(null!=r)if("object"===ye(r)){var p=ge(Object.entries(r)[0],2),g=p[0],m=p[1];u[g]=m}else u.fontColor=r;if(null!=i)if("object"===ye(i)){var y=ge(Object.entries(i)[0],2),v=y[0],b=y[1];u[v]=b}else u.borderColor=i;if(null!=a)if("object"===ye(a)){var _=ge(Object.entries(a)[0],2),w=_[0],E=_[1];u[w]=E}else u.shadowing=a;if(null!=o)if("object"===ye(o)){var C=ge(Object.entries(o)[0],2),x=C[0],B=C[1];u[x]=B}else u.shape=o;if(null!=s)if("object"===ye(s)){var T=ge(Object.entries(s)[0],2),k=T[0],S=T[1];u[k]=S}else u.sprite=s;if(null!=c)if("object"===ye(c)){var I=ge(Object.entries(c)[0],2),L=I[0],F=I[1];u[L]=F}else u.techn=c;if(null!=l)if("object"===ye(l)){var N=ge(Object.entries(l)[0],2),O=N[0],D=N[1];u[O]=D}else u.legendText=l;if(null!=A)if("object"===ye(A)){var M=ge(Object.entries(A)[0],2),R=M[0],U=M[1];u[R]=U}else u.legendSprite=A}},updateRelStyle:function(t,e,n,r,i,a,o){var s=xe.find((function(t){return t.from===e&&t.to===n}));if(void 0!==s){if(null!=r)if("object"===ye(r)){var c=ge(Object.entries(r)[0],2),l=c[0],A=c[1];s[l]=A}else s.textColor=r;if(null!=i)if("object"===ye(i)){var u=ge(Object.entries(i)[0],2),h=u[0],f=u[1];s[h]=f}else s.lineColor=i;if(null!=a)if("object"===ye(a)){var d=ge(Object.entries(a)[0],2),p=d[0],g=d[1];s[p]=parseInt(g)}else s.offsetX=parseInt(a);if(null!=o)if("object"===ye(o)){var m=ge(Object.entries(o)[0],2),y=m[0],v=m[1];s[y]=parseInt(v)}else s.offsetY=parseInt(o)}},updateLayoutConfig:function(t,e,n){var r=ke,i=Se;if("object"===ye(e)){var a=ge(Object.entries(e)[0],2),o=(a[0],a[1]);r=parseInt(o)}else r=parseInt(e);if("object"===ye(n)){var s=ge(Object.entries(n)[0],2),c=(s[0],s[1]);i=parseInt(c)}else i=parseInt(n);r>=1&&(ke=r),i>=1&&(Se=i)},autoWrap:Le,setWrap:function(t){Te=t},getC4ShapeArray:Ie,getC4Shape:function(t){return be.find((function(e){return e.alias===t}))},getC4ShapeKeys:function(t){return Object.keys(Ie(t))},getBoundarys:function(t){return null==t?Ce:Ce.filter((function(e){return e.parentBoundary===t}))},getCurrentBoundaryParse:function(){return we},getParentBoundaryParse:function(){return Ee},getRels:function(){return xe},getTitle:function(){return Be},getC4Type:function(){return ve},getC4ShapeInRow:function(){return ke},getC4BoundaryInRow:function(){return Se},setAccTitle:Ae,getAccTitle:ue,getAccDescription:fe,setAccDescription:he,parseDirective:function(t,e,n){yl.parseDirective(this,t,e,n)},getConfig:function(){return jt().c4},clear:function(){be=[],Ce=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Ee="",we="global",_e=[""],xe=[],_e=[""],Be="",Te=!1,ke=4,Se=2},LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:function(t){var e=Jt(t,jt());Be=e},setC4Type:function(t){var e=Jt(t,jt());ve=e}};var Ne=n(7967);function Oe(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var De=function(t,e){var n=t.append("rect");if(n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),"undefined"!==e.attrs&&null!==e.attrs)for(var r in e.attrs)n.attr(r,e.attrs[r]);return"undefined"!==e.class&&n.attr("class",e.class),n},Me=function(){function t(t,e,n,i,a,o,s){r(e.append("text").attr("x",n+a/2).attr("y",i+o/2+5).style("text-anchor","middle").text(t),s)}function e(t,e,n,i,a,o,s,c){for(var l=c.fontSize,A=c.fontFamily,u=c.fontWeight,h=t.split(ie.lineBreakRegex),f=0;f<h.length;f++){var d=f*l-l*(h.length-1)/2,p=e.append("text").attr("x",n+a/2).attr("y",i).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",l).style("font-weight",u).style("font-family",A);p.append("tspan").attr("dy",d).text(h[f]).attr("alignment-baseline","mathematical"),r(p,s)}}function n(t,n,i,a,o,s,c,l){var A=n.append("switch"),u=A.append("foreignObject").attr("x",i).attr("y",a).attr("width",o).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");u.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,A,i,a,o,0,c,l),r(u,c)}function r(t,e){for(var n in e)e.hasOwnProperty(n)&&t.attr(n,e[n])}return function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?t:e}}();const Re=function(t,e,n){var r=e.bgColor?e.bgColor:n[e.typeC4Shape.text+"_bg_color"],i=e.borderColor?e.borderColor:n[e.typeC4Shape.text+"_border_color"],a=e.fontColor?e.fontColor:"#FFFFFF",o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(e.typeC4Shape.text){case"person":o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII="}var s=t.append("g");s.attr("class","person-man");var c={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};switch(e.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":c.x=e.x,c.y=e.y,c.fill=r,c.width=e.width,c.height=e.height,c.style="stroke:"+i+";stroke-width:0.5;",c.rx=2.5,c.ry=2.5,De(s,c);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":s.append("path").attr("fill",r).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2).replaceAll("height",e.height)),s.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":s.append("path").attr("fill",r).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("width",e.width).replaceAll("half",e.height/2)),s.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",e.x+e.width).replaceAll("starty",e.y).replaceAll("half",e.height/2))}var l,A,u={fontFamily:(l=n)[(A=e.typeC4Shape.text)+"FontFamily"],fontSize:l[A+"FontSize"],fontWeight:l[A+"FontWeight"]};switch(s.append("text").attr("fill",a).attr("font-family",u.fontFamily).attr("font-size",u.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",e.typeC4Shape.width).attr("x",e.x+e.width/2-e.typeC4Shape.width/2).attr("y",e.y+e.typeC4Shape.Y).text("<<"+e.typeC4Shape.text+">>"),e.typeC4Shape.text){case"person":case"external_person":!function(t,e,n,r,i,a){var o=t.append("image");o.attr("width",48),o.attr("height",48),o.attr("x",r),o.attr("y",i);var s=a.startsWith("data:image/png;base64")?a:(0,Ne.N)(a);o.attr("xlink:href",s)}(s,0,0,e.x+e.width/2-24,e.y+e.image.Y,o)}var h=n[e.typeC4Shape.text+"Font"]();return h.fontWeight="bold",h.fontSize=h.fontSize+2,h.fontColor=a,Me(n)(e.label.text,s,e.x,e.y+e.label.Y,e.width,e.height,{fill:a},h),(h=n[e.typeC4Shape.text+"Font"]()).fontColor=a,e.thchn&&""!==e.thchn.text?Me(n)(e.thchn.text,s,e.x,e.y+e.thchn.Y,e.width,e.height,{fill:a,"font-style":"italic"},h):e.type&&""!==e.type.text&&Me(n)(e.type.text,s,e.x,e.y+e.type.Y,e.width,e.height,{fill:a,"font-style":"italic"},h),e.descr&&""!==e.descr.text&&((h=n.personFont()).fontColor=a,Me(n)(e.descr.text,s,e.x,e.y+e.descr.Y,e.width,e.height,{fill:a},h)),e.height};Ne.N;var Ue=n(2536),Pe=n.n(Ue),He=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,Qe=/\s*%%.*\n/gm,Ge={};const je=function(t,e){if((t=t.replace(He,"").replace(Qe,"\n")).match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/))return"c4";if("error"===t)return"error";if(t.match(/^\s*sequenceDiagram/))return"sequence";if(t.match(/^\s*gantt/))return"gantt";if(t.match(/^\s*classDiagram-v2/))return"classDiagram";if(t.match(/^\s*classDiagram/))return e&&e.class&&"dagre-wrapper"===e.class.defaultRenderer?"classDiagram":"class";if(t.match(/^\s*stateDiagram-v2/))return"stateDiagram";if(t.match(/^\s*stateDiagram/))return e&&e.class&&"dagre-wrapper"===e.state.defaultRenderer?"stateDiagram":"state";if(t.match(/^\s*flowchart/))return"flowchart-v2";if(t.match(/^\s*info/))return"info";if(t.match(/^\s*pie/))return"pie";if(t.match(/^\s*erDiagram/))return"er";if(t.match(/^\s*journey/))return"journey";if(t.match(/^\s*requirement/)||t.match(/^\s*requirementDiagram/))return"requirement";if(e&&e.flowchart&&"dagre-wrapper"===e.flowchart.defaultRenderer)return"flowchart-v2";for(var n=Object.keys(Ge),r=0;r<n.length;r++){var i=n[r],a=Ge[i];if(a&&a.detector(t))return i}return"flowchart"};function $e(t){return($e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ke(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=ze(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function Ye(t){return function(t){if(Array.isArray(t))return We(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||ze(t)||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 ze(t,e){if(t){if("string"==typeof t)return We(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?We(t,e):void 0}}function We(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Ve,qe={curveBasis:l.curveBasis,curveBasisClosed:l.curveBasisClosed,curveBasisOpen:l.curveBasisOpen,curveLinear:l.curveLinear,curveLinearClosed:l.curveLinearClosed,curveMonotoneX:l.curveMonotoneX,curveMonotoneY:l.curveMonotoneY,curveNatural:l.curveNatural,curveStep:l.curveStep,curveStepAfter:l.curveStepAfter,curveStepBefore:l.curveStepBefore},Xe=/[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,Je=/\s*(?:(?:(\w+)(?=:):|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi,Ze=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{var n=new RegExp("[%]{2}(?![{]".concat(Je.source,")(?=[}][%]{2}).*\n"),"ig");t=t.trim().replace(n,"").replace(/'/gm,'"'),o.debug("Detecting diagram directive".concat(null!==e?" type:"+e:""," based on the text:").concat(t));for(var r,i=[];null!==(r=Xe.exec(t));)if(r.index===Xe.lastIndex&&Xe.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){var a=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;i.push({type:a,args:s})}return 0===i.length&&i.push({type:t,args:null}),1===i.length?i[0]:i}catch(n){return o.error("ERROR: ".concat(n.message," - Unable to parse directive\n ").concat(null!==e?" type:"+e:""," based on the text:").concat(t)),{type:null,args:null}}},tn=function(t,e){var n={};return function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=e?e.apply(void 0,i):i[0];if(o in n)return n[o];var s=t.apply(void 0,i);return n[o]=s,s}},en=function(t,e){if(!t)return e;var n="curve".concat(t.charAt(0).toUpperCase()+t.slice(1));return qe[n]||e},nn=function(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0},rn=function(t){for(var e="",n="",r=0;r<t.length;r++)void 0!==t[r]&&(t[r].startsWith("color:")||t[r].startsWith("text-align:")?n=n+t[r]+";":e=e+t[r]+";");return{style:e,labelStyle:n}},an=0,on=function(){return an++,"id-"+Math.random().toString(36).substr(2,12)+"-"+an},sn=function(t){return function(t){for(var e="",n="0123456789abcdef",r=n.length,i=0;i<t;i++)e+=n.charAt(Math.floor(Math.random()*r));return e}(t.length)},cn=function(t,e){var n=e.text.replace(ie.lineBreakRegex," "),r=t.append("text");r.attr("x",e.x),r.attr("y",e.y),r.style("text-anchor",e.anchor),r.style("font-family",e.fontFamily),r.style("font-size",e.fontSize),r.style("font-weight",e.fontWeight),r.attr("fill",e.fill),void 0!==e.class&&r.attr("class",e.class);var i=r.append("tspan");return i.attr("x",e.x+2*e.textMargin),i.attr("fill",e.fill),i.text(n),r},ln=tn((function(t,e,n){if(!t)return t;if(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),ie.lineBreakRegex.test(t))return t;var r=t.split(" "),i=[],a="";return r.forEach((function(t,o){var s=hn("".concat(t," "),n),c=hn(a,n);if(s>e){var l=An(t,e,"-",n),A=l.hyphenatedStrings,u=l.remainingWord;i.push.apply(i,[a].concat(Ye(A))),a=u}else c+s>=e?(i.push(a),a=t):a=[a,t].filter(Boolean).join(" ");o+1===r.length&&i.push(a)})),i.filter((function(t){return""!==t})).join(n.joinWith)}),(function(t,e,n){return"".concat(t,"-").concat(e,"-").concat(n.fontSize,"-").concat(n.fontWeight,"-").concat(n.fontFamily,"-").concat(n.joinWith)})),An=tn((function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",r=arguments.length>3?arguments[3]:void 0;r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);var i=t.split(""),a=[],o="";return i.forEach((function(t,s){var c="".concat(o).concat(t);if(hn(c,r)>=e){var l=s+1,A=i.length===l,u="".concat(c).concat(n);a.push(A?c:u),o=""}else o=c})),{hyphenatedStrings:a,remainingWord:o}}),(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",r=arguments.length>3?arguments[3]:void 0;return"".concat(t,"-").concat(e,"-").concat(n,"-").concat(r.fontSize,"-").concat(r.fontWeight,"-").concat(r.fontFamily)})),un=function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},e),fn(t,e).height},hn=function(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),fn(t,e).width},fn=tn((function(t,e){var n=e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),r=n.fontSize,i=n.fontFamily,a=n.fontWeight;if(!t)return{width:0,height:0};var o=["sans-serif",i],s=t.split(ie.lineBreakRegex),c=[],A=(0,l.select)("body");if(!A.remove)return{width:0,height:0,lineHeight:0};for(var u=A.append("svg"),h=0,f=o;h<f.length;h++){var d,p=f[h],g=0,m={width:0,height:0,lineHeight:0},y=Ke(s);try{for(y.s();!(d=y.n()).done;){var v=d.value,b={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};b.text=v;var _=cn(u,b).style("font-size",r).style("font-weight",a).style("font-family",p),w=(_._groups||_)[0][0].getBBox();m.width=Math.round(Math.max(m.width,w.width)),g=Math.round(w.height),m.height+=g,m.lineHeight=Math.round(Math.max(m.lineHeight,g))}}catch(t){y.e(t)}finally{y.f()}c.push(m)}return u.remove(),c[isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1]}),(function(t,e){return"".concat(t,"-").concat(e.fontSize,"-").concat(e.fontWeight,"-").concat(e.fontFamily)})),dn=function(t,e,n){var r=new Map;return n?(r.set("width","100%"),r.set("style","max-width: ".concat(e,"px;"))):r.set("width",e),r},pn=function(t,e,n,r){!function(t,e){var n,r=Ke(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;t.attr(i[0],i[1])}}catch(t){r.e(t)}finally{r.f()}}(t,dn(0,1*n,r))},gn=function(t,e,n,r){var i=e.node().getBBox(),a=i.width,s=i.height;o.info("SVG bounds: ".concat(a,"x").concat(s),i);var c=t._label.width,l=t._label.height;o.info("Graph bounds: ".concat(c,"x").concat(l),t),c=a+2*n,l=s+2*n,o.info("Calculated bounds: ".concat(c,"x").concat(l)),pn(e,0,c,r);var A="".concat(i.x-n," ").concat(i.y-n," ").concat(i.width+2*n," ").concat(i.height+2*n);o.info("Graph.label",t._label,"swidth",a,"sheight",s,"width",c,"height",l,"vBox",A),e.attr("viewBox",A)},mn=function t(e){if(o.debug("directiveSanitizer called with",e),"object"===$e(e)&&(e.length?e.forEach((function(e){return t(e)})):Object.keys(e).forEach((function(n){o.debug("Checking key",n),0===n.indexOf("__")&&(o.debug("sanitize deleting __ option",n),delete e[n]),n.indexOf("proto")>=0&&(o.debug("sanitize deleting proto option",n),delete e[n]),n.indexOf("constr")>=0&&(o.debug("sanitize deleting constr option",n),delete e[n]),n.indexOf("themeCSS")>=0&&(o.debug("sanitizing themeCss option"),e[n]=yn(e[n])),n.indexOf("fontFamily")>=0&&(o.debug("sanitizing fontFamily option"),e[n]=yn(e[n])),n.indexOf("altFontFamily")>=0&&(o.debug("sanitizing altFontFamily option"),e[n]=yn(e[n])),Nt.indexOf(n)<0?(o.debug("sanitize deleting option",n),delete e[n]):"object"===$e(e[n])&&(o.debug("sanitize deleting object",n),t(e[n]))}))),e.themeVariables)for(var n=Object.keys(e.themeVariables),r=0;r<n.length;r++){var i=n[r],a=e.themeVariables[i];a&&a.match&&!a.match(/^[a-zA-Z0-9#,";()%. ]+$/)&&(e.themeVariables[i]="")}o.debug("After sanitization",e)},yn=function(t){for(var e=0,n=0,r=0;r<t.length;r++){if(e<n)return"{ /* ERROR: Unbalanced CSS */ }";"{"===t[r]?e++:"}"===t[r]&&n++}return e!==n?"{ /* ERROR: Unbalanced CSS */ }":t};const vn={assignWithDepth:V,wrapLabel:ln,calculateTextHeight:un,calculateTextWidth:hn,calculateTextDimensions:fn,calculateSvgSizeAttrs:dn,configureSvgSize:pn,setupGraphViewbox:gn,detectInit:function(t,e){var n=Ze(t,/(?:init\b)|(?:initialize\b)/),r={};if(Array.isArray(n)){var i=n.map((function(t){return t.args}));mn(i),r=V(r,Ye(i))}else r=n.args;if(r){var a=je(t,e);["config"].forEach((function(t){void 0!==r[t]&&("flowchart-v2"===a&&(a="flowchart"),r[a]=r[t],delete r[t])}))}return r},detectDirective:Ze,isSubstringInArray:function(t,e){for(var n=0;n<e.length;n++)if(e[n].match(t))return n;return-1},interpolateToCurve:en,calcLabelPosition:function(t){return 1===t.length?t[0]:function(t){var e,n=0;t.forEach((function(t){n+=nn(t,e),e=t}));var r=n/2,i=void 0;return e=void 0,t.forEach((function(t){if(e&&!i){var n=nn(t,e);if(n<r)r-=n;else{var a=r/n;a<=0&&(i=e),a>=1&&(i={x:t.x,y:t.y}),a>0&&a<1&&(i={x:(1-a)*e.x+a*t.x,y:(1-a)*e.y+a*t.y})}}e=t})),i}(t)},calcCardinalityPosition:function(t,e,n){var r;o.info("our points",e),e[0]!==n&&(e=e.reverse()),e.forEach((function(t){nn(t,r),r=t}));var i,a=25;r=void 0,e.forEach((function(t){if(r&&!i){var e=nn(t,r);if(e<a)a-=e;else{var n=a/e;n<=0&&(i=r),n>=1&&(i={x:t.x,y:t.y}),n>0&&n<1&&(i={x:(1-n)*r.x+n*t.x,y:(1-n)*r.y+n*t.y})}}r=t}));var s=t?10:5,c=Math.atan2(e[0].y-i.y,e[0].x-i.x),l={x:0,y:0};return l.x=Math.sin(c)*s+(e[0].x+i.x)/2,l.y=-Math.cos(c)*s+(e[0].y+i.y)/2,l},calcTerminalLabelPosition:function(t,e,n){var r,i=JSON.parse(JSON.stringify(n));o.info("our points",i),"start_left"!==e&&"start_right"!==e&&(i=i.reverse()),i.forEach((function(t){nn(t,r),r=t}));var a,s=25+t;r=void 0,i.forEach((function(t){if(r&&!a){var e=nn(t,r);if(e<s)s-=e;else{var n=s/e;n<=0&&(a=r),n>=1&&(a={x:t.x,y:t.y}),n>0&&n<1&&(a={x:(1-n)*r.x+n*t.x,y:(1-n)*r.y+n*t.y})}}r=t}));var c=10+.5*t,l=Math.atan2(i[0].y-a.y,i[0].x-a.x),A={x:0,y:0};return A.x=Math.sin(l)*c+(i[0].x+a.x)/2,A.y=-Math.cos(l)*c+(i[0].y+a.y)/2,"start_left"===e&&(A.x=Math.sin(l+Math.PI)*c+(i[0].x+a.x)/2,A.y=-Math.cos(l+Math.PI)*c+(i[0].y+a.y)/2),"end_right"===e&&(A.x=Math.sin(l-Math.PI)*c+(i[0].x+a.x)/2-5,A.y=-Math.cos(l-Math.PI)*c+(i[0].y+a.y)/2-5),"end_left"===e&&(A.x=Math.sin(l)*c+(i[0].x+a.x)/2-5,A.y=-Math.cos(l)*c+(i[0].y+a.y)/2-5),A},formatUrl:function(t,e){var n=t.trim();if(n)return"loose"!==e.securityLevel?(0,Ne.N)(n):n},getStylesFromArray:rn,generateId:on,random:sn,memoize:tn,runFunc:function(t){for(var e,n=t.split("."),r=n.length-1,i=n[r],a=window,o=0;o<r;o++)if(!(a=a[n[o]]))return;for(var s=arguments.length,c=new Array(s>1?s-1:0),l=1;l<s;l++)c[l-1]=arguments[l];(e=a)[i].apply(e,c)},entityDecode:function(t){return Ve=Ve||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Ve.innerHTML=t,unescape(Ve.textContent)},initIdGenerator:function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.deterministic=e,this.seed=n,this.count=n?n.length:0}var e,n;return e=t,(n=[{key:"next",value:function(){return this.deterministic?this.count++:Date.now()}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),directiveSanitizer:mn,sanitizeCss:yn};function bn(t,e,n){if(void 0!==e.insert){var r=t.getAccTitle(),i=t.getAccDescription();e.attr("role","img").attr("aria-labelledby","chart-title-"+n+" chart-desc-"+n),e.insert("desc",":first-child").attr("id","chart-desc-"+n).text(i),e.insert("title",":first-child").attr("id","chart-title-"+n).text(r)}}function _n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function wn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function En(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Cn(t,e,n){return e&&En(t.prototype,e),n&&En(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var xn=0,Bn=0,Tn=4,kn=2;Ue.parser.yy=Fe;var Sn={},In=function(){function t(e){wn(this,t),this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,Ln(e.db.getConfig())}return Cn(t,[{key:"setData",value:function(t,e,n,r){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=e,this.nextData.starty=this.data.starty=n,this.nextData.stopy=this.data.stopy=r}},{key:"updateVal",value:function(t,e,n,r){void 0===t[e]?t[e]=n:t[e]=r(n,t[e])}},{key:"insert",value:function(t){this.nextData.cnt=this.nextData.cnt+1;var e=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+t.margin:this.nextData.stopx+2*t.margin,n=e+t.width,r=this.nextData.starty+2*t.margin,i=r+t.height;(e>=this.data.widthLimit||n>=this.data.widthLimit||this.nextData.cnt>Tn)&&(e=this.nextData.startx+t.margin+Sn.nextLinePaddingX,r=this.nextData.stopy+2*t.margin,this.nextData.stopx=n=e+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=i=r+t.height,this.nextData.cnt=1),t.x=e,t.y=r,this.updateVal(this.data,"startx",e,Math.min),this.updateVal(this.data,"starty",r,Math.min),this.updateVal(this.data,"stopx",n,Math.max),this.updateVal(this.data,"stopy",i,Math.max),this.updateVal(this.nextData,"startx",e,Math.min),this.updateVal(this.nextData,"starty",r,Math.min),this.updateVal(this.nextData,"stopx",n,Math.max),this.updateVal(this.nextData,"stopy",i,Math.max)}},{key:"init",value:function(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},Ln(t.db.getConfig())}},{key:"bumpLastMargin",value:function(t){this.data.stopx+=t,this.data.stopy+=t}}]),t}(),Ln=function(t){V(Sn,t),t.fontFamily&&(Sn.personFontFamily=Sn.systemFontFamily=Sn.messageFontFamily=t.fontFamily),t.fontSize&&(Sn.personFontSize=Sn.systemFontSize=Sn.messageFontSize=t.fontSize),t.fontWeight&&(Sn.personFontWeight=Sn.systemFontWeight=Sn.messageFontWeight=t.fontWeight)},Fn=function(t,e){return{fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}},Nn=function(t){return{fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight}};function On(t,e,n,r,i){if(!e[t].width)if(n)e[t].text=ln(e[t].text,i,r),e[t].textLines=e[t].text.split(ie.lineBreakRegex).length,e[t].width=i,e[t].height=un(e[t].text,r);else{var a=e[t].text.split(ie.lineBreakRegex);e[t].textLines=a.length;var o=0;e[t].height=0,e[t].width=0;for(var s=0;s<a.length;s++)e[t].width=Math.max(hn(a[s],r),e[t].width),o=un(a[s],r),e[t].height=e[t].height+o}}var Dn=function(t,e,n){e.x=n.data.startx,e.y=n.data.starty,e.width=n.data.stopx-n.data.startx,e.height=n.data.stopy-n.data.starty,e.label.y=Sn.c4ShapeMargin-35;var r=e.wrap&&Sn.wrap,i=Nn(Sn);i.fontSize=i.fontSize+2,i.fontWeight="bold",On("label",e,r,i,hn(e.label.text,i)),function(t,e,n){var r=t.append("g"),i=e.bgColor?e.bgColor:"none",a=e.borderColor?e.borderColor:"#444444",o=e.fontColor?e.fontColor:"black",s={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};e.nodeType&&(s={"stroke-width":1});var c={x:e.x,y:e.y,fill:i,stroke:a,width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:s};De(r,c);var l=n.boundaryFont();l.fontWeight="bold",l.fontSize=l.fontSize+2,l.fontColor=o,Me(n)(e.label.text,r,e.x,e.y+e.label.Y,e.width,e.height,{fill:"#444444"},l),e.type&&""!==e.type.text&&((l=n.boundaryFont()).fontColor=o,Me(n)(e.type.text,r,e.x,e.y+e.type.Y,e.width,e.height,{fill:"#444444"},l)),e.descr&&""!==e.descr.text&&((l=n.boundaryFont()).fontSize=l.fontSize-2,l.fontColor=o,Me(n)(e.descr.text,r,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},l))}(t,e,Sn)},Mn=function(t,e,n,r){for(var i=0,a=0;a<r.length;a++){i=0;var o=n[r[a]],s=Fn(Sn,o.typeC4Shape.text);switch(s.fontSize=s.fontSize-2,o.typeC4Shape.width=hn("<<"+o.typeC4Shape.text+">>",s),o.typeC4Shape.height=s.fontSize+2,o.typeC4Shape.Y=Sn.c4ShapePadding,i=o.typeC4Shape.Y+o.typeC4Shape.height-4,o.image={width:0,height:0,Y:0},o.typeC4Shape.text){case"person":case"external_person":o.image.width=48,o.image.height=48,o.image.Y=i,i=o.image.Y+o.image.height}o.sprite&&(o.image.width=48,o.image.height=48,o.image.Y=i,i=o.image.Y+o.image.height);var c=o.wrap&&Sn.wrap,l=Sn.width-2*Sn.c4ShapePadding,A=Fn(Sn,o.typeC4Shape.text);A.fontSize=A.fontSize+2,A.fontWeight="bold",On("label",o,c,A,l),o.label.Y=i+8,i=o.label.Y+o.label.height,o.type&&""!==o.type.text?(o.type.text="["+o.type.text+"]",On("type",o,c,Fn(Sn,o.typeC4Shape.text),l),o.type.Y=i+5,i=o.type.Y+o.type.height):o.techn&&""!==o.techn.text&&(o.techn.text="["+o.techn.text+"]",On("techn",o,c,Fn(Sn,o.techn.text),l),o.techn.Y=i+5,i=o.techn.Y+o.techn.height);var u=i,h=o.label.width;o.descr&&""!==o.descr.text&&(On("descr",o,c,Fn(Sn,o.typeC4Shape.text),l),o.descr.Y=i+20,i=o.descr.Y+o.descr.height,h=Math.max(o.label.width,o.descr.width),u=i-5*o.descr.textLines),h+=Sn.c4ShapePadding,o.width=Math.max(o.width||Sn.width,h,Sn.width),o.height=Math.max(o.height||Sn.height,u,Sn.height),o.margin=o.margin||Sn.c4ShapeMargin,t.insert(o),Re(e,o,Sn)}t.bumpLastMargin(Sn.c4ShapeMargin)},Rn=Cn((function t(e,n){wn(this,t),this.x=e,this.y=n})),Un=function(t,e){var n=t.x,r=t.y,i=e.x,a=e.y,o=n+t.width/2,s=r+t.height/2,c=Math.abs(n-i),l=Math.abs(r-a),A=l/c,u=t.height/t.width,h=null;return r==a&&n<i?h=new Rn(n+t.width,s):r==a&&n>i?h=new Rn(n,s):n==i&&r<a?h=new Rn(o,r+t.height):n==i&&r>a&&(h=new Rn(o,r)),n>i&&r<a?h=u>=A?new Rn(n,s+A*t.width/2):new Rn(o-c/l*t.height/2,r+t.height):n<i&&r<a?h=u>=A?new Rn(n+t.width,s+A*t.width/2):new Rn(o+c/l*t.height/2,r+t.height):n<i&&r>a?h=u>=A?new Rn(n+t.width,s-A*t.width/2):new Rn(o+t.height/2*c/l,r):n>i&&r>a&&(h=u>=A?new Rn(n,s-t.width/2*A):new Rn(o-t.height/2*c/l,r)),h},Pn=function(t,e){var n={x:0,y:0};n.x=e.x+e.width/2,n.y=e.y+e.height/2;var r=Un(t,n);return n.x=t.x+t.width/2,n.y=t.y+t.height/2,{startPoint:r,endPoint:Un(e,n)}};const Hn={drawPersonOrSystemArray:Mn,drawBoundary:Dn,setConf:Ln,draw:function(t,e,n,r){Sn=jt().c4;var i,a=jt().securityLevel;"sandbox"===a&&(i=(0,l.select)("#i"+e));var s="sandbox"===a?(0,l.select)(i.nodes()[0].contentDocument.body):(0,l.select)("body"),c=r.db;r.db.setWrap(Sn.wrap),Tn=c.getC4ShapeInRow(),kn=c.getC4BoundaryInRow(),o.debug("C:".concat(JSON.stringify(Sn,null,2)));var A="sandbox"===a?s.select('[id="'.concat(e,'"]')):(0,l.select)('[id="'.concat(e,'"]'));A.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z"),function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")}(A),function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")}(A);var u=new In(r);u.setData(Sn.diagramMarginX,Sn.diagramMarginX,Sn.diagramMarginY,Sn.diagramMarginY),u.data.widthLimit=screen.availWidth,xn=Sn.diagramMarginX,Bn=Sn.diagramMarginY;var h=r.db.getTitle();r.db.getC4Type(),function t(e,n,r,i,a){var o=new In(a);o.data.widthLimit=r.data.widthLimit/Math.min(kn,i.length);for(var s=0;s<i.length;s++){var c=i[s],l=0;c.image={width:0,height:0,Y:0},c.sprite&&(c.image.width=48,c.image.height=48,c.image.Y=l,l=c.image.Y+c.image.height);var A=c.wrap&&Sn.wrap,u=Nn(Sn);if(u.fontSize=u.fontSize+2,u.fontWeight="bold",On("label",c,A,u,o.data.widthLimit),c.label.Y=l+8,l=c.label.Y+c.label.height,c.type&&""!==c.type.text&&(c.type.text="["+c.type.text+"]",On("type",c,A,Nn(Sn),o.data.widthLimit),c.type.Y=l+5,l=c.type.Y+c.type.height),c.descr&&""!==c.descr.text){var h=Nn(Sn);h.fontSize=h.fontSize-2,On("descr",c,A,h,o.data.widthLimit),c.descr.Y=l+20,l=c.descr.Y+c.descr.height}if(0==s||s%kn==0){var f=r.data.startx+Sn.diagramMarginX,d=r.data.stopy+Sn.diagramMarginY+l;o.setData(f,f,d,d)}else{var p=o.data.stopx!==o.data.startx?o.data.stopx+Sn.diagramMarginX:o.data.startx,g=o.data.starty;o.setData(p,p,g,g)}o.name=c.alias;var m=a.db.getC4ShapeArray(c.alias),y=a.db.getC4ShapeKeys(c.alias);y.length>0&&Mn(o,e,m,y),n=c.alias;var v=a.db.getBoundarys(n);v.length>0&&t(e,n,o,v,a),"global"!==c.alias&&Dn(e,c,o),r.data.stopy=Math.max(o.data.stopy+Sn.c4ShapeMargin,r.data.stopy),r.data.stopx=Math.max(o.data.stopx+Sn.c4ShapeMargin,r.data.stopx),xn=Math.max(xn,r.data.stopx),Bn=Math.max(Bn,r.data.stopy)}}(A,"",u,r.db.getBoundarys(""),r),function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")}(A),function(t){t.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")}(A),function(t){var e=t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);e.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),e.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")}(A),function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")}(A),function(t,e,n,r){var i,a,o=0,s=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return _n(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_n(t,e):void 0}}(t))){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}(e);try{for(s.s();!(i=s.n()).done;){var c=i.value;o+=1;var l=c.wrap&&Sn.wrap,A={fontFamily:(a=Sn).messageFontFamily,fontSize:a.messageFontSize,fontWeight:a.messageFontWeight};"C4Dynamic"===r.db.getC4Type()&&(c.label.text=o+": "+c.label.text);var u=hn(c.label.text,A);On("label",c,l,A,u),c.techn&&""!==c.techn.text&&On("techn",c,l,A,u=hn(c.techn.text,A)),c.descr&&""!==c.descr.text&&On("descr",c,l,A,u=hn(c.descr.text,A));var h=n(c.from),f=n(c.to),d=Pn(h,f);c.startPoint=d.startPoint,c.endPoint=d.endPoint}}catch(t){s.e(t)}finally{s.f()}!function(t,e,n){var r,i=t.append("g"),a=0,o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Oe(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oe(t,e):void 0}}(t))){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}(e);try{for(o.s();!(r=o.n()).done;){var s=r.value,c=s.textColor?s.textColor:"#444444",l=s.lineColor?s.lineColor:"#444444",A=s.offsetX?parseInt(s.offsetX):0,u=s.offsetY?parseInt(s.offsetY):0;if(0===a){var h=i.append("line");h.attr("x1",s.startPoint.x),h.attr("y1",s.startPoint.y),h.attr("x2",s.endPoint.x),h.attr("y2",s.endPoint.y),h.attr("stroke-width","1"),h.attr("stroke",l),h.style("fill","none"),"rel_b"!==s.type&&h.attr("marker-end","url(#arrowhead)"),"birel"!==s.type&&"rel_b"!==s.type||h.attr("marker-start","url(#arrowend)"),a=-1}else{var f=i.append("path");f.attr("fill","none").attr("stroke-width","1").attr("stroke",l).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",s.startPoint.x).replaceAll("starty",s.startPoint.y).replaceAll("controlx",s.startPoint.x+(s.endPoint.x-s.startPoint.x)/2-(s.endPoint.x-s.startPoint.x)/4).replaceAll("controly",s.startPoint.y+(s.endPoint.y-s.startPoint.y)/2).replaceAll("stopx",s.endPoint.x).replaceAll("stopy",s.endPoint.y)),"rel_b"!==s.type&&f.attr("marker-end","url(#arrowhead)"),"birel"!==s.type&&"rel_b"!==s.type||f.attr("marker-start","url(#arrowend)")}var d=n.messageFont();Me(n)(s.label.text,i,Math.min(s.startPoint.x,s.endPoint.x)+Math.abs(s.endPoint.x-s.startPoint.x)/2+A,Math.min(s.startPoint.y,s.endPoint.y)+Math.abs(s.endPoint.y-s.startPoint.y)/2+u,s.label.width,s.label.height,{fill:c},d),s.techn&&""!==s.techn.text&&(d=n.messageFont(),Me(n)("["+s.techn.text+"]",i,Math.min(s.startPoint.x,s.endPoint.x)+Math.abs(s.endPoint.x-s.startPoint.x)/2+A,Math.min(s.startPoint.y,s.endPoint.y)+Math.abs(s.endPoint.y-s.startPoint.y)/2+n.messageFontSize+5+u,Math.max(s.label.width,s.techn.width),s.techn.height,{fill:c,"font-style":"italic"},d))}}catch(t){o.e(t)}finally{o.f()}}(t,e,Sn)}(A,r.db.getRels(),r.db.getC4Shape,r),u.data.stopx=xn,u.data.stopy=Bn;var f=u.data,d=f.stopy-f.starty+2*Sn.diagramMarginY,p=f.stopx-f.startx+2*Sn.diagramMarginX;h&&A.append("text").text(h).attr("x",(f.stopx-f.startx)/2-4*Sn.diagramMarginX).attr("y",f.starty+Sn.diagramMarginY),pn(A,0,p,Sn.useMaxWidth);var g=h?60:0;A.attr("viewBox",f.startx-Sn.diagramMarginX+" -"+(Sn.diagramMarginY+g)+" "+p+" "+(d+g)),bn(Ue.parser.yy,A,e),o.debug("models:",f)}};function Qn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Gn="classid-",jn=[],$n={},Kn=0,Yn=[],zn=function(t){return ie.sanitizeText(t,jt())},Wn=function(t){var e="",n=t;if(t.indexOf("~")>0){var r=t.split("~");n=r[0],e=ie.sanitizeText(r[1],jt())}return{className:n,type:e}},Vn=function(t){var e=Wn(t);void 0===$n[e.className]&&($n[e.className]={id:e.className,type:e.type,cssClasses:[],methods:[],members:[],annotations:[],domId:Gn+e.className+"-"+Kn},Kn++)},qn=function(t){for(var e=Object.keys($n),n=0;n<e.length;n++)if($n[e[n]].id===t)return $n[e[n]].domId},Xn=function(t,e){var n=Wn(t).className,r=$n[n];if("string"==typeof e){var i=e.trim();i.startsWith("<<")&&i.endsWith(">>")?r.annotations.push(zn(i.substring(2,i.length-2))):i.indexOf(")")>0?r.methods.push(zn(i)):i&&r.members.push(zn(i))}},Jn=function(t,e){t.split(",").forEach((function(t){var n=t;t[0].match(/\d/)&&(n=Gn+n),void 0!==$n[n]&&$n[n].cssClasses.push(e)}))},Zn=function(t){var e=(0,l.select)(".mermaidTooltip");null===(e._groups||e)[0][0]&&(e=(0,l.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),(0,l.select)(t).select("svg").selectAll("g.node").on("mouseover",(function(){var t=(0,l.select)(this);if(null!==t.attr("title")){var n=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(t.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.top-14+document.body.scrollTop+"px"),e.html(e.html().replace(/&lt;br\/&gt;/g,"<br/>")),t.classed("hover",!0)}})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0),(0,l.select)(this).classed("hover",!1)}))};Yn.push(Zn);var tr="TB";const er={parseDirective:function(t,e,n){yl.parseDirective(this,t,e,n)},setAccTitle:Ae,getAccTitle:ue,getAccDescription:fe,setAccDescription:he,getConfig:function(){return jt().class},addClass:Vn,bindFunctions:function(t){Yn.forEach((function(e){e(t)}))},clear:function(){jn=[],$n={},(Yn=[]).push(Zn),le()},getClass:function(t){return $n[t]},getClasses:function(){return $n},addAnnotation:function(t,e){var n=Wn(t).className;$n[n].annotations.push(e)},getRelations:function(){return jn},addRelation:function(t){o.debug("Adding relation: "+JSON.stringify(t)),Vn(t.id1),Vn(t.id2),t.id1=Wn(t.id1).className,t.id2=Wn(t.id2).className,t.relationTitle1=ie.sanitizeText(t.relationTitle1.trim(),jt()),t.relationTitle2=ie.sanitizeText(t.relationTitle2.trim(),jt()),jn.push(t)},getDirection:function(){return tr},setDirection:function(t){tr=t},addMember:Xn,addMembers:function(t,e){Array.isArray(e)&&(e.reverse(),e.forEach((function(e){return Xn(t,e)})))},cleanupLabel:function(t){return":"===t.substring(0,1)?ie.sanitizeText(t.substr(1).trim(),jt()):zn(t.trim())},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},setClickEvent:function(t,e,n){t.split(",").forEach((function(t){(function(t,e,n){var r=jt(),i=t,a=qn(i);if("loose"===r.securityLevel&&void 0!==e&&void 0!==$n[i]){var o=[];if("string"==typeof n){o=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var s=0;s<o.length;s++){var c=o[s].trim();'"'===c.charAt(0)&&'"'===c.charAt(c.length-1)&&(c=c.substr(1,c.length-2)),o[s]=c}}0===o.length&&o.push(a),Yn.push((function(){var t=document.querySelector('[id="'.concat(a,'"]'));null!==t&&t.addEventListener("click",(function(){var t;vn.runFunc.apply(vn,[e].concat(function(t){if(Array.isArray(t))return Qn(t)}(t=o)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Qn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qn(t,e):void 0}}(t)||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.")}()))}),!1)}))}})(t,e,n),$n[t].haveCallback=!0})),Jn(t,"clickable")},setCssClass:Jn,setLink:function(t,e,n){var r=jt();t.split(",").forEach((function(t){var i=t;t[0].match(/\d/)&&(i=Gn+i),void 0!==$n[i]&&($n[i].link=vn.formatUrl(e,r),"sandbox"===r.securityLevel?$n[i].linkTarget="_top":$n[i].linkTarget="string"==typeof n?zn(n):"_blank")})),Jn(t,"clickable")},getTooltip:function(t){return $n[t].tooltip},setTooltip:function(t,e){var n=jt();t.split(",").forEach((function(t){void 0!==e&&($n[t].tooltip=ie.sanitizeText(e,n))}))},lookUpDomId:qn};var nr=n(681),rr=n.n(nr),ir=n(8282),ar=n.n(ir),or=0,sr=function(t){var e=t.match(/^(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+) *(\*|\$)?$/),n=t.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return e&&!n?cr(e):n?lr(n):Ar(t)},cr=function(t){var e="",n="";try{var r=t[1]?t[1].trim():"",i=t[2]?t[2].trim():"",a=t[3]?re(t[3].trim()):"",o=t[4]?t[4].trim():"",s=t[5]?t[5].trim():"";n=r+i+a+" "+o,e=hr(s)}catch(e){n=t}return{displayText:n,cssStyle:e}},lr=function(t){var e="",n="";try{var r=t[1]?t[1].trim():"",i=t[2]?t[2].trim():"",a=t[3]?re(t[3].trim()):"",o=t[4]?t[4].trim():"";n=r+i+"("+a+")"+(t[5]?" : "+re(t[5]).trim():""),e=hr(o)}catch(e){n=t}return{displayText:n,cssStyle:e}},Ar=function(t){var e="",n="",r="",i=t.indexOf("("),a=t.indexOf(")");if(i>1&&a>i&&a<=t.length){var o="",s="",c=t.substring(0,1);c.match(/\w/)?s=t.substring(0,i).trim():(c.match(/\+|-|~|#/)&&(o=c),s=t.substring(1,i).trim());var l=t.substring(i+1,a),A=t.substring(a+1,1);n=hr(A),e=o+s+"("+re(l.trim())+")",a<"".length&&""!==(r=t.substring(a+2).trim())&&(r=" : "+re(r))}else e=re(t);return{displayText:e,cssStyle:n}},ur=function(t,e,n,r){var i=sr(e),a=t.append("tspan").attr("x",r.padding).text(i.displayText);""!==i.cssStyle&&a.attr("style",i.cssStyle),n||a.attr("dy",r.textHeight)},hr=function(t){switch(t){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}};const fr=function(t,e,n,r){o.debug("Rendering class ",e,n);var i,a=e.id,s={id:a,label:e.id,width:0,height:0},c=t.append("g").attr("id",r.db.lookUpDomId(a)).attr("class","classGroup");i=e.link?c.append("svg:a").attr("xlink:href",e.link).attr("target",e.linkTarget).append("text").attr("y",n.textHeight+n.padding).attr("x",0):c.append("text").attr("y",n.textHeight+n.padding).attr("x",0);var l=!0;e.annotations.forEach((function(t){var e=i.append("tspan").text("«"+t+"»");l||e.attr("dy",n.textHeight),l=!1}));var A=e.id;void 0!==e.type&&""!==e.type&&(A+="<"+e.type+">");var u=i.append("tspan").text(A).attr("class","title");l||u.attr("dy",n.textHeight);var h=i.node().getBBox().height,f=c.append("line").attr("x1",0).attr("y1",n.padding+h+n.dividerMargin/2).attr("y2",n.padding+h+n.dividerMargin/2),d=c.append("text").attr("x",n.padding).attr("y",h+n.dividerMargin+n.textHeight).attr("fill","white").attr("class","classText");l=!0,e.members.forEach((function(t){ur(d,t,l,n),l=!1}));var p=d.node().getBBox(),g=c.append("line").attr("x1",0).attr("y1",n.padding+h+n.dividerMargin+p.height).attr("y2",n.padding+h+n.dividerMargin+p.height),m=c.append("text").attr("x",n.padding).attr("y",h+2*n.dividerMargin+p.height+n.textHeight).attr("fill","white").attr("class","classText");l=!0,e.methods.forEach((function(t){ur(m,t,l,n),l=!1}));var y=c.node().getBBox(),v=" ";e.cssClasses.length>0&&(v+=e.cssClasses.join(" "));var b=c.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",y.width+2*n.padding).attr("height",y.height+n.padding+.5*n.dividerMargin).attr("class",v).node().getBBox().width;return i.node().childNodes.forEach((function(t){t.setAttribute("x",(b-t.getBBox().width)/2)})),e.tooltip&&i.insert("title").text(e.tooltip),f.attr("x2",b),g.attr("x2",b),s.width=b,s.height=y.height+n.padding+.5*n.dividerMargin,s};var dr={},pr=function(t){var e=Object.entries(dr).find((function(e){return e[1].label===t}));if(e)return e[0]};const gr={draw:function(t,e,n,r){var i=jt().class;dr={},o.info("Rendering diagram "+t);var a,s=jt().securityLevel;"sandbox"===s&&(a=(0,l.select)("#i"+e));var c,A="sandbox"===s?(0,l.select)(a.nodes()[0].contentDocument.body):(0,l.select)("body"),u=("sandbox"===s?a.nodes()[0].contentDocument:document,A.select("[id='".concat(e,"']")));(c=u).append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),c.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),c.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),c.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),c.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),c.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),c.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),c.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z");var h=new(ar().Graph)({multigraph:!0});h.setGraph({isMultiGraph:!0}),h.setDefaultEdgeLabel((function(){return{}}));for(var f=r.db.getClasses(),d=Object.keys(f),p=0;p<d.length;p++){var g=f[d[p]],m=fr(u,g,i,r);dr[m.id]=m,h.setNode(m.id,m),o.info("Org height: "+m.height)}r.db.getRelations().forEach((function(t){o.info("tjoho"+pr(t.id1)+pr(t.id2)+JSON.stringify(t)),h.setEdge(pr(t.id1),pr(t.id2),{relation:t},t.title||"DEFAULT")})),rr().layout(h),h.nodes().forEach((function(t){void 0!==t&&void 0!==h.node(t)&&(o.debug("Node "+t+": "+JSON.stringify(h.node(t))),A.select("#"+r.db.lookUpDomId(t)).attr("transform","translate("+(h.node(t).x-h.node(t).width/2)+","+(h.node(t).y-h.node(t).height/2)+" )"))})),h.edges().forEach((function(t){void 0!==t&&void 0!==h.edge(t)&&(o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(h.edge(t))),function(t,e,n,r,i){var a=function(t){switch(t){case i.db.relationType.AGGREGATION:return"aggregation";case i.db.EXTENSION:return"extension";case i.db.COMPOSITION:return"composition";case i.db.DEPENDENCY:return"dependency";case i.db.LOLLIPOP:return"lollipop"}};e.points=e.points.filter((function(t){return!Number.isNaN(t.y)}));var s,c,A=e.points,u=(0,l.line)().x((function(t){return t.x})).y((function(t){return t.y})).curve(l.curveBasis),h=t.append("path").attr("d",u(A)).attr("id","edge"+or).attr("class","relation"),f="";r.arrowMarkerAbsolute&&(f=(f=(f=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),1==n.relation.lineType&&h.attr("class","relation dashed-line"),"none"!==n.relation.type1&&h.attr("marker-start","url("+f+"#"+a(n.relation.type1)+"Start)"),"none"!==n.relation.type2&&h.attr("marker-end","url("+f+"#"+a(n.relation.type2)+"End)");var d,p,g,m,y=e.points.length,v=vn.calcLabelPosition(e.points);if(s=v.x,c=v.y,y%2!=0&&y>1){var b=vn.calcCardinalityPosition("none"!==n.relation.type1,e.points,e.points[0]),_=vn.calcCardinalityPosition("none"!==n.relation.type2,e.points,e.points[y-1]);o.debug("cardinality_1_point "+JSON.stringify(b)),o.debug("cardinality_2_point "+JSON.stringify(_)),d=b.x,p=b.y,g=_.x,m=_.y}if(void 0!==n.title){var w=t.append("g").attr("class","classLabel"),E=w.append("text").attr("class","label").attr("x",s).attr("y",c).attr("fill","red").attr("text-anchor","middle").text(n.title);window.label=E;var C=E.node().getBBox();w.insert("rect",":first-child").attr("class","box").attr("x",C.x-r.padding/2).attr("y",C.y-r.padding/2).attr("width",C.width+r.padding).attr("height",C.height+r.padding)}o.info("Rendering relation "+JSON.stringify(n)),void 0!==n.relationTitle1&&"none"!==n.relationTitle1&&t.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",d).attr("y",p).attr("fill","black").attr("font-size","6").text(n.relationTitle1),void 0!==n.relationTitle2&&"none"!==n.relationTitle2&&t.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",g).attr("y",m).attr("fill","black").attr("font-size","6").text(n.relationTitle2),or++}(u,h.edge(t),h.edge(t).relation,i,r))}));var y=u.node().getBBox(),v=y.width+40,b=y.height+40;pn(u,0,v,i.useMaxWidth);var _="".concat(y.x-20," ").concat(y.y-20," ").concat(v," ").concat(b);o.debug("viewBox ".concat(_)),u.attr("viewBox",_),bn(r.db,u,e)}};var mr={extension:function(t,e,n){o.trace("Making markers for ",n),t.append("defs").append("marker").attr("id",e+"-extensionStart").attr("class","marker extension "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:function(t,e){t.append("defs").append("marker").attr("id",e+"-compositionStart").attr("class","marker composition "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:function(t,e){t.append("defs").append("marker").attr("id",e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:function(t,e){t.append("defs").append("marker").attr("id",e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},lollipop:function(t,e,n){t.append("defs").append("marker").attr("id",e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","white").attr("cx",6).attr("cy",7).attr("r",6)},point:function(t,e){t.append("marker").attr("id",e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle:function(t,e){t.append("marker").attr("id",e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross:function(t,e){t.append("marker").attr("id",e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb:function(t,e){t.append("defs").append("marker").attr("id",e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}};function yr(t){return(yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}const vr=function(t,e,n,r){var i=t||"";if("object"===yr(i)&&(i=i[0]),ne(jt().flowchart.htmlLabels))return i=i.replace(/\\n|\n/g,"<br />"),o.info("vertexText"+i),function(t){var e,n=(0,l.select)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=n.append("xhtml:div"),i=t.label,a=t.isNode?"nodeLabel":"edgeLabel";return r.html('<span class="'+a+'" '+(t.labelStyle?'style="'+t.labelStyle+'"':"")+">"+i+"</span>"),(e=t.labelStyle)&&r.attr("style",e),r.style("display","inline-block"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),n.node()}({isNode:r,label:dl(i).replace(/fa[lrsb]?:fa-[\w-]+/g,(function(t){return"<i class='".concat(t.replace(":"," "),"'></i>")})),labelStyle:e.replace("fill:","color:")});var a=document.createElementNS("http://www.w3.org/2000/svg","text");a.setAttribute("style",e.replace("color:","fill:"));var s=[];s="string"==typeof i?i.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(i)?i:[];for(var c=0;c<s.length;c++){var A=document.createElementNS("http://www.w3.org/2000/svg","tspan");A.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),A.setAttribute("dy","1em"),A.setAttribute("x","0"),n?A.setAttribute("class","title-row"):A.setAttribute("class","row"),A.textContent=s[c].trim(),a.appendChild(A)}return a};var br=function(t,e,n,r){var i;i=n||"node default";var a=t.insert("g").attr("class",i).attr("id",e.domId||e.id),o=a.insert("g").attr("class","label").attr("style",e.labelStyle),s="string"==typeof e.labelText?e.labelText:e.labelText[0],c=o.node().appendChild(vr(Jt(dl(s),jt()),e.labelStyle,!1,r)),A=c.getBBox();if(ne(jt().flowchart.htmlLabels)){var u=c.children[0],h=(0,l.select)(c);A=u.getBoundingClientRect(),h.attr("width",A.width),h.attr("height",A.height)}var f=e.padding/2;return o.attr("transform","translate("+-A.width/2+", "+-A.height/2+")"),{shapeSvg:a,bbox:A,halfPadding:f,label:o}},_r=function(t,e){var n=e.node().getBBox();t.width=n.width,t.height=n.height};function wr(t,e,n,r){return t.insert("polygon",":first-child").attr("points",r.map((function(t){return t.x+","+t.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+n/2+")")}var Er={},Cr={},xr={},Br=function(t,e){return o.trace("In isDecendant",e," ",t," = ",Cr[e].indexOf(t)>=0),Cr[e].indexOf(t)>=0},Tr=function t(e,n,r,i){o.warn("Copying children of ",e,"root",i,"data",n.node(e),i);var a=n.children(e)||[];e!==i&&a.push(e),o.warn("Copying (nodes) clusterId",e,"nodes",a),a.forEach((function(a){if(n.children(a).length>0)t(a,n,r,i);else{var s=n.node(a);o.info("cp ",a," to ",i," with parent ",e),r.setNode(a,s),i!==n.parent(a)&&(o.warn("Setting parent",a,n.parent(a)),r.setParent(a,n.parent(a))),e!==i&&a!==e?(o.debug("Setting parent",a,e),r.setParent(a,e)):(o.info("In copy ",e,"root",i,"data",n.node(e),i),o.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==i,"node!==clusterId",a!==e));var c=n.edges(a);o.debug("Copying Edges",c),c.forEach((function(t){o.info("Edge",t);var a=n.edge(t.v,t.w,t.name);o.info("Edge data",a,i);try{!function(t,e){return o.info("Decendants of ",e," is ",Cr[e]),o.info("Edge is ",t),t.v!==e&&t.w!==e&&(Cr[e]?(o.info("Here "),Cr[e].indexOf(t.v)>=0||!!Br(t.v,e)||!!Br(t.w,e)||Cr[e].indexOf(t.w)>=0):(o.debug("Tilt, ",e,",not in decendants"),!1))}(t,i)?o.info("Skipping copy of edge ",t.v,"--\x3e",t.w," rootId: ",i," clusterId:",e):(o.info("Copying as ",t.v,t.w,a,t.name),r.setEdge(t.v,t.w,a,t.name),o.info("newGraph edges ",r.edges(),r.edge(r.edges()[0])))}catch(t){o.error(t)}}))}o.debug("Removing node",a),n.removeNode(a)}))},kr=function t(e,n){o.trace("Searching",e);var r=n.children(e);if(o.trace("Searching children of id ",e,r),r.length<1)return o.trace("This is a valid node",e),e;for(var i=0;i<r.length;i++){var a=t(r[i],n);if(a)return o.trace("Found replacement for",e," => ",a),a}},Sr=function(t){return Er[t]&&Er[t].externalConnections&&Er[t]?Er[t].id:t},Ir=function(t,e){!t||e>10?o.debug("Opting out, no graph "):(o.debug("Opting in, graph "),t.nodes().forEach((function(e){t.children(e).length>0&&(o.warn("Cluster identified",e," Replacement id in edges: ",kr(e,t)),Cr[e]=function t(e,n){for(var r=n.children(e),i=[].concat(r),a=0;a<r.length;a++)xr[r[a]]=e,i=i.concat(t(r[a],n));return i}(e,t),Er[e]={id:kr(e,t),clusterData:t.node(e)})})),t.nodes().forEach((function(e){var n=t.children(e),r=t.edges();n.length>0?(o.debug("Cluster identified",e,Cr),r.forEach((function(t){t.v!==e&&t.w!==e&&Br(t.v,e)^Br(t.w,e)&&(o.warn("Edge: ",t," leaves cluster ",e),o.warn("Decendants of XXX ",e,": ",Cr[e]),Er[e].externalConnections=!0)}))):o.debug("Not a cluster ",e,Cr)})),t.edges().forEach((function(e){var n=t.edge(e);o.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),o.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(t.edge(e)));var r=e.v,i=e.w;if(o.warn("Fix XXX",Er,"ids:",e.v,e.w,"Translateing: ",Er[e.v]," --- ",Er[e.w]),Er[e.v]&&Er[e.w]&&Er[e.v]===Er[e.w]){o.warn("Fixing and trixing link to self - removing XXX",e.v,e.w,e.name),o.warn("Fixing and trixing - removing XXX",e.v,e.w,e.name),r=Sr(e.v),i=Sr(e.w),t.removeEdge(e.v,e.w,e.name);var a=e.w+"---"+e.v;t.setNode(a,{domId:a,id:a,labelStyle:"",labelText:n.label,padding:0,shape:"labelRect",style:""});var s=JSON.parse(JSON.stringify(n)),c=JSON.parse(JSON.stringify(n));s.label="",s.arrowTypeEnd="none",c.label="",s.fromCluster=e.v,c.toCluster=e.v,t.setEdge(r,a,s,e.name+"-cyclic-special"),t.setEdge(a,i,c,e.name+"-cyclic-special")}else(Er[e.v]||Er[e.w])&&(o.warn("Fixing and trixing - removing XXX",e.v,e.w,e.name),r=Sr(e.v),i=Sr(e.w),t.removeEdge(e.v,e.w,e.name),r!==e.v&&(n.fromCluster=e.v),i!==e.w&&(n.toCluster=e.w),o.warn("Fix Replacing with XXX",r,i,e.name),t.setEdge(r,i,n,e.name))})),o.warn("Adjusted Graph",ar().json.write(t)),Lr(t,0),o.trace(Er))},Lr=function t(e,n){if(o.warn("extractor - ",n,ar().json.write(e),e.children("D")),n>10)o.error("Bailing out");else{for(var r=e.nodes(),i=!1,a=0;a<r.length;a++){var s=r[a],c=e.children(s);i=i||c.length>0}if(i){o.debug("Nodes = ",r,n);for(var l=0;l<r.length;l++){var A=r[l];if(o.debug("Extracting node",A,Er,Er[A]&&!Er[A].externalConnections,!e.parent(A),e.node(A),e.children("D")," Depth ",n),Er[A])if(!Er[A].externalConnections&&e.children(A)&&e.children(A).length>0){o.warn("Cluster without external connections, without a parent and with children",A,n);var u="TB"===e.graph().rankdir?"LR":"TB";Er[A]&&Er[A].clusterData&&Er[A].clusterData.dir&&(u=Er[A].clusterData.dir,o.warn("Fixing dir",Er[A].clusterData.dir,u));var h=new(ar().Graph)({multigraph:!0,compound:!0}).setGraph({rankdir:u,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));o.warn("Old graph before copy",ar().json.write(e)),Tr(A,e,h,A),e.setNode(A,{clusterNode:!0,id:A,clusterData:Er[A].clusterData,labelText:Er[A].labelText,graph:h}),o.warn("New graph after copy node: (",A,")",ar().json.write(h)),o.debug("Old graph after copy",ar().json.write(e))}else o.warn("Cluster ** ",A," **not meeting the criteria !externalConnections:",!Er[A].externalConnections," no parent: ",!e.parent(A)," children ",e.children(A)&&e.children(A).length>0,e.children("D"),n),o.debug(Er);else o.debug("Not a cluster",A,n)}r=e.nodes(),o.warn("New list of nodes",r);for(var f=0;f<r.length;f++){var d=r[f],p=e.node(d);o.warn(" Now next level",d,p),p.clusterNode&&t(p.graph,n+1)}}else o.debug("Done, no node has children",e.nodes())}},Fr=function(t){return function t(e,n){if(0===n.length)return[];var r=Object.assign(n);return n.forEach((function(n){var i=e.children(n),a=t(e,i);r=r.concat(a)})),r}(t,t.children())},Nr=n(3841);function Or(t,e){return t*e>0}const Dr=function(t,e,n,r){var i,a,o,s,c,l,A,u,h,f,d,p,g;if(i=e.y-t.y,o=t.x-e.x,c=e.x*t.y-t.x*e.y,h=i*n.x+o*n.y+c,f=i*r.x+o*r.y+c,!(0!==h&&0!==f&&Or(h,f)||(a=r.y-n.y,s=n.x-r.x,l=r.x*n.y-n.x*r.y,A=a*t.x+s*t.y+l,u=a*e.x+s*e.y+l,0!==A&&0!==u&&Or(A,u)||0==(d=i*s-a*o))))return p=Math.abs(d/2),{x:(g=o*l-s*c)<0?(g-p)/d:(g+p)/d,y:(g=a*c-i*l)<0?(g-p)/d:(g+p)/d}},Mr=function(t,e){var n,r,i=t.x,a=t.y,o=e.x-i,s=e.y-a,c=t.width/2,l=t.height/2;return Math.abs(s)*c>Math.abs(o)*l?(s<0&&(l=-l),n=0===s?0:l*o/s,r=l):(o<0&&(c=-c),n=c,r=0===o?0:c*s/o),{x:i+n,y:a+r}},Rr=(n.n(Nr)(),function(t,e,n){return function(t,e,n,r){var i=t.x,a=t.y,o=i-r.x,s=a-r.y,c=Math.sqrt(e*e*s*s+n*n*o*o),l=Math.abs(e*n*o/c);r.x<i&&(l=-l);var A=Math.abs(e*n*s/c);return r.y<a&&(A=-A),{x:i+l,y:a+A}}(t,e,e,n)}),Ur=function(t,e,n){var r=t.x,i=t.y,a=[],o=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach((function(t){o=Math.min(o,t.x),s=Math.min(s,t.y)})):(o=Math.min(o,e.x),s=Math.min(s,e.y));for(var c=r-t.width/2-o,l=i-t.height/2-s,A=0;A<e.length;A++){var u=e[A],h=e[A<e.length-1?A+1:0],f=Dr(t,n,{x:c+u.x,y:l+u.y},{x:c+h.x,y:l+h.y});f&&a.push(f)}return a.length?(a.length>1&&a.sort((function(t,e){var r=t.x-n.x,i=t.y-n.y,a=Math.sqrt(r*r+i*i),o=e.x-n.x,s=e.y-n.y,c=Math.sqrt(o*o+s*s);return a<c?-1:a===c?0:1})),a[0]):t},Pr=Mr;function Hr(t){return(Hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Qr(t,e,n,r){var i=[],a=function(t){i.push(t),i.push(0)},s=function(t){i.push(0),i.push(t)};e.includes("t")?(o.debug("add top border"),a(n)):s(n),e.includes("r")?(o.debug("add right border"),a(r)):s(r),e.includes("b")?(o.debug("add bottom border"),a(n)):s(n),e.includes("l")?(o.debug("add left border"),a(r)):s(r),t.attr("stroke-dasharray",i.join(" "))}var Gr=function(t,e,n){var r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),i=70,a=10;"LR"===n&&(i=10,a=70);var o=r.append("rect").attr("x",-1*i/2).attr("y",-1*a/2).attr("width",i).attr("height",a).attr("class","fork-join");return _r(e,o),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(t){return Pr(e,t)},r},jr={question:function(t,e){var n=br(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding+(i.height+e.padding),s=[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}];o.info("Question main (Circle)");var c=wr(r,a,a,s);return c.attr("style",e.style),_r(e,c),e.intersect=function(t){return o.warn("Intersect called"),Ur(e,s,t)},r},rect:function(t,e){var n=br(t,e,"node "+e.classes,!0),r=n.shapeSvg,i=n.bbox,a=n.halfPadding;o.trace("Classes = ",e.classes);var s=r.insert("rect",":first-child"),c=i.width+e.padding,l=i.height+e.padding;if(s.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",-i.width/2-a).attr("y",-i.height/2-a).attr("width",c).attr("height",l),e.props){var A=new Set(Object.keys(e.props));e.props.borders&&(Qr(s,e.props.borders,c,l),A.delete("borders")),A.forEach((function(t){o.warn("Unknown node property ".concat(t))}))}return _r(e,s),e.intersect=function(t){return Pr(e,t)},r},labelRect:function(t,e){var n=br(t,e,"label",!0).shapeSvg;o.trace("Classes = ",e.classes);var r=n.insert("rect",":first-child");if(r.attr("width",0).attr("height",0),n.attr("class","label edgeLabel"),e.props){var i=new Set(Object.keys(e.props));e.props.borders&&(Qr(r,e.props.borders,0,0),i.delete("borders")),i.forEach((function(t){o.warn("Unknown node property ".concat(t))}))}return _r(e,r),e.intersect=function(t){return Pr(e,t)},n},rectWithTitle:function(t,e){var n;n=e.classes?"node "+e.classes:"node default";var r,i=t.insert("g").attr("class",n).attr("id",e.domId||e.id),a=i.insert("rect",":first-child"),s=i.insert("line"),c=i.insert("g").attr("class","label"),A=e.labelText.flat?e.labelText.flat():e.labelText;r="object"===Hr(A)?A[0]:A,o.info("Label text abc79",r,A,"object"===Hr(A));var u=c.node().appendChild(vr(r,e.labelStyle,!0,!0)),h={width:0,height:0};if(ne(jt().flowchart.htmlLabels)){var f=u.children[0],d=(0,l.select)(u);h=f.getBoundingClientRect(),d.attr("width",h.width),d.attr("height",h.height)}o.info("Text 2",A);var p=A.slice(1,A.length),g=u.getBBox(),m=c.node().appendChild(vr(p.join?p.join("<br/>"):p,e.labelStyle,!0,!0));if(ne(jt().flowchart.htmlLabels)){var y=m.children[0],v=(0,l.select)(m);h=y.getBoundingClientRect(),v.attr("width",h.width),v.attr("height",h.height)}var b=e.padding/2;return(0,l.select)(m).attr("transform","translate( "+(h.width>g.width?0:(g.width-h.width)/2)+", "+(g.height+b+5)+")"),(0,l.select)(u).attr("transform","translate( "+(h.width<g.width?0:-(g.width-h.width)/2)+", 0)"),h=c.node().getBBox(),c.attr("transform","translate("+-h.width/2+", "+(-h.height/2-b+3)+")"),a.attr("class","outer title-state").attr("x",-h.width/2-b).attr("y",-h.height/2-b).attr("width",h.width+e.padding).attr("height",h.height+e.padding),s.attr("class","divider").attr("x1",-h.width/2-b).attr("x2",h.width/2+b).attr("y1",-h.height/2-b+g.height+b).attr("y2",-h.height/2-b+g.height+b),_r(e,a),e.intersect=function(t){return Pr(e,t)},i},choice:function(t,e){var n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);return n.insert("polygon",":first-child").attr("points",[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}].map((function(t){return t.x+","+t.y})).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(t){return Rr(e,14,t)},n},circle:function(t,e){var n=br(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=n.halfPadding,s=r.insert("circle",":first-child");return s.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",i.width/2+a).attr("width",i.width+e.padding).attr("height",i.height+e.padding),o.info("Circle main"),_r(e,s),e.intersect=function(t){return o.info("Circle intersect",e,i.width/2+a,t),Rr(e,i.width/2+a,t)},r},doublecircle:function(t,e){var n=br(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=n.halfPadding,s=r.insert("g",":first-child"),c=s.insert("circle"),l=s.insert("circle");return c.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",i.width/2+a+5).attr("width",i.width+e.padding+10).attr("height",i.height+e.padding+10),l.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",i.width/2+a).attr("width",i.width+e.padding).attr("height",i.height+e.padding),o.info("DoubleCircle main"),_r(e,c),e.intersect=function(t){return o.info("DoubleCircle intersect",e,i.width/2+a+5,t),Rr(e,i.width/2+a+5,t)},r},stadium:function(t,e){var n=br(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.height+e.padding,o=i.width+a/4+e.padding,s=r.insert("rect",":first-child").attr("style",e.style).attr("rx",a/2).attr("ry",a/2).attr("x",-o/2).attr("y",-a/2).attr("width",o).attr("height",a);return _r(e,s),e.intersect=function(t){return Pr(e,t)},r},hexagon:function(t,e){var n=br(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.height+e.padding,o=a/4,s=i.width+2*o+e.padding,c=[{x:o,y:0},{x:s-o,y:0},{x:s,y:-a/2},{x:s-o,y:-a},{x:o,y:-a},{x:0,y:-a/2}],l=wr(r,s,a,c);return l.attr("style",e.style),_r(e,l),e.intersect=function(t){return Ur(e,c,t)},r},rect_left_inv_arrow:function(t,e){var n=br(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:-o/2,y:0},{x:a,y:0},{x:a,y:-o},{x:-o/2,y:-o},{x:0,y:-o/2}];return wr(r,a,o,s).attr("style",e.style),e.width=a+o,e.height=o,e.intersect=function(t){return Ur(e,s,t)},r},lean_right:function(t,e){var n=br(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:-2*o/6,y:0},{x:a-o/6,y:0},{x:a+2*o/6,y:-o},{x:o/6,y:-o}],c=wr(r,a,o,s);return c.attr("style",e.style),_r(e,c),e.intersect=function(t){return Ur(e,s,t)},r},lean_left:function(t,e){var n=br(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:2*o/6,y:0},{x:a+o/6,y:0},{x:a-2*o/6,y:-o},{x:-o/6,y:-o}],c=wr(r,a,o,s);return c.attr("style",e.style),_r(e,c),e.intersect=function(t){return Ur(e,s,t)},r},trapezoid:function(t,e){var n=br(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:-2*o/6,y:0},{x:a+2*o/6,y:0},{x:a-o/6,y:-o},{x:o/6,y:-o}],c=wr(r,a,o,s);return c.attr("style",e.style),_r(e,c),e.intersect=function(t){return Ur(e,s,t)},r},inv_trapezoid:function(t,e){var n=br(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:o/6,y:0},{x:a-o/6,y:0},{x:a+2*o/6,y:-o},{x:-2*o/6,y:-o}],c=wr(r,a,o,s);return c.attr("style",e.style),_r(e,c),e.intersect=function(t){return Ur(e,s,t)},r},rect_right_inv_arrow:function(t,e){var n=br(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:0,y:0},{x:a+o/2,y:0},{x:a,y:-o/2},{x:a+o/2,y:-o},{x:0,y:-o}],c=wr(r,a,o,s);return c.attr("style",e.style),_r(e,c),e.intersect=function(t){return Ur(e,s,t)},r},cylinder:function(t,e){var n=br(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding,o=a/2,s=o/(2.5+a/50),c=i.height+s+e.padding,l="M 0,"+s+" a "+o+","+s+" 0,0,0 "+a+" 0 a "+o+","+s+" 0,0,0 "+-a+" 0 l 0,"+c+" a "+o+","+s+" 0,0,0 "+a+" 0 l 0,"+-c,A=r.attr("label-offset-y",s).insert("path",":first-child").attr("style",e.style).attr("d",l).attr("transform","translate("+-a/2+","+-(c/2+s)+")");return _r(e,A),e.intersect=function(t){var n=Pr(e,t),r=n.x-e.x;if(0!=o&&(Math.abs(r)<e.width/2||Math.abs(r)==e.width/2&&Math.abs(n.y-e.y)>e.height/2-s)){var i=s*s*(1-r*r/(o*o));0!=i&&(i=Math.sqrt(i)),i=s-i,t.y-e.y>0&&(i=-i),n.y+=i}return n},r},start:function(t,e){var n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),r=n.insert("circle",":first-child");return r.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),_r(e,r),e.intersect=function(t){return Rr(e,7,t)},n},end:function(t,e){var n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),r=n.insert("circle",":first-child"),i=n.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),r.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),_r(e,i),e.intersect=function(t){return Rr(e,7,t)},n},note:function(t,e){var n=br(t,e,"node "+e.classes,!0),r=n.shapeSvg,i=n.bbox,a=n.halfPadding;o.info("Classes = ",e.classes);var s=r.insert("rect",":first-child");return s.attr("rx",e.rx).attr("ry",e.ry).attr("x",-i.width/2-a).attr("y",-i.height/2-a).attr("width",i.width+e.padding).attr("height",i.height+e.padding),_r(e,s),e.intersect=function(t){return Pr(e,t)},r},subroutine:function(t,e){var n=br(t,e,void 0,!0),r=n.shapeSvg,i=n.bbox,a=i.width+e.padding,o=i.height+e.padding,s=[{x:0,y:0},{x:a,y:0},{x:a,y:-o},{x:0,y:-o},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-o},{x:-8,y:-o},{x:-8,y:0}],c=wr(r,a,o,s);return c.attr("style",e.style),_r(e,c),e.intersect=function(t){return Ur(e,s,t)},r},fork:Gr,join:Gr,class_box:function(t,e){var n,r=e.padding/2;n=e.classes?"node "+e.classes:"node default";var i=t.insert("g").attr("class",n).attr("id",e.domId||e.id),a=i.insert("rect",":first-child"),o=i.insert("line"),s=i.insert("line"),c=0,A=4,u=i.insert("g").attr("class","label"),h=0,f=e.classData.annotations&&e.classData.annotations[0],d=e.classData.annotations[0]?"«"+e.classData.annotations[0]+"»":"",p=u.node().appendChild(vr(d,e.labelStyle,!0,!0)),g=p.getBBox();if(ne(jt().flowchart.htmlLabels)){var m=p.children[0],y=(0,l.select)(p);g=m.getBoundingClientRect(),y.attr("width",g.width),y.attr("height",g.height)}e.classData.annotations[0]&&(A+=g.height+4,c+=g.width);var v=e.classData.id;void 0!==e.classData.type&&""!==e.classData.type&&(jt().flowchart.htmlLabels?v+="&lt;"+e.classData.type+"&gt;":v+="<"+e.classData.type+">");var b=u.node().appendChild(vr(v,e.labelStyle,!0,!0));(0,l.select)(b).attr("class","classTitle");var _=b.getBBox();if(ne(jt().flowchart.htmlLabels)){var w=b.children[0],E=(0,l.select)(b);_=w.getBoundingClientRect(),E.attr("width",_.width),E.attr("height",_.height)}A+=_.height+4,_.width>c&&(c=_.width);var C=[];e.classData.members.forEach((function(t){var n=sr(t),r=n.displayText;jt().flowchart.htmlLabels&&(r=r.replace(/</g,"&lt;").replace(/>/g,"&gt;"));var i=u.node().appendChild(vr(r,n.cssStyle?n.cssStyle:e.labelStyle,!0,!0)),a=i.getBBox();if(ne(jt().flowchart.htmlLabels)){var o=i.children[0],s=(0,l.select)(i);a=o.getBoundingClientRect(),s.attr("width",a.width),s.attr("height",a.height)}a.width>c&&(c=a.width),A+=a.height+4,C.push(i)})),A+=8;var x=[];if(e.classData.methods.forEach((function(t){var n=sr(t),r=n.displayText;jt().flowchart.htmlLabels&&(r=r.replace(/</g,"&lt;").replace(/>/g,"&gt;"));var i=u.node().appendChild(vr(r,n.cssStyle?n.cssStyle:e.labelStyle,!0,!0)),a=i.getBBox();if(ne(jt().flowchart.htmlLabels)){var o=i.children[0],s=(0,l.select)(i);a=o.getBoundingClientRect(),s.attr("width",a.width),s.attr("height",a.height)}a.width>c&&(c=a.width),A+=a.height+4,x.push(i)})),A+=8,f){var B=(c-g.width)/2;(0,l.select)(p).attr("transform","translate( "+(-1*c/2+B)+", "+-1*A/2+")"),h=g.height+4}var T=(c-_.width)/2;return(0,l.select)(b).attr("transform","translate( "+(-1*c/2+T)+", "+(-1*A/2+h)+")"),h+=_.height+4,o.attr("class","divider").attr("x1",-c/2-r).attr("x2",c/2+r).attr("y1",-A/2-r+8+h).attr("y2",-A/2-r+8+h),h+=8,C.forEach((function(t){(0,l.select)(t).attr("transform","translate( "+-c/2+", "+(-1*A/2+h+4)+")"),h+=_.height+4})),h+=8,s.attr("class","divider").attr("x1",-c/2-r).attr("x2",c/2+r).attr("y1",-A/2-r+8+h).attr("y2",-A/2-r+8+h),h+=8,x.forEach((function(t){(0,l.select)(t).attr("transform","translate( "+-c/2+", "+(-1*A/2+h)+")"),h+=_.height+4})),a.attr("class","outer title-state").attr("x",-c/2-r).attr("y",-A/2-r).attr("width",c+e.padding).attr("height",A+e.padding),_r(e,a),e.intersect=function(t){return Pr(e,t)},i}},$r={},Kr=function(t){var e=$r[t.id];o.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");var n=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+n-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),n},Yr={rect:function(t,e){o.trace("Creating subgraph rect for ",e.id,e);var n=t.insert("g").attr("class","cluster"+(e.class?" "+e.class:"")).attr("id",e.id),r=n.insert("rect",":first-child"),i=n.insert("g").attr("class","cluster-label"),a=i.node().appendChild(vr(e.labelText,e.labelStyle,void 0,!0)),s=a.getBBox();if(ne(jt().flowchart.htmlLabels)){var c=a.children[0],A=(0,l.select)(a);s=c.getBoundingClientRect(),A.attr("width",s.width),A.attr("height",s.height)}var u=0*e.padding,h=u/2,f=e.width<=s.width+u?s.width+u:e.width;e.width<=s.width+u?e.diff=(s.width-e.width)/2-e.padding/2:e.diff=-e.padding/2,o.trace("Data ",e,JSON.stringify(e)),r.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-f/2).attr("y",e.y-e.height/2-h).attr("width",f).attr("height",e.height+u),i.attr("transform","translate("+(e.x-s.width/2)+", "+(e.y-e.height/2+e.padding/3)+")");var d=r.node().getBBox();return e.width=d.width,e.height=d.height,e.intersect=function(t){return Mr(e,t)},n},roundedWithTitle:function(t,e){var n=t.insert("g").attr("class",e.classes).attr("id",e.id),r=n.insert("rect",":first-child"),i=n.insert("g").attr("class","cluster-label"),a=n.append("rect"),o=i.node().appendChild(vr(e.labelText,e.labelStyle,void 0,!0)),s=o.getBBox();if(ne(jt().flowchart.htmlLabels)){var c=o.children[0],A=(0,l.select)(o);s=c.getBoundingClientRect(),A.attr("width",s.width),A.attr("height",s.height)}s=o.getBBox();var u=0*e.padding,h=u/2,f=e.width<=s.width+e.padding?s.width+e.padding:e.width;e.width<=s.width+e.padding?e.diff=(s.width+0*e.padding-e.width)/2:e.diff=-e.padding/2,r.attr("class","outer").attr("x",e.x-f/2-h).attr("y",e.y-e.height/2-h).attr("width",f+u).attr("height",e.height+u),a.attr("class","inner").attr("x",e.x-f/2-h).attr("y",e.y-e.height/2-h+s.height-1).attr("width",f+u).attr("height",e.height+u-s.height-3),i.attr("transform","translate("+(e.x-s.width/2)+", "+(e.y-e.height/2-e.padding/3+(ne(jt().flowchart.htmlLabels)?5:3))+")");var d=r.node().getBBox();return e.height=d.height,e.intersect=function(t){return Mr(e,t)},n},noteGroup:function(t,e){var n=t.insert("g").attr("class","note-cluster").attr("id",e.id),r=n.insert("rect",":first-child"),i=0*e.padding,a=i/2;r.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2-a).attr("width",e.width+i).attr("height",e.height+i).attr("fill","none");var o=r.node().getBBox();return e.width=o.width,e.height=o.height,e.intersect=function(t){return Mr(e,t)},n},divider:function(t,e){var n=t.insert("g").attr("class",e.classes).attr("id",e.id),r=n.insert("rect",":first-child"),i=0*e.padding,a=i/2;r.attr("class","divider").attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2).attr("width",e.width+i).attr("height",e.height+i);var o=r.node().getBBox();return e.width=o.width,e.height=o.height,e.diff=-e.padding/2,e.intersect=function(t){return Mr(e,t)},n}},zr={},Wr={},Vr={};function qr(t,e){jt().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}var Xr=function(t,e){o.warn("abc88 cutPathAtIntersect",t,e);var n=[],r=t[0],i=!1;return t.forEach((function(t){if(o.info("abc88 checking point",t,e),function(t,e){var n=t.x,r=t.y,i=Math.abs(e.x-n),a=Math.abs(e.y-r),o=t.width/2,s=t.height/2;return i>=o||a>=s}(e,t)||i)o.warn("abc88 outside",t,r),r=t,i||n.push(t);else{var a=function(t,e,n){o.warn("intersection calc abc89:\n outsidePoint: ".concat(JSON.stringify(e),"\n insidePoint : ").concat(JSON.stringify(n),"\n node : x:").concat(t.x," y:").concat(t.y," w:").concat(t.width," h:").concat(t.height));var r=t.x,i=t.y,a=Math.abs(r-n.x),s=t.width/2,c=n.x<e.x?s-a:s+a,l=t.height/2,A=Math.abs(e.y-n.y),u=Math.abs(e.x-n.x);if(Math.abs(i-e.y)*s>Math.abs(r-e.x)*l){var h=n.y<e.y?e.y-l-i:i-l-e.y;c=u*h/A;var f={x:n.x<e.x?n.x+c:n.x-u+c,y:n.y<e.y?n.y+A-h:n.y-A+h};return 0===c&&(f.x=e.x,f.y=e.y),0===u&&(f.x=e.x),0===A&&(f.y=e.y),o.warn("abc89 topp/bott calc, Q ".concat(A,", q ").concat(h,", R ").concat(u,", r ").concat(c),f),f}var d=A*(c=n.x<e.x?e.x-s-r:r-s-e.x)/u,p=n.x<e.x?n.x+u-c:n.x-u+c,g=n.y<e.y?n.y+d:n.y-d;return o.warn("sides calc abc89, Q ".concat(A,", q ").concat(d,", R ").concat(u,", r ").concat(c),{_x:p,_y:g}),0===c&&(p=e.x,g=e.y),0===u&&(p=e.x),0===A&&(g=e.y),{x:p,y:g}}(e,r,t);o.warn("abc88 inside",t,r,a),o.warn("abc88 intersection",a);var s=!1;n.forEach((function(t){s=s||t.x===a.x&&t.y===a.y})),n.find((function(t){return t.x===a.x&&t.y===a.y}))?o.warn("abc88 no intersect",a,n):n.push(a),i=!0}})),o.warn("abc88 returning points",n),n},Jr=function t(e,n,r,i){o.info("Graph in recursive render: XXX",ar().json.write(n),i);var a=n.graph().rankdir;o.trace("Dir in recursive render - dir:",a);var s=e.insert("g").attr("class","root");n.nodes()?o.info("Recursive render XXX",n.nodes()):o.info("No nodes found for",n),n.edges().length>0&&o.trace("Recursive edges",n.edge(n.edges()[0]));var c=s.insert("g").attr("class","clusters"),A=s.insert("g").attr("class","edgePaths"),u=s.insert("g").attr("class","edgeLabels"),h=s.insert("g").attr("class","nodes");n.nodes().forEach((function(e){var s=n.node(e);if(void 0!==i){var c=JSON.parse(JSON.stringify(i.clusterData));o.info("Setting data for cluster XXX (",e,") ",c,i),n.setNode(i.id,c),n.parent(e)||(o.trace("Setting parent",e,i.id),n.setParent(e,i.id,c))}if(o.info("(Insert) Node XXX"+e+": "+JSON.stringify(n.node(e))),s&&s.clusterNode){o.info("Cluster identified",e,s.width,n.node(e));var l=t(h,s.graph,r,n.node(e)),A=l.elem;_r(s,A),s.diff=l.diff||0,o.info("Node bounds (abc123)",e,s,s.width,s.x,s.y),function(t,e){$r[e.id]=t}(A,s),o.warn("Recursive render complete ",A,s)}else n.children(e).length>0?(o.info("Cluster - the non recursive path XXX",e,s.id,s,n),o.info(kr(s.id,n)),Er[s.id]={id:kr(s.id,n),node:s}):(o.info("Node - the non recursive path",e,s.id,s),function(t,e,n){var r,i,a;e.link?("sandbox"===jt().securityLevel?a="_top":e.linkTarget&&(a=e.linkTarget||"_blank"),r=t.insert("svg:a").attr("xlink:href",e.link).attr("target",a),i=jr[e.shape](r,e,n)):r=i=jr[e.shape](t,e,n),e.tooltip&&i.attr("title",e.tooltip),e.class&&i.attr("class","node default "+e.class),$r[e.id]=r,e.haveCallback&&$r[e.id].attr("class",$r[e.id].attr("class")+" clickable")}(h,n.node(e),a))})),n.edges().forEach((function(t){var e=n.edge(t.v,t.w,t.name);o.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),o.info("Edge "+t.v+" -> "+t.w+": ",t," ",JSON.stringify(n.edge(t))),o.info("Fix",Er,"ids:",t.v,t.w,"Translateing: ",Er[t.v],Er[t.w]),function(t,e){var n=vr(e.label,e.labelStyle),r=t.insert("g").attr("class","edgeLabel"),i=r.insert("g").attr("class","label");i.node().appendChild(n);var a,o=n.getBBox();if(ne(jt().flowchart.htmlLabels)){var s=n.children[0],c=(0,l.select)(n);o=s.getBoundingClientRect(),c.attr("width",o.width),c.attr("height",o.height)}if(i.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),Wr[e.id]=r,e.width=o.width,e.height=o.height,e.startLabelLeft){var A=vr(e.startLabelLeft,e.labelStyle),u=t.insert("g").attr("class","edgeTerminals"),h=u.insert("g").attr("class","inner");a=h.node().appendChild(A);var f=A.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),Vr[e.id]||(Vr[e.id]={}),Vr[e.id].startLeft=u,qr(a,e.startLabelLeft)}if(e.startLabelRight){var d=vr(e.startLabelRight,e.labelStyle),p=t.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner");a=p.node().appendChild(d),g.node().appendChild(d);var m=d.getBBox();g.attr("transform","translate("+-m.width/2+", "+-m.height/2+")"),Vr[e.id]||(Vr[e.id]={}),Vr[e.id].startRight=p,qr(a,e.startLabelRight)}if(e.endLabelLeft){var y=vr(e.endLabelLeft,e.labelStyle),v=t.insert("g").attr("class","edgeTerminals"),b=v.insert("g").attr("class","inner");a=b.node().appendChild(y);var _=y.getBBox();b.attr("transform","translate("+-_.width/2+", "+-_.height/2+")"),v.node().appendChild(y),Vr[e.id]||(Vr[e.id]={}),Vr[e.id].endLeft=v,qr(a,e.endLabelLeft)}if(e.endLabelRight){var w=vr(e.endLabelRight,e.labelStyle),E=t.insert("g").attr("class","edgeTerminals"),C=E.insert("g").attr("class","inner");a=C.node().appendChild(w);var x=w.getBBox();C.attr("transform","translate("+-x.width/2+", "+-x.height/2+")"),E.node().appendChild(w),Vr[e.id]||(Vr[e.id]={}),Vr[e.id].endRight=E,qr(a,e.endLabelRight)}}(u,e)})),n.edges().forEach((function(t){o.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t))})),o.info("#############################################"),o.info("### Layout ###"),o.info("#############################################"),o.info(n),rr().layout(n),o.info("Graph after layout:",ar().json.write(n));var f=0;return Fr(n).forEach((function(t){var e=n.node(t);o.info("Position "+t+": "+JSON.stringify(n.node(t))),o.info("Position "+t+": ("+e.x,","+e.y,") width: ",e.width," height: ",e.height),e&&e.clusterNode?Kr(e):n.children(t).length>0?(function(t,e){o.trace("Inserting cluster");var n=e.shape||"rect";zr[e.id]=Yr[n](t,e)}(c,e),Er[e.id].node=e):Kr(e)})),n.edges().forEach((function(t){var e=n.edge(t);o.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e),e),function(t,e){o.info("Moving label abc78 ",t.id,t.label,Wr[t.id]);var n=e.updatedPath?e.updatedPath:e.originalPath;if(t.label){var r=Wr[t.id],i=t.x,a=t.y;if(n){var s=vn.calcLabelPosition(n);o.info("Moving label from (",i,",",a,") to (",s.x,",",s.y,") abc78")}r.attr("transform","translate("+i+", "+a+")")}if(t.startLabelLeft){var c=Vr[t.id].startLeft,l=t.x,A=t.y;if(n){var u=vn.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",n);l=u.x,A=u.y}c.attr("transform","translate("+l+", "+A+")")}if(t.startLabelRight){var h=Vr[t.id].startRight,f=t.x,d=t.y;if(n){var p=vn.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",n);f=p.x,d=p.y}h.attr("transform","translate("+f+", "+d+")")}if(t.endLabelLeft){var g=Vr[t.id].endLeft,m=t.x,y=t.y;if(n){var v=vn.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",n);m=v.x,y=v.y}g.attr("transform","translate("+m+", "+y+")")}if(t.endLabelRight){var b=Vr[t.id].endRight,_=t.x,w=t.y;if(n){var E=vn.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",n);_=E.x,w=E.y}b.attr("transform","translate("+_+", "+w+")")}}(e,function(t,e,n,r,i,a){var s=n.points,c=!1,A=a.node(e.v),u=a.node(e.w);o.info("abc88 InsertEdge: ",n),u.intersect&&A.intersect&&((s=s.slice(1,n.points.length-1)).unshift(A.intersect(s[0])),o.info("Last point",s[s.length-1],u,u.intersect(s[s.length-1])),s.push(u.intersect(s[s.length-1]))),n.toCluster&&(o.info("to cluster abc88",r[n.toCluster]),s=Xr(n.points,r[n.toCluster].node),c=!0),n.fromCluster&&(o.info("from cluster abc88",r[n.fromCluster]),s=Xr(s.reverse(),r[n.fromCluster].node).reverse(),c=!0);var h,f=s.filter((function(t){return!Number.isNaN(t.y)}));h=("graph"===i||"flowchart"===i)&&n.curve||l.curveBasis;var d,p=(0,l.line)().x((function(t){return t.x})).y((function(t){return t.y})).curve(h);switch(n.thickness){case"normal":d="edge-thickness-normal";break;case"thick":d="edge-thickness-thick";break;default:d=""}switch(n.pattern){case"solid":d+=" edge-pattern-solid";break;case"dotted":d+=" edge-pattern-dotted";break;case"dashed":d+=" edge-pattern-dashed"}var g=t.append("path").attr("d",p(f)).attr("id",n.id).attr("class"," "+d+(n.classes?" "+n.classes:"")).attr("style",n.style),m="";switch(jt().state.arrowMarkerAbsolute&&(m=(m=(m=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),o.info("arrowTypeStart",n.arrowTypeStart),o.info("arrowTypeEnd",n.arrowTypeEnd),n.arrowTypeStart){case"arrow_cross":g.attr("marker-start","url("+m+"#"+i+"-crossStart)");break;case"arrow_point":g.attr("marker-start","url("+m+"#"+i+"-pointStart)");break;case"arrow_barb":g.attr("marker-start","url("+m+"#"+i+"-barbStart)");break;case"arrow_circle":g.attr("marker-start","url("+m+"#"+i+"-circleStart)");break;case"aggregation":g.attr("marker-start","url("+m+"#"+i+"-aggregationStart)");break;case"extension":g.attr("marker-start","url("+m+"#"+i+"-extensionStart)");break;case"composition":g.attr("marker-start","url("+m+"#"+i+"-compositionStart)");break;case"dependency":g.attr("marker-start","url("+m+"#"+i+"-dependencyStart)");break;case"lollipop":g.attr("marker-start","url("+m+"#"+i+"-lollipopStart)")}switch(n.arrowTypeEnd){case"arrow_cross":g.attr("marker-end","url("+m+"#"+i+"-crossEnd)");break;case"arrow_point":g.attr("marker-end","url("+m+"#"+i+"-pointEnd)");break;case"arrow_barb":g.attr("marker-end","url("+m+"#"+i+"-barbEnd)");break;case"arrow_circle":g.attr("marker-end","url("+m+"#"+i+"-circleEnd)");break;case"aggregation":g.attr("marker-end","url("+m+"#"+i+"-aggregationEnd)");break;case"extension":g.attr("marker-end","url("+m+"#"+i+"-extensionEnd)");break;case"composition":g.attr("marker-end","url("+m+"#"+i+"-compositionEnd)");break;case"dependency":g.attr("marker-end","url("+m+"#"+i+"-dependencyEnd)");break;case"lollipop":g.attr("marker-end","url("+m+"#"+i+"-lollipopEnd)")}var y={};return c&&(y.updatedPath=s),y.originalPath=n.points,y}(A,t,e,Er,r,n))})),n.nodes().forEach((function(t){var e=n.node(t);o.info(t,e.type,e.diff),"group"===e.type&&(f=e.diff)})),{elem:s,diff:f}},Zr=function(t,e,n,r,i){(function(t,e,n,r){e.forEach((function(e){mr[e](t,n,r)}))})(t,n,r,i),$r={},Wr={},Vr={},zr={},Cr={},xr={},Er={},o.warn("Graph at first:",ar().json.write(e)),Ir(e),o.warn("Graph after:",ar().json.write(e)),Jr(t,e,r)},ti={dividerMargin:10,padding:5,textHeight:10};function ei(t){var e;switch(t){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;case 4:e="lollipop";break;default:e="none"}return e}const ni={setConf:function(t){Object.keys(t).forEach((function(e){ti[e]=t[e]}))},draw:function(t,e,n,r){o.info("Drawing class - ",e);var i=jt().flowchart,a=jt().securityLevel;o.info("config:",i);var s,c=i.nodeSpacing||50,A=i.rankSpacing||50,u=new(ar().Graph)({multigraph:!0,compound:!0}).setGraph({rankdir:r.db.getDirection(),nodesep:c,ranksep:A,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),h=r.db.getClasses(),f=r.db.getRelations();o.info(f),function(t,e,n,r){var i=Object.keys(t);o.info("keys:",i),o.info(t),i.forEach((function(n){var i=t[n],a="";i.cssClasses.length>0&&(a=a+" "+i.cssClasses.join(" "));var s,c,l={labelStyle:""},A=void 0!==i.text?i.text:i.id;i.type,c="class_box",e.setNode(i.id,{labelStyle:l.labelStyle,shape:c,labelText:(s=A,ie.sanitizeText(s,jt())),classData:i,rx:0,ry:0,class:a,style:l.style,id:i.id,domId:i.domId,tooltip:r.db.getTooltip(i.id)||"",haveCallback:i.haveCallback,link:i.link,width:"group"===i.type?500:void 0,type:i.type,padding:jt().flowchart.padding}),o.info("setNode",{labelStyle:l.labelStyle,shape:c,labelText:A,rx:0,ry:0,class:a,style:l.style,id:i.id,width:"group"===i.type?500:void 0,type:i.type,padding:jt().flowchart.padding})}))}(h,u,0,r),function(t,e){var n=jt().flowchart,r=0;t.forEach((function(i){r++;var a={classes:"relation"};a.pattern=1==i.relation.lineType?"dashed":"solid",a.id="id"+r,"arrow_open"===i.type?a.arrowhead="none":a.arrowhead="normal",o.info(a,i),a.startLabelRight="none"===i.relationTitle1?"":i.relationTitle1,a.endLabelLeft="none"===i.relationTitle2?"":i.relationTitle2,a.arrowTypeStart=ei(i.relation.type1),a.arrowTypeEnd=ei(i.relation.type2);var s="",c="";if(void 0!==i.style){var A=rn(i.style);s=A.style,c=A.labelStyle}else s="fill:none";a.style=s,a.labelStyle=c,void 0!==i.interpolate?a.curve=en(i.interpolate,l.curveLinear):void 0!==t.defaultInterpolate?a.curve=en(t.defaultInterpolate,l.curveLinear):a.curve=en(n.curve,l.curveLinear),i.text=i.title,void 0===i.text?void 0!==i.style&&(a.arrowheadStyle="fill: #333"):(a.arrowheadStyle="fill: #333",a.labelpos="c",jt().flowchart.htmlLabels?(a.labelType="html",a.label='<span class="edgeLabel">'+i.text+"</span>"):(a.labelType="text",a.label=i.text.replace(ie.lineBreakRegex,"\n"),void 0===i.style&&(a.style=a.style||"stroke: #333; stroke-width: 1.5px;fill:none"),a.labelStyle=a.labelStyle.replace("color:","fill:"))),e.setEdge(i.id1,i.id2,a,r)}))}(f,u),"sandbox"===a&&(s=(0,l.select)("#i"+e));var d="sandbox"===a?(0,l.select)(s.nodes()[0].contentDocument.body):(0,l.select)("body"),p=d.select('[id="'.concat(e,'"]')),g=d.select("#"+e+" g");if(Zr(g,u,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",e),gn(u,p,i.diagramPadding,i.useMaxWidth),!i.htmlLabels)for(var m="sandbox"===a?s.nodes()[0].contentDocument:document,y=m.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),v=0;v<y.length;v++){var b=y[v],_=b.getBBox(),w=m.createElementNS("http://www.w3.org/2000/svg","rect");w.setAttribute("rx",0),w.setAttribute("ry",0),w.setAttribute("width",_.width),w.setAttribute("height",_.height),b.insertBefore(w,b.firstChild)}bn(r.db,p,e)}};var ri=n(1362),ii=n.n(ri),ai={},oi=[],si=function(t){return void 0===ai[t]&&(ai[t]={attributes:[]},o.info("Added new entity :",t)),ai[t]};const ci={Cardinality:{ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},parseDirective:function(t,e,n){yl.parseDirective(this,t,e,n)},getConfig:function(){return jt().er},addEntity:si,addAttributes:function(t,e){var n,r=si(t);for(n=e.length-1;n>=0;n--)r.attributes.push(e[n]),o.debug("Added attribute ",e[n].attributeName)},getEntities:function(){return ai},addRelationship:function(t,e,n,r){var i={entityA:t,roleA:e,entityB:n,relSpec:r};oi.push(i),o.debug("Added new relationship :",i)},getRelationships:function(){return oi},clear:function(){ai={},oi=[],le()},setAccTitle:Ae,getAccTitle:ue,setAccDescription:he,getAccDescription:fe};var li={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END"};const Ai=li;var ui={},hi=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},fi=0;const di={setConf:function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)ui[e[n]]=t[e[n]]},draw:function(t,e,n,r){ui=jt().er,o.info("Drawing ER diagram");var i,a=jt().securityLevel;"sandbox"===a&&(i=(0,l.select)("#i"+e));var s,c=("sandbox"===a?(0,l.select)(i.nodes()[0].contentDocument.body):(0,l.select)("body")).select("[id='".concat(e,"']"));(function(t,e){var n;t.append("defs").append("marker").attr("id",li.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",li.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),(n=t.append("defs").append("marker").attr("id",li.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(n=t.append("defs").append("marker").attr("id",li.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",li.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",li.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),(n=t.append("defs").append("marker").attr("id",li.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(n=t.append("defs").append("marker").attr("id",li.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")})(c,ui),s=new(ar().Graph)({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:ui.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}}));var A,u,h=function(t,e,n){var r;return Object.keys(e).forEach((function(i){var a=t.append("g").attr("id",i);r=void 0===r?i:r;var o="entity-"+i,s=a.append("text").attr("class","er entityLabel").attr("id",o).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("style","font-family: "+jt().fontFamily+"; font-size: "+ui.fontSize+"px").text(i),c=function(t,e,n){var r=ui.entityPadding/3,i=ui.entityPadding/3,a=.85*ui.fontSize,o=e.node().getBBox(),s=[],c=!1,l=!1,A=0,u=0,h=0,f=0,d=o.height+2*r,p=1;n.forEach((function(t){void 0!==t.attributeKeyType&&(c=!0),void 0!==t.attributeComment&&(l=!0)})),n.forEach((function(n){var i="".concat(e.node().id,"-attr-").concat(p),o=0,g=re(n.attributeType),m=t.append("text").attr("class","er entityLabel").attr("id","".concat(i,"-type")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+jt().fontFamily+"; font-size: "+a+"px").text(g),y=t.append("text").attr("class","er entityLabel").attr("id","".concat(i,"-name")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+jt().fontFamily+"; font-size: "+a+"px").text(n.attributeName),v={};v.tn=m,v.nn=y;var b=m.node().getBBox(),_=y.node().getBBox();if(A=Math.max(A,b.width),u=Math.max(u,_.width),o=Math.max(b.height,_.height),c){var w=t.append("text").attr("class","er entityLabel").attr("id","".concat(i,"-key")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+jt().fontFamily+"; font-size: "+a+"px").text(n.attributeKeyType||"");v.kn=w;var E=w.node().getBBox();h=Math.max(h,E.width),o=Math.max(o,E.height)}if(l){var C=t.append("text").attr("class","er entityLabel").attr("id","".concat(i,"-comment")).attr("x",0).attr("y",0).attr("dominant-baseline","middle").attr("text-anchor","left").attr("style","font-family: "+jt().fontFamily+"; font-size: "+a+"px").text(n.attributeComment||"");v.cn=C;var x=C.node().getBBox();f=Math.max(f,x.width),o=Math.max(o,x.height)}v.height=o,s.push(v),d+=o+2*r,p+=1}));var g=4;c&&(g+=2),l&&(g+=2);var m=A+u+h+f,y={width:Math.max(ui.minEntityWidth,Math.max(o.width+2*ui.entityPadding,m+i*g)),height:n.length>0?d:Math.max(ui.minEntityHeight,o.height+2*ui.entityPadding)};if(n.length>0){var v=Math.max(0,(y.width-m-i*g)/(g/2));e.attr("transform","translate("+y.width/2+","+(r+o.height/2)+")");var b=o.height+2*r,_="attributeBoxOdd";s.forEach((function(e){var n=b+r+e.height/2;e.tn.attr("transform","translate("+i+","+n+")");var a=t.insert("rect","#"+e.tn.node().id).attr("class","er ".concat(_)).attr("fill",ui.fill).attr("fill-opacity","100%").attr("stroke",ui.stroke).attr("x",0).attr("y",b).attr("width",A+2*i+v).attr("height",e.height+2*r),o=parseFloat(a.attr("x"))+parseFloat(a.attr("width"));e.nn.attr("transform","translate("+(o+i)+","+n+")");var s=t.insert("rect","#"+e.nn.node().id).attr("class","er ".concat(_)).attr("fill",ui.fill).attr("fill-opacity","100%").attr("stroke",ui.stroke).attr("x",o).attr("y",b).attr("width",u+2*i+v).attr("height",e.height+2*r),d=parseFloat(s.attr("x"))+parseFloat(s.attr("width"));if(c){e.kn.attr("transform","translate("+(d+i)+","+n+")");var p=t.insert("rect","#"+e.kn.node().id).attr("class","er ".concat(_)).attr("fill",ui.fill).attr("fill-opacity","100%").attr("stroke",ui.stroke).attr("x",d).attr("y",b).attr("width",h+2*i+v).attr("height",e.height+2*r);d=parseFloat(p.attr("x"))+parseFloat(p.attr("width"))}l&&(e.cn.attr("transform","translate("+(d+i)+","+n+")"),t.insert("rect","#"+e.cn.node().id).attr("class","er ".concat(_)).attr("fill",ui.fill).attr("fill-opacity","100%").attr("stroke",ui.stroke).attr("x",d).attr("y",b).attr("width",f+2*i+v).attr("height",e.height+2*r)),b+=e.height+2*r,_="attributeBoxOdd"==_?"attributeBoxEven":"attributeBoxOdd"}))}else y.height=Math.max(ui.minEntityHeight,d),e.attr("transform","translate("+y.width/2+","+y.height/2+")");return y}(a,s,e[i].attributes),l=c.width,A=c.height,u=a.insert("rect","#"+o).attr("class","er entityBox").attr("fill",ui.fill).attr("fill-opacity","100%").attr("stroke",ui.stroke).attr("x",0).attr("y",0).attr("width",l).attr("height",A).node().getBBox();n.setNode(i,{width:u.width,height:u.height,shape:"rect",id:i})})),r}(c,r.db.getEntities(),s),f=function(t,e){return t.forEach((function(t){e.setEdge(t.entityA,t.entityB,{relationship:t},hi(t))})),t}(r.db.getRelationships(),s);rr().layout(s),A=c,(u=s).nodes().forEach((function(t){void 0!==t&&void 0!==u.node(t)&&A.select("#"+t).attr("transform","translate("+(u.node(t).x-u.node(t).width/2)+","+(u.node(t).y-u.node(t).height/2)+" )")})),f.forEach((function(t){!function(t,e,n,r,i){fi++;var a=n.edge(e.entityA,e.entityB,hi(e)),o=(0,l.line)().x((function(t){return t.x})).y((function(t){return t.y})).curve(l.curveBasis),s=t.insert("path","#"+r).attr("class","er relationshipLine").attr("d",o(a.points)).attr("stroke",ui.stroke).attr("fill","none");e.relSpec.relType===i.db.Identification.NON_IDENTIFYING&&s.attr("stroke-dasharray","8,8");var c="";switch(ui.arrowMarkerAbsolute&&(c=(c=(c=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),e.relSpec.cardA){case i.db.Cardinality.ZERO_OR_ONE:s.attr("marker-end","url("+c+"#"+Ai.ZERO_OR_ONE_END+")");break;case i.db.Cardinality.ZERO_OR_MORE:s.attr("marker-end","url("+c+"#"+Ai.ZERO_OR_MORE_END+")");break;case i.db.Cardinality.ONE_OR_MORE:s.attr("marker-end","url("+c+"#"+Ai.ONE_OR_MORE_END+")");break;case i.db.Cardinality.ONLY_ONE:s.attr("marker-end","url("+c+"#"+Ai.ONLY_ONE_END+")")}switch(e.relSpec.cardB){case i.db.Cardinality.ZERO_OR_ONE:s.attr("marker-start","url("+c+"#"+Ai.ZERO_OR_ONE_START+")");break;case i.db.Cardinality.ZERO_OR_MORE:s.attr("marker-start","url("+c+"#"+Ai.ZERO_OR_MORE_START+")");break;case i.db.Cardinality.ONE_OR_MORE:s.attr("marker-start","url("+c+"#"+Ai.ONE_OR_MORE_START+")");break;case i.db.Cardinality.ONLY_ONE:s.attr("marker-start","url("+c+"#"+Ai.ONLY_ONE_START+")")}var A=s.node().getTotalLength(),u=s.node().getPointAtLength(.5*A),h="rel"+fi,f=t.append("text").attr("class","er relationshipLabel").attr("id",h).attr("x",u.x).attr("y",u.y).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("style","font-family: "+jt().fontFamily+"; font-size: "+ui.fontSize+"px").text(e.roleA).node().getBBox();t.insert("rect","#"+h).attr("class","er relationshipLabelBox").attr("x",u.x-f.width/2).attr("y",u.y-f.height/2).attr("width",f.width).attr("height",f.height).attr("fill","white").attr("fill-opacity","85%")}(c,t,s,h,r)}));var d=ui.diagramPadding,p=c.node().getBBox(),g=p.width+2*d,m=p.height+2*d;pn(c,0,g,ui.useMaxWidth),c.attr("viewBox","".concat(p.x-d," ").concat(p.y-d," ").concat(g," ").concat(m)),bn(r.db,c,e)}};var pi={};const gi={setConf:function(t){Object.keys(t).forEach((function(e){pi[e]=t[e]}))},draw:function(t,e,n){try{o.debug("Renering svg for syntax error\n");var r=(0,l.select)("#"+e),i=r.append("g");i.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),i.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),i.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),i.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),i.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),i.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+n),r.attr("height",100),r.attr("width",500),r.attr("viewBox","768 0 912 512")}catch(t){o.error("Error while rendering info diagram"),o.error(t.message)}}};var mi=n(5890),yi=n.n(mi);function vi(t){return(vi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function bi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var _i,wi,Ei="flowchart-",Ci=0,xi=jt(),Bi={},Ti=[],ki=[],Si=[],Ii={},Li={},Fi=0,Ni=!0,Oi=[],Di=function(t){return ie.sanitizeText(t,xi)},Mi=function(t){for(var e=Object.keys(Bi),n=0;n<e.length;n++)if(Bi[e[n]].id===t)return Bi[e[n]].domId;return t},Ri=function(t,e,n,r){var i={start:t,end:e,type:void 0,text:""};void 0!==(r=n.text)&&(i.text=Di(r.trim()),'"'===i.text[0]&&'"'===i.text[i.text.length-1]&&(i.text=i.text.substring(1,i.text.length-1))),void 0!==n&&(i.type=n.type,i.stroke=n.stroke,i.length=n.length),Ti.push(i)},Ui=function(t,e){t.split(",").forEach((function(t){var n=t;void 0!==Bi[n]&&Bi[n].classes.push(e),void 0!==Ii[n]&&Ii[n].classes.push(e)}))},Pi=function(t){var e=(0,l.select)(".mermaidTooltip");null===(e._groups||e)[0][0]&&(e=(0,l.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),(0,l.select)(t).select("svg").selectAll("g.node").on("mouseover",(function(){var t=(0,l.select)(this);if(null!==t.attr("title")){var n=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(t.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.top-14+document.body.scrollTop+"px"),e.html(e.html().replace(/&lt;br\/&gt;/g,"<br/>")),t.classed("hover",!0)}})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0),(0,l.select)(this).classed("hover",!1)}))};Oi.push(Pi);var Hi=function(t){for(var e=0;e<Si.length;e++)if(Si[e].id===t)return e;return-1},Qi=-1,Gi=[],ji=function(t,e){var n=!1;return t.forEach((function(t){t.nodes.indexOf(e)>=0&&(n=!0)})),n},$i=function(t,e){var n=[];return t.nodes.forEach((function(r,i){ji(e,r)||n.push(t.nodes[i])})),{nodes:n}};const Ki={parseDirective:function(t,e,n){yl.parseDirective(this,t,e,n)},defaultConfig:function(){return Rt.flowchart},setAccTitle:Ae,getAccTitle:ue,getAccDescription:fe,setAccDescription:he,addVertex:function(t,e,n,r,i,a){var o,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},c=t;void 0!==c&&0!==c.trim().length&&(void 0===Bi[c]&&(Bi[c]={id:c,domId:Ei+c+"-"+Ci,styles:[],classes:[]}),Ci++,void 0!==e?(xi=jt(),'"'===(o=Di(e.trim()))[0]&&'"'===o[o.length-1]&&(o=o.substring(1,o.length-1)),Bi[c].text=o):void 0===Bi[c].text&&(Bi[c].text=t),void 0!==n&&(Bi[c].type=n),null!=r&&r.forEach((function(t){Bi[c].styles.push(t)})),null!=i&&i.forEach((function(t){Bi[c].classes.push(t)})),void 0!==a&&(Bi[c].dir=a),Bi[c].props=s)},lookUpDomId:Mi,addLink:function(t,e,n,r){var i,a;for(i=0;i<t.length;i++)for(a=0;a<e.length;a++)Ri(t[i],e[a],n,r)},updateLinkInterpolate:function(t,e){t.forEach((function(t){"default"===t?Ti.defaultInterpolate=e:Ti[t].interpolate=e}))},updateLink:function(t,e){t.forEach((function(t){"default"===t?Ti.defaultStyle=e:(-1===vn.isSubstringInArray("fill",e)&&e.push("fill:none"),Ti[t].style=e)}))},addClass:function(t,e){void 0===ki[t]&&(ki[t]={id:t,styles:[],textStyles:[]}),null!=e&&e.forEach((function(e){if(e.match("color")){var n=e.replace("fill","bgFill").replace("color","fill");ki[t].textStyles.push(n)}ki[t].styles.push(e)}))},setDirection:function(t){(_i=t).match(/.*</)&&(_i="RL"),_i.match(/.*\^/)&&(_i="BT"),_i.match(/.*>/)&&(_i="LR"),_i.match(/.*v/)&&(_i="TB")},setClass:Ui,setTooltip:function(t,e){t.split(",").forEach((function(t){void 0!==e&&(Li["gen-1"===wi?Mi(t):t]=Di(e))}))},getTooltip:function(t){return Li[t]},setClickEvent:function(t,e,n){t.split(",").forEach((function(t){!function(t,e,n){var r=Mi(t);if("loose"===jt().securityLevel&&void 0!==e){var i=[];if("string"==typeof n){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var a=0;a<i.length;a++){var o=i[a].trim();'"'===o.charAt(0)&&'"'===o.charAt(o.length-1)&&(o=o.substr(1,o.length-2)),i[a]=o}}0===i.length&&i.push(t),void 0!==Bi[t]&&(Bi[t].haveCallback=!0,Oi.push((function(){var t=document.querySelector('[id="'.concat(r,'"]'));null!==t&&t.addEventListener("click",(function(){var t;vn.runFunc.apply(vn,[e].concat(function(t){if(Array.isArray(t))return bi(t)}(t=i)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return bi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bi(t,e):void 0}}(t)||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.")}()))}),!1)})))}}(t,e,n)})),Ui(t,"clickable")},setLink:function(t,e,n){t.split(",").forEach((function(t){void 0!==Bi[t]&&(Bi[t].link=vn.formatUrl(e,xi),Bi[t].linkTarget=n)})),Ui(t,"clickable")},bindFunctions:function(t){Oi.forEach((function(e){e(t)}))},getDirection:function(){return _i.trim()},getVertices:function(){return Bi},getEdges:function(){return Ti},getClasses:function(){return ki},clear:function(t){Bi={},ki={},Ti=[],(Oi=[]).push(Pi),Si=[],Ii={},Fi=0,Li=[],Ni=!0,wi=t||"gen-1",le()},setGen:function(t){wi=t||"gen-1"},defaultStyle:function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},addSubGraph:function(t,e,n){var r=t.trim(),i=n;t===n&&n.match(/\s/)&&(r=void 0);var a=[],s=function(t){var e,n={boolean:{},number:{},string:{}},r=[];return{nodeList:t.filter((function(t){var i=vi(t);return t.stmt&&"dir"===t.stmt?(e=t.value,!1):""!==t.trim()&&(i in n?!n[i].hasOwnProperty(t)&&(n[i][t]=!0):!(r.indexOf(t)>=0)&&r.push(t))})),dir:e}}(a.concat.apply(a,e)),c=s.nodeList,l=s.dir;if(a=c,"gen-1"===wi)for(var A=0;A<a.length;A++)a[A]=Mi(a[A]);r=r||"subGraph"+Fi,i=Di(i=i||""),Fi+=1;var u={id:r,nodes:a,title:i.trim(),classes:[],dir:l};return o.info("Adding",u.id,u.nodes,u.dir),u.nodes=$i(u,Si).nodes,Si.push(u),Ii[r]=u,r},getDepthFirstPos:function(t){return Gi[t]},indexNodes:function(){Qi=-1,Si.length>0&&function t(e,n){var r=Si[n].nodes;if(!((Qi+=1)>2e3)){if(Gi[Qi]=n,Si[n].id===e)return{result:!0,count:0};for(var i=0,a=1;i<r.length;){var o=Hi(r[i]);if(o>=0){var s=t(e,o);if(s.result)return{result:!0,count:a+s.count};a+=s.count}i+=1}return{result:!1,count:a}}}("none",Si.length-1)},getSubGraphs:function(){return Si},destructLink:function(t,e){var n,r=function(t){var e=t.trim(),n=e.slice(0,-1),r="arrow_open";switch(e.slice(-1)){case"x":r="arrow_cross","x"===e[0]&&(r="double_"+r,n=n.slice(1));break;case">":r="arrow_point","<"===e[0]&&(r="double_"+r,n=n.slice(1));break;case"o":r="arrow_circle","o"===e[0]&&(r="double_"+r,n=n.slice(1))}var i="normal",a=n.length-1;"="===n[0]&&(i="thick");var o=function(t,e){for(var n=e.length,r=0,i=0;i<n;++i)"."===e[i]&&++r;return r}(0,n);return o&&(i="dotted",a=o),{type:r,stroke:i,length:a}}(t);if(e){if((n=function(t){var e=t.trim(),n="arrow_open";switch(e[0]){case"<":n="arrow_point",e=e.slice(1);break;case"x":n="arrow_cross",e=e.slice(1);break;case"o":n="arrow_circle",e=e.slice(1)}var r="normal";return-1!==e.indexOf("=")&&(r="thick"),-1!==e.indexOf(".")&&(r="dotted"),{type:n,stroke:r}}(e)).stroke!==r.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===n.type)n.type=r.type;else{if(n.type!==r.type)return{type:"INVALID",stroke:"INVALID"};n.type="double_"+n.type}return"double_arrow"===n.type&&(n.type="double_arrow_point"),n.length=r.length,n}return r},lex:{firstGraph:function(){return!!Ni&&(Ni=!1,!0)}},exists:ji,makeUniq:$i};var Yi=n(4949),zi=n.n(Yi),Wi=n(8284),Vi=n.n(Wi);function qi(t,e,n){var r=.9*(e.width+e.height),i=[{x:r/2,y:0},{x:r,y:-r/2},{x:r/2,y:-r},{x:0,y:-r/2}],a=sa(t,r,r,i);return n.intersect=function(t){return zi().intersect.polygon(n,i,t)},a}function Xi(t,e,n){var r=e.height,i=r/4,a=e.width+2*i,o=[{x:i,y:0},{x:a-i,y:0},{x:a,y:-r/2},{x:a-i,y:-r},{x:i,y:-r},{x:0,y:-r/2}],s=sa(t,a,r,o);return n.intersect=function(t){return zi().intersect.polygon(n,o,t)},s}function Ji(t,e,n){var r=e.width,i=e.height,a=[{x:-i/2,y:0},{x:r,y:0},{x:r,y:-i},{x:-i/2,y:-i},{x:0,y:-i/2}],o=sa(t,r,i,a);return n.intersect=function(t){return zi().intersect.polygon(n,a,t)},o}function Zi(t,e,n){var r=e.width,i=e.height,a=[{x:-2*i/6,y:0},{x:r-i/6,y:0},{x:r+2*i/6,y:-i},{x:i/6,y:-i}],o=sa(t,r,i,a);return n.intersect=function(t){return zi().intersect.polygon(n,a,t)},o}function ta(t,e,n){var r=e.width,i=e.height,a=[{x:2*i/6,y:0},{x:r+i/6,y:0},{x:r-2*i/6,y:-i},{x:-i/6,y:-i}],o=sa(t,r,i,a);return n.intersect=function(t){return zi().intersect.polygon(n,a,t)},o}function ea(t,e,n){var r=e.width,i=e.height,a=[{x:-2*i/6,y:0},{x:r+2*i/6,y:0},{x:r-i/6,y:-i},{x:i/6,y:-i}],o=sa(t,r,i,a);return n.intersect=function(t){return zi().intersect.polygon(n,a,t)},o}function na(t,e,n){var r=e.width,i=e.height,a=[{x:i/6,y:0},{x:r-i/6,y:0},{x:r+2*i/6,y:-i},{x:-2*i/6,y:-i}],o=sa(t,r,i,a);return n.intersect=function(t){return zi().intersect.polygon(n,a,t)},o}function ra(t,e,n){var r=e.width,i=e.height,a=[{x:0,y:0},{x:r+i/2,y:0},{x:r,y:-i/2},{x:r+i/2,y:-i},{x:0,y:-i}],o=sa(t,r,i,a);return n.intersect=function(t){return zi().intersect.polygon(n,a,t)},o}function ia(t,e,n){var r=e.height,i=e.width+r/4,a=t.insert("rect",":first-child").attr("rx",r/2).attr("ry",r/2).attr("x",-i/2).attr("y",-r/2).attr("width",i).attr("height",r);return n.intersect=function(t){return zi().intersect.rect(n,t)},a}function aa(t,e,n){var r=e.width,i=e.height,a=[{x:0,y:0},{x:r,y:0},{x:r,y:-i},{x:0,y:-i},{x:0,y:0},{x:-8,y:0},{x:r+8,y:0},{x:r+8,y:-i},{x:-8,y:-i},{x:-8,y:0}],o=sa(t,r,i,a);return n.intersect=function(t){return zi().intersect.polygon(n,a,t)},o}function oa(t,e,n){var r=e.width,i=r/2,a=i/(2.5+r/50),o=e.height+a,s="M 0,"+a+" a "+i+","+a+" 0,0,0 "+r+" 0 a "+i+","+a+" 0,0,0 "+-r+" 0 l 0,"+o+" a "+i+","+a+" 0,0,0 "+r+" 0 l 0,"+-o,c=t.attr("label-offset-y",a).insert("path",":first-child").attr("d",s).attr("transform","translate("+-r/2+","+-(o/2+a)+")");return n.intersect=function(t){var e=zi().intersect.rect(n,t),r=e.x-n.x;if(0!=i&&(Math.abs(r)<n.width/2||Math.abs(r)==n.width/2&&Math.abs(e.y-n.y)>n.height/2-a)){var o=a*a*(1-r*r/(i*i));0!=o&&(o=Math.sqrt(o)),o=a-o,t.y-n.y>0&&(o=-o),e.y+=o}return e},c}function sa(t,e,n,r){return t.insert("polygon",":first-child").attr("points",r.map((function(t){return t.x+","+t.y})).join(" ")).attr("transform","translate("+-e/2+","+n/2+")")}var ca={},la=function(t,e,n,r,i,a){jt().securityLevel;var s=r?r.select('[id="'.concat(n,'"]')):(0,l.select)('[id="'.concat(n,'"]')),c=i||document;Object.keys(t).forEach((function(n){var r=t[n],i="default";r.classes.length>0&&(i=r.classes.join(" "));var l,A=rn(r.styles),u=void 0!==r.text?r.text:r.id;if(ne(jt().flowchart.htmlLabels)){var h={label:u.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(t){return"<i class='".concat(t.replace(":"," "),"'></i>")}))};(l=Vi()(s,h).node()).parentNode.removeChild(l)}else{var f=c.createElementNS("http://www.w3.org/2000/svg","text");f.setAttribute("style",A.labelStyle.replace("color:","fill:"));for(var d=u.split(ie.lineBreakRegex),p=0;p<d.length;p++){var g=c.createElementNS("http://www.w3.org/2000/svg","tspan");g.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),g.setAttribute("dy","1em"),g.setAttribute("x","1"),g.textContent=d[p],f.appendChild(g)}l=f}var m=0,y="";switch(r.type){case"round":m=5,y="rect";break;case"square":case"group":default:y="rect";break;case"diamond":y="question";break;case"hexagon":y="hexagon";break;case"odd":case"odd_right":y="rect_left_inv_arrow";break;case"lean_right":y="lean_right";break;case"lean_left":y="lean_left";break;case"trapezoid":y="trapezoid";break;case"inv_trapezoid":y="inv_trapezoid";break;case"circle":y="circle";break;case"ellipse":y="ellipse";break;case"stadium":y="stadium";break;case"subroutine":y="subroutine";break;case"cylinder":y="cylinder"}o.warn("Adding node",r.id,r.domId),e.setNode(a.db.lookUpDomId(r.id),{labelType:"svg",labelStyle:A.labelStyle,shape:y,label:l,rx:m,ry:m,class:i,style:A.style,id:a.db.lookUpDomId(r.id)})}))},Aa=function(t,e,n){var r,i,a=0;if(void 0!==t.defaultStyle){var o=rn(t.defaultStyle);r=o.style,i=o.labelStyle}t.forEach((function(o){a++;var s="L-"+o.start+"-"+o.end,c="LS-"+o.start,A="LE-"+o.end,u={};"arrow_open"===o.type?u.arrowhead="none":u.arrowhead="normal";var h="",f="";if(void 0!==o.style){var d=rn(o.style);h=d.style,f=d.labelStyle}else switch(o.stroke){case"normal":h="fill:none",void 0!==r&&(h=r),void 0!==i&&(f=i);break;case"dotted":h="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":h=" stroke-width: 3.5px;fill:none"}u.style=h,u.labelStyle=f,void 0!==o.interpolate?u.curve=en(o.interpolate,l.curveLinear):void 0!==t.defaultInterpolate?u.curve=en(t.defaultInterpolate,l.curveLinear):u.curve=en(ca.curve,l.curveLinear),void 0===o.text?void 0!==o.style&&(u.arrowheadStyle="fill: #333"):(u.arrowheadStyle="fill: #333",u.labelpos="c",ne(jt().flowchart.htmlLabels)?(u.labelType="html",u.label='<span id="L-'.concat(s,'" class="edgeLabel L-').concat(c,"' L-").concat(A,'" style="').concat(u.labelStyle,'">').concat(o.text.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(t){return"<i class='".concat(t.replace(":"," "),"'></i>")})),"</span>")):(u.labelType="text",u.label=o.text.replace(ie.lineBreakRegex,"\n"),void 0===o.style&&(u.style=u.style||"stroke: #333; stroke-width: 1.5px;fill:none"),u.labelStyle=u.labelStyle.replace("color:","fill:"))),u.id=s,u.class=c+" "+A,u.minlen=o.length||1,e.setEdge(n.db.lookUpDomId(o.start),n.db.lookUpDomId(o.end),u,a)}))};const ua={setConf:function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)ca[e[n]]=t[e[n]]},addVertices:la,addEdges:Aa,getClasses:function(t,e){o.info("Extracting classes"),e.db.clear();try{return e.parse(t),e.db.getClasses()}catch(t){return}},draw:function(t,e,n,r){o.info("Drawing flowchart"),r.db.clear();var i,a=jt().securityLevel;"sandbox"===a&&(i=(0,l.select)("#i"+e));var s="sandbox"===a?(0,l.select)(i.nodes()[0].contentDocument.body):(0,l.select)("body"),c="sandbox"===a?i.nodes()[0].contentDocument:document;try{r.parser.parse(t)}catch(t){o.debug("Parsing failed")}var A=r.db.getDirection();void 0===A&&(A="TD");for(var u,h=jt().flowchart,f=h.nodeSpacing||50,d=h.rankSpacing||50,p=new(ar().Graph)({multigraph:!0,compound:!0}).setGraph({rankdir:A,nodesep:f,ranksep:d,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),g=r.db.getSubGraphs(),m=g.length-1;m>=0;m--)u=g[m],r.db.addVertex(u.id,u.title,"group",void 0,u.classes);var y=r.db.getVertices();o.warn("Get vertices",y);var v=r.db.getEdges(),b=0;for(b=g.length-1;b>=0;b--){u=g[b],(0,l.selectAll)("cluster").append("text");for(var _=0;_<u.nodes.length;_++)o.warn("Setting subgraph",u.nodes[_],r.db.lookUpDomId(u.nodes[_]),r.db.lookUpDomId(u.id)),p.setParent(r.db.lookUpDomId(u.nodes[_]),r.db.lookUpDomId(u.id))}la(y,p,e,s,c,r),Aa(v,p,r);var w=new(zi().render);(function(t){t.shapes().question=qi,t.shapes().hexagon=Xi,t.shapes().stadium=ia,t.shapes().subroutine=aa,t.shapes().cylinder=oa,t.shapes().rect_left_inv_arrow=Ji,t.shapes().lean_right=Zi,t.shapes().lean_left=ta,t.shapes().trapezoid=ea,t.shapes().inv_trapezoid=na,t.shapes().rect_right_inv_arrow=ra})(w),w.arrows().none=function(t,e,n,r){var i=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");zi().util.applyStyle(i,n[r+"Style"])},w.arrows().normal=function(t,e){t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};var E=s.select('[id="'.concat(e,'"]'));bn(r.db,E,e);var C=s.select("#"+e+" g");for(w(C,p),C.selectAll("g.node").attr("title",(function(){return r.db.getTooltip(this.id)})),r.db.indexNodes("subGraph"+b),b=0;b<g.length;b++)if("undefined"!==(u=g[b]).title){var x=c.querySelectorAll("#"+e+' [id="'+r.db.lookUpDomId(u.id)+'"] rect'),B=c.querySelectorAll("#"+e+' [id="'+r.db.lookUpDomId(u.id)+'"]'),T=x[0].x.baseVal.value,k=x[0].y.baseVal.value,S=x[0].width.baseVal.value,I=(0,l.select)(B[0]).select(".label");I.attr("transform","translate(".concat(T+S/2,", ").concat(k+14,")")),I.attr("id",e+"Text");for(var L=0;L<u.classes.length;L++)B[0].classList.add(u.classes[L])}ne(h.htmlLabels);for(var F=c.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),N=0;N<F.length;N++){var O=F[N],D=O.getBBox(),M=c.createElementNS("http://www.w3.org/2000/svg","rect");M.setAttribute("rx",0),M.setAttribute("ry",0),M.setAttribute("width",D.width),M.setAttribute("height",D.height),O.insertBefore(M,O.firstChild)}gn(p,E,h.diagramPadding,h.useMaxWidth),Object.keys(y).forEach((function(t){var n=y[t];if(n.link){var i=s.select("#"+e+' [id="'+r.db.lookUpDomId(t)+'"]');if(i){var o=c.createElementNS("http://www.w3.org/2000/svg","a");o.setAttributeNS("http://www.w3.org/2000/svg","class",n.classes.join(" ")),o.setAttributeNS("http://www.w3.org/2000/svg","href",n.link),o.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),"sandbox"===a?o.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):n.linkTarget&&o.setAttributeNS("http://www.w3.org/2000/svg","target",n.linkTarget);var l=i.insert((function(){return o}),":first-child"),A=i.select(".label-container");A&&l.append((function(){return A.node()}));var u=i.select(".label");u&&l.append((function(){return u.node()}))}}}))}};var ha={},fa=function(t,e,n,r,i,a){var s=r.select('[id="'.concat(n,'"]'));Object.keys(t).forEach((function(n){var r=t[n],c="default";r.classes.length>0&&(c=r.classes.join(" "));var l,A=rn(r.styles),u=void 0!==r.text?r.text:r.id;if(ne(jt().flowchart.htmlLabels)){var h={label:u.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(t){return"<i class='".concat(t.replace(":"," "),"'></i>")}))};(l=Vi()(s,h).node()).parentNode.removeChild(l)}else{var f=i.createElementNS("http://www.w3.org/2000/svg","text");f.setAttribute("style",A.labelStyle.replace("color:","fill:"));for(var d=u.split(ie.lineBreakRegex),p=0;p<d.length;p++){var g=i.createElementNS("http://www.w3.org/2000/svg","tspan");g.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),g.setAttribute("dy","1em"),g.setAttribute("x","1"),g.textContent=d[p],f.appendChild(g)}l=f}var m=0,y="";switch(r.type){case"round":m=5,y="rect";break;case"square":case"group":default:y="rect";break;case"diamond":y="question";break;case"hexagon":y="hexagon";break;case"odd":case"odd_right":y="rect_left_inv_arrow";break;case"lean_right":y="lean_right";break;case"lean_left":y="lean_left";break;case"trapezoid":y="trapezoid";break;case"inv_trapezoid":y="inv_trapezoid";break;case"circle":y="circle";break;case"ellipse":y="ellipse";break;case"stadium":y="stadium";break;case"subroutine":y="subroutine";break;case"cylinder":y="cylinder";break;case"doublecircle":y="doublecircle"}e.setNode(r.id,{labelStyle:A.labelStyle,shape:y,labelText:u,rx:m,ry:m,class:c,style:A.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:a.db.getTooltip(r.id)||"",domId:a.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:"group"===r.type?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:jt().flowchart.padding}),o.info("setNode",{labelStyle:A.labelStyle,shape:y,labelText:u,rx:m,ry:m,class:c,style:A.style,id:r.id,domId:a.db.lookUpDomId(r.id),width:"group"===r.type?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:jt().flowchart.padding})}))},da=function(t,e,n){o.info("abc78 edges = ",t);var r,i,a=0,s={};if(void 0!==t.defaultStyle){var c=rn(t.defaultStyle);r=c.style,i=c.labelStyle}t.forEach((function(n){a++;var c="L-"+n.start+"-"+n.end;void 0===s[c]?(s[c]=0,o.info("abc78 new entry",c,s[c])):(s[c]++,o.info("abc78 new entry",c,s[c]));var A=c+"-"+s[c];o.info("abc78 new link id to be used is",c,A,s[c]);var u="LS-"+n.start,h="LE-"+n.end,f={style:"",labelStyle:""};switch(f.minlen=n.length||1,"arrow_open"===n.type?f.arrowhead="none":f.arrowhead="normal",f.arrowTypeStart="arrow_open",f.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":f.arrowTypeStart="arrow_cross";case"arrow_cross":f.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":f.arrowTypeStart="arrow_point";case"arrow_point":f.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":f.arrowTypeStart="arrow_circle";case"arrow_circle":f.arrowTypeEnd="arrow_circle"}var d="",p="";switch(n.stroke){case"normal":d="fill:none;",void 0!==r&&(d=r),void 0!==i&&(p=i),f.thickness="normal",f.pattern="solid";break;case"dotted":f.thickness="normal",f.pattern="dotted",f.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":f.thickness="thick",f.pattern="solid",f.style="stroke-width: 3.5px;fill:none;"}if(void 0!==n.style){var g=rn(n.style);d=g.style,p=g.labelStyle}f.style=f.style+=d,f.labelStyle=f.labelStyle+=p,void 0!==n.interpolate?f.curve=en(n.interpolate,l.curveLinear):void 0!==t.defaultInterpolate?f.curve=en(t.defaultInterpolate,l.curveLinear):f.curve=en(ha.curve,l.curveLinear),void 0===n.text?void 0!==n.style&&(f.arrowheadStyle="fill: #333"):(f.arrowheadStyle="fill: #333",f.labelpos="c"),f.labelType="text",f.label=n.text.replace(ie.lineBreakRegex,"\n"),void 0===n.style&&(f.style=f.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),f.labelStyle=f.labelStyle.replace("color:","fill:"),f.id=A,f.classes="flowchart-link "+u+" "+h,e.setEdge(n.start,n.end,f,a)}))};const pa={setConf:function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)ha[e[n]]=t[e[n]]},addVertices:fa,addEdges:da,getClasses:function(t,e){o.info("Extracting classes"),e.db.clear();try{return e.parse(t),e.db.getClasses()}catch(t){return}},draw:function(t,e,n,r){o.info("Drawing flowchart"),r.db.clear(),Ki.setGen("gen-2"),r.parser.parse(t);var i=r.db.getDirection();void 0===i&&(i="TD");var a,s=jt().flowchart,c=s.nodeSpacing||50,A=s.rankSpacing||50,u=jt().securityLevel;"sandbox"===u&&(a=(0,l.select)("#i"+e));var h,f="sandbox"===u?(0,l.select)(a.nodes()[0].contentDocument.body):(0,l.select)("body"),d="sandbox"===u?a.nodes()[0].contentDocument:document,p=new(ar().Graph)({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:c,ranksep:A,marginx:0,marginy:0}).setDefaultEdgeLabel((function(){return{}})),g=r.db.getSubGraphs();o.info("Subgraphs - ",g);for(var m=g.length-1;m>=0;m--)h=g[m],o.info("Subgraph - ",h),r.db.addVertex(h.id,h.title,"group",void 0,h.classes,h.dir);var y=r.db.getVertices(),v=r.db.getEdges();o.info(v);var b=0;for(b=g.length-1;b>=0;b--){h=g[b],(0,l.selectAll)("cluster").append("text");for(var _=0;_<h.nodes.length;_++)o.info("Setting up subgraphs",h.nodes[_],h.id),p.setParent(h.nodes[_],h.id)}fa(y,p,e,f,d,r),da(v,p);var w=f.select('[id="'.concat(e,'"]'));bn(r.db,w,e);var E=f.select("#"+e+" g");if(Zr(E,p,["point","circle","cross"],"flowchart",e),gn(p,w,s.diagramPadding,s.useMaxWidth),r.db.indexNodes("subGraph"+b),!s.htmlLabels)for(var C=d.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),x=0;x<C.length;x++){var B=C[x],T=B.getBBox(),k=d.createElementNS("http://www.w3.org/2000/svg","rect");k.setAttribute("rx",0),k.setAttribute("ry",0),k.setAttribute("width",T.width),k.setAttribute("height",T.height),B.insertBefore(k,B.firstChild)}Object.keys(y).forEach((function(t){var n=y[t];if(n.link){var r=(0,l.select)("#"+e+' [id="'+t+'"]');if(r){var i=d.createElementNS("http://www.w3.org/2000/svg","a");i.setAttributeNS("http://www.w3.org/2000/svg","class",n.classes.join(" ")),i.setAttributeNS("http://www.w3.org/2000/svg","href",n.link),i.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),"sandbox"===u?i.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):n.linkTarget&&i.setAttributeNS("http://www.w3.org/2000/svg","target",n.linkTarget);var a=r.insert((function(){return i}),":first-child"),o=r.select(".label-container");o&&a.append((function(){return o.node()}));var s=r.select(".label");s&&a.append((function(){return s.node()}))}}}))}};var ga=n(3602),ma=n.n(ga);function ya(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var va,ba,_a="",wa="",Ea="",Ca=[],xa=[],Ba={},Ta=[],ka=[],Sa="",Ia=["active","done","crit","milestone"],La=[],Fa=!1,Na=!1,Oa=0,Da=function(t,e,n,r){return!(r.indexOf(t.format(e.trim()))>=0)&&(t.isoWeekday()>=6&&n.indexOf("weekends")>=0||n.indexOf(t.format("dddd").toLowerCase())>=0||n.indexOf(t.format(e.trim()))>=0)},Ma=function(t,e,n,r){if(n.length&&!t.manualEndTime){var a=i()(t.startTime,e,!0);a.add(1,"d");var o=i()(t.endTime,e,!0),s=Ra(a,o,e,n,r);t.endTime=o.toDate(),t.renderEndTime=s}},Ra=function(t,e,n,r,i){for(var a=!1,o=null;t<=e;)a||(o=e.toDate()),(a=Da(t,n,r,i))&&e.add(1,"d"),t.add(1,"d");return o},Ua=function(t,e,n){n=n.trim();var r=/^after\s+([\d\w- ]+)/.exec(n.trim());if(null!==r){var a=null;if(r[1].split(" ").forEach((function(t){var e=Ka(t);void 0!==e&&(a?e.endTime>a.endTime&&(a=e):a=e)})),a)return a.endTime;var s=new Date;return s.setHours(0,0,0,0),s}var c=i()(n,e.trim(),!0);return c.isValid()?c.toDate():(o.debug("Invalid date:"+n),o.debug("With date format:"+e.trim()),new Date)},Pa=function(t,e){if(null!==t)switch(t[2]){case"ms":e.add(t[1],"milliseconds");break;case"s":e.add(t[1],"seconds");break;case"m":e.add(t[1],"minutes");break;case"h":e.add(t[1],"hours");break;case"d":e.add(t[1],"days");break;case"w":e.add(t[1],"weeks")}return e.toDate()},Ha=function(t,e,n,r){r=r||!1,n=n.trim();var a=i()(n,e.trim(),!0);return a.isValid()?(r&&a.add(1,"d"),a.toDate()):Pa(/^([\d]+)([wdhms]|ms)$/.exec(n.trim()),i()(t))},Qa=0,Ga=function(t){return void 0===t?"task"+(Qa+=1):t},ja=[],$a={},Ka=function(t){var e=$a[t];return ja[e]},Ya=function(){for(var t=function(t){var e=ja[t],n="";switch(ja[t].raw.startTime.type){case"prevTaskEnd":var r=Ka(e.prevTaskId);e.startTime=r.endTime;break;case"getStartDate":(n=Ua(0,_a,ja[t].raw.startTime.startData))&&(ja[t].startTime=n)}return ja[t].startTime&&(ja[t].endTime=Ha(ja[t].startTime,_a,ja[t].raw.endTime.data,Fa),ja[t].endTime&&(ja[t].processed=!0,ja[t].manualEndTime=i()(ja[t].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Ma(ja[t],_a,xa,Ca))),ja[t].processed},e=!0,n=0;n<ja.length;n++)t(n),e=e&&ja[n].processed;return e},za=function(t,e){t.split(",").forEach((function(t){var n=Ka(t);void 0!==n&&n.classes.push(e)}))},Wa=function(t,e){La.push((function(){var n=document.querySelector('[id="'.concat(t,'"]'));null!==n&&n.addEventListener("click",(function(){e()}))})),La.push((function(){var n=document.querySelector('[id="'.concat(t,'-text"]'));null!==n&&n.addEventListener("click",(function(){e()}))}))};const Va={parseDirective:function(t,e,n){yl.parseDirective(this,t,e,n)},getConfig:function(){return jt().gantt},clear:function(){Ta=[],ka=[],Sa="",La=[],Qa=0,va=void 0,ba=void 0,ja=[],_a="",wa="",Ea="",Ca=[],xa=[],Fa=!1,Na=!1,Oa=0,Ba={},le()},setDateFormat:function(t){_a=t},getDateFormat:function(){return _a},enableInclusiveEndDates:function(){Fa=!0},endDatesAreInclusive:function(){return Fa},enableTopAxis:function(){Na=!0},topAxisEnabled:function(){return Na},setAxisFormat:function(t){wa=t},getAxisFormat:function(){return wa},setTodayMarker:function(t){Ea=t},getTodayMarker:function(){return Ea},setAccTitle:Ae,getAccTitle:ue,setDiagramTitle:de,getDiagramTitle:pe,setAccDescription:he,getAccDescription:fe,addSection:function(t){Sa=t,Ta.push(t)},getSections:function(){return Ta},getTasks:function(){for(var t=Ya(),e=0;!t&&e<10;)t=Ya(),e++;return ka=ja},addTask:function(t,e){var n={section:Sa,type:Sa,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},r=function(t,e){var n=(":"===e.substr(0,1)?e.substr(1,e.length):e).split(","),r={};qa(n,r,Ia);for(var i=0;i<n.length;i++)n[i]=n[i].trim();switch(n.length){case 1:r.id=Ga(),r.startTime={type:"prevTaskEnd",id:t},r.endTime={data:n[0]};break;case 2:r.id=Ga(),r.startTime={type:"getStartDate",startData:n[0]},r.endTime={data:n[1]};break;case 3:r.id=Ga(n[0]),r.startTime={type:"getStartDate",startData:n[1]},r.endTime={data:n[2]}}return r}(ba,e);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=ba,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.order=Oa,Oa++;var i=ja.push(n);ba=n.id,$a[n.id]=i-1},findTaskById:Ka,addTaskOrg:function(t,e){var n={section:Sa,type:Sa,description:t,task:t,classes:[]},r=function(t,e){var n=(":"===e.substr(0,1)?e.substr(1,e.length):e).split(","),r={};qa(n,r,Ia);for(var a=0;a<n.length;a++)n[a]=n[a].trim();var o="";switch(n.length){case 1:r.id=Ga(),r.startTime=t.endTime,o=n[0];break;case 2:r.id=Ga(),r.startTime=Ua(0,_a,n[0]),o=n[1];break;case 3:r.id=Ga(n[0]),r.startTime=Ua(0,_a,n[1]),o=n[2]}return o&&(r.endTime=Ha(r.startTime,_a,o,Fa),r.manualEndTime=i()(o,"YYYY-MM-DD",!0).isValid(),Ma(r,_a,xa,Ca)),r}(va,e);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,va=n,ka.push(n)},setIncludes:function(t){Ca=t.toLowerCase().split(/[\s,]+/)},getIncludes:function(){return Ca},setExcludes:function(t){xa=t.toLowerCase().split(/[\s,]+/)},getExcludes:function(){return xa},setClickEvent:function(t,e,n){t.split(",").forEach((function(t){!function(t,e,n){if("loose"===jt().securityLevel&&void 0!==e){var r=[];if("string"==typeof n){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(var i=0;i<r.length;i++){var a=r[i].trim();'"'===a.charAt(0)&&'"'===a.charAt(a.length-1)&&(a=a.substr(1,a.length-2)),r[i]=a}}0===r.length&&r.push(t),void 0!==Ka(t)&&Wa(t,(function(){var t;vn.runFunc.apply(vn,[e].concat(function(t){if(Array.isArray(t))return ya(t)}(t=r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return ya(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ya(t,e):void 0}}(t)||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.")}()))}))}}(t,e,n)})),za(t,"clickable")},setLink:function(t,e){var n=e;"loose"!==jt().securityLevel&&(n=(0,Ne.N)(e)),t.split(",").forEach((function(t){void 0!==Ka(t)&&(Wa(t,(function(){window.open(n,"_self")})),Ba[t]=n)})),za(t,"clickable")},getLinks:function(){return Ba},bindFunctions:function(t){La.forEach((function(e){e(t)}))},durationToDate:Pa,isInvalidDate:Da};function qa(t,e,n){for(var r=!0;r;)r=!1,n.forEach((function(n){var i=new RegExp("^\\s*"+n+"\\s*$");t[0].match(i)&&(e[n]=!0,t.shift(1),r=!0)}))}var Xa;const Ja={setConf:function(){o.debug("Something is calling, setConf, remove the call")},draw:function(t,e,n,r){var a,o=jt().gantt,s=jt().securityLevel;"sandbox"===s&&(a=(0,l.select)("#i"+e));var c="sandbox"===s?(0,l.select)(a.nodes()[0].contentDocument.body):(0,l.select)("body"),A="sandbox"===s?a.nodes()[0].contentDocument:document,u=A.getElementById(e);void 0===(Xa=u.parentElement.offsetWidth)&&(Xa=1200),void 0!==o.useWidth&&(Xa=o.useWidth);var h=r.db.getTasks(),f=h.length*(o.barHeight+o.barGap)+2*o.topPadding;u.setAttribute("viewBox","0 0 "+Xa+" "+f);for(var d=c.select('[id="'.concat(e,'"]')),p=(0,l.scaleTime)().domain([(0,l.min)(h,(function(t){return t.startTime})),(0,l.max)(h,(function(t){return t.endTime}))]).rangeRound([0,Xa-o.leftPadding-o.rightPadding]),g=[],m=0;m<h.length;m++)g.push(h[m].type);var y=g;g=function(t){for(var e={},n=[],r=0,i=t.length;r<i;++r)Object.prototype.hasOwnProperty.call(e,t[r])||(e[t[r]]=!0,n.push(t[r]));return n}(g),h.sort((function(t,e){var n=t.startTime,r=e.startTime,i=0;return n>r?i=1:n<r&&(i=-1),i})),function(t,n,a){var s=o.barHeight,c=s+o.barGap,u=o.topPadding,h=o.leftPadding;(0,l.scaleLinear)().domain([0,g.length]).range(["#00B9FA","#F95002"]).interpolate(l.interpolateHcl),function(t,e,n,a,s,c,l,A){var u=c.reduce((function(t,e){var n=e.startTime;return t?Math.min(t,n):n}),0),h=c.reduce((function(t,e){var n=e.endTime;return t?Math.max(t,n):n}),0),f=r.db.getDateFormat();if(u&&h){for(var g=[],m=null,y=i()(u);y.valueOf()<=h;)r.db.isInvalidDate(y,f,l,A)?m?m.end=y.clone():m={start:y.clone(),end:y.clone()}:m&&(g.push(m),m=null),y.add(1,"d");d.append("g").selectAll("rect").data(g).enter().append("rect").attr("id",(function(t){return"exclude-"+t.start.format("YYYY-MM-DD")})).attr("x",(function(t){return p(t.start)+n})).attr("y",o.gridLineStartPadding).attr("width",(function(t){var e=t.end.clone().add(1,"day");return p(e)-p(t.start)})).attr("height",s-e-o.gridLineStartPadding).attr("transform-origin",(function(e,r){return(p(e.start)+n+.5*(p(e.end)-p(e.start))).toString()+"px "+(r*t+.5*s).toString()+"px"})).attr("class","exclude-range")}}(c,u,h,0,a,t,r.db.getExcludes(),r.db.getIncludes()),function(t,e,n,i){var a=(0,l.axisBottom)(p).tickSize(-i+e+o.gridLineStartPadding).tickFormat((0,l.timeFormat)(r.db.getAxisFormat()||o.axisFormat||"%Y-%m-%d"));if(d.append("g").attr("class","grid").attr("transform","translate("+t+", "+(i-50)+")").call(a).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||o.topAxis){var s=(0,l.axisTop)(p).tickSize(-i+e+o.gridLineStartPadding).tickFormat((0,l.timeFormat)(r.db.getAxisFormat()||o.axisFormat||"%Y-%m-%d"));d.append("g").attr("class","grid").attr("transform","translate("+t+", "+e+")").call(s).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(h,u,0,a),function(t,n,i,a,s,c,A){d.append("g").selectAll("rect").data(t).enter().append("rect").attr("x",0).attr("y",(function(t,e){return t.order*n+i-2})).attr("width",(function(){return A-o.rightPadding/2})).attr("height",n).attr("class",(function(t){for(var e=0;e<g.length;e++)if(t.type===g[e])return"section section"+e%o.numberSectionStyles;return"section section0"}));var u=d.append("g").selectAll("rect").data(t).enter(),h=r.db.getLinks();if(u.append("rect").attr("id",(function(t){return t.id})).attr("rx",3).attr("ry",3).attr("x",(function(t){return t.milestone?p(t.startTime)+a+.5*(p(t.endTime)-p(t.startTime))-.5*s:p(t.startTime)+a})).attr("y",(function(t,e){return t.order*n+i})).attr("width",(function(t){return t.milestone?s:p(t.renderEndTime||t.endTime)-p(t.startTime)})).attr("height",s).attr("transform-origin",(function(t,e){return e=t.order,(p(t.startTime)+a+.5*(p(t.endTime)-p(t.startTime))).toString()+"px "+(e*n+i+.5*s).toString()+"px"})).attr("class",(function(t){var e="";t.classes.length>0&&(e=t.classes.join(" "));for(var n=0,r=0;r<g.length;r++)t.type===g[r]&&(n=r%o.numberSectionStyles);var i="";return t.active?t.crit?i+=" activeCrit":i=" active":t.done?i=t.crit?" doneCrit":" done":t.crit&&(i+=" crit"),0===i.length&&(i=" task"),t.milestone&&(i=" milestone "+i),"task"+(i+=n)+" "+e})),u.append("text").attr("id",(function(t){return t.id+"-text"})).text((function(t){return t.task})).attr("font-size",o.fontSize).attr("x",(function(t){var e=p(t.startTime),n=p(t.renderEndTime||t.endTime);t.milestone&&(e+=.5*(p(t.endTime)-p(t.startTime))-.5*s),t.milestone&&(n=e+s);var r=this.getBBox().width;return r>n-e?n+r+1.5*o.leftPadding>A?e+a-5:n+a+5:(n-e)/2+e+a})).attr("y",(function(t,e){return t.order*n+o.barHeight/2+(o.fontSize/2-2)+i})).attr("text-height",s).attr("class",(function(t){var e=p(t.startTime),n=p(t.endTime);t.milestone&&(n=e+s);var r=this.getBBox().width,i="";t.classes.length>0&&(i=t.classes.join(" "));for(var a=0,c=0;c<g.length;c++)t.type===g[c]&&(a=c%o.numberSectionStyles);var l="";return t.active&&(l=t.crit?"activeCritText"+a:"activeText"+a),t.done?l=t.crit?l+" doneCritText"+a:l+" doneText"+a:t.crit&&(l=l+" critText"+a),t.milestone&&(l+=" milestoneText"),r>n-e?n+r+1.5*o.leftPadding>A?i+" taskTextOutsideLeft taskTextOutside"+a+" "+l:i+" taskTextOutsideRight taskTextOutside"+a+" "+l+" width-"+r:i+" taskText taskText"+a+" "+l+" width-"+r})),"sandbox"===jt().securityLevel){var f;f=(0,l.select)("#i"+e),(0,l.select)(f.nodes()[0].contentDocument.body);var m=f.nodes()[0].contentDocument;u.filter((function(t){return void 0!==h[t.id]})).each((function(t){var e=m.querySelector("#"+t.id),n=m.querySelector("#"+t.id+"-text"),r=e.parentNode,i=m.createElement("a");i.setAttribute("xlink:href",h[t.id]),i.setAttribute("target","_top"),r.appendChild(i),i.appendChild(e),i.appendChild(n)}))}}(t,c,u,h,s,0,n),function(t,e){for(var n=[],r=0,i=0;i<g.length;i++)n[i]=[g[i],(a=g[i],s=y,function(t){for(var e=t.length,n={};e;)n[t[--e]]=(n[t[e]]||0)+1;return n}(s)[a]||0)];var a,s;d.append("g").selectAll("text").data(n).enter().append((function(t){var e=t[0].split(ie.lineBreakRegex),n=-(e.length-1)/2,r=A.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("dy",n+"em");for(var i=0;i<e.length;i++){var a=A.createElementNS("http://www.w3.org/2000/svg","tspan");a.setAttribute("alignment-baseline","central"),a.setAttribute("x","10"),i>0&&a.setAttribute("dy","1em"),a.textContent=e[i],r.appendChild(a)}return r})).attr("x",10).attr("y",(function(i,a){if(!(a>0))return i[1]*t/2+e;for(var o=0;o<a;o++)return r+=n[a-1][1],i[1]*t/2+r*t+e})).attr("font-size",o.sectionFontSize).attr("font-size",o.sectionFontSize).attr("class",(function(t){for(var e=0;e<g.length;e++)if(t[0]===g[e])return"sectionTitle sectionTitle"+e%o.numberSectionStyles;return"sectionTitle"}))}(c,u),function(t,e,n,i){var a=r.db.getTodayMarker();if("off"!==a){var s=d.append("g").attr("class","today"),c=new Date,l=s.append("line");l.attr("x1",p(c)+t).attr("x2",p(c)+t).attr("y1",o.titleTopMargin).attr("y2",i-o.titleTopMargin).attr("class","today"),""!==a&&l.attr("style",a.replace(/,/g,";"))}}(h,0,0,a)}(h,Xa,f),pn(d,0,Xa,o.useMaxWidth),d.append("text").text(r.db.getDiagramTitle()).attr("x",Xa/2).attr("y",o.titleTopMargin).attr("class","titleText"),bn(r.db,d,e)}};var Za=n(9959),to=n.n(Za),eo="",no=!1;const ro={setMessage:function(t){o.debug("Setting message to: "+t),eo=t},getMessage:function(){return eo},setInfo:function(t){no=t},getInfo:function(){return no}},io={draw:function(t,e,n,r){try{o.debug("Renering info diagram\n"+t);var i,a=jt().securityLevel;"sandbox"===a&&(i=(0,l.select)("#i"+e));var s="sandbox"===a?(0,l.select)(i.nodes()[0].contentDocument.body):(0,l.select)("body"),c=("sandbox"===a?i.nodes()[0].contentDocument:document,s.select("#"+e));c.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+n),c.attr("height",100),c.attr("width",400)}catch(t){o.error("Error while rendering info diagram"),o.error(t.message)}}};var ao=n(6765),oo=n.n(ao),so=n(7062),co=n.n(so),lo={},Ao=!1;const uo={parseDirective:function(t,e,n){yl.parseDirective(this,t,e,n)},getConfig:function(){return jt().pie},addSection:function(t,e){t=ie.sanitizeText(t,jt()),void 0===lo[t]&&(lo[t]=e,o.debug("Added new section :",t))},getSections:function(){return lo},cleanupValue:function(t){return":"===t.substring(0,1)?(t=t.substring(1).trim(),Number(t.trim())):Number(t.trim())},clear:function(){lo={},Ao=!1,le()},setAccTitle:Ae,getAccTitle:ue,setDiagramTitle:de,getDiagramTitle:pe,setShowData:function(t){Ao=t},getShowData:function(){return Ao},getAccDescription:fe,setAccDescription:he};var ho,fo=jt();const po={draw:function(t,e,n,r){try{fo=jt(),o.debug("Rendering info diagram\n"+t);var i,a=jt().securityLevel;"sandbox"===a&&(i=(0,l.select)("#i"+e));var s="sandbox"===a?(0,l.select)(i.nodes()[0].contentDocument.body):(0,l.select)("body"),c="sandbox"===a?i.nodes()[0].contentDocument:document;r.db.clear(),r.parser.parse(t),o.debug("Parsed info diagram");var A=c.getElementById(e);void 0===(ho=A.parentElement.offsetWidth)&&(ho=1200),void 0!==fo.useWidth&&(ho=fo.useWidth),void 0!==fo.pie.useWidth&&(ho=fo.pie.useWidth);var u=s.select("#"+e);pn(u,0,ho,fo.pie.useMaxWidth),bn(r.db,u,e),A.setAttribute("viewBox","0 0 "+ho+" 450");var h=Math.min(ho,450)/2-40,f=u.append("g").attr("transform","translate("+ho/2+",225)"),d=r.db.getSections(),p=0;Object.keys(d).forEach((function(t){p+=d[t]}));var g=fo.themeVariables,m=[g.pie1,g.pie2,g.pie3,g.pie4,g.pie5,g.pie6,g.pie7,g.pie8,g.pie9,g.pie10,g.pie11,g.pie12],y=(0,l.scaleOrdinal)().range(m),v=(0,l.pie)().value((function(t){return t[1]}))(Object.entries(d)),b=(0,l.arc)().innerRadius(0).outerRadius(h);f.selectAll("mySlices").data(v).enter().append("path").attr("d",b).attr("fill",(function(t){return y(t.data[0])})).attr("class","pieCircle"),f.selectAll("mySlices").data(v).enter().append("text").text((function(t){return(t.data[1]/p*100).toFixed(0)+"%"})).attr("transform",(function(t){return"translate("+b.centroid(t)+")"})).style("text-anchor","middle").attr("class","slice"),f.append("text").text(r.db.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var _=f.selectAll(".legend").data(y.domain()).enter().append("g").attr("class","legend").attr("transform",(function(t,e){return"translate(216,"+(22*e-22*y.domain().length/2)+")"}));_.append("rect").attr("width",18).attr("height",18).style("fill",y).style("stroke",y),_.data(v).append("text").attr("x",22).attr("y",14).text((function(t){return r.db.getShowData()||fo.showData||fo.pie.showData?t.data[0]+" ["+t.data[1]+"]":t.data[0]}))}catch(t){o.error("Error while rendering info diagram"),o.error(t)}}};var go=n(3176),mo=n.n(go),yo=[],vo={},bo={},_o={},wo={};const Eo={RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},RiskLevel:{LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},VerifyType:{VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Relationships:{CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},parseDirective:function(t,e,n){yl.parseDirective(this,t,e,n)},getConfig:function(){return jt().req},addRequirement:function(t,e){return void 0===bo[t]&&(bo[t]={name:t,type:e,id:vo.id,text:vo.text,risk:vo.risk,verifyMethod:vo.verifyMethod}),vo={},bo[t]},getRequirements:function(){return bo},setNewReqId:function(t){void 0!==vo&&(vo.id=t)},setNewReqText:function(t){void 0!==vo&&(vo.text=t)},setNewReqRisk:function(t){void 0!==vo&&(vo.risk=t)},setNewReqVerifyMethod:function(t){void 0!==vo&&(vo.verifyMethod=t)},setAccTitle:Ae,getAccTitle:ue,setAccDescription:he,getAccDescription:fe,addElement:function(t){return void 0===wo[t]&&(wo[t]={name:t,type:_o.type,docRef:_o.docRef},o.info("Added new requirement: ",t)),_o={},wo[t]},getElements:function(){return wo},setNewElementType:function(t){void 0!==_o&&(_o.type=t)},setNewElementDocRef:function(t){void 0!==_o&&(_o.docRef=t)},addRelationship:function(t,e,n){yo.push({type:t,src:e,dst:n})},getRelationships:function(){return yo},clear:function(){yo=[],vo={},bo={},_o={},wo={},le()}};var Co={CONTAINS:"contains",ARROW:"arrow"};const xo=Co;var Bo={},To=0,ko=function(t,e){return t.insert("rect","#"+e).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",Bo.rect_min_width+"px").attr("height",Bo.rect_min_height+"px")},So=function(t,e,n){var r=Bo.rect_min_width/2,i=t.append("text").attr("class","req reqLabel reqTitle").attr("id",e).attr("x",r).attr("y",Bo.rect_padding).attr("dominant-baseline","hanging"),a=0;n.forEach((function(t){0==a?i.append("tspan").attr("text-anchor","middle").attr("x",Bo.rect_min_width/2).attr("dy",0).text(t):i.append("tspan").attr("text-anchor","middle").attr("x",Bo.rect_min_width/2).attr("dy",.75*Bo.line_height).text(t),a++}));var o=1.5*Bo.rect_padding+a*Bo.line_height*.75;return t.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",Bo.rect_min_width).attr("y1",o).attr("y2",o),{titleNode:i,y:o}},Io=function(t,e,n,r){var i=t.append("text").attr("class","req reqLabel").attr("id",e).attr("x",Bo.rect_padding).attr("y",r).attr("dominant-baseline","hanging"),a=0,o=[];return n.forEach((function(t){for(var e=t.length;e>30&&a<3;){var n=t.substring(0,30);e=(t=t.substring(30,t.length)).length,o[o.length]=n,a++}if(3==a){var r=o[o.length-1];o[o.length-1]=r.substring(0,r.length-4)+"..."}else o[o.length]=t;a=0})),o.forEach((function(t){i.append("tspan").attr("x",Bo.rect_padding).attr("dy",Bo.line_height).text(t)})),i},Lo=function(t){return t.replace(/\s/g,"").replace(/\./g,"_")};const Fo={draw:function(t,e,n,r){Bo=jt().requirement,r.db.clear(),r.parser.parse(t);var i,a=Bo.securityLevel;"sandbox"===a&&(i=(0,l.select)("#i"+e));var s="sandbox"===a?(0,l.select)(i.nodes()[0].contentDocument.body):(0,l.select)("body"),c=("sandbox"===a?i.nodes()[0].contentDocument:document,s.select("[id='".concat(e,"']")));!function(t,e){var n=t.append("defs").append("marker").attr("id",Co.CONTAINS+"_line_ending").attr("refX",0).attr("refY",e.line_height/2).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("g");n.append("circle").attr("cx",e.line_height/2).attr("cy",e.line_height/2).attr("r",e.line_height/2).attr("fill","none"),n.append("line").attr("x1",0).attr("x2",e.line_height).attr("y1",e.line_height/2).attr("y2",e.line_height/2).attr("stroke-width",1),n.append("line").attr("y1",0).attr("y2",e.line_height).attr("x1",e.line_height/2).attr("x2",e.line_height/2).attr("stroke-width",1),t.append("defs").append("marker").attr("id",Co.ARROW+"_line_ending").attr("refX",e.line_height).attr("refY",.5*e.line_height).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("path").attr("d","M0,0\n L".concat(e.line_height,",").concat(e.line_height/2,"\n M").concat(e.line_height,",").concat(e.line_height/2,"\n L0,").concat(e.line_height)).attr("stroke-width",1)}(c,Bo);var A,u,h,f=new(ar().Graph)({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:Bo.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}})),d=r.db.getRequirements(),p=r.db.getElements(),g=r.db.getRelationships();A=d,u=f,h=c,Object.keys(A).forEach((function(t){var e=A[t];t=Lo(t),o.info("Added new requirement: ",t);var n=h.append("g").attr("id",t),r=ko(n,"req-"+t),i=So(n,t+"_title",["<<".concat(e.type,">>"),"".concat(e.name)]),a=(Io(n,t+"_body",["Id: ".concat(e.id),"Text: ".concat(e.text),"Risk: ".concat(e.risk),"Verification: ".concat(e.verifyMethod)],i.y),r.node().getBBox());u.setNode(t,{width:a.width,height:a.height,shape:"rect",id:t})})),function(t,e,n){Object.keys(t).forEach((function(r){var i=t[r],a=Lo(r),o=n.append("g").attr("id",a),s="element-"+a,c=ko(o,s),l=So(o,s+"_title",["<<Element>>","".concat(r)]),A=(Io(o,s+"_body",["Type: ".concat(i.type||"Not Specified"),"Doc Ref: ".concat(i.docRef||"None")],l.y),c.node().getBBox());e.setNode(a,{width:A.width,height:A.height,shape:"rect",id:a})}))}(p,f,c),function(t,e){t.forEach((function(t){var n=Lo(t.src),r=Lo(t.dst);e.setEdge(n,r,{relationship:t})}))}(g,f),rr().layout(f),function(t,e){e.nodes().forEach((function(n){void 0!==n&&void 0!==e.node(n)&&(t.select("#"+n),t.select("#"+n).attr("transform","translate("+(e.node(n).x-e.node(n).width/2)+","+(e.node(n).y-e.node(n).height/2)+" )"))}))}(c,f),g.forEach((function(t){!function(t,e,n,r,i){var a=n.edge(Lo(e.src),Lo(e.dst)),o=(0,l.line)().x((function(t){return t.x})).y((function(t){return t.y})),s=t.insert("path","#"+r).attr("class","er relationshipLine").attr("d",o(a.points)).attr("fill","none");e.type==i.db.Relationships.CONTAINS?s.attr("marker-start","url("+ie.getUrl(Bo.arrowMarkerAbsolute)+"#"+e.type+"_line_ending)"):(s.attr("stroke-dasharray","10,7"),s.attr("marker-end","url("+ie.getUrl(Bo.arrowMarkerAbsolute)+"#"+xo.ARROW+"_line_ending)")),function(t,e,n,r){var i=e.node().getTotalLength(),a=e.node().getPointAtLength(.5*i),o="rel"+To;To++;var s=t.append("text").attr("class","req relationshipLabel").attr("id",o).attr("x",a.x).attr("y",a.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(r).node().getBBox();t.insert("rect","#"+o).attr("class","req reqLabelBox").attr("x",a.x-s.width/2).attr("y",a.y-s.height/2).attr("width",s.width).attr("height",s.height).attr("fill","white").attr("fill-opacity","85%")}(t,s,0,"<<".concat(e.type,">>"))}(c,t,f,e,r)}));var m=Bo.rect_padding,y=c.node().getBBox(),v=y.width+2*m,b=y.height+2*m;pn(c,0,v,Bo.useMaxWidth),c.attr("viewBox","".concat(y.x-m," ").concat(y.y-m," ").concat(v," ").concat(b)),bn(r.db,c,e)}};var No,Oo=n(6876),Do=n.n(Oo),Mo=void 0,Ro={},Uo=[],Po=!1,Ho=function(t,e,n,r){var i=Ro[t];i&&e===i.name&&null==n||(null!=n&&null!=n.text||(n={text:e,wrap:null,type:r}),null!=r&&null!=n.text||(n={text:e,wrap:null,type:r}),Ro[t]={name:e,description:n.text,wrap:void 0===n.wrap&&$o()||!!n.wrap,prevActor:Mo,links:{},properties:{},actorCnt:null,rectData:null,type:r||"participant"},Mo&&Ro[Mo]&&(Ro[Mo].nextActor=t),Mo=t)},Qo=function(t){var e,n=0;for(e=0;e<Uo.length;e++)Uo[e].type===Ko.ACTIVE_START&&Uo[e].from.actor===t&&n++,Uo[e].type===Ko.ACTIVE_END&&Uo[e].from.actor===t&&n--;return n},Go=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{text:void 0,wrap:void 0},r=arguments.length>3?arguments[3]:void 0;if(r===Ko.ACTIVE_END){var i=Qo(t.actor);if(i<1){var a=new Error("Trying to inactivate an inactive participant ("+t.actor+")");throw a.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},a}}return Uo.push({from:t,to:e,message:n.text,wrap:void 0===n.wrap&&$o()||!!n.wrap,type:r}),!0},jo=function(t){return Ro[t]},$o=function(){return void 0!==No?No:jt().sequence.wrap},Ko={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31},Yo=function(t,e,n){n.text,void 0===n.wrap&&$o()||n.wrap;var r=[].concat(t,t);Uo.push({from:r[0],to:r[1],message:n.text,wrap:void 0===n.wrap&&$o()||!!n.wrap,type:Ko.NOTE,placement:e})},zo=function(t,e){var n=jo(t);try{var r=Jt(e.text,jt());r=(r=r.replace(/&amp;/g,"&")).replace(/&equals;/g,"="),Wo(n,JSON.parse(r))}catch(t){o.error("error while parsing actor link text",t)}};function Wo(t,e){if(null==t.links)t.links=e;else for(var n in e)t.links[n]=e[n]}var Vo=function(t,e){var n=jo(t);try{var r=Jt(e.text,jt());qo(n,JSON.parse(r))}catch(t){o.error("error while parsing actor properties text",t)}};function qo(t,e){if(null==t.properties)t.properties=e;else for(var n in e)t.properties[n]=e[n]}var Xo=function(t,e){var n=jo(t),r=document.getElementById(e.text);try{var i=r.innerHTML,a=JSON.parse(i);a.properties&&qo(n,a.properties),a.links&&Wo(n,a.links)}catch(t){o.error("error while parsing actor details text",t)}};const Jo={addActor:Ho,addMessage:function(t,e,n,r){Uo.push({from:t,to:e,message:n.text,wrap:void 0===n.wrap&&$o()||!!n.wrap,answer:r})},addSignal:Go,addLinks:zo,addDetails:Xo,addProperties:Vo,autoWrap:$o,setWrap:function(t){No=t},enableSequenceNumbers:function(){Po=!0},disableSequenceNumbers:function(){Po=!1},showSequenceNumbers:function(){return Po},getMessages:function(){return Uo},getActors:function(){return Ro},getActor:jo,getActorKeys:function(){return Object.keys(Ro)},getActorProperty:function(t,e){if(void 0!==t&&void 0!==t.properties)return t.properties[e]},getAccTitle:ue,getDiagramTitle:pe,setDiagramTitle:de,parseDirective:function(t,e,n){yl.parseDirective(this,t,e,n)},getConfig:function(){return jt().sequence},clear:function(){Ro={},Uo=[],Po=!1,le()},parseMessage:function(t){var e=t.trim(),n={text:e.replace(/^[:]?(?:no)?wrap:/,"").trim(),wrap:null!==e.match(/^[:]?wrap:/)||null===e.match(/^[:]?nowrap:/)&&void 0};return o.debug("parseMessage:",n),n},LINETYPE:Ko,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:Yo,setAccTitle:Ae,apply:function t(e){if(e instanceof Array)e.forEach((function(e){t(e)}));else switch(e.type){case"sequenceIndex":Uo.push({from:void 0,to:void 0,message:{start:e.sequenceIndex,step:e.sequenceIndexStep,visible:e.sequenceVisible},wrap:!1,type:e.signalType});break;case"addParticipant":Ho(e.actor,e.actor,e.description,"participant");break;case"addActor":Ho(e.actor,e.actor,e.description,"actor");break;case"activeStart":case"activeEnd":Go(e.actor,void 0,void 0,e.signalType);break;case"addNote":Yo(e.actor,e.placement,e.text);break;case"addLinks":zo(e.actor,e.text);break;case"addALink":!function(t,e){var n=jo(t);try{var r={},i=Jt(e.text,jt()),a=i.indexOf("@"),s=(i=(i=i.replace(/&amp;/g,"&")).replace(/&equals;/g,"=")).slice(0,a-1).trim(),c=i.slice(a+1).trim();r[s]=c,Wo(n,r)}catch(t){o.error("error while parsing actor link text",t)}}(e.actor,e.text);break;case"addProperties":Vo(e.actor,e.text);break;case"addDetails":Xo(e.actor,e.text);break;case"addMessage":Go(e.from,e.to,e.msg,e.signalType);break;case"loopStart":Go(void 0,void 0,e.loopText,e.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":Go(void 0,void 0,void 0,e.signalType);break;case"rectStart":Go(void 0,void 0,e.color,e.signalType);break;case"optStart":Go(void 0,void 0,e.optText,e.signalType);break;case"altStart":case"else":Go(void 0,void 0,e.altText,e.signalType);break;case"setAccTitle":Ae(e.text);break;case"parStart":case"and":Go(void 0,void 0,e.parText,e.signalType);break;case"criticalStart":Go(void 0,void 0,e.criticalText,e.signalType);break;case"option":Go(void 0,void 0,e.optionText,e.signalType);break;case"breakStart":Go(void 0,void 0,e.breakText,e.signalType)}},setAccDescription:he,getAccDescription:fe};var Zo=[],ts=function(t,e){var n=t.append("rect");return n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),void 0!==e.class&&n.attr("class",e.class),n},es=function(t,e){var n;n=function(){var n=document.querySelectorAll(t);0!==n.length&&(n[0].addEventListener("mouseover",(function(){ns("actor"+e+"_popup")})),n[0].addEventListener("mouseout",(function(){rs("actor"+e+"_popup")})))},Zo.push(n)},ns=function(t){var e=document.getElementById(t);null!=e&&(e.style.display="block")},rs=function(t){var e=document.getElementById(t);null!=e&&(e.style.display="none")},is=function(t,e){var n=0,r=0,i=e.text.split(ie.lineBreakRegex),a=[],o=0,s=function(){return e.y};if(void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0)switch(e.valign){case"top":case"start":s=function(){return Math.round(e.y+e.textMargin)};break;case"middle":case"center":s=function(){return Math.round(e.y+(n+r+e.textMargin)/2)};break;case"bottom":case"end":s=function(){return Math.round(e.y+(n+r+2*e.textMargin)-e.textMargin)}}if(void 0!==e.anchor&&void 0!==e.textMargin&&void 0!==e.width)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle"}for(var c=0;c<i.length;c++){var l=i[c];void 0!==e.textMargin&&0===e.textMargin&&void 0!==e.fontSize&&(o=c*e.fontSize);var A=t.append("text");if(A.attr("x",e.x),A.attr("y",s()),void 0!==e.anchor&&A.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),void 0!==e.fontFamily&&A.style("font-family",e.fontFamily),void 0!==e.fontSize&&A.style("font-size",e.fontSize),void 0!==e.fontWeight&&A.style("font-weight",e.fontWeight),void 0!==e.fill&&A.attr("fill",e.fill),void 0!==e.class&&A.attr("class",e.class),void 0!==e.dy?A.attr("dy",e.dy):0!==o&&A.attr("dy",o),e.tspan){var u=A.append("tspan");u.attr("x",e.x),void 0!==e.fill&&u.attr("fill",e.fill),u.text(l)}else A.text(l);void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0&&(r+=(A._groups||A)[0][0].getBBox().height,n=r),a.push(A)}return a},as=-1,os=function(){function t(t,e,n,i,a,o,s){r(e.append("text").attr("x",n+a/2).attr("y",i+o/2+5).style("text-anchor","middle").text(t),s)}function e(t,e,n,i,a,o,s,c){for(var l=c.actorFontSize,A=c.actorFontFamily,u=c.actorFontWeight,h=l&&l.replace?l.replace("px",""):l,f=t.split(ie.lineBreakRegex),d=0;d<f.length;d++){var p=d*h-h*(f.length-1)/2,g=e.append("text").attr("x",n+a/2).attr("y",i).style("text-anchor","middle").style("font-size",l).style("font-weight",u).style("font-family",A);g.append("tspan").attr("x",n+a/2).attr("dy",p).text(f[d]),g.attr("y",i+o/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(g,s)}}function n(t,n,i,a,o,s,c,l){var A=n.append("switch"),u=A.append("foreignObject").attr("x",i).attr("y",a).attr("width",o).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");u.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,A,i,a,o,s,c,l),r(u,c)}function r(t,e){for(var n in e)e.hasOwnProperty(n)&&t.attr(n,e[n])}return function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?t:e}}(),ss=function(){function t(t,e,n,i,a,o,s){r(e.append("text").attr("x",n).attr("y",i).style("text-anchor","start").text(t),s)}function e(t,e,n,i,a,o,s,c){for(var l=c.actorFontSize,A=c.actorFontFamily,u=c.actorFontWeight,h=t.split(ie.lineBreakRegex),f=0;f<h.length;f++){var d=f*l-l*(h.length-1)/2,p=e.append("text").attr("x",n).attr("y",i).style("text-anchor","start").style("font-size",l).style("font-weight",u).style("font-family",A);p.append("tspan").attr("x",n).attr("dy",d).text(h[f]),p.attr("y",i+o/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(p,s)}}function n(t,n,i,a,o,s,c,l){var A=n.append("switch"),u=A.append("foreignObject").attr("x",i).attr("y",a).attr("width",o).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");u.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,A,i,a,0,s,c,l),r(u,c)}function r(t,e){for(var n in e)e.hasOwnProperty(n)&&t.attr(n,e[n])}return function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?t:e}}();const cs=ts,ls=function(t,e,n){switch(e.type){case"actor":return function(t,e,n){var r=e.x+e.width/2;0===e.y&&(as++,t.append("line").attr("id","actor"+as).attr("x1",r).attr("y1",80).attr("x2",r).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));var i=t.append("g");i.attr("class","actor-man");var a={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};a.x=e.x,a.y=e.y,a.fill="#eaeaea",a.width=e.width,a.height=e.height,a.class="actor",a.rx=3,a.ry=3,i.append("line").attr("id","actor-man-torso"+as).attr("x1",r).attr("y1",e.y+25).attr("x2",r).attr("y2",e.y+45),i.append("line").attr("id","actor-man-arms"+as).attr("x1",r-18).attr("y1",e.y+33).attr("x2",r+18).attr("y2",e.y+33),i.append("line").attr("x1",r-18).attr("y1",e.y+60).attr("x2",r).attr("y2",e.y+45),i.append("line").attr("x1",r).attr("y1",e.y+45).attr("x2",r+16).attr("y2",e.y+60);var o=i.append("circle");o.attr("cx",e.x+e.width/2),o.attr("cy",e.y+10),o.attr("r",15),o.attr("width",e.width),o.attr("height",e.height);var s=i.node().getBBox();return e.height=s.height,os(n)(e.description,i,a.x,a.y+35,a.width,a.height,{class:"actor"},n),e.height}(t,e,n);case"participant":return function(t,e,n){var r=e.x+e.width/2,i=t.append("g"),a=i;0===e.y&&(as++,a.append("line").attr("id","actor"+as).attr("x1",r).attr("y1",5).attr("x2",r).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),a=i.append("g"),e.actorCnt=as,null!=e.links&&(a.attr("id","root-"+as),es("#root-"+as,as)));var o={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},s="actor";null!=e.properties&&e.properties.class?s=e.properties.class:o.fill="#eaeaea",o.x=e.x,o.y=e.y,o.width=e.width,o.height=e.height,o.class=s,o.rx=3,o.ry=3;var c=ts(a,o);if(e.rectData=o,null!=e.properties&&e.properties.icon){var l=e.properties.icon.trim();"@"===l.charAt(0)?function(t,e,n,r){var i=t.append("use");i.attr("x",e),i.attr("y",n);var a=(0,Ne.N)(r);i.attr("xlink:href","#"+a)}(a,o.x+o.width-20,o.y+10,l.substr(1)):function(t,e,n,r){var i=t.append("image");i.attr("x",e),i.attr("y",n);var a=(0,Ne.N)(r);i.attr("xlink:href",a)}(a,o.x+o.width-20,o.y+10,l)}os(n)(e.description,a,o.x,o.y,o.width,o.height,{class:"actor"},n);var A=e.height;if(c.node){var u=c.node().getBBox();e.height=u.height,A=u.height}return A}(t,e,n)}},As=function(t,e,n,r,i){if(void 0===e.links||null===e.links||0===Object.keys(e.links).length)return{height:0,width:0};var a=e.links,o=e.actorCnt,s=e.rectData,c="none";i&&(c="block !important");var l=t.append("g");l.attr("id","actor"+o+"_popup"),l.attr("class","actorPopupMenu"),l.attr("display",c),es("#actor"+o+"_popup",o);var A="";void 0!==s.class&&(A=" "+s.class);var u=s.width>n?s.width:n,h=l.append("rect");if(h.attr("class","actorPopupMenuPanel"+A),h.attr("x",s.x),h.attr("y",s.height),h.attr("fill",s.fill),h.attr("stroke",s.stroke),h.attr("width",u),h.attr("height",s.height),h.attr("rx",s.rx),h.attr("ry",s.ry),null!=a){var f=20;for(var d in a){var p=l.append("a"),g=(0,Ne.N)(a[d]);p.attr("xlink:href",g),p.attr("target","_blank"),ss(r)(d,p,s.x+10,s.height+f,u,20,{class:"actor"},r),f+=30}}return h.attr("height",f),{height:s.height+f,width:u}},us=function(t){return t.append("g")},hs=function(t,e,n,r){var i=r.boxMargin,a=r.boxTextMargin,o=r.labelBoxHeight,s=r.labelBoxWidth,c=r.messageFontFamily,l=r.messageFontSize,A=r.messageFontWeight,u=t.append("g"),h=function(t,e,n,r){return u.append("line").attr("x1",t).attr("y1",e).attr("x2",n).attr("y2",r).attr("class","loopLine")};h(e.startx,e.starty,e.stopx,e.starty),h(e.stopx,e.starty,e.stopx,e.stopy),h(e.startx,e.stopy,e.stopx,e.stopy),h(e.startx,e.starty,e.startx,e.stopy),void 0!==e.sections&&e.sections.forEach((function(t){h(e.startx,t.y,e.stopx,t.y).style("stroke-dasharray","3, 3")}));var f={x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0};f.text=n,f.x=e.startx,f.y=e.starty,f.fontFamily=c,f.fontSize=l,f.fontWeight=A,f.anchor="middle",f.valign="middle",f.tspan=!1,f.width=s||50,f.height=o||20,f.textMargin=a,f.class="labelText",function(t,e){var n=t.append("polygon");n.attr("points",function(t,e,n,r,i){return t+","+e+" "+(t+n)+","+e+" "+(t+n)+","+(e+r-7)+" "+(t+n-8.4)+","+(e+r)+" "+t+","+(e+r)}(e.x,e.y,e.width,e.height)),n.attr("class","labelBox"),e.y=e.y+e.height/2,is(t,e)}(u,f),(f={x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}).text=e.title,f.x=e.startx+s/2+(e.stopx-e.startx)/2,f.y=e.starty+i+a,f.anchor="middle",f.valign="middle",f.textMargin=a,f.class="loopText",f.fontFamily=c,f.fontSize=l,f.fontWeight=A,f.wrap=!0;var d=is(u,f);return void 0!==e.sectionTitles&&e.sectionTitles.forEach((function(t,n){if(t.message){f.text=t.message,f.x=e.startx+(e.stopx-e.startx)/2,f.y=e.sections[n].y+i+a,f.class="loopText",f.anchor="middle",f.valign="middle",f.tspan=!1,f.fontFamily=c,f.fontSize=l,f.fontWeight=A,f.wrap=e.wrap,d=is(u,f);var r=Math.round(d.map((function(t){return(t._groups||t)[0][0].getBBox().height})).reduce((function(t,e){return t+e})));e.sections[n].height+=r-(i+a)}})),e.height=Math.round(e.stopy-e.starty),u},fs=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},ds=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}};Ne.N;var ps={},gs={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,0===this.actors.length?[0]:this.actors.map((function(t){return t.height||0})))+(0===this.loops.length?0:this.loops.map((function(t){return t.height||0})).reduce((function(t,e){return t+e})))+(0===this.messages.length?0:this.messages.map((function(t){return t.height||0})).reduce((function(t,e){return t+e})))+(0===this.notes.length?0:this.notes.map((function(t){return t.height||0})).reduce((function(t,e){return t+e})))},clear:function(){this.actors=[],this.loops=[],this.messages=[],this.notes=[]},addActor:function(t){this.actors.push(t)},addLoop:function(t){this.loops.push(t)},addMessage:function(t){this.messages.push(t)},addNote:function(t){this.notes.push(t)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,ws(jt())},updateVal:function(t,e,n,r){void 0===t[e]?t[e]=n:t[e]=r(n,t[e])},updateBounds:function(t,e,n,r){var i=this,a=0;function o(o){return function(s){a++;var c=i.sequenceItems.length-a+1;i.updateVal(s,"starty",e-c*ps.boxMargin,Math.min),i.updateVal(s,"stopy",r+c*ps.boxMargin,Math.max),i.updateVal(gs.data,"startx",t-c*ps.boxMargin,Math.min),i.updateVal(gs.data,"stopx",n+c*ps.boxMargin,Math.max),"activation"!==o&&(i.updateVal(s,"startx",t-c*ps.boxMargin,Math.min),i.updateVal(s,"stopx",n+c*ps.boxMargin,Math.max),i.updateVal(gs.data,"starty",e-c*ps.boxMargin,Math.min),i.updateVal(gs.data,"stopy",r+c*ps.boxMargin,Math.max))}}this.sequenceItems.forEach(o()),this.activations.forEach(o("activation"))},insert:function(t,e,n,r){var i=Math.min(t,n),a=Math.max(t,n),o=Math.min(e,r),s=Math.max(e,r);this.updateVal(gs.data,"startx",i,Math.min),this.updateVal(gs.data,"starty",o,Math.min),this.updateVal(gs.data,"stopx",a,Math.max),this.updateVal(gs.data,"stopy",s,Math.max),this.updateBounds(i,o,a,s)},newActivation:function(t,e,n){var r=n[t.from.actor],i=Es(t.from.actor).length||0,a=r.x+r.width/2+(i-1)*ps.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+ps.activationWidth,stopy:void 0,actor:t.from.actor,anchored:us(e)})},endActivation:function(t){var e=this.activations.map((function(t){return t.actor})).lastIndexOf(t.from.actor);return this.activations.splice(e,1)[0]},createLoop:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{message:void 0,wrap:!1,width:void 0},e=arguments.length>1?arguments[1]:void 0;return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},newLoop:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{message:void 0,wrap:!1,width:void 0},e=arguments.length>1?arguments[1]:void 0;this.sequenceItems.push(this.createLoop(t,e))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(t){var e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:gs.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},ms=function(t){return{fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}},ys=function(t){return{fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}},vs=function(t){return{fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}},bs=function(t,e,n,r,i,a){if(!0===i.hideUnusedParticipants){var o=new Set;a.forEach((function(t){o.add(t.from),o.add(t.to)})),n=n.filter((function(t){return o.has(t)}))}for(var s=0,c=0,l=0,A=0;A<n.length;A++){var u=e[n[A]];u.width=u.width||ps.width,u.height=Math.max(u.height||ps.height,ps.height),u.margin=u.margin||ps.actorMargin,u.x=s+c,u.y=r;var h=ls(t,u,ps);l=Math.max(l,h),gs.insert(u.x,r,u.x+u.width,u.height),s+=u.width,c+=u.margin,gs.models.addActor(u)}gs.bumpVerticalPos(l)},_s=function(t,e,n,r){for(var i=0,a=0,o=0;o<n.length;o++){var s=e[n[o]],c=Bs(s),l=As(t,s,c,ps,ps.forceMenus);l.height>i&&(i=l.height),l.width+s.x>a&&(a=l.width+s.x)}return{maxHeight:i,maxWidth:a}},ws=function(t){V(ps,t),t.fontFamily&&(ps.actorFontFamily=ps.noteFontFamily=ps.messageFontFamily=t.fontFamily),t.fontSize&&(ps.actorFontSize=ps.noteFontSize=ps.messageFontSize=t.fontSize),t.fontWeight&&(ps.actorFontWeight=ps.noteFontWeight=ps.messageFontWeight=t.fontWeight)},Es=function(t){return gs.activations.filter((function(e){return e.actor===t}))},Cs=function(t,e){var n=e[t],r=Es(t);return[r.reduce((function(t,e){return Math.min(t,e.startx)}),n.x+n.width/2),r.reduce((function(t,e){return Math.max(t,e.stopx)}),n.x+n.width/2)]};function xs(t,e,n,r,i){gs.bumpVerticalPos(n);var a=r;if(e.id&&e.message&&t[e.id]){var s=t[e.id].width,c=ms(ps);e.message=vn.wrapLabel("[".concat(e.message,"]"),s-2*ps.wrapPadding,c),e.width=s,e.wrap=!0;var l=vn.calculateTextDimensions(e.message,c),A=Math.max(l.height,ps.labelBoxHeight);a=r+A,o.debug("".concat(A," - ").concat(e.message))}i(e),gs.bumpVerticalPos(a)}var Bs=function(t){var e=0,n=vs(ps);for(var r in t.links){var i=vn.calculateTextDimensions(r,n).width+2*ps.wrapPadding+2*ps.boxMargin;e<i&&(e=i)}return e};const Ts={bounds:gs,drawActors:bs,drawActorsPopup:_s,setConf:ws,draw:function(t,e,n,r){ps=jt().sequence;var i,a=jt().securityLevel;"sandbox"===a&&(i=(0,l.select)("#i"+e));var s="sandbox"===a?(0,l.select)(i.nodes()[0].contentDocument.body):(0,l.select)("body");"sandbox"===a?i.nodes()[0].contentDocument:document;gs.init(),o.debug(r.db);var c="sandbox"===a?s.select('[id="'.concat(e,'"]')):(0,l.select)('[id="'.concat(e,'"]')),A=r.db.getActors(),u=r.db.getActorKeys(),h=r.db.getMessages(),f=r.db.getDiagramTitle(),d=function(t,e,n){var r={};return e.forEach((function(e){if(t[e.to]&&t[e.from]){var i=t[e.to];if(e.placement===n.db.PLACEMENT.LEFTOF&&!i.prevActor)return;if(e.placement===n.db.PLACEMENT.RIGHTOF&&!i.nextActor)return;var a=void 0!==e.placement,o=!a,s=a?ys(ps):ms(ps),c=e.wrap?vn.wrapLabel(e.message,ps.width-2*ps.wrapPadding,s):e.message,l=vn.calculateTextDimensions(c,s).width+2*ps.wrapPadding;o&&e.from===i.nextActor?r[e.to]=Math.max(r[e.to]||0,l):o&&e.from===i.prevActor?r[e.from]=Math.max(r[e.from]||0,l):o&&e.from===e.to?(r[e.from]=Math.max(r[e.from]||0,l/2),r[e.to]=Math.max(r[e.to]||0,l/2)):e.placement===n.db.PLACEMENT.RIGHTOF?r[e.from]=Math.max(r[e.from]||0,l):e.placement===n.db.PLACEMENT.LEFTOF?r[i.prevActor]=Math.max(r[i.prevActor]||0,l):e.placement===n.db.PLACEMENT.OVER&&(i.prevActor&&(r[i.prevActor]=Math.max(r[i.prevActor]||0,l/2)),i.nextActor&&(r[e.from]=Math.max(r[e.from]||0,l/2)))}})),o.debug("maxMessageWidthPerActor:",r),r}(A,h,r);ps.height=function(t,e){var n=0;for(var r in Object.keys(t).forEach((function(e){var r=t[e];r.wrap&&(r.description=vn.wrapLabel(r.description,ps.width-2*ps.wrapPadding,vs(ps)));var i=vn.calculateTextDimensions(r.description,vs(ps));r.width=r.wrap?ps.width:Math.max(ps.width,i.width+2*ps.wrapPadding),r.height=r.wrap?Math.max(i.height,ps.height):ps.height,n=Math.max(n,r.height)})),e){var i=t[r];if(i){var a=t[i.nextActor];if(a){var o=e[r]+ps.actorMargin-i.width/2-a.width/2;i.margin=Math.max(o,ps.actorMargin)}}}return Math.max(n,ps.height)}(A,d),function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")}(c),function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")}(c),function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")}(c),bs(c,A,u,0,ps,h);var p=function(t,e,n,r){var i,a,s,c={},l=[];return t.forEach((function(t){switch(t.id=vn.random({length:10}),t.type){case r.db.LINETYPE.LOOP_START:case r.db.LINETYPE.ALT_START:case r.db.LINETYPE.OPT_START:case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.CRITICAL_START:case r.db.LINETYPE.BREAK_START:l.push({id:t.id,msg:t.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case r.db.LINETYPE.ALT_ELSE:case r.db.LINETYPE.PAR_AND:case r.db.LINETYPE.CRITICAL_OPTION:t.message&&(i=l.pop(),c[i.id]=i,c[t.id]=i,l.push(i));break;case r.db.LINETYPE.LOOP_END:case r.db.LINETYPE.ALT_END:case r.db.LINETYPE.OPT_END:case r.db.LINETYPE.PAR_END:case r.db.LINETYPE.CRITICAL_END:case r.db.LINETYPE.BREAK_END:i=l.pop(),c[i.id]=i;break;case r.db.LINETYPE.ACTIVE_START:var n=e[t.from?t.from.actor:t.to.actor],A=Es(t.from?t.from.actor:t.to.actor).length,u=n.x+n.width/2+(A-1)*ps.activationWidth/2,h={startx:u,stopx:u+ps.activationWidth,actor:t.from.actor,enabled:!0};gs.activations.push(h);break;case r.db.LINETYPE.ACTIVE_END:var f=gs.activations.map((function(t){return t.actor})).lastIndexOf(t.from.actor);delete gs.activations.splice(f,1)[0]}void 0!==t.placement?(a=function(t,e,n){var r=e[t.from].x,i=e[t.to].x,a=t.wrap&&t.message,s=vn.calculateTextDimensions(a?vn.wrapLabel(t.message,ps.width,ys(ps)):t.message,ys(ps)),c={width:a?ps.width:Math.max(ps.width,s.width+2*ps.noteMargin),height:0,startx:e[t.from].x,stopx:0,starty:0,stopy:0,message:t.message};return t.placement===n.db.PLACEMENT.RIGHTOF?(c.width=a?Math.max(ps.width,s.width):Math.max(e[t.from].width/2+e[t.to].width/2,s.width+2*ps.noteMargin),c.startx=r+(e[t.from].width+ps.actorMargin)/2):t.placement===n.db.PLACEMENT.LEFTOF?(c.width=a?Math.max(ps.width,s.width+2*ps.noteMargin):Math.max(e[t.from].width/2+e[t.to].width/2,s.width+2*ps.noteMargin),c.startx=r-c.width+(e[t.from].width-ps.actorMargin)/2):t.to===t.from?(s=vn.calculateTextDimensions(a?vn.wrapLabel(t.message,Math.max(ps.width,e[t.from].width),ys(ps)):t.message,ys(ps)),c.width=a?Math.max(ps.width,e[t.from].width):Math.max(e[t.from].width,ps.width,s.width+2*ps.noteMargin),c.startx=r+(e[t.from].width-c.width)/2):(c.width=Math.abs(r+e[t.from].width/2-(i+e[t.to].width/2))+ps.actorMargin,c.startx=r<i?r+e[t.from].width/2-ps.actorMargin/2:i+e[t.to].width/2-ps.actorMargin/2),a&&(c.message=vn.wrapLabel(t.message,c.width-2*ps.wrapPadding,ys(ps))),o.debug("NM:[".concat(c.startx,",").concat(c.stopx,",").concat(c.starty,",").concat(c.stopy,":").concat(c.width,",").concat(c.height,"=").concat(t.message,"]")),c}(t,e,r),t.noteModel=a,l.forEach((function(t){(i=t).from=Math.min(i.from,a.startx),i.to=Math.max(i.to,a.startx+a.width),i.width=Math.max(i.width,Math.abs(i.from-i.to))-ps.labelBoxWidth}))):(s=function(t,e,n){var r=!1;if([n.db.LINETYPE.SOLID_OPEN,n.db.LINETYPE.DOTTED_OPEN,n.db.LINETYPE.SOLID,n.db.LINETYPE.DOTTED,n.db.LINETYPE.SOLID_CROSS,n.db.LINETYPE.DOTTED_CROSS,n.db.LINETYPE.SOLID_POINT,n.db.LINETYPE.DOTTED_POINT].includes(t.type)&&(r=!0),!r)return{};var i=Cs(t.from,e),a=Cs(t.to,e),o=i[0]<=a[0]?1:0,s=i[0]<a[0]?0:1,c=i.concat(a),l=Math.abs(a[s]-i[o]);t.wrap&&t.message&&(t.message=vn.wrapLabel(t.message,Math.max(l+2*ps.wrapPadding,ps.width),ms(ps)));var A=vn.calculateTextDimensions(t.message,ms(ps));return{width:Math.max(t.wrap?0:A.width+2*ps.wrapPadding,l+2*ps.wrapPadding,ps.width),height:0,startx:i[o],stopx:a[s],starty:0,stopy:0,message:t.message,type:t.type,wrap:t.wrap,fromBounds:Math.min.apply(null,c),toBounds:Math.max.apply(null,c)}}(t,e,r),t.msgModel=s,s.startx&&s.stopx&&l.length>0&&l.forEach((function(n){if(i=n,s.startx===s.stopx){var r=e[t.from],a=e[t.to];i.from=Math.min(r.x-s.width/2,r.x-r.width/2,i.from),i.to=Math.max(a.x+s.width/2,a.x+r.width/2,i.to),i.width=Math.max(i.width,Math.abs(i.to-i.from))-ps.labelBoxWidth}else i.from=Math.min(s.startx,i.from),i.to=Math.max(s.stopx,i.to),i.width=Math.max(i.width,s.width)-ps.labelBoxWidth})))})),gs.activations=[],o.debug("Loop type widths:",c),c}(h,A,0,r);(function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")})(c),function(t){var e=t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);e.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),e.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")}(c),function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")}(c),function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)}(c);var g=1,m=1,y=Array();h.forEach((function(t){var e,n,i;switch(t.type){case r.db.LINETYPE.NOTE:n=t.noteModel,function(t,e){gs.bumpVerticalPos(ps.boxMargin),e.height=ps.boxMargin,e.starty=gs.getVerticalPos();var n=ds();n.x=e.startx,n.y=e.starty,n.width=e.width||ps.width,n.class="note";var r=t.append("g"),i=cs(r,n),a=fs();a.x=e.startx,a.y=e.starty,a.width=n.width,a.dy="1em",a.text=e.message,a.class="noteText",a.fontFamily=ps.noteFontFamily,a.fontSize=ps.noteFontSize,a.fontWeight=ps.noteFontWeight,a.anchor=ps.noteAlign,a.textMargin=ps.noteMargin,a.valign="center";var o=is(r,a),s=Math.round(o.map((function(t){return(t._groups||t)[0][0].getBBox().height})).reduce((function(t,e){return t+e})));i.attr("height",s+2*ps.noteMargin),e.height+=s+2*ps.noteMargin,gs.bumpVerticalPos(s+2*ps.noteMargin),e.stopy=e.starty+s+2*ps.noteMargin,e.stopx=e.startx+n.width,gs.insert(e.startx,e.starty,e.stopx,e.stopy),gs.models.addNote(e)}(c,n);break;case r.db.LINETYPE.ACTIVE_START:gs.newActivation(t,c,A);break;case r.db.LINETYPE.ACTIVE_END:!function(t,e){var n=gs.endActivation(t);n.starty+18>e&&(n.starty=e-6,e+=12),function(t,e,n,r,i){var a={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0},o=e.anchored;a.x=e.startx,a.y=e.starty,a.class="activation"+i%3,a.width=e.stopx-e.startx,a.height=n-e.starty,ts(o,a)}(0,n,e,0,Es(t.from.actor).length),gs.insert(n.startx,e-10,n.stopx,e)}(t,gs.getVerticalPos());break;case r.db.LINETYPE.LOOP_START:xs(p,t,ps.boxMargin,ps.boxMargin+ps.boxTextMargin,(function(t){return gs.newLoop(t)}));break;case r.db.LINETYPE.LOOP_END:e=gs.endLoop(),hs(c,e,"loop",ps),gs.bumpVerticalPos(e.stopy-gs.getVerticalPos()),gs.models.addLoop(e);break;case r.db.LINETYPE.RECT_START:xs(p,t,ps.boxMargin,ps.boxMargin,(function(t){return gs.newLoop(void 0,t.message)}));break;case r.db.LINETYPE.RECT_END:e=gs.endLoop(),function(t,e){ts(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()}(c,e),gs.models.addLoop(e),gs.bumpVerticalPos(e.stopy-gs.getVerticalPos());break;case r.db.LINETYPE.OPT_START:xs(p,t,ps.boxMargin,ps.boxMargin+ps.boxTextMargin,(function(t){return gs.newLoop(t)}));break;case r.db.LINETYPE.OPT_END:e=gs.endLoop(),hs(c,e,"opt",ps),gs.bumpVerticalPos(e.stopy-gs.getVerticalPos()),gs.models.addLoop(e);break;case r.db.LINETYPE.ALT_START:xs(p,t,ps.boxMargin,ps.boxMargin+ps.boxTextMargin,(function(t){return gs.newLoop(t)}));break;case r.db.LINETYPE.ALT_ELSE:xs(p,t,ps.boxMargin+ps.boxTextMargin,ps.boxMargin,(function(t){return gs.addSectionToLoop(t)}));break;case r.db.LINETYPE.ALT_END:e=gs.endLoop(),hs(c,e,"alt",ps),gs.bumpVerticalPos(e.stopy-gs.getVerticalPos()),gs.models.addLoop(e);break;case r.db.LINETYPE.PAR_START:xs(p,t,ps.boxMargin,ps.boxMargin+ps.boxTextMargin,(function(t){return gs.newLoop(t)}));break;case r.db.LINETYPE.PAR_AND:xs(p,t,ps.boxMargin+ps.boxTextMargin,ps.boxMargin,(function(t){return gs.addSectionToLoop(t)}));break;case r.db.LINETYPE.PAR_END:e=gs.endLoop(),hs(c,e,"par",ps),gs.bumpVerticalPos(e.stopy-gs.getVerticalPos()),gs.models.addLoop(e);break;case r.db.LINETYPE.AUTONUMBER:g=t.message.start||g,m=t.message.step||m,t.message.visible?r.db.enableSequenceNumbers():r.db.disableSequenceNumbers();break;case r.db.LINETYPE.CRITICAL_START:xs(p,t,ps.boxMargin,ps.boxMargin+ps.boxTextMargin,(function(t){return gs.newLoop(t)}));break;case r.db.LINETYPE.CRITICAL_OPTION:xs(p,t,ps.boxMargin+ps.boxTextMargin,ps.boxMargin,(function(t){return gs.addSectionToLoop(t)}));break;case r.db.LINETYPE.CRITICAL_END:e=gs.endLoop(),hs(c,e,"critical",ps),gs.bumpVerticalPos(e.stopy-gs.getVerticalPos()),gs.models.addLoop(e);break;case r.db.LINETYPE.BREAK_START:xs(p,t,ps.boxMargin,ps.boxMargin+ps.boxTextMargin,(function(t){return gs.newLoop(t)}));break;case r.db.LINETYPE.BREAK_END:e=gs.endLoop(),hs(c,e,"break",ps),gs.bumpVerticalPos(e.stopy-gs.getVerticalPos()),gs.models.addLoop(e);break;default:try{(i=t.msgModel).starty=gs.getVerticalPos(),i.sequenceIndex=g,i.sequenceVisible=r.db.showSequenceNumbers();var a=function(t,e){gs.bumpVerticalPos(10);var n,r=e.startx,i=e.stopx,a=e.message,o=ie.splitBreaks(a).length,s=vn.calculateTextDimensions(a,ms(ps)),c=s.height/o;e.height+=c,gs.bumpVerticalPos(c);var l=s.height-10,A=s.width;if(r===i){n=gs.getVerticalPos()+l,ps.rightAngles||(l+=ps.boxMargin,n=gs.getVerticalPos()+l),l+=30;var u=Math.max(A/2,ps.width/2);gs.insert(r-u,gs.getVerticalPos()-10+l,i+u,gs.getVerticalPos()+30+l)}else l+=ps.boxMargin,n=gs.getVerticalPos()+l,gs.insert(r,n-10,i,n);return gs.bumpVerticalPos(l),e.height+=l,e.stopy=e.starty+e.height,gs.insert(e.fromBounds,e.starty,e.toBounds,e.stopy),n}(0,i);y.push({messageModel:i,lineStarty:a}),gs.models.addMessage(i)}catch(t){o.error("error while drawing message",t)}}[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT].includes(t.type)&&(g+=m)})),y.forEach((function(t){return function(t,e,n,r){var i=e.startx,a=e.stopx,o=e.starty,s=e.message,c=e.type,l=e.sequenceIndex,A=e.sequenceVisible,u=vn.calculateTextDimensions(s,ms(ps)),h=fs();h.x=i,h.y=o+10,h.width=a-i,h.class="messageText",h.dy="1em",h.text=s,h.fontFamily=ps.messageFontFamily,h.fontSize=ps.messageFontSize,h.fontWeight=ps.messageFontWeight,h.anchor=ps.messageAlign,h.valign="center",h.textMargin=ps.wrapPadding,h.tspan=!1,is(t,h);var f,d=u.width;i===a?f=ps.rightAngles?t.append("path").attr("d","M ".concat(i,",").concat(n," H ").concat(i+Math.max(ps.width/2,d/2)," V ").concat(n+25," H ").concat(i)):t.append("path").attr("d","M "+i+","+n+" C "+(i+60)+","+(n-10)+" "+(i+60)+","+(n+30)+" "+i+","+(n+20)):((f=t.append("line")).attr("x1",i),f.attr("y1",n),f.attr("x2",a),f.attr("y2",n)),c===r.db.LINETYPE.DOTTED||c===r.db.LINETYPE.DOTTED_CROSS||c===r.db.LINETYPE.DOTTED_POINT||c===r.db.LINETYPE.DOTTED_OPEN?(f.style("stroke-dasharray","3, 3"),f.attr("class","messageLine1")):f.attr("class","messageLine0");var p="";ps.arrowMarkerAbsolute&&(p=(p=(p=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),f.attr("stroke-width",2),f.attr("stroke","none"),f.style("fill","none"),c!==r.db.LINETYPE.SOLID&&c!==r.db.LINETYPE.DOTTED||f.attr("marker-end","url("+p+"#arrowhead)"),c!==r.db.LINETYPE.SOLID_POINT&&c!==r.db.LINETYPE.DOTTED_POINT||f.attr("marker-end","url("+p+"#filled-head)"),c!==r.db.LINETYPE.SOLID_CROSS&&c!==r.db.LINETYPE.DOTTED_CROSS||f.attr("marker-end","url("+p+"#crosshead)"),(A||ps.showSequenceNumbers)&&(f.attr("marker-start","url("+p+"#sequencenumber)"),t.append("text").attr("x",i).attr("y",n+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(l))}(c,t.messageModel,t.lineStarty,r)})),ps.mirrorActors&&(gs.bumpVerticalPos(2*ps.boxMargin),bs(c,A,u,gs.getVerticalPos(),ps,h),gs.bumpVerticalPos(ps.boxMargin),function(t,e){t.selectAll&&t.selectAll(".actor-line").attr("class","200").attr("y2",e-55)}(c,gs.getVerticalPos()));var v=_s(c,A,u),b=gs.getBounds().bounds;o.debug("For line height fix Querying: #"+e+" .actor-line"),(0,l.selectAll)("#"+e+" .actor-line").attr("y2",b.stopy);var _=b.stopy-b.starty;_<v.maxHeight&&(_=v.maxHeight);var w=_+2*ps.diagramMarginY;ps.mirrorActors&&(w=w-ps.boxMargin+ps.bottomMarginAdj);var E=b.stopx-b.startx;E<v.maxWidth&&(E=v.maxWidth);var C=E+2*ps.diagramMarginX;f&&c.append("text").text(f).attr("x",(b.stopx-b.startx)/2-2*ps.diagramMarginX).attr("y",-25),pn(c,0,C,ps.useMaxWidth);var x=f?40:0;c.attr("viewBox",b.startx-ps.diagramMarginX+" -"+(ps.diagramMarginY+x)+" "+C+" "+(w+x)),bn(r.db,c,e),o.debug("models:",gs.models)}};var ks=n(3584),Ss=n.n(ks);function Is(t){return(Is="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Ls=function(t){return JSON.parse(JSON.stringify(t))},Fs=[],Ns={root:{relations:[],states:{},documents:{}}},Os=Ns.root,Ds=0,Ms=function(t,e,n,r,i){void 0===Os.states[t]?Os.states[t]={id:t,descriptions:[],type:e,doc:n,note:i}:(Os.states[t].doc||(Os.states[t].doc=n),Os.states[t].type||(Os.states[t].type=e)),r&&(o.info("Adding state ",t,r),"string"==typeof r&&Ps(t,r.trim()),"object"===Is(r)&&r.forEach((function(e){return Ps(t,e.trim())}))),i&&(Os.states[t].note=i,Os.states[t].note.text=ie.sanitizeText(Os.states[t].note.text,jt()))},Rs=function(t){Os=(Ns={root:{relations:[],states:{},documents:{}}}).root,Os=Ns.root,Ds=0,Qs=[],t||le()},Us=function(t,e,n){var r=t,i=e,a="default",o="default";"[*]"===t&&(r="start"+ ++Ds,a="start"),"[*]"===e&&(i="end"+Ds,o="end"),Ms(r,a),Ms(i,o),Os.relations.push({id1:r,id2:i,title:ie.sanitizeText(n,jt())})},Ps=function(t,e){var n=Os.states[t],r=e;":"===r[0]&&(r=r.substr(1).trim()),n.descriptions.push(ie.sanitizeText(r,jt()))},Hs=0,Qs=[],Gs="TB";const js={parseDirective:function(t,e,n){yl.parseDirective(this,t,e,n)},getConfig:function(){return jt().state},addState:Ms,clear:Rs,getState:function(t){return Os.states[t]},getStates:function(){return Os.states},getRelations:function(){return Os.relations},getClasses:function(){return Qs},getDirection:function(){return Gs},addRelation:Us,getDividerId:function(){return"divider-id-"+ ++Hs},setDirection:function(t){Gs=t},cleanupLabel:function(t){return":"===t.substring(0,1)?t.substr(2).trim():t.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},logDocuments:function(){o.info("Documents = ",Ns)},getRootDoc:function(){return Fs},setRootDoc:function(t){o.info("Setting root doc",t),Fs=t},getRootDocV2:function(){return function t(e,n,r){if("relation"===n.stmt)t(e,n.state1,!0),t(e,n.state2,!1);else if("state"===n.stmt&&"[*]"===n.id&&(n.id=r?e.id+"_start":e.id+"_end",n.start=r),n.doc){var i=[],a=0,o=[];for(a=0;a<n.doc.length;a++)if("divider"===n.doc[a].type){var s=Ls(n.doc[a]);s.doc=Ls(o),i.push(s),o=[]}else o.push(n.doc[a]);if(i.length>0&&o.length>0){var c={stmt:"state",id:on(),type:"divider",doc:Ls(o)};i.push(Ls(c)),n.doc=i}n.doc.forEach((function(e){return t(n,e,!0)}))}}({id:"root"},{id:"root",doc:Fs},!0),{id:"root",doc:Fs}},extract:function(t){var e;e=t.doc?t.doc:t,o.info(e),Rs(!0),o.info("Extract",e),e.forEach((function(t){"state"===t.stmt&&Ms(t.id,t.type,t.doc,t.description,t.note),"relation"===t.stmt&&Us(t.state1.id,t.state2.id,t.description)}))},trimColon:function(t){return t&&":"===t[0]?t.substr(1).trim():t.trim()},getAccTitle:ue,setAccTitle:Ae,getAccDescription:fe,setAccDescription:he};function $s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Ks,Ys=function(t,e,n){var r,i=jt().state.padding,a=2*jt().state.padding,o=t.node().getBBox(),s=o.width,c=o.x,l=t.append("text").attr("x",0).attr("y",jt().state.titleShift).attr("font-size",jt().state.fontSize).attr("class","state-title").text(e.id),A=l.node().getBBox().width+a,u=Math.max(A,s);u===s&&(u+=a);var h=t.node().getBBox();e.doc,r=c-i,A>s&&(r=(s-u)/2+i),Math.abs(c-h.x)<i&&A>s&&(r=c-(A-s)/2);var f=1-jt().state.textHeight;return t.insert("rect",":first-child").attr("x",r).attr("y",f).attr("class",n?"alt-composit":"composit").attr("width",u).attr("height",h.height+jt().state.textHeight+jt().state.titleShift+1).attr("rx","0"),l.attr("x",r+i),A<=s&&l.attr("x",c+(u-a)/2-A/2+i),t.insert("rect",":first-child").attr("x",r).attr("y",jt().state.titleShift-jt().state.textHeight-jt().state.padding).attr("width",u).attr("height",3*jt().state.textHeight).attr("rx",jt().state.radius),t.insert("rect",":first-child").attr("x",r).attr("y",jt().state.titleShift-jt().state.textHeight-jt().state.padding).attr("width",u).attr("height",h.height+3+2*jt().state.textHeight).attr("rx",jt().state.radius),t},zs=function(t,e){var n=e.id,r={id:n,label:e.id,width:0,height:0},i=t.append("g").attr("id",n).attr("class","stateGroup");"start"===e.type&&function(t){t.append("circle").attr("class","start-state").attr("r",jt().state.sizeUnit).attr("cx",jt().state.padding+jt().state.sizeUnit).attr("cy",jt().state.padding+jt().state.sizeUnit)}(i),"end"===e.type&&function(t){t.append("circle").attr("class","end-state-outer").attr("r",jt().state.sizeUnit+jt().state.miniPadding).attr("cx",jt().state.padding+jt().state.sizeUnit+jt().state.miniPadding).attr("cy",jt().state.padding+jt().state.sizeUnit+jt().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",jt().state.sizeUnit).attr("cx",jt().state.padding+jt().state.sizeUnit+2).attr("cy",jt().state.padding+jt().state.sizeUnit+2)}(i),"fork"!==e.type&&"join"!==e.type||function(t,e){var n=jt().state.forkWidth,r=jt().state.forkHeight;if(e.parentId){var i=n;n=r,r=i}t.append("rect").style("stroke","black").style("fill","black").attr("width",n).attr("height",r).attr("x",jt().state.padding).attr("y",jt().state.padding)}(i,e),"note"===e.type&&function(t,e){e.attr("class","state-note");var n=e.append("rect").attr("x",0).attr("y",jt().state.padding),r=function(t,e,n,r){var i=0,a=r.append("text");a.style("text-anchor","start"),a.attr("class","noteText");var o,s=t.replace(/\r\n/g,"<br/>"),c=(s=s.replace(/\n/g,"<br/>")).split(ie.lineBreakRegex),l=1.25*jt().state.noteMargin,A=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return $s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$s(t,e):void 0}}(t))){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}(c);try{for(A.s();!(o=A.n()).done;){var u=o.value.trim();if(u.length>0){var h=a.append("tspan");h.text(u),0===l&&(l+=h.node().getBBox().height),i+=l,h.attr("x",0+jt().state.noteMargin),h.attr("y",0+i+1.25*jt().state.noteMargin)}}}catch(t){A.e(t)}finally{A.f()}return{textWidth:a.node().getBBox().width,textHeight:i}}(t,0,0,e.append("g")),i=r.textWidth,a=r.textHeight;n.attr("height",a+2*jt().state.noteMargin),n.attr("width",i+2*jt().state.noteMargin)}(e.note.text,i),"divider"===e.type&&function(t){t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",jt().state.textHeight).attr("class","divider").attr("x2",2*jt().state.textHeight).attr("y1",0).attr("y2",0)}(i),"default"===e.type&&0===e.descriptions.length&&function(t,e){var n=t.append("text").attr("x",2*jt().state.padding).attr("y",jt().state.textHeight+2*jt().state.padding).attr("font-size",jt().state.fontSize).attr("class","state-title").text(e.id).node().getBBox();t.insert("rect",":first-child").attr("x",jt().state.padding).attr("y",jt().state.padding).attr("width",n.width+2*jt().state.padding).attr("height",n.height+2*jt().state.padding).attr("rx",jt().state.radius)}(i,e),"default"===e.type&&e.descriptions.length>0&&function(t,e){var n=t.append("text").attr("x",2*jt().state.padding).attr("y",jt().state.textHeight+1.3*jt().state.padding).attr("font-size",jt().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),r=n.height,i=t.append("text").attr("x",jt().state.padding).attr("y",r+.4*jt().state.padding+jt().state.dividerMargin+jt().state.textHeight).attr("class","state-description"),a=!0,o=!0;e.descriptions.forEach((function(t){a||(function(t,e,n){var r=t.append("tspan").attr("x",2*jt().state.padding).text(e);n||r.attr("dy",jt().state.textHeight)}(i,t,o),o=!1),a=!1}));var s=t.append("line").attr("x1",jt().state.padding).attr("y1",jt().state.padding+r+jt().state.dividerMargin/2).attr("y2",jt().state.padding+r+jt().state.dividerMargin/2).attr("class","descr-divider"),c=i.node().getBBox(),l=Math.max(c.width,n.width);s.attr("x2",l+3*jt().state.padding),t.insert("rect",":first-child").attr("x",jt().state.padding).attr("y",jt().state.padding).attr("width",l+2*jt().state.padding).attr("height",c.height+r+2*jt().state.padding).attr("rx",jt().state.radius)}(i,e);var a=i.node().getBBox();return r.width=a.width+2*jt().state.padding,r.height=a.height+2*jt().state.padding,r},Ws=0,Vs={};const qs={setConf:function(){},draw:function(t,e,n,r){Ks=jt().state;var i,a=jt().securityLevel;"sandbox"===a&&(i=(0,l.select)("#i"+e));var s="sandbox"===a?(0,l.select)(i.nodes()[0].contentDocument.body):(0,l.select)("body"),c="sandbox"===a?i.nodes()[0].contentDocument:document;o.debug("Rendering diagram "+t);var A=s.select("[id='".concat(e,"']"));A.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z"),new(ar().Graph)({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel((function(){return{}})),function t(e,n,r,i,a,s,c){var A,u=new(ar().Graph)({compound:!0,multigraph:!0}),h=!0;for(A=0;A<e.length;A++)if("relation"===e[A].stmt){h=!1;break}r?u.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:h?1:Ks.edgeLengthFactor,nodeSep:h?1:50,isMultiGraph:!0}):u.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:h?1:Ks.edgeLengthFactor,nodeSep:h?1:50,ranker:"tight-tree",isMultiGraph:!0}),u.setDefaultEdgeLabel((function(){return{}})),c.db.extract(e);for(var f=c.db.getStates(),d=c.db.getRelations(),p=Object.keys(f),g=0;g<p.length;g++){var m=f[p[g]];r&&(m.parentId=r);var y=void 0;if(m.doc){var v=n.append("g").attr("id",m.id).attr("class","stateGroup");y=t(m.doc,v,m.id,!i,a,s,c);var b=(v=Ys(v,m,i)).node().getBBox();y.width=b.width,y.height=b.height+Ks.padding/2,Vs[m.id]={y:Ks.compositTitleSize}}else y=zs(n,m);if(m.note){var _={descriptions:[],id:m.id+"-note",note:m.note,type:"note"},w=zs(n,_);"left of"===m.note.position?(u.setNode(y.id+"-note",w),u.setNode(y.id,y)):(u.setNode(y.id,y),u.setNode(y.id+"-note",w)),u.setParent(y.id,y.id+"-group"),u.setParent(y.id+"-note",y.id+"-group")}else u.setNode(y.id,y)}o.debug("Count=",u.nodeCount(),u);var E=0;d.forEach((function(t){var e;E++,o.debug("Setting edge",t),u.setEdge(t.id1,t.id2,{relation:t,width:(e=t.title,e?e.length*Ks.fontSizeFactor:1),height:Ks.labelHeight*ie.getRows(t.title).length,labelpos:"c"},"id"+E)})),rr().layout(u),o.debug("Graph after layout",u.nodes());var C=n.node();u.nodes().forEach((function(t){void 0!==t&&void 0!==u.node(t)?(o.warn("Node "+t+": "+JSON.stringify(u.node(t))),a.select("#"+C.id+" #"+t).attr("transform","translate("+(u.node(t).x-u.node(t).width/2)+","+(u.node(t).y+(Vs[t]?Vs[t].y:0)-u.node(t).height/2)+" )"),a.select("#"+C.id+" #"+t).attr("data-x-shift",u.node(t).x-u.node(t).width/2),s.querySelectorAll("#"+C.id+" #"+t+" .divider").forEach((function(t){var e=t.parentElement,n=0,r=0;e&&(e.parentElement&&(n=e.parentElement.getBBox().width),r=parseInt(e.getAttribute("data-x-shift"),10),Number.isNaN(r)&&(r=0)),t.setAttribute("x1",0-r+8),t.setAttribute("x2",n-r-8)}))):o.debug("No Node "+t+": "+JSON.stringify(u.node(t)))}));var x=C.getBBox();u.edges().forEach((function(t){void 0!==t&&void 0!==u.edge(t)&&(o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(u.edge(t))),function(t,e,n){e.points=e.points.filter((function(t){return!Number.isNaN(t.y)}));var r=e.points,i=(0,l.line)().x((function(t){return t.x})).y((function(t){return t.y})).curve(l.curveBasis),a=t.append("path").attr("d",i(r)).attr("id","edge"+Ws).attr("class","transition"),s="";if(jt().state.arrowMarkerAbsolute&&(s=(s=(s=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),a.attr("marker-end","url("+s+"#"+function(t){switch(t){case js.relationType.AGGREGATION:return"aggregation";case js.relationType.EXTENSION:return"extension";case js.relationType.COMPOSITION:return"composition";case js.relationType.DEPENDENCY:return"dependency"}}(js.relationType.DEPENDENCY)+"End)"),void 0!==n.title){for(var c=t.append("g").attr("class","stateLabel"),A=vn.calcLabelPosition(e.points),u=A.x,h=A.y,f=ie.getRows(n.title),d=0,p=[],g=0,m=0,y=0;y<=f.length;y++){var v=c.append("text").attr("text-anchor","middle").text(f[y]).attr("x",u).attr("y",h+d),b=v.node().getBBox();if(g=Math.max(g,b.width),m=Math.min(m,b.x),o.info(b.x,u,h+d),0===d){var _=v.node().getBBox();d=_.height,o.info("Title height",d,h)}p.push(v)}var w=d*f.length;if(f.length>1){var E=(f.length-1)*d*.5;p.forEach((function(t,e){return t.attr("y",h+e*d-E)})),w=d*f.length}var C=c.node().getBBox();c.insert("rect",":first-child").attr("class","box").attr("x",u-g/2-jt().state.padding/2).attr("y",h-w/2-jt().state.padding/2-3.5).attr("width",g+jt().state.padding).attr("height",w+jt().state.padding),o.info(C)}Ws++}(n,u.edge(t),u.edge(t).relation))})),x=C.getBBox();var B={id:r||"root",label:r||"root",width:0,height:0};return B.width=x.width+2*Ks.padding,B.height=x.height+2*Ks.padding,o.debug("Doc rendered",B,u),B}(r.db.getRootDoc(),A,void 0,!1,s,c,r);var u=Ks.padding,h=A.node().getBBox(),f=h.width+2*u,d=h.height+2*u;pn(A,0,1.75*f,Ks.useMaxWidth),A.attr("viewBox","".concat(h.x-Ks.padding," ").concat(h.y-Ks.padding," ")+f+" "+d),bn(r.db,A,e)}};var Xs={},Js={},Zs=function(t,e,n,r){if("root"!==n.id){var i="rect";!0===n.start&&(i="start"),!1===n.start&&(i="end"),"default"!==n.type&&(i=n.type),Js[n.id]||(Js[n.id]={id:n.id,shape:i,description:ie.sanitizeText(n.id,jt()),classes:"statediagram-state"}),n.description&&(Array.isArray(Js[n.id].description)?(Js[n.id].shape="rectWithTitle",Js[n.id].description.push(n.description)):Js[n.id].description.length>0?(Js[n.id].shape="rectWithTitle",Js[n.id].description===n.id?Js[n.id].description=[n.description]:Js[n.id].description=[Js[n.id].description,n.description]):(Js[n.id].shape="rect",Js[n.id].description=n.description),Js[n.id].description=ie.sanitizeTextOrArray(Js[n.id].description,jt())),1===Js[n.id].description.length&&"rectWithTitle"===Js[n.id].shape&&(Js[n.id].shape="rect"),!Js[n.id].type&&n.doc&&(o.info("Setting cluster for ",n.id,nc(n)),Js[n.id].type="group",Js[n.id].dir=nc(n),Js[n.id].shape="divider"===n.type?"divider":"roundedWithTitle",Js[n.id].classes=Js[n.id].classes+" "+(r?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var a={labelStyle:"",shape:Js[n.id].shape,labelText:Js[n.id].description,classes:Js[n.id].classes,style:"",id:n.id,dir:Js[n.id].dir,domId:"state-"+n.id+"-"+tc,type:Js[n.id].type,padding:15};if(n.note){var s={labelStyle:"",shape:"note",labelText:n.note.text,classes:"statediagram-note",style:"",id:n.id+"----note-"+tc,domId:"state-"+n.id+"----note-"+tc,type:Js[n.id].type,padding:15},c={labelStyle:"",shape:"noteGroup",labelText:n.note.text,classes:Js[n.id].classes,style:"",id:n.id+"----parent",domId:"state-"+n.id+"----parent-"+tc,type:"group",padding:0};tc++,t.setNode(n.id+"----parent",c),t.setNode(s.id,s),t.setNode(n.id,a),t.setParent(n.id,n.id+"----parent"),t.setParent(s.id,n.id+"----parent");var l=n.id,A=s.id;"left of"===n.note.position&&(l=s.id,A=n.id),t.setEdge(l,A,{arrowhead:"none",arrowType:"",style:"fill:none",labelStyle:"",classes:"transition note-edge",arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal"})}else t.setNode(n.id,a)}e&&"root"!==e.id&&(o.trace("Setting node ",n.id," to be child of its parent ",e.id),t.setParent(n.id,e.id)),n.doc&&(o.trace("Adding nodes children "),ec(t,n,n.doc,!r))},tc=0,ec=function(t,e,n,r){o.trace("items",n),n.forEach((function(n){if("state"===n.stmt||"default"===n.stmt)Zs(t,e,n,r);else if("relation"===n.stmt){Zs(t,e,n.state1,r),Zs(t,e,n.state2,r);var i={id:"edge"+tc,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:"fill:none",labelStyle:"",label:ie.sanitizeText(n.description,jt()),arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},a=n.state1.id,o=n.state2.id;t.setEdge(a,o,i,tc),tc++}}))},nc=function(t,e){var n=e||"TB";if(t.doc)for(var r=0;r<t.doc.length;r++){var i=t.doc[r];"dir"===i.stmt&&(n=i.value)}return n};const rc={setConf:function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)Xs[e[n]]=t[e[n]]},getClasses:function(t,e){return o.trace("Extracting classes"),e.sb.clear(),e.parser.parse(t),e.sb.getClasses()},draw:function(t,e,n,r){o.info("Drawing state diagram (v2)",e),Js={};var i=r.db.getDirection();void 0===i&&(i="LR");var a=jt().state,s=a.nodeSpacing||50,c=a.rankSpacing||50,A=jt().securityLevel;o.info(r.db.getRootDocV2()),r.db.extract(r.db.getRootDocV2()),o.info(r.db.getRootDocV2());var u,h=new(ar().Graph)({multigraph:!0,compound:!0}).setGraph({rankdir:nc(r.db.getRootDocV2()),nodesep:s,ranksep:c,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));Zs(h,void 0,r.db.getRootDocV2(),!0),"sandbox"===A&&(u=(0,l.select)("#i"+e));var f="sandbox"===A?(0,l.select)(u.nodes()[0].contentDocument.body):(0,l.select)("body"),d=("sandbox"===A?u.nodes()[0].contentDocument:document,f.select('[id="'.concat(e,'"]'))),p=f.select("#"+e+" g");Zr(p,h,["barb"],"statediagram",e);var g=d.node().getBBox(),m=g.width+16,y=g.height+16;d.attr("class","statediagram");var v=d.node().getBBox();pn(d,0,m,a.useMaxWidth);var b="".concat(v.x-8," ").concat(v.y-8," ").concat(m," ").concat(y);o.debug("viewBox ".concat(b)),d.attr("viewBox",b);for(var _=document.querySelectorAll('[id="'+e+'"] .edgeLabel .label'),w=0;w<_.length;w++){var E=_[w],C=E.getBBox(),x=document.createElementNS("http://www.w3.org/2000/svg","rect");x.setAttribute("rx",0),x.setAttribute("ry",0),x.setAttribute("width",C.width),x.setAttribute("height",C.height),E.insertBefore(x,E.firstChild)}bn(r.db,d,e)}};function ic(t){return function(t){if(Array.isArray(t))return ac(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return ac(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ac(t,e):void 0}}(t)||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 ac(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var oc="",sc=[],cc=[],lc=[],Ac=function(){for(var t=!0,e=0;e<lc.length;e++)lc[e].processed,t=t&&lc[e].processed;return t};const uc={parseDirective:function(t,e,n){yl.parseDirective(this,t,e,n)},getConfig:function(){return jt().journey},clear:function(){sc.length=0,cc.length=0,oc="",lc.length=0,le()},setDiagramTitle:de,getDiagramTitle:pe,setAccTitle:Ae,getAccTitle:ue,setAccDescription:he,getAccDescription:fe,addSection:function(t){oc=t,sc.push(t)},getSections:function(){return sc},getTasks:function(){for(var t=Ac(),e=0;!t&&e<100;)t=Ac(),e++;return cc.push.apply(cc,lc),cc},addTask:function(t,e){var n=e.substr(1).split(":"),r=0,i=[];1===n.length?(r=Number(n[0]),i=[]):(r=Number(n[0]),i=n[1].split(","));var a=i.map((function(t){return t.trim()})),o={section:oc,type:oc,people:a,task:t,score:r};lc.push(o)},addTaskOrg:function(t){var e={section:oc,type:oc,description:t,task:t,classes:[]};cc.push(e)},getActors:function(){return t=[],cc.forEach((function(e){e.people&&t.push.apply(t,ic(e.people))})),ic(new Set(t)).sort();var t}};var hc=function(t,e){var n=t.append("rect");return n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),void 0!==e.class&&n.attr("class",e.class),n},fc=function(t,e){var n=t.append("circle");return n.attr("cx",e.cx),n.attr("cy",e.cy),n.attr("class","actor-"+e.pos),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("r",e.r),void 0!==n.class&&n.attr("class",n.class),void 0!==e.title&&n.append("title").text(e.title),n},dc=-1,pc=function(){function t(t,e,n,i,a,o,s,c){r(e.append("text").attr("x",n+a/2).attr("y",i+o/2+5).style("font-color",c).style("text-anchor","middle").text(t),s)}function e(t,e,n,i,a,o,s,c,l){for(var A=c.taskFontSize,u=c.taskFontFamily,h=t.split(/<br\s*\/?>/gi),f=0;f<h.length;f++){var d=f*A-A*(h.length-1)/2,p=e.append("text").attr("x",n+a/2).attr("y",i).attr("fill",l).style("text-anchor","middle").style("font-size",A).style("font-family",u);p.append("tspan").attr("x",n+a/2).attr("dy",d).text(h[f]),p.attr("y",i+o/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(p,s)}}function n(t,n,i,a,o,s,c,l){var A=n.append("switch"),u=A.append("foreignObject").attr("x",i).attr("y",a).attr("width",o).attr("height",s).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");u.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,A,i,a,o,s,c,l),r(u,c)}function r(t,e){for(var n in e)n in e&&t.attr(n,e[n])}return function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?t:e}}();const gc=fc,mc=function(t,e,n){var r=t.append("g"),i={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};i.x=e.x,i.y=e.y,i.fill=e.fill,i.width=n.width,i.height=n.height,i.class="journey-section section-type-"+e.num,i.rx=3,i.ry=3,hc(r,i),pc(n)(e.text,r,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+e.num},n,e.colour)},yc=function(t,e,n){var r,i,a,o=e.x+n.width/2,s=t.append("g");dc++,s.append("line").attr("id","task"+dc).attr("x1",o).attr("y1",e.y).attr("x2",o).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),r=s,i={cx:o,cy:300+30*(5-e.score),score:e.score},r.append("circle").attr("cx",i.cx).attr("cy",i.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),(a=r.append("g")).append("circle").attr("cx",i.cx-5).attr("cy",i.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),a.append("circle").attr("cx",i.cx+5).attr("cy",i.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.score>3?function(t){var e=(0,l.arc)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+i.cx+","+(i.cy+2)+")")}(a):i.score<3?function(t){var e=(0,l.arc)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+i.cx+","+(i.cy+7)+")")}(a):function(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",i.cx-5).attr("y1",i.cy+7).attr("x2",i.cx+5).attr("y2",i.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(a);var c={x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0};c.x=e.x,c.y=e.y,c.fill=e.fill,c.width=n.width,c.height=n.height,c.class="task task-type-"+e.num,c.rx=3,c.ry=3,hc(s,c);var A=e.x+14;e.people.forEach((function(t){var n=e.actors[t].color,r={cx:A,cy:e.y,r:7,fill:n,stroke:"#000",title:t,pos:e.actors[t].position};fc(s,r),A+=10})),pc(n)(e.task,s,c.x,c.y,c.width,c.height,{class:"task"},n,e.colour)};var vc={},bc=jt().journey,_c=jt().journey.leftMargin,wc={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,n,r){void 0===t[e]?t[e]=n:t[e]=r(n,t[e])},updateBounds:function(t,e,n,r){var i=jt().journey,a=this,o=0;this.sequenceItems.forEach((function(s){o++;var c=a.sequenceItems.length-o+1;a.updateVal(s,"starty",e-c*i.boxMargin,Math.min),a.updateVal(s,"stopy",r+c*i.boxMargin,Math.max),a.updateVal(wc.data,"startx",t-c*i.boxMargin,Math.min),a.updateVal(wc.data,"stopx",n+c*i.boxMargin,Math.max),a.updateVal(s,"startx",t-c*i.boxMargin,Math.min),a.updateVal(s,"stopx",n+c*i.boxMargin,Math.max),a.updateVal(wc.data,"starty",e-c*i.boxMargin,Math.min),a.updateVal(wc.data,"stopy",r+c*i.boxMargin,Math.max)}))},insert:function(t,e,n,r){var i=Math.min(t,n),a=Math.max(t,n),o=Math.min(e,r),s=Math.max(e,r);this.updateVal(wc.data,"startx",i,Math.min),this.updateVal(wc.data,"starty",o,Math.min),this.updateVal(wc.data,"stopx",a,Math.max),this.updateVal(wc.data,"stopy",s,Math.max),this.updateBounds(i,o,a,s)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},Ec=bc.sectionFills,Cc=bc.sectionColours;const xc={setConf:function(t){Object.keys(t).forEach((function(e){bc[e]=t[e]}))},draw:function(t,e,n,r){var i=jt().journey;r.db.clear(),r.parser.parse(t+"\n");var a,o=jt().securityLevel;"sandbox"===o&&(a=(0,l.select)("#i"+e));var s="sandbox"===o?(0,l.select)(a.nodes()[0].contentDocument.body):(0,l.select)("body");wc.init();var c=s.select("#"+e);c.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z");var A=r.db.getTasks(),u=r.db.getDiagramTitle(),h=r.db.getActors();for(var f in vc)delete vc[f];var d=0;h.forEach((function(t){vc[t]={color:i.actorColours[d%i.actorColours.length],position:d},d++})),function(t){var e=jt().journey,n=60;Object.keys(vc).forEach((function(r){var i=vc[r].color,a={cx:20,cy:n,r:7,fill:i,stroke:"#000",pos:vc[r].position};gc(t,a);var o={x:40,y:n+7,fill:"#666",text:r,textMargin:5|e.boxTextMargin};(function(t,e){var n=e.text.replace(/<br\s*\/?>/gi," "),r=t.append("text");r.attr("x",e.x),r.attr("y",e.y),r.attr("class","legend"),r.style("text-anchor",e.anchor),void 0!==e.class&&r.attr("class",e.class);var i=r.append("tspan");i.attr("x",e.x+2*e.textMargin),i.text(n)})(t,o),n+=20}))}(c),wc.insert(0,0,_c,50*Object.keys(vc).length),function(t,e,n){for(var r=jt().journey,i="",a=0+(2*r.height+r.diagramMarginY),o=0,s="#CCC",c="black",l=0,A=0;A<e.length;A++){var u=e[A];if(i!==u.section){s=Ec[o%Ec.length],l=o%Ec.length,c=Cc[o%Cc.length];var h={x:A*r.taskMargin+A*r.width+_c,y:50,text:u.section,fill:s,num:l,colour:c};mc(t,h,r),i=u.section,o++}var f=u.people.reduce((function(t,e){return vc[e]&&(t[e]=vc[e]),t}),{});u.x=A*r.taskMargin+A*r.width+_c,u.y=a,u.width=r.diagramMarginX,u.height=r.diagramMarginY,u.colour=c,u.fill=s,u.num=l,u.actors=f,yc(t,u,r),wc.insert(u.x,u.y,u.x+u.width+r.taskMargin,450)}}(c,A);var p=wc.getBounds();u&&c.append("text").text(u).attr("x",_c).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);var g=p.stopy-p.starty+2*i.diagramMarginY,m=_c+p.stopx+2*i.diagramMarginX;pn(c,0,m,i.useMaxWidth),c.append("line").attr("x1",_c).attr("y1",4*i.height).attr("x2",m-_c-4).attr("y2",4*i.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");var y=u?70:0;c.attr("viewBox","".concat(p.startx," -25 ").concat(m," ").concat(g+y)),c.attr("preserveAspectRatio","xMinYMin meet"),c.attr("height",g+y+25),bn(r.db,c,e)}};var Bc=n(9763),Tc=n.n(Bc),kc={c4:{db:Fe,renderer:Hn,parser:Pe(),init:function(t){Hn.setConf(t.c4)}},class:{db:er,renderer:gr,parser:ii(),init:function(t){t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute,er.clear()}},error:{db:{},renderer:gi,parser:{parser:{yy:{}},parse:function(){}},init:function(){}},classDiagram:{db:er,renderer:ni,parser:ii(),init:function(t){t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute,er.clear()}},er:{db:ci,renderer:di,parser:yi()},flowchart:{db:Ki,renderer:ua,parser:ma(),init:function(t){ua.setConf(t.flowchart),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,Ki.clear(),Ki.setGen("gen-1")}},"flowchart-v2":{db:Ki,renderer:pa,parser:ma(),init:function(t){pa.setConf(t.flowchart),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,Ki.clear(),Ki.setGen("gen-2")}},gantt:{db:Va,renderer:Ja,parser:to(),init:function(t){Ja.setConf(t.gantt)}},info:{db:ro,renderer:io,parser:oo()},pie:{db:uo,renderer:po,parser:co()},requirement:{db:Eo,renderer:Fo,parser:mo()},sequence:{db:Jo,renderer:Ts,parser:Do(),init:function(t){t.sequence.arrowMarkerAbsolute=t.arrowMarkerAbsolute,t.sequenceDiagram&&(Ts.setConf(Object.assign(t.sequence,t.sequenceDiagram)),console.error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.")),Jo.setWrap(t.wrap),Ts.setConf(t.sequence)}},state:{db:js,renderer:qs,parser:Ss(),init:function(t){t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute,js.clear()}},stateDiagram:{db:js,renderer:rc,parser:Ss(),init:function(t){t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute,js.clear()}},journey:{db:uc,renderer:xc,parser:Tc(),init:function(t){xc.setConf(t.journey),uc.clear()}}};function Sc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ic(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Sc(Object(n),!0).forEach((function(e){Lc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Sc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Lc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Fc=jt().gitGraph.mainBranchName,Nc=jt().gitGraph.mainBranchOrder,Oc={},Dc=null,Mc={};Mc[Fc]={name:Fc,order:Nc};var Rc={};Rc[Fc]=Dc;var Uc=Fc,Pc="LR",Hc=0;function Qc(){return sn({length:7})}var Gc={},jc=function(t){if(t=ie.sanitizeText(t,jt()),void 0===Rc[t]){var e=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+t+'")');throw e.hash={text:"checkout "+t,token:"checkout "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+t+'"']},e}var n=Rc[Uc=t];Dc=Oc[n]};function $c(t,e,n){var r=t.indexOf(e);-1===r?t.push(n):t.splice(r,1,n)}var Kc=function(){var t=Object.keys(Oc).map((function(t){return Oc[t]}));return t.forEach((function(t){o.debug(t.id)})),t.sort((function(t,e){return t.seq-e.seq})),t},Yc={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4};const zc={parseDirective:function(t,e,n){yl.parseDirective(this,t,e,n)},getConfig:function(){return jt().gitGraph},setDirection:function(t){Pc=t},setOptions:function(t){o.debug("options str",t),t=(t=t&&t.trim())||"{}";try{Gc=JSON.parse(t)}catch(t){o.error("error while parsing gitGraph options",t.message)}},getOptions:function(){return Gc},commit:function(t,e,n,r){o.debug("Entering commit:",t,e,n,r),e=ie.sanitizeText(e,jt()),t=ie.sanitizeText(t,jt()),r=ie.sanitizeText(r,jt());var i={id:e||Hc+"-"+Qc(),message:t,seq:Hc++,type:n||Yc.NORMAL,tag:r||"",parents:null==Dc?[]:[Dc.id],branch:Uc};Dc=i,Oc[i.id]=i,Rc[Uc]=i.id,o.debug("in pushCommit "+i.id)},branch:function(t,e){if(t=ie.sanitizeText(t,jt()),void 0!==Rc[t]){var n=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+t+'")');throw n.hash={text:"branch "+t,token:"branch "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+t+'"']},n}Rc[t]=null!=Dc?Dc.id:null,Mc[t]={name:t,order:e?parseInt(e,10):null},jc(t),o.debug("in createBranch")},merge:function(t,e,n,r){t=ie.sanitizeText(t,jt()),e=ie.sanitizeText(e,jt());var i=Oc[Rc[Uc]],a=Oc[Rc[t]];if(Uc===t){var s=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw s.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},s}if(void 0===i||!i){var c=new Error('Incorrect usage of "merge". Current branch ('+Uc+")has no commits");throw c.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},c}if(void 0===Rc[t]){var l=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist");throw l.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+t]},l}if(void 0===a||!a){var A=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits");throw A.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},A}if(i===a){var u=new Error('Incorrect usage of "merge". Both branches have same head');throw u.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},u}if(e&&void 0!==Oc[e]){var h=new Error('Incorrect usage of "merge". Commit with id:'+e+" already exists, use different custom Id");throw h.hash={text:"merge "+t+e+n+r,token:"merge "+t+e+n+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+t+" "+e+"_UNIQUE "+n+" "+r]},h}var f={id:e||Hc+"-"+Qc(),message:"merged branch "+t+" into "+Uc,seq:Hc++,parents:[null==Dc?null:Dc.id,Rc[t]],branch:Uc,type:Yc.MERGE,customType:n,customId:!!e,tag:r||""};Dc=f,Oc[f.id]=f,Rc[Uc]=f.id,o.debug(Rc),o.debug("in mergeBranch")},cherryPick:function(t,e){if(t=ie.sanitizeText(t,jt()),e=ie.sanitizeText(e,jt()),!t||void 0===Oc[t]){var n=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw n.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},n}var r=Oc[t],i=r.branch;if(r.type===Yc.MERGE){var a=new Error('Incorrect usage of "cherryPick". Source commit should not be a merge commit');throw a.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},a}if(!e||void 0===Oc[e]){if(i===Uc){var s=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw s.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},s}var c=Oc[Rc[Uc]];if(void 0===c||!c){var l=new Error('Incorrect usage of "cherry-pick". Current branch ('+Uc+")has no commits");throw l.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},l}var A={id:Hc+"-"+Qc(),message:"cherry-picked "+r+" into "+Uc,seq:Hc++,parents:[null==Dc?null:Dc.id,r.id],branch:Uc,type:Yc.CHERRY_PICK,tag:"cherry-pick:"+r.id};Dc=A,Oc[A.id]=A,Rc[Uc]=A.id,o.debug(Rc),o.debug("in cheeryPick")}},checkout:jc,prettyPrint:function(){o.debug(Oc),function t(e){var n=e.reduce((function(t,e){return t.seq>e.seq?t:e}),e[0]),r="";e.forEach((function(t){r+=t===n?"\t*":"\t|"}));var i,a,s,c=[r,n.id,n.seq];for(var l in Rc)Rc[l]===n.id&&c.push(l);if(o.debug(c.join(" ")),n.parents&&2==n.parents.length){var A=Oc[n.parents[0]];$c(e,n,A),e.push(Oc[n.parents[1]])}else{if(0==n.parents.length)return;var u=Oc[n.parents];$c(e,n,u)}i=e,a=function(t){return t.id},s=Object.create(null),t(e=i.reduce((function(t,e){var n=a(e);return s[n]||(s[n]=!0,t.push(e)),t}),[]))}([Kc()[0]])},clear:function(){Oc={},Dc=null;var t=jt().gitGraph.mainBranchName,e=jt().gitGraph.mainBranchOrder;(Rc={})[t]=null,(Mc={})[t]={name:t,order:e},Uc=t,Hc=0,le()},getBranchesAsObjArray:function(){return Object.values(Mc).map((function(t,e){return null!==t.order?t:Ic(Ic({},t),{},{order:parseFloat("0.".concat(e),10)})})).sort((function(t,e){return t.order-e.order})).map((function(t){return{name:t.name}}))},getBranches:function(){return Rc},getCommits:function(){return Oc},getCommitsArray:Kc,getCurrentBranch:function(){return Uc},getDirection:function(){return Pc},getHead:function(){return Dc},setAccTitle:Ae,getAccTitle:ue,getAccDescription:fe,setAccDescription:he,commitType:Yc};var Wc={},Vc={},qc={},Xc=[],Jc=0,Zc=function(t,e,n){var r=jt().gitGraph,i=t.append("g").attr("class","commit-bullets"),a=t.append("g").attr("class","commit-labels"),o=0;Object.keys(e).sort((function(t,n){return e[t].seq-e[n].seq})).forEach((function(t,s){var c=e[t],l=Vc[c.branch].pos,A=o+10;if(n){var u,h=void 0!==c.customType&&""!==c.customType?c.customType:c.type;switch(h){case 0:default:u="commit-normal";break;case 1:u="commit-reverse";break;case 2:u="commit-highlight";break;case 3:u="commit-merge";break;case 4:u="commit-cherry-pick"}if(2===h){var f=i.append("rect");f.attr("x",A-10),f.attr("y",l-10),f.attr("height",20),f.attr("width",20),f.attr("class","commit ".concat(c.id," commit-highlight").concat(Vc[c.branch].index%8," ").concat(u,"-outer")),i.append("rect").attr("x",A-6).attr("y",l-6).attr("height",12).attr("width",12).attr("class","commit ".concat(c.id," commit").concat(Vc[c.branch].index%8," ").concat(u,"-inner"))}else if(4===h)i.append("circle").attr("cx",A).attr("cy",l).attr("r",10).attr("class","commit ".concat(c.id," ").concat(u)),i.append("circle").attr("cx",A-3).attr("cy",l+2).attr("r",2.75).attr("fill","#fff").attr("class","commit ".concat(c.id," ").concat(u)),i.append("circle").attr("cx",A+3).attr("cy",l+2).attr("r",2.75).attr("fill","#fff").attr("class","commit ".concat(c.id," ").concat(u)),i.append("line").attr("x1",A+3).attr("y1",l+1).attr("x2",A).attr("y2",l-5).attr("stroke","#fff").attr("class","commit ".concat(c.id," ").concat(u)),i.append("line").attr("x1",A-3).attr("y1",l+1).attr("x2",A).attr("y2",l-5).attr("stroke","#fff").attr("class","commit ".concat(c.id," ").concat(u));else{var d=i.append("circle");if(d.attr("cx",A),d.attr("cy",l),d.attr("r",3===c.type?9:10),d.attr("class","commit ".concat(c.id," commit").concat(Vc[c.branch].index%8)),3===h){var p=i.append("circle");p.attr("cx",A),p.attr("cy",l),p.attr("r",6),p.attr("class","commit ".concat(u," ").concat(c.id," commit").concat(Vc[c.branch].index%8))}1===h&&i.append("path").attr("d","M ".concat(A-5,",").concat(l-5,"L").concat(A+5,",").concat(l+5,"M").concat(A-5,",").concat(l+5,"L").concat(A+5,",").concat(l-5)).attr("class","commit ".concat(u," ").concat(c.id," commit").concat(Vc[c.branch].index%8))}}if(qc[c.id]={x:o+10,y:l},n){if(4!==c.type&&(c.customId&&3===c.type||3!==c.type)&&r.showCommitLabel){var g=a.append("g"),m=g.insert("rect").attr("class","commit-label-bkg"),y=g.append("text").attr("x",o).attr("y",l+25).attr("class","commit-label").text(c.id),v=y.node().getBBox();if(m.attr("x",o+10-v.width/2-2).attr("y",l+13.5).attr("width",v.width+4).attr("height",v.height+4),y.attr("x",o+10-v.width/2),r.rotateCommitLabel){var b=-7.5-(v.width+10)/25*9.5,_=10+v.width/25*8.5;g.attr("transform","translate("+b+", "+_+") rotate(-45, "+o+", "+l+")")}}if(c.tag){var w=a.insert("polygon"),E=a.append("circle"),C=a.append("text").attr("y",l-16).attr("class","tag-label").text(c.tag),x=C.node().getBBox();C.attr("x",o+10-x.width/2);var B=x.height/2,T=l-19.2;w.attr("class","tag-label-bkg").attr("points","\n ".concat(o-x.width/2-2,",").concat(T+2,"\n ").concat(o-x.width/2-2,",").concat(T-2,"\n ").concat(o+10-x.width/2-4,",").concat(T-B-2,"\n ").concat(o+10+x.width/2+4,",").concat(T-B-2,"\n ").concat(o+10+x.width/2+4,",").concat(T+B+2,"\n ").concat(o+10-x.width/2-4,",").concat(T+B+2)),E.attr("cx",o-x.width/2+2).attr("cy",T).attr("r",1.5).attr("class","tag-hole")}}(o+=50)>Jc&&(Jc=o)}))},tl=function t(e,n,r){var i=r||0,a=e+Math.abs(e-n)/2;if(i>5)return a;for(var o=!0,s=0;s<Xc.length;s++)Math.abs(Xc[s]-a)<10&&(o=!1);return o?(Xc.push(a),a):t(e,n-Math.abs(e-n)/5,i+1)};const el={draw:function(t,e,n,r){Vc={},qc={},Wc={},Jc=0,Xc=[];var i=jt(),a=jt().gitGraph;o.debug("in gitgraph renderer",t+"\n","id:",e,n),Wc=r.db.getCommits();var s=r.db.getBranchesAsObjArray(),c=0;s.forEach((function(t,e){Vc[t.name]={pos:c,index:e},c+=50+(a.rotateCommitLabel?40:0)}));var A=(0,l.select)('[id="'.concat(e,'"]'));bn(r.db,A,e),Zc(A,Wc,!1),a.showBranches&&function(t,e){var n=jt().gitGraph,r=t.append("g");e.forEach((function(t,e){var i=e%8,a=Vc[t.name].pos,o=r.append("line");o.attr("x1",0),o.attr("y1",a),o.attr("x2",Jc),o.attr("y2",a),o.attr("class","branch branch"+i),Xc.push(a);var s=function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","text"),n=[];n="string"==typeof t?t.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(t)?t:[];for(var r=0;r<n.length;r++){var i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),i.setAttribute("class","row"),i.textContent=n[r].trim(),e.appendChild(i)}return e}(t.name),c=r.insert("rect"),l=r.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+i);l.node().appendChild(s);var A=s.getBBox();c.attr("class","branchLabelBkg label"+i).attr("rx",4).attr("ry",4).attr("x",-A.width-4-(!0===n.rotateCommitLabel?30:0)).attr("y",-A.height/2+8).attr("width",A.width+18).attr("height",A.height+4),l.attr("transform","translate("+(-A.width-14-(!0===n.rotateCommitLabel?30:0))+", "+(a-A.height/2-1)+")"),c.attr("transform","translate(-19, "+(a-A.height/2)+")")}))}(A,s),function(t,e){var n=t.append("g").attr("class","commit-arrows");Object.keys(e).forEach((function(t,r){var i=e[t];i.parents&&i.parents.length>0&&i.parents.forEach((function(t){!function(t,e,n,r){var i=jt(),a=qc[e.id],o=qc[n.id],s=function(t,e,n){return qc[e.id],qc[t.id],Object.keys(n).filter((function(r){return n[r].branch===e.branch&&n[r].seq>t.seq&&n[r].seq<e.seq})).length>0}(e,n,r);i.arrowMarkerAbsolute&&(window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)");var c,l="",A="",u=0,h=0,f=Vc[n.branch].index;if(s){l="A 10 10, 0, 0, 0,",A="A 10 10, 0, 0, 1,",u=10,h=10,f=Vc[n.branch].index;var d=a.y<o.y?tl(a.y,o.y):tl(o.y,a.y);c=a.y<o.y?"M ".concat(a.x," ").concat(a.y," L ").concat(a.x," ").concat(d-u," ").concat(l," ").concat(a.x+h," ").concat(d," L ").concat(o.x-u," ").concat(d," ").concat(A," ").concat(o.x," ").concat(d+h," L ").concat(o.x," ").concat(o.y):"M ".concat(a.x," ").concat(a.y," L ").concat(a.x," ").concat(d+u," ").concat(A," ").concat(a.x+h," ").concat(d," L ").concat(o.x-u," ").concat(d," ").concat(l," ").concat(o.x," ").concat(d-h," L ").concat(o.x," ").concat(o.y)}else a.y<o.y&&(l="A 20 20, 0, 0, 0,",u=20,h=20,f=Vc[n.branch].index,c="M ".concat(a.x," ").concat(a.y," L ").concat(a.x," ").concat(o.y-u," ").concat(l," ").concat(a.x+h," ").concat(o.y," L ").concat(o.x," ").concat(o.y)),a.y>o.y&&(l="A 20 20, 0, 0, 0,",u=20,h=20,f=Vc[e.branch].index,c="M ".concat(a.x," ").concat(a.y," L ").concat(o.x-u," ").concat(a.y," ").concat(l," ").concat(o.x," ").concat(a.y-h," L ").concat(o.x," ").concat(o.y)),a.y===o.y&&(f=Vc[e.branch].index,c="M ".concat(a.x," ").concat(a.y," L ").concat(a.x," ").concat(o.y-u," ").concat(l," ").concat(a.x+h," ").concat(o.y," L ").concat(o.x," ").concat(o.y));t.append("path").attr("d",c).attr("class","arrow arrow"+f%8)}(n,e[t],i,e)}))}))}(A,Wc),Zc(A,Wc,!0);var u=a.diagramPadding,h=A.node().getBBox(),f=h.width+2*u,d=h.height+2*u;pn(A,0,f,i.useMaxWidth);var p="".concat(h.x-u-(a.showBranches&&!0===a.rotateCommitLabel?30:0)," ").concat(h.y-u," ").concat(f," ").concat(d);A.attr("viewBox",p)}};var nl=n(2553),rl=n.n(nl);const il=function(t){return t.match(/^\s*gitGraph/)?"gitGraph":null},al=function(){var t,e,n,r,i;t="gitGraph",e=rl(),n=zc,r=el,i=il,kc[t]={parser:e,db:n,renderer:r,init:void 0},function(t,e){Ge.gitGraph={detector:e}}(0,i)};function ol(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const sl=function(){function t(e){var n,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),ol(this,"type","graph"),ol(this,"parser",void 0),ol(this,"renderer",void 0),ol(this,"db",void 0);var i=kc,a=jt();this.txt=e,this.type=je(e,a),o.debug("Type "+this.type),this.db=i[this.type].db,null===(n=(r=this.db).clear)||void 0===n||n.call(r),this.renderer=i[this.type].renderer,this.parser=i[this.type].parser,this.parser.parser.yy=this.db,"function"==typeof i[this.type].init&&(i[this.type].init(a),o.debug("Initialized diagram "+this.type,a)),this.txt=this.txt+"\n",this.parser.parser.yy.graphType=this.type,this.parser.parser.yy.parseError=function(t,e){throw{str:t,hash:e}},this.parser.parse(this.txt)}var e,r;return e=t,(r=[{key:"parse",value:function(t){var e=!1;try{t+="\n",this.db.clear(),this.parser.parse(t)}catch(t){if(e=!0,!n.g.mermaid.parseError)throw t;null!=t.str?n.g.mermaid.parseError(t.str,t.hash):n.g.mermaid.parseError(t)}return!e}},{key:"getParser",value:function(){return this.parser}},{key:"getType",value:function(){return this.type}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),cl=function(t){return"g.classGroup text {\n fill: ".concat(t.nodeBorder,";\n fill: ").concat(t.classText,";\n stroke: none;\n font-family: ").concat(t.fontFamily,";\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n.nodeLabel, .edgeLabel {\n color: ").concat(t.classText,";\n}\n.edgeLabel .label rect {\n fill: ").concat(t.mainBkg,";\n}\n.label text {\n fill: ").concat(t.classText,";\n}\n.edgeLabel .label span {\n background: ").concat(t.mainBkg,";\n}\n\n.classTitle {\n font-weight: bolder;\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ").concat(t.nodeBorder,";\n stroke: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ").concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n}\n\ng.classGroup line {\n stroke: ").concat(t.nodeBorder,";\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ").concat(t.mainBkg,";\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ").concat(t.nodeBorder,";\n font-size: 10px;\n}\n\n.relation {\n stroke: ").concat(t.lineColor,";\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n#compositionStart, .composition {\n fill: ").concat(t.lineColor," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ").concat(t.lineColor," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ").concat(t.lineColor," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ").concat(t.lineColor," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: ").concat(t.lineColor," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: ").concat(t.lineColor," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: ").concat(t.mainBkg," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: ").concat(t.mainBkg," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#lollipopStart, .lollipop {\n fill: ").concat(t.mainBkg," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n#lollipopEnd, .lollipop {\n fill: ").concat(t.mainBkg," !important;\n stroke: ").concat(t.lineColor," !important;\n stroke-width: 1;\n}\n\n.edgeTerminals {\n font-size: 11px;\n}\n\n")},ll=function(t){return".label {\n font-family: ".concat(t.fontFamily,";\n color: ").concat(t.nodeTextColor||t.textColor,";\n }\n .cluster-label text {\n fill: ").concat(t.titleColor,";\n }\n .cluster-label span {\n color: ").concat(t.titleColor,";\n }\n\n .label text,span {\n fill: ").concat(t.nodeTextColor||t.textColor,";\n color: ").concat(t.nodeTextColor||t.textColor,";\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ").concat(t.arrowheadColor,";\n }\n\n .edgePath .path {\n stroke: ").concat(t.lineColor,";\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ").concat(t.lineColor,";\n fill: none;\n }\n\n .edgeLabel {\n background-color: ").concat(t.edgeLabelBackground,";\n rect {\n opacity: 0.5;\n background-color: ").concat(t.edgeLabelBackground,";\n fill: ").concat(t.edgeLabelBackground,";\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ").concat(t.clusterBkg,";\n stroke: ").concat(t.clusterBorder,";\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ").concat(t.titleColor,";\n }\n\n .cluster span {\n color: ").concat(t.titleColor,";\n }\n /* .cluster div {\n color: ").concat(t.titleColor,";\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ").concat(t.fontFamily,";\n font-size: 12px;\n background: ").concat(t.tertiaryColor,";\n border: 1px solid ").concat(t.border2,";\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n")},Al=function(t){return"\ndefs #statediagram-barbEnd {\n fill: ".concat(t.transitionColor,";\n stroke: ").concat(t.transitionColor,";\n }\ng.stateGroup text {\n fill: ").concat(t.nodeBorder,";\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ").concat(t.textColor,";\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ").concat(t.stateLabelColor,";\n}\n\ng.stateGroup rect {\n fill: ").concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n}\n\ng.stateGroup line {\n stroke: ").concat(t.lineColor,";\n stroke-width: 1;\n}\n\n.transition {\n stroke: ").concat(t.transitionColor,";\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ").concat(t.background,";\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ").concat(t.noteBorderColor,";\n fill: ").concat(t.noteBkgColor,";\n\n text {\n fill: ").concat(t.noteTextColor,";\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ").concat(t.mainBkg,";\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ").concat(t.labelBackgroundColor,";\n opacity: 0.5;\n}\n.edgeLabel .label text {\n fill: ").concat(t.transitionLabelColor||t.tertiaryTextColor,";\n}\n.label div .edgeLabel {\n color: ").concat(t.transitionLabelColor||t.tertiaryTextColor,";\n}\n\n.stateLabel text {\n fill: ").concat(t.stateLabelColor,";\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ").concat(t.specialStateColor,";\n stroke: ").concat(t.specialStateColor,";\n}\n\n.node .fork-join {\n fill: ").concat(t.specialStateColor,";\n stroke: ").concat(t.specialStateColor,";\n}\n\n.node circle.state-end {\n fill: ").concat(t.innerEndBackground,";\n stroke: ").concat(t.background,";\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ").concat(t.compositeBackground||t.background,";\n // stroke: ").concat(t.background,";\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ").concat(t.stateBkg||t.mainBkg,";\n stroke: ").concat(t.stateBorder||t.nodeBorder,";\n stroke-width: 1px;\n}\n.node polygon {\n fill: ").concat(t.mainBkg,";\n stroke: ").concat(t.stateBorder||t.nodeBorder,";;\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ").concat(t.lineColor,";\n}\n\n.statediagram-cluster rect {\n fill: ").concat(t.compositeTitleBackground,";\n stroke: ").concat(t.stateBorder||t.nodeBorder,";\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ").concat(t.stateLabelColor,";\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ").concat(t.stateBorder||t.nodeBorder,";\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ").concat(t.compositeBackground||t.background,";\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: ").concat(t.altBackground?t.altBackground:"#efefef",";\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ").concat(t.altBackground?t.altBackground:"#efefef",";\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ").concat(t.noteBkgColor,";\n stroke: ").concat(t.noteBorderColor,";\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ").concat(t.noteBkgColor,";\n stroke: ").concat(t.noteBorderColor,";\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ").concat(t.noteTextColor,";\n}\n\n.statediagram-note .nodeLabel {\n color: ").concat(t.noteTextColor,";\n}\n.statediagram .edgeLabel {\n color: red; // ").concat(t.noteTextColor,";\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ").concat(t.lineColor,";\n stroke: ").concat(t.lineColor,";\n stroke-width: 1;\n}\n")};var ul={flowchart:ll,"flowchart-v2":ll,sequence:function(t){return".actor {\n stroke: ".concat(t.actorBorder,";\n fill: ").concat(t.actorBkg,";\n }\n\n text.actor > tspan {\n fill: ").concat(t.actorTextColor,";\n stroke: none;\n }\n\n .actor-line {\n stroke: ").concat(t.actorLineColor,";\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ").concat(t.signalColor,";\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ").concat(t.signalColor,";\n }\n\n #arrowhead path {\n fill: ").concat(t.signalColor,";\n stroke: ").concat(t.signalColor,";\n }\n\n .sequenceNumber {\n fill: ").concat(t.sequenceNumberColor,";\n }\n\n #sequencenumber {\n fill: ").concat(t.signalColor,";\n }\n\n #crosshead path {\n fill: ").concat(t.signalColor,";\n stroke: ").concat(t.signalColor,";\n }\n\n .messageText {\n fill: ").concat(t.signalTextColor,";\n stroke: none;\n }\n\n .labelBox {\n stroke: ").concat(t.labelBoxBorderColor,";\n fill: ").concat(t.labelBoxBkgColor,";\n }\n\n .labelText, .labelText > tspan {\n fill: ").concat(t.labelTextColor,";\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ").concat(t.loopTextColor,";\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ").concat(t.labelBoxBorderColor,";\n fill: ").concat(t.labelBoxBorderColor,";\n }\n\n .note {\n //stroke: #decc93;\n stroke: ").concat(t.noteBorderColor,";\n fill: ").concat(t.noteBkgColor,";\n }\n\n .noteText, .noteText > tspan {\n fill: ").concat(t.noteTextColor,";\n stroke: none;\n }\n\n .activation0 {\n fill: ").concat(t.activationBkgColor,";\n stroke: ").concat(t.activationBorderColor,";\n }\n\n .activation1 {\n fill: ").concat(t.activationBkgColor,";\n stroke: ").concat(t.activationBorderColor,";\n }\n\n .activation2 {\n fill: ").concat(t.activationBkgColor,";\n stroke: ").concat(t.activationBorderColor,";\n }\n\n .actorPopupMenu {\n position: absolute;\n }\n\n .actorPopupMenuPanel {\n position: absolute;\n fill: ").concat(t.actorBkg,";\n box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);\n filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));\n}\n .actor-man line {\n stroke: ").concat(t.actorBorder,";\n fill: ").concat(t.actorBkg,";\n }\n .actor-man circle, line {\n stroke: ").concat(t.actorBorder,";\n fill: ").concat(t.actorBkg,";\n stroke-width: 2px;\n }\n")},gantt:function(t){return'\n .mermaid-main-font {\n font-family: "trebuchet ms", verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n .exclude-range {\n fill: '.concat(t.excludeBkgColor,";\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ").concat(t.sectionBkgColor,";\n }\n\n .section2 {\n fill: ").concat(t.sectionBkgColor2,";\n }\n\n .section1,\n .section3 {\n fill: ").concat(t.altSectionBkgColor,";\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ").concat(t.titleColor,";\n }\n\n .sectionTitle1 {\n fill: ").concat(t.titleColor,";\n }\n\n .sectionTitle2 {\n fill: ").concat(t.titleColor,";\n }\n\n .sectionTitle3 {\n fill: ").concat(t.titleColor,";\n }\n\n .sectionTitle {\n text-anchor: start;\n // font-size: ").concat(t.ganttFontSize,";\n // text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ").concat(t.gridColor,";\n opacity: 0.8;\n shape-rendering: crispEdges;\n text {\n font-family: ").concat(t.fontFamily,";\n fill: ").concat(t.textColor,";\n }\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ").concat(t.todayLineColor,";\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n\n // .taskText:not([font-size]) {\n // font-size: ").concat(t.ganttFontSize,";\n // }\n\n .taskTextOutsideRight {\n fill: ").concat(t.taskTextDarkColor,";\n text-anchor: start;\n // font-size: ").concat(t.ganttFontSize,";\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n\n }\n\n .taskTextOutsideLeft {\n fill: ").concat(t.taskTextDarkColor,";\n text-anchor: end;\n // font-size: ").concat(t.ganttFontSize,";\n }\n\n /* Special case clickable */\n .task.clickable {\n cursor: pointer;\n }\n .taskText.clickable {\n cursor: pointer;\n fill: ").concat(t.taskTextClickableColor," !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ").concat(t.taskTextClickableColor," !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ").concat(t.taskTextClickableColor," !important;\n font-weight: bold;\n }\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ").concat(t.taskTextColor,";\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ").concat(t.taskBkgColor,";\n stroke: ").concat(t.taskBorderColor,";\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ").concat(t.taskTextOutsideColor,";\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ").concat(t.taskTextOutsideColor,";\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ").concat(t.activeTaskBkgColor,";\n stroke: ").concat(t.activeTaskBorderColor,";\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ").concat(t.taskTextDarkColor," !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ").concat(t.doneTaskBorderColor,";\n fill: ").concat(t.doneTaskBkgColor,";\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ").concat(t.taskTextDarkColor," !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ").concat(t.critBorderColor,";\n fill: ").concat(t.critBkgColor,";\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ").concat(t.critBorderColor,";\n fill: ").concat(t.activeTaskBkgColor,";\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ").concat(t.critBorderColor,";\n fill: ").concat(t.doneTaskBkgColor,";\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ").concat(t.taskTextDarkColor," !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ").concat(t.taskTextDarkColor," !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ").concat(t.textColor," ;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n")},classDiagram:cl,"classDiagram-v2":cl,class:cl,stateDiagram:Al,state:Al,gitGraph:function(t){return"\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n ".concat([0,1,2,3,4,5,6,7].map((function(e){return"\n .branch-label".concat(e," { fill: ").concat(t["gitBranchLabel"+e],"; }\n .commit").concat(e," { stroke: ").concat(t["git"+e],"; fill: ").concat(t["git"+e],"; }\n .commit-highlight").concat(e," { stroke: ").concat(t["gitInv"+e],"; fill: ").concat(t["gitInv"+e],"; }\n .label").concat(e," { fill: ").concat(t["git"+e],"; }\n .arrow").concat(e," { stroke: ").concat(t["git"+e],"; }\n ")})).join("\n"),"\n\n .branch {\n stroke-width: 1;\n stroke: ").concat(t.lineColor,";\n stroke-dasharray: 2;\n }\n .commit-label { font-size: ").concat(t.commitLabelFontSize,"; fill: ").concat(t.commitLabelColor,";}\n .commit-label-bkg { font-size: ").concat(t.commitLabelFontSize,"; fill: ").concat(t.commitLabelBackground,"; opacity: 0.5; }\n .tag-label { font-size: ").concat(t.tagLabelFontSize,"; fill: ").concat(t.tagLabelColor,";}\n .tag-label-bkg { fill: ").concat(t.tagLabelBackground,"; stroke: ").concat(t.tagLabelBorder,"; }\n .tag-hole { fill: ").concat(t.textColor,"; }\n\n .commit-merge {\n stroke: ").concat(t.primaryColor,";\n fill: ").concat(t.primaryColor,";\n }\n .commit-reverse {\n stroke: ").concat(t.primaryColor,";\n fill: ").concat(t.primaryColor,";\n stroke-width: 3;\n }\n .commit-highlight-outer {\n }\n .commit-highlight-inner {\n stroke: ").concat(t.primaryColor,";\n fill: ").concat(t.primaryColor,";\n }\n\n .arrow { stroke-width: 8; stroke-linecap: round; fill: none}\n }\n")},info:function(){return""},pie:function(t){return"\n .pieCircle{\n stroke: ".concat(t.pieStrokeColor,";\n stroke-width : ").concat(t.pieStrokeWidth,";\n opacity : ").concat(t.pieOpacity,";\n }\n .pieTitleText {\n text-anchor: middle;\n font-size: ").concat(t.pieTitleTextSize,";\n fill: ").concat(t.pieTitleTextColor,";\n font-family: ").concat(t.fontFamily,";\n }\n .slice {\n font-family: ").concat(t.fontFamily,";\n fill: ").concat(t.pieSectionTextColor,";\n font-size:").concat(t.pieSectionTextSize,";\n // fill: white;\n }\n .legend text {\n fill: ").concat(t.pieLegendTextColor,";\n font-family: ").concat(t.fontFamily,";\n font-size: ").concat(t.pieLegendTextSize,";\n }\n")},er:function(t){return"\n .entityBox {\n fill: ".concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n }\n\n .attributeBoxOdd {\n fill: #ffffff;\n stroke: ").concat(t.nodeBorder,";\n }\n\n .attributeBoxEven {\n fill: #f2f2f2;\n stroke: ").concat(t.nodeBorder,";\n }\n\n .relationshipLabelBox {\n fill: ").concat(t.tertiaryColor,";\n opacity: 0.7;\n background-color: ").concat(t.tertiaryColor,";\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ").concat(t.lineColor,";\n }\n")},error:function(){return""},journey:function(t){return".label {\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n color: ".concat(t.textColor,";\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ").concat(t.textColor,"\n }\n\n .legend {\n fill: ").concat(t.textColor,";\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ").concat(t.textColor,"\n }\n\n .face {\n ").concat(t.faceColor?"fill: ".concat(t.faceColor):"fill: #FFF8DC",";\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(t.mainBkg,";\n stroke: ").concat(t.nodeBorder,";\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ").concat(t.arrowheadColor,";\n }\n\n .edgePath .path {\n stroke: ").concat(t.lineColor,";\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ").concat(t.lineColor,";\n fill: none;\n }\n\n .edgeLabel {\n background-color: ").concat(t.edgeLabelBackground,";\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n }\n\n .cluster text {\n fill: ").concat(t.titleColor,";\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: ").concat(t.tertiaryColor,";\n border: 1px solid ").concat(t.border2,";\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType0):"",";\n }\n .task-type-1, .section-type-1 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType1):"",";\n }\n .task-type-2, .section-type-2 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType2):"",";\n }\n .task-type-3, .section-type-3 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType3):"",";\n }\n .task-type-4, .section-type-4 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType4):"",";\n }\n .task-type-5, .section-type-5 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType5):"",";\n }\n .task-type-6, .section-type-6 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType6):"",";\n }\n .task-type-7, .section-type-7 {\n ").concat(t.fillType0?"fill: ".concat(t.fillType7):"",";\n }\n\n .actor-0 {\n ").concat(t.actor0?"fill: ".concat(t.actor0):"",";\n }\n .actor-1 {\n ").concat(t.actor1?"fill: ".concat(t.actor1):"",";\n }\n .actor-2 {\n ").concat(t.actor2?"fill: ".concat(t.actor2):"",";\n }\n .actor-3 {\n ").concat(t.actor3?"fill: ".concat(t.actor3):"",";\n }\n .actor-4 {\n ").concat(t.actor4?"fill: ".concat(t.actor4):"",";\n }\n .actor-5 {\n ").concat(t.actor5?"fill: ".concat(t.actor5):"",";\n }\n\n }\n")},requirement:function(t){return"\n\n marker {\n fill: ".concat(t.relationColor,";\n stroke: ").concat(t.relationColor,";\n }\n\n marker.cross {\n stroke: ").concat(t.lineColor,";\n }\n\n svg {\n font-family: ").concat(t.fontFamily,";\n font-size: ").concat(t.fontSize,";\n }\n\n .reqBox {\n fill: ").concat(t.requirementBackground,";\n fill-opacity: 100%;\n stroke: ").concat(t.requirementBorderColor,";\n stroke-width: ").concat(t.requirementBorderSize,";\n }\n \n .reqTitle, .reqLabel{\n fill: ").concat(t.requirementTextColor,";\n }\n .reqLabelBox {\n fill: ").concat(t.relationLabelBackground,";\n fill-opacity: 100%;\n }\n\n .req-title-line {\n stroke: ").concat(t.requirementBorderColor,";\n stroke-width: ").concat(t.requirementBorderSize,";\n }\n .relationshipLine {\n stroke: ").concat(t.relationColor,";\n stroke-width: 1;\n }\n .relationshipLabel {\n fill: ").concat(t.relationLabelColor,";\n }\n\n")},c4:function(t){return".person {\n stroke: ".concat(t.personBorder,";\n fill: ").concat(t.personBkg,";\n }\n")}};function hl(t){return(hl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var fl=!1,dl=function(t){return t.replace(/fl°°/g,(function(){return"&#"})).replace(/fl°/g,(function(){return"&"})).replace(/¶ß/g,(function(){return";"}))},pl={};function gl(t){ua.setConf(t.flowchart),pa.setConf(t.flowchart),void 0!==t.sequenceDiagram&&Ts.setConf(V(t.sequence,t.sequenceDiagram)),Ts.setConf(t.sequence),Ja.setConf(t.gantt),qs.setConf(t.state),rc.setConf(t.state),xc.setConf(t.journey),gi.setConf(t.class)}var ml=Object.freeze({render:function(t,e,n,r){fl||(al(),fl=!0),Yt();var i=e.replace(/\r\n?/g,"\n"),a=vn.detectInit(i);a&&(mn(a),Kt(a));var s=jt();o.debug(s),e.length>s.maxTextSize&&(i="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");var c,A,u=(0,l.select)("body");if(void 0!==r){if("sandbox"===s.securityLevel){var h=(0,l.select)("body").append("iframe").attr("id","i"+t).attr("style","width: 100%; height: 100%;").attr("sandbox","");(u=(0,l.select)(h.nodes()[0].contentDocument.body)).node().style.margin=0}if(r.innerHTML="","sandbox"===s.securityLevel){var f=(0,l.select)(r).append("iframe").attr("id","i"+t).attr("style","width: 100%; height: 100%;").attr("sandbox","");(u=(0,l.select)(f.nodes()[0].contentDocument.body)).node().style.margin=0}else u=(0,l.select)(r);u.append("div").attr("id","d"+t).attr("style","font-family: "+s.fontFamily).append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").attr("xmlns:xlink","http://www.w3.org/1999/xlink").append("g")}else{var d,p=document.getElementById(t);if(p&&p.remove(),(d="sandbox"!==s.securityLevel?document.querySelector("#d"+t):document.querySelector("#i"+t))&&d.remove(),"sandbox"===s.securityLevel){var g=(0,l.select)("body").append("iframe").attr("id","i"+t).attr("style","width: 100%; height: 100%;").attr("sandbox","");(u=(0,l.select)(g.nodes()[0].contentDocument.body)).node().style.margin=0}else u=(0,l.select)("body");u.append("div").attr("id","d"+t).append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}i=i.replace(/style.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})).replace(/classDef.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})).replace(/#\w+;/g,(function(t){var e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl°°"+e+"¶ß":"fl°"+e+"¶ß"}));try{c=new sl(i)}catch(t){c=new sl("error"),A=t}var m=u.select("#d"+t).node(),y=c.type,v=m.firstChild,b=v.firstChild,_="";if(void 0!==s.themeCSS&&(_+="\n".concat(s.themeCSS)),void 0!==s.fontFamily&&(_+="\n:root { --mermaid-font-family: ".concat(s.fontFamily,"}")),void 0!==s.altFontFamily&&(_+="\n:root { --mermaid-alt-font-family: ".concat(s.altFontFamily,"}")),"flowchart"===y||"flowchart-v2"===y||"graph"===y){var w=ua.getClasses(i,c),x=s.htmlLabels||s.flowchart.htmlLabels;for(var B in w)x?(_+="\n.".concat(B," > * { ").concat(w[B].styles.join(" !important; ")," !important; }"),_+="\n.".concat(B," span { ").concat(w[B].styles.join(" !important; ")," !important; }")):(_+="\n.".concat(B," path { ").concat(w[B].styles.join(" !important; ")," !important; }"),_+="\n.".concat(B," rect { ").concat(w[B].styles.join(" !important; ")," !important; }"),_+="\n.".concat(B," polygon { ").concat(w[B].styles.join(" !important; ")," !important; }"),_+="\n.".concat(B," ellipse { ").concat(w[B].styles.join(" !important; ")," !important; }"),_+="\n.".concat(B," circle { ").concat(w[B].styles.join(" !important; ")," !important; }"),w[B].textStyles&&(_+="\n.".concat(B," tspan { ").concat(w[B].textStyles.join(" !important; ")," !important; }")))}var T=function(t,e){return E(j("".concat(t,"{").concat(e,"}")),C)}("#".concat(t),function(t,e,n){return" {\n font-family: ".concat(n.fontFamily,";\n font-size: ").concat(n.fontSize,";\n fill: ").concat(n.textColor,"\n }\n\n /* Classes common for multiple diagrams */\n\n .error-icon {\n fill: ").concat(n.errorBkgColor,";\n }\n .error-text {\n fill: ").concat(n.errorTextColor,";\n stroke: ").concat(n.errorTextColor,";\n }\n\n .edge-thickness-normal {\n stroke-width: 2px;\n }\n .edge-thickness-thick {\n stroke-width: 3.5px\n }\n .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n .marker {\n fill: ").concat(n.lineColor,";\n stroke: ").concat(n.lineColor,";\n }\n .marker.cross {\n stroke: ").concat(n.lineColor,";\n }\n\n svg {\n font-family: ").concat(n.fontFamily,";\n font-size: ").concat(n.fontSize,";\n }\n\n ").concat(ul[t](n),"\n\n ").concat(e,"\n")}(y,_,s.themeVariables)),k=document.createElement("style");k.innerHTML="#".concat(t," ")+T,v.insertBefore(k,b);try{c.renderer.draw(i,t,z,c)}catch(e){throw gi.draw(t,z),e}u.select('[id="'.concat(t,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");var S=u.select("#d"+t).node().innerHTML;if(o.debug("cnf.arrowMarkerAbsolute",s.arrowMarkerAbsolute),s.arrowMarkerAbsolute&&"false"!==s.arrowMarkerAbsolute||"sandbox"===s.arrowMarkerAbsolute||(S=S.replace(/marker-end="url\(.*?#/g,'marker-end="url(#',"g")),S=(S=dl(S)).replace(/<br>/g,"<br/>"),"sandbox"===s.securityLevel){var I=u.select("#d"+t+" svg").node(),L="100%";I&&(L=I.viewBox.baseVal.height+"px"),S='<iframe style="width:'.concat("100%",";height:").concat(L,';border:0;margin:0;" src="data:text/html;base64,').concat(btoa('<body style="margin:0">'+S+"</body>"),'" sandbox="allow-top-navigation-by-user-activation allow-popups">\n The “iframe” tag is not supported by your browser.\n</iframe>')}else"loose"!==s.securityLevel&&(S=Wt().sanitize(S,{ADD_TAGS:["foreignobject"],ADD_ATTR:["dominant-baseline"]}));if(void 0!==n)switch(y){case"flowchart":case"flowchart-v2":n(S,Ki.bindFunctions);break;case"gantt":n(S,Va.bindFunctions);break;case"class":case"classDiagram":n(S,er.bindFunctions);break;default:n(S)}else o.debug("CB = undefined!");Zo.forEach((function(t){t()})),Zo=[];var F="sandbox"===s.securityLevel?"#i"+t:"#d"+t,N=(0,l.select)(F).node();if(null!==N&&"function"==typeof N.remove&&(0,l.select)(F).node().remove(),A)throw A;return S},parse:function(t,e){fl||(al(),fl=!0);var n=!1;try{var r=e||new sl(t);return r.db.clear(),r.parse(t)}catch(t){if(n=!0,!wl.parseError)throw t;null!=t.str?wl.parseError(t.str,t.hash):wl.parseError(t)}return!n},parseDirective:function(t,e,n,r){try{if(void 0!==e)switch(e=e.trim(),n){case"open_directive":pl={};break;case"type_directive":pl.type=e.toLowerCase();break;case"arg_directive":pl.args=JSON.parse(e);break;case"close_directive":(function(t,e,n){switch(o.debug("Directive type=".concat(e.type," with args:"),e.args),e.type){case"init":case"initialize":["config"].forEach((function(t){void 0!==e.args[t]&&("flowchart-v2"===n&&(n="flowchart"),e.args[n]=e.args[t],delete e.args[t])})),o.debug("sanitize in handleDirective",e.args),mn(e.args),o.debug("sanitize in handleDirective (done)",e.args),Kt(e.args);break;case"wrap":case"nowrap":t&&t.setWrap&&t.setWrap("wrap"===e.type);break;case"themeCss":o.warn("themeCss encountered");break;default:o.warn("Unhandled directive: source: '%%{".concat(e.type,": ").concat(JSON.stringify(e.args?e.args:{}),"}%%"),e)}})(t,pl,r),pl=null}}catch(t){o.error("Error while rendering sequenceDiagram directive: ".concat(e," jison context: ").concat(n)),o.error(t.message)}},initialize:function(t){var e;null!=t&&t.fontFamily&&(null!==(e=t.themeVariables)&&void 0!==e&&e.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),function(t){Mt=V({},t)}(t),null!=t&&t.theme&&kt[t.theme]?t.themeVariables=kt[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=kt.default.getThemeVariables(t.themeVariables));var n="object"===hl(t)?function(t){return Ut=V({},Rt),Ut=V(Ut,t),t.theme&&kt[t.theme]&&(Ut.themeVariables=kt[t.theme].getThemeVariables(t.themeVariables)),Ht=Qt(Ut,Pt),Ut}(t):Gt();gl(n),s(n.logLevel),fl||(al(),fl=!0)},getConfig:jt,setConfig:function(t){return V(Ht,t),jt()},getSiteConfig:Gt,updateSiteConfig:function(t){return Ut=V(Ut,t),Qt(Ut,Pt),Ut},reset:function(){Yt()},globalReset:function(){Yt(),gl(jt())},defaultConfig:Rt});s(jt().logLevel),Yt(jt());const yl=ml;var vl=function(){var t,e,n=yl.getConfig();arguments.length>=2?(void 0!==arguments[0]&&(_l.sequenceConfig=arguments[0]),t=arguments[1]):t=arguments[0],"function"==typeof arguments[arguments.length-1]?(e=arguments[arguments.length-1],o.debug("Callback function found")):void 0!==n.mermaid&&("function"==typeof n.mermaid.callback?(e=n.mermaid.callback,o.debug("Callback function found")):o.debug("No Callback function found")),t=void 0===t?document.querySelectorAll(".mermaid"):"string"==typeof t?document.querySelectorAll(t):t instanceof window.Node?[t]:t,o.debug("Start On Load before: "+_l.startOnLoad),void 0!==_l.startOnLoad&&(o.debug("Start On Load inner: "+_l.startOnLoad),yl.updateSiteConfig({startOnLoad:_l.startOnLoad})),void 0!==_l.ganttConfig&&yl.updateSiteConfig({gantt:_l.ganttConfig});for(var r,i=new vn.initIdGenerator(n.deterministicIds,n.deterministicIDSeed),a=[],s=function(n){o.info("Rendering diagram: "+t[n].id,n);var s=t[n];if(s.getAttribute("data-processed"))return"continue";s.setAttribute("data-processed",!0);var c="mermaid-".concat(i.next());r=s.innerHTML,r=vn.entityDecode(r).trim().replace(/<br\s*\/?>/gi,"<br/>");var l=vn.detectInit(r);l&&o.debug("Detected early reinit: ",l);try{yl.render(c,r,(function(t,n){s.innerHTML=t,void 0!==e&&e(c),n&&n(s)}),s)}catch(t){o.warn("Catching Error (bootstrap)",t),"function"==typeof _l.parseError&&_l.parseError({error:t,str:t.str,hash:t.hash,message:t.str}),a.push({error:t,str:t.str,hash:t.hash,message:t.str})}},c=0;c<t.length;c++)s(c);if(a.length>0)throw a[0]},bl=function(){_l.startOnLoad?yl.getConfig().startOnLoad&&_l.init():void 0===_l.startOnLoad&&(o.debug("In start, no config"),yl.getConfig().startOnLoad&&_l.init())};"undefined"!=typeof document&&window.addEventListener("load",(function(){bl()}),!1);var _l={startOnLoad:!0,htmlLabels:!0,diagrams:{},mermaidAPI:yl,parse:null!=yl?yl.parse:null,render:null!=yl?yl.render:null,init:function(){try{vl.apply(void 0,arguments)}catch(t){o.warn("Syntax Error rendering"),o.warn(t.str)}},initThrowsErrors:vl,initialize:function(t){void 0!==t.mermaid&&(void 0!==t.mermaid.startOnLoad&&(_l.startOnLoad=t.mermaid.startOnLoad),void 0!==t.mermaid.htmlLabels&&(_l.htmlLabels="false"!==t.mermaid.htmlLabels&&!1!==t.mermaid.htmlLabels)),yl.initialize(t)},contentLoaded:bl,setParseErrorHandler:function(t){_l.parseError=t}};const wl=_l},4949:(t,e,n)=>{t.exports={graphlib:n(6614),dagre:n(6478),intersect:n(8114),render:n(5787),util:n(8355),version:n(5689)}},9144:(t,e,n)=>{var r=n(8355);function i(t,e,n,i){var a=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(a,n[i+"Style"]),n[i+"Class"]&&a.attr("class",n[i+"Class"])}t.exports={default:i,normal:i,vee:function(t,e,n,i){var a=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(a,n[i+"Style"]),n[i+"Class"]&&a.attr("class",n[i+"Class"])},undirected:function(t,e,n,i){var a=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(a,n[i+"Style"]),n[i+"Class"]&&a.attr("class",n[i+"Class"])}}},5632:(t,e,n)=>{var r=n(8355),i=n(4322),a=n(1322);t.exports=function(t,e){var n,o=e.nodes().filter((function(t){return r.isSubgraph(e,t)})),s=t.selectAll("g.cluster").data(o,(function(t){return t}));return s.selectAll("*").remove(),s.enter().append("g").attr("class","cluster").attr("id",(function(t){return e.node(t).id})).style("opacity",0),s=t.selectAll("g.cluster"),r.applyTransition(s,e).style("opacity",1),s.each((function(t){var n=e.node(t),r=i.select(this);i.select(this).append("rect");var o=r.append("g").attr("class","label");a(o,n,n.clusterLabelPos)})),s.selectAll("rect").each((function(t){var n=e.node(t),a=i.select(this);r.applyStyle(a,n.style)})),n=s.exit?s.exit():s.selectAll(null),r.applyTransition(n,e).style("opacity",0).remove(),s}},6315:(t,e,n)=>{var r=n(1034),i=n(1322),a=n(8355),o=n(4322);t.exports=function(t,e){var n,s=t.selectAll("g.edgeLabel").data(e.edges(),(function(t){return a.edgeToId(t)})).classed("update",!0);return s.exit().remove(),s.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(s=t.selectAll("g.edgeLabel")).each((function(t){var n=o.select(this);n.select(".label").remove();var a=e.edge(t),s=i(n,e.edge(t),0,0).classed("label",!0),c=s.node().getBBox();a.labelId&&s.attr("id",a.labelId),r.has(a,"width")||(a.width=c.width),r.has(a,"height")||(a.height=c.height)})),n=s.exit?s.exit():s.selectAll(null),a.applyTransition(n,e).style("opacity",0).remove(),s}},940:(t,e,n)=>{var r=n(1034),i=n(3042),a=n(8355),o=n(4322);function s(t,e){var n=(o.line||o.svg.line)().x((function(t){return t.x})).y((function(t){return t.y}));return(n.curve||n.interpolate)(t.curve),n(e)}t.exports=function(t,e,n){var c=t.selectAll("g.edgePath").data(e.edges(),(function(t){return a.edgeToId(t)})).classed("update",!0),l=function(t,e){var n=t.enter().append("g").attr("class","edgePath").style("opacity",0);return n.append("path").attr("class","path").attr("d",(function(t){var n=e.edge(t),i=e.node(t.v).elem;return s(n,r.range(n.points.length).map((function(){return e=(t=i).getBBox(),{x:(n=t.ownerSVGElement.getScreenCTM().inverse().multiply(t.getScreenCTM()).translate(e.width/2,e.height/2)).e,y:n.f};var t,e,n})))})),n.append("defs"),n}(c,e);!function(t,e){var n=t.exit();a.applyTransition(n,e).style("opacity",0).remove()}(c,e);var A=void 0!==c.merge?c.merge(l):c;return a.applyTransition(A,e).style("opacity",1),A.each((function(t){var n=o.select(this),r=e.edge(t);r.elem=this,r.id&&n.attr("id",r.id),a.applyClass(n,r.class,(n.classed("update")?"update ":"")+"edgePath")})),A.selectAll("path.path").each((function(t){var n=e.edge(t);n.arrowheadId=r.uniqueId("arrowhead");var c=o.select(this).attr("marker-end",(function(){return"url("+(t=location.href,e=n.arrowheadId,t.split("#")[0]+"#"+e+")");var t,e})).style("fill","none");a.applyTransition(c,e).attr("d",(function(t){return function(t,e){var n=t.edge(e),r=t.node(e.v),a=t.node(e.w),o=n.points.slice(1,n.points.length-1);return o.unshift(i(r,o[0])),o.push(i(a,o[o.length-1])),s(n,o)}(e,t)})),a.applyStyle(c,n.style)})),A.selectAll("defs *").remove(),A.selectAll("defs").each((function(t){var r=e.edge(t);(0,n[r.arrowhead])(o.select(this),r.arrowheadId,r,"arrowhead")})),A}},607:(t,e,n)=>{var r=n(1034),i=n(1322),a=n(8355),o=n(4322);t.exports=function(t,e,n){var s,c=e.nodes().filter((function(t){return!a.isSubgraph(e,t)})),l=t.selectAll("g.node").data(c,(function(t){return t})).classed("update",!0);return l.exit().remove(),l.enter().append("g").attr("class","node").style("opacity",0),(l=t.selectAll("g.node")).each((function(t){var s=e.node(t),c=o.select(this);a.applyClass(c,s.class,(c.classed("update")?"update ":"")+"node"),c.select("g.label").remove();var l=c.append("g").attr("class","label"),A=i(l,s),u=n[s.shape],h=r.pick(A.node().getBBox(),"width","height");s.elem=this,s.id&&c.attr("id",s.id),s.labelId&&l.attr("id",s.labelId),r.has(s,"width")&&(h.width=s.width),r.has(s,"height")&&(h.height=s.height),h.width+=s.paddingLeft+s.paddingRight,h.height+=s.paddingTop+s.paddingBottom,l.attr("transform","translate("+(s.paddingLeft-s.paddingRight)/2+","+(s.paddingTop-s.paddingBottom)/2+")");var f=o.select(this);f.select(".label-container").remove();var d=u(f,h,s).classed("label-container",!0);a.applyStyle(d,s.style);var p=d.node().getBBox();s.width=p.width,s.height=p.height})),s=l.exit?l.exit():l.selectAll(null),a.applyTransition(s,e).style("opacity",0).remove(),l}},4322:(t,e,n)=>{var r;if(!r)try{r=n(7543)}catch(t){}r||(r=window.d3),t.exports=r},6478:(t,e,n)=>{var r;try{r=n(681)}catch(t){}r||(r=window.dagre),t.exports=r},6614:(t,e,n)=>{var r;try{r=n(8282)}catch(t){}r||(r=window.graphlib),t.exports=r},8114:(t,e,n)=>{t.exports={node:n(3042),circle:n(6587),ellipse:n(3260),polygon:n(5337),rect:n(8049)}},6587:(t,e,n)=>{var r=n(3260);t.exports=function(t,e,n){return r(t,e,e,n)}},3260:t=>{t.exports=function(t,e,n,r){var i=t.x,a=t.y,o=i-r.x,s=a-r.y,c=Math.sqrt(e*e*s*s+n*n*o*o),l=Math.abs(e*n*o/c);r.x<i&&(l=-l);var A=Math.abs(e*n*s/c);return r.y<a&&(A=-A),{x:i+l,y:a+A}}},6808:t=>{function e(t,e){return t*e>0}t.exports=function(t,n,r,i){var a,o,s,c,l,A,u,h,f,d,p,g,m;if(a=n.y-t.y,s=t.x-n.x,l=n.x*t.y-t.x*n.y,f=a*r.x+s*r.y+l,d=a*i.x+s*i.y+l,!(0!==f&&0!==d&&e(f,d)||(o=i.y-r.y,c=r.x-i.x,A=i.x*r.y-r.x*i.y,u=o*t.x+c*t.y+A,h=o*n.x+c*n.y+A,0!==u&&0!==h&&e(u,h)||0==(p=a*c-o*s))))return g=Math.abs(p/2),{x:(m=s*A-c*l)<0?(m-g)/p:(m+g)/p,y:(m=o*l-a*A)<0?(m-g)/p:(m+g)/p}}},3042:t=>{t.exports=function(t,e){return t.intersect(e)}},5337:(t,e,n)=>{var r=n(6808);t.exports=function(t,e,n){var i=t.x,a=t.y,o=[],s=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY;e.forEach((function(t){s=Math.min(s,t.x),c=Math.min(c,t.y)}));for(var l=i-t.width/2-s,A=a-t.height/2-c,u=0;u<e.length;u++){var h=e[u],f=e[u<e.length-1?u+1:0],d=r(t,n,{x:l+h.x,y:A+h.y},{x:l+f.x,y:A+f.y});d&&o.push(d)}return o.length?(o.length>1&&o.sort((function(t,e){var r=t.x-n.x,i=t.y-n.y,a=Math.sqrt(r*r+i*i),o=e.x-n.x,s=e.y-n.y,c=Math.sqrt(o*o+s*s);return a<c?-1:a===c?0:1})),o[0]):t}},8049:t=>{t.exports=function(t,e){var n,r,i=t.x,a=t.y,o=e.x-i,s=e.y-a,c=t.width/2,l=t.height/2;return Math.abs(s)*c>Math.abs(o)*l?(s<0&&(l=-l),n=0===s?0:l*o/s,r=l):(o<0&&(c=-c),n=c,r=0===o?0:c*s/o),{x:i+n,y:a+r}}},8284:(t,e,n)=>{var r=n(8355);t.exports=function(t,e){var n=t.append("foreignObject").attr("width","100000"),i=n.append("xhtml:div");i.attr("xmlns","http://www.w3.org/1999/xhtml");var a=e.label;switch(typeof a){case"function":i.insert(a);break;case"object":i.insert((function(){return a}));break;default:i.html(a)}r.applyStyle(i,e.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap");var o=i.node().getBoundingClientRect();return n.attr("width",o.width).attr("height",o.height),n}},1322:(t,e,n)=>{var r=n(7318),i=n(8284),a=n(8287);t.exports=function(t,e,n){var o=e.label,s=t.append("g");"svg"===e.labelType?a(s,e):"string"!=typeof o||"html"===e.labelType?i(s,e):r(s,e);var c,l=s.node().getBBox();switch(n){case"top":c=-e.height/2;break;case"bottom":c=e.height/2-l.height;break;default:c=-l.height/2}return s.attr("transform","translate("+-l.width/2+","+c+")"),s}},8287:(t,e,n)=>{var r=n(8355);t.exports=function(t,e){var n=t;return n.node().appendChild(e.label),r.applyStyle(n,e.labelStyle),n}},7318:(t,e,n)=>{var r=n(8355);t.exports=function(t,e){for(var n=t.append("text"),i=function(t){for(var e,n="",r=!1,i=0;i<t.length;++i)e=t[i],r?(n+="n"===e?"\n":e,r=!1):"\\"===e?r=!0:n+=e;return n}(e.label).split("\n"),a=0;a<i.length;a++)n.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(i[a]);return r.applyStyle(n,e.labelStyle),n}},1034:(t,e,n)=>{var r;try{r={defaults:n(1747),each:n(6073),isFunction:n(3560),isPlainObject:n(8630),pick:n(9722),has:n(8721),range:n(6026),uniqueId:n(3955)}}catch(t){}r||(r=window._),t.exports=r},6381:(t,e,n)=>{var r=n(8355),i=n(4322);t.exports=function(t,e){var n=t.filter((function(){return!i.select(this).classed("update")}));function a(t){var n=e.node(t);return"translate("+n.x+","+n.y+")"}n.attr("transform",a),r.applyTransition(t,e).style("opacity",1).attr("transform",a),r.applyTransition(n.selectAll("rect"),e).attr("width",(function(t){return e.node(t).width})).attr("height",(function(t){return e.node(t).height})).attr("x",(function(t){return-e.node(t).width/2})).attr("y",(function(t){return-e.node(t).height/2}))}},4577:(t,e,n)=>{var r=n(8355),i=n(4322),a=n(1034);t.exports=function(t,e){function n(t){var n=e.edge(t);return a.has(n,"x")?"translate("+n.x+","+n.y+")":""}t.filter((function(){return!i.select(this).classed("update")})).attr("transform",n),r.applyTransition(t,e).style("opacity",1).attr("transform",n)}},4849:(t,e,n)=>{var r=n(8355),i=n(4322);t.exports=function(t,e){function n(t){var n=e.node(t);return"translate("+n.x+","+n.y+")"}t.filter((function(){return!i.select(this).classed("update")})).attr("transform",n),r.applyTransition(t,e).style("opacity",1).attr("transform",n)}},5787:(t,e,n)=>{var r=n(1034),i=n(4322),a=n(6478).layout;t.exports=function(){var t=n(607),e=n(5632),i=n(6315),l=n(940),A=n(4849),u=n(4577),h=n(6381),f=n(4418),d=n(9144),p=function(n,p){!function(t){t.nodes().forEach((function(e){var n=t.node(e);r.has(n,"label")||t.children(e).length||(n.label=e),r.has(n,"paddingX")&&r.defaults(n,{paddingLeft:n.paddingX,paddingRight:n.paddingX}),r.has(n,"paddingY")&&r.defaults(n,{paddingTop:n.paddingY,paddingBottom:n.paddingY}),r.has(n,"padding")&&r.defaults(n,{paddingLeft:n.padding,paddingRight:n.padding,paddingTop:n.padding,paddingBottom:n.padding}),r.defaults(n,o),r.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],(function(t){n[t]=Number(n[t])})),r.has(n,"width")&&(n._prevWidth=n.width),r.has(n,"height")&&(n._prevHeight=n.height)})),t.edges().forEach((function(e){var n=t.edge(e);r.has(n,"label")||(n.label=""),r.defaults(n,s)}))}(p);var g=c(n,"output"),m=c(g,"clusters"),y=c(g,"edgePaths"),v=i(c(g,"edgeLabels"),p),b=t(c(g,"nodes"),p,f);a(p),A(b,p),u(v,p),l(y,p,d);var _=e(m,p);h(_,p),function(t){r.each(t.nodes(),(function(e){var n=t.node(e);r.has(n,"_prevWidth")?n.width=n._prevWidth:delete n.width,r.has(n,"_prevHeight")?n.height=n._prevHeight:delete n.height,delete n._prevWidth,delete n._prevHeight}))}(p)};return p.createNodes=function(e){return arguments.length?(t=e,p):t},p.createClusters=function(t){return arguments.length?(e=t,p):e},p.createEdgeLabels=function(t){return arguments.length?(i=t,p):i},p.createEdgePaths=function(t){return arguments.length?(l=t,p):l},p.shapes=function(t){return arguments.length?(f=t,p):f},p.arrows=function(t){return arguments.length?(d=t,p):d},p};var o={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},s={arrowhead:"normal",curve:i.curveLinear};function c(t,e){var n=t.select("g."+e);return n.empty()&&(n=t.append("g").attr("class",e)),n}},4418:(t,e,n)=>{var r=n(8049),i=n(3260),a=n(6587),o=n(5337);t.exports={rect:function(t,e,n){var i=t.insert("rect",":first-child").attr("rx",n.rx).attr("ry",n.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return n.intersect=function(t){return r(n,t)},i},ellipse:function(t,e,n){var r=e.width/2,a=e.height/2,o=t.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",r).attr("ry",a);return n.intersect=function(t){return i(n,r,a,t)},o},circle:function(t,e,n){var r=Math.max(e.width,e.height)/2,i=t.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",r);return n.intersect=function(t){return a(n,r,t)},i},diamond:function(t,e,n){var r=e.width*Math.SQRT2/2,i=e.height*Math.SQRT2/2,a=[{x:0,y:-i},{x:-r,y:0},{x:0,y:i},{x:r,y:0}],s=t.insert("polygon",":first-child").attr("points",a.map((function(t){return t.x+","+t.y})).join(" "));return n.intersect=function(t){return o(n,a,t)},s}}},8355:(t,e,n)=>{var r=n(1034);t.exports={isSubgraph:function(t,e){return!!t.children(e).length},edgeToId:function(t){return a(t.v)+":"+a(t.w)+":"+a(t.name)},applyStyle:function(t,e){e&&t.attr("style",e)},applyClass:function(t,e,n){e&&t.attr("class",e).attr("class",n+" "+t.attr("class"))},applyTransition:function(t,e){var n=e.graph();if(r.isPlainObject(n)){var i=n.transition;if(r.isFunction(i))return i(t)}return t}};var i=/:/g;function a(t){return t?String(t).replace(i,"\\:"):""}},5689:t=>{t.exports="0.6.4"},681:(t,e,n)=>{t.exports={graphlib:n(574),layout:n(8123),debug:n(7570),util:{time:n(1138).time,notime:n(1138).notime},version:n(8177)}},2188:(t,e,n)=>{var r=n(8436),i=n(4079);t.exports={run:function(t){var e="greedy"===t.graph().acyclicer?i(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],n={},i={};return r.forEach(t.nodes(),(function a(o){r.has(i,o)||(i[o]=!0,n[o]=!0,r.forEach(t.outEdges(o),(function(t){r.has(n,t.w)?e.push(t):a(t.w)})),delete n[o])})),e}(t);r.forEach(e,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r.uniqueId("rev"))}))},undo:function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}}))}}},1133:(t,e,n)=>{var r=n(8436),i=n(1138);function a(t,e,n,r,a,o){var s={width:0,height:0,rank:o,borderType:e},c=a[e][o-1],l=i.addDummyNode(t,"border",s,n);a[e][o]=l,t.setParent(l,r),c&&t.setEdge(c,l,{weight:1})}t.exports=function(t){r.forEach(t.children(),(function e(n){var i=t.children(n),o=t.node(n);if(i.length&&r.forEach(i,e),r.has(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var s=o.minRank,c=o.maxRank+1;s<c;++s)a(t,"borderLeft","_bl",n,o,s),a(t,"borderRight","_br",n,o,s)}}))}},3258:(t,e,n)=>{var r=n(8436);function i(t){r.forEach(t.nodes(),(function(e){a(t.node(e))})),r.forEach(t.edges(),(function(e){a(t.edge(e))}))}function a(t){var e=t.width;t.width=t.height,t.height=e}function o(t){t.y=-t.y}function s(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||i(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){r.forEach(t.nodes(),(function(e){o(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,o),r.has(n,"y")&&o(n)}))}(t),"lr"!==e&&"rl"!==e||(function(t){r.forEach(t.nodes(),(function(e){s(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,s),r.has(n,"x")&&s(n)}))}(t),i(t))}}},7822:t=>{function e(){var t={};t._next=t._prev=t,this._sentinel=t}function n(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function r(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=e,e.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return n(e),e},e.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&n(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},e.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,r)),n=n._prev;return"["+t.join(", ")+"]"}},7570:(t,e,n)=>{var r=n(8436),i=n(1138),a=n(574).Graph;t.exports={debugOrdering:function(t){var e=i.buildLayerMatrix(t),n=new a({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),(function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)})),r.forEach(t.edges(),(function(t){n.setEdge(t.v,t.w,{},t.name)})),r.forEach(e,(function(t,e){var i="layer"+e;n.setNode(i,{rank:"same"}),r.reduce(t,(function(t,e){return n.setEdge(t,e,{style:"invis"}),e}))})),n}}},574:(t,e,n)=>{var r;try{r=n(8282)}catch(t){}r||(r=window.graphlib),t.exports=r},4079:(t,e,n)=>{var r=n(8436),i=n(574).Graph,a=n(7822);t.exports=function(t,e){if(t.nodeCount()<=1)return[];var n=function(t,e){var n=new i,o=0,s=0;r.forEach(t.nodes(),(function(t){n.setNode(t,{v:t,in:0,out:0})})),r.forEach(t.edges(),(function(t){var r=n.edge(t.v,t.w)||0,i=e(t),a=r+i;n.setEdge(t.v,t.w,a),s=Math.max(s,n.node(t.v).out+=i),o=Math.max(o,n.node(t.w).in+=i)}));var l=r.range(s+o+3).map((function(){return new a})),A=o+1;return r.forEach(n.nodes(),(function(t){c(l,A,n.node(t))})),{graph:n,buckets:l,zeroIdx:A}}(t,e||o),l=function(t,e,n){for(var r,i=[],a=e[e.length-1],o=e[0];t.nodeCount();){for(;r=o.dequeue();)s(t,e,n,r);for(;r=a.dequeue();)s(t,e,n,r);if(t.nodeCount())for(var c=e.length-2;c>0;--c)if(r=e[c].dequeue()){i=i.concat(s(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(l,(function(e){return t.outEdges(e.v,e.w)})),!0)};var o=r.constant(1);function s(t,e,n,i,a){var o=a?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),s=t.node(r.v);a&&o.push({v:r.v,w:r.w}),s.out-=i,c(e,n,s)})),r.forEach(t.outEdges(i.v),(function(r){var i=t.edge(r),a=r.w,o=t.node(a);o.in-=i,c(e,n,o)})),t.removeNode(i.v),o}function c(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},8123:(t,e,n)=>{var r=n(8436),i=n(2188),a=n(5995),o=n(8093),s=n(1138).normalizeRanks,c=n(4219),l=n(1138).removeEmptyRanks,A=n(2981),u=n(1133),h=n(3258),f=n(3408),d=n(7873),p=n(1138),g=n(574).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?p.time:p.notime;n("layout",(function(){var e=n(" buildLayoutGraph",(function(){return function(t){var e=new g({multigraph:!0,compound:!0}),n=B(t.graph());return e.setGraph(r.merge({},y,x(n,m),r.pick(n,v))),r.forEach(t.nodes(),(function(n){var i=B(t.node(n));e.setNode(n,r.defaults(x(i,b),_)),e.setParent(n,t.parent(n))})),r.forEach(t.edges(),(function(n){var i=B(t.edge(n));e.setEdge(n,r.merge({},E,x(i,w),r.pick(i,C)))})),e}(t)}));n(" runLayout",(function(){!function(t,e){e(" makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),(function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(t)})),e(" removeSelfEdges",(function(){!function(t){r.forEach(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e(" acyclic",(function(){i.run(t)})),e(" nestingGraph.run",(function(){A.run(t)})),e(" rank",(function(){o(p.asNonCompoundGraph(t))})),e(" injectEdgeLabelProxies",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e:e};p.addDummyNode(t,"edge-proxy",i,"_ep")}}))}(t)})),e(" removeEmptyRanks",(function(){l(t)})),e(" nestingGraph.cleanup",(function(){A.cleanup(t)})),e(" normalizeRanks",(function(){s(t)})),e(" assignRankMinMax",(function(){!function(t){var e=0;r.forEach(t.nodes(),(function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))})),t.graph().maxRank=e}(t)})),e(" removeEdgeLabelProxies",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}(t)})),e(" normalize.run",(function(){a.run(t)})),e(" parentDummyChains",(function(){c(t)})),e(" addBorderSegments",(function(){u(t)})),e(" order",(function(){f(t)})),e(" insertSelfEdges",(function(){!function(t){var e=p.buildLayerMatrix(t);r.forEach(e,(function(e){var n=0;r.forEach(e,(function(e,i){var a=t.node(e);a.order=i+n,r.forEach(a.selfEdges,(function(e){p.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:a.rank,order:i+ ++n,e:e.e,label:e.label},"_se")})),delete a.selfEdges}))}))}(t)})),e(" adjustCoordinateSystem",(function(){h.adjust(t)})),e(" position",(function(){d(t)})),e(" positionSelfEdges",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}}))}(t)})),e(" removeBorderNodes",(function(){!function(t){r.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),a=t.node(n.borderBottom),o=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-o.x),n.height=Math.abs(a.y-i.y),n.x=o.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e(" normalize.undo",(function(){a.undo(t)})),e(" fixupEdgeLabelCoords",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(t)})),e(" undoCoordinateSystem",(function(){h.undo(t)})),e(" translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,a=0,o=t.graph(),s=o.marginx||0,c=o.marginy||0;function l(t){var r=t.x,o=t.y,s=t.width,c=t.height;e=Math.min(e,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,o-c/2),a=Math.max(a,o+c/2)}r.forEach(t.nodes(),(function(e){l(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.has(n,"x")&&l(n)})),e-=s,i-=c,r.forEach(t.nodes(),(function(n){var r=t.node(n);r.x-=e,r.y-=i})),r.forEach(t.edges(),(function(n){var a=t.edge(n);r.forEach(a.points,(function(t){t.x-=e,t.y-=i})),r.has(a,"x")&&(a.x-=e),r.has(a,"y")&&(a.y-=i)})),o.width=n-e+s,o.height=a-i+c}(t)})),e(" assignNodeIntersects",(function(){!function(t){r.forEach(t.edges(),(function(e){var n,r,i=t.edge(e),a=t.node(e.v),o=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=o,r=a),i.points.unshift(p.intersectRect(a,n)),i.points.push(p.intersectRect(o,r))}))}(t)})),e(" reversePoints",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}(t)})),e(" acyclic.undo",(function(){i.undo(t)}))}(e,n)})),n(" updateInputGraph",(function(){!function(t,e){r.forEach(t.nodes(),(function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))})),r.forEach(t.edges(),(function(n){var i=t.edge(n),a=e.edge(n);i.points=a.points,r.has(a,"x")&&(i.x=a.x,i.y=a.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};var m=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},v=["acyclicer","ranker","rankdir","align"],b=["width","height"],_={width:0,height:0},w=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},C=["labelpos"];function x(t,e){return r.mapValues(r.pick(t,e),Number)}function B(t){var e={};return r.forEach(t,(function(t,n){e[n.toLowerCase()]=t})),e}},8436:(t,e,n)=>{var r;try{r={cloneDeep:n(361),constant:n(5703),defaults:n(1747),each:n(6073),filter:n(3105),find:n(3311),flatten:n(5564),forEach:n(4486),forIn:n(2620),has:n(8721),isUndefined:n(2353),last:n(928),map:n(5161),mapValues:n(6604),max:n(6162),merge:n(3857),min:n(3632),minBy:n(2762),now:n(7771),pick:n(9722),range:n(6026),reduce:n(4061),sortBy:n(9734),uniqueId:n(3955),values:n(2628),zipObject:n(7287)}}catch(t){}r||(r=window._),t.exports=r},2981:(t,e,n)=>{var r=n(8436),i=n(1138);function a(t,e,n,o,s,c,l){var A=t.children(l);if(A.length){var u=i.addBorderNode(t,"_bt"),h=i.addBorderNode(t,"_bb"),f=t.node(l);t.setParent(u,l),f.borderTop=u,t.setParent(h,l),f.borderBottom=h,r.forEach(A,(function(r){a(t,e,n,o,s,c,r);var i=t.node(r),A=i.borderTop?i.borderTop:r,f=i.borderBottom?i.borderBottom:r,d=i.borderTop?o:2*o,p=A!==f?1:s-c[l]+1;t.setEdge(u,A,{weight:d,minlen:p,nestingEdge:!0}),t.setEdge(f,h,{weight:d,minlen:p,nestingEdge:!0})})),t.parent(l)||t.setEdge(e,u,{weight:0,minlen:s+c[l]})}else l!==e&&t.setEdge(e,l,{weight:0,minlen:n})}t.exports={run:function(t){var e=i.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};function n(i,a){var o=t.children(i);o&&o.length&&r.forEach(o,(function(t){n(t,a+1)})),e[i]=a}return r.forEach(t.children(),(function(t){n(t,1)})),e}(t),o=r.max(r.values(n))-1,s=2*o+1;t.graph().nestingRoot=e,r.forEach(t.edges(),(function(e){t.edge(e).minlen*=s}));var c=function(t){return r.reduce(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}(t)+1;r.forEach(t.children(),(function(r){a(t,e,s,c,o,n,r)})),t.graph().nodeRankFactor=s},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),(function(e){t.edge(e).nestingEdge&&t.removeEdge(e)}))}}},5995:(t,e,n)=>{var r=n(8436),i=n(1138);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(e){!function(t,e){var n,r,a,o=e.v,s=t.node(o).rank,c=e.w,l=t.node(c).rank,A=e.name,u=t.edge(e),h=u.labelRank;if(l!==s+1){for(t.removeEdge(e),a=0,++s;s<l;++a,++s)u.points=[],r={width:0,height:0,edgeLabel:u,edgeObj:e,rank:s},n=i.addDummyNode(t,"edge",r,"_d"),s===h&&(r.width=u.width,r.height=u.height,r.dummy="edge-label",r.labelpos=u.labelpos),t.setEdge(o,n,{weight:u.weight},A),0===a&&t.graph().dummyChains.push(n),o=n;t.setEdge(o,c,{weight:u.weight},A)}}(t,e)}))},undo:function(t){r.forEach(t.graph().dummyChains,(function(e){var n,r=t.node(e),i=r.edgeLabel;for(t.setEdge(r.edgeObj,i);r.dummy;)n=t.successors(e)[0],t.removeNode(e),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),e=n,r=t.node(e)}))}}},5093:(t,e,n)=>{var r=n(8436);t.exports=function(t,e,n){var i,a={};r.forEach(n,(function(n){for(var r,o,s=t.parent(n);s;){if((r=t.parent(s))?(o=a[r],a[r]=s):(o=i,i=s),o&&o!==s)return void e.setEdge(o,s);s=r}}))}},5439:(t,e,n)=>{var r=n(8436);t.exports=function(t,e){return r.map(e,(function(e){var n=t.inEdges(e);if(n.length){var i=r.reduce(n,(function(e,n){var r=t.edge(n),i=t.node(n.v);return{sum:e.sum+r.weight*i.order,weight:e.weight+r.weight}}),{sum:0,weight:0});return{v:e,barycenter:i.sum/i.weight,weight:i.weight}}return{v:e}}))}},3128:(t,e,n)=>{var r=n(8436),i=n(574).Graph;t.exports=function(t,e,n){var a=function(t){for(var e;t.hasNode(e=r.uniqueId("_root")););return e}(t),o=new i({compound:!0}).setGraph({root:a}).setDefaultNodeLabel((function(e){return t.node(e)}));return r.forEach(t.nodes(),(function(i){var s=t.node(i),c=t.parent(i);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(o.setNode(i),o.setParent(i,c||a),r.forEach(t[n](i),(function(e){var n=e.v===i?e.w:e.v,a=o.edge(n,i),s=r.isUndefined(a)?0:a.weight;o.setEdge(n,i,{weight:t.edge(e).weight+s})})),r.has(s,"minRank")&&o.setNode(i,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))})),o}},6630:(t,e,n)=>{var r=n(8436);function i(t,e,n){for(var i=r.zipObject(n,r.map(n,(function(t,e){return e}))),a=r.flatten(r.map(e,(function(e){return r.sortBy(r.map(t.outEdges(e),(function(e){return{pos:i[e.w],weight:t.edge(e).weight}})),"pos")})),!0),o=1;o<n.length;)o<<=1;var s=2*o-1;o-=1;var c=r.map(new Array(s),(function(){return 0})),l=0;return r.forEach(a.forEach((function(t){var e=t.pos+o;c[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=c[e+1]),c[e=e-1>>1]+=t.weight;l+=t.weight*n}))),l}t.exports=function(t,e){for(var n=0,r=1;r<e.length;++r)n+=i(t,e[r-1],e[r]);return n}},3408:(t,e,n)=>{var r=n(8436),i=n(2588),a=n(6630),o=n(1026),s=n(3128),c=n(5093),l=n(574).Graph,A=n(1138);function u(t,e,n){return r.map(e,(function(e){return s(t,e,n)}))}function h(t,e){var n=new l;r.forEach(t,(function(t){var i=t.graph().root,a=o(t,i,n,e);r.forEach(a.vs,(function(e,n){t.node(e).order=n})),c(t,n,a.vs)}))}function f(t,e){r.forEach(e,(function(e){r.forEach(e,(function(e,n){t.node(e).order=n}))}))}t.exports=function(t){var e=A.maxRank(t),n=u(t,r.range(1,e+1),"inEdges"),o=u(t,r.range(e-1,-1,-1),"outEdges"),s=i(t);f(t,s);for(var c,l=Number.POSITIVE_INFINITY,d=0,p=0;p<4;++d,++p){h(d%2?n:o,d%4>=2),s=A.buildLayerMatrix(t);var g=a(t,s);g<l&&(p=0,c=r.cloneDeep(s),l=g)}f(t,c)}},2588:(t,e,n)=>{var r=n(8436);t.exports=function(t){var e={},n=r.filter(t.nodes(),(function(e){return!t.children(e).length})),i=r.max(r.map(n,(function(e){return t.node(e).rank}))),a=r.map(r.range(i+1),(function(){return[]})),o=r.sortBy(n,(function(e){return t.node(e).rank}));return r.forEach(o,(function n(i){if(!r.has(e,i)){e[i]=!0;var o=t.node(i);a[o.rank].push(i),r.forEach(t.successors(i),n)}})),a}},9567:(t,e,n)=>{var r=n(8436);t.exports=function(t,e){var n={};return r.forEach(t,(function(t,e){var i=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};r.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)})),r.forEach(e.edges(),(function(t){var e=n[t.v],i=n[t.w];r.isUndefined(e)||r.isUndefined(i)||(i.indegree++,e.out.push(n[t.w]))})),function(t){var e=[];function n(t){return function(e){var n,i,a,o;e.merged||(r.isUndefined(e.barycenter)||r.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&(i=e,a=0,o=0,(n=t).weight&&(a+=n.barycenter*n.weight,o+=n.weight),i.weight&&(a+=i.barycenter*i.weight,o+=i.weight),n.vs=i.vs.concat(n.vs),n.barycenter=a/o,n.weight=o,n.i=Math.min(i.i,n.i),i.merged=!0)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var a=t.pop();e.push(a),r.forEach(a.in.reverse(),n(a)),r.forEach(a.out,i(a))}return r.map(r.filter(e,(function(t){return!t.merged})),(function(t){return r.pick(t,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(t){return!t.indegree})))}},1026:(t,e,n)=>{var r=n(8436),i=n(5439),a=n(9567),o=n(7304);t.exports=function t(e,n,s,c){var l=e.children(n),A=e.node(n),u=A?A.borderLeft:void 0,h=A?A.borderRight:void 0,f={};u&&(l=r.filter(l,(function(t){return t!==u&&t!==h})));var d=i(e,l);r.forEach(d,(function(n){if(e.children(n.v).length){var i=t(e,n.v,s,c);f[n.v]=i,r.has(i,"barycenter")&&(a=n,o=i,r.isUndefined(a.barycenter)?(a.barycenter=o.barycenter,a.weight=o.weight):(a.barycenter=(a.barycenter*a.weight+o.barycenter*o.weight)/(a.weight+o.weight),a.weight+=o.weight))}var a,o}));var p=a(d,s);!function(t,e){r.forEach(t,(function(t){t.vs=r.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}(p,f);var g=o(p,c);if(u&&(g.vs=r.flatten([u,g.vs,h],!0),e.predecessors(u).length)){var m=e.node(e.predecessors(u)[0]),y=e.node(e.predecessors(h)[0]);r.has(g,"barycenter")||(g.barycenter=0,g.weight=0),g.barycenter=(g.barycenter*g.weight+m.order+y.order)/(g.weight+2),g.weight+=2}return g}},7304:(t,e,n)=>{var r=n(8436),i=n(1138);function a(t,e,n){for(var i;e.length&&(i=r.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}t.exports=function(t,e){var n,o=i.partition(t,(function(t){return r.has(t,"barycenter")})),s=o.lhs,c=r.sortBy(o.rhs,(function(t){return-t.i})),l=[],A=0,u=0,h=0;s.sort((n=!!e,function(t,e){return t.barycenter<e.barycenter?-1:t.barycenter>e.barycenter?1:n?e.i-t.i:t.i-e.i})),h=a(l,c,h),r.forEach(s,(function(t){h+=t.vs.length,l.push(t.vs),A+=t.barycenter*t.weight,u+=t.weight,h=a(l,c,h)}));var f={vs:r.flatten(l,!0)};return u&&(f.barycenter=A/u,f.weight=u),f}},4219:(t,e,n)=>{var r=n(8436);t.exports=function(t){var e=function(t){var e={},n=0;return r.forEach(t.children(),(function i(a){var o=n;r.forEach(t.children(a),i),e[a]={low:o,lim:n++}})),e}(t);r.forEach(t.graph().dummyChains,(function(n){for(var r=t.node(n),i=r.edgeObj,a=function(t,e,n,r){var i,a,o=[],s=[],c=Math.min(e[n].low,e[r].low),l=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),o.push(i)}while(i&&(e[i].low>c||l>e[i].lim));for(a=i,i=r;(i=t.parent(i))!==a;)s.push(i);return{path:o.concat(s.reverse()),lca:a}}(t,e,i.v,i.w),o=a.path,s=a.lca,c=0,l=o[c],A=!0;n!==i.w;){if(r=t.node(n),A){for(;(l=o[c])!==s&&t.node(l).maxRank<r.rank;)c++;l===s&&(A=!1)}if(!A){for(;c<o.length-1&&t.node(l=o[c+1]).minRank<=r.rank;)c++;l=o[c]}t.setParent(n,l),n=t.successors(n)[0]}}))}},3573:(t,e,n)=>{var r=n(8436),i=n(574).Graph,a=n(1138);function o(t,e){var n={};return r.reduce(e,(function(e,i){var a=0,o=0,s=e.length,l=r.last(i);return r.forEach(i,(function(e,A){var u=function(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),h=u?t.node(u).order:s;(u||e===l)&&(r.forEach(i.slice(o,A+1),(function(e){r.forEach(t.predecessors(e),(function(r){var i=t.node(r),o=i.order;!(o<a||h<o)||i.dummy&&t.node(e).dummy||c(n,r,e)}))})),o=A+1,a=h)})),i})),n}function s(t,e){var n={};function i(e,i,a,o,s){var l;r.forEach(r.range(i,a),(function(i){l=e[i],t.node(l).dummy&&r.forEach(t.predecessors(l),(function(e){var r=t.node(e);r.dummy&&(r.order<o||r.order>s)&&c(n,e,l)}))}))}return r.reduce(e,(function(e,n){var a,o=-1,s=0;return r.forEach(n,(function(r,c){if("border"===t.node(r).dummy){var l=t.predecessors(r);l.length&&(a=t.node(l[0]).order,i(n,s,c,o,a),s=c,o=a)}i(n,s,n.length,a,e.length)})),n})),n}function c(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function l(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function A(t,e,n,i){var a={},o={},s={};return r.forEach(e,(function(t){r.forEach(t,(function(t,e){a[t]=t,o[t]=t,s[t]=e}))})),r.forEach(e,(function(t){var e=-1;r.forEach(t,(function(t){var c=i(t);if(c.length)for(var A=((c=r.sortBy(c,(function(t){return s[t]}))).length-1)/2,u=Math.floor(A),h=Math.ceil(A);u<=h;++u){var f=c[u];o[t]===t&&e<s[f]&&!l(n,t,f)&&(o[f]=t,o[t]=a[t]=a[f],e=s[f])}}))})),{root:a,align:o}}function u(t,e,n,a,o){var s={},c=function(t,e,n,a){var o=new i,s=t.graph(),c=function(t,e,n){return function(i,a,o){var s,c=i.node(a),l=i.node(o),A=0;if(A+=c.width/2,r.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":s=-c.width/2;break;case"r":s=c.width/2}if(s&&(A+=n?s:-s),s=0,A+=(c.dummy?e:t)/2,A+=(l.dummy?e:t)/2,A+=l.width/2,r.has(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":s=l.width/2;break;case"r":s=-l.width/2}return s&&(A+=n?s:-s),s=0,A}}(s.nodesep,s.edgesep,a);return r.forEach(e,(function(e){var i;r.forEach(e,(function(e){var r=n[e];if(o.setNode(r),i){var a=n[i],s=o.edge(a,r);o.setEdge(a,r,Math.max(c(t,e,i),s||0))}i=e}))})),o}(t,e,n,o),l=o?"borderLeft":"borderRight";function A(t,e){for(var n=c.nodes(),r=n.pop(),i={};r;)i[r]?t(r):(i[r]=!0,n.push(r),n=n.concat(e(r))),r=n.pop()}return A((function(t){s[t]=c.inEdges(t).reduce((function(t,e){return Math.max(t,s[e.v]+c.edge(e))}),0)}),c.predecessors.bind(c)),A((function(e){var n=c.outEdges(e).reduce((function(t,e){return Math.min(t,s[e.w]-c.edge(e))}),Number.POSITIVE_INFINITY),r=t.node(e);n!==Number.POSITIVE_INFINITY&&r.borderType!==l&&(s[e]=Math.max(s[e],n))}),c.successors.bind(c)),r.forEach(a,(function(t){s[t]=s[n[t]]})),s}function h(t,e){return r.minBy(r.values(e),(function(e){var n=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return r.forIn(e,(function(e,r){var a=function(t,e){return t.node(e).width}(t,r)/2;n=Math.max(e+a,n),i=Math.min(e-a,i)})),n-i}))}function f(t,e){var n=r.values(e),i=r.min(n),a=r.max(n);r.forEach(["u","d"],(function(n){r.forEach(["l","r"],(function(o){var s,c=n+o,l=t[c];if(l!==e){var A=r.values(l);(s="l"===o?i-r.min(A):a-r.max(A))&&(t[c]=r.mapValues(l,(function(t){return t+s})))}}))}))}function d(t,e){return r.mapValues(t.ul,(function(n,i){if(e)return t[e.toLowerCase()][i];var a=r.sortBy(r.map(t,i));return(a[1]+a[2])/2}))}t.exports={positionX:function(t){var e,n=a.buildLayerMatrix(t),i=r.merge(o(t,n),s(t,n)),c={};r.forEach(["u","d"],(function(a){e="u"===a?n:r.values(n).reverse(),r.forEach(["l","r"],(function(n){"r"===n&&(e=r.map(e,(function(t){return r.values(t).reverse()})));var o=("u"===a?t.predecessors:t.successors).bind(t),s=A(0,e,i,o),l=u(t,e,s.root,s.align,"r"===n);"r"===n&&(l=r.mapValues(l,(function(t){return-t}))),c[a+n]=l}))}));var l=h(t,c);return f(c,l),d(c,t.graph().align)},findType1Conflicts:o,findType2Conflicts:s,addConflict:c,hasConflict:l,verticalAlignment:A,horizontalCompaction:u,alignCoordinates:f,findSmallestWidthAlignment:h,balance:d}},7873:(t,e,n)=>{var r=n(8436),i=n(1138),a=n(3573).positionX;t.exports=function(t){(function(t){var e=i.buildLayerMatrix(t),n=t.graph().ranksep,a=0;r.forEach(e,(function(e){var i=r.max(r.map(e,(function(e){return t.node(e).height})));r.forEach(e,(function(e){t.node(e).y=a+i/2})),a+=i+n}))})(t=i.asNonCompoundGraph(t)),r.forEach(a(t),(function(e,n){t.node(n).x=e}))}},300:(t,e,n)=>{var r=n(8436),i=n(574).Graph,a=n(6681).slack;function o(t,e){return r.forEach(t.nodes(),(function n(i){r.forEach(e.nodeEdges(i),(function(r){var o=r.v,s=i===o?r.w:o;t.hasNode(s)||a(e,r)||(t.setNode(s,{}),t.setEdge(i,s,{}),n(s))}))})),t.nodeCount()}function s(t,e){return r.minBy(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return a(e,n)}))}function c(t,e,n){r.forEach(t.nodes(),(function(t){e.node(t).rank+=n}))}t.exports=function(t){var e,n,r=new i({directed:!1}),l=t.nodes()[0],A=t.nodeCount();for(r.setNode(l,{});o(r,t)<A;)e=s(r,t),n=r.hasNode(e.v)?a(t,e):-a(t,e),c(r,t,n);return r}},8093:(t,e,n)=>{var r=n(6681).longestPath,i=n(300),a=n(2472);t.exports=function(t){switch(t.graph().ranker){case"network-simplex":default:!function(t){a(t)}(t);break;case"tight-tree":!function(t){r(t),i(t)}(t);break;case"longest-path":o(t)}};var o=r},2472:(t,e,n)=>{var r=n(8436),i=n(300),a=n(6681).slack,o=n(6681).longestPath,s=n(574).alg.preorder,c=n(574).alg.postorder,l=n(1138).simplify;function A(t){t=l(t),o(t);var e,n=i(t);for(f(n),u(n,t);e=p(n);)m(n,t,e,g(n,t,e))}function u(t,e){var n=c(t,t.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){!function(t,e,n){var r=t.node(n).parent;t.edge(n,r).cutvalue=h(t,e,n)}(t,e,n)}))}function h(t,e,n){var i=t.node(n).parent,a=!0,o=e.edge(n,i),s=0;return o||(a=!1,o=e.edge(i,n)),s=o.weight,r.forEach(e.nodeEdges(n),(function(r){var o,c,l=r.v===n,A=l?r.w:r.v;if(A!==i){var u=l===a,h=e.edge(r).weight;if(s+=u?h:-h,o=n,c=A,t.hasEdge(o,c)){var f=t.edge(n,A).cutvalue;s+=u?-f:f}}})),s}function f(t,e){arguments.length<2&&(e=t.nodes()[0]),d(t,{},1,e)}function d(t,e,n,i,a){var o=n,s=t.node(i);return e[i]=!0,r.forEach(t.neighbors(i),(function(a){r.has(e,a)||(n=d(t,e,n,a,i))})),s.low=o,s.lim=n++,a?s.parent=a:delete s.parent,n}function p(t){return r.find(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function g(t,e,n){var i=n.v,o=n.w;e.hasEdge(i,o)||(i=n.w,o=n.v);var s=t.node(i),c=t.node(o),l=s,A=!1;s.lim>c.lim&&(l=c,A=!0);var u=r.filter(e.edges(),(function(e){return A===y(0,t.node(e.v),l)&&A!==y(0,t.node(e.w),l)}));return r.minBy(u,(function(t){return a(e,t)}))}function m(t,e,n,i){var a=n.v,o=n.w;t.removeEdge(a,o),t.setEdge(i.v,i.w,{}),f(t),u(t,e),function(t,e){var n=r.find(t.nodes(),(function(t){return!e.node(t).parent})),i=s(t,n);i=i.slice(1),r.forEach(i,(function(n){var r=t.node(n).parent,i=e.edge(n,r),a=!1;i||(i=e.edge(r,n),a=!0),e.node(n).rank=e.node(r).rank+(a?i.minlen:-i.minlen)}))}(t,e)}function y(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=A,A.initLowLimValues=f,A.initCutValues=u,A.calcCutValue=h,A.leaveEdge=p,A.enterEdge=g,A.exchangeEdges=m},6681:(t,e,n)=>{var r=n(8436);t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),(function n(i){var a=t.node(i);if(r.has(e,i))return a.rank;e[i]=!0;var o=r.min(r.map(t.outEdges(i),(function(e){return n(e.w)-t.edge(e).minlen})));return o!==Number.POSITIVE_INFINITY&&null!=o||(o=0),a.rank=o}))},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},1138:(t,e,n)=>{var r=n(8436),i=n(574).Graph;function a(t,e,n,i){var a;do{a=r.uniqueId(i)}while(t.hasNode(a));return n.dummy=e,t.setNode(a,n),a}function o(t){return r.max(r.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n})))}t.exports={addDummyNode:a,simplify:function(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),e},asNonCompoundGraph:function(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e},successorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,a=t.y,o=e.x-i,s=e.y-a,c=t.width/2,l=t.height/2;if(!o&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*c>Math.abs(o)*l?(s<0&&(l=-l),n=l*o/s,r=l):(o<0&&(c=-c),n=c,r=c*s/o),{x:i+n,y:a+r}},buildLayerMatrix:function(t){var e=r.map(r.range(o(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(n){var i=t.node(n),a=i.rank;r.isUndefined(a)||(e[a][i.order]=n)})),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank})));r.forEach(t.nodes(),(function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)}))},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];r.forEach(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,a=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%a!=0?--i:i&&r.forEach(e,(function(e){t.node(e).rank+=i}))}))},addBorderNode:function(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),a(t,"border",i,e)},maxRank:o,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n},time:function(t,e){r.now();try{return e()}finally{r.now()}},notime:function(t,e){return e()}}},8177:t=>{t.exports="0.8.5"},7856:function(t){t.exports=function(){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,n){return(e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,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(t){return!1}}function r(t,i,a){return(r=n()?Reflect.construct:function(t,n,r){var i=[null];i.push.apply(i,n);var a=new(Function.bind.apply(t,i));return r&&e(a,r.prototype),a}).apply(null,arguments)}function i(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t)||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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var o=Object.hasOwnProperty,s=Object.setPrototypeOf,c=Object.isFrozen,l=Object.getPrototypeOf,A=Object.getOwnPropertyDescriptor,u=Object.freeze,h=Object.seal,f=Object.create,d="undefined"!=typeof Reflect&&Reflect,p=d.apply,g=d.construct;p||(p=function(t,e,n){return t.apply(e,n)}),u||(u=function(t){return t}),h||(h=function(t){return t}),g||(g=function(t,e){return r(t,i(e))});var m,y=k(Array.prototype.forEach),v=k(Array.prototype.pop),b=k(Array.prototype.push),_=k(String.prototype.toLowerCase),w=k(String.prototype.match),E=k(String.prototype.replace),C=k(String.prototype.indexOf),x=k(String.prototype.trim),B=k(RegExp.prototype.test),T=(m=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return g(m,e)});function k(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return p(t,e,r)}}function S(t,e,n){n=n||_,s&&s(t,null);for(var r=e.length;r--;){var i=e[r];if("string"==typeof i){var a=n(i);a!==i&&(c(e)||(e[r]=a),i=a)}t[i]=!0}return t}function I(t){var e,n=f(null);for(e in t)p(o,t,[e])&&(n[e]=t[e]);return n}function L(t,e){for(;null!==t;){var n=A(t,e);if(n){if(n.get)return k(n.get);if("function"==typeof n.value)return k(n.value)}t=l(t)}return function(t){return console.warn("fallback value for",t),null}}var F=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"]),N=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"]),O=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"]),M=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"]),R=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),U=u(["#text"]),P=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"]),Q=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"]),G=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),j=h(/\{\{[\w\W]*|[\w\W]*\}\}/gm),$=h(/<%[\w\W]*|[\w\W]*%>/gm),K=h(/^data-[\-\w.\u00B7-\uFFFF]/),Y=h(/^aria-[\-\w]+$/),z=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W=h(/^(?:\w+script|data):/i),V=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),q=h(/^html$/i),X=function(){return"undefined"==typeof window?null:window},J=function(e,n){if("object"!==t(e)||"function"!=typeof e.createPolicy)return null;var r=null,i="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(i)&&(r=n.currentScript.getAttribute(i));var a="dompurify"+(r?"#"+r:"");try{return e.createPolicy(a,{createHTML:function(t){return t},createScriptURL:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};return function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X(),r=function(t){return e(t)};if(r.version="2.4.0",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var a=n.document,o=n.document,s=n.DocumentFragment,c=n.HTMLTemplateElement,l=n.Node,A=n.Element,h=n.NodeFilter,f=n.NamedNodeMap,d=void 0===f?n.NamedNodeMap||n.MozNamedAttrMap:f,p=n.HTMLFormElement,g=n.DOMParser,m=n.trustedTypes,k=A.prototype,Z=L(k,"cloneNode"),tt=L(k,"nextSibling"),et=L(k,"childNodes"),nt=L(k,"parentNode");if("function"==typeof c){var rt=o.createElement("template");rt.content&&rt.content.ownerDocument&&(o=rt.content.ownerDocument)}var it=J(m,a),at=it?it.createHTML(""):"",ot=o,st=ot.implementation,ct=ot.createNodeIterator,lt=ot.createDocumentFragment,At=ot.getElementsByTagName,ut=a.importNode,ht={};try{ht=I(o).documentMode?o.documentMode:{}}catch(t){}var ft={};r.isSupported="function"==typeof nt&&st&&void 0!==st.createHTMLDocument&&9!==ht;var dt,pt,gt=j,mt=$,yt=K,vt=Y,bt=W,_t=V,wt=z,Et=null,Ct=S({},[].concat(i(F),i(N),i(O),i(M),i(U))),xt=null,Bt=S({},[].concat(i(P),i(H),i(Q),i(G))),Tt=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}})),kt=null,St=null,It=!0,Lt=!0,Ft=!1,Nt=!1,Ot=!1,Dt=!1,Mt=!1,Rt=!1,Ut=!1,Pt=!1,Ht=!0,Qt=!1,Gt="user-content-",jt=!0,$t=!1,Kt={},Yt=null,zt=S({},["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"]),Wt=null,Vt=S({},["audio","video","img","source","image","track"]),qt=null,Xt=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Jt="http://www.w3.org/1998/Math/MathML",Zt="http://www.w3.org/2000/svg",te="http://www.w3.org/1999/xhtml",ee=te,ne=!1,re=["application/xhtml+xml","text/html"],ie="text/html",ae=null,oe=o.createElement("form"),se=function(t){return t instanceof RegExp||t instanceof Function},ce=function(e){ae&&ae===e||(e&&"object"===t(e)||(e={}),e=I(e),dt=dt=-1===re.indexOf(e.PARSER_MEDIA_TYPE)?ie:e.PARSER_MEDIA_TYPE,pt="application/xhtml+xml"===dt?function(t){return t}:_,Et="ALLOWED_TAGS"in e?S({},e.ALLOWED_TAGS,pt):Ct,xt="ALLOWED_ATTR"in e?S({},e.ALLOWED_ATTR,pt):Bt,qt="ADD_URI_SAFE_ATTR"in e?S(I(Xt),e.ADD_URI_SAFE_ATTR,pt):Xt,Wt="ADD_DATA_URI_TAGS"in e?S(I(Vt),e.ADD_DATA_URI_TAGS,pt):Vt,Yt="FORBID_CONTENTS"in e?S({},e.FORBID_CONTENTS,pt):zt,kt="FORBID_TAGS"in e?S({},e.FORBID_TAGS,pt):{},St="FORBID_ATTR"in e?S({},e.FORBID_ATTR,pt):{},Kt="USE_PROFILES"in e&&e.USE_PROFILES,It=!1!==e.ALLOW_ARIA_ATTR,Lt=!1!==e.ALLOW_DATA_ATTR,Ft=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Nt=e.SAFE_FOR_TEMPLATES||!1,Ot=e.WHOLE_DOCUMENT||!1,Rt=e.RETURN_DOM||!1,Ut=e.RETURN_DOM_FRAGMENT||!1,Pt=e.RETURN_TRUSTED_TYPE||!1,Mt=e.FORCE_BODY||!1,Ht=!1!==e.SANITIZE_DOM,Qt=e.SANITIZE_NAMED_PROPS||!1,jt=!1!==e.KEEP_CONTENT,$t=e.IN_PLACE||!1,wt=e.ALLOWED_URI_REGEXP||wt,ee=e.NAMESPACE||te,e.CUSTOM_ELEMENT_HANDLING&&se(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Tt.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&se(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Tt.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Tt.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Nt&&(Lt=!1),Ut&&(Rt=!0),Kt&&(Et=S({},i(U)),xt=[],!0===Kt.html&&(S(Et,F),S(xt,P)),!0===Kt.svg&&(S(Et,N),S(xt,H),S(xt,G)),!0===Kt.svgFilters&&(S(Et,O),S(xt,H),S(xt,G)),!0===Kt.mathMl&&(S(Et,M),S(xt,Q),S(xt,G))),e.ADD_TAGS&&(Et===Ct&&(Et=I(Et)),S(Et,e.ADD_TAGS,pt)),e.ADD_ATTR&&(xt===Bt&&(xt=I(xt)),S(xt,e.ADD_ATTR,pt)),e.ADD_URI_SAFE_ATTR&&S(qt,e.ADD_URI_SAFE_ATTR,pt),e.FORBID_CONTENTS&&(Yt===zt&&(Yt=I(Yt)),S(Yt,e.FORBID_CONTENTS,pt)),jt&&(Et["#text"]=!0),Ot&&S(Et,["html","head","body"]),Et.table&&(S(Et,["tbody"]),delete kt.tbody),u&&u(e),ae=e)},le=S({},["mi","mo","mn","ms","mtext"]),Ae=S({},["foreignobject","desc","title","annotation-xml"]),ue=S({},["title","style","font","a","script"]),he=S({},N);S(he,O),S(he,D);var fe=S({},M);S(fe,R);var de=function(t){var e=nt(t);e&&e.tagName||(e={namespaceURI:te,tagName:"template"});var n=_(t.tagName),r=_(e.tagName);return t.namespaceURI===Zt?e.namespaceURI===te?"svg"===n:e.namespaceURI===Jt?"svg"===n&&("annotation-xml"===r||le[r]):Boolean(he[n]):t.namespaceURI===Jt?e.namespaceURI===te?"math"===n:e.namespaceURI===Zt?"math"===n&&Ae[r]:Boolean(fe[n]):t.namespaceURI===te&&!(e.namespaceURI===Zt&&!Ae[r])&&!(e.namespaceURI===Jt&&!le[r])&&!fe[n]&&(ue[n]||!he[n])},pe=function(t){b(r.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=at}catch(e){t.remove()}}},ge=function(t,e){try{b(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){b(r.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!xt[t])if(Rt||Ut)try{pe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},me=function(t){var e,n;if(Mt)t="<remove></remove>"+t;else{var r=w(t,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===dt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var i=it?it.createHTML(t):t;if(ee===te)try{e=(new g).parseFromString(i,dt)}catch(t){}if(!e||!e.documentElement){e=st.createDocument(ee,"template",null);try{e.documentElement.innerHTML=ne?"":i}catch(t){}}var a=e.body||e.documentElement;return t&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),ee===te?At.call(e,Ot?"html":"body")[0]:Ot?e.documentElement:a},ye=function(t){return ct.call(t.ownerDocument||t,t,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT,null,!1)},ve=function(t){return t instanceof p&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof d)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore)},be=function(e){return"object"===t(l)?e instanceof l:e&&"object"===t(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},_e=function(t,e,n){ft[t]&&y(ft[t],(function(t){t.call(r,e,n,ae)}))},we=function(t){var e;if(_e("beforeSanitizeElements",t,null),ve(t))return pe(t),!0;if(B(/[\u0080-\uFFFF]/,t.nodeName))return pe(t),!0;var n=pt(t.nodeName);if(_e("uponSanitizeElement",t,{tagName:n,allowedTags:Et}),t.hasChildNodes()&&!be(t.firstElementChild)&&(!be(t.content)||!be(t.content.firstElementChild))&&B(/<[/\w]/g,t.innerHTML)&&B(/<[/\w]/g,t.textContent))return pe(t),!0;if("select"===n&&B(/<template/i,t.innerHTML))return pe(t),!0;if(!Et[n]||kt[n]){if(!kt[n]&&Ce(n)){if(Tt.tagNameCheck instanceof RegExp&&B(Tt.tagNameCheck,n))return!1;if(Tt.tagNameCheck instanceof Function&&Tt.tagNameCheck(n))return!1}if(jt&&!Yt[n]){var i=nt(t)||t.parentNode,a=et(t)||t.childNodes;if(a&&i)for(var o=a.length-1;o>=0;--o)i.insertBefore(Z(a[o],!0),tt(t))}return pe(t),!0}return t instanceof A&&!de(t)?(pe(t),!0):"noscript"!==n&&"noembed"!==n||!B(/<\/no(script|embed)/i,t.innerHTML)?(Nt&&3===t.nodeType&&(e=t.textContent,e=E(e,gt," "),e=E(e,mt," "),t.textContent!==e&&(b(r.removed,{element:t.cloneNode()}),t.textContent=e)),_e("afterSanitizeElements",t,null),!1):(pe(t),!0)},Ee=function(t,e,n){if(Ht&&("id"===e||"name"===e)&&(n in o||n in oe))return!1;if(Lt&&!St[e]&&B(yt,e));else if(It&&B(vt,e));else if(!xt[e]||St[e]){if(!(Ce(t)&&(Tt.tagNameCheck instanceof RegExp&&B(Tt.tagNameCheck,t)||Tt.tagNameCheck instanceof Function&&Tt.tagNameCheck(t))&&(Tt.attributeNameCheck instanceof RegExp&&B(Tt.attributeNameCheck,e)||Tt.attributeNameCheck instanceof Function&&Tt.attributeNameCheck(e))||"is"===e&&Tt.allowCustomizedBuiltInElements&&(Tt.tagNameCheck instanceof RegExp&&B(Tt.tagNameCheck,n)||Tt.tagNameCheck instanceof Function&&Tt.tagNameCheck(n))))return!1}else if(qt[e]);else if(B(wt,E(n,_t,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==C(n,"data:")||!Wt[t])if(Ft&&!B(bt,E(n,_t,"")));else if(n)return!1;return!0},Ce=function(t){return t.indexOf("-")>0},xe=function(e){var n,i,a,o;_e("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xt};for(o=s.length;o--;){var l=n=s[o],A=l.name,u=l.namespaceURI;if(i="value"===A?n.value:x(n.value),a=pt(A),c.attrName=a,c.attrValue=i,c.keepAttr=!0,c.forceKeepAttr=void 0,_e("uponSanitizeAttribute",e,c),i=c.attrValue,!c.forceKeepAttr&&(ge(A,e),c.keepAttr))if(B(/\/>/i,i))ge(A,e);else{Nt&&(i=E(i,gt," "),i=E(i,mt," "));var h=pt(e.nodeName);if(Ee(h,a,i)){if(!Qt||"id"!==a&&"name"!==a||(ge(A,e),i=Gt+i),it&&"object"===t(m)&&"function"==typeof m.getAttributeType)if(u);else switch(m.getAttributeType(h,a)){case"TrustedHTML":i=it.createHTML(i);break;case"TrustedScriptURL":i=it.createScriptURL(i)}try{u?e.setAttributeNS(u,A,i):e.setAttribute(A,i),v(r.removed)}catch(t){}}}}_e("afterSanitizeAttributes",e,null)}},Be=function t(e){var n,r=ye(e);for(_e("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)_e("uponSanitizeShadowNode",n,null),we(n)||(n.content instanceof s&&t(n.content),xe(n));_e("afterSanitizeShadowDOM",e,null)};return r.sanitize=function(e){var i,o,c,A,u,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ne=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!be(e)){if("function"!=typeof e.toString)throw T("toString is not a function");if("string"!=typeof(e=e.toString()))throw T("dirty is not a string, aborting")}if(!r.isSupported){if("object"===t(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof e)return n.toStaticHTML(e);if(be(e))return n.toStaticHTML(e.outerHTML)}return e}if(Dt||ce(h),r.removed=[],"string"==typeof e&&($t=!1),$t){if(e.nodeName){var f=pt(e.nodeName);if(!Et[f]||kt[f])throw T("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)1===(o=(i=me("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?i=o:i.appendChild(o);else{if(!Rt&&!Nt&&!Ot&&-1===e.indexOf("<"))return it&&Pt?it.createHTML(e):e;if(!(i=me(e)))return Rt?null:Pt?at:""}i&&Mt&&pe(i.firstChild);for(var d=ye($t?e:i);c=d.nextNode();)3===c.nodeType&&c===A||we(c)||(c.content instanceof s&&Be(c.content),xe(c),A=c);if(A=null,$t)return e;if(Rt){if(Ut)for(u=lt.call(i.ownerDocument);i.firstChild;)u.appendChild(i.firstChild);else u=i;return xt.shadowroot&&(u=ut.call(a,u,!0)),u}var p=Ot?i.outerHTML:i.innerHTML;return Ot&&Et["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&B(q,i.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+p),Nt&&(p=E(p,gt," "),p=E(p,mt," ")),it&&Pt?it.createHTML(p):p},r.setConfig=function(t){ce(t),Dt=!0},r.clearConfig=function(){ae=null,Dt=!1},r.isValidAttribute=function(t,e,n){ae||ce({});var r=pt(t),i=pt(e);return Ee(r,i,n)},r.addHook=function(t,e){"function"==typeof e&&(ft[t]=ft[t]||[],b(ft[t],e))},r.removeHook=function(t){if(ft[t])return v(ft[t])},r.removeHooks=function(t){ft[t]&&(ft[t]=[])},r.removeAllHooks=function(){ft={}},r}()}()},8282:(t,e,n)=>{var r=n(2354);t.exports={Graph:r.Graph,json:n(8974),alg:n(2440),version:r.version}},2842:(t,e,n)=>{var r=n(9126);t.exports=function(t){var e,n={},i=[];function a(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),a),r.each(t.predecessors(i),a))}return r.each(t.nodes(),(function(t){e=[],a(t),e.length&&i.push(e)})),i}},3984:(t,e,n)=>{var r=n(9126);t.exports=function(t,e,n){r.isArray(e)||(e=[e]);var i=(t.isDirected()?t.successors:t.neighbors).bind(t),a=[],o={};return r.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);!function t(e,n,i,a,o,s){r.has(a,n)||(a[n]=!0,i||s.push(n),r.each(o(n),(function(n){t(e,n,i,a,o,s)})),i&&s.push(n))}(t,e,"post"===n,o,i,a)})),a}},4847:(t,e,n)=>{var r=n(3763),i=n(9126);t.exports=function(t,e,n){return i.transform(t.nodes(),(function(i,a){i[a]=r(t,a,e,n)}),{})}},3763:(t,e,n)=>{var r=n(9126),i=n(9675);t.exports=function(t,e,n,r){return function(t,e,n,r){var a,o,s={},c=new i,l=function(t){var e=t.v!==a?t.v:t.w,r=s[e],i=n(t),l=o.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);l<r.distance&&(r.distance=l,r.predecessor=a,c.decrease(e,l))};for(t.nodes().forEach((function(t){var n=t===e?0:Number.POSITIVE_INFINITY;s[t]={distance:n},c.add(t,n)}));c.size()>0&&(a=c.removeMin(),(o=s[a]).distance!==Number.POSITIVE_INFINITY);)r(a).forEach(l);return s}(t,String(e),n||a,r||function(e){return t.outEdges(e)})};var a=r.constant(1)},9096:(t,e,n)=>{var r=n(9126),i=n(5023);t.exports=function(t){return r.filter(i(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}},8924:(t,e,n)=>{var r=n(9126);t.exports=function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach((function(t){r[t]={},r[t][t]={distance:0},i.forEach((function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})})),n(t).forEach((function(n){var i=n.v===t?n.w:n.v,a=e(n);r[t][i]={distance:a,predecessor:t}}))})),i.forEach((function(t){var e=r[t];i.forEach((function(n){var a=r[n];i.forEach((function(n){var r=a[t],i=e[n],o=a[n],s=r.distance+i.distance;s<o.distance&&(o.distance=s,o.predecessor=i.predecessor)}))}))})),r}(t,e||i,n||function(e){return t.outEdges(e)})};var i=r.constant(1)},2440:(t,e,n)=>{t.exports={components:n(2842),dijkstra:n(3763),dijkstraAll:n(4847),findCycles:n(9096),floydWarshall:n(8924),isAcyclic:n(2707),postorder:n(8828),preorder:n(2648),prim:n(514),tarjan:n(5023),topsort:n(2166)}},2707:(t,e,n)=>{var r=n(2166);t.exports=function(t){try{r(t)}catch(t){if(t instanceof r.CycleException)return!1;throw t}return!0}},8828:(t,e,n)=>{var r=n(3984);t.exports=function(t,e){return r(t,e,"post")}},2648:(t,e,n)=>{var r=n(3984);t.exports=function(t,e){return r(t,e,"pre")}},514:(t,e,n)=>{var r=n(9126),i=n(771),a=n(9675);t.exports=function(t,e){var n,o=new i,s={},c=new a;function l(t){var r=t.v===n?t.w:t.v,i=c.priority(r);if(void 0!==i){var a=e(t);a<i&&(s[r]=n,c.decrease(r,a))}}if(0===t.nodeCount())return o;r.each(t.nodes(),(function(t){c.add(t,Number.POSITIVE_INFINITY),o.setNode(t)})),c.decrease(t.nodes()[0],0);for(var A=!1;c.size()>0;){if(n=c.removeMin(),r.has(s,n))o.setEdge(n,s[n]);else{if(A)throw new Error("Input graph is not connected: "+t);A=!0}t.nodeEdges(n).forEach(l)}return o}},5023:(t,e,n)=>{var r=n(9126);t.exports=function(t){var e=0,n=[],i={},a=[];function o(s){var c=i[s]={onStack:!0,lowlink:e,index:e++};if(n.push(s),t.successors(s).forEach((function(t){r.has(i,t)?i[t].onStack&&(c.lowlink=Math.min(c.lowlink,i[t].index)):(o(t),c.lowlink=Math.min(c.lowlink,i[t].lowlink))})),c.lowlink===c.index){var l,A=[];do{l=n.pop(),i[l].onStack=!1,A.push(l)}while(s!==l);a.push(A)}}return t.nodes().forEach((function(t){r.has(i,t)||o(t)})),a}},2166:(t,e,n)=>{var r=n(9126);function i(t){var e={},n={},i=[];if(r.each(t.sinks(),(function o(s){if(r.has(n,s))throw new a;r.has(e,s)||(n[s]=!0,e[s]=!0,r.each(t.predecessors(s),o),delete n[s],i.push(s))})),r.size(e)!==t.nodeCount())throw new a;return i}function a(){}t.exports=i,i.CycleException=a,a.prototype=new Error},9675:(t,e,n)=>{var r=n(9126);function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,a=i.length;return n[t]=a,i.push({key:t,priority:e}),this._decrease(a),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n<e.length&&(i=e[n].priority<e[i].priority?n:i,r<e.length&&(i=e[r].priority<e[i].priority?r:i),i!==t&&(this._swap(t,i),this._heapify(i)))},i.prototype._decrease=function(t){for(var e,n=this._arr,r=n[t].priority;0!==t&&!(n[e=t>>1].priority<r);)this._swap(t,e),t=e},i.prototype._swap=function(t,e){var n=this._arr,r=this._keyIndices,i=n[t],a=n[e];n[t]=a,n[e]=i,r[a.key]=t,r[i.key]=e}},771:(t,e,n)=>{var r=n(9126);t.exports=a;var i="\0";function a(t){this._isDirected=!r.has(t,"directed")||t.directed,this._isMultigraph=!!r.has(t,"multigraph")&&t.multigraph,this._isCompound=!!r.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function o(t,e){t[e]?t[e]++:t[e]=1}function s(t,e){--t[e]||delete t[e]}function c(t,e,n,i){var a=""+e,o=""+n;if(!t&&a>o){var s=a;a=o,o=s}return a+""+o+""+(r.isUndefined(i)?"\0":i)}function l(t,e,n,r){var i=""+e,a=""+n;if(!t&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return r&&(s.name=r),s}function A(t,e){return c(t,e.v,e.w,e.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(t){return this._label=t,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return r.keys(this._nodes)},a.prototype.sources=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._in[e])}))},a.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._out[e])}))},a.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,(function(t){n.length>1?i.setNode(t,e):i.setNode(t)})),this},a.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=i,this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},a.prototype.node=function(t){return this._nodes[t]},a.prototype.hasNode=function(t){return r.has(this._nodes,t)},a.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},a.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e=i;else{for(var n=e+="";!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},a.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},a.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==i)return e}},a.prototype.children=function(t){if(r.isUndefined(t)&&(t=i),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if(t===i)return this.nodes();if(this.hasNode(t))return[]}},a.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},a.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},a.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},a.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},a.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){t(r)&&e.setNode(r,n)})),r.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var i={};return this._isCompound&&r.each(e.nodes(),(function(t){e.setParent(t,function t(r){var a=n.parent(r);return void 0===a||e.hasNode(a)?(i[r]=a,a):a in i?i[a]:t(a)}(t))})),e},a.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return r.values(this._edgeObjs)},a.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,(function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r})),this},a.prototype.setEdge=function(){var t,e,n,i,a=!1,s=arguments[0];"object"==typeof s&&null!==s&&"v"in s?(t=s.v,e=s.w,n=s.name,2===arguments.length&&(i=arguments[1],a=!0)):(t=s,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var A=c(this._isDirected,t,e,n);if(r.has(this._edgeLabels,A))return a&&(this._edgeLabels[A]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[A]=a?i:this._defaultEdgeLabelFn(t,e,n);var u=l(this._isDirected,t,e,n);return t=u.v,e=u.w,Object.freeze(u),this._edgeObjs[A]=u,o(this._preds[e],t),o(this._sucs[t],e),this._in[e][A]=u,this._out[t][A]=u,this._edgeCount++,this},a.prototype.edge=function(t,e,n){var r=1===arguments.length?A(this._isDirected,arguments[0]):c(this._isDirected,t,e,n);return this._edgeLabels[r]},a.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?A(this._isDirected,arguments[0]):c(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},a.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?A(this._isDirected,arguments[0]):c(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],s(this._preds[e],t),s(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},a.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.v===e})):i}},a.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.w===e})):i}},a.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},2354:(t,e,n)=>{t.exports={Graph:n(771),version:n(9631)}},8974:(t,e,n)=>{var r=n(9126),i=n(771);function a(t){return r.map(t.nodes(),(function(e){var n=t.node(e),i=t.parent(e),a={v:e};return r.isUndefined(n)||(a.value=n),r.isUndefined(i)||(a.parent=i),a}))}function o(t){return r.map(t.edges(),(function(e){var n=t.edge(e),i={v:e.v,w:e.w};return r.isUndefined(e.name)||(i.name=e.name),r.isUndefined(n)||(i.value=n),i}))}t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:a(t),edges:o(t)};return r.isUndefined(t.graph())||(e.value=r.clone(t.graph())),e},read:function(t){var e=new i(t.options).setGraph(t.value);return r.each(t.nodes,(function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)})),r.each(t.edges,(function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),e}}},9126:(t,e,n)=>{var r;try{r={clone:n(6678),constant:n(5703),each:n(6073),filter:n(3105),has:n(8721),isArray:n(1469),isEmpty:n(1609),isFunction:n(3560),isUndefined:n(2353),keys:n(3674),map:n(5161),reduce:n(4061),size:n(4238),transform:n(8718),union:n(3386),values:n(2628)}}catch(t){}r||(r=window._),t.exports=r},9631:t=>{t.exports="2.1.8"},8552:(t,e,n)=>{var r=n(852)(n(5639),"DataView");t.exports=r},1989:(t,e,n)=>{var r=n(1789),i=n(401),a=n(7667),o=n(1327),s=n(1866);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c},8407:(t,e,n)=>{var r=n(7040),i=n(4125),a=n(2117),o=n(7518),s=n(4705);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c},7071:(t,e,n)=>{var r=n(852)(n(5639),"Map");t.exports=r},3369:(t,e,n)=>{var r=n(4785),i=n(1285),a=n(6e3),o=n(9916),s=n(5265);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c},3818:(t,e,n)=>{var r=n(852)(n(5639),"Promise");t.exports=r},8525:(t,e,n)=>{var r=n(852)(n(5639),"Set");t.exports=r},8668:(t,e,n)=>{var r=n(3369),i=n(619),a=n(2385);function o(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}o.prototype.add=o.prototype.push=i,o.prototype.has=a,t.exports=o},6384:(t,e,n)=>{var r=n(8407),i=n(7465),a=n(3779),o=n(7599),s=n(4758),c=n(4309);function l(t){var e=this.__data__=new r(t);this.size=e.size}l.prototype.clear=i,l.prototype.delete=a,l.prototype.get=o,l.prototype.has=s,l.prototype.set=c,t.exports=l},2705:(t,e,n)=>{var r=n(5639).Symbol;t.exports=r},1149:(t,e,n)=>{var r=n(5639).Uint8Array;t.exports=r},577:(t,e,n)=>{var r=n(852)(n(5639),"WeakMap");t.exports=r},6874:t=>{t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},7412:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},4963:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,a=[];++n<r;){var o=t[n];e(o,n,t)&&(a[i++]=o)}return a}},7443:(t,e,n)=>{var r=n(2118);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},1196:t=>{t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},4636:(t,e,n)=>{var r=n(2545),i=n(5694),a=n(1469),o=n(4144),s=n(5776),c=n(6719),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=a(t),A=!n&&i(t),u=!n&&!A&&o(t),h=!n&&!A&&!u&&c(t),f=n||A||u||h,d=f?r(t.length,String):[],p=d.length;for(var g in t)!e&&!l.call(t,g)||f&&("length"==g||u&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,p))||d.push(g);return d}},9932:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},2488:t=>{t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},2663:t=>{t.exports=function(t,e,n,r){var i=-1,a=null==t?0:t.length;for(r&&a&&(n=t[++i]);++i<a;)n=e(n,t[i],i,t);return n}},2908:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},8983:(t,e,n)=>{var r=n(371)("length");t.exports=r},6556:(t,e,n)=>{var r=n(9465),i=n(7813);t.exports=function(t,e,n){(void 0!==n&&!i(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}},4865:(t,e,n)=>{var r=n(9465),i=n(7813),a=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var o=t[e];a.call(t,e)&&i(o,n)&&(void 0!==n||e in t)||r(t,e,n)}},8470:(t,e,n)=>{var r=n(7813);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},4037:(t,e,n)=>{var r=n(8363),i=n(3674);t.exports=function(t,e){return t&&r(e,i(e),t)}},3886:(t,e,n)=>{var r=n(8363),i=n(1704);t.exports=function(t,e){return t&&r(e,i(e),t)}},9465:(t,e,n)=>{var r=n(8777);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},5990:(t,e,n)=>{var r=n(6384),i=n(7412),a=n(4865),o=n(4037),s=n(3886),c=n(4626),l=n(278),A=n(8805),u=n(1911),h=n(8234),f=n(6904),d=n(4160),p=n(3824),g=n(9148),m=n(8517),y=n(1469),v=n(4144),b=n(6688),_=n(3218),w=n(2928),E=n(3674),C=n(1704),x="[object Arguments]",B="[object Function]",T="[object Object]",k={};k[x]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k[T]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k[B]=k["[object WeakMap]"]=!1,t.exports=function t(e,n,S,I,L,F){var N,O=1&n,D=2&n,M=4&n;if(S&&(N=L?S(e,I,L,F):S(e)),void 0!==N)return N;if(!_(e))return e;var R=y(e);if(R){if(N=p(e),!O)return l(e,N)}else{var U=d(e),P=U==B||"[object GeneratorFunction]"==U;if(v(e))return c(e,O);if(U==T||U==x||P&&!L){if(N=D||P?{}:m(e),!O)return D?u(e,s(N,e)):A(e,o(N,e))}else{if(!k[U])return L?e:{};N=g(e,U,O)}}F||(F=new r);var H=F.get(e);if(H)return H;F.set(e,N),w(e)?e.forEach((function(r){N.add(t(r,n,S,r,e,F))})):b(e)&&e.forEach((function(r,i){N.set(i,t(r,n,S,i,e,F))}));var Q=R?void 0:(M?D?f:h:D?C:E)(e);return i(Q||e,(function(r,i){Q&&(r=e[i=r]),a(N,i,t(r,n,S,i,e,F))})),N}},3118:(t,e,n)=>{var r=n(3218),i=Object.create,a=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=a},9881:(t,e,n)=>{var r=n(7816),i=n(9291)(r);t.exports=i},6029:(t,e,n)=>{var r=n(3448);t.exports=function(t,e,n){for(var i=-1,a=t.length;++i<a;){var o=t[i],s=e(o);if(null!=s&&(void 0===c?s==s&&!r(s):n(s,c)))var c=s,l=o}return l}},760:(t,e,n)=>{var r=n(9881);t.exports=function(t,e){var n=[];return r(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}},1848:t=>{t.exports=function(t,e,n,r){for(var i=t.length,a=n+(r?1:-1);r?a--:++a<i;)if(e(t[a],a,t))return a;return-1}},1078:(t,e,n)=>{var r=n(2488),i=n(7285);t.exports=function t(e,n,a,o,s){var c=-1,l=e.length;for(a||(a=i),s||(s=[]);++c<l;){var A=e[c];n>0&&a(A)?n>1?t(A,n-1,a,o,s):r(s,A):o||(s[s.length]=A)}return s}},8483:(t,e,n)=>{var r=n(5063)();t.exports=r},7816:(t,e,n)=>{var r=n(8483),i=n(3674);t.exports=function(t,e){return t&&r(t,e,i)}},7786:(t,e,n)=>{var r=n(1811),i=n(327);t.exports=function(t,e){for(var n=0,a=(e=r(e,t)).length;null!=t&&n<a;)t=t[i(e[n++])];return n&&n==a?t:void 0}},8866:(t,e,n)=>{var r=n(2488),i=n(1469);t.exports=function(t,e,n){var a=e(t);return i(t)?a:r(a,n(t))}},4239:(t,e,n)=>{var r=n(2705),i=n(9607),a=n(2333),o=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?i(t):a(t)}},3325:t=>{t.exports=function(t,e){return t>e}},8565:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t,n){return null!=t&&e.call(t,n)}},13:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},2118:(t,e,n)=>{var r=n(1848),i=n(2722),a=n(2351);t.exports=function(t,e,n){return e==e?a(t,e,n):r(t,i,n)}},9454:(t,e,n)=>{var r=n(4239),i=n(7005);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},939:(t,e,n)=>{var r=n(2492),i=n(7005);t.exports=function t(e,n,a,o,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,a,o,t,s))}},2492:(t,e,n)=>{var r=n(6384),i=n(7114),a=n(8351),o=n(6096),s=n(4160),c=n(1469),l=n(4144),A=n(6719),u="[object Arguments]",h="[object Array]",f="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,p,g,m){var y=c(t),v=c(e),b=y?h:s(t),_=v?h:s(e),w=(b=b==u?f:b)==f,E=(_=_==u?f:_)==f,C=b==_;if(C&&l(t)){if(!l(e))return!1;y=!0,w=!1}if(C&&!w)return m||(m=new r),y||A(t)?i(t,e,n,p,g,m):a(t,e,b,n,p,g,m);if(!(1&n)){var x=w&&d.call(t,"__wrapped__"),B=E&&d.call(e,"__wrapped__");if(x||B){var T=x?t.value():t,k=B?e.value():e;return m||(m=new r),g(T,k,n,p,m)}}return!!C&&(m||(m=new r),o(t,e,n,p,g,m))}},5588:(t,e,n)=>{var r=n(4160),i=n(7005);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},2958:(t,e,n)=>{var r=n(6384),i=n(939);t.exports=function(t,e,n,a){var o=n.length,s=o,c=!a;if(null==t)return!s;for(t=Object(t);o--;){var l=n[o];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++o<s;){var A=(l=n[o])[0],u=t[A],h=l[1];if(c&&l[2]){if(void 0===u&&!(A in t))return!1}else{var f=new r;if(a)var d=a(u,h,A,t,e,f);if(!(void 0===d?i(h,u,3,a,f):d))return!1}}return!0}},2722:t=>{t.exports=function(t){return t!=t}},8458:(t,e,n)=>{var r=n(3560),i=n(5346),a=n(3218),o=n(346),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,A=c.toString,u=l.hasOwnProperty,h=RegExp("^"+A.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!a(t)||i(t))&&(r(t)?h:s).test(o(t))}},9221:(t,e,n)=>{var r=n(4160),i=n(7005);t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},8749:(t,e,n)=>{var r=n(4239),i=n(1780),a=n(7005),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,t.exports=function(t){return a(t)&&i(t.length)&&!!o[r(t)]}},7206:(t,e,n)=>{var r=n(1573),i=n(6432),a=n(6557),o=n(1469),s=n(9601);t.exports=function(t){return"function"==typeof t?t:null==t?a:"object"==typeof t?o(t)?i(t[0],t[1]):r(t):s(t)}},280:(t,e,n)=>{var r=n(5726),i=n(6916),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))a.call(t,n)&&"constructor"!=n&&e.push(n);return e}},313:(t,e,n)=>{var r=n(3218),i=n(5726),a=n(3498),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return a(t);var e=i(t),n=[];for(var s in t)("constructor"!=s||!e&&o.call(t,s))&&n.push(s);return n}},433:t=>{t.exports=function(t,e){return t<e}},9199:(t,e,n)=>{var r=n(9881),i=n(8612);t.exports=function(t,e){var n=-1,a=i(t)?Array(t.length):[];return r(t,(function(t,r,i){a[++n]=e(t,r,i)})),a}},1573:(t,e,n)=>{var r=n(2958),i=n(1499),a=n(2634);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?a(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},6432:(t,e,n)=>{var r=n(939),i=n(7361),a=n(9095),o=n(5403),s=n(9162),c=n(2634),l=n(327);t.exports=function(t,e){return o(t)&&s(e)?c(l(t),e):function(n){var o=i(n,t);return void 0===o&&o===e?a(n,t):r(e,o,3)}}},2980:(t,e,n)=>{var r=n(6384),i=n(6556),a=n(8483),o=n(9783),s=n(3218),c=n(1704),l=n(6390);t.exports=function t(e,n,A,u,h){e!==n&&a(n,(function(a,c){if(h||(h=new r),s(a))o(e,n,c,A,t,u,h);else{var f=u?u(l(e,c),a,c+"",e,n,h):void 0;void 0===f&&(f=a),i(e,c,f)}}),c)}},9783:(t,e,n)=>{var r=n(6556),i=n(4626),a=n(7133),o=n(278),s=n(8517),c=n(5694),l=n(1469),A=n(9246),u=n(4144),h=n(3560),f=n(3218),d=n(8630),p=n(6719),g=n(6390),m=n(3678);t.exports=function(t,e,n,y,v,b,_){var w=g(t,n),E=g(e,n),C=_.get(E);if(C)r(t,n,C);else{var x=b?b(w,E,n+"",t,e,_):void 0,B=void 0===x;if(B){var T=l(E),k=!T&&u(E),S=!T&&!k&&p(E);x=E,T||k||S?l(w)?x=w:A(w)?x=o(w):k?(B=!1,x=i(E,!0)):S?(B=!1,x=a(E,!0)):x=[]:d(E)||c(E)?(x=w,c(w)?x=m(w):f(w)&&!h(w)||(x=s(E))):B=!1}B&&(_.set(E,x),v(x,E,y,b,_),_.delete(E)),r(t,n,x)}}},9556:(t,e,n)=>{var r=n(9932),i=n(7786),a=n(7206),o=n(9199),s=n(1131),c=n(1717),l=n(5022),A=n(6557),u=n(1469);t.exports=function(t,e,n){e=e.length?r(e,(function(t){return u(t)?function(e){return i(e,1===t.length?t[0]:t)}:t})):[A];var h=-1;e=r(e,c(a));var f=o(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++h,value:t}}));return s(f,(function(t,e){return l(t,e,n)}))}},5970:(t,e,n)=>{var r=n(3012),i=n(9095);t.exports=function(t,e){return r(t,e,(function(e,n){return i(t,n)}))}},3012:(t,e,n)=>{var r=n(7786),i=n(611),a=n(1811);t.exports=function(t,e,n){for(var o=-1,s=e.length,c={};++o<s;){var l=e[o],A=r(t,l);n(A,l)&&i(c,a(l,t),A)}return c}},371:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},9152:(t,e,n)=>{var r=n(7786);t.exports=function(t){return function(e){return r(e,t)}}},98:t=>{var e=Math.ceil,n=Math.max;t.exports=function(t,r,i,a){for(var o=-1,s=n(e((r-t)/(i||1)),0),c=Array(s);s--;)c[a?s:++o]=t,t+=i;return c}},107:t=>{t.exports=function(t,e,n,r,i){return i(t,(function(t,i,a){n=r?(r=!1,t):e(n,t,i,a)})),n}},5976:(t,e,n)=>{var r=n(6557),i=n(5357),a=n(61);t.exports=function(t,e){return a(i(t,e,r),t+"")}},611:(t,e,n)=>{var r=n(4865),i=n(1811),a=n(5776),o=n(3218),s=n(327);t.exports=function(t,e,n,c){if(!o(t))return t;for(var l=-1,A=(e=i(e,t)).length,u=A-1,h=t;null!=h&&++l<A;){var f=s(e[l]),d=n;if("__proto__"===f||"constructor"===f||"prototype"===f)return t;if(l!=u){var p=h[f];void 0===(d=c?c(p,f,h):void 0)&&(d=o(p)?p:a(e[l+1])?[]:{})}r(h,f,d),h=h[f]}return t}},6560:(t,e,n)=>{var r=n(5703),i=n(8777),a=n(6557),o=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:a;t.exports=o},1131:t=>{t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},2545:t=>{t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},531:(t,e,n)=>{var r=n(2705),i=n(9932),a=n(1469),o=n(3448),s=r?r.prototype:void 0,c=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(a(e))return i(e,t)+"";if(o(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},7561:(t,e,n)=>{var r=n(7990),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},1717:t=>{t.exports=function(t){return function(e){return t(e)}}},5652:(t,e,n)=>{var r=n(8668),i=n(7443),a=n(1196),o=n(4757),s=n(3593),c=n(1814);t.exports=function(t,e,n){var l=-1,A=i,u=t.length,h=!0,f=[],d=f;if(n)h=!1,A=a;else if(u>=200){var p=e?null:s(t);if(p)return c(p);h=!1,A=o,d=new r}else d=e?[]:f;t:for(;++l<u;){var g=t[l],m=e?e(g):g;if(g=n||0!==g?g:0,h&&m==m){for(var y=d.length;y--;)if(d[y]===m)continue t;e&&d.push(m),f.push(g)}else A(d,m,n)||(d!==f&&d.push(m),f.push(g))}return f}},7415:(t,e,n)=>{var r=n(9932);t.exports=function(t,e){return r(e,(function(e){return t[e]}))}},1757:t=>{t.exports=function(t,e,n){for(var r=-1,i=t.length,a=e.length,o={};++r<i;){var s=r<a?e[r]:void 0;n(o,t[r],s)}return o}},4757:t=>{t.exports=function(t,e){return t.has(e)}},4290:(t,e,n)=>{var r=n(6557);t.exports=function(t){return"function"==typeof t?t:r}},1811:(t,e,n)=>{var r=n(1469),i=n(5403),a=n(5514),o=n(9833);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:a(o(t))}},4318:(t,e,n)=>{var r=n(1149);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},4626:(t,e,n)=>{t=n.nmd(t);var r=n(5639),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,o=a&&a.exports===i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=s?s(n):new t.constructor(n);return t.copy(r),r}},7157:(t,e,n)=>{var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},3147:t=>{var e=/\w*$/;t.exports=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}},419:(t,e,n)=>{var r=n(2705),i=r?r.prototype:void 0,a=i?i.valueOf:void 0;t.exports=function(t){return a?Object(a.call(t)):{}}},7133:(t,e,n)=>{var r=n(4318);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},6393:(t,e,n)=>{var r=n(3448);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,a=t==t,o=r(t),s=void 0!==e,c=null===e,l=e==e,A=r(e);if(!c&&!A&&!o&&t>e||o&&s&&l&&!c&&!A||i&&s&&l||!n&&l||!a)return 1;if(!i&&!o&&!A&&t<e||A&&n&&a&&!i&&!o||c&&n&&a||!s&&a||!l)return-1}return 0}},5022:(t,e,n)=>{var r=n(6393);t.exports=function(t,e,n){for(var i=-1,a=t.criteria,o=e.criteria,s=a.length,c=n.length;++i<s;){var l=r(a[i],o[i]);if(l)return i>=c?l:l*("desc"==n[i]?-1:1)}return t.index-e.index}},278:t=>{t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},8363:(t,e,n)=>{var r=n(4865),i=n(9465);t.exports=function(t,e,n,a){var o=!n;n||(n={});for(var s=-1,c=e.length;++s<c;){var l=e[s],A=a?a(n[l],t[l],l,n,t):void 0;void 0===A&&(A=t[l]),o?i(n,l,A):r(n,l,A)}return n}},8805:(t,e,n)=>{var r=n(8363),i=n(9551);t.exports=function(t,e){return r(t,i(t),e)}},1911:(t,e,n)=>{var r=n(8363),i=n(1442);t.exports=function(t,e){return r(t,i(t),e)}},4429:(t,e,n)=>{var r=n(5639)["__core-js_shared__"];t.exports=r},1463:(t,e,n)=>{var r=n(5976),i=n(6612);t.exports=function(t){return r((function(e,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(a--,o):void 0,s&&i(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),e=Object(e);++r<a;){var c=n[r];c&&t(e,c,r,o)}return e}))}},9291:(t,e,n)=>{var r=n(8612);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var a=n.length,o=e?a:-1,s=Object(n);(e?o--:++o<a)&&!1!==i(s[o],o,s););return n}}},5063:t=>{t.exports=function(t){return function(e,n,r){for(var i=-1,a=Object(e),o=r(e),s=o.length;s--;){var c=o[t?s:++i];if(!1===n(a[c],c,a))break}return e}}},7740:(t,e,n)=>{var r=n(7206),i=n(8612),a=n(3674);t.exports=function(t){return function(e,n,o){var s=Object(e);if(!i(e)){var c=r(n,3);e=a(e),n=function(t){return c(s[t],t,s)}}var l=t(e,n,o);return l>-1?s[c?e[l]:l]:void 0}}},7445:(t,e,n)=>{var r=n(98),i=n(6612),a=n(8601);t.exports=function(t){return function(e,n,o){return o&&"number"!=typeof o&&i(e,n,o)&&(n=o=void 0),e=a(e),void 0===n?(n=e,e=0):n=a(n),o=void 0===o?e<n?1:-1:a(o),r(e,n,o,t)}}},3593:(t,e,n)=>{var r=n(8525),i=n(308),a=n(1814),o=r&&1/a(new r([,-0]))[1]==1/0?function(t){return new r(t)}:i;t.exports=o},8777:(t,e,n)=>{var r=n(852),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},7114:(t,e,n)=>{var r=n(8668),i=n(2908),a=n(4757);t.exports=function(t,e,n,o,s,c){var l=1&n,A=t.length,u=e.length;if(A!=u&&!(l&&u>A))return!1;var h=c.get(t),f=c.get(e);if(h&&f)return h==e&&f==t;var d=-1,p=!0,g=2&n?new r:void 0;for(c.set(t,e),c.set(e,t);++d<A;){var m=t[d],y=e[d];if(o)var v=l?o(y,m,d,e,t,c):o(m,y,d,t,e,c);if(void 0!==v){if(v)continue;p=!1;break}if(g){if(!i(e,(function(t,e){if(!a(g,e)&&(m===t||s(m,t,n,o,c)))return g.push(e)}))){p=!1;break}}else if(m!==y&&!s(m,y,n,o,c)){p=!1;break}}return c.delete(t),c.delete(e),p}},8351:(t,e,n)=>{var r=n(2705),i=n(1149),a=n(7813),o=n(7114),s=n(8776),c=n(1814),l=r?r.prototype:void 0,A=l?l.valueOf:void 0;t.exports=function(t,e,n,r,l,u,h){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!u(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var f=s;case"[object Set]":var d=1&r;if(f||(f=c),t.size!=e.size&&!d)return!1;var p=h.get(t);if(p)return p==e;r|=2,h.set(t,e);var g=o(f(t),f(e),r,l,u,h);return h.delete(t),g;case"[object Symbol]":if(A)return A.call(t)==A.call(e)}return!1}},6096:(t,e,n)=>{var r=n(8234),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,a,o,s){var c=1&n,l=r(t),A=l.length;if(A!=r(e).length&&!c)return!1;for(var u=A;u--;){var h=l[u];if(!(c?h in e:i.call(e,h)))return!1}var f=s.get(t),d=s.get(e);if(f&&d)return f==e&&d==t;var p=!0;s.set(t,e),s.set(e,t);for(var g=c;++u<A;){var m=t[h=l[u]],y=e[h];if(a)var v=c?a(y,m,h,e,t,s):a(m,y,h,t,e,s);if(!(void 0===v?m===y||o(m,y,n,a,s):v)){p=!1;break}g||(g="constructor"==h)}if(p&&!g){var b=t.constructor,_=e.constructor;b==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(p=!1)}return s.delete(t),s.delete(e),p}},9021:(t,e,n)=>{var r=n(5564),i=n(5357),a=n(61);t.exports=function(t){return a(i(t,void 0,r),t+"")}},1957:(t,e,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},8234:(t,e,n)=>{var r=n(8866),i=n(9551),a=n(3674);t.exports=function(t){return r(t,a,i)}},6904:(t,e,n)=>{var r=n(8866),i=n(1442),a=n(1704);t.exports=function(t){return r(t,a,i)}},5050:(t,e,n)=>{var r=n(7019);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},1499:(t,e,n)=>{var r=n(9162),i=n(3674);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var a=e[n],o=t[a];e[n]=[a,o,r(o)]}return e}},852:(t,e,n)=>{var r=n(8458),i=n(7801);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},5924:(t,e,n)=>{var r=n(5569)(Object.getPrototypeOf,Object);t.exports=r},9607:(t,e,n)=>{var r=n(2705),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=a.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=o.call(t);return r&&(e?t[s]=n:delete t[s]),i}},9551:(t,e,n)=>{var r=n(4963),i=n(479),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(t){return null==t?[]:(t=Object(t),r(o(t),(function(e){return a.call(t,e)})))}:i;t.exports=s},1442:(t,e,n)=>{var r=n(2488),i=n(5924),a=n(9551),o=n(479),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,a(t)),t=i(t);return e}:o;t.exports=s},4160:(t,e,n)=>{var r=n(8552),i=n(7071),a=n(3818),o=n(8525),s=n(577),c=n(4239),l=n(346),A="[object Map]",u="[object Promise]",h="[object Set]",f="[object WeakMap]",d="[object DataView]",p=l(r),g=l(i),m=l(a),y=l(o),v=l(s),b=c;(r&&b(new r(new ArrayBuffer(1)))!=d||i&&b(new i)!=A||a&&b(a.resolve())!=u||o&&b(new o)!=h||s&&b(new s)!=f)&&(b=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,r=n?l(n):"";if(r)switch(r){case p:return d;case g:return A;case m:return u;case y:return h;case v:return f}return e}),t.exports=b},7801:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},222:(t,e,n)=>{var r=n(1811),i=n(5694),a=n(1469),o=n(5776),s=n(1780),c=n(327);t.exports=function(t,e,n){for(var l=-1,A=(e=r(e,t)).length,u=!1;++l<A;){var h=c(e[l]);if(!(u=null!=t&&n(t,h)))break;t=t[h]}return u||++l!=A?u:!!(A=null==t?0:t.length)&&s(A)&&o(h,A)&&(a(t)||i(t))}},2689:t=>{var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},1789:(t,e,n)=>{var r=n(4536);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:(t,e,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},1327:(t,e,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},1866:(t,e,n)=>{var r=n(4536);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},3824:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},9148:(t,e,n)=>{var r=n(4318),i=n(7157),a=n(3147),o=n(419),s=n(7133);t.exports=function(t,e,n){var c=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new c(+t);case"[object DataView]":return i(t,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 s(t,n);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(t);case"[object RegExp]":return a(t);case"[object Symbol]":return o(t)}}},8517:(t,e,n)=>{var r=n(3118),i=n(5924),a=n(5726);t.exports=function(t){return"function"!=typeof t.constructor||a(t)?{}:r(i(t))}},7285:(t,e,n)=>{var r=n(2705),i=n(5694),a=n(1469),o=r?r.isConcatSpreadable:void 0;t.exports=function(t){return a(t)||i(t)||!!(o&&t&&t[o])}},5776:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},6612:(t,e,n)=>{var r=n(7813),i=n(8612),a=n(5776),o=n(3218);t.exports=function(t,e,n){if(!o(n))return!1;var s=typeof e;return!!("number"==s?i(n)&&a(e,n.length):"string"==s&&e in n)&&r(n[e],t)}},5403:(t,e,n)=>{var r=n(1469),i=n(3448),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||o.test(t)||!a.test(t)||null!=e&&t in Object(e)}},7019:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:(t,e,n)=>{var r,i=n(4429),a=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!a&&a in t}},5726:t=>{var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},9162:(t,e,n)=>{var r=n(3218);t.exports=function(t){return t==t&&!r(t)}},7040:t=>{t.exports=function(){this.__data__=[],this.size=0}},4125:(t,e,n)=>{var r=n(8470),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},2117:(t,e,n)=>{var r=n(8470);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},7518:(t,e,n)=>{var r=n(8470);t.exports=function(t){return r(this.__data__,t)>-1}},4705:(t,e,n)=>{var r=n(8470);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},4785:(t,e,n)=>{var r=n(1989),i=n(8407),a=n(7071);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},1285:(t,e,n)=>{var r=n(5050);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},6e3:(t,e,n)=>{var r=n(5050);t.exports=function(t){return r(this,t).get(t)}},9916:(t,e,n)=>{var r=n(5050);t.exports=function(t){return r(this,t).has(t)}},5265:(t,e,n)=>{var r=n(5050);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},8776:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},2634:t=>{t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},4523:(t,e,n)=>{var r=n(8306);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},4536:(t,e,n)=>{var r=n(852)(Object,"create");t.exports=r},6916:(t,e,n)=>{var r=n(5569)(Object.keys,Object);t.exports=r},3498:t=>{t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},1167:(t,e,n)=>{t=n.nmd(t);var r=n(1957),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,o=a&&a.exports===i&&r.process,s=function(){try{return a&&a.require&&a.require("util").types||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=s},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:t=>{t.exports=function(t,e){return function(n){return t(e(n))}}},5357:(t,e,n)=>{var r=n(6874),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var a=arguments,o=-1,s=i(a.length-e,0),c=Array(s);++o<s;)c[o]=a[e+o];o=-1;for(var l=Array(e+1);++o<e;)l[o]=a[o];return l[e]=n(c),r(t,this,l)}}},5639:(t,e,n)=>{var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();t.exports=a},6390:t=>{t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},619:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2385:t=>{t.exports=function(t){return this.__data__.has(t)}},1814:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},61:(t,e,n)=>{var r=n(6560),i=n(1275)(r);t.exports=i},1275:t=>{var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var i=e(),a=16-(i-r);if(r=i,a>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},7465:(t,e,n)=>{var r=n(8407);t.exports=function(){this.__data__=new r,this.size=0}},3779:t=>{t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},7599:t=>{t.exports=function(t){return this.__data__.get(t)}},4758:t=>{t.exports=function(t){return this.__data__.has(t)}},4309:(t,e,n)=>{var r=n(8407),i=n(7071),a=n(3369);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new a(o)}return n.set(t,e),this.size=n.size,this}},2351:t=>{t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},8016:(t,e,n)=>{var r=n(8983),i=n(2689),a=n(1903);t.exports=function(t){return i(t)?a(t):r(t)}},5514:(t,e,n)=>{var r=n(4523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(a,"$1"):n||t)})),e}));t.exports=o},327:(t,e,n)=>{var r=n(3448);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},346:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7990:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},1903:t=>{var e="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\\ud83c[\\udffb-\\udfff]",r="[^\\ud800-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",o="(?:"+e+"|"+n+")?",s="[\\ufe0e\\ufe0f]?",c=s+o+"(?:\\u200d(?:"+[r,i,a].join("|")+")"+s+o+")*",l="(?:"+[r+e+"?",e,i,a,"[\\ud800-\\udfff]"].join("|")+")",A=RegExp(n+"(?="+n+")|"+l+c,"g");t.exports=function(t){for(var e=A.lastIndex=0;A.test(t);)++e;return e}},6678:(t,e,n)=>{var r=n(5990);t.exports=function(t){return r(t,4)}},361:(t,e,n)=>{var r=n(5990);t.exports=function(t){return r(t,5)}},5703:t=>{t.exports=function(t){return function(){return t}}},1747:(t,e,n)=>{var r=n(5976),i=n(7813),a=n(6612),o=n(1704),s=Object.prototype,c=s.hasOwnProperty,l=r((function(t,e){t=Object(t);var n=-1,r=e.length,l=r>2?e[2]:void 0;for(l&&a(e[0],e[1],l)&&(r=1);++n<r;)for(var A=e[n],u=o(A),h=-1,f=u.length;++h<f;){var d=u[h],p=t[d];(void 0===p||i(p,s[d])&&!c.call(t,d))&&(t[d]=A[d])}return t}));t.exports=l},6073:(t,e,n)=>{t.exports=n(4486)},7813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},3105:(t,e,n)=>{var r=n(4963),i=n(760),a=n(7206),o=n(1469);t.exports=function(t,e){return(o(t)?r:i)(t,a(e,3))}},3311:(t,e,n)=>{var r=n(7740)(n(998));t.exports=r},998:(t,e,n)=>{var r=n(1848),i=n(7206),a=n(554),o=Math.max;t.exports=function(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var c=null==n?0:a(n);return c<0&&(c=o(s+c,0)),r(t,i(e,3),c)}},5564:(t,e,n)=>{var r=n(1078);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},4486:(t,e,n)=>{var r=n(7412),i=n(9881),a=n(4290),o=n(1469);t.exports=function(t,e){return(o(t)?r:i)(t,a(e))}},2620:(t,e,n)=>{var r=n(8483),i=n(4290),a=n(1704);t.exports=function(t,e){return null==t?t:r(t,i(e),a)}},7361:(t,e,n)=>{var r=n(7786);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},8721:(t,e,n)=>{var r=n(8565),i=n(222);t.exports=function(t,e){return null!=t&&i(t,e,r)}},9095:(t,e,n)=>{var r=n(13),i=n(222);t.exports=function(t,e){return null!=t&&i(t,e,r)}},6557:t=>{t.exports=function(t){return t}},5694:(t,e,n)=>{var r=n(9454),i=n(7005),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return i(t)&&o.call(t,"callee")&&!s.call(t,"callee")};t.exports=c},1469:t=>{var e=Array.isArray;t.exports=e},8612:(t,e,n)=>{var r=n(3560),i=n(1780);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},9246:(t,e,n)=>{var r=n(8612),i=n(7005);t.exports=function(t){return i(t)&&r(t)}},4144:(t,e,n)=>{t=n.nmd(t);var r=n(5639),i=n(5062),a=e&&!e.nodeType&&e,o=a&&t&&!t.nodeType&&t,s=o&&o.exports===a?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;t.exports=c},1609:(t,e,n)=>{var r=n(280),i=n(4160),a=n(5694),o=n(1469),s=n(8612),c=n(4144),l=n(5726),A=n(6719),u=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(o(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||A(t)||a(t)))return!t.length;var e=i(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(l(t))return!r(t).length;for(var n in t)if(u.call(t,n))return!1;return!0}},3560:(t,e,n)=>{var r=n(4239),i=n(3218);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6688:(t,e,n)=>{var r=n(5588),i=n(1717),a=n(1167),o=a&&a.isMap,s=o?i(o):r;t.exports=s},3218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},8630:(t,e,n)=>{var r=n(4239),i=n(5924),a=n(7005),o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,A=c.call(Object);t.exports=function(t){if(!a(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=l.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==A}},2928:(t,e,n)=>{var r=n(9221),i=n(1717),a=n(1167),o=a&&a.isSet,s=o?i(o):r;t.exports=s},7037:(t,e,n)=>{var r=n(4239),i=n(1469),a=n(7005);t.exports=function(t){return"string"==typeof t||!i(t)&&a(t)&&"[object String]"==r(t)}},3448:(t,e,n)=>{var r=n(4239),i=n(7005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},6719:(t,e,n)=>{var r=n(8749),i=n(1717),a=n(1167),o=a&&a.isTypedArray,s=o?i(o):r;t.exports=s},2353:t=>{t.exports=function(t){return void 0===t}},3674:(t,e,n)=>{var r=n(4636),i=n(280),a=n(8612);t.exports=function(t){return a(t)?r(t):i(t)}},1704:(t,e,n)=>{var r=n(4636),i=n(313),a=n(8612);t.exports=function(t){return a(t)?r(t,!0):i(t)}},928:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},5161:(t,e,n)=>{var r=n(9932),i=n(7206),a=n(9199),o=n(1469);t.exports=function(t,e){return(o(t)?r:a)(t,i(e,3))}},6604:(t,e,n)=>{var r=n(9465),i=n(7816),a=n(7206);t.exports=function(t,e){var n={};return e=a(e,3),i(t,(function(t,i,a){r(n,i,e(t,i,a))})),n}},6162:(t,e,n)=>{var r=n(6029),i=n(3325),a=n(6557);t.exports=function(t){return t&&t.length?r(t,a,i):void 0}},8306:(t,e,n)=>{var r=n(3369);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},3857:(t,e,n)=>{var r=n(2980),i=n(1463)((function(t,e,n){r(t,e,n)}));t.exports=i},3632:(t,e,n)=>{var r=n(6029),i=n(433),a=n(6557);t.exports=function(t){return t&&t.length?r(t,a,i):void 0}},2762:(t,e,n)=>{var r=n(6029),i=n(7206),a=n(433);t.exports=function(t,e){return t&&t.length?r(t,i(e,2),a):void 0}},308:t=>{t.exports=function(){}},7771:(t,e,n)=>{var r=n(5639);t.exports=function(){return r.Date.now()}},9722:(t,e,n)=>{var r=n(5970),i=n(9021)((function(t,e){return null==t?{}:r(t,e)}));t.exports=i},9601:(t,e,n)=>{var r=n(371),i=n(9152),a=n(5403),o=n(327);t.exports=function(t){return a(t)?r(o(t)):i(t)}},6026:(t,e,n)=>{var r=n(7445)();t.exports=r},4061:(t,e,n)=>{var r=n(2663),i=n(9881),a=n(7206),o=n(107),s=n(1469);t.exports=function(t,e,n){var c=s(t)?r:o,l=arguments.length<3;return c(t,a(e,4),n,l,i)}},4238:(t,e,n)=>{var r=n(280),i=n(4160),a=n(8612),o=n(7037),s=n(8016);t.exports=function(t){if(null==t)return 0;if(a(t))return o(t)?s(t):t.length;var e=i(t);return"[object Map]"==e||"[object Set]"==e?t.size:r(t).length}},9734:(t,e,n)=>{var r=n(1078),i=n(9556),a=n(5976),o=n(6612),s=a((function(t,e){if(null==t)return[];var n=e.length;return n>1&&o(t,e[0],e[1])?e=[]:n>2&&o(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=s},479:t=>{t.exports=function(){return[]}},5062:t=>{t.exports=function(){return!1}},8601:(t,e,n)=>{var r=n(4841);t.exports=function(t){return t?1/0===(t=r(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},554:(t,e,n)=>{var r=n(8601);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},4841:(t,e,n)=>{var r=n(7561),i=n(3218),a=n(3448),o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(a(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=s.test(t);return n||c.test(t)?l(t.slice(2),n?2:8):o.test(t)?NaN:+t}},3678:(t,e,n)=>{var r=n(8363),i=n(1704);t.exports=function(t){return r(t,i(t))}},9833:(t,e,n)=>{var r=n(531);t.exports=function(t){return null==t?"":r(t)}},8718:(t,e,n)=>{var r=n(7412),i=n(3118),a=n(7816),o=n(7206),s=n(5924),c=n(1469),l=n(4144),A=n(3560),u=n(3218),h=n(6719);t.exports=function(t,e,n){var f=c(t),d=f||l(t)||h(t);if(e=o(e,4),null==n){var p=t&&t.constructor;n=d?f?new p:[]:u(t)&&A(p)?i(s(t)):{}}return(d?r:a)(t,(function(t,r,i){return e(n,t,r,i)})),n}},3386:(t,e,n)=>{var r=n(1078),i=n(5976),a=n(5652),o=n(9246),s=i((function(t){return a(r(t,1,o,!0))}));t.exports=s},3955:(t,e,n)=>{var r=n(9833),i=0;t.exports=function(t){var e=++i;return r(t)+e}},2628:(t,e,n)=>{var r=n(7415),i=n(3674);t.exports=function(t){return null==t?[]:r(t,i(t))}},7287:(t,e,n)=>{var r=n(4865),i=n(1757);t.exports=function(t,e){return i(t||[],e||[],r)}},9234:()=>{},1748:(t,e,n)=>{var r={"./locale":9234,"./locale.js":9234};function i(t){var e=a(t);return n(e)}function a(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=a,t.exports=i,i.id=1748},1941:function(t,e,n){(t=n.nmd(t)).exports=function(){var e,r;function i(){return e.apply(null,arguments)}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function l(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function A(t,e){var n,r=[];for(n=0;n<t.length;++n)r.push(e(t[n],n));return r}function u(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function h(t,e){for(var n in e)u(e,n)&&(t[n]=e[n]);return u(e,"toString")&&(t.toString=e.toString),u(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,n,r){return ve(t,e,n,r,!0).utc()}function d(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function p(t){if(null==t._isValid){var e=d(t),n=r.call(e.parsedDateParts,(function(t){return null!=t})),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function g(t){var e=f(NaN);return null!=t?h(d(e),t):d(e).userInvalidated=!0,e}r=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,r=0;r<n;r++)if(r in e&&t.call(this,e[r],r,e))return!0;return!1};var m=i.momentProperties=[];function y(t,e){var n,r,i;if(s(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),s(e._i)||(t._i=e._i),s(e._f)||(t._f=e._f),s(e._l)||(t._l=e._l),s(e._strict)||(t._strict=e._strict),s(e._tzm)||(t._tzm=e._tzm),s(e._isUTC)||(t._isUTC=e._isUTC),s(e._offset)||(t._offset=e._offset),s(e._pf)||(t._pf=d(e)),s(e._locale)||(t._locale=e._locale),0<m.length)for(n=0;n<m.length;n++)s(i=e[r=m[n]])||(t[r]=i);return t}var v=!1;function b(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,i.updateOffset(this),v=!1)}function _(t){return t instanceof b||null!=t&&null!=t._isAMomentObject}function w(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function E(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=w(e)),n}function C(t,e,n){var r,i=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),o=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&E(t[r])!==E(e[r]))&&o++;return o+a}function x(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function B(t,e){var n=!0;return h((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),n){for(var r,a=[],o=0;o<arguments.length;o++){if(r="","object"==typeof arguments[o]){for(var s in r+="\n["+o+"] ",arguments[0])r+=s+": "+arguments[0][s]+", ";r=r.slice(0,-2)}else r=arguments[o];a.push(r)}x(t+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var T,k={};function S(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),k[t]||(x(e),k[t]=!0)}function I(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function L(t,e){var n,r=h({},t);for(n in e)u(e,n)&&(o(t[n])&&o(e[n])?(r[n]={},h(r[n],t[n]),h(r[n],e[n])):null!=e[n]?r[n]=e[n]:delete r[n]);for(n in t)u(t,n)&&!u(e,n)&&o(t[n])&&(r[n]=h({},r[n]));return r}function F(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,T=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)u(t,e)&&n.push(e);return n};var N={};function O(t,e){var n=t.toLowerCase();N[n]=N[n+"s"]=N[e]=t}function D(t){return"string"==typeof t?N[t]||N[t.toLowerCase()]:void 0}function M(t){var e,n,r={};for(n in t)u(t,n)&&(e=D(n))&&(r[e]=t[n]);return r}var R={};function U(t,e){R[t]=e}function P(t,e,n){var r=""+Math.abs(t),i=e-r.length;return(0<=t?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Q=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,G={},j={};function $(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(j[t]=i),e&&(j[e[0]]=function(){return P(i.apply(this,arguments),e[1],e[2])}),n&&(j[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function K(t,e){return t.isValid()?(e=Y(e,t.localeData()),G[e]=G[e]||function(t){var e,n,r,i=t.match(H);for(e=0,n=i.length;e<n;e++)j[i[e]]?i[e]=j[i[e]]:i[e]=(r=i[e]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(e){var r,a="";for(r=0;r<n;r++)a+=I(i[r])?i[r].call(e,t):i[r];return a}}(e),G[e](t)):t.localeData().invalidDate()}function Y(t,e){var n=5;function r(t){return e.longDateFormat(t)||t}for(Q.lastIndex=0;0<=n&&Q.test(t);)t=t.replace(Q,r),Q.lastIndex=0,n-=1;return t}var z=/\d/,W=/\d\d/,V=/\d{3}/,q=/\d{4}/,X=/[+-]?\d{6}/,J=/\d\d?/,Z=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,nt=/\d{1,4}/,rt=/[+-]?\d{1,6}/,it=/\d+/,at=/[+-]?\d+/,ot=/Z|[+-]\d\d:?\d\d/gi,st=/Z|[+-]\d\d(?::?\d\d)?/gi,ct=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,lt={};function At(t,e,n){lt[t]=I(e)?e:function(t,r){return t&&n?n:e}}function ut(t,e){return u(lt,t)?lt[t](e._strict,e._locale):new RegExp(ht(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,r,i){return e||n||r||i}))))}function ht(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ft={};function dt(t,e){var n,r=e;for("string"==typeof t&&(t=[t]),c(e)&&(r=function(t,n){n[e]=E(t)}),n=0;n<t.length;n++)ft[t[n]]=r}function pt(t,e){dt(t,(function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)}))}function gt(t){return mt(t)?366:365}function mt(t){return t%4==0&&t%100!=0||t%400==0}$("Y",0,0,(function(){var t=this.year();return t<=9999?""+t:"+"+t})),$(0,["YY",2],0,(function(){return this.year()%100})),$(0,["YYYY",4],0,"year"),$(0,["YYYYY",5],0,"year"),$(0,["YYYYYY",6,!0],0,"year"),O("year","y"),U("year",1),At("Y",at),At("YY",J,W),At("YYYY",nt,q),At("YYYYY",rt,X),At("YYYYYY",rt,X),dt(["YYYYY","YYYYYY"],0),dt("YYYY",(function(t,e){e[0]=2===t.length?i.parseTwoDigitYear(t):E(t)})),dt("YY",(function(t,e){e[0]=i.parseTwoDigitYear(t)})),dt("Y",(function(t,e){e[0]=parseInt(t,10)})),i.parseTwoDigitYear=function(t){return E(t)+(68<E(t)?1900:2e3)};var yt,vt=bt("FullYear",!0);function bt(t,e){return function(n){return null!=n?(wt(this,t,n),i.updateOffset(this,e),this):_t(this,t)}}function _t(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function wt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&mt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Et(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function Et(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=(e%12+12)%12;return t+=(e-n)/12,1===n?mt(t)?29:28:31-n%7%2}yt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},$("M",["MM",2],"Mo",(function(){return this.month()+1})),$("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),$("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),O("month","M"),U("month",8),At("M",J),At("MM",J,W),At("MMM",(function(t,e){return e.monthsShortRegex(t)})),At("MMMM",(function(t,e){return e.monthsRegex(t)})),dt(["M","MM"],(function(t,e){e[1]=E(t)-1})),dt(["MMM","MMMM"],(function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[1]=i:d(n).invalidMonth=t}));var Ct=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,xt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Bt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Tt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=E(e);else if(!c(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),Et(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function kt(t){return null!=t?(Tt(this,t),i.updateOffset(this,!0),this):_t(this,"Month")}var St=ct,It=ct;function Lt(){function t(t,e){return e.length-t.length}var e,n,r=[],i=[],a=[];for(e=0;e<12;e++)n=f([2e3,e]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(r.sort(t),i.sort(t),a.sort(t),e=0;e<12;e++)r[e]=ht(r[e]),i[e]=ht(i[e]);for(e=0;e<24;e++)a[e]=ht(a[e]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Ft(t){var e;if(t<100&&0<=t){var n=Array.prototype.slice.call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function Nt(t,e,n){var r=7+e-n;return-(7+Ft(t,0,r).getUTCDay()-e)%7+r-1}function Ot(t,e,n,r,i){var a,o,s=1+7*(e-1)+(7+n-r)%7+Nt(t,r,i);return o=s<=0?gt(a=t-1)+s:s>gt(t)?(a=t+1,s-gt(t)):(a=t,s),{year:a,dayOfYear:o}}function Dt(t,e,n){var r,i,a=Nt(t.year(),e,n),o=Math.floor((t.dayOfYear()-a-1)/7)+1;return o<1?r=o+Mt(i=t.year()-1,e,n):o>Mt(t.year(),e,n)?(r=o-Mt(t.year(),e,n),i=t.year()+1):(i=t.year(),r=o),{week:r,year:i}}function Mt(t,e,n){var r=Nt(t,e,n),i=Nt(t+1,e,n);return(gt(t)-r+i)/7}function Rt(t,e){return t.slice(e,7).concat(t.slice(0,e))}$("w",["ww",2],"wo","week"),$("W",["WW",2],"Wo","isoWeek"),O("week","w"),O("isoWeek","W"),U("week",5),U("isoWeek",5),At("w",J),At("ww",J,W),At("W",J),At("WW",J,W),pt(["w","ww","W","WW"],(function(t,e,n,r){e[r.substr(0,1)]=E(t)})),$("d",0,"do","day"),$("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),$("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),$("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),O("day","d"),O("weekday","e"),O("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),At("d",J),At("e",J),At("E",J),At("dd",(function(t,e){return e.weekdaysMinRegex(t)})),At("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),At("dddd",(function(t,e){return e.weekdaysRegex(t)})),pt(["dd","ddd","dddd"],(function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:d(n).invalidWeekday=t})),pt(["d","e","E"],(function(t,e,n,r){e[r]=E(t)}));var Ut="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Pt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ht="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Qt=ct,Gt=ct,jt=ct;function $t(){function t(t,e){return e.length-t.length}var e,n,r,i,a,o=[],s=[],c=[],l=[];for(e=0;e<7;e++)n=f([2e3,1]).day(e),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),a=this.weekdays(n,""),o.push(r),s.push(i),c.push(a),l.push(r),l.push(i),l.push(a);for(o.sort(t),s.sort(t),c.sort(t),l.sort(t),e=0;e<7;e++)s[e]=ht(s[e]),c[e]=ht(c[e]),l[e]=ht(l[e]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Kt(){return this.hours()%12||12}function Yt(t,e){$(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function zt(t,e){return e._meridiemParse}$("H",["HH",2],0,"hour"),$("h",["hh",2],0,Kt),$("k",["kk",2],0,(function(){return this.hours()||24})),$("hmm",0,0,(function(){return""+Kt.apply(this)+P(this.minutes(),2)})),$("hmmss",0,0,(function(){return""+Kt.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)})),$("Hmm",0,0,(function(){return""+this.hours()+P(this.minutes(),2)})),$("Hmmss",0,0,(function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)})),Yt("a",!0),Yt("A",!1),O("hour","h"),U("hour",13),At("a",zt),At("A",zt),At("H",J),At("h",J),At("k",J),At("HH",J,W),At("hh",J,W),At("kk",J,W),At("hmm",Z),At("hmmss",tt),At("Hmm",Z),At("Hmmss",tt),dt(["H","HH"],3),dt(["k","kk"],(function(t,e,n){var r=E(t);e[3]=24===r?0:r})),dt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),dt(["h","hh"],(function(t,e,n){e[3]=E(t),d(n).bigHour=!0})),dt("hmm",(function(t,e,n){var r=t.length-2;e[3]=E(t.substr(0,r)),e[4]=E(t.substr(r)),d(n).bigHour=!0})),dt("hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[3]=E(t.substr(0,r)),e[4]=E(t.substr(r,2)),e[5]=E(t.substr(i)),d(n).bigHour=!0})),dt("Hmm",(function(t,e,n){var r=t.length-2;e[3]=E(t.substr(0,r)),e[4]=E(t.substr(r))})),dt("Hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[3]=E(t.substr(0,r)),e[4]=E(t.substr(r,2)),e[5]=E(t.substr(i))}));var Wt,Vt=bt("Hours",!0),qt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:xt,monthsShort:Bt,week:{dow:0,doy:6},weekdays:Ut,weekdaysMin:Ht,weekdaysShort:Pt,meridiemParse:/[ap]\.?m?\.?/i},Xt={},Jt={};function Zt(t){return t?t.toLowerCase().replace("_","-"):t}function te(e){var r=null;if(!Xt[e]&&t&&t.exports)try{r=Wt._abbr,n(1748)("./"+e),ee(r)}catch(e){}return Xt[e]}function ee(t,e){var n;return t&&((n=s(e)?re(t):ne(t,e))?Wt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Wt._abbr}function ne(t,e){if(null===e)return delete Xt[t],null;var n,r=qt;if(e.abbr=t,null!=Xt[t])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Xt[t]._config;else if(null!=e.parentLocale)if(null!=Xt[e.parentLocale])r=Xt[e.parentLocale]._config;else{if(null==(n=te(e.parentLocale)))return Jt[e.parentLocale]||(Jt[e.parentLocale]=[]),Jt[e.parentLocale].push({name:t,config:e}),null;r=n._config}return Xt[t]=new F(L(r,e)),Jt[t]&&Jt[t].forEach((function(t){ne(t.name,t.config)})),ee(t),Xt[t]}function re(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Wt;if(!a(t)){if(e=te(t))return e;t=[t]}return function(t){for(var e,n,r,i,a=0;a<t.length;){for(e=(i=Zt(t[a]).split("-")).length,n=(n=Zt(t[a+1]))?n.split("-"):null;0<e;){if(r=te(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&C(i,n,!0)>=e-1)break;e--}a++}return Wt}(t)}function ie(t){var e,n=t._a;return n&&-2===d(t).overflow&&(e=n[1]<0||11<n[1]?1:n[2]<1||n[2]>Et(n[0],n[1])?2:n[3]<0||24<n[3]||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||59<n[4]?4:n[5]<0||59<n[5]?5:n[6]<0||999<n[6]?6:-1,d(t)._overflowDayOfYear&&(e<0||2<e)&&(e=2),d(t)._overflowWeeks&&-1===e&&(e=7),d(t)._overflowWeekday&&-1===e&&(e=8),d(t).overflow=e),t}function ae(t,e,n){return null!=t?t:null!=e?e:n}function oe(t){var e,n,r,a,o,s=[];if(!t._d){var c,l;for(c=t,l=new Date(i.now()),r=c._useUTC?[l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()]:[l.getFullYear(),l.getMonth(),l.getDate()],t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,n,r,i,a,o,s,c;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)a=1,o=4,n=ae(e.GG,t._a[0],Dt(be(),1,4).year),r=ae(e.W,1),((i=ae(e.E,1))<1||7<i)&&(c=!0);else{a=t._locale._week.dow,o=t._locale._week.doy;var l=Dt(be(),a,o);n=ae(e.gg,t._a[0],l.year),r=ae(e.w,l.week),null!=e.d?((i=e.d)<0||6<i)&&(c=!0):null!=e.e?(i=e.e+a,(e.e<0||6<e.e)&&(c=!0)):i=a}r<1||r>Mt(n,a,o)?d(t)._overflowWeeks=!0:null!=c?d(t)._overflowWeekday=!0:(s=Ot(n,r,i,a,o),t._a[0]=s.year,t._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(o=ae(t._a[0],r[0]),(t._dayOfYear>gt(o)||0===t._dayOfYear)&&(d(t)._overflowDayOfYear=!0),n=Ft(o,0,t._dayOfYear),t._a[1]=n.getUTCMonth(),t._a[2]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=r[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?Ft:function(t,e,n,r,i,a,o){var s;return t<100&&0<=t?(s=new Date(t+400,e,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,r,i,a,o),s}).apply(null,s),a=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==a&&(d(t).weekdayMismatch=!0)}}var se=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ce=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,le=/Z|[+-]\d\d(?::?\d\d)?/,Ae=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ue=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],he=/^\/?Date\((\-?\d+)/i;function fe(t){var e,n,r,i,a,o,s=t._i,c=se.exec(s)||ce.exec(s);if(c){for(d(t).iso=!0,e=0,n=Ae.length;e<n;e++)if(Ae[e][1].exec(c[1])){i=Ae[e][0],r=!1!==Ae[e][2];break}if(null==i)return void(t._isValid=!1);if(c[3]){for(e=0,n=ue.length;e<n;e++)if(ue[e][1].exec(c[3])){a=(c[2]||" ")+ue[e][0];break}if(null==a)return void(t._isValid=!1)}if(!r&&null!=a)return void(t._isValid=!1);if(c[4]){if(!le.exec(c[4]))return void(t._isValid=!1);o="Z"}t._f=i+(a||"")+(o||""),me(t)}else t._isValid=!1}var de=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,pe={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ge(t){var e,n,r,i=de.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(i){var a=function(t,e,n,r,i,a){var o=[function(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}(t),Bt.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}(i[4],i[3],i[2],i[5],i[6],i[7]);if(n=a,r=t,(e=i[1])&&Pt.indexOf(e)!==new Date(n[0],n[1],n[2]).getDay()&&(d(r).weekdayMismatch=!0,!(r._isValid=!1)))return;t._a=a,t._tzm=function(t,e,n){if(t)return pe[t];if(e)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(i[8],i[9],i[10]),t._d=Ft.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),d(t).rfc2822=!0}else t._isValid=!1}function me(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],d(t).empty=!0;var e,n,r,a,o,s,c,l,A=""+t._i,h=A.length,f=0;for(r=Y(t._f,t._locale).match(H)||[],e=0;e<r.length;e++)a=r[e],(n=(A.match(ut(a,t))||[])[0])&&(0<(o=A.substr(0,A.indexOf(n))).length&&d(t).unusedInput.push(o),A=A.slice(A.indexOf(n)+n.length),f+=n.length),j[a]?(n?d(t).empty=!1:d(t).unusedTokens.push(a),s=a,l=t,null!=(c=n)&&u(ft,s)&&ft[s](c,l._a,l,s)):t._strict&&!n&&d(t).unusedTokens.push(a);d(t).charsLeftOver=h-f,0<A.length&&d(t).unusedInput.push(A),t._a[3]<=12&&!0===d(t).bigHour&&0<t._a[3]&&(d(t).bigHour=void 0),d(t).parsedDateParts=t._a.slice(0),d(t).meridiem=t._meridiem,t._a[3]=function(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):(null!=t.isPM&&((r=t.isPM(n))&&e<12&&(e+=12),r||12!==e||(e=0)),e)}(t._locale,t._a[3],t._meridiem),oe(t),ie(t)}else ge(t);else fe(t)}function ye(t){var e,n,r,u,f=t._i,m=t._f;return t._locale=t._locale||re(t._l),null===f||void 0===m&&""===f?g({nullInput:!0}):("string"==typeof f&&(t._i=f=t._locale.preparse(f)),_(f)?new b(ie(f)):(l(f)?t._d=f:a(m)?function(t){var e,n,r,i,a;if(0===t._f.length)return d(t).invalidFormat=!0,t._d=new Date(NaN);for(i=0;i<t._f.length;i++)a=0,e=y({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],me(e),p(e)&&(a+=d(e).charsLeftOver,a+=10*d(e).unusedTokens.length,d(e).score=a,(null==r||a<r)&&(r=a,n=e));h(t,n||e)}(t):m?me(t):s(n=(e=t)._i)?e._d=new Date(i.now()):l(n)?e._d=new Date(n.valueOf()):"string"==typeof n?(r=e,null===(u=he.exec(r._i))?(fe(r),!1===r._isValid&&(delete r._isValid,ge(r),!1===r._isValid&&(delete r._isValid,i.createFromInputFallback(r)))):r._d=new Date(+u[1])):a(n)?(e._a=A(n.slice(0),(function(t){return parseInt(t,10)})),oe(e)):o(n)?function(t){if(!t._d){var e=M(t._i);t._a=A([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),oe(t)}}(e):c(n)?e._d=new Date(n):i.createFromInputFallback(e),p(t)||(t._d=null),t))}function ve(t,e,n,r,i){var s,c={};return!0!==n&&!1!==n||(r=n,n=void 0),(o(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(t)||a(t)&&0===t.length)&&(t=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=i,c._l=n,c._i=t,c._f=e,c._strict=r,(s=new b(ie(ye(c))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function be(t,e,n,r){return ve(t,e,n,r,!1)}i.createFromInputFallback=B("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var _e=B("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=be.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:g()})),we=B("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=be.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:g()}));function Ee(t,e){var n,r;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return be();for(n=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](n)||(n=e[r]);return n}var Ce=["year","quarter","month","week","day","hour","minute","second","millisecond"];function xe(t){var e=M(t),n=e.year||0,r=e.quarter||0,i=e.month||0,a=e.week||e.isoWeek||0,o=e.day||0,s=e.hour||0,c=e.minute||0,l=e.second||0,A=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===yt.call(Ce,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,r=0;r<Ce.length;++r)if(t[Ce[r]]){if(n)return!1;parseFloat(t[Ce[r]])!==E(t[Ce[r]])&&(n=!0)}return!0}(e),this._milliseconds=+A+1e3*l+6e4*c+1e3*s*60*60,this._days=+o+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=re(),this._bubble()}function Be(t){return t instanceof xe}function Te(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function ke(t,e){$(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+P(~~(t/60),2)+e+P(~~t%60,2)}))}ke("Z",":"),ke("ZZ",""),At("Z",st),At("ZZ",st),dt(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=Ie(st,t)}));var Se=/([\+\-]|\d\d)/gi;function Ie(t,e){var n=(e||"").match(t);if(null===n)return null;var r=((n[n.length-1]||[])+"").match(Se)||["-",0,0],i=60*r[1]+E(r[2]);return 0===i?0:"+"===r[0]?i:-i}function Le(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(_(t)||l(t)?t.valueOf():be(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):be(t).local()}function Fe(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Ne(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Oe=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,De=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Me(t,e){var n,r,i,a=t,o=null;return Be(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:c(t)?(a={},e?a[e]=t:a.milliseconds=t):(o=Oe.exec(t))?(n="-"===o[1]?-1:1,a={y:0,d:E(o[2])*n,h:E(o[3])*n,m:E(o[4])*n,s:E(o[5])*n,ms:E(Te(1e3*o[6]))*n}):(o=De.exec(t))?(n="-"===o[1]?-1:1,a={y:Re(o[2],n),M:Re(o[3],n),w:Re(o[4],n),d:Re(o[5],n),h:Re(o[6],n),m:Re(o[7],n),s:Re(o[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=function(t,e){var n;return t.isValid()&&e.isValid()?(e=Le(e,t),t.isBefore(e)?n=Ue(t,e):((n=Ue(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}(be(a.from),be(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),r=new xe(a),Be(t)&&u(t,"_locale")&&(r._locale=t._locale),r}function Re(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ue(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Pe(t,e){return function(n,r){var i;return null===r||isNaN(+r)||(S(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),He(this,Me(n="string"==typeof n?+n:n,r),t),this}}function He(t,e,n,r){var a=e._milliseconds,o=Te(e._days),s=Te(e._months);t.isValid()&&(r=null==r||r,s&&Tt(t,_t(t,"Month")+s*n),o&&wt(t,"Date",_t(t,"Date")+o*n),a&&t._d.setTime(t._d.valueOf()+a*n),r&&i.updateOffset(t,o||s))}Me.fn=xe.prototype,Me.invalid=function(){return Me(NaN)};var Qe=Pe(1,"add"),Ge=Pe(-1,"subtract");function je(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,"months");return-(n+(e-r<0?(e-r)/(r-t.clone().add(n-1,"months")):(e-r)/(t.clone().add(n+1,"months")-r)))||0}function $e(t){var e;return void 0===t?this._locale._abbr:(null!=(e=re(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ke=B("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function Ye(){return this._locale}var ze=126227808e5;function We(t,e){return(t%e+e)%e}function Ve(t,e,n){return t<100&&0<=t?new Date(t+400,e,n)-ze:new Date(t,e,n).valueOf()}function qe(t,e,n){return t<100&&0<=t?Date.UTC(t+400,e,n)-ze:Date.UTC(t,e,n)}function Xe(t,e){$(0,[t,t.length],0,e)}function Je(t,e,n,r,i){var a;return null==t?Dt(this,r,i).year:((a=Mt(t,r,i))<e&&(e=a),function(t,e,n,r,i){var a=Ot(t,e,n,r,i),o=Ft(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}.call(this,t,e,n,r,i))}$(0,["gg",2],0,(function(){return this.weekYear()%100})),$(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Xe("gggg","weekYear"),Xe("ggggg","weekYear"),Xe("GGGG","isoWeekYear"),Xe("GGGGG","isoWeekYear"),O("weekYear","gg"),O("isoWeekYear","GG"),U("weekYear",1),U("isoWeekYear",1),At("G",at),At("g",at),At("GG",J,W),At("gg",J,W),At("GGGG",nt,q),At("gggg",nt,q),At("GGGGG",rt,X),At("ggggg",rt,X),pt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,r){e[r.substr(0,2)]=E(t)})),pt(["gg","GG"],(function(t,e,n,r){e[r]=i.parseTwoDigitYear(t)})),$("Q",0,"Qo","quarter"),O("quarter","Q"),U("quarter",7),At("Q",z),dt("Q",(function(t,e){e[1]=3*(E(t)-1)})),$("D",["DD",2],"Do","date"),O("date","D"),U("date",9),At("D",J),At("DD",J,W),At("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),dt(["D","DD"],2),dt("Do",(function(t,e){e[2]=E(t.match(J)[0])}));var Ze=bt("Date",!0);$("DDD",["DDDD",3],"DDDo","dayOfYear"),O("dayOfYear","DDD"),U("dayOfYear",4),At("DDD",et),At("DDDD",V),dt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=E(t)})),$("m",["mm",2],0,"minute"),O("minute","m"),U("minute",14),At("m",J),At("mm",J,W),dt(["m","mm"],4);var tn=bt("Minutes",!1);$("s",["ss",2],0,"second"),O("second","s"),U("second",15),At("s",J),At("ss",J,W),dt(["s","ss"],5);var en,nn=bt("Seconds",!1);for($("S",0,0,(function(){return~~(this.millisecond()/100)})),$(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),$(0,["SSS",3],0,"millisecond"),$(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),$(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),$(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),$(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),$(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),$(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),O("millisecond","ms"),U("millisecond",16),At("S",et,z),At("SS",et,W),At("SSS",et,V),en="SSSS";en.length<=9;en+="S")At(en,it);function rn(t,e){e[6]=E(1e3*("0."+t))}for(en="S";en.length<=9;en+="S")dt(en,rn);var an=bt("Milliseconds",!1);$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");var on=b.prototype;function sn(t){return t}on.add=Qe,on.calendar=function(t,e){var n=t||be(),r=Le(n,this).startOf("day"),a=i.calendarFormat(this,r)||"sameElse",o=e&&(I(e[a])?e[a].call(this,n):e[a]);return this.format(o||this.localeData().calendar(a,this,be(n)))},on.clone=function(){return new b(this)},on.diff=function(t,e,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=Le(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=D(e)){case"year":a=je(this,r)/12;break;case"month":a=je(this,r);break;case"quarter":a=je(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:w(a)},on.endOf=function(t){var e;if(void 0===(t=D(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?qe:Ve;switch(t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-We(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-We(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-We(e,1e3)-1}return this._d.setTime(e),i.updateOffset(this,!0),this},on.format=function(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=K(this,t);return this.localeData().postformat(e)},on.from=function(t,e){return this.isValid()&&(_(t)&&t.isValid()||be(t).isValid())?Me({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},on.fromNow=function(t){return this.from(be(),t)},on.to=function(t,e){return this.isValid()&&(_(t)&&t.isValid()||be(t).isValid())?Me({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},on.toNow=function(t){return this.to(be(),t)},on.get=function(t){return I(this[t=D(t)])?this[t]():this},on.invalidAt=function(){return d(this).overflow},on.isAfter=function(t,e){var n=_(t)?t:be(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=D(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())},on.isBefore=function(t,e){var n=_(t)?t:be(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=D(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())},on.isBetween=function(t,e,n,r){var i=_(t)?t:be(t),a=_(e)?e:be(e);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))},on.isSame=function(t,e){var n,r=_(t)?t:be(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=D(e)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))},on.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},on.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},on.isValid=function(){return p(this)},on.lang=Ke,on.locale=$e,on.localeData=Ye,on.max=we,on.min=_e,on.parsingFlags=function(){return h({},d(this))},on.set=function(t,e){if("object"==typeof t)for(var n=function(t){var e=[];for(var n in t)e.push({unit:n,priority:R[n]});return e.sort((function(t,e){return t.priority-e.priority})),e}(t=M(t)),r=0;r<n.length;r++)this[n[r].unit](t[n[r].unit]);else if(I(this[t=D(t)]))return this[t](e);return this},on.startOf=function(t){var e;if(void 0===(t=D(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?qe:Ve;switch(t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=We(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=We(e,6e4);break;case"second":e=this._d.valueOf(),e-=We(e,1e3)}return this._d.setTime(e),i.updateOffset(this,!0),this},on.subtract=Ge,on.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},on.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},on.toDate=function(){return new Date(this.valueOf())},on.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||9999<n.year()?K(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):I(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",K(n,"Z")):K(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},on.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=e+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},on.toJSON=function(){return this.isValid()?this.toISOString():null},on.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},on.unix=function(){return Math.floor(this.valueOf()/1e3)},on.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},on.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},on.year=vt,on.isLeapYear=function(){return mt(this.year())},on.weekYear=function(t){return Je.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},on.isoWeekYear=function(t){return Je.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},on.quarter=on.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},on.month=kt,on.daysInMonth=function(){return Et(this.year(),this.month())},on.week=on.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},on.isoWeek=on.isoWeeks=function(t){var e=Dt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},on.weeksInYear=function(){var t=this.localeData()._week;return Mt(this.year(),t.dow,t.doy)},on.isoWeeksInYear=function(){return Mt(this.year(),1,4)},on.date=Ze,on.day=on.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e,n,r=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,n=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=n.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-r,"d")):r},on.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},on.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null==t)return this.day()||7;var e,n,r=(e=t,n=this.localeData(),"string"==typeof e?n.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?r:r-7)},on.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},on.hour=on.hours=Vt,on.minute=on.minutes=tn,on.second=on.seconds=nn,on.millisecond=on.milliseconds=an,on.utcOffset=function(t,e,n){var r,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null==t)return this._isUTC?a:Fe(this);if("string"==typeof t){if(null===(t=Ie(st,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(r=Fe(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==t&&(!e||this._changeInProgress?He(this,Me(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this},on.utc=function(t){return this.utcOffset(0,t)},on.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Fe(this),"m")),this},on.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ie(ot,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},on.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?be(t).utcOffset():0,(this.utcOffset()-t)%60==0)},on.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},on.isLocal=function(){return!!this.isValid()&&!this._isUTC},on.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},on.isUtc=Ne,on.isUTC=Ne,on.zoneAbbr=function(){return this._isUTC?"UTC":""},on.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},on.dates=B("dates accessor is deprecated. Use date instead.",Ze),on.months=B("months accessor is deprecated. Use month instead",kt),on.years=B("years accessor is deprecated. Use year instead",vt),on.zone=B("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),on.isDSTShifted=B("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(y(t,this),(t=ye(t))._a){var e=t._isUTC?f(t._a):be(t._a);this._isDSTShifted=this.isValid()&&0<C(t._a,e.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted}));var cn=F.prototype;function ln(t,e,n,r){var i=re(),a=f().set(r,e);return i[n](a,t)}function An(t,e,n){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return ln(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=ln(t,r,n,"month");return i}function un(t,e,n,r){"boolean"==typeof t?c(e)&&(n=e,e=void 0):(e=t,t=!1,c(n=e)&&(n=e,e=void 0)),e=e||"";var i,a=re(),o=t?a._week.dow:0;if(null!=n)return ln(e,(n+o)%7,r,"day");var s=[];for(i=0;i<7;i++)s[i]=ln(e,(i+o)%7,r,"day");return s}cn.calendar=function(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return I(r)?r.call(e,n):r},cn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,(function(t){return t.slice(1)})),this._longDateFormat[t])},cn.invalidDate=function(){return this._invalidDate},cn.ordinal=function(t){return this._ordinal.replace("%d",t)},cn.preparse=sn,cn.postformat=sn,cn.relativeTime=function(t,e,n,r){var i=this._relativeTime[n];return I(i)?i(t,e,n,r):i.replace(/%d/i,t)},cn.pastFuture=function(t,e){var n=this._relativeTime[0<t?"future":"past"];return I(n)?n(e):n.replace(/%s/i,e)},cn.set=function(t){var e,n;for(n in t)I(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},cn.months=function(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ct).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone},cn.monthsShort=function(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ct.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},cn.monthsParse=function(t,e,n){var r,i,a;if(this._monthsParseExact)return function(t,e,n){var r,i,a,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=yt.call(this._shortMonthsParse,o))?i:null:-1!==(i=yt.call(this._longMonthsParse,o))?i:null:"MMM"===e?-1!==(i=yt.call(this._shortMonthsParse,o))||-1!==(i=yt.call(this._longMonthsParse,o))?i:null:-1!==(i=yt.call(this._longMonthsParse,o))||-1!==(i=yt.call(this._shortMonthsParse,o))?i:null}.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}},cn.monthsRegex=function(t){return this._monthsParseExact?(u(this,"_monthsRegex")||Lt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=It),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},cn.monthsShortRegex=function(t){return this._monthsParseExact?(u(this,"_monthsRegex")||Lt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=St),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},cn.week=function(t){return Dt(t,this._week.dow,this._week.doy).week},cn.firstDayOfYear=function(){return this._week.doy},cn.firstDayOfWeek=function(){return this._week.dow},cn.weekdays=function(t,e){var n=a(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Rt(n,this._week.dow):t?n[t.day()]:n},cn.weekdaysMin=function(t){return!0===t?Rt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},cn.weekdaysShort=function(t){return!0===t?Rt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},cn.weekdaysParse=function(t,e,n){var r,i,a;if(this._weekdaysParseExact)return function(t,e,n){var r,i,a,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(i=yt.call(this._weekdaysParse,o))?i:null:"ddd"===e?-1!==(i=yt.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=yt.call(this._minWeekdaysParse,o))?i:null:"dddd"===e?-1!==(i=yt.call(this._weekdaysParse,o))||-1!==(i=yt.call(this._shortWeekdaysParse,o))||-1!==(i=yt.call(this._minWeekdaysParse,o))?i:null:"ddd"===e?-1!==(i=yt.call(this._shortWeekdaysParse,o))||-1!==(i=yt.call(this._weekdaysParse,o))||-1!==(i=yt.call(this._minWeekdaysParse,o))?i:null:-1!==(i=yt.call(this._minWeekdaysParse,o))||-1!==(i=yt.call(this._weekdaysParse,o))||-1!==(i=yt.call(this._shortWeekdaysParse,o))?i:null}.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}},cn.weekdaysRegex=function(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||$t.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Qt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},cn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||$t.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Gt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},cn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||$t.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=jt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},cn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},cn.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},ee("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===E(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=B("moment.lang is deprecated. Use moment.locale instead.",ee),i.langData=B("moment.langData is deprecated. Use moment.localeData instead.",re);var hn=Math.abs;function fn(t,e,n,r){var i=Me(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function dn(t){return t<0?Math.floor(t):Math.ceil(t)}function pn(t){return 4800*t/146097}function gn(t){return 146097*t/4800}function mn(t){return function(){return this.as(t)}}var yn=mn("ms"),vn=mn("s"),bn=mn("m"),_n=mn("h"),wn=mn("d"),En=mn("w"),Cn=mn("M"),xn=mn("Q"),Bn=mn("y");function Tn(t){return function(){return this.isValid()?this._data[t]:NaN}}var kn=Tn("milliseconds"),Sn=Tn("seconds"),In=Tn("minutes"),Ln=Tn("hours"),Fn=Tn("days"),Nn=Tn("months"),On=Tn("years"),Dn=Math.round,Mn={ss:44,s:45,m:45,h:22,d:26,M:11},Rn=Math.abs;function Un(t){return(0<t)-(t<0)||+t}function Pn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=Rn(this._milliseconds)/1e3,r=Rn(this._days),i=Rn(this._months);e=w((t=w(n/60))/60),n%=60,t%=60;var a=w(i/12),o=i%=12,s=r,c=e,l=t,A=n?n.toFixed(3).replace(/\.?0+$/,""):"",u=this.asSeconds();if(!u)return"P0D";var h=u<0?"-":"",f=Un(this._months)!==Un(u)?"-":"",d=Un(this._days)!==Un(u)?"-":"",p=Un(this._milliseconds)!==Un(u)?"-":"";return h+"P"+(a?f+a+"Y":"")+(o?f+o+"M":"")+(s?d+s+"D":"")+(c||l||A?"T":"")+(c?p+c+"H":"")+(l?p+l+"M":"")+(A?p+A+"S":"")}var Hn=xe.prototype;return Hn.isValid=function(){return this._isValid},Hn.abs=function(){var t=this._data;return this._milliseconds=hn(this._milliseconds),this._days=hn(this._days),this._months=hn(this._months),t.milliseconds=hn(t.milliseconds),t.seconds=hn(t.seconds),t.minutes=hn(t.minutes),t.hours=hn(t.hours),t.months=hn(t.months),t.years=hn(t.years),this},Hn.add=function(t,e){return fn(this,t,e,1)},Hn.subtract=function(t,e){return fn(this,t,e,-1)},Hn.as=function(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=D(t))||"quarter"===t||"year"===t)switch(e=this._days+r/864e5,n=this._months+pn(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(gn(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}},Hn.asMilliseconds=yn,Hn.asSeconds=vn,Hn.asMinutes=bn,Hn.asHours=_n,Hn.asDays=wn,Hn.asWeeks=En,Hn.asMonths=Cn,Hn.asQuarters=xn,Hn.asYears=Bn,Hn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*E(this._months/12):NaN},Hn._bubble=function(){var t,e,n,r,i,a=this._milliseconds,o=this._days,s=this._months,c=this._data;return 0<=a&&0<=o&&0<=s||a<=0&&o<=0&&s<=0||(a+=864e5*dn(gn(s)+o),s=o=0),c.milliseconds=a%1e3,t=w(a/1e3),c.seconds=t%60,e=w(t/60),c.minutes=e%60,n=w(e/60),c.hours=n%24,s+=i=w(pn(o+=w(n/24))),o-=dn(gn(i)),r=w(s/12),s%=12,c.days=o,c.months=s,c.years=r,this},Hn.clone=function(){return Me(this)},Hn.get=function(t){return t=D(t),this.isValid()?this[t+"s"]():NaN},Hn.milliseconds=kn,Hn.seconds=Sn,Hn.minutes=In,Hn.hours=Ln,Hn.days=Fn,Hn.weeks=function(){return w(this.days()/7)},Hn.months=Nn,Hn.years=On,Hn.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e,n,r,i,a,o,s,c,l,A,u=this.localeData(),h=(e=!t,n=u,r=Me(this).abs(),i=Dn(r.as("s")),a=Dn(r.as("m")),o=Dn(r.as("h")),s=Dn(r.as("d")),c=Dn(r.as("M")),l=Dn(r.as("y")),(A=i<=Mn.ss&&["s",i]||i<Mn.s&&["ss",i]||a<=1&&["m"]||a<Mn.m&&["mm",a]||o<=1&&["h"]||o<Mn.h&&["hh",o]||s<=1&&["d"]||s<Mn.d&&["dd",s]||c<=1&&["M"]||c<Mn.M&&["MM",c]||l<=1&&["y"]||["yy",l])[2]=e,A[3]=0<+this,A[4]=n,function(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}.apply(null,A));return t&&(h=u.pastFuture(+this,h)),u.postformat(h)},Hn.toISOString=Pn,Hn.toString=Pn,Hn.toJSON=Pn,Hn.locale=$e,Hn.localeData=Ye,Hn.toIsoString=B("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Pn),Hn.lang=Ke,$("X",0,0,"unix"),$("x",0,0,"valueOf"),At("x",at),At("X",/[+-]?\d+(\.\d{1,3})?/),dt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))})),dt("x",(function(t,e,n){n._d=new Date(E(t))})),i.version="2.24.0",e=be,i.fn=on,i.min=function(){return Ee("isBefore",[].slice.call(arguments,0))},i.max=function(){return Ee("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=f,i.unix=function(t){return be(1e3*t)},i.months=function(t,e){return An(t,e,"months")},i.isDate=l,i.locale=ee,i.invalid=g,i.duration=Me,i.isMoment=_,i.weekdays=function(t,e,n){return un(t,e,n,"weekdays")},i.parseZone=function(){return be.apply(null,arguments).parseZone()},i.localeData=re,i.isDuration=Be,i.monthsShort=function(t,e){return An(t,e,"monthsShort")},i.weekdaysMin=function(t,e,n){return un(t,e,n,"weekdaysMin")},i.defineLocale=ne,i.updateLocale=function(t,e){if(null!=e){var n,r,i=qt;null!=(r=te(t))&&(i=r._config),(n=new F(e=L(i,e))).parentLocale=Xt[t],Xt[t]=n,ee(t)}else null!=Xt[t]&&(null!=Xt[t].parentLocale?Xt[t]=Xt[t].parentLocale:null!=Xt[t]&&delete Xt[t]);return Xt[t]},i.locales=function(){return T(Xt)},i.weekdaysShort=function(t,e,n){return un(t,e,n,"weekdaysShort")},i.normalizeUnits=D,i.relativeTimeRounding=function(t){return void 0===t?Dn:"function"==typeof t&&(Dn=t,!0)},i.relativeTimeThreshold=function(t,e){return void 0!==Mn[t]&&(void 0===e?Mn[t]:(Mn[t]=e,"s"===t&&(Mn.ss=e-1),!0))},i.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=on,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},6470:t=>{function e(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function n(t,e){for(var n,r="",i=0,a=-1,o=0,s=0;s<=t.length;++s){if(s<t.length)n=t.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(a===s-1||1===o);else if(a!==s-1&&2===o){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var c=r.lastIndexOf("/");if(c!==r.length-1){-1===c?(r="",i=0):i=(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),a=s,o=0;continue}}else if(2===r.length||1===r.length){r="",i=0,a=s,o=0;continue}e&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+t.slice(a+1,s):r=t.slice(a+1,s),i=s-a-1;a=s,o=0}else 46===n&&-1!==o?++o:o=-1}return r}var r={resolve:function(){for(var t,r="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o;a>=0?o=arguments[a]:(void 0===t&&(t=process.cwd()),o=t),e(o),0!==o.length&&(r=o+"/"+r,i=47===o.charCodeAt(0))}return r=n(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(t){if(e(t),0===t.length)return".";var r=47===t.charCodeAt(0),i=47===t.charCodeAt(t.length-1);return 0!==(t=n(t,!r)).length||r||(t="."),t.length>0&&i&&(t+="/"),r?"/"+t:t},isAbsolute:function(t){return e(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,n=0;n<arguments.length;++n){var i=arguments[n];e(i),i.length>0&&(void 0===t?t=i:t+="/"+i)}return void 0===t?".":r.normalize(t)},relative:function(t,n){if(e(t),e(n),t===n)return"";if((t=r.resolve(t))===(n=r.resolve(n)))return"";for(var i=1;i<t.length&&47===t.charCodeAt(i);++i);for(var a=t.length,o=a-i,s=1;s<n.length&&47===n.charCodeAt(s);++s);for(var c=n.length-s,l=o<c?o:c,A=-1,u=0;u<=l;++u){if(u===l){if(c>l){if(47===n.charCodeAt(s+u))return n.slice(s+u+1);if(0===u)return n.slice(s+u)}else o>l&&(47===t.charCodeAt(i+u)?A=u:0===u&&(A=0));break}var h=t.charCodeAt(i+u);if(h!==n.charCodeAt(s+u))break;47===h&&(A=u)}var f="";for(u=i+A+1;u<=a;++u)u!==a&&47!==t.charCodeAt(u)||(0===f.length?f+="..":f+="/..");return f.length>0?f+n.slice(s+A):(s+=A,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(e(t),0===t.length)return".";for(var n=t.charCodeAt(0),r=47===n,i=-1,a=!0,o=t.length-1;o>=1;--o)if(47===(n=t.charCodeAt(o))){if(!a){i=o;break}}else a=!1;return-1===i?r?"/":".":r&&1===i?"//":t.slice(0,i)},basename:function(t,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');e(t);var r,i=0,a=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var s=n.length-1,c=-1;for(r=t.length-1;r>=0;--r){var l=t.charCodeAt(r);if(47===l){if(!o){i=r+1;break}}else-1===c&&(o=!1,c=r+1),s>=0&&(l===n.charCodeAt(s)?-1==--s&&(a=r):(s=-1,a=c))}return i===a?a=c:-1===a&&(a=t.length),t.slice(i,a)}for(r=t.length-1;r>=0;--r)if(47===t.charCodeAt(r)){if(!o){i=r+1;break}}else-1===a&&(o=!1,a=r+1);return-1===a?"":t.slice(i,a)},extname:function(t){e(t);for(var n=-1,r=0,i=-1,a=!0,o=0,s=t.length-1;s>=0;--s){var c=t.charCodeAt(s);if(47!==c)-1===i&&(a=!1,i=s+1),46===c?-1===n?n=s:1!==o&&(o=1):-1!==n&&(o=-1);else if(!a){r=s+1;break}}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":t.slice(n,i)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(t,e){var n=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+r:n+"/"+r:r}(0,t)},parse:function(t){e(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return n;var r,i=t.charCodeAt(0),a=47===i;a?(n.root="/",r=1):r=0;for(var o=-1,s=0,c=-1,l=!0,A=t.length-1,u=0;A>=r;--A)if(47!==(i=t.charCodeAt(A)))-1===c&&(l=!1,c=A+1),46===i?-1===o?o=A:1!==u&&(u=1):-1!==o&&(u=-1);else if(!l){s=A+1;break}return-1===o||-1===c||0===u||1===u&&o===c-1&&o===s+1?-1!==c&&(n.base=n.name=0===s&&a?t.slice(1,c):t.slice(s,c)):(0===s&&a?(n.name=t.slice(1,o),n.base=t.slice(1,c)):(n.name=t.slice(s,o),n.base=t.slice(s,c)),n.ext=t.slice(o,c)),s>0?n.dir=t.slice(0,s-1):a&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,t.exports=r},555:()=>{},8218:()=>{},8009:()=>{},5354:()=>{},6878:()=>{},8183:()=>{},1428:()=>{},4551:()=>{},8800:()=>{},1993:()=>{},3069:()=>{},9143:()=>{},7543:(t,e,n)=>{function r(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function i(t){let e=t,n=t,i=t;function a(t,e,r=0,a=t.length){if(r<a){if(0!==n(e,e))return a;do{const n=r+a>>>1;i(t[n],e)<0?r=n+1:a=n}while(r<a)}return r}return 2!==t.length&&(e=(e,n)=>t(e)-n,n=r,i=(e,n)=>r(t(e),n)),{left:a,center:function(t,n,r=0,i=t.length){const o=a(t,n,r,i-1);return o>r&&e(t[o-1],n)>-e(t[o],n)?o-1:o},right:function(t,e,r=0,a=t.length){if(r<a){if(0!==n(e,e))return a;do{const n=r+a>>>1;i(t[n],e)<=0?r=n+1:a=n}while(r<a)}return r}}}function a(t){return null===t?NaN:+t}n.r(e),n.d(e,{Adder:()=>_,Delaunay:()=>Cs,FormatSpecifier:()=>Tl,InternMap:()=>C,InternSet:()=>x,Node:()=>Yd,Voronoi:()=>ys,ZoomTransform:()=>VC,active:()=>Xi,arc:()=>jw,area:()=>Xw,areaRadial:()=>oE,ascending:()=>r,autoType:()=>tc,axisBottom:()=>ne,axisLeft:()=>re,axisRight:()=>ee,axisTop:()=>te,bin:()=>rt,bisect:()=>A,bisectCenter:()=>l,bisectLeft:()=>c,bisectRight:()=>s,bisector:()=>i,blob:()=>Oc,brush:()=>ka,brushSelection:()=>xa,brushX:()=>Ba,brushY:()=>Ta,buffer:()=>Mc,chord:()=>Ha,chordDirected:()=>Ga,chordTranspose:()=>Qa,cluster:()=>Pd,color:()=>Xn,contourDensity:()=>qo,contours:()=>$o,count:()=>u,create:()=>gw,creator:()=>hn,cross:()=>p,csv:()=>Qc,csvFormat:()=>Qs,csvFormatBody:()=>Gs,csvFormatRow:()=>$s,csvFormatRows:()=>js,csvFormatValue:()=>Ks,csvParse:()=>Ps,csvParseRows:()=>Hs,cubehelix:()=>Oo,cumsum:()=>g,curveBasis:()=>PE,curveBasisClosed:()=>QE,curveBasisOpen:()=>jE,curveBumpX:()=>KE,curveBumpY:()=>YE,curveBundle:()=>WE,curveCardinal:()=>XE,curveCardinalClosed:()=>ZE,curveCardinalOpen:()=>eC,curveCatmullRom:()=>iC,curveCatmullRomClosed:()=>oC,curveCatmullRomOpen:()=>cC,curveLinear:()=>zw,curveLinearClosed:()=>AC,curveMonotoneX:()=>yC,curveMonotoneY:()=>vC,curveNatural:()=>wC,curveStep:()=>CC,curveStepAfter:()=>BC,curveStepBefore:()=>xC,descending:()=>m,deviation:()=>v,difference:()=>Pt,disjoint:()=>Ht,dispatch:()=>Ae,drag:()=>Ls,dragDisable:()=>Fn,dragEnable:()=>Nn,dsv:()=>Hc,dsvFormat:()=>Rs,easeBack:()=>kc,easeBackIn:()=>Bc,easeBackInOut:()=>kc,easeBackOut:()=>Tc,easeBounce:()=>Ec,easeBounceIn:()=>wc,easeBounceInOut:()=>Cc,easeBounceOut:()=>Ec,easeCircle:()=>bc,easeCircleIn:()=>yc,easeCircleInOut:()=>bc,easeCircleOut:()=>vc,easeCubic:()=>zi,easeCubicIn:()=>Ki,easeCubicInOut:()=>zi,easeCubicOut:()=>Yi,easeElastic:()=>Lc,easeElasticIn:()=>Ic,easeElasticInOut:()=>Fc,easeElasticOut:()=>Lc,easeExp:()=>mc,easeExpIn:()=>pc,easeExpInOut:()=>mc,easeExpOut:()=>gc,easeLinear:()=>nc,easePoly:()=>cc,easePolyIn:()=>oc,easePolyInOut:()=>cc,easePolyOut:()=>sc,easeQuad:()=>ac,easeQuadIn:()=>rc,easeQuadInOut:()=>ac,easeQuadOut:()=>ic,easeSin:()=>fc,easeSinIn:()=>uc,easeSinInOut:()=>fc,easeSinOut:()=>hc,every:()=>Nt,extent:()=>b,fcumsum:()=>E,filter:()=>Dt,flatGroup:()=>O,flatRollup:()=>D,forceCenter:()=>qc,forceCollide:()=>ll,forceLink:()=>hl,forceManyBody:()=>yl,forceRadial:()=>vl,forceSimulation:()=>ml,forceX:()=>bl,forceY:()=>_l,format:()=>Fl,formatDefaultLocale:()=>Rl,formatLocale:()=>Ml,formatPrefix:()=>Nl,formatSpecifier:()=>Bl,fsum:()=>w,geoAlbers:()=>td,geoAlbersUsa:()=>ed,geoArea:()=>QA,geoAzimuthalEqualArea:()=>ad,geoAzimuthalEqualAreaRaw:()=>id,geoAzimuthalEquidistant:()=>sd,geoAzimuthalEquidistantRaw:()=>od,geoBounds:()=>wu,geoCentroid:()=>Ou,geoCircle:()=>Ku,geoClipAntimeridian:()=>nh,geoClipCircle:()=>rh,geoClipExtent:()=>uh,geoClipRectangle:()=>Ah,geoConicConformal:()=>fd,geoConicConformalRaw:()=>hd,geoConicEqualArea:()=>Zf,geoConicEqualAreaRaw:()=>Jf,geoConicEquidistant:()=>md,geoConicEquidistantRaw:()=>gd,geoContains:()=>kh,geoDistance:()=>vh,geoEqualEarth:()=>Cd,geoEqualEarthRaw:()=>Ed,geoEquirectangular:()=>pd,geoEquirectangularRaw:()=>dd,geoGnomonic:()=>Bd,geoGnomonicRaw:()=>xd,geoGraticule:()=>Lh,geoGraticule10:()=>Fh,geoIdentity:()=>Td,geoInterpolate:()=>Nh,geoLength:()=>gh,geoMercator:()=>ld,geoMercatorRaw:()=>cd,geoNaturalEarth1:()=>Sd,geoNaturalEarth1Raw:()=>kd,geoOrthographic:()=>Ld,geoOrthographicRaw:()=>Id,geoPath:()=>Mf,geoProjection:()=>Vf,geoProjectionMutator:()=>qf,geoRotation:()=>Gu,geoStereographic:()=>Nd,geoStereographicRaw:()=>Fd,geoStream:()=>mA,geoTransform:()=>Rf,geoTransverseMercator:()=>Dd,geoTransverseMercatorRaw:()=>Od,gray:()=>fo,greatest:()=>Ct,greatestIndex:()=>xt,group:()=>L,groupSort:()=>Y,groups:()=>F,hcl:()=>Eo,hierarchy:()=>Qd,histogram:()=>rt,hsl:()=>cr,html:()=>Wc,image:()=>jc,index:()=>U,indexes:()=>P,interpolate:()=>Fr,interpolateArray:()=>Cr,interpolateBasis:()=>hr,interpolateBasisClosed:()=>fr,interpolateBlues:()=>j_,interpolateBrBG:()=>e_,interpolateBuGn:()=>v_,interpolateBuPu:()=>__,interpolateCividis:()=>tw,interpolateCool:()=>rw,interpolateCubehelix:()=>eg,interpolateCubehelixDefault:()=>ew,interpolateCubehelixLong:()=>ng,interpolateDate:()=>Br,interpolateDiscrete:()=>Gp,interpolateGnBu:()=>E_,interpolateGreens:()=>K_,interpolateGreys:()=>z_,interpolateHcl:()=>Jp,interpolateHclLong:()=>Zp,interpolateHsl:()=>Wp,interpolateHslLong:()=>Vp,interpolateHue:()=>jp,interpolateInferno:()=>dw,interpolateLab:()=>qp,interpolateMagma:()=>fw,interpolateNumber:()=>Tr,interpolateNumberArray:()=>wr,interpolateObject:()=>kr,interpolateOrRd:()=>x_,interpolateOranges:()=>Z_,interpolatePRGn:()=>r_,interpolatePiYG:()=>a_,interpolatePlasma:()=>pw,interpolatePuBu:()=>S_,interpolatePuBuGn:()=>T_,interpolatePuOr:()=>s_,interpolatePuRd:()=>L_,interpolatePurples:()=>V_,interpolateRainbow:()=>aw,interpolateRdBu:()=>l_,interpolateRdGy:()=>u_,interpolateRdPu:()=>N_,interpolateRdYlBu:()=>f_,interpolateRdYlGn:()=>p_,interpolateReds:()=>X_,interpolateRgb:()=>yr,interpolateRgbBasis:()=>br,interpolateRgbBasisClosed:()=>_r,interpolateRound:()=>$p,interpolateSinebow:()=>lw,interpolateSpectral:()=>m_,interpolateString:()=>Lr,interpolateTransformCss:()=>hi,interpolateTransformSvg:()=>fi,interpolateTurbo:()=>Aw,interpolateViridis:()=>hw,interpolateWarm:()=>nw,interpolateYlGn:()=>R_,interpolateYlGnBu:()=>D_,interpolateYlOrBr:()=>P_,interpolateYlOrRd:()=>Q_,interpolateZoom:()=>Yp,interrupt:()=>oi,intersection:()=>Qt,interval:()=>YC,isoFormat:()=>$C,isoParse:()=>KC,json:()=>Kc,lab:()=>po,lch:()=>wo,least:()=>wt,leastIndex:()=>Et,line:()=>qw,lineRadial:()=>aE,linkHorizontal:()=>dE,linkRadial:()=>gE,linkVertical:()=>pE,local:()=>yw,map:()=>Mt,matcher:()=>ge,max:()=>it,maxIndex:()=>ht,mean:()=>ft,median:()=>dt,merge:()=>pt,min:()=>at,minIndex:()=>gt,mode:()=>mt,namespace:()=>Fe,namespaces:()=>Le,nice:()=>et,now:()=>Kr,pack:()=>hp,packEnclose:()=>zd,packSiblings:()=>op,pairs:()=>yt,partition:()=>yp,path:()=>qa,permute:()=>G,pie:()=>tE,piecewise:()=>rg,pointRadial:()=>sE,pointer:()=>Or,pointers:()=>bw,polygonArea:()=>ag,polygonCentroid:()=>og,polygonContains:()=>ug,polygonHull:()=>Ag,polygonLength:()=>hg,precisionFixed:()=>Ul,precisionPrefix:()=>Pl,precisionRound:()=>Hl,quadtree:()=>el,quantile:()=>ct,quantileSorted:()=>lt,quantize:()=>ig,quickselect:()=>ot,radialArea:()=>oE,radialLine:()=>aE,randomBates:()=>vg,randomBernoulli:()=>wg,randomBeta:()=>xg,randomBinomial:()=>Bg,randomCauchy:()=>kg,randomExponential:()=>bg,randomGamma:()=>Cg,randomGeometric:()=>Eg,randomInt:()=>pg,randomIrwinHall:()=>yg,randomLcg:()=>Fg,randomLogNormal:()=>mg,randomLogistic:()=>Sg,randomNormal:()=>gg,randomPareto:()=>_g,randomPoisson:()=>Ig,randomUniform:()=>dg,randomWeibull:()=>Tg,range:()=>bt,rank:()=>_t,reduce:()=>Rt,reverse:()=>Ut,rgb:()=>er,ribbon:()=>so,ribbonArrow:()=>co,rollup:()=>M,rollups:()=>R,scaleBand:()=>Rg,scaleDiverging:()=>Rb,scaleDivergingLog:()=>Ub,scaleDivergingPow:()=>Hb,scaleDivergingSqrt:()=>Qb,scaleDivergingSymlog:()=>Pb,scaleIdentity:()=>Jg,scaleImplicit:()=>Dg,scaleLinear:()=>Xg,scaleLog:()=>sm,scaleOrdinal:()=>Mg,scalePoint:()=>Pg,scalePow:()=>gm,scaleQuantile:()=>_m,scaleQuantize:()=>wm,scaleRadial:()=>bm,scaleSequential:()=>Ib,scaleSequentialLog:()=>Lb,scaleSequentialPow:()=>Nb,scaleSequentialQuantile:()=>Db,scaleSequentialSqrt:()=>Ob,scaleSequentialSymlog:()=>Fb,scaleSqrt:()=>mm,scaleSymlog:()=>um,scaleThreshold:()=>Em,scaleTime:()=>Bb,scaleUtc:()=>Tb,scan:()=>Bt,schemeAccent:()=>$b,schemeBlues:()=>G_,schemeBrBG:()=>t_,schemeBuGn:()=>y_,schemeBuPu:()=>b_,schemeCategory10:()=>jb,schemeDark2:()=>Kb,schemeGnBu:()=>w_,schemeGreens:()=>$_,schemeGreys:()=>Y_,schemeOrRd:()=>C_,schemeOranges:()=>J_,schemePRGn:()=>n_,schemePaired:()=>Yb,schemePastel1:()=>zb,schemePastel2:()=>Wb,schemePiYG:()=>i_,schemePuBu:()=>k_,schemePuBuGn:()=>B_,schemePuOr:()=>o_,schemePuRd:()=>I_,schemePurples:()=>W_,schemeRdBu:()=>c_,schemeRdGy:()=>A_,schemeRdPu:()=>F_,schemeRdYlBu:()=>h_,schemeRdYlGn:()=>d_,schemeReds:()=>q_,schemeSet1:()=>Vb,schemeSet2:()=>qb,schemeSet3:()=>Xb,schemeSpectral:()=>g_,schemeTableau10:()=>Jb,schemeYlGn:()=>M_,schemeYlGnBu:()=>O_,schemeYlOrBr:()=>U_,schemeYlOrRd:()=>H_,select:()=>Tn,selectAll:()=>_w,selection:()=>Bn,selector:()=>he,selectorAll:()=>pe,shuffle:()=>Tt,shuffler:()=>kt,some:()=>Ot,sort:()=>j,stack:()=>LC,stackOffsetDiverging:()=>NC,stackOffsetExpand:()=>FC,stackOffsetNone:()=>TC,stackOffsetSilhouette:()=>OC,stackOffsetWiggle:()=>DC,stackOrderAppearance:()=>MC,stackOrderAscending:()=>UC,stackOrderDescending:()=>HC,stackOrderInsideOut:()=>QC,stackOrderNone:()=>kC,stackOrderReverse:()=>GC,stratify:()=>Cp,style:()=>je,subset:()=>Kt,sum:()=>St,superset:()=>jt,svg:()=>Vc,symbol:()=>DE,symbolCircle:()=>mE,symbolCross:()=>yE,symbolDiamond:()=>_E,symbolSquare:()=>BE,symbolStar:()=>xE,symbolTriangle:()=>kE,symbolWye:()=>NE,symbols:()=>OE,text:()=>Uc,thresholdFreedmanDiaconis:()=>At,thresholdScott:()=>ut,thresholdSturges:()=>nt,tickFormat:()=>Vg,tickIncrement:()=>Z,tickStep:()=>tt,ticks:()=>J,timeDay:()=>Ym,timeDays:()=>zm,timeFormat:()=>ev,timeFormatDefaultLocale:()=>wb,timeFormatLocale:()=>Zy,timeFriday:()=>ty,timeFridays:()=>sy,timeHour:()=>jm,timeHours:()=>$m,timeInterval:()=>Fm,timeMillisecond:()=>Om,timeMilliseconds:()=>Dm,timeMinute:()=>Hm,timeMinutes:()=>Qm,timeMonday:()=>qm,timeMondays:()=>ry,timeMonth:()=>Ay,timeMonths:()=>uy,timeParse:()=>nv,timeSaturday:()=>ey,timeSaturdays:()=>cy,timeSecond:()=>Rm,timeSeconds:()=>Um,timeSunday:()=>Vm,timeSundays:()=>ny,timeThursday:()=>Zm,timeThursdays:()=>oy,timeTickInterval:()=>Vy,timeTicks:()=>Wy,timeTuesday:()=>Xm,timeTuesdays:()=>iy,timeWednesday:()=>Jm,timeWednesdays:()=>ay,timeWeek:()=>Vm,timeWeeks:()=>ny,timeYear:()=>fy,timeYears:()=>dy,timeout:()=>Zr,timer:()=>Wr,timerFlush:()=>Vr,transition:()=>Gi,transpose:()=>It,tree:()=>Np,treemap:()=>Up,treemapBinary:()=>Pp,treemapDice:()=>mp,treemapResquarify:()=>Qp,treemapSlice:()=>Op,treemapSliceDice:()=>Hp,treemapSquarify:()=>Rp,tsv:()=>Gc,tsvFormat:()=>Vs,tsvFormatBody:()=>qs,tsvFormatRow:()=>Js,tsvFormatRows:()=>Xs,tsvFormatValue:()=>Zs,tsvParse:()=>zs,tsvParseRows:()=>Ws,union:()=>Yt,utcDay:()=>wy,utcDays:()=>Ey,utcFormat:()=>rv,utcFriday:()=>Iy,utcFridays:()=>Ry,utcHour:()=>vy,utcHours:()=>by,utcMillisecond:()=>Om,utcMilliseconds:()=>Dm,utcMinute:()=>gy,utcMinutes:()=>my,utcMonday:()=>By,utcMondays:()=>Ny,utcMonth:()=>Hy,utcMonths:()=>Qy,utcParse:()=>iv,utcSaturday:()=>Ly,utcSaturdays:()=>Uy,utcSecond:()=>Rm,utcSeconds:()=>Um,utcSunday:()=>xy,utcSundays:()=>Fy,utcThursday:()=>Sy,utcThursdays:()=>My,utcTickInterval:()=>zy,utcTicks:()=>Yy,utcTuesday:()=>Ty,utcTuesdays:()=>Oy,utcWednesday:()=>ky,utcWednesdays:()=>Dy,utcWeek:()=>xy,utcWeeks:()=>Fy,utcYear:()=>jy,utcYears:()=>$y,variance:()=>y,window:()=>Pe,xml:()=>zc,zip:()=>Ft,zoom:()=>ox,zoomIdentity:()=>qC,zoomTransform:()=>XC});const o=i(r),s=o.right,c=o.left,l=i(a).center,A=s;function u(t,e){let n=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&++n;else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(i=+i)>=i&&++n}return n}function h(t){return 0|t.length}function f(t){return!(t>0)}function d(t){return"object"!=typeof t||"length"in t?t:Array.from(t)}function p(...t){const e="function"==typeof t[t.length-1]&&function(t){return e=>t(...e)}(t.pop()),n=(t=t.map(d)).map(h),r=t.length-1,i=new Array(r+1).fill(0),a=[];if(r<0||n.some(f))return a;for(;;){a.push(i.map((e,n)=>t[n][e]));let o=r;for(;++i[o]===n[o];){if(0===o)return e?a.map(e):a;i[o--]=0}}}function g(t,e){var n=0,r=0;return Float64Array.from(t,void 0===e?t=>n+=+t||0:i=>n+=+e(i,r++,t)||0)}function m(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function y(t,e){let n,r=0,i=0,a=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(n=e-i,i+=n/++r,a+=n*(e-i));else{let o=-1;for(let s of t)null!=(s=e(s,++o,t))&&(s=+s)>=s&&(n=s-i,i+=n/++r,a+=n*(s-i))}if(r>1)return a/(r-1)}function v(t,e){const n=y(t,e);return n?Math.sqrt(n):n}function b(t,e){let n,r;if(void 0===e)for(const e of t)null!=e&&(void 0===n?e>=e&&(n=r=e):(n>e&&(n=e),r<e&&(r=e)));else{let i=-1;for(let a of t)null!=(a=e(a,++i,t))&&(void 0===n?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}class _{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const e=this._partials;let n=0;for(let r=0;r<this._n&&r<32;r++){const i=e[r],a=t+i,o=Math.abs(t)<Math.abs(i)?t-(a-i):i-(a-t);o&&(e[n++]=o),t=a}return e[n]=t,this._n=n+1,this}valueOf(){const t=this._partials;let e,n,r,i=this._n,a=0;if(i>0){for(a=t[--i];i>0&&(e=a,n=t[--i],a=e+n,r=n-(a-e),!r););i>0&&(r<0&&t[i-1]<0||r>0&&t[i-1]>0)&&(n=2*r,e=a+n,n==e-a&&(a=e))}return a}}function w(t,e){const n=new _;if(void 0===e)for(let e of t)(e=+e)&&n.add(e);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&n.add(i)}return+n}function E(t,e){const n=new _;let r=-1;return Float64Array.from(t,void 0===e?t=>n.add(+t||0):i=>n.add(+e(i,++r,t)||0))}class C extends Map{constructor(t,e=S){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(B(this,t))}has(t){return super.has(B(this,t))}set(t,e){return super.set(T(this,t),e)}delete(t){return super.delete(k(this,t))}}class x extends Set{constructor(t,e=S){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const e of t)this.add(e)}has(t){return super.has(B(this,t))}add(t){return super.add(T(this,t))}delete(t){return super.delete(k(this,t))}}function B({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function T({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function k({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function S(t){return null!==t&&"object"==typeof t?t.valueOf():t}function I(t){return t}function L(t,...e){return Q(t,I,I,e)}function F(t,...e){return Q(t,Array.from,I,e)}function N(t,e){for(let n=1,r=e.length;n<r;++n)t=t.flatMap(t=>t.pop().map(([e,n])=>[...t,e,n]));return t}function O(t,...e){return N(F(t,...e),e)}function D(t,e,...n){return N(R(t,e,...n),n)}function M(t,e,...n){return Q(t,I,e,n)}function R(t,e,...n){return Q(t,Array.from,e,n)}function U(t,...e){return Q(t,I,H,e)}function P(t,...e){return Q(t,Array.from,H,e)}function H(t){if(1!==t.length)throw new Error("duplicate key");return t[0]}function Q(t,e,n,r){return function t(i,a){if(a>=r.length)return n(i);const o=new C,s=r[a++];let c=-1;for(const t of i){const e=s(t,++c,i),n=o.get(e);n?n.push(t):o.set(e,[t])}for(const[e,n]of o)o.set(e,t(n,a));return e(o)}(t,0)}function G(t,e){return Array.from(e,e=>t[e])}function j(t,...e){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");t=Array.from(t);let[n]=e;if(n&&2!==n.length||e.length>1){const r=Uint32Array.from(t,(t,e)=>e);return e.length>1?(e=e.map(e=>t.map(e)),r.sort((t,n)=>{for(const r of e){const e=K(r[t],r[n]);if(e)return e}})):(n=t.map(n),r.sort((t,e)=>K(n[t],n[e]))),G(t,r)}return t.sort($(n))}function $(t=r){if(t===r)return K;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||0===r?r:(0===t(n,n))-(0===t(e,e))}}function K(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}function Y(t,e,n){return(2!==e.length?j(M(t,e,n),([t,e],[n,i])=>r(e,i)||r(t,n)):j(L(t,n),([t,n],[i,a])=>e(n,a)||r(t,i))).map(([t])=>t)}var z=Array.prototype.slice;function W(t){return()=>t}var V=Math.sqrt(50),q=Math.sqrt(10),X=Math.sqrt(2);function J(t,e,n){var r,i,a,o,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(o=Z(t,e,n))||!isFinite(o))return[];if(o>0){let n=Math.round(t/o),r=Math.round(e/o);for(n*o<t&&++n,r*o>e&&--r,a=new Array(i=r-n+1);++s<i;)a[s]=(n+s)*o}else{o=-o;let n=Math.round(t*o),r=Math.round(e*o);for(n/o<t&&++n,r/o>e&&--r,a=new Array(i=r-n+1);++s<i;)a[s]=(n+s)/o}return r&&a.reverse(),a}function Z(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=V?10:a>=q?5:a>=X?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=V?10:a>=q?5:a>=X?2:1)}function tt(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=V?i*=10:a>=q?i*=5:a>=X&&(i*=2),e<t?-i:i}function et(t,e,n){let r;for(;;){const i=Z(t,e,n);if(i===r||0===i||!isFinite(i))return[t,e];i>0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):i<0&&(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),r=i}}function nt(t){return Math.ceil(Math.log(u(t))/Math.LN2)+1}function rt(){var t=I,e=b,n=nt;function r(r){Array.isArray(r)||(r=Array.from(r));var i,a,o=r.length,s=new Array(o);for(i=0;i<o;++i)s[i]=t(r[i],i,r);var c=e(s),l=c[0],u=c[1],h=n(s,l,u);if(!Array.isArray(h)){const t=u,n=+h;if(e===b&&([l,u]=et(l,u,n)),(h=J(l,u,n))[h.length-1]>=u)if(t>=u&&e===b){const t=Z(l,u,n);isFinite(t)&&(t>0?u=(Math.floor(u/t)+1)*t:t<0&&(u=(Math.ceil(u*-t)+1)/-t))}else h.pop()}for(var f=h.length;h[0]<=l;)h.shift(),--f;for(;h[f-1]>u;)h.pop(),--f;var d,p=new Array(f+1);for(i=0;i<=f;++i)(d=p[i]=[]).x0=i>0?h[i-1]:l,d.x1=i<f?h[i]:u;for(i=0;i<o;++i)null!=(a=s[i])&&l<=a&&a<=u&&p[A(h,a,0,f)].push(r[i]);return p}return r.value=function(e){return arguments.length?(t="function"==typeof e?e:W(e),r):t},r.domain=function(t){return arguments.length?(e="function"==typeof t?t:W([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?W(z.call(t)):W(t),r):n},r}function it(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function at(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function ot(t,e,n=0,r=t.length-1,i){for(i=void 0===i?K:$(i);r>n;){if(r-n>600){const a=r-n+1,o=e-n+1,s=Math.log(a),c=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*c*(a-c)/a)*(o-a/2<0?-1:1);ot(t,e,Math.max(n,Math.floor(e-o*c/a+l)),Math.min(r,Math.floor(e+(a-o)*c/a+l)),i)}const a=t[e];let o=n,s=r;for(st(t,n,e),i(t[r],a)>0&&st(t,n,r);o<s;){for(st(t,o,s),++o,--s;i(t[o],a)<0;)++o;for(;i(t[s],a)>0;)--s}0===i(t[n],a)?st(t,n,s):(++s,st(t,s,r)),s<=e&&(n=s+1),e<=s&&(r=s-1)}return t}function st(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function ct(t,e,n){if(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}(t,n)),r=t.length){if((e=+e)<=0||r<2)return at(t);if(e>=1)return it(t);var r,i=(r-1)*e,a=Math.floor(i),o=it(ot(t,a).subarray(0,a+1));return o+(at(t.subarray(a+1))-o)*(i-a)}}function lt(t,e,n=a){if(r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),s=+n(t[o],o,t);return s+(+n(t[o+1],o+1,t)-s)*(i-o)}}function At(t,e,n){return Math.ceil((n-e)/(2*(ct(t,.75)-ct(t,.25))*Math.pow(u(t),-1/3)))}function ut(t,e,n){return Math.ceil((n-e)/(3.5*v(t)*Math.pow(u(t),-1/3)))}function ht(t,e){let n,r=-1,i=-1;if(void 0===e)for(const e of t)++i,null!=e&&(n<e||void 0===n&&e>=e)&&(n=e,r=i);else for(let a of t)null!=(a=e(a,++i,t))&&(n<a||void 0===n&&a>=a)&&(n=a,r=i);return r}function ft(t,e){let n=0,r=0;if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(++n,r+=e);else{let i=-1;for(let a of t)null!=(a=e(a,++i,t))&&(a=+a)>=a&&(++n,r+=a)}if(n)return r/n}function dt(t,e){return ct(t,.5,e)}function pt(t){return Array.from(function*(t){for(const e of t)yield*e}(t))}function gt(t,e){let n,r=-1,i=-1;if(void 0===e)for(const e of t)++i,null!=e&&(n>e||void 0===n&&e>=e)&&(n=e,r=i);else for(let a of t)null!=(a=e(a,++i,t))&&(n>a||void 0===n&&a>=a)&&(n=a,r=i);return r}function mt(t,e){const n=new C;if(void 0===e)for(let e of t)null!=e&&e>=e&&n.set(e,(n.get(e)||0)+1);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&i>=i&&n.set(i,(n.get(i)||0)+1)}let r,i=0;for(const[t,e]of n)e>i&&(i=e,r=t);return r}function yt(t,e=vt){const n=[];let r,i=!1;for(const a of t)i&&n.push(e(r,a)),r=a,i=!0;return n}function vt(t,e){return[t,e]}function bt(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),a=new Array(i);++r<i;)a[r]=t+r*n;return a}function _t(t,e=r){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");let n=Array.from(t);const i=new Float64Array(n.length);2!==e.length&&(n=n.map(e),e=r);const a=(t,r)=>e(n[t],n[r]);let o,s;return Uint32Array.from(n,(t,e)=>e).sort(e===r?(t,e)=>K(n[t],n[e]):$(a)).forEach((t,e)=>{const n=a(t,void 0===o?t:o);n>=0?((void 0===o||n>0)&&(o=t,s=e),i[t]=s):i[t]=NaN}),i}function wt(t,e=r){let n,i=!1;if(1===e.length){let a;for(const o of t){const t=e(o);(i?r(t,a)<0:0===r(t,t))&&(n=o,a=t,i=!0)}}else for(const r of t)(i?e(r,n)<0:0===e(r,r))&&(n=r,i=!0);return n}function Et(t,e=r){if(1===e.length)return gt(t,e);let n,i=-1,a=-1;for(const r of t)++a,(i<0?0===e(r,r):e(r,n)<0)&&(n=r,i=a);return i}function Ct(t,e=r){let n,i=!1;if(1===e.length){let a;for(const o of t){const t=e(o);(i?r(t,a)>0:0===r(t,t))&&(n=o,a=t,i=!0)}}else for(const r of t)(i?e(r,n)>0:0===e(r,r))&&(n=r,i=!0);return n}function xt(t,e=r){if(1===e.length)return ht(t,e);let n,i=-1,a=-1;for(const r of t)++a,(i<0?0===e(r,r):e(r,n)>0)&&(n=r,i=a);return i}function Bt(t,e){const n=Et(t,e);return n<0?void 0:n}const Tt=kt(Math.random);function kt(t){return function(e,n=0,r=e.length){let i=r-(n=+n);for(;i;){const r=t()*i--|0,a=e[i+n];e[i+n]=e[r+n],e[r+n]=a}return e}}function St(t,e){let n=0;if(void 0===e)for(let e of t)(e=+e)&&(n+=e);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}function It(t){if(!(i=t.length))return[];for(var e=-1,n=at(t,Lt),r=new Array(n);++e<n;)for(var i,a=-1,o=r[e]=new Array(i);++a<i;)o[a]=t[a][e];return r}function Lt(t){return t.length}function Ft(){return It(arguments)}function Nt(t,e){if("function"!=typeof e)throw new TypeError("test is not a function");let n=-1;for(const r of t)if(!e(r,++n,t))return!1;return!0}function Ot(t,e){if("function"!=typeof e)throw new TypeError("test is not a function");let n=-1;for(const r of t)if(e(r,++n,t))return!0;return!1}function Dt(t,e){if("function"!=typeof e)throw new TypeError("test is not a function");const n=[];let r=-1;for(const i of t)e(i,++r,t)&&n.push(i);return n}function Mt(t,e){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!=typeof e)throw new TypeError("mapper is not a function");return Array.from(t,(n,r)=>e(n,r,t))}function Rt(t,e,n){if("function"!=typeof e)throw new TypeError("reducer is not a function");const r=t[Symbol.iterator]();let i,a,o=-1;if(arguments.length<3){if(({done:i,value:n}=r.next()),i)return;++o}for(;({done:i,value:a}=r.next()),!i;)n=e(n,a,++o,t);return n}function Ut(t){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(t).reverse()}function Pt(t,...e){t=new x(t);for(const n of e)for(const e of n)t.delete(e);return t}function Ht(t,e){const n=e[Symbol.iterator](),r=new x;for(const e of t){if(r.has(e))return!1;let t,i;for(;({value:t,done:i}=n.next())&&!i;){if(Object.is(e,t))return!1;r.add(t)}}return!0}function Qt(t,...e){t=new x(t),e=e.map(Gt);t:for(const n of t)for(const r of e)if(!r.has(n)){t.delete(n);continue t}return t}function Gt(t){return t instanceof x?t:new x(t)}function jt(t,e){const n=t[Symbol.iterator](),r=new Set;for(const t of e){const e=$t(t);if(r.has(e))continue;let i,a;for(;({value:i,done:a}=n.next());){if(a)return!1;const t=$t(i);if(r.add(t),Object.is(e,t))break}}return!0}function $t(t){return null!==t&&"object"==typeof t?t.valueOf():t}function Kt(t,e){return jt(e,t)}function Yt(...t){const e=new x;for(const n of t)for(const t of n)e.add(t);return e}function zt(t){return t}function Wt(t){return"translate("+t+",0)"}function Vt(t){return"translate(0,"+t+")"}function qt(t){return e=>+t(e)}function Xt(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Jt(){return!this.__axis}function Zt(t,e){var n=[],r=null,i=null,a=6,o=6,s=3,c="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,l=1===t||4===t?-1:1,A=4===t||2===t?"x":"y",u=1===t||3===t?Wt:Vt;function h(h){var f=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,d=null==i?e.tickFormat?e.tickFormat.apply(e,n):zt:i,p=Math.max(a,0)+s,g=e.range(),m=+g[0]+c,y=+g[g.length-1]+c,v=(e.bandwidth?Xt:qt)(e.copy(),c),b=h.selection?h.selection():h,_=b.selectAll(".domain").data([null]),w=b.selectAll(".tick").data(f,e).order(),E=w.exit(),C=w.enter().append("g").attr("class","tick"),x=w.select("line"),B=w.select("text");_=_.merge(_.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(C),x=x.merge(C.append("line").attr("stroke","currentColor").attr(A+"2",l*a)),B=B.merge(C.append("text").attr("fill","currentColor").attr(A,l*p).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),h!==b&&(_=_.transition(h),w=w.transition(h),x=x.transition(h),B=B.transition(h),E=E.transition(h).attr("opacity",1e-6).attr("transform",(function(t){return isFinite(t=v(t))?u(t+c):this.getAttribute("transform")})),C.attr("opacity",1e-6).attr("transform",(function(t){var e=this.parentNode.__axis;return u((e&&isFinite(e=e(t))?e:v(t))+c)}))),E.remove(),_.attr("d",4===t||2===t?o?"M"+l*o+","+m+"H"+c+"V"+y+"H"+l*o:"M"+c+","+m+"V"+y:o?"M"+m+","+l*o+"V"+c+"H"+y+"V"+l*o:"M"+m+","+c+"H"+y),w.attr("opacity",1).attr("transform",(function(t){return u(v(t)+c)})),x.attr(A+"2",l*a),B.attr(A,l*p).text(d),b.filter(Jt).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),b.each((function(){this.__axis=v}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(a=o=+t,h):a},h.tickSizeInner=function(t){return arguments.length?(a=+t,h):a},h.tickSizeOuter=function(t){return arguments.length?(o=+t,h):o},h.tickPadding=function(t){return arguments.length?(s=+t,h):s},h.offset=function(t){return arguments.length?(c=+t,h):c},h}function te(t){return Zt(1,t)}function ee(t){return Zt(2,t)}function ne(t){return Zt(3,t)}function re(t){return Zt(4,t)}var ie={value:()=>{}};function ae(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new oe(r)}function oe(t){this._=t}function se(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function ce(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function le(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=ie,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}oe.prototype=ae.prototype={constructor:oe,on:function(t,e){var n,r=this._,i=se(t+"",r),a=-1,o=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<o;)if(n=(t=i[a]).type)r[n]=le(r[n],t.name,e);else if(null==e)for(n in r)r[n]=le(r[n],t.name,null);return this}for(;++a<o;)if((n=(t=i[a]).type)&&(n=ce(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new oe(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,n=(r=this._[t]).length;a<n;++a)r[a].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,a=r.length;i<a;++i)r[i].value.apply(e,n)}};const Ae=ae;function ue(){}function he(t){return null==t?ue:function(){return this.querySelector(t)}}function fe(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function de(){return[]}function pe(t){return null==t?de:function(){return this.querySelectorAll(t)}}function ge(t){return function(){return this.matches(t)}}function me(t){return function(e){return e.matches(t)}}var ye=Array.prototype.find;function ve(){return this.firstElementChild}var be=Array.prototype.filter;function _e(){return Array.from(this.children)}function we(t){return new Array(t.length)}function Ee(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Ce(t){return function(){return t}}function xe(t,e,n,r,i,a){for(var o,s=0,c=e.length,l=a.length;s<l;++s)(o=e[s])?(o.__data__=a[s],r[s]=o):n[s]=new Ee(t,a[s]);for(;s<c;++s)(o=e[s])&&(i[s]=o)}function Be(t,e,n,r,i,a,o){var s,c,l,A=new Map,u=e.length,h=a.length,f=new Array(u);for(s=0;s<u;++s)(c=e[s])&&(f[s]=l=o.call(c,c.__data__,s,e)+"",A.has(l)?i[s]=c:A.set(l,c));for(s=0;s<h;++s)l=o.call(t,a[s],s,a)+"",(c=A.get(l))?(r[s]=c,c.__data__=a[s],A.delete(l)):n[s]=new Ee(t,a[s]);for(s=0;s<u;++s)(c=e[s])&&A.get(f[s])===c&&(i[s]=c)}function Te(t){return t.__data__}function ke(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Se(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}Ee.prototype={constructor:Ee,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Ie="http://www.w3.org/1999/xhtml";const Le={svg:"http://www.w3.org/2000/svg",xhtml:Ie,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Fe(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Le.hasOwnProperty(e)?{space:Le[e],local:t}:t}function Ne(t){return function(){this.removeAttribute(t)}}function Oe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function De(t,e){return function(){this.setAttribute(t,e)}}function Me(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Re(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Ue(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Pe(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function He(t){return function(){this.style.removeProperty(t)}}function Qe(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ge(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function je(t,e){return t.style.getPropertyValue(e)||Pe(t).getComputedStyle(t,null).getPropertyValue(e)}function $e(t){return function(){delete this[t]}}function Ke(t,e){return function(){this[t]=e}}function Ye(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function ze(t){return t.trim().split(/^|\s+/)}function We(t){return t.classList||new Ve(t)}function Ve(t){this._node=t,this._names=ze(t.getAttribute("class")||"")}function qe(t,e){for(var n=We(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Xe(t,e){for(var n=We(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function Je(t){return function(){qe(this,t)}}function Ze(t){return function(){Xe(this,t)}}function tn(t,e){return function(){(e.apply(this,arguments)?qe:Xe)(this,t)}}function en(){this.textContent=""}function nn(t){return function(){this.textContent=t}}function rn(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function an(){this.innerHTML=""}function on(t){return function(){this.innerHTML=t}}function sn(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function cn(){this.nextSibling&&this.parentNode.appendChild(this)}function ln(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function An(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Ie&&e.documentElement.namespaceURI===Ie?e.createElement(t):e.createElementNS(n,t)}}function un(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function hn(t){var e=Fe(t);return(e.local?un:An)(e)}function fn(){return null}function dn(){var t=this.parentNode;t&&t.removeChild(this)}function pn(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function gn(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function mn(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function yn(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r<a;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function vn(t,e,n){return function(){var r,i=this.__on,a=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var o=0,s=i.length;o<s;++o)if((r=i[o]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),void(r.value=e);this.addEventListener(t.type,a,n),r={type:t.type,name:t.name,value:e,listener:a,options:n},i?i.push(r):this.__on=[r]}}function bn(t,e,n){var r=Pe(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function _n(t,e){return function(){return bn(this,t,e)}}function wn(t,e){return function(){return bn(this,t,e.apply(this,arguments))}}Ve.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var En=[null];function Cn(t,e){this._groups=t,this._parents=e}function xn(){return new Cn([[document.documentElement]],En)}Cn.prototype=xn.prototype={constructor:Cn,select:function(t){"function"!=typeof t&&(t=he(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o,s=e[i],c=s.length,l=r[i]=new Array(c),A=0;A<c;++A)(a=s[A])&&(o=t.call(a,a.__data__,A,s))&&("__data__"in a&&(o.__data__=a.__data__),l[A]=o);return new Cn(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return fe(t.apply(this,arguments))}}(t):pe(t);for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var o,s=e[a],c=s.length,l=0;l<c;++l)(o=s[l])&&(r.push(t.call(o,o.__data__,l,s)),i.push(o));return new Cn(r,i)},selectChild:function(t){return this.select(null==t?ve:function(t){return function(){return ye.call(this.children,t)}}("function"==typeof t?t:me(t)))},selectChildren:function(t){return this.selectAll(null==t?_e:function(t){return function(){return be.call(this.children,t)}}("function"==typeof t?t:me(t)))},filter:function(t){"function"!=typeof t&&(t=ge(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,c=r[i]=[],l=0;l<s;++l)(a=o[l])&&t.call(a,a.__data__,l,o)&&c.push(a);return new Cn(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Te);var n=e?Be:xe,r=this._parents,i=this._groups;"function"!=typeof t&&(t=Ce(t));for(var a=i.length,o=new Array(a),s=new Array(a),c=new Array(a),l=0;l<a;++l){var A=r[l],u=i[l],h=u.length,f=ke(t.call(A,A&&A.__data__,l,r)),d=f.length,p=s[l]=new Array(d),g=o[l]=new Array(d),m=c[l]=new Array(h);n(A,u,p,g,m,f,e);for(var y,v,b=0,_=0;b<d;++b)if(y=p[b]){for(b>=_&&(_=b+1);!(v=g[_])&&++_<d;);y._next=v||null}}return(o=new Cn(o,r))._enter=s,o._exit=c,o},enter:function(){return new Cn(this._enter||this._groups.map(we),this._parents)},exit:function(){return new Cn(this._exit||this._groups.map(we),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,a=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?a.remove():n(a),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,a=r.length,o=Math.min(i,a),s=new Array(i),c=0;c<o;++c)for(var l,A=n[c],u=r[c],h=A.length,f=s[c]=new Array(h),d=0;d<h;++d)(l=A[d]||u[d])&&(f[d]=l);for(;c<i;++c)s[c]=n[c];return new Cn(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Se);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o,s=n[a],c=s.length,l=i[a]=new Array(c),A=0;A<c;++A)(o=s[A])&&(l[A]=o);l.sort(e)}return new Cn(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,a=e[n],o=0,s=a.length;o<s;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this},attr:function(t,e){var n=Fe(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?Oe:Ne:"function"==typeof e?n.local?Ue:Re:n.local?Me:De)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?He:"function"==typeof e?Ge:Qe)(t,e,null==n?"":n)):je(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?$e:"function"==typeof e?Ye:Ke)(t,e)):this.node()[t]},classed:function(t,e){var n=ze(t+"");if(arguments.length<2){for(var r=We(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?tn:e?Je:Ze)(n,e))},text:function(t){return arguments.length?this.each(null==t?en:("function"==typeof t?rn:nn)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?an:("function"==typeof t?sn:on)(t)):this.node().innerHTML},raise:function(){return this.each(cn)},lower:function(){return this.each(ln)},append:function(t){var e="function"==typeof t?t:hn(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:hn(t),r=null==e?fn:"function"==typeof e?e:he(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(dn)},clone:function(t){return this.select(t?gn:pn)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,a=mn(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?vn:yn,r=0;r<o;++r)this.each(s(a[r],e,n));return this}var s=this.node().__on;if(s)for(var c,l=0,A=s.length;l<A;++l)for(r=0,c=s[l];r<o;++r)if((i=a[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,e){return this.each(("function"==typeof e?wn:_n)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],a=0,o=i.length;a<o;++a)(r=i[a])&&(yield r)}};const Bn=xn;function Tn(t){return"string"==typeof t?new Cn([[document.querySelector(t)]],[document.documentElement]):new Cn([[t]],En)}const kn={passive:!1},Sn={capture:!0,passive:!1};function In(t){t.stopImmediatePropagation()}function Ln(t){t.preventDefault(),t.stopImmediatePropagation()}function Fn(t){var e=t.document.documentElement,n=Tn(t).on("dragstart.drag",Ln,Sn);"onselectstart"in e?n.on("selectstart.drag",Ln,Sn):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function Nn(t,e){var n=t.document.documentElement,r=Tn(t).on("dragstart.drag",null);e&&(r.on("click.drag",Ln,Sn),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function On(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Dn(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Mn(){}var Rn=1/.7,Un="\\s*([+-]?\\d+)\\s*",Pn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Hn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Qn=/^#([0-9a-f]{3,8})$/,Gn=new RegExp("^rgb\\("+[Un,Un,Un]+"\\)$"),jn=new RegExp("^rgb\\("+[Hn,Hn,Hn]+"\\)$"),$n=new RegExp("^rgba\\("+[Un,Un,Un,Pn]+"\\)$"),Kn=new RegExp("^rgba\\("+[Hn,Hn,Hn,Pn]+"\\)$"),Yn=new RegExp("^hsl\\("+[Pn,Hn,Hn]+"\\)$"),zn=new RegExp("^hsla\\("+[Pn,Hn,Hn,Pn]+"\\)$"),Wn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Vn(){return this.rgb().formatHex()}function qn(){return this.rgb().formatRgb()}function Xn(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Qn.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Jn(e):3===n?new nr(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Zn(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Zn(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Gn.exec(t))?new nr(e[1],e[2],e[3],1):(e=jn.exec(t))?new nr(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=$n.exec(t))?Zn(e[1],e[2],e[3],e[4]):(e=Kn.exec(t))?Zn(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Yn.exec(t))?or(e[1],e[2]/100,e[3]/100,1):(e=zn.exec(t))?or(e[1],e[2]/100,e[3]/100,e[4]):Wn.hasOwnProperty(t)?Jn(Wn[t]):"transparent"===t?new nr(NaN,NaN,NaN,0):null}function Jn(t){return new nr(t>>16&255,t>>8&255,255&t,1)}function Zn(t,e,n,r){return r<=0&&(t=e=n=NaN),new nr(t,e,n,r)}function tr(t){return t instanceof Mn||(t=Xn(t)),t?new nr((t=t.rgb()).r,t.g,t.b,t.opacity):new nr}function er(t,e,n,r){return 1===arguments.length?tr(t):new nr(t,e,n,null==r?1:r)}function nr(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function rr(){return"#"+ar(this.r)+ar(this.g)+ar(this.b)}function ir(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function ar(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function or(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new lr(t,e,n,r)}function sr(t){if(t instanceof lr)return new lr(t.h,t.s,t.l,t.opacity);if(t instanceof Mn||(t=Xn(t)),!t)return new lr;if(t instanceof lr)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n<r):n===a?(r-e)/s+2:(e-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new lr(o,s,c,t.opacity)}function cr(t,e,n,r){return 1===arguments.length?sr(t):new lr(t,e,n,null==r?1:r)}function lr(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Ar(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function ur(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}function hr(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=r<e-1?t[r+2]:2*a-i;return ur((n-r/e)*e,o,i,a,s)}}function fr(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],a=t[r%e],o=t[(r+1)%e],s=t[(r+2)%e];return ur((n-r/e)*e,i,a,o,s)}}On(Mn,Xn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Vn,formatHex:Vn,formatHsl:function(){return sr(this).formatHsl()},formatRgb:qn,toString:qn}),On(nr,er,Dn(Mn,{brighter:function(t){return t=null==t?Rn:Math.pow(Rn,t),new nr(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new nr(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rr,formatHex:rr,formatRgb:ir,toString:ir})),On(lr,cr,Dn(Mn,{brighter:function(t){return t=null==t?Rn:Math.pow(Rn,t),new lr(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new lr(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new nr(Ar(t>=240?t-240:t+120,i,r),Ar(t,i,r),Ar(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const dr=t=>()=>t;function pr(t,e){return function(n){return t+n*e}}function gr(t,e){var n=e-t;return n?pr(t,n>180||n<-180?n-360*Math.round(n/360):n):dr(isNaN(t)?e:t)}function mr(t,e){var n=e-t;return n?pr(t,n):dr(isNaN(t)?e:t)}const yr=function t(e){var n=function(t){return 1==(t=+t)?mr:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):dr(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=er(t)).r,(e=er(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=mr(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function vr(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=er(e[n]),a[n]=r.r||0,o[n]=r.g||0,s[n]=r.b||0;return a=t(a),o=t(o),s=t(s),r.opacity=1,function(t){return r.r=a(t),r.g=o(t),r.b=s(t),r+""}}}var br=vr(hr),_r=vr(fr);function wr(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(n=0;n<r;++n)i[n]=t[n]*(1-a)+e[n]*a;return i}}function Er(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Cr(t,e){return(Er(e)?wr:xr)(t,e)}function xr(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,a=new Array(i),o=new Array(r);for(n=0;n<i;++n)a[n]=Fr(t[n],e[n]);for(;n<r;++n)o[n]=e[n];return function(t){for(n=0;n<i;++n)o[n]=a[n](t);return o}}function Br(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Tr(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function kr(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=Fr(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var Sr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ir=new RegExp(Sr.source,"g");function Lr(t,e){var n,r,i,a=Sr.lastIndex=Ir.lastIndex=0,o=-1,s=[],c=[];for(t+="",e+="";(n=Sr.exec(t))&&(r=Ir.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,c.push({i:o,x:Tr(n,r)})),a=Ir.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var n,r=0;r<e;++r)s[(n=c[r]).i]=n.x(t);return s.join("")})}function Fr(t,e){var n,r=typeof e;return null==e||"boolean"===r?dr(e):("number"===r?Tr:"string"===r?(n=Xn(e))?(e=n,yr):Lr:e instanceof Xn?yr:e instanceof Date?Br:Er(e)?wr:Array.isArray(e)?xr:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?kr:Tr)(t,e)}function Nr(t){let e;for(;e=t.sourceEvent;)t=e;return t}function Or(t,e){if(t=Nr(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}var Dr,Mr,Rr=0,Ur=0,Pr=0,Hr=0,Qr=0,Gr=0,jr="object"==typeof performance&&performance.now?performance:Date,$r="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Kr(){return Qr||($r(Yr),Qr=jr.now()+Gr)}function Yr(){Qr=0}function zr(){this._call=this._time=this._next=null}function Wr(t,e,n){var r=new zr;return r.restart(t,e,n),r}function Vr(){Kr(),++Rr;for(var t,e=Dr;e;)(t=Qr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Rr}function qr(){Qr=(Hr=jr.now())+Gr,Rr=Ur=0;try{Vr()}finally{Rr=0,function(){for(var t,e,n=Dr,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Dr=e);Mr=t,Jr(r)}(),Qr=0}}function Xr(){var t=jr.now(),e=t-Hr;e>1e3&&(Gr-=e,Hr=t)}function Jr(t){Rr||(Ur&&(Ur=clearTimeout(Ur)),t-Qr>24?(t<1/0&&(Ur=setTimeout(qr,t-jr.now()-Gr)),Pr&&(Pr=clearInterval(Pr))):(Pr||(Hr=jr.now(),Pr=setInterval(Xr,1e3)),Rr=1,$r(qr)))}function Zr(t,e,n){var r=new zr;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r}zr.prototype=Wr.prototype={constructor:zr,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Kr():+n)+(null==e?0:+e),this._next||Mr===this||(Mr?Mr._next=this:Dr=this,Mr=this),this._call=t,this._time=n,Jr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Jr())}};var ti=Ae("start","end","cancel","interrupt"),ei=[];function ni(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(c){var l,A,u,h;if(1!==n.state)return s();for(l in i)if((h=i[l]).name===n.name){if(3===h.state)return Zr(a);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[l]):+l<e&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[l])}if(Zr((function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(c))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(u=n.tween.length),l=0,A=-1;l<u;++l)(h=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(r[++A]=h);r.length=A+1}}function o(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(s),n.state=5,1),a=-1,o=r.length;++a<o;)r[a].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=Wr((function(t){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:i,on:ti,tween:ei,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function ri(t,e){var n=ai(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function ii(t,e){var n=ai(t,e);if(n.state>3)throw new Error("too late; already running");return n}function ai(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function oi(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete t.__transition}}var si,ci=180/Math.PI,li={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ai(t,e,n,r,i,a){var o,s,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),t*r<e*n&&(t=-t,e=-e,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*ci,skewX:Math.atan(c)*ci,scaleX:o,scaleY:s}}function ui(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(a,o){var s=[],c=[];return a=t(a),o=t(o),function(t,r,i,a,o,s){if(t!==i||r!==a){var c=o.push("translate(",null,e,null,n);s.push({i:c-4,x:Tr(t,i)},{i:c-2,x:Tr(r,a)})}else(i||a)&&o.push("translate("+i+e+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,s,c),function(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Tr(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,s,c),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Tr(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,s,c),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:Tr(t,n)},{i:s-2,x:Tr(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,c),a=o=null,function(t){for(var e,n=-1,r=c.length;++n<r;)s[(e=c[n]).i]=e.x(t);return s.join("")}}}var hi=ui((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?li:Ai(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),fi=ui((function(t){return null==t?li:(si||(si=document.createElementNS("http://www.w3.org/2000/svg","g")),si.setAttribute("transform",t),(t=si.transform.baseVal.consolidate())?Ai((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):li)}),", ",")",")");function di(t,e){var n,r;return function(){var i=ii(this,t),a=i.tween;if(a!==n)for(var o=0,s=(r=n=a).length;o<s;++o)if(r[o].name===e){(r=r.slice()).splice(o,1);break}i.tween=r}}function pi(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var a=ii(this,t),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:e,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===e){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function gi(t,e,n){var r=t._id;return t.each((function(){var t=ii(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return ai(t,r).value[e]}}function mi(t,e){var n;return("number"==typeof e?Tr:e instanceof Xn?yr:(n=Xn(e))?(e=n,yr):Lr)(t,e)}function yi(t){return function(){this.removeAttribute(t)}}function vi(t){return function(){this.removeAttributeNS(t.space,t.local)}}function bi(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttribute(t);return o===a?null:o===r?i:i=e(r=o,n)}}function _i(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===r?i:i=e(r=o,n)}}function wi(t,e,n){var r,i,a;return function(){var o,s,c=n(this);if(null!=c)return(o=this.getAttribute(t))===(s=c+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,c));this.removeAttribute(t)}}function Ei(t,e,n){var r,i,a;return function(){var o,s,c=n(this);if(null!=c)return(o=this.getAttributeNS(t.space,t.local))===(s=c+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,c));this.removeAttributeNS(t.space,t.local)}}function Ci(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function xi(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Bi(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&xi(t,i)),n}return i._value=e,i}function Ti(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Ci(t,i)),n}return i._value=e,i}function ki(t,e){return function(){ri(this,t).delay=+e.apply(this,arguments)}}function Si(t,e){return e=+e,function(){ri(this,t).delay=e}}function Ii(t,e){return function(){ii(this,t).duration=+e.apply(this,arguments)}}function Li(t,e){return e=+e,function(){ii(this,t).duration=e}}function Fi(t,e){if("function"!=typeof e)throw new Error;return function(){ii(this,t).ease=e}}function Ni(t,e,n){var r,i,a=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?ri:ii;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}var Oi=Bn.prototype.constructor;function Di(t){return function(){this.style.removeProperty(t)}}function Mi(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Ri(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&Mi(t,a,n)),r}return a._value=e,a}function Ui(t){return function(e){this.textContent=t.call(this,e)}}function Pi(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Ui(r)),e}return r._value=t,r}var Hi=0;function Qi(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Gi(t){return Bn().transition(t)}function ji(){return++Hi}var $i=Bn.prototype;function Ki(t){return t*t*t}function Yi(t){return--t*t*t+1}function zi(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}Qi.prototype=Gi.prototype={constructor:Qi,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=he(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var s,c,l=r[o],A=l.length,u=a[o]=new Array(A),h=0;h<A;++h)(s=l[h])&&(c=t.call(s,s.__data__,h,l))&&("__data__"in s&&(c.__data__=s.__data__),u[h]=c,ni(u[h],e,n,h,u,ai(s,n)));return new Qi(a,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=pe(t));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c,l=r[s],A=l.length,u=0;u<A;++u)if(c=l[u]){for(var h,f=t.call(c,c.__data__,u,l),d=ai(c,n),p=0,g=f.length;p<g;++p)(h=f[p])&&ni(h,e,n,p,f,d);a.push(f),o.push(c)}return new Qi(a,o,e,n)},selectChild:$i.selectChild,selectChildren:$i.selectChildren,filter:function(t){"function"!=typeof t&&(t=ge(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,c=r[i]=[],l=0;l<s;++l)(a=o[l])&&t.call(a,a.__data__,l,o)&&c.push(a);return new Qi(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var c,l=e[s],A=n[s],u=l.length,h=o[s]=new Array(u),f=0;f<u;++f)(c=l[f]||A[f])&&(h[f]=c);for(;s<r;++s)o[s]=e[s];return new Qi(o,this._parents,this._name,this._id)},selection:function(){return new Oi(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=ji(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],c=s.length,l=0;l<c;++l)if(o=s[l]){var A=ai(o,e);ni(o,t,n,l,s,{time:A.time+A.delay+A.duration,delay:0,duration:A.duration,ease:A.ease})}return new Qi(r,this._parents,t,n)},call:$i.call,nodes:$i.nodes,node:$i.node,size:$i.size,empty:$i.empty,each:$i.each,on:function(t,e){var n=this._id;return arguments.length<2?ai(this.node(),n).on.on(t):this.each(Ni(n,t,e))},attr:function(t,e){var n=Fe(t),r="transform"===n?fi:mi;return this.attrTween(t,"function"==typeof e?(n.local?Ei:wi)(n,r,gi(this,"attr."+t,e)):null==e?(n.local?vi:yi)(n):(n.local?_i:bi)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=Fe(t);return this.tween(n,(r.local?Bi:Ti)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?hi:mi;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var a=je(this,t),o=(this.style.removeProperty(t),je(this,t));return a===o?null:a===n&&o===r?i:i=e(n=a,r=o)}}(t,r)).on("end.style."+t,Di(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,a;return function(){var o=je(this,t),s=n(this),c=s+"";return null==s&&(this.style.removeProperty(t),c=s=je(this,t)),o===c?null:o===r&&c===i?a:(i=c,a=e(r=o,s))}}(t,r,gi(this,"style."+t,e))).each(function(t,e){var n,r,i,a,o="style."+e,s="end."+o;return function(){var c=ii(this,t),l=c.on,A=null==c.value[o]?a||(a=Di(e)):void 0;l===n&&i===A||(r=(n=l).copy()).on(s,i=A),c.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,a=n+"";return function(){var o=je(this,t);return o===a?null:o===r?i:i=e(r=o,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,Ri(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(gi(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,Pi(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=ai(this.node(),n).tween,a=0,o=i.length;a<o;++a)if((r=i[a]).name===t)return r.value;return null}return this.each((null==e?di:pi)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?ki:Si)(e,t)):ai(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Ii:Li)(e,t)):ai(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(Fi(e,t)):ai(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;ii(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(a,o){var s={value:o},c={value:function(){0==--i&&a()}};n.each((function(){var n=ii(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(c)),n.on=e})),0===i&&a()}))},[Symbol.iterator]:$i[Symbol.iterator]};var Wi={time:null,delay:0,duration:250,ease:zi};function Vi(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}Bn.prototype.interrupt=function(t){return this.each((function(){oi(this,t)}))},Bn.prototype.transition=function(t){var e,n;t instanceof Qi?(e=t._id,t=t._name):(e=ji(),(n=Wi).time=Kr(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],c=s.length,l=0;l<c;++l)(o=s[l])&&ni(o,t,e,l,s,n||Vi(o,e));return new Qi(r,this._parents,t,e)};var qi=[null];function Xi(t,e){var n,r,i=t.__transition;if(i)for(r in e=null==e?null:e+"",i)if((n=i[r]).state>1&&n.name===e)return new Qi([[t]],qi,e,+r);return null}const Ji=t=>()=>t;function Zi(t,{sourceEvent:e,target:n,selection:r,mode:i,dispatch:a}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:a}})}function ta(t){t.stopImmediatePropagation()}function ea(t){t.preventDefault(),t.stopImmediatePropagation()}var na={name:"drag"},ra={name:"space"},ia={name:"handle"},aa={name:"center"};const{abs:oa,max:sa,min:ca}=Math;function la(t){return[+t[0],+t[1]]}function Aa(t){return[la(t[0]),la(t[1])]}var ua={name:"x",handles:["w","e"].map(va),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},ha={name:"y",handles:["n","s"].map(va),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},fa={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(va),input:function(t){return null==t?null:Aa(t)},output:function(t){return t}},da={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},pa={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},ga={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},ma={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},ya={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function va(t){return{type:t}}function ba(t){return!t.ctrlKey&&!t.button}function _a(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function wa(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ea(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Ca(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function xa(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function Ba(){return Sa(ua)}function Ta(){return Sa(ha)}function ka(){return Sa(fa)}function Sa(t){var e,n=_a,r=ba,i=wa,a=!0,o=Ae("start","brush","end"),s=6;function c(e){var n=e.property("__brush",p).selectAll(".overlay").data([va("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",da.overlay).merge(n).each((function(){var t=Ea(this).extent;Tn(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([va("selection")]).enter().append("rect").attr("class","selection").attr("cursor",da.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return da[t.type]})),e.each(l).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(i).on("touchstart.brush",h).on("touchmove.brush",f).on("touchend.brush touchcancel.brush",d).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function l(){var t=Tn(this),e=Ea(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-s/2:e[0][0]-s/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-s/2:e[0][1]-s/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+s:s})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+s:s}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function A(t,e,n){var r=t.__brush.emitter;return!r||n&&r.clean?new u(t,e,n):r}function u(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function h(n){if((!e||n.touches)&&r.apply(this,arguments)){var i,o,s,c,u,h,f,d,p,g,m,y=this,v=n.target.__data__.type,b="selection"===(a&&n.metaKey?v="overlay":v)?na:a&&n.altKey?aa:ia,_=t===ha?null:ma[v],w=t===ua?null:ya[v],E=Ea(y),C=E.extent,x=E.selection,B=C[0][0],T=C[0][1],k=C[1][0],S=C[1][1],I=0,L=0,F=_&&w&&a&&n.shiftKey,N=Array.from(n.touches||[n],t=>{const e=t.identifier;return(t=Or(t,y)).point0=t.slice(),t.identifier=e,t});oi(y);var O=A(y,arguments,!0).beforestart();if("overlay"===v){x&&(p=!0);const e=[N[0],N[1]||N[0]];E.selection=x=[[i=t===ha?B:ca(e[0][0],e[1][0]),s=t===ua?T:ca(e[0][1],e[1][1])],[u=t===ha?k:sa(e[0][0],e[1][0]),f=t===ua?S:sa(e[0][1],e[1][1])]],N.length>1&&P(n)}else i=x[0][0],s=x[0][1],u=x[1][0],f=x[1][1];o=i,c=s,h=u,d=f;var D=Tn(y).attr("pointer-events","none"),M=D.selectAll(".overlay").attr("cursor",da[v]);if(n.touches)O.moved=U,O.ended=H;else{var R=Tn(n.view).on("mousemove.brush",U,!0).on("mouseup.brush",H,!0);a&&R.on("keydown.brush",Q,!0).on("keyup.brush",G,!0),Fn(n.view)}l.call(y),O.start(n,b.name)}function U(t){for(const e of t.changedTouches||[t])for(const t of N)t.identifier===e.identifier&&(t.cur=Or(e,y));if(F&&!g&&!m&&1===N.length){const t=N[0];oa(t.cur[0]-t[0])>oa(t.cur[1]-t[1])?m=!0:g=!0}for(const t of N)t.cur&&(t[0]=t.cur[0],t[1]=t.cur[1]);p=!0,ea(t),P(t)}function P(t){const e=N[0],n=e.point0;var r;switch(I=e[0]-n[0],L=e[1]-n[1],b){case ra:case na:_&&(I=sa(B-i,ca(k-u,I)),o=i+I,h=u+I),w&&(L=sa(T-s,ca(S-f,L)),c=s+L,d=f+L);break;case ia:N[1]?(_&&(o=sa(B,ca(k,N[0][0])),h=sa(B,ca(k,N[1][0])),_=1),w&&(c=sa(T,ca(S,N[0][1])),d=sa(T,ca(S,N[1][1])),w=1)):(_<0?(I=sa(B-i,ca(k-i,I)),o=i+I,h=u):_>0&&(I=sa(B-u,ca(k-u,I)),o=i,h=u+I),w<0?(L=sa(T-s,ca(S-s,L)),c=s+L,d=f):w>0&&(L=sa(T-f,ca(S-f,L)),c=s,d=f+L));break;case aa:_&&(o=sa(B,ca(k,i-I*_)),h=sa(B,ca(k,u+I*_))),w&&(c=sa(T,ca(S,s-L*w)),d=sa(T,ca(S,f+L*w)))}h<o&&(_*=-1,r=i,i=u,u=r,r=o,o=h,h=r,v in pa&&M.attr("cursor",da[v=pa[v]])),d<c&&(w*=-1,r=s,s=f,f=r,r=c,c=d,d=r,v in ga&&M.attr("cursor",da[v=ga[v]])),E.selection&&(x=E.selection),g&&(o=x[0][0],h=x[1][0]),m&&(c=x[0][1],d=x[1][1]),x[0][0]===o&&x[0][1]===c&&x[1][0]===h&&x[1][1]===d||(E.selection=[[o,c],[h,d]],l.call(y),O.brush(t,b.name))}function H(t){if(ta(t),t.touches){if(t.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else Nn(t.view,p),R.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);D.attr("pointer-events","all"),M.attr("cursor",da.overlay),E.selection&&(x=E.selection),Ca(x)&&(E.selection=null,l.call(y)),O.end(t,b.name)}function Q(t){switch(t.keyCode){case 16:F=_&&w;break;case 18:b===ia&&(_&&(u=h-I*_,i=o+I*_),w&&(f=d-L*w,s=c+L*w),b=aa,P(t));break;case 32:b!==ia&&b!==aa||(_<0?u=h-I:_>0&&(i=o-I),w<0?f=d-L:w>0&&(s=c-L),b=ra,M.attr("cursor",da.selection),P(t));break;default:return}ea(t)}function G(t){switch(t.keyCode){case 16:F&&(g=m=F=!1,P(t));break;case 18:b===aa&&(_<0?u=h:_>0&&(i=o),w<0?f=d:w>0&&(s=c),b=ia,P(t));break;case 32:b===ra&&(t.altKey?(_&&(u=h-I*_,i=o+I*_),w&&(f=d-L*w,s=c+L*w),b=aa):(_<0?u=h:_>0&&(i=o),w<0?f=d:w>0&&(s=c),b=ia),M.attr("cursor",da[v]),P(t));break;default:return}ea(t)}}function f(t){A(this,arguments).moved(t)}function d(t){A(this,arguments).ended(t)}function p(){var e=this.__brush||{selection:null};return e.extent=Aa(n.apply(this,arguments)),e.dim=t,e}return c.move=function(e,n,r){e.tween?e.on("start.brush",(function(t){A(this,arguments).beforestart().start(t)})).on("interrupt.brush end.brush",(function(t){A(this,arguments).end(t)})).tween("brush",(function(){var e=this,r=e.__brush,i=A(e,arguments),a=r.selection,o=t.input("function"==typeof n?n.apply(this,arguments):n,r.extent),s=Fr(a,o);function c(t){r.selection=1===t&&null===o?null:s(t),l.call(e),i.brush()}return null!==a&&null!==o?c:c(1)})):e.each((function(){var e=this,i=arguments,a=e.__brush,o=t.input("function"==typeof n?n.apply(e,i):n,a.extent),s=A(e,i).beforestart();oi(e),a.selection=null===o?null:o,l.call(e),s.start(r).brush(r).end(r)}))},c.clear=function(t,e){c.move(t,null,e)},u.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(t,e){return this.starting?(this.starting=!1,this.emit("start",t,e)):this.emit("brush",t),this},brush:function(t,e){return this.emit("brush",t,e),this},end:function(t,e){return 0==--this.active&&(delete this.state.emitter,this.emit("end",t,e)),this},emit:function(e,n,r){var i=Tn(this.that).datum();o.call(e,this.that,new Zi(e,{sourceEvent:n,target:c,selection:t.output(this.state.selection),mode:r,dispatch:o}),i)}},c.extent=function(t){return arguments.length?(n="function"==typeof t?t:Ji(Aa(t)),c):n},c.filter=function(t){return arguments.length?(r="function"==typeof t?t:Ji(!!t),c):r},c.touchable=function(t){return arguments.length?(i="function"==typeof t?t:Ji(!!t),c):i},c.handleSize=function(t){return arguments.length?(s=+t,c):s},c.keyModifiers=function(t){return arguments.length?(a=!!t,c):a},c.on=function(){var t=o.on.apply(o,arguments);return t===o?c:t},c}var Ia=Math.abs,La=Math.cos,Fa=Math.sin,Na=Math.PI,Oa=Na/2,Da=2*Na,Ma=Math.max,Ra=1e-12;function Ua(t,e){return Array.from({length:e-t},(e,n)=>t+n)}function Pa(t){return function(e,n){return t(e.source.value+e.target.value,n.source.value+n.target.value)}}function Ha(){return ja(!1,!1)}function Qa(){return ja(!1,!0)}function Ga(){return ja(!0,!1)}function ja(t,e){var n=0,r=null,i=null,a=null;function o(o){var s,c=o.length,l=new Array(c),A=Ua(0,c),u=new Array(c*c),h=new Array(c),f=0;o=Float64Array.from({length:c*c},e?(t,e)=>o[e%c][e/c|0]:(t,e)=>o[e/c|0][e%c]);for(let e=0;e<c;++e){let n=0;for(let r=0;r<c;++r)n+=o[e*c+r]+t*o[r*c+e];f+=l[e]=n}s=(f=Ma(0,Da-n*c)/f)?n:Da/c;{let e=0;r&&A.sort((t,e)=>r(l[t],l[e]));for(const n of A){const r=e;if(t){const t=Ua(1+~c,c).filter(t=>t<0?o[~t*c+n]:o[n*c+t]);i&&t.sort((t,e)=>i(t<0?-o[~t*c+n]:o[n*c+t],e<0?-o[~e*c+n]:o[n*c+e]));for(const r of t)r<0?(u[~r*c+n]||(u[~r*c+n]={source:null,target:null})).target={index:n,startAngle:e,endAngle:e+=o[~r*c+n]*f,value:o[~r*c+n]}:(u[n*c+r]||(u[n*c+r]={source:null,target:null})).source={index:n,startAngle:e,endAngle:e+=o[n*c+r]*f,value:o[n*c+r]};h[n]={index:n,startAngle:r,endAngle:e,value:l[n]}}else{const t=Ua(0,c).filter(t=>o[n*c+t]||o[t*c+n]);i&&t.sort((t,e)=>i(o[n*c+t],o[n*c+e]));for(const r of t){let t;if(n<r?(t=u[n*c+r]||(u[n*c+r]={source:null,target:null}),t.source={index:n,startAngle:e,endAngle:e+=o[n*c+r]*f,value:o[n*c+r]}):(t=u[r*c+n]||(u[r*c+n]={source:null,target:null}),t.target={index:n,startAngle:e,endAngle:e+=o[n*c+r]*f,value:o[n*c+r]},n===r&&(t.source=t.target)),t.source&&t.target&&t.source.value<t.target.value){const e=t.source;t.source=t.target,t.target=e}}h[n]={index:n,startAngle:r,endAngle:e,value:l[n]}}e+=s}}return(u=Object.values(u)).groups=h,a?u.sort(a):u}return o.padAngle=function(t){return arguments.length?(n=Ma(0,t),o):n},o.sortGroups=function(t){return arguments.length?(r=t,o):r},o.sortSubgroups=function(t){return arguments.length?(i=t,o):i},o.sortChords=function(t){return arguments.length?(null==t?a=null:(a=Pa(t))._=t,o):a&&a._},o}const $a=Math.PI,Ka=2*$a,Ya=1e-6,za=Ka-Ya;function Wa(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Va(){return new Wa}Wa.prototype=Va.prototype={constructor:Wa,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-t,c=r-e,l=a-t,A=o-e,u=l*l+A*A;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(u>Ya)if(Math.abs(A*s-c*l)>Ya&&i){var h=n-a,f=r-o,d=s*s+c*c,p=h*h+f*f,g=Math.sqrt(d),m=Math.sqrt(u),y=i*Math.tan(($a-Math.acos((d+u-p)/(2*g*m)))/2),v=y/m,b=y/g;Math.abs(v-1)>Ya&&(this._+="L"+(t+v*l)+","+(e+v*A)),this._+="A"+i+","+i+",0,0,"+ +(A*h>l*f)+","+(this._x1=t+b*s)+","+(this._y1=e+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,r,i,a){t=+t,e=+e,a=!!a;var o=(n=+n)*Math.cos(r),s=n*Math.sin(r),c=t+o,l=e+s,A=1^a,u=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>Ya||Math.abs(this._y1-l)>Ya)&&(this._+="L"+c+","+l),n&&(u<0&&(u=u%Ka+Ka),u>za?this._+="A"+n+","+n+",0,1,"+A+","+(t-o)+","+(e-s)+"A"+n+","+n+",0,1,"+A+","+(this._x1=c)+","+(this._y1=l):u>Ya&&(this._+="A"+n+","+n+",0,"+ +(u>=$a)+","+A+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const qa=Va;var Xa=Array.prototype.slice;function Ja(t){return function(){return t}}function Za(t){return t.source}function to(t){return t.target}function eo(t){return t.radius}function no(t){return t.startAngle}function ro(t){return t.endAngle}function io(){return 0}function ao(){return 10}function oo(t){var e=Za,n=to,r=eo,i=eo,a=no,o=ro,s=io,c=null;function l(){var l,A=e.apply(this,arguments),u=n.apply(this,arguments),h=s.apply(this,arguments)/2,f=Xa.call(arguments),d=+r.apply(this,(f[0]=A,f)),p=a.apply(this,f)-Oa,g=o.apply(this,f)-Oa,m=+i.apply(this,(f[0]=u,f)),y=a.apply(this,f)-Oa,v=o.apply(this,f)-Oa;if(c||(c=l=qa()),h>Ra&&(Ia(g-p)>2*h+Ra?g>p?(p+=h,g-=h):(p-=h,g+=h):p=g=(p+g)/2,Ia(v-y)>2*h+Ra?v>y?(y+=h,v-=h):(y-=h,v+=h):y=v=(y+v)/2),c.moveTo(d*La(p),d*Fa(p)),c.arc(0,0,d,p,g),p!==y||g!==v)if(t){var b=+t.apply(this,arguments),_=m-b,w=(y+v)/2;c.quadraticCurveTo(0,0,_*La(y),_*Fa(y)),c.lineTo(m*La(w),m*Fa(w)),c.lineTo(_*La(v),_*Fa(v))}else c.quadraticCurveTo(0,0,m*La(y),m*Fa(y)),c.arc(0,0,m,y,v);if(c.quadraticCurveTo(0,0,d*La(p),d*Fa(p)),c.closePath(),l)return c=null,l+""||null}return t&&(l.headRadius=function(e){return arguments.length?(t="function"==typeof e?e:Ja(+e),l):t}),l.radius=function(t){return arguments.length?(r=i="function"==typeof t?t:Ja(+t),l):r},l.sourceRadius=function(t){return arguments.length?(r="function"==typeof t?t:Ja(+t),l):r},l.targetRadius=function(t){return arguments.length?(i="function"==typeof t?t:Ja(+t),l):i},l.startAngle=function(t){return arguments.length?(a="function"==typeof t?t:Ja(+t),l):a},l.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:Ja(+t),l):o},l.padAngle=function(t){return arguments.length?(s="function"==typeof t?t:Ja(+t),l):s},l.source=function(t){return arguments.length?(e=t,l):e},l.target=function(t){return arguments.length?(n=t,l):n},l.context=function(t){return arguments.length?(c=null==t?null:t,l):c},l}function so(){return oo()}function co(){return oo(ao)}const lo=Math.PI/180,Ao=180/Math.PI,uo=6/29*3*(6/29);function ho(t){if(t instanceof go)return new go(t.l,t.a,t.b,t.opacity);if(t instanceof Co)return xo(t);t instanceof nr||(t=tr(t));var e,n,r=bo(t.r),i=bo(t.g),a=bo(t.b),o=mo((.2225045*r+.7168786*i+.0606169*a)/1);return r===i&&i===a?e=n=o:(e=mo((.4360747*r+.3850649*i+.1430804*a)/.96422),n=mo((.0139322*r+.0971045*i+.7141733*a)/.82521)),new go(116*o-16,500*(e-o),200*(o-n),t.opacity)}function fo(t,e){return new go(t,0,0,null==e?1:e)}function po(t,e,n,r){return 1===arguments.length?ho(t):new go(t,e,n,null==r?1:r)}function go(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function mo(t){return t>.008856451679035631?Math.pow(t,1/3):t/uo+4/29}function yo(t){return t>6/29?t*t*t:uo*(t-4/29)}function vo(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function bo(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function _o(t){if(t instanceof Co)return new Co(t.h,t.c,t.l,t.opacity);if(t instanceof go||(t=ho(t)),0===t.a&&0===t.b)return new Co(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Ao;return new Co(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function wo(t,e,n,r){return 1===arguments.length?_o(t):new Co(n,e,t,null==r?1:r)}function Eo(t,e,n,r){return 1===arguments.length?_o(t):new Co(t,e,n,null==r?1:r)}function Co(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function xo(t){if(isNaN(t.h))return new go(t.l,0,0,t.opacity);var e=t.h*lo;return new go(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}On(go,po,Dn(Mn,{brighter:function(t){return new go(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new go(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new nr(vo(3.1338561*(e=.96422*yo(e))-1.6168667*(t=1*yo(t))-.4906146*(n=.82521*yo(n))),vo(-.9787684*e+1.9161415*t+.033454*n),vo(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),On(Co,Eo,Dn(Mn,{brighter:function(t){return new Co(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Co(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return xo(this).rgb()}}));var Bo=1.78277,To=-.29227,ko=-.90649,So=1.97294,Io=So*ko,Lo=So*Bo,Fo=Bo*To- -.14861*ko;function No(t){if(t instanceof Do)return new Do(t.h,t.s,t.l,t.opacity);t instanceof nr||(t=tr(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(Fo*r+Io*e-Lo*n)/(Fo+Io-Lo),a=r-i,o=(So*(n-i)-To*a)/ko,s=Math.sqrt(o*o+a*a)/(So*i*(1-i)),c=s?Math.atan2(o,a)*Ao-120:NaN;return new Do(c<0?c+360:c,s,i,t.opacity)}function Oo(t,e,n,r){return 1===arguments.length?No(t):new Do(t,e,n,null==r?1:r)}function Do(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}On(Do,Oo,Dn(Mn,{brighter:function(t){return t=null==t?Rn:Math.pow(Rn,t),new Do(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Do(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*lo,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new nr(255*(e+n*(-.14861*r+Bo*i)),255*(e+n*(To*r+ko*i)),255*(e+n*(So*r)),this.opacity)}}));var Mo=Array.prototype.slice;function Ro(t,e){return t-e}const Uo=t=>()=>t;function Po(t,e){for(var n,r=-1,i=e.length;++r<i;)if(n=Ho(t,e[r]))return n;return 0}function Ho(t,e){for(var n=e[0],r=e[1],i=-1,a=0,o=t.length,s=o-1;a<o;s=a++){var c=t[a],l=c[0],A=c[1],u=t[s],h=u[0],f=u[1];if(Qo(c,u,e))return 0;A>r!=f>r&&n<(h-l)*(r-A)/(f-A)+l&&(i=-i)}return i}function Qo(t,e,n){var r,i,a,o;return function(t,e,n){return(e[0]-t[0])*(n[1]-t[1])==(n[0]-t[0])*(e[1]-t[1])}(t,e,n)&&(i=t[r=+(t[0]===e[0])],a=n[r],o=e[r],i<=a&&a<=o||o<=a&&a<=i)}function Go(){}var jo=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function $o(){var t=1,e=1,n=nt,r=s;function i(t){var e=n(t);if(Array.isArray(e))e=e.slice().sort(Ro);else{const n=b(t),r=tt(n[0],n[1],e);e=J(Math.floor(n[0]/r)*r,Math.floor(n[1]/r-1)*r,e)}return e.map(e=>a(t,e))}function a(n,i){var a=[],s=[];return function(n,r,i){var a,s,c,l,A,u,h=new Array,f=new Array;for(a=s=-1,l=n[0]>=r,jo[l<<1].forEach(d);++a<t-1;)c=l,l=n[a+1]>=r,jo[c|l<<1].forEach(d);for(jo[l<<0].forEach(d);++s<e-1;){for(a=-1,l=n[s*t+t]>=r,A=n[s*t]>=r,jo[l<<1|A<<2].forEach(d);++a<t-1;)c=l,l=n[s*t+t+a+1]>=r,u=A,A=n[s*t+a+1]>=r,jo[c|l<<1|A<<2|u<<3].forEach(d);jo[l|A<<3].forEach(d)}for(a=-1,A=n[s*t]>=r,jo[A<<2].forEach(d);++a<t-1;)u=A,A=n[s*t+a+1]>=r,jo[A<<2|u<<3].forEach(d);function d(t){var e,n,r=[t[0][0]+a,t[0][1]+s],c=[t[1][0]+a,t[1][1]+s],l=o(r),A=o(c);(e=f[l])?(n=h[A])?(delete f[e.end],delete h[n.start],e===n?(e.ring.push(c),i(e.ring)):h[e.start]=f[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete f[e.end],e.ring.push(c),f[e.end=A]=e):(e=h[A])?(n=f[l])?(delete h[e.start],delete f[n.end],e===n?(e.ring.push(c),i(e.ring)):h[n.start]=f[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete h[e.start],e.ring.unshift(r),h[e.start=l]=e):h[l]=f[A]={start:l,end:A,ring:[r,c]}}jo[A<<3].forEach(d)}(n,i,(function(t){r(t,n,i),function(t){for(var e=0,n=t.length,r=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];++e<n;)r+=t[e-1][1]*t[e][0]-t[e-1][0]*t[e][1];return r}(t)>0?a.push([t]):s.push(t)})),s.forEach((function(t){for(var e,n=0,r=a.length;n<r;++n)if(-1!==Po((e=a[n])[0],t))return void e.push(t)})),{type:"MultiPolygon",value:i,coordinates:a}}function o(e){return 2*e[0]+e[1]*(t+1)*4}function s(n,r,i){n.forEach((function(n){var a,o=n[0],s=n[1],c=0|o,l=0|s,A=r[l*t+c];o>0&&o<t&&c===o&&(a=r[l*t+c-1],n[0]=o+(i-a)/(A-a)-.5),s>0&&s<e&&l===s&&(a=r[(l-1)*t+c],n[1]=s+(i-a)/(A-a)-.5)}))}return i.contour=a,i.size=function(n){if(!arguments.length)return[t,e];var r=Math.floor(n[0]),a=Math.floor(n[1]);if(!(r>=0&&a>=0))throw new Error("invalid size");return t=r,e=a,i},i.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?Uo(Mo.call(t)):Uo(t),i):n},i.smooth=function(t){return arguments.length?(r=t?s:Go,i):r===s},i}function Ko(t,e,n){for(var r=t.width,i=t.height,a=1+(n<<1),o=0;o<i;++o)for(var s=0,c=0;s<r+n;++s)s<r&&(c+=t.data[s+o*r]),s>=n&&(s>=a&&(c-=t.data[s-a+o*r]),e.data[s-n+o*r]=c/Math.min(s+1,r-1+a-s,a))}function Yo(t,e,n){for(var r=t.width,i=t.height,a=1+(n<<1),o=0;o<r;++o)for(var s=0,c=0;s<i+n;++s)s<i&&(c+=t.data[o+s*r]),s>=n&&(s>=a&&(c-=t.data[o+(s-a)*r]),e.data[o+(s-n)*r]=c/Math.min(s+1,i-1+a-s,a))}function zo(t){return t[0]}function Wo(t){return t[1]}function Vo(){return 1}function qo(){var t=zo,e=Wo,n=Vo,r=960,i=500,a=20,o=2,s=3*a,c=r+2*s>>o,l=i+2*s>>o,A=Uo(20);function u(r){var i=new Float32Array(c*l),u=new Float32Array(c*l),f=Math.pow(2,-o);r.forEach((function(r,a,o){var A=(t(r,a,o)+s)*f,u=(e(r,a,o)+s)*f,h=+n(r,a,o);if(A>=0&&A<c&&u>=0&&u<l){var d=Math.floor(A),p=Math.floor(u),g=A-d-.5,m=u-p-.5;i[d+p*c]+=(1-g)*(1-m)*h,i[d+1+p*c]+=g*(1-m)*h,i[d+1+(p+1)*c]+=g*m*h,i[d+(p+1)*c]+=(1-g)*m*h}})),Ko({width:c,height:l,data:i},{width:c,height:l,data:u},a>>o),Yo({width:c,height:l,data:u},{width:c,height:l,data:i},a>>o),Ko({width:c,height:l,data:i},{width:c,height:l,data:u},a>>o),Yo({width:c,height:l,data:u},{width:c,height:l,data:i},a>>o),Ko({width:c,height:l,data:i},{width:c,height:l,data:u},a>>o),Yo({width:c,height:l,data:u},{width:c,height:l,data:i},a>>o);var d=A(i);if(!Array.isArray(d)){var p=it(i);d=tt(0,p,d),(d=bt(0,Math.floor(p/d)*d,d)).shift()}return $o().thresholds(d).size([c,l])(i).map(h)}function h(t){return t.value*=Math.pow(2,-2*o),t.coordinates.forEach(f),t}function f(t){t.forEach(d)}function d(t){t.forEach(p)}function p(t){t[0]=t[0]*Math.pow(2,o)-s,t[1]=t[1]*Math.pow(2,o)-s}function g(){return c=r+2*(s=3*a)>>o,l=i+2*s>>o,u}return u.x=function(e){return arguments.length?(t="function"==typeof e?e:Uo(+e),u):t},u.y=function(t){return arguments.length?(e="function"==typeof t?t:Uo(+t),u):e},u.weight=function(t){return arguments.length?(n="function"==typeof t?t:Uo(+t),u):n},u.size=function(t){if(!arguments.length)return[r,i];var e=+t[0],n=+t[1];if(!(e>=0&&n>=0))throw new Error("invalid size");return r=e,i=n,g()},u.cellSize=function(t){if(!arguments.length)return 1<<o;if(!((t=+t)>=1))throw new Error("invalid cell size");return o=Math.floor(Math.log(t)/Math.LN2),g()},u.thresholds=function(t){return arguments.length?(A="function"==typeof t?t:Array.isArray(t)?Uo(Mo.call(t)):Uo(t),u):A},u.bandwidth=function(t){if(!arguments.length)return Math.sqrt(a*(a+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return a=Math.round((Math.sqrt(4*t*t+1)-1)/2),g()},u}const Xo=134217729;function Jo(t,e,n,r,i){let a,o,s,c,l=e[0],A=r[0],u=0,h=0;A>l==A>-l?(a=l,l=e[++u]):(a=A,A=r[++h]);let f=0;if(u<t&&h<n)for(A>l==A>-l?(o=l+a,s=a-(o-l),l=e[++u]):(o=A+a,s=a-(o-A),A=r[++h]),a=o,0!==s&&(i[f++]=s);u<t&&h<n;)A>l==A>-l?(o=a+l,c=o-a,s=a-(o-c)+(l-c),l=e[++u]):(o=a+A,c=o-a,s=a-(o-c)+(A-c),A=r[++h]),a=o,0!==s&&(i[f++]=s);for(;u<t;)o=a+l,c=o-a,s=a-(o-c)+(l-c),l=e[++u],a=o,0!==s&&(i[f++]=s);for(;h<n;)o=a+A,c=o-a,s=a-(o-c)+(A-c),A=r[++h],a=o,0!==s&&(i[f++]=s);return 0===a&&0!==f||(i[f++]=a),f}function Zo(t){return new Float64Array(t)}const ts=Zo(4),es=Zo(8),ns=Zo(12),rs=Zo(16),is=Zo(4);function as(t,e,n,r,i,a){const o=(e-a)*(n-i),s=(t-i)*(r-a),c=o-s;if(0===o||0===s||o>0!=s>0)return c;const l=Math.abs(o+s);return Math.abs(c)>=33306690738754716e-32*l?c:-function(t,e,n,r,i,a,o){let s,c,l,A,u,h,f,d,p,g,m,y,v,b,_,w,E,C;const x=t-i,B=n-i,T=e-a,k=r-a;b=x*k,h=Xo*x,f=h-(h-x),d=x-f,h=Xo*k,p=h-(h-k),g=k-p,_=d*g-(b-f*p-d*p-f*g),w=T*B,h=Xo*T,f=h-(h-T),d=T-f,h=Xo*B,p=h-(h-B),g=B-p,E=d*g-(w-f*p-d*p-f*g),m=_-E,u=_-m,ts[0]=_-(m+u)+(u-E),y=b+m,u=y-b,v=b-(y-u)+(m-u),m=v-w,u=v-m,ts[1]=v-(m+u)+(u-w),C=y+m,u=C-y,ts[2]=y-(C-u)+(m-u),ts[3]=C;let S=function(t,e){let n=e[0];for(let t=1;t<4;t++)n+=e[t];return n}(0,ts),I=22204460492503146e-32*o;if(S>=I||-S>=I)return S;if(u=t-x,s=t-(x+u)+(u-i),u=n-B,l=n-(B+u)+(u-i),u=e-T,c=e-(T+u)+(u-a),u=r-k,A=r-(k+u)+(u-a),0===s&&0===c&&0===l&&0===A)return S;if(I=11093356479670487e-47*o+33306690738754706e-32*Math.abs(S),S+=x*A+k*s-(T*l+B*c),S>=I||-S>=I)return S;b=s*k,h=Xo*s,f=h-(h-s),d=s-f,h=Xo*k,p=h-(h-k),g=k-p,_=d*g-(b-f*p-d*p-f*g),w=c*B,h=Xo*c,f=h-(h-c),d=c-f,h=Xo*B,p=h-(h-B),g=B-p,E=d*g-(w-f*p-d*p-f*g),m=_-E,u=_-m,is[0]=_-(m+u)+(u-E),y=b+m,u=y-b,v=b-(y-u)+(m-u),m=v-w,u=v-m,is[1]=v-(m+u)+(u-w),C=y+m,u=C-y,is[2]=y-(C-u)+(m-u),is[3]=C;const L=Jo(4,ts,4,is,es);b=x*A,h=Xo*x,f=h-(h-x),d=x-f,h=Xo*A,p=h-(h-A),g=A-p,_=d*g-(b-f*p-d*p-f*g),w=T*l,h=Xo*T,f=h-(h-T),d=T-f,h=Xo*l,p=h-(h-l),g=l-p,E=d*g-(w-f*p-d*p-f*g),m=_-E,u=_-m,is[0]=_-(m+u)+(u-E),y=b+m,u=y-b,v=b-(y-u)+(m-u),m=v-w,u=v-m,is[1]=v-(m+u)+(u-w),C=y+m,u=C-y,is[2]=y-(C-u)+(m-u),is[3]=C;const F=Jo(L,es,4,is,ns);b=s*A,h=Xo*s,f=h-(h-s),d=s-f,h=Xo*A,p=h-(h-A),g=A-p,_=d*g-(b-f*p-d*p-f*g),w=c*l,h=Xo*c,f=h-(h-c),d=c-f,h=Xo*l,p=h-(h-l),g=l-p,E=d*g-(w-f*p-d*p-f*g),m=_-E,u=_-m,is[0]=_-(m+u)+(u-E),y=b+m,u=y-b,v=b-(y-u)+(m-u),m=v-w,u=v-m,is[1]=v-(m+u)+(u-w),C=y+m,u=C-y,is[2]=y-(C-u)+(m-u),is[3]=C;const N=Jo(F,ns,4,is,rs);return rs[N-1]}(t,e,n,r,i,a,l)}const os=Math.pow(2,-52),ss=new Uint32Array(512);class cs{static from(t,e=ds,n=ps){const r=t.length,i=new Float64Array(2*r);for(let a=0;a<r;a++){const r=t[a];i[2*a]=e(r),i[2*a+1]=n(r)}return new cs(i)}constructor(t){const e=t.length>>1;if(e>0&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;const n=Math.max(2*e-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(e)),this._hullPrev=new Uint32Array(e),this._hullNext=new Uint32Array(e),this._hullTri=new Uint32Array(e),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(e),this._dists=new Float64Array(e),this.update()}update(){const{coords:t,_hullPrev:e,_hullNext:n,_hullTri:r,_hullHash:i}=this,a=t.length>>1;let o=1/0,s=1/0,c=-1/0,l=-1/0;for(let e=0;e<a;e++){const n=t[2*e],r=t[2*e+1];n<o&&(o=n),r<s&&(s=r),n>c&&(c=n),r>l&&(l=r),this._ids[e]=e}const A=(o+c)/2,u=(s+l)/2;let h,f,d,p=1/0;for(let e=0;e<a;e++){const n=ls(A,u,t[2*e],t[2*e+1]);n<p&&(h=e,p=n)}const g=t[2*h],m=t[2*h+1];p=1/0;for(let e=0;e<a;e++){if(e===h)continue;const n=ls(g,m,t[2*e],t[2*e+1]);n<p&&n>0&&(f=e,p=n)}let y=t[2*f],v=t[2*f+1],b=1/0;for(let e=0;e<a;e++){if(e===h||e===f)continue;const n=us(g,m,y,v,t[2*e],t[2*e+1]);n<b&&(d=e,b=n)}let _=t[2*d],w=t[2*d+1];if(b===1/0){for(let e=0;e<a;e++)this._dists[e]=t[2*e]-t[0]||t[2*e+1]-t[1];hs(this._ids,this._dists,0,a-1);const e=new Uint32Array(a);let n=0;for(let t=0,r=-1/0;t<a;t++){const i=this._ids[t];this._dists[i]>r&&(e[n++]=i,r=this._dists[i])}return this.hull=e.subarray(0,n),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(as(g,m,y,v,_,w)<0){const t=f,e=y,n=v;f=d,y=_,v=w,d=t,_=e,w=n}const E=function(t,e,n,r,i,a){const o=n-t,s=r-e,c=i-t,l=a-e,A=o*o+s*s,u=c*c+l*l,h=.5/(o*l-s*c);return{x:t+(l*A-s*u)*h,y:e+(o*u-c*A)*h}}(g,m,y,v,_,w);this._cx=E.x,this._cy=E.y;for(let e=0;e<a;e++)this._dists[e]=ls(t[2*e],t[2*e+1],E.x,E.y);hs(this._ids,this._dists,0,a-1),this._hullStart=h;let C=3;n[h]=e[d]=f,n[f]=e[h]=d,n[d]=e[f]=h,r[h]=0,r[f]=1,r[d]=2,i.fill(-1),i[this._hashKey(g,m)]=h,i[this._hashKey(y,v)]=f,i[this._hashKey(_,w)]=d,this.trianglesLen=0,this._addTriangle(h,f,d,-1,-1,-1);for(let a,o,s=0;s<this._ids.length;s++){const c=this._ids[s],l=t[2*c],A=t[2*c+1];if(s>0&&Math.abs(l-a)<=os&&Math.abs(A-o)<=os)continue;if(a=l,o=A,c===h||c===f||c===d)continue;let u=0;for(let t=0,e=this._hashKey(l,A);t<this._hashSize&&(u=i[(e+t)%this._hashSize],-1===u||u===n[u]);t++);u=e[u];let p,g=u;for(;p=n[g],as(l,A,t[2*g],t[2*g+1],t[2*p],t[2*p+1])>=0;)if(g=p,g===u){g=-1;break}if(-1===g)continue;let m=this._addTriangle(g,c,n[g],-1,-1,r[g]);r[c]=this._legalize(m+2),r[g]=m,C++;let y=n[g];for(;p=n[y],as(l,A,t[2*y],t[2*y+1],t[2*p],t[2*p+1])<0;)m=this._addTriangle(y,c,p,r[c],-1,r[y]),r[c]=this._legalize(m+2),n[y]=y,C--,y=p;if(g===u)for(;p=e[g],as(l,A,t[2*p],t[2*p+1],t[2*g],t[2*g+1])<0;)m=this._addTriangle(p,c,g,-1,r[g],r[p]),this._legalize(m+2),r[p]=m,n[g]=g,C--,g=p;this._hullStart=e[c]=g,n[g]=e[y]=c,n[c]=y,i[this._hashKey(l,A)]=c,i[this._hashKey(t[2*g],t[2*g+1])]=g}this.hull=new Uint32Array(C);for(let t=0,e=this._hullStart;t<C;t++)this.hull[t]=e,e=n[e];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,e){return Math.floor(function(t,e){const n=t/(Math.abs(t)+Math.abs(e));return(e>0?3-n:1+n)/4}(t-this._cx,e-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:e,_halfedges:n,coords:r}=this;let i=0,a=0;for(;;){const o=n[t],s=t-t%3;if(a=s+(t+2)%3,-1===o){if(0===i)break;t=ss[--i];continue}const c=o-o%3,l=s+(t+1)%3,A=c+(o+2)%3,u=e[a],h=e[t],f=e[l],d=e[A];if(As(r[2*u],r[2*u+1],r[2*h],r[2*h+1],r[2*f],r[2*f+1],r[2*d],r[2*d+1])){e[t]=d,e[o]=u;const r=n[A];if(-1===r){let e=this._hullStart;do{if(this._hullTri[e]===A){this._hullTri[e]=t;break}e=this._hullPrev[e]}while(e!==this._hullStart)}this._link(t,r),this._link(o,n[a]),this._link(a,A);const s=c+(o+1)%3;i<ss.length&&(ss[i++]=s)}else{if(0===i)break;t=ss[--i]}}return a}_link(t,e){this._halfedges[t]=e,-1!==e&&(this._halfedges[e]=t)}_addTriangle(t,e,n,r,i,a){const o=this.trianglesLen;return this._triangles[o]=t,this._triangles[o+1]=e,this._triangles[o+2]=n,this._link(o,r),this._link(o+1,i),this._link(o+2,a),this.trianglesLen+=3,o}}function ls(t,e,n,r){const i=t-n,a=e-r;return i*i+a*a}function As(t,e,n,r,i,a,o,s){const c=t-o,l=e-s,A=n-o,u=r-s,h=i-o,f=a-s,d=A*A+u*u,p=h*h+f*f;return c*(u*p-d*f)-l*(A*p-d*h)+(c*c+l*l)*(A*f-u*h)<0}function us(t,e,n,r,i,a){const o=n-t,s=r-e,c=i-t,l=a-e,A=o*o+s*s,u=c*c+l*l,h=.5/(o*l-s*c),f=(l*A-s*u)*h,d=(o*u-c*A)*h;return f*f+d*d}function hs(t,e,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const r=t[i],a=e[r];let o=i-1;for(;o>=n&&e[t[o]]>a;)t[o+1]=t[o--];t[o+1]=r}else{let i=n+1,a=r;fs(t,n+r>>1,i),e[t[n]]>e[t[r]]&&fs(t,n,r),e[t[i]]>e[t[r]]&&fs(t,i,r),e[t[n]]>e[t[i]]&&fs(t,n,i);const o=t[i],s=e[o];for(;;){do{i++}while(e[t[i]]<s);do{a--}while(e[t[a]]>s);if(a<i)break;fs(t,i,a)}t[n+1]=t[a],t[a]=o,r-i+1>=a-n?(hs(t,e,i,r),hs(t,e,n,a-1)):(hs(t,e,n,a-1),hs(t,e,i,r))}}function fs(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function ds(t){return t[0]}function ps(t){return t[1]}class gs{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,e){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,e){this._+=`L${this._x1=+t},${this._y1=+e}`}arc(t,e,n){const r=(t=+t)+(n=+n),i=e=+e;if(n<0)throw new Error("negative radius");null===this._x1?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>1e-6||Math.abs(this._y1-i)>1e-6)&&(this._+="L"+r+","+i),n&&(this._+=`A${n},${n},0,1,1,${t-n},${e}A${n},${n},0,1,1,${this._x1=r},${this._y1=i}`)}rect(t,e,n,r){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${+n}v${+r}h${-n}Z`}value(){return this._||null}}class ms{constructor(){this._=[]}moveTo(t,e){this._.push([t,e])}closePath(){this._.push(this._[0].slice())}lineTo(t,e){this._.push([t,e])}value(){return this._.length?this._:null}}class ys{constructor(t,[e,n,r,i]=[0,0,960,500]){if(!((r=+r)>=(e=+e)&&(i=+i)>=(n=+n)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(2*t.points.length),this.vectors=new Float64Array(2*t.points.length),this.xmax=r,this.xmin=e,this.ymax=i,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:e,triangles:n},vectors:r}=this,i=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let e,r,a=0,o=0,s=n.length;a<s;a+=3,o+=2){const s=2*n[a],c=2*n[a+1],l=2*n[a+2],A=t[s],u=t[s+1],h=t[c],f=t[c+1],d=t[l],p=t[l+1],g=h-A,m=f-u,y=d-A,v=p-u,b=2*(g*v-m*y);if(Math.abs(b)<1e-9){let i=1e9;const a=2*n[0];i*=Math.sign((t[a]-A)*v-(t[a+1]-u)*y),e=(A+d)/2-i*v,r=(u+p)/2+i*y}else{const t=1/b,n=g*g+m*m,i=y*y+v*v;e=A+(v*n-m*i)*t,r=u+(g*i-y*n)*t}i[o]=e,i[o+1]=r}let a,o,s,c=e[e.length-1],l=4*c,A=t[2*c],u=t[2*c+1];r.fill(0);for(let n=0;n<e.length;++n)c=e[n],a=l,o=A,s=u,l=4*c,A=t[2*c],u=t[2*c+1],r[a+2]=r[l]=s-u,r[a+3]=r[l+1]=A-o}render(t){const e=null==t?t=new gs:void 0,{delaunay:{halfedges:n,inedges:r,hull:i},circumcenters:a,vectors:o}=this;if(i.length<=1)return null;for(let e=0,r=n.length;e<r;++e){const r=n[e];if(r<e)continue;const i=2*Math.floor(e/3),o=2*Math.floor(r/3),s=a[i],c=a[i+1],l=a[o],A=a[o+1];this._renderSegment(s,c,l,A,t)}let s,c=i[i.length-1];for(let e=0;e<i.length;++e){s=c,c=i[e];const n=2*Math.floor(r[c]/3),l=a[n],A=a[n+1],u=4*s,h=this._project(l,A,o[u+2],o[u+3]);h&&this._renderSegment(l,A,h[0],h[1],t)}return e&&e.value()}renderBounds(t){const e=null==t?t=new gs:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),e&&e.value()}renderCell(t,e){const n=null==e?e=new gs:void 0,r=this._clip(t);if(null===r||!r.length)return;e.moveTo(r[0],r[1]);let i=r.length;for(;r[0]===r[i-2]&&r[1]===r[i-1]&&i>1;)i-=2;for(let t=2;t<i;t+=2)r[t]===r[t-2]&&r[t+1]===r[t-1]||e.lineTo(r[t],r[t+1]);return e.closePath(),n&&n.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let e=0,n=t.length/2;e<n;++e){const t=this.cellPolygon(e);t&&(t.index=e,yield t)}}cellPolygon(t){const e=new ms;return this.renderCell(t,e),e.value()}_renderSegment(t,e,n,r,i){let a;const o=this._regioncode(t,e),s=this._regioncode(n,r);0===o&&0===s?(i.moveTo(t,e),i.lineTo(n,r)):(a=this._clipSegment(t,e,n,r,o,s))&&(i.moveTo(a[0],a[1]),i.lineTo(a[2],a[3]))}contains(t,e,n){return(e=+e)==e&&(n=+n)==n&&this.delaunay._step(t,e,n)===t}*neighbors(t){const e=this._clip(t);if(e)for(const n of this.delaunay.neighbors(t)){const t=this._clip(n);if(t)t:for(let r=0,i=e.length;r<i;r+=2)for(let a=0,o=t.length;a<o;a+=2)if(e[r]==t[a]&&e[r+1]==t[a+1]&&e[(r+2)%i]==t[(a+o-2)%o]&&e[(r+3)%i]==t[(a+o-1)%o]){yield n;break t}}}_cell(t){const{circumcenters:e,delaunay:{inedges:n,halfedges:r,triangles:i}}=this,a=n[t];if(-1===a)return null;const o=[];let s=a;do{const n=Math.floor(s/3);if(o.push(e[2*n],e[2*n+1]),s=s%3==2?s-2:s+1,i[s]!==t)break;s=r[s]}while(s!==a&&-1!==s);return o}_clip(t){if(0===t&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const e=this._cell(t);if(null===e)return null;const{vectors:n}=this,r=4*t;return n[r]||n[r+1]?this._clipInfinite(t,e,n[r],n[r+1],n[r+2],n[r+3]):this._clipFinite(t,e)}_clipFinite(t,e){const n=e.length;let r,i,a,o,s=null,c=e[n-2],l=e[n-1],A=this._regioncode(c,l),u=0;for(let h=0;h<n;h+=2)if(r=c,i=l,c=e[h],l=e[h+1],a=A,A=this._regioncode(c,l),0===a&&0===A)o=u,u=0,s?s.push(c,l):s=[c,l];else{let e,n,h,f,d;if(0===a){if(null===(e=this._clipSegment(r,i,c,l,a,A)))continue;[n,h,f,d]=e}else{if(null===(e=this._clipSegment(c,l,r,i,A,a)))continue;[f,d,n,h]=e,o=u,u=this._edgecode(n,h),o&&u&&this._edge(t,o,u,s,s.length),s?s.push(n,h):s=[n,h]}o=u,u=this._edgecode(f,d),o&&u&&this._edge(t,o,u,s,s.length),s?s.push(f,d):s=[f,d]}if(s)o=u,u=this._edgecode(s[0],s[1]),o&&u&&this._edge(t,o,u,s,s.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return s}_clipSegment(t,e,n,r,i,a){for(;;){if(0===i&&0===a)return[t,e,n,r];if(i&a)return null;let o,s,c=i||a;8&c?(o=t+(n-t)*(this.ymax-e)/(r-e),s=this.ymax):4&c?(o=t+(n-t)*(this.ymin-e)/(r-e),s=this.ymin):2&c?(s=e+(r-e)*(this.xmax-t)/(n-t),o=this.xmax):(s=e+(r-e)*(this.xmin-t)/(n-t),o=this.xmin),i?(t=o,e=s,i=this._regioncode(t,e)):(n=o,r=s,a=this._regioncode(n,r))}}_clipInfinite(t,e,n,r,i,a){let o,s=Array.from(e);if((o=this._project(s[0],s[1],n,r))&&s.unshift(o[0],o[1]),(o=this._project(s[s.length-2],s[s.length-1],i,a))&&s.push(o[0],o[1]),s=this._clipFinite(t,s))for(let e,n=0,r=s.length,i=this._edgecode(s[r-2],s[r-1]);n<r;n+=2)e=i,i=this._edgecode(s[n],s[n+1]),e&&i&&(n=this._edge(t,e,i,s,n),r=s.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(s=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return s}_edge(t,e,n,r,i){for(;e!==n;){let n,a;switch(e){case 5:e=4;continue;case 4:e=6,n=this.xmax,a=this.ymin;break;case 6:e=2;continue;case 2:e=10,n=this.xmax,a=this.ymax;break;case 10:e=8;continue;case 8:e=9,n=this.xmin,a=this.ymax;break;case 9:e=1;continue;case 1:e=5,n=this.xmin,a=this.ymin}r[i]===n&&r[i+1]===a||!this.contains(t,n,a)||(r.splice(i,0,n,a),i+=2)}if(r.length>4)for(let t=0;t<r.length;t+=2){const e=(t+2)%r.length,n=(t+4)%r.length;(r[t]===r[e]&&r[e]===r[n]||r[t+1]===r[e+1]&&r[e+1]===r[n+1])&&(r.splice(e,2),t-=2)}return i}_project(t,e,n,r){let i,a,o,s=1/0;if(r<0){if(e<=this.ymin)return null;(i=(this.ymin-e)/r)<s&&(o=this.ymin,a=t+(s=i)*n)}else if(r>0){if(e>=this.ymax)return null;(i=(this.ymax-e)/r)<s&&(o=this.ymax,a=t+(s=i)*n)}if(n>0){if(t>=this.xmax)return null;(i=(this.xmax-t)/n)<s&&(a=this.xmax,o=e+(s=i)*r)}else if(n<0){if(t<=this.xmin)return null;(i=(this.xmin-t)/n)<s&&(a=this.xmin,o=e+(s=i)*r)}return[a,o]}_edgecode(t,e){return(t===this.xmin?1:t===this.xmax?2:0)|(e===this.ymin?4:e===this.ymax?8:0)}_regioncode(t,e){return(t<this.xmin?1:t>this.xmax?2:0)|(e<this.ymin?4:e>this.ymax?8:0)}}const vs=2*Math.PI,bs=Math.pow;function _s(t){return t[0]}function ws(t){return t[1]}function Es(t,e,n){return[t+Math.sin(t+e)*n,e+Math.cos(t-e)*n]}class Cs{static from(t,e=_s,n=ws,r){return new Cs("length"in t?function(t,e,n,r){const i=t.length,a=new Float64Array(2*i);for(let o=0;o<i;++o){const i=t[o];a[2*o]=e.call(r,i,o,t),a[2*o+1]=n.call(r,i,o,t)}return a}(t,e,n,r):Float64Array.from(function*(t,e,n,r){let i=0;for(const a of t)yield e.call(r,a,i,t),yield n.call(r,a,i,t),++i}(t,e,n,r)))}constructor(t){this._delaunator=new cs(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,e=this.points;if(t.hull&&t.hull.length>2&&function(t){const{triangles:e,coords:n}=t;for(let t=0;t<e.length;t+=3){const r=2*e[t],i=2*e[t+1],a=2*e[t+2];if((n[a]-n[r])*(n[i+1]-n[r+1])-(n[i]-n[r])*(n[a+1]-n[r+1])>1e-10)return!1}return!0}(t)){this.collinear=Int32Array.from({length:e.length/2},(t,e)=>e).sort((t,n)=>e[2*t]-e[2*n]||e[2*t+1]-e[2*n+1]);const t=this.collinear[0],n=this.collinear[this.collinear.length-1],r=[e[2*t],e[2*t+1],e[2*n],e[2*n+1]],i=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let t=0,n=e.length/2;t<n;++t){const n=Es(e[2*t],e[2*t+1],i);e[2*t]=n[0],e[2*t+1]=n[1]}this._delaunator=new cs(e)}else delete this.collinear;const n=this.halfedges=this._delaunator.halfedges,r=this.hull=this._delaunator.hull,i=this.triangles=this._delaunator.triangles,a=this.inedges.fill(-1),o=this._hullIndex.fill(-1);for(let t=0,e=n.length;t<e;++t){const e=i[t%3==2?t-2:t+1];-1!==n[t]&&-1!==a[e]||(a[e]=t)}for(let t=0,e=r.length;t<e;++t)o[r[t]]=t;r.length<=2&&r.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=r[0],a[r[0]]=1,2===r.length&&(a[r[1]]=0,this.triangles[1]=r[1],this.triangles[2]=r[1]))}voronoi(t){return new ys(this,t)}*neighbors(t){const{inedges:e,hull:n,_hullIndex:r,halfedges:i,triangles:a,collinear:o}=this;if(o){const e=o.indexOf(t);return e>0&&(yield o[e-1]),void(e<o.length-1&&(yield o[e+1]))}const s=e[t];if(-1===s)return;let c=s,l=-1;do{if(yield l=a[c],c=c%3==2?c-2:c+1,a[c]!==t)return;if(c=i[c],-1===c){const e=n[(r[t]+1)%n.length];return void(e!==l&&(yield e))}}while(c!==s)}find(t,e,n=0){if((t=+t)!=t||(e=+e)!=e)return-1;const r=n;let i;for(;(i=this._step(n,t,e))>=0&&i!==n&&i!==r;)n=i;return i}_step(t,e,n){const{inedges:r,hull:i,_hullIndex:a,halfedges:o,triangles:s,points:c}=this;if(-1===r[t]||!c.length)return(t+1)%(c.length>>1);let l=t,A=bs(e-c[2*t],2)+bs(n-c[2*t+1],2);const u=r[t];let h=u;do{let r=s[h];const u=bs(e-c[2*r],2)+bs(n-c[2*r+1],2);if(u<A&&(A=u,l=r),h=h%3==2?h-2:h+1,s[h]!==t)break;if(h=o[h],-1===h){if(h=i[(a[t]+1)%i.length],h!==r&&bs(e-c[2*h],2)+bs(n-c[2*h+1],2)<A)return h;break}}while(h!==u);return l}render(t){const e=null==t?t=new gs:void 0,{points:n,halfedges:r,triangles:i}=this;for(let e=0,a=r.length;e<a;++e){const a=r[e];if(a<e)continue;const o=2*i[e],s=2*i[a];t.moveTo(n[o],n[o+1]),t.lineTo(n[s],n[s+1])}return this.renderHull(t),e&&e.value()}renderPoints(t,e){void 0!==e||t&&"function"==typeof t.moveTo||(e=t,t=null),e=null==e?2:+e;const n=null==t?t=new gs:void 0,{points:r}=this;for(let n=0,i=r.length;n<i;n+=2){const i=r[n],a=r[n+1];t.moveTo(i+e,a),t.arc(i,a,e,0,vs)}return n&&n.value()}renderHull(t){const e=null==t?t=new gs:void 0,{hull:n,points:r}=this,i=2*n[0],a=n.length;t.moveTo(r[i],r[i+1]);for(let e=1;e<a;++e){const i=2*n[e];t.lineTo(r[i],r[i+1])}return t.closePath(),e&&e.value()}hullPolygon(){const t=new ms;return this.renderHull(t),t.value()}renderTriangle(t,e){const n=null==e?e=new gs:void 0,{points:r,triangles:i}=this,a=2*i[t*=3],o=2*i[t+1],s=2*i[t+2];return e.moveTo(r[a],r[a+1]),e.lineTo(r[o],r[o+1]),e.lineTo(r[s],r[s+1]),e.closePath(),n&&n.value()}*trianglePolygons(){const{triangles:t}=this;for(let e=0,n=t.length/3;e<n;++e)yield this.trianglePolygon(e)}trianglePolygon(t){const e=new ms;return this.renderTriangle(t,e),e.value()}}const xs=t=>()=>t;function Bs(t,{sourceEvent:e,subject:n,target:r,identifier:i,active:a,x:o,y:s,dx:c,dy:l,dispatch:A}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:A}})}function Ts(t){return!t.ctrlKey&&!t.button}function ks(){return this.parentNode}function Ss(t,e){return null==e?{x:t.x,y:t.y}:e}function Is(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ls(){var t,e,n,r,i=Ts,a=ks,o=Ss,s=Is,c={},l=Ae("start","drag","end"),A=0,u=0;function h(t){t.on("mousedown.drag",f).filter(s).on("touchstart.drag",g).on("touchmove.drag",m,kn).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(o,s){if(!r&&i.call(this,o,s)){var c=v(this,a.call(this,o,s),o,s,"mouse");c&&(Tn(o.view).on("mousemove.drag",d,Sn).on("mouseup.drag",p,Sn),Fn(o.view),In(o),n=!1,t=o.clientX,e=o.clientY,c("start",o))}}function d(r){if(Ln(r),!n){var i=r.clientX-t,a=r.clientY-e;n=i*i+a*a>u}c.mouse("drag",r)}function p(t){Tn(t.view).on("mousemove.drag mouseup.drag",null),Nn(t.view,n),Ln(t),c.mouse("end",t)}function g(t,e){if(i.call(this,t,e)){var n,r,o=t.changedTouches,s=a.call(this,t,e),c=o.length;for(n=0;n<c;++n)(r=v(this,s,t,e,o[n].identifier,o[n]))&&(In(t),r("start",t,o[n]))}}function m(t){var e,n,r=t.changedTouches,i=r.length;for(e=0;e<i;++e)(n=c[r[e].identifier])&&(Ln(t),n("drag",t,r[e]))}function y(t){var e,n,i=t.changedTouches,a=i.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),e=0;e<a;++e)(n=c[i[e].identifier])&&(In(t),n("end",t,i[e]))}function v(t,e,n,r,i,a){var s,u,f,d=l.copy(),p=Or(a||n,e);if(null!=(f=o.call(t,new Bs("beforestart",{sourceEvent:n,target:h,identifier:i,active:A,x:p[0],y:p[1],dx:0,dy:0,dispatch:d}),r)))return s=f.x-p[0]||0,u=f.y-p[1]||0,function n(a,o,l){var g,m=p;switch(a){case"start":c[i]=n,g=A++;break;case"end":delete c[i],--A;case"drag":p=Or(l||o,e),g=A}d.call(a,t,new Bs(a,{sourceEvent:o,subject:f,target:h,identifier:i,active:g,x:p[0]+s,y:p[1]+u,dx:p[0]-m[0],dy:p[1]-m[1],dispatch:d}),r)}}return h.filter=function(t){return arguments.length?(i="function"==typeof t?t:xs(!!t),h):i},h.container=function(t){return arguments.length?(a="function"==typeof t?t:xs(t),h):a},h.subject=function(t){return arguments.length?(o="function"==typeof t?t:xs(t),h):o},h.touchable=function(t){return arguments.length?(s="function"==typeof t?t:xs(!!t),h):s},h.on=function(){var t=l.on.apply(l,arguments);return t===l?h:t},h.clickDistance=function(t){return arguments.length?(u=(t=+t)*t,h):Math.sqrt(u)},h}Bs.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var Fs={},Ns={};function Os(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'})).join(",")+"}")}function Ds(t){var e=Object.create(null),n=[];return t.forEach((function(t){for(var r in t)r in e||n.push(e[r]=r)})),n}function Ms(t,e){var n=t+"",r=n.length;return r<e?new Array(e-r+1).join(0)+n:n}function Rs(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function r(t,e){var r,i=[],a=t.length,o=0,s=0,c=a<=0,l=!1;function A(){if(c)return Ns;if(l)return l=!1,Fs;var e,r,i=o;if(34===t.charCodeAt(i)){for(;o++<a&&34!==t.charCodeAt(o)||34===t.charCodeAt(++o););return(e=o)>=a?c=!0:10===(r=t.charCodeAt(o++))?l=!0:13===r&&(l=!0,10===t.charCodeAt(o)&&++o),t.slice(i+1,e-1).replace(/""/g,'"')}for(;o<a;){if(10===(r=t.charCodeAt(e=o++)))l=!0;else if(13===r)l=!0,10===t.charCodeAt(o)&&++o;else if(r!==n)continue;return t.slice(i,e)}return c=!0,t.slice(i,a)}for(10===t.charCodeAt(a-1)&&--a,13===t.charCodeAt(a-1)&&--a;(r=A())!==Ns;){for(var u=[];r!==Fs&&r!==Ns;)u.push(r),r=A();e&&null==(u=e(u,s++))||i.push(u)}return i}function i(e,n){return e.map((function(e){return n.map((function(t){return o(e[t])})).join(t)}))}function a(e){return e.map(o).join(t)}function o(t){return null==t?"":t instanceof Date?function(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":function(t){return t<0?"-"+Ms(-t,6):t>9999?"+"+Ms(t,6):Ms(t,4)}(t.getUTCFullYear())+"-"+Ms(t.getUTCMonth()+1,2)+"-"+Ms(t.getUTCDate(),2)+(i?"T"+Ms(e,2)+":"+Ms(n,2)+":"+Ms(r,2)+"."+Ms(i,3)+"Z":r?"T"+Ms(e,2)+":"+Ms(n,2)+":"+Ms(r,2)+"Z":n||e?"T"+Ms(e,2)+":"+Ms(n,2)+"Z":"")}(t):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,e){var n,i,a=r(t,(function(t,r){if(n)return n(t,r-1);i=t,n=e?function(t,e){var n=Os(t);return function(r,i){return e(n(r),i,t)}}(t,e):Os(t)}));return a.columns=i||[],a},parseRows:r,format:function(e,n){return null==n&&(n=Ds(e)),[n.map(o).join(t)].concat(i(e,n)).join("\n")},formatBody:function(t,e){return null==e&&(e=Ds(t)),i(t,e).join("\n")},formatRows:function(t){return t.map(a).join("\n")},formatRow:a,formatValue:o}}var Us=Rs(","),Ps=Us.parse,Hs=Us.parseRows,Qs=Us.format,Gs=Us.formatBody,js=Us.formatRows,$s=Us.formatRow,Ks=Us.formatValue,Ys=Rs("\t"),zs=Ys.parse,Ws=Ys.parseRows,Vs=Ys.format,qs=Ys.formatBody,Xs=Ys.formatRows,Js=Ys.formatRow,Zs=Ys.formatValue;function tc(t){for(var e in t){var n,r,i=t[e].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(n=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;ec&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=n;else i=null;t[e]=i}return t}const ec=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),nc=t=>+t;function rc(t){return t*t}function ic(t){return t*(2-t)}function ac(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}var oc=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),sc=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),cc=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),lc=Math.PI,Ac=lc/2;function uc(t){return 1==+t?1:1-Math.cos(t*Ac)}function hc(t){return Math.sin(t*Ac)}function fc(t){return(1-Math.cos(lc*t))/2}function dc(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function pc(t){return dc(1-+t)}function gc(t){return 1-dc(t)}function mc(t){return((t*=2)<=1?dc(1-t):2-dc(t-1))/2}function yc(t){return 1-Math.sqrt(1-t*t)}function vc(t){return Math.sqrt(1- --t*t)}function bc(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var _c=7.5625;function wc(t){return 1-Ec(1-t)}function Ec(t){return(t=+t)<.36363636363636365?_c*t*t:t<.7272727272727273?_c*(t-=.5454545454545454)*t+.75:t<.9090909090909091?_c*(t-=.8181818181818182)*t+.9375:_c*(t-=.9545454545454546)*t+.984375}function Cc(t){return((t*=2)<=1?1-Ec(1-t):Ec(t-1)+1)/2}var xc=1.70158,Bc=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(xc),Tc=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(xc),kc=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(xc),Sc=2*Math.PI,Ic=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Sc);function i(t){return e*dc(- --t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*Sc)},i.period=function(n){return t(e,n)},i}(1,.3),Lc=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Sc);function i(t){return 1-e*dc(t=+t)*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*Sc)},i.period=function(n){return t(e,n)},i}(1,.3),Fc=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Sc);function i(t){return((t=2*t-1)<0?e*dc(-t)*Math.sin((r-t)/n):2-e*dc(t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*Sc)},i.period=function(n){return t(e,n)},i}(1,.3);function Nc(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}function Oc(t,e){return fetch(t,e).then(Nc)}function Dc(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}function Mc(t,e){return fetch(t,e).then(Dc)}function Rc(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function Uc(t,e){return fetch(t,e).then(Rc)}function Pc(t){return function(e,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=void 0),Uc(e,n).then((function(e){return t(e,r)}))}}function Hc(t,e,n,r){3===arguments.length&&"function"==typeof n&&(r=n,n=void 0);var i=Rs(t);return Uc(e,n).then((function(t){return i.parse(t,r)}))}var Qc=Pc(Ps),Gc=Pc(zs);function jc(t,e){return new Promise((function(n,r){var i=new Image;for(var a in e)i[a]=e[a];i.onerror=r,i.onload=function(){n(i)},i.src=t}))}function $c(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}function Kc(t,e){return fetch(t,e).then($c)}function Yc(t){return(e,n)=>Uc(e,n).then(e=>(new DOMParser).parseFromString(e,t))}const zc=Yc("application/xml");var Wc=Yc("text/html"),Vc=Yc("image/svg+xml");function qc(t,e){var n,r=1;function i(){var i,a,o=n.length,s=0,c=0;for(i=0;i<o;++i)s+=(a=n[i]).x,c+=a.y;for(s=(s/o-t)*r,c=(c/o-e)*r,i=0;i<o;++i)(a=n[i]).x-=s,a.y-=c}return null==t&&(t=0),null==e&&(e=0),i.initialize=function(t){n=t},i.x=function(e){return arguments.length?(t=+e,i):t},i.y=function(t){return arguments.length?(e=+t,i):e},i.strength=function(t){return arguments.length?(r=+t,i):r},i}function Xc(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,a,o,s,c,l,A,u,h,f=t._root,d={data:r},p=t._x0,g=t._y0,m=t._x1,y=t._y1;if(!f)return t._root=d,t;for(;f.length;)if((l=e>=(a=(p+m)/2))?p=a:m=a,(A=n>=(o=(g+y)/2))?g=o:y=o,i=f,!(f=f[u=A<<1|l]))return i[u]=d,t;if(s=+t._x.call(null,f.data),c=+t._y.call(null,f.data),e===s&&n===c)return d.next=f,i?i[u]=d:t._root=d,t;do{i=i?i[u]=new Array(4):t._root=new Array(4),(l=e>=(a=(p+m)/2))?p=a:m=a,(A=n>=(o=(g+y)/2))?g=o:y=o}while((u=A<<1|l)==(h=(c>=o)<<1|s>=a));return i[h]=f,i[u]=d,t}function Jc(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function Zc(t){return t[0]}function tl(t){return t[1]}function el(t,e,n){var r=new nl(null==e?Zc:e,null==n?tl:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function nl(t,e,n,r,i,a){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function rl(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var il=el.prototype=nl.prototype;function al(t){return function(){return t}}function ol(t){return 1e-6*(t()-.5)}function sl(t){return t.x+t.vx}function cl(t){return t.y+t.vy}function ll(t){var e,n,r,i=1,a=1;function o(){for(var t,o,c,l,A,u,h,f=e.length,d=0;d<a;++d)for(o=el(e,sl,cl).visitAfter(s),t=0;t<f;++t)c=e[t],u=n[c.index],h=u*u,l=c.x+c.vx,A=c.y+c.vy,o.visit(p);function p(t,e,n,a,o){var s=t.data,f=t.r,d=u+f;if(!s)return e>l+d||a<l-d||n>A+d||o<A-d;if(s.index>c.index){var p=l-s.x-s.vx,g=A-s.y-s.vy,m=p*p+g*g;m<d*d&&(0===p&&(m+=(p=ol(r))*p),0===g&&(m+=(g=ol(r))*g),m=(d-(m=Math.sqrt(m)))/m*i,c.vx+=(p*=m)*(d=(f*=f)/(h+f)),c.vy+=(g*=m)*d,s.vx-=p*(d=1-d),s.vy-=g*d)}}}function s(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function c(){if(e){var r,i,a=e.length;for(n=new Array(a),r=0;r<a;++r)i=e[r],n[i.index]=+t(i,r,e)}}return"function"!=typeof t&&(t=al(null==t?1:+t)),o.initialize=function(t,n){e=t,r=n,c()},o.iterations=function(t){return arguments.length?(a=+t,o):a},o.strength=function(t){return arguments.length?(i=+t,o):i},o.radius=function(e){return arguments.length?(t="function"==typeof e?e:al(+e),c(),o):t},o}function Al(t){return t.index}function ul(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}function hl(t){var e,n,r,i,a,o,s=Al,c=function(t){return 1/Math.min(i[t.source.index],i[t.target.index])},l=al(30),A=1;function u(r){for(var i=0,s=t.length;i<A;++i)for(var c,l,u,h,f,d,p,g=0;g<s;++g)l=(c=t[g]).source,h=(u=c.target).x+u.vx-l.x-l.vx||ol(o),f=u.y+u.vy-l.y-l.vy||ol(o),h*=d=((d=Math.sqrt(h*h+f*f))-n[g])/d*r*e[g],f*=d,u.vx-=h*(p=a[g]),u.vy-=f*p,l.vx+=h*(p=1-p),l.vy+=f*p}function h(){if(r){var o,c,l=r.length,A=t.length,u=new Map(r.map((t,e)=>[s(t,e,r),t]));for(o=0,i=new Array(l);o<A;++o)(c=t[o]).index=o,"object"!=typeof c.source&&(c.source=ul(u,c.source)),"object"!=typeof c.target&&(c.target=ul(u,c.target)),i[c.source.index]=(i[c.source.index]||0)+1,i[c.target.index]=(i[c.target.index]||0)+1;for(o=0,a=new Array(A);o<A;++o)c=t[o],a[o]=i[c.source.index]/(i[c.source.index]+i[c.target.index]);e=new Array(A),f(),n=new Array(A),d()}}function f(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+c(t[n],n,t)}function d(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+l(t[e],e,t)}return null==t&&(t=[]),u.initialize=function(t,e){r=t,o=e,h()},u.links=function(e){return arguments.length?(t=e,h(),u):t},u.id=function(t){return arguments.length?(s=t,u):s},u.iterations=function(t){return arguments.length?(A=+t,u):A},u.strength=function(t){return arguments.length?(c="function"==typeof t?t:al(+t),f(),u):c},u.distance=function(t){return arguments.length?(l="function"==typeof t?t:al(+t),d(),u):l},u}il.copy=function(){var t,e,n=new nl(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=rl(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=rl(e));return n},il.add=function(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return Xc(this.cover(e,n),e,n,t)},il.addAll=function(t){var e,n,r,i,a=t.length,o=new Array(a),s=new Array(a),c=1/0,l=1/0,A=-1/0,u=-1/0;for(n=0;n<a;++n)isNaN(r=+this._x.call(null,e=t[n]))||isNaN(i=+this._y.call(null,e))||(o[n]=r,s[n]=i,r<c&&(c=r),r>A&&(A=r),i<l&&(l=i),i>u&&(u=i));if(c>A||l>u)return this;for(this.cover(c,l).cover(A,u),n=0;n<a;++n)Xc(this,o[n],s[n],t[n]);return this},il.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,a=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,a=(r=Math.floor(e))+1;else{for(var o,s,c=i-n||1,l=this._root;n>t||t>=i||r>e||e>=a;)switch(s=(e<r)<<1|t<n,(o=new Array(4))[s]=l,l=o,c*=2,s){case 0:i=n+c,a=r+c;break;case 1:n=i-c,a=r+c;break;case 2:i=n+c,r=a-c;break;case 3:n=i-c,r=a-c}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=r,this._x1=i,this._y1=a,this},il.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},il.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},il.find=function(t,e,n){var r,i,a,o,s,c,l,A=this._x0,u=this._y0,h=this._x1,f=this._y1,d=[],p=this._root;for(p&&d.push(new Jc(p,A,u,h,f)),null==n?n=1/0:(A=t-n,u=e-n,h=t+n,f=e+n,n*=n);c=d.pop();)if(!(!(p=c.node)||(i=c.x0)>h||(a=c.y0)>f||(o=c.x1)<A||(s=c.y1)<u))if(p.length){var g=(i+o)/2,m=(a+s)/2;d.push(new Jc(p[3],g,m,o,s),new Jc(p[2],i,m,g,s),new Jc(p[1],g,a,o,m),new Jc(p[0],i,a,g,m)),(l=(e>=m)<<1|t>=g)&&(c=d[d.length-1],d[d.length-1]=d[d.length-1-l],d[d.length-1-l]=c)}else{var y=t-+this._x.call(null,p.data),v=e-+this._y.call(null,p.data),b=y*y+v*v;if(b<n){var _=Math.sqrt(n=b);A=t-_,u=e-_,h=t+_,f=e+_,r=p.data}}return r},il.remove=function(t){if(isNaN(a=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var e,n,r,i,a,o,s,c,l,A,u,h,f=this._root,d=this._x0,p=this._y0,g=this._x1,m=this._y1;if(!f)return this;if(f.length)for(;;){if((l=a>=(s=(d+g)/2))?d=s:g=s,(A=o>=(c=(p+m)/2))?p=c:m=c,e=f,!(f=f[u=A<<1|l]))return this;if(!f.length)break;(e[u+1&3]||e[u+2&3]||e[u+3&3])&&(n=e,h=u)}for(;f.data!==t;)if(r=f,!(f=f.next))return this;return(i=f.next)&&delete f.next,r?(i?r.next=i:delete r.next,this):e?(i?e[u]=i:delete e[u],(f=e[0]||e[1]||e[2]||e[3])&&f===(e[3]||e[2]||e[1]||e[0])&&!f.length&&(n?n[h]=f:this._root=f),this):(this._root=i,this)},il.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},il.root=function(){return this._root},il.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},il.visit=function(t){var e,n,r,i,a,o,s=[],c=this._root;for(c&&s.push(new Jc(c,this._x0,this._y0,this._x1,this._y1));e=s.pop();)if(!t(c=e.node,r=e.x0,i=e.y0,a=e.x1,o=e.y1)&&c.length){var l=(r+a)/2,A=(i+o)/2;(n=c[3])&&s.push(new Jc(n,l,A,a,o)),(n=c[2])&&s.push(new Jc(n,r,A,l,o)),(n=c[1])&&s.push(new Jc(n,l,i,a,A)),(n=c[0])&&s.push(new Jc(n,r,i,l,A))}return this},il.visitAfter=function(t){var e,n=[],r=[];for(this._root&&n.push(new Jc(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var i=e.node;if(i.length){var a,o=e.x0,s=e.y0,c=e.x1,l=e.y1,A=(o+c)/2,u=(s+l)/2;(a=i[0])&&n.push(new Jc(a,o,s,A,u)),(a=i[1])&&n.push(new Jc(a,A,s,c,u)),(a=i[2])&&n.push(new Jc(a,o,u,A,l)),(a=i[3])&&n.push(new Jc(a,A,u,c,l))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},il.x=function(t){return arguments.length?(this._x=t,this):this._x},il.y=function(t){return arguments.length?(this._y=t,this):this._y};const fl=4294967296;function dl(t){return t.x}function pl(t){return t.y}var gl=Math.PI*(3-Math.sqrt(5));function ml(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),a=0,o=.6,s=new Map,c=Wr(u),l=Ae("tick","end"),A=function(){let t=1;return()=>(t=(1664525*t+1013904223)%fl)/fl}();function u(){h(),l.call("tick",e),n<r&&(c.stop(),l.call("end",e))}function h(r){var c,l,A=t.length;void 0===r&&(r=1);for(var u=0;u<r;++u)for(n+=(a-n)*i,s.forEach((function(t){t(n)})),c=0;c<A;++c)null==(l=t[c]).fx?l.x+=l.vx*=o:(l.x=l.fx,l.vx=0),null==l.fy?l.y+=l.vy*=o:(l.y=l.fy,l.vy=0);return e}function f(){for(var e,n=0,r=t.length;n<r;++n){if((e=t[n]).index=n,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=10*Math.sqrt(.5+n),a=n*gl;e.x=i*Math.cos(a),e.y=i*Math.sin(a)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function d(e){return e.initialize&&e.initialize(t,A),e}return null==t&&(t=[]),f(),e={tick:h,restart:function(){return c.restart(u),e},stop:function(){return c.stop(),e},nodes:function(n){return arguments.length?(t=n,f(),s.forEach(d),e):t},alpha:function(t){return arguments.length?(n=+t,e):n},alphaMin:function(t){return arguments.length?(r=+t,e):r},alphaDecay:function(t){return arguments.length?(i=+t,e):+i},alphaTarget:function(t){return arguments.length?(a=+t,e):a},velocityDecay:function(t){return arguments.length?(o=1-t,e):1-o},randomSource:function(t){return arguments.length?(A=t,s.forEach(d),e):A},force:function(t,n){return arguments.length>1?(null==n?s.delete(t):s.set(t,d(n)),e):s.get(t)},find:function(e,n,r){var i,a,o,s,c,l=0,A=t.length;for(null==r?r=1/0:r*=r,l=0;l<A;++l)(o=(i=e-(s=t[l]).x)*i+(a=n-s.y)*a)<r&&(c=s,r=o);return c},on:function(t,n){return arguments.length>1?(l.on(t,n),e):l.on(t)}}}function yl(){var t,e,n,r,i,a=al(-30),o=1,s=1/0,c=.81;function l(n){var i,a=t.length,o=el(t,dl,pl).visitAfter(u);for(r=n,i=0;i<a;++i)e=t[i],o.visit(h)}function A(){if(t){var e,n,r=t.length;for(i=new Array(r),e=0;e<r;++e)n=t[e],i[n.index]=+a(n,e,t)}}function u(t){var e,n,r,a,o,s=0,c=0;if(t.length){for(r=a=o=0;o<4;++o)(e=t[o])&&(n=Math.abs(e.value))&&(s+=e.value,c+=n,r+=n*e.x,a+=n*e.y);t.x=r/c,t.y=a/c}else{(e=t).x=e.data.x,e.y=e.data.y;do{s+=i[e.data.index]}while(e=e.next)}t.value=s}function h(t,a,l,A){if(!t.value)return!0;var u=t.x-e.x,h=t.y-e.y,f=A-a,d=u*u+h*h;if(f*f/c<d)return d<s&&(0===u&&(d+=(u=ol(n))*u),0===h&&(d+=(h=ol(n))*h),d<o&&(d=Math.sqrt(o*d)),e.vx+=u*t.value*r/d,e.vy+=h*t.value*r/d),!0;if(!(t.length||d>=s)){(t.data!==e||t.next)&&(0===u&&(d+=(u=ol(n))*u),0===h&&(d+=(h=ol(n))*h),d<o&&(d=Math.sqrt(o*d)));do{t.data!==e&&(f=i[t.data.index]*r/d,e.vx+=u*f,e.vy+=h*f)}while(t=t.next)}}return l.initialize=function(e,r){t=e,n=r,A()},l.strength=function(t){return arguments.length?(a="function"==typeof t?t:al(+t),A(),l):a},l.distanceMin=function(t){return arguments.length?(o=t*t,l):Math.sqrt(o)},l.distanceMax=function(t){return arguments.length?(s=t*t,l):Math.sqrt(s)},l.theta=function(t){return arguments.length?(c=t*t,l):Math.sqrt(c)},l}function vl(t,e,n){var r,i,a,o=al(.1);function s(t){for(var o=0,s=r.length;o<s;++o){var c=r[o],l=c.x-e||1e-6,A=c.y-n||1e-6,u=Math.sqrt(l*l+A*A),h=(a[o]-u)*i[o]*t/u;c.vx+=l*h,c.vy+=A*h}}function c(){if(r){var e,n=r.length;for(i=new Array(n),a=new Array(n),e=0;e<n;++e)a[e]=+t(r[e],e,r),i[e]=isNaN(a[e])?0:+o(r[e],e,r)}}return"function"!=typeof t&&(t=al(+t)),null==e&&(e=0),null==n&&(n=0),s.initialize=function(t){r=t,c()},s.strength=function(t){return arguments.length?(o="function"==typeof t?t:al(+t),c(),s):o},s.radius=function(e){return arguments.length?(t="function"==typeof e?e:al(+e),c(),s):t},s.x=function(t){return arguments.length?(e=+t,s):e},s.y=function(t){return arguments.length?(n=+t,s):n},s}function bl(t){var e,n,r,i=al(.1);function a(t){for(var i,a=0,o=e.length;a<o;++a)(i=e[a]).vx+=(r[a]-i.x)*n[a]*t}function o(){if(e){var a,o=e.length;for(n=new Array(o),r=new Array(o),a=0;a<o;++a)n[a]=isNaN(r[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return"function"!=typeof t&&(t=al(null==t?0:+t)),a.initialize=function(t){e=t,o()},a.strength=function(t){return arguments.length?(i="function"==typeof t?t:al(+t),o(),a):i},a.x=function(e){return arguments.length?(t="function"==typeof e?e:al(+e),o(),a):t},a}function _l(t){var e,n,r,i=al(.1);function a(t){for(var i,a=0,o=e.length;a<o;++a)(i=e[a]).vy+=(r[a]-i.y)*n[a]*t}function o(){if(e){var a,o=e.length;for(n=new Array(o),r=new Array(o),a=0;a<o;++a)n[a]=isNaN(r[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return"function"!=typeof t&&(t=al(null==t?0:+t)),a.initialize=function(t){e=t,o()},a.strength=function(t){return arguments.length?(i="function"==typeof t?t:al(+t),o(),a):i},a.y=function(e){return arguments.length?(t="function"==typeof e?e:al(+e),o(),a):t},a}function wl(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function El(t){return(t=wl(Math.abs(t)))?t[1]:NaN}var Cl,xl=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Bl(t){if(!(e=xl.exec(t)))throw new Error("invalid format: "+t);var e;return new Tl({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Tl(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function kl(t,e){var n=wl(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}Bl.prototype=Tl.prototype,Tl.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Sl={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>kl(100*t,e),r:kl,s:function(t,e){var n=wl(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(Cl=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+wl(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Il(t){return t}var Ll,Fl,Nl,Ol=Array.prototype.map,Dl=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ml(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?Il:(e=Ol.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(t.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?Il:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Ol.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"":t.minus+"",A=void 0===t.nan?"NaN":t.nan+"";function u(t){var e=(t=Bl(t)).fill,n=t.align,u=t.sign,h=t.symbol,f=t.zero,d=t.width,p=t.comma,g=t.precision,m=t.trim,y=t.type;"n"===y?(p=!0,y="g"):Sl[y]||(void 0===g&&(g=12),m=!0,y="g"),(f||"0"===e&&"="===n)&&(f=!0,e="0",n="=");var v="$"===h?i:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",b="$"===h?a:/[%p]/.test(y)?c:"",_=Sl[y],w=/[defgprs%]/.test(y);function E(t){var i,a,c,h=v,E=b;if("c"===y)E=_(t)+E,t="";else{var C=(t=+t)<0||1/t<0;if(t=isNaN(t)?A:_(Math.abs(t),g),m&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),C&&0==+t&&"+"!==u&&(C=!1),h=(C?"("===u?u:l:"-"===u||"("===u?"":u)+h,E=("s"===y?Dl[8+Cl/3]:"")+E+(C&&"("===u?")":""),w)for(i=-1,a=t.length;++i<a;)if(48>(c=t.charCodeAt(i))||c>57){E=(46===c?o+t.slice(i+1):t.slice(i))+E,t=t.slice(0,i);break}}p&&!f&&(t=r(t,1/0));var x=h.length+t.length+E.length,B=x<d?new Array(d-x+1).join(e):"";switch(p&&f&&(t=r(B+t,B.length?d-E.length:1/0),B=""),n){case"<":t=h+t+E+B;break;case"=":t=h+B+t+E;break;case"^":t=B.slice(0,x=B.length>>1)+h+t+E+B.slice(x);break;default:t=B+h+t+E}return s(t)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),E.toString=function(){return t+""},E}return{format:u,formatPrefix:function(t,e){var n=u(((t=Bl(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(El(e)/3))),i=Math.pow(10,-r),a=Dl[8+r/3];return function(t){return n(i*t)+a}}}}function Rl(t){return Ll=Ml(t),Fl=Ll.format,Nl=Ll.formatPrefix,Ll}function Ul(t){return Math.max(0,-El(Math.abs(t)))}function Pl(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(El(e)/3)))-El(Math.abs(t)))}function Hl(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,El(e)-El(t))+1}Rl({thousands:",",grouping:[3],currency:["$",""]});var Ql=1e-6,Gl=1e-12,jl=Math.PI,$l=jl/2,Kl=jl/4,Yl=2*jl,zl=180/jl,Wl=jl/180,Vl=Math.abs,ql=Math.atan,Xl=Math.atan2,Jl=Math.cos,Zl=Math.ceil,tA=Math.exp,eA=Math.hypot,nA=Math.log,rA=Math.pow,iA=Math.sin,aA=Math.sign||function(t){return t>0?1:t<0?-1:0},oA=Math.sqrt,sA=Math.tan;function cA(t){return t>1?0:t<-1?jl:Math.acos(t)}function lA(t){return t>1?$l:t<-1?-$l:Math.asin(t)}function AA(t){return(t=iA(t/2))*t}function uA(){}function hA(t,e){t&&dA.hasOwnProperty(t.type)&&dA[t.type](t,e)}var fA={Feature:function(t,e){hA(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)hA(n[r].geometry,e)}},dA={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){pA(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)pA(n[r],e,0)},Polygon:function(t,e){gA(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)gA(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)hA(n[r],e)}};function pA(t,e,n){var r,i=-1,a=t.length-n;for(e.lineStart();++i<a;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function gA(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)pA(t[n],e,1);e.polygonEnd()}function mA(t,e){t&&fA.hasOwnProperty(t.type)?fA[t.type](t,e):hA(t,e)}var yA,vA,bA,_A,wA,EA,CA,xA,BA,TA,kA,SA,IA,LA,FA,NA,OA=new _,DA=new _,MA={point:uA,lineStart:uA,lineEnd:uA,polygonStart:function(){OA=new _,MA.lineStart=RA,MA.lineEnd=UA},polygonEnd:function(){var t=+OA;DA.add(t<0?Yl+t:t),this.lineStart=this.lineEnd=this.point=uA},sphere:function(){DA.add(Yl)}};function RA(){MA.point=PA}function UA(){HA(yA,vA)}function PA(t,e){MA.point=HA,yA=t,vA=e,bA=t*=Wl,_A=Jl(e=(e*=Wl)/2+Kl),wA=iA(e)}function HA(t,e){var n=(t*=Wl)-bA,r=n>=0?1:-1,i=r*n,a=Jl(e=(e*=Wl)/2+Kl),o=iA(e),s=wA*o,c=_A*a+s*Jl(i),l=s*r*iA(i);OA.add(Xl(l,c)),bA=t,_A=a,wA=o}function QA(t){return DA=new _,mA(t,MA),2*DA}function GA(t){return[Xl(t[1],t[0]),lA(t[2])]}function jA(t){var e=t[0],n=t[1],r=Jl(n);return[r*Jl(e),r*iA(e),iA(n)]}function $A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function KA(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function YA(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function zA(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function WA(t){var e=oA(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var VA,qA,XA,JA,ZA,tu,eu,nu,ru,iu,au,ou,su,cu,lu,Au,uu={point:hu,lineStart:du,lineEnd:pu,polygonStart:function(){uu.point=gu,uu.lineStart=mu,uu.lineEnd=yu,LA=new _,MA.polygonStart()},polygonEnd:function(){MA.polygonEnd(),uu.point=hu,uu.lineStart=du,uu.lineEnd=pu,OA<0?(EA=-(xA=180),CA=-(BA=90)):LA>Ql?BA=90:LA<-1e-6&&(CA=-90),NA[0]=EA,NA[1]=xA},sphere:function(){EA=-(xA=180),CA=-(BA=90)}};function hu(t,e){FA.push(NA=[EA=t,xA=t]),e<CA&&(CA=e),e>BA&&(BA=e)}function fu(t,e){var n=jA([t*Wl,e*Wl]);if(IA){var r=KA(IA,n),i=KA([r[1],-r[0],0],r);WA(i),i=GA(i);var a,o=t-TA,s=o>0?1:-1,c=i[0]*zl*s,l=Vl(o)>180;l^(s*TA<c&&c<s*t)?(a=i[1]*zl)>BA&&(BA=a):l^(s*TA<(c=(c+360)%360-180)&&c<s*t)?(a=-i[1]*zl)<CA&&(CA=a):(e<CA&&(CA=e),e>BA&&(BA=e)),l?t<TA?vu(EA,t)>vu(EA,xA)&&(xA=t):vu(t,xA)>vu(EA,xA)&&(EA=t):xA>=EA?(t<EA&&(EA=t),t>xA&&(xA=t)):t>TA?vu(EA,t)>vu(EA,xA)&&(xA=t):vu(t,xA)>vu(EA,xA)&&(EA=t)}else FA.push(NA=[EA=t,xA=t]);e<CA&&(CA=e),e>BA&&(BA=e),IA=n,TA=t}function du(){uu.point=fu}function pu(){NA[0]=EA,NA[1]=xA,uu.point=hu,IA=null}function gu(t,e){if(IA){var n=t-TA;LA.add(Vl(n)>180?n+(n>0?360:-360):n)}else kA=t,SA=e;MA.point(t,e),fu(t,e)}function mu(){MA.lineStart()}function yu(){gu(kA,SA),MA.lineEnd(),Vl(LA)>Ql&&(EA=-(xA=180)),NA[0]=EA,NA[1]=xA,IA=null}function vu(t,e){return(e-=t)<0?e+360:e}function bu(t,e){return t[0]-e[0]}function _u(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function wu(t){var e,n,r,i,a,o,s;if(BA=xA=-(EA=CA=1/0),FA=[],mA(t,uu),n=FA.length){for(FA.sort(bu),e=1,a=[r=FA[0]];e<n;++e)_u(r,(i=FA[e])[0])||_u(r,i[1])?(vu(r[0],i[1])>vu(r[0],r[1])&&(r[1]=i[1]),vu(i[0],r[1])>vu(r[0],r[1])&&(r[0]=i[0])):a.push(r=i);for(o=-1/0,e=0,r=a[n=a.length-1];e<=n;r=i,++e)i=a[e],(s=vu(r[1],i[0]))>o&&(o=s,EA=i[0],xA=r[1])}return FA=NA=null,EA===1/0||CA===1/0?[[NaN,NaN],[NaN,NaN]]:[[EA,CA],[xA,BA]]}var Eu={sphere:uA,point:Cu,lineStart:Bu,lineEnd:Su,polygonStart:function(){Eu.lineStart=Iu,Eu.lineEnd=Lu},polygonEnd:function(){Eu.lineStart=Bu,Eu.lineEnd=Su}};function Cu(t,e){t*=Wl;var n=Jl(e*=Wl);xu(n*Jl(t),n*iA(t),iA(e))}function xu(t,e,n){++VA,XA+=(t-XA)/VA,JA+=(e-JA)/VA,ZA+=(n-ZA)/VA}function Bu(){Eu.point=Tu}function Tu(t,e){t*=Wl;var n=Jl(e*=Wl);cu=n*Jl(t),lu=n*iA(t),Au=iA(e),Eu.point=ku,xu(cu,lu,Au)}function ku(t,e){t*=Wl;var n=Jl(e*=Wl),r=n*Jl(t),i=n*iA(t),a=iA(e),o=Xl(oA((o=lu*a-Au*i)*o+(o=Au*r-cu*a)*o+(o=cu*i-lu*r)*o),cu*r+lu*i+Au*a);qA+=o,tu+=o*(cu+(cu=r)),eu+=o*(lu+(lu=i)),nu+=o*(Au+(Au=a)),xu(cu,lu,Au)}function Su(){Eu.point=Cu}function Iu(){Eu.point=Fu}function Lu(){Nu(ou,su),Eu.point=Cu}function Fu(t,e){ou=t,su=e,t*=Wl,e*=Wl,Eu.point=Nu;var n=Jl(e);cu=n*Jl(t),lu=n*iA(t),Au=iA(e),xu(cu,lu,Au)}function Nu(t,e){t*=Wl;var n=Jl(e*=Wl),r=n*Jl(t),i=n*iA(t),a=iA(e),o=lu*a-Au*i,s=Au*r-cu*a,c=cu*i-lu*r,l=eA(o,s,c),A=lA(l),u=l&&-A/l;ru.add(u*o),iu.add(u*s),au.add(u*c),qA+=A,tu+=A*(cu+(cu=r)),eu+=A*(lu+(lu=i)),nu+=A*(Au+(Au=a)),xu(cu,lu,Au)}function Ou(t){VA=qA=XA=JA=ZA=tu=eu=nu=0,ru=new _,iu=new _,au=new _,mA(t,Eu);var e=+ru,n=+iu,r=+au,i=eA(e,n,r);return i<Gl&&(e=tu,n=eu,r=nu,qA<Ql&&(e=XA,n=JA,r=ZA),(i=eA(e,n,r))<Gl)?[NaN,NaN]:[Xl(n,e)*zl,lA(r/i)*zl]}function Du(t){return function(){return t}}function Mu(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n}function Ru(t,e){return[Vl(t)>jl?t+Math.round(-t/Yl)*Yl:t,e]}function Uu(t,e,n){return(t%=Yl)?e||n?Mu(Hu(t),Qu(e,n)):Hu(t):e||n?Qu(e,n):Ru}function Pu(t){return function(e,n){return[(e+=t)>jl?e-Yl:e<-jl?e+Yl:e,n]}}function Hu(t){var e=Pu(t);return e.invert=Pu(-t),e}function Qu(t,e){var n=Jl(t),r=iA(t),i=Jl(e),a=iA(e);function o(t,e){var o=Jl(e),s=Jl(t)*o,c=iA(t)*o,l=iA(e),A=l*n+s*r;return[Xl(c*i-A*a,s*n-l*r),lA(A*i+c*a)]}return o.invert=function(t,e){var o=Jl(e),s=Jl(t)*o,c=iA(t)*o,l=iA(e),A=l*i-c*a;return[Xl(c*i+l*a,s*n+A*r),lA(A*n-s*r)]},o}function Gu(t){function e(e){return(e=t(e[0]*Wl,e[1]*Wl))[0]*=zl,e[1]*=zl,e}return t=Uu(t[0]*Wl,t[1]*Wl,t.length>2?t[2]*Wl:0),e.invert=function(e){return(e=t.invert(e[0]*Wl,e[1]*Wl))[0]*=zl,e[1]*=zl,e},e}function ju(t,e,n,r,i,a){if(n){var o=Jl(e),s=iA(e),c=r*n;null==i?(i=e+r*Yl,a=e-c/2):(i=$u(o,i),a=$u(o,a),(r>0?i<a:i>a)&&(i+=r*Yl));for(var l,A=i;r>0?A>a:A<a;A-=c)l=GA([o,-s*Jl(A),-s*iA(A)]),t.point(l[0],l[1])}}function $u(t,e){(e=jA(e))[0]-=t,WA(e);var n=cA(-e[1]);return((-e[2]<0?-n:n)+Yl-Ql)%Yl}function Ku(){var t,e,n=Du([0,0]),r=Du(90),i=Du(6),a={point:function(n,r){t.push(n=e(n,r)),n[0]*=zl,n[1]*=zl}};function o(){var o=n.apply(this,arguments),s=r.apply(this,arguments)*Wl,c=i.apply(this,arguments)*Wl;return t=[],e=Uu(-o[0]*Wl,-o[1]*Wl,0).invert,ju(a,s,c,1),o={type:"Polygon",coordinates:[t]},t=e=null,o}return o.center=function(t){return arguments.length?(n="function"==typeof t?t:Du([+t[0],+t[1]]),o):n},o.radius=function(t){return arguments.length?(r="function"==typeof t?t:Du(+t),o):r},o.precision=function(t){return arguments.length?(i="function"==typeof t?t:Du(+t),o):i},o}function Yu(){var t,e=[];return{point:function(e,n,r){t.push([e,n,r])},lineStart:function(){e.push(t=[])},lineEnd:uA,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function zu(t,e){return Vl(t[0]-e[0])<Ql&&Vl(t[1]-e[1])<Ql}function Wu(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Vu(t,e,n,r,i){var a,o,s=[],c=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],o=t[e];if(zu(r,o)){if(!r[2]&&!o[2]){for(i.lineStart(),a=0;a<e;++a)i.point((r=t[a])[0],r[1]);return void i.lineEnd()}o[0]+=2e-6}s.push(n=new Wu(r,t,null,!0)),c.push(n.o=new Wu(r,null,n,!1)),s.push(n=new Wu(o,t,null,!1)),c.push(n.o=new Wu(o,null,n,!0))}})),s.length){for(c.sort(e),qu(s),qu(c),a=0,o=c.length;a<o;++a)c[a].e=n=!n;for(var l,A,u=s[0];;){for(var h=u,f=!0;h.v;)if((h=h.n)===u)return;l=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(f)for(a=0,o=l.length;a<o;++a)i.point((A=l[a])[0],A[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(f)for(l=h.p.z,a=l.length-1;a>=0;--a)i.point((A=l[a])[0],A[1]);else r(h.x,h.p.x,-1,i);h=h.p}l=(h=h.o).z,f=!f}while(!h.v);i.lineEnd()}}}function qu(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}function Xu(t){return Vl(t[0])<=jl?t[0]:aA(t[0])*((Vl(t[0])+jl)%Yl-jl)}function Ju(t,e){var n=Xu(e),r=e[1],i=iA(r),a=[iA(n),-Jl(n),0],o=0,s=0,c=new _;1===i?r=$l+Ql:-1===i&&(r=-$l-Ql);for(var l=0,A=t.length;l<A;++l)if(h=(u=t[l]).length)for(var u,h,f=u[h-1],d=Xu(f),p=f[1]/2+Kl,g=iA(p),m=Jl(p),y=0;y<h;++y,d=b,g=E,m=C,f=v){var v=u[y],b=Xu(v),w=v[1]/2+Kl,E=iA(w),C=Jl(w),x=b-d,B=x>=0?1:-1,T=B*x,k=T>jl,S=g*E;if(c.add(Xl(S*B*iA(T),m*C+S*Jl(T))),o+=k?x+B*Yl:x,k^d>=n^b>=n){var I=KA(jA(f),jA(v));WA(I);var L=KA(a,I);WA(L);var F=(k^x>=0?-1:1)*lA(L[2]);(r>F||r===F&&(I[0]||I[1]))&&(s+=k^x>=0?1:-1)}}return(o<-1e-6||o<Ql&&c<-1e-12)^1&s}function Zu(t,e,n,r){return function(i){var a,o,s,c=e(i),l=Yu(),A=e(l),u=!1,h={point:f,lineStart:p,lineEnd:g,polygonStart:function(){h.point=m,h.lineStart=y,h.lineEnd=v,o=[],a=[]},polygonEnd:function(){h.point=f,h.lineStart=p,h.lineEnd=g,o=pt(o);var t=Ju(a,r);o.length?(u||(i.polygonStart(),u=!0),Vu(o,eh,t,n,i)):t&&(u||(i.polygonStart(),u=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),u&&(i.polygonEnd(),u=!1),o=a=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function f(e,n){t(e,n)&&i.point(e,n)}function d(t,e){c.point(t,e)}function p(){h.point=d,c.lineStart()}function g(){h.point=f,c.lineEnd()}function m(t,e){s.push([t,e]),A.point(t,e)}function y(){A.lineStart(),s=[]}function v(){m(s[0][0],s[0][1]),A.lineEnd();var t,e,n,r,c=A.clean(),h=l.result(),f=h.length;if(s.pop(),a.push(s),s=null,f)if(1&c){if((e=(n=h[0]).length-1)>0){for(u||(i.polygonStart(),u=!0),i.lineStart(),t=0;t<e;++t)i.point((r=n[t])[0],r[1]);i.lineEnd()}}else f>1&&2&c&&h.push(h.pop().concat(h.shift())),o.push(h.filter(th))}return h}}function th(t){return t.length>1}function eh(t,e){return((t=t.x)[0]<0?t[1]-$l-Ql:$l-t[1])-((e=e.x)[0]<0?e[1]-$l-Ql:$l-e[1])}Ru.invert=Ru;const nh=Zu((function(){return!0}),(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var s=a>0?jl:-jl,c=Vl(a-n);Vl(c-jl)<Ql?(t.point(n,r=(r+o)/2>0?$l:-$l),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),t.point(a,r),e=0):i!==s&&c>=jl&&(Vl(n-i)<Ql&&(n-=i*Ql),Vl(a-s)<Ql&&(a-=s*Ql),r=function(t,e,n,r){var i,a,o=iA(t-n);return Vl(o)>Ql?ql((iA(e)*(a=Jl(r))*iA(n)-iA(r)*(i=Jl(e))*iA(t))/(i*a*o)):(e+r)/2}(n,r,a,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),e=0),t.point(n=a,r=o),i=s},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*$l,r.point(-jl,i),r.point(0,i),r.point(jl,i),r.point(jl,0),r.point(jl,-i),r.point(0,-i),r.point(-jl,-i),r.point(-jl,0),r.point(-jl,i);else if(Vl(t[0]-e[0])>Ql){var a=t[0]<e[0]?jl:-jl;i=n*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(e[0],e[1])}),[-jl,-$l]);function rh(t){var e=Jl(t),n=6*Wl,r=e>0,i=Vl(e)>Ql;function a(t,n){return Jl(t)*Jl(n)>e}function o(t,n,r){var i=[1,0,0],a=KA(jA(t),jA(n)),o=$A(a,a),s=a[0],c=o-s*s;if(!c)return!r&&t;var l=e*o/c,A=-e*s/c,u=KA(i,a),h=zA(i,l);YA(h,zA(a,A));var f=u,d=$A(h,f),p=$A(f,f),g=d*d-p*($A(h,h)-1);if(!(g<0)){var m=oA(g),y=zA(f,(-d-m)/p);if(YA(y,h),y=GA(y),!r)return y;var v,b=t[0],_=n[0],w=t[1],E=n[1];_<b&&(v=b,b=_,_=v);var C=_-b,x=Vl(C-jl)<Ql;if(!x&&E<w&&(v=w,w=E,E=v),x||C<Ql?x?w+E>0^y[1]<(Vl(y[0]-b)<Ql?w:E):w<=y[1]&&y[1]<=E:C>jl^(b<=y[0]&&y[0]<=_)){var B=zA(f,(-d+m)/p);return YA(B,h),[y,GA(B)]}}}function s(e,n){var i=r?t:jl-t,a=0;return e<-i?a|=1:e>i&&(a|=2),n<-i?a|=4:n>i&&(a|=8),a}return Zu(a,(function(t){var e,n,c,l,A;return{lineStart:function(){l=c=!1,A=1},point:function(u,h){var f,d=[u,h],p=a(u,h),g=r?p?0:s(u,h):p?s(u+(u<0?jl:-jl),h):0;if(!e&&(l=c=p)&&t.lineStart(),p!==c&&(!(f=o(e,d))||zu(e,f)||zu(d,f))&&(d[2]=1),p!==c)A=0,p?(t.lineStart(),f=o(d,e),t.point(f[0],f[1])):(f=o(e,d),t.point(f[0],f[1],2),t.lineEnd()),e=f;else if(i&&e&&r^p){var m;g&n||!(m=o(d,e,!0))||(A=0,r?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1],3)))}!p||e&&zu(e,d)||t.point(d[0],d[1]),e=d,c=p,n=g},lineEnd:function(){c&&t.lineEnd(),e=null},clean:function(){return A|(l&&c)<<1}}}),(function(e,r,i,a){ju(a,t,n,i,e,r)}),r?[0,-t]:[-jl,t-jl])}var ih,ah,oh,sh,ch=1e9,lh=-ch;function Ah(t,e,n,r){function i(i,a){return t<=i&&i<=n&&e<=a&&a<=r}function a(i,a,s,l){var A=0,u=0;if(null==i||(A=o(i,s))!==(u=o(a,s))||c(i,a)<0^s>0)do{l.point(0===A||3===A?t:n,A>1?r:e)}while((A=(A+s+4)%4)!==u);else l.point(a[0],a[1])}function o(r,i){return Vl(r[0]-t)<Ql?i>0?0:3:Vl(r[0]-n)<Ql?i>0?2:1:Vl(r[1]-e)<Ql?i>0?1:0:i>0?3:2}function s(t,e){return c(t.x,e.x)}function c(t,e){var n=o(t,1),r=o(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(o){var c,l,A,u,h,f,d,p,g,m,y,v=o,b=Yu(),_={point:w,lineStart:function(){_.point=E,l&&l.push(A=[]),m=!0,g=!1,d=p=NaN},lineEnd:function(){c&&(E(u,h),f&&g&&b.rejoin(),c.push(b.result())),_.point=w,g&&v.lineEnd()},polygonStart:function(){v=b,c=[],l=[],y=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=l.length;n<i;++n)for(var a,o,s=l[n],c=1,A=s.length,u=s[0],h=u[0],f=u[1];c<A;++c)a=h,o=f,h=(u=s[c])[0],f=u[1],o<=r?f>r&&(h-a)*(r-o)>(f-o)*(t-a)&&++e:f<=r&&(h-a)*(r-o)<(f-o)*(t-a)&&--e;return e}(),n=y&&e,i=(c=pt(c)).length;(n||i)&&(o.polygonStart(),n&&(o.lineStart(),a(null,null,1,o),o.lineEnd()),i&&Vu(c,s,e,a,o),o.polygonEnd()),v=o,c=l=A=null}};function w(t,e){i(t,e)&&v.point(t,e)}function E(a,o){var s=i(a,o);if(l&&A.push([a,o]),m)u=a,h=o,f=s,m=!1,s&&(v.lineStart(),v.point(a,o));else if(s&&g)v.point(a,o);else{var c=[d=Math.max(lh,Math.min(ch,d)),p=Math.max(lh,Math.min(ch,p))],b=[a=Math.max(lh,Math.min(ch,a)),o=Math.max(lh,Math.min(ch,o))];!function(t,e,n,r,i,a){var o,s=t[0],c=t[1],l=0,A=1,u=e[0]-s,h=e[1]-c;if(o=n-s,u||!(o>0)){if(o/=u,u<0){if(o<l)return;o<A&&(A=o)}else if(u>0){if(o>A)return;o>l&&(l=o)}if(o=i-s,u||!(o<0)){if(o/=u,u<0){if(o>A)return;o>l&&(l=o)}else if(u>0){if(o<l)return;o<A&&(A=o)}if(o=r-c,h||!(o>0)){if(o/=h,h<0){if(o<l)return;o<A&&(A=o)}else if(h>0){if(o>A)return;o>l&&(l=o)}if(o=a-c,h||!(o<0)){if(o/=h,h<0){if(o>A)return;o>l&&(l=o)}else if(h>0){if(o<l)return;o<A&&(A=o)}return l>0&&(t[0]=s+l*u,t[1]=c+l*h),A<1&&(e[0]=s+A*u,e[1]=c+A*h),!0}}}}}(c,b,t,e,n,r)?s&&(v.lineStart(),v.point(a,o),y=!1):(g||(v.lineStart(),v.point(c[0],c[1])),v.point(b[0],b[1]),s||v.lineEnd(),y=!1)}d=a,p=o,g=s}return _}}function uh(){var t,e,n,r=0,i=0,a=960,o=500;return n={stream:function(n){return t&&e===n?t:t=Ah(r,i,a,o)(e=n)},extent:function(s){return arguments.length?(r=+s[0][0],i=+s[0][1],a=+s[1][0],o=+s[1][1],t=e=null,n):[[r,i],[a,o]]}}}var hh={sphere:uA,point:uA,lineStart:function(){hh.point=dh,hh.lineEnd=fh},lineEnd:uA,polygonStart:uA,polygonEnd:uA};function fh(){hh.point=hh.lineEnd=uA}function dh(t,e){ah=t*=Wl,oh=iA(e*=Wl),sh=Jl(e),hh.point=ph}function ph(t,e){t*=Wl;var n=iA(e*=Wl),r=Jl(e),i=Vl(t-ah),a=Jl(i),o=r*iA(i),s=sh*n-oh*r*a,c=oh*n+sh*r*a;ih.add(Xl(oA(o*o+s*s),c)),ah=t,oh=n,sh=r}function gh(t){return ih=new _,mA(t,hh),+ih}var mh=[null,null],yh={type:"LineString",coordinates:mh};function vh(t,e){return mh[0]=t,mh[1]=e,gh(yh)}var bh={Feature:function(t,e){return wh(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)if(wh(n[r].geometry,e))return!0;return!1}},_h={Sphere:function(){return!0},Point:function(t,e){return Eh(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Eh(n[r],e))return!0;return!1},LineString:function(t,e){return Ch(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Ch(n[r],e))return!0;return!1},Polygon:function(t,e){return xh(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(xh(n[r],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)if(wh(n[r],e))return!0;return!1}};function wh(t,e){return!(!t||!_h.hasOwnProperty(t.type))&&_h[t.type](t,e)}function Eh(t,e){return 0===vh(t,e)}function Ch(t,e){for(var n,r,i,a=0,o=t.length;a<o;a++){if(0===(r=vh(t[a],e)))return!0;if(a>0&&(i=vh(t[a],t[a-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<Gl*i)return!0;n=r}return!1}function xh(t,e){return!!Ju(t.map(Bh),Th(e))}function Bh(t){return(t=t.map(Th)).pop(),t}function Th(t){return[t[0]*Wl,t[1]*Wl]}function kh(t,e){return(t&&bh.hasOwnProperty(t.type)?bh[t.type]:wh)(t,e)}function Sh(t,e,n){var r=bt(t,e-Ql,n).concat(e);return function(t){return r.map((function(e){return[t,e]}))}}function Ih(t,e,n){var r=bt(t,e-Ql,n).concat(e);return function(t){return r.map((function(e){return[e,t]}))}}function Lh(){var t,e,n,r,i,a,o,s,c,l,A,u,h=10,f=h,d=90,p=360,g=2.5;function m(){return{type:"MultiLineString",coordinates:y()}}function y(){return bt(Zl(r/d)*d,n,d).map(A).concat(bt(Zl(s/p)*p,o,p).map(u)).concat(bt(Zl(e/h)*h,t,h).filter((function(t){return Vl(t%d)>Ql})).map(c)).concat(bt(Zl(a/f)*f,i,f).filter((function(t){return Vl(t%p)>Ql})).map(l))}return m.lines=function(){return y().map((function(t){return{type:"LineString",coordinates:t}}))},m.outline=function(){return{type:"Polygon",coordinates:[A(r).concat(u(o).slice(1),A(n).reverse().slice(1),u(s).reverse().slice(1))]}},m.extent=function(t){return arguments.length?m.extentMajor(t).extentMinor(t):m.extentMinor()},m.extentMajor=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],s=+t[0][1],o=+t[1][1],r>n&&(t=r,r=n,n=t),s>o&&(t=s,s=o,o=t),m.precision(g)):[[r,s],[n,o]]},m.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],a=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),a>i&&(n=a,a=i,i=n),m.precision(g)):[[e,a],[t,i]]},m.step=function(t){return arguments.length?m.stepMajor(t).stepMinor(t):m.stepMinor()},m.stepMajor=function(t){return arguments.length?(d=+t[0],p=+t[1],m):[d,p]},m.stepMinor=function(t){return arguments.length?(h=+t[0],f=+t[1],m):[h,f]},m.precision=function(h){return arguments.length?(g=+h,c=Sh(a,i,90),l=Ih(e,t,g),A=Sh(s,o,90),u=Ih(r,n,g),m):g},m.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function Fh(){return Lh()()}function Nh(t,e){var n=t[0]*Wl,r=t[1]*Wl,i=e[0]*Wl,a=e[1]*Wl,o=Jl(r),s=iA(r),c=Jl(a),l=iA(a),A=o*Jl(n),u=o*iA(n),h=c*Jl(i),f=c*iA(i),d=2*lA(oA(AA(a-r)+o*c*AA(i-n))),p=iA(d),g=d?function(t){var e=iA(t*=d)/p,n=iA(d-t)/p,r=n*A+e*h,i=n*u+e*f,a=n*s+e*l;return[Xl(i,r)*zl,Xl(a,oA(r*r+i*i))*zl]}:function(){return[n*zl,r*zl]};return g.distance=d,g}const Oh=t=>t;var Dh,Mh,Rh,Uh,Ph=new _,Hh=new _,Qh={point:uA,lineStart:uA,lineEnd:uA,polygonStart:function(){Qh.lineStart=Gh,Qh.lineEnd=Kh},polygonEnd:function(){Qh.lineStart=Qh.lineEnd=Qh.point=uA,Ph.add(Vl(Hh)),Hh=new _},result:function(){var t=Ph/2;return Ph=new _,t}};function Gh(){Qh.point=jh}function jh(t,e){Qh.point=$h,Dh=Rh=t,Mh=Uh=e}function $h(t,e){Hh.add(Uh*t-Rh*e),Rh=t,Uh=e}function Kh(){$h(Dh,Mh)}const Yh=Qh;var zh=1/0,Wh=zh,Vh=-zh,qh=Vh;const Xh={point:function(t,e){t<zh&&(zh=t),t>Vh&&(Vh=t),e<Wh&&(Wh=e),e>qh&&(qh=e)},lineStart:uA,lineEnd:uA,polygonStart:uA,polygonEnd:uA,result:function(){var t=[[zh,Wh],[Vh,qh]];return Vh=qh=-(Wh=zh=1/0),t}};var Jh,Zh,tf,ef,nf=0,rf=0,af=0,of=0,sf=0,cf=0,lf=0,Af=0,uf=0,hf={point:ff,lineStart:df,lineEnd:mf,polygonStart:function(){hf.lineStart=yf,hf.lineEnd=vf},polygonEnd:function(){hf.point=ff,hf.lineStart=df,hf.lineEnd=mf},result:function(){var t=uf?[lf/uf,Af/uf]:cf?[of/cf,sf/cf]:af?[nf/af,rf/af]:[NaN,NaN];return nf=rf=af=of=sf=cf=lf=Af=uf=0,t}};function ff(t,e){nf+=t,rf+=e,++af}function df(){hf.point=pf}function pf(t,e){hf.point=gf,ff(tf=t,ef=e)}function gf(t,e){var n=t-tf,r=e-ef,i=oA(n*n+r*r);of+=i*(tf+t)/2,sf+=i*(ef+e)/2,cf+=i,ff(tf=t,ef=e)}function mf(){hf.point=ff}function yf(){hf.point=bf}function vf(){_f(Jh,Zh)}function bf(t,e){hf.point=_f,ff(Jh=tf=t,Zh=ef=e)}function _f(t,e){var n=t-tf,r=e-ef,i=oA(n*n+r*r);of+=i*(tf+t)/2,sf+=i*(ef+e)/2,cf+=i,lf+=(i=ef*t-tf*e)*(tf+t),Af+=i*(ef+e),uf+=3*i,ff(tf=t,ef=e)}const wf=hf;function Ef(t){this._context=t}Ef.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,Yl)}},result:uA};var Cf,xf,Bf,Tf,kf,Sf=new _,If={point:uA,lineStart:function(){If.point=Lf},lineEnd:function(){Cf&&Ff(xf,Bf),If.point=uA},polygonStart:function(){Cf=!0},polygonEnd:function(){Cf=null},result:function(){var t=+Sf;return Sf=new _,t}};function Lf(t,e){If.point=Ff,xf=Tf=t,Bf=kf=e}function Ff(t,e){Tf-=t,kf-=e,Sf.add(oA(Tf*Tf+kf*kf)),Tf=t,kf=e}const Nf=If;function Of(){this._string=[]}function Df(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Mf(t,e){var n,r,i=4.5;function a(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),mA(t,n(r))),r.result()}return a.area=function(t){return mA(t,n(Yh)),Yh.result()},a.measure=function(t){return mA(t,n(Nf)),Nf.result()},a.bounds=function(t){return mA(t,n(Xh)),Xh.result()},a.centroid=function(t){return mA(t,n(wf)),wf.result()},a.projection=function(e){return arguments.length?(n=null==e?(t=null,Oh):(t=e).stream,a):t},a.context=function(t){return arguments.length?(r=null==t?(e=null,new Of):new Ef(e=t),"function"!=typeof i&&r.pointRadius(i),a):e},a.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),a):i},a.projection(t).context(e)}function Rf(t){return{stream:Uf(t)}}function Uf(t){return function(e){var n=new Pf;for(var r in t)n[r]=t[r];return n.stream=e,n}}function Pf(){}function Hf(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),mA(n,t.stream(Xh)),e(Xh.result()),null!=r&&t.clipExtent(r),t}function Qf(t,e,n){return Hf(t,(function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),o=+e[0][0]+(r-a*(n[1][0]+n[0][0]))/2,s=+e[0][1]+(i-a*(n[1][1]+n[0][1]))/2;t.scale(150*a).translate([o,s])}),n)}function Gf(t,e,n){return Qf(t,[[0,0],e],n)}function jf(t,e,n){return Hf(t,(function(n){var r=+e,i=r/(n[1][0]-n[0][0]),a=(r-i*(n[1][0]+n[0][0]))/2,o=-i*n[0][1];t.scale(150*i).translate([a,o])}),n)}function $f(t,e,n){return Hf(t,(function(n){var r=+e,i=r/(n[1][1]-n[0][1]),a=-i*n[0][0],o=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([a,o])}),n)}Of.prototype={_radius:4.5,_circle:Df(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=Df(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},Pf.prototype={constructor:Pf,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Kf=Jl(30*Wl);function Yf(t,e){return+e?function(t,e){function n(r,i,a,o,s,c,l,A,u,h,f,d,p,g){var m=l-r,y=A-i,v=m*m+y*y;if(v>4*e&&p--){var b=o+h,_=s+f,w=c+d,E=oA(b*b+_*_+w*w),C=lA(w/=E),x=Vl(Vl(w)-1)<Ql||Vl(a-u)<Ql?(a+u)/2:Xl(_,b),B=t(x,C),T=B[0],k=B[1],S=T-r,I=k-i,L=y*S-m*I;(L*L/v>e||Vl((m*S+y*I)/v-.5)>.3||o*h+s*f+c*d<Kf)&&(n(r,i,a,o,s,c,T,k,x,b/=E,_/=E,w,p,g),g.point(T,k),n(T,k,x,b,_,w,l,A,u,h,f,d,p,g))}}return function(e){var r,i,a,o,s,c,l,A,u,h,f,d,p={point:g,lineStart:m,lineEnd:v,polygonStart:function(){e.polygonStart(),p.lineStart=b},polygonEnd:function(){e.polygonEnd(),p.lineStart=m}};function g(n,r){n=t(n,r),e.point(n[0],n[1])}function m(){A=NaN,p.point=y,e.lineStart()}function y(r,i){var a=jA([r,i]),o=t(r,i);n(A,u,l,h,f,d,A=o[0],u=o[1],l=r,h=a[0],f=a[1],d=a[2],16,e),e.point(A,u)}function v(){p.point=g,e.lineEnd()}function b(){m(),p.point=_,p.lineEnd=w}function _(t,e){y(r=t,e),i=A,a=u,o=h,s=f,c=d,p.point=y}function w(){n(A,u,l,h,f,d,i,a,r,o,s,c,16,e),p.lineEnd=v,v()}return p}}(t,e):function(t){return Uf({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}(t)}var zf=Uf({point:function(t,e){this.stream.point(t*Wl,e*Wl)}});function Wf(t,e,n,r,i,a){if(!a)return function(t,e,n,r,i){function a(a,o){return[e+t*(a*=r),n-t*(o*=i)]}return a.invert=function(a,o){return[(a-e)/t*r,(n-o)/t*i]},a}(t,e,n,r,i);var o=Jl(a),s=iA(a),c=o*t,l=s*t,A=o/t,u=s/t,h=(s*n-o*e)/t,f=(s*e+o*n)/t;function d(t,a){return[c*(t*=r)-l*(a*=i)+e,n-l*t-c*a]}return d.invert=function(t,e){return[r*(A*t-u*e+h),i*(f-u*t-A*e)]},d}function Vf(t){return qf((function(){return t}))()}function qf(t){var e,n,r,i,a,o,s,c,l,A,u=150,h=480,f=250,d=0,p=0,g=0,m=0,y=0,v=0,b=1,_=1,w=null,E=nh,C=null,x=Oh,B=.5;function T(t){return c(t[0]*Wl,t[1]*Wl)}function k(t){return(t=c.invert(t[0],t[1]))&&[t[0]*zl,t[1]*zl]}function S(){var t=Wf(u,0,0,b,_,v).apply(null,e(d,p)),r=Wf(u,h-t[0],f-t[1],b,_,v);return n=Uu(g,m,y),s=Mu(e,r),c=Mu(n,s),o=Yf(s,B),I()}function I(){return l=A=null,T}return T.stream=function(t){return l&&A===t?l:l=zf(function(t){return Uf({point:function(e,n){var r=t(e,n);return this.stream.point(r[0],r[1])}})}(n)(E(o(x(A=t)))))},T.preclip=function(t){return arguments.length?(E=t,w=void 0,I()):E},T.postclip=function(t){return arguments.length?(x=t,C=r=i=a=null,I()):x},T.clipAngle=function(t){return arguments.length?(E=+t?rh(w=t*Wl):(w=null,nh),I()):w*zl},T.clipExtent=function(t){return arguments.length?(x=null==t?(C=r=i=a=null,Oh):Ah(C=+t[0][0],r=+t[0][1],i=+t[1][0],a=+t[1][1]),I()):null==C?null:[[C,r],[i,a]]},T.scale=function(t){return arguments.length?(u=+t,S()):u},T.translate=function(t){return arguments.length?(h=+t[0],f=+t[1],S()):[h,f]},T.center=function(t){return arguments.length?(d=t[0]%360*Wl,p=t[1]%360*Wl,S()):[d*zl,p*zl]},T.rotate=function(t){return arguments.length?(g=t[0]%360*Wl,m=t[1]%360*Wl,y=t.length>2?t[2]%360*Wl:0,S()):[g*zl,m*zl,y*zl]},T.angle=function(t){return arguments.length?(v=t%360*Wl,S()):v*zl},T.reflectX=function(t){return arguments.length?(b=t?-1:1,S()):b<0},T.reflectY=function(t){return arguments.length?(_=t?-1:1,S()):_<0},T.precision=function(t){return arguments.length?(o=Yf(s,B=t*t),I()):oA(B)},T.fitExtent=function(t,e){return Qf(T,t,e)},T.fitSize=function(t,e){return Gf(T,t,e)},T.fitWidth=function(t,e){return jf(T,t,e)},T.fitHeight=function(t,e){return $f(T,t,e)},function(){return e=t.apply(this,arguments),T.invert=e.invert&&k,S()}}function Xf(t){var e=0,n=jl/3,r=qf(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*Wl,n=t[1]*Wl):[e*zl,n*zl]},i}function Jf(t,e){var n=iA(t),r=(n+iA(e))/2;if(Vl(r)<Ql)return function(t){var e=Jl(t);function n(t,n){return[t*e,iA(n)/e]}return n.invert=function(t,n){return[t/e,lA(n*e)]},n}(t);var i=1+n*(2*r-n),a=oA(i)/r;function o(t,e){var n=oA(i-2*r*iA(e))/r;return[n*iA(t*=r),a-n*Jl(t)]}return o.invert=function(t,e){var n=a-e,o=Xl(t,Vl(n))*aA(n);return n*r<0&&(o-=jl*aA(t)*aA(n)),[o/r,lA((i-(t*t+n*n)*r*r)/(2*r))]},o}function Zf(){return Xf(Jf).scale(155.424).center([0,33.6442])}function td(){return Zf().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function ed(){var t,e,n,r,i,a,o=td(),s=Zf().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=Zf().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(t,e){a=[t,e]}};function A(t){var e=t[0],o=t[1];return a=null,n.point(e,o),a||(r.point(e,o),a)||(i.point(e,o),a)}function u(){return t=e=null,A}return A.invert=function(t){var e=o.scale(),n=o.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?s:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:o).invert(t)},A.stream=function(n){return t&&e===n?t:(r=[o.stream(e=n),s.stream(n),c.stream(n)],i=r.length,t={point:function(t,e){for(var n=-1;++n<i;)r[n].point(t,e)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},A.precision=function(t){return arguments.length?(o.precision(t),s.precision(t),c.precision(t),u()):o.precision()},A.scale=function(t){return arguments.length?(o.scale(t),s.scale(.35*t),c.scale(t),A.translate(o.translate())):o.scale()},A.translate=function(t){if(!arguments.length)return o.translate();var e=o.scale(),a=+t[0],A=+t[1];return n=o.translate(t).clipExtent([[a-.455*e,A-.238*e],[a+.455*e,A+.238*e]]).stream(l),r=s.translate([a-.307*e,A+.201*e]).clipExtent([[a-.425*e+Ql,A+.12*e+Ql],[a-.214*e-Ql,A+.234*e-Ql]]).stream(l),i=c.translate([a-.205*e,A+.212*e]).clipExtent([[a-.214*e+Ql,A+.166*e+Ql],[a-.115*e-Ql,A+.234*e-Ql]]).stream(l),u()},A.fitExtent=function(t,e){return Qf(A,t,e)},A.fitSize=function(t,e){return Gf(A,t,e)},A.fitWidth=function(t,e){return jf(A,t,e)},A.fitHeight=function(t,e){return $f(A,t,e)},A.scale(1070)}function nd(t){return function(e,n){var r=Jl(e),i=Jl(n),a=t(r*i);return a===1/0?[2,0]:[a*i*iA(e),a*iA(n)]}}function rd(t){return function(e,n){var r=oA(e*e+n*n),i=t(r),a=iA(i),o=Jl(i);return[Xl(e*a,r*o),lA(r&&n*a/r)]}}var id=nd((function(t){return oA(2/(1+t))}));function ad(){return Vf(id).scale(124.75).clipAngle(179.999)}id.invert=rd((function(t){return 2*lA(t/2)}));var od=nd((function(t){return(t=cA(t))&&t/iA(t)}));function sd(){return Vf(od).scale(79.4188).clipAngle(179.999)}function cd(t,e){return[t,nA(sA(($l+e)/2))]}function ld(){return Ad(cd).scale(961/Yl)}function Ad(t){var e,n,r,i=Vf(t),a=i.center,o=i.scale,s=i.translate,c=i.clipExtent,l=null;function A(){var a=jl*o(),s=i(Gu(i.rotate()).invert([0,0]));return c(null==l?[[s[0]-a,s[1]-a],[s[0]+a,s[1]+a]]:t===cd?[[Math.max(s[0]-a,l),e],[Math.min(s[0]+a,n),r]]:[[l,Math.max(s[1]-a,e)],[n,Math.min(s[1]+a,r)]])}return i.scale=function(t){return arguments.length?(o(t),A()):o()},i.translate=function(t){return arguments.length?(s(t),A()):s()},i.center=function(t){return arguments.length?(a(t),A()):a()},i.clipExtent=function(t){return arguments.length?(null==t?l=e=n=r=null:(l=+t[0][0],e=+t[0][1],n=+t[1][0],r=+t[1][1]),A()):null==l?null:[[l,e],[n,r]]},A()}function ud(t){return sA(($l+t)/2)}function hd(t,e){var n=Jl(t),r=t===e?iA(t):nA(n/Jl(e))/nA(ud(e)/ud(t)),i=n*rA(ud(t),r)/r;if(!r)return cd;function a(t,e){i>0?e<-$l+Ql&&(e=-$l+Ql):e>$l-Ql&&(e=$l-Ql);var n=i/rA(ud(e),r);return[n*iA(r*t),i-n*Jl(r*t)]}return a.invert=function(t,e){var n=i-e,a=aA(r)*oA(t*t+n*n),o=Xl(t,Vl(n))*aA(n);return n*r<0&&(o-=jl*aA(t)*aA(n)),[o/r,2*ql(rA(i/a,1/r))-$l]},a}function fd(){return Xf(hd).scale(109.5).parallels([30,30])}function dd(t,e){return[t,e]}function pd(){return Vf(dd).scale(152.63)}function gd(t,e){var n=Jl(t),r=t===e?iA(t):(n-Jl(e))/(e-t),i=n/r+t;if(Vl(r)<Ql)return dd;function a(t,e){var n=i-e,a=r*t;return[n*iA(a),i-n*Jl(a)]}return a.invert=function(t,e){var n=i-e,a=Xl(t,Vl(n))*aA(n);return n*r<0&&(a-=jl*aA(t)*aA(n)),[a/r,i-aA(r)*oA(t*t+n*n)]},a}function md(){return Xf(gd).scale(131.154).center([0,13.9389])}od.invert=rd((function(t){return t})),cd.invert=function(t,e){return[t,2*ql(tA(e))-$l]},dd.invert=dd;var yd=1.340264,vd=-.081106,bd=893e-6,_d=.003796,wd=oA(3)/2;function Ed(t,e){var n=lA(wd*iA(e)),r=n*n,i=r*r*r;return[t*Jl(n)/(wd*(yd+3*vd*r+i*(7*bd+9*_d*r))),n*(yd+vd*r+i*(bd+_d*r))]}function Cd(){return Vf(Ed).scale(177.158)}function xd(t,e){var n=Jl(e),r=Jl(t)*n;return[n*iA(t)/r,iA(e)/r]}function Bd(){return Vf(xd).scale(144.049).clipAngle(60)}function Td(){var t,e,n,r,i,a,o,s=1,c=0,l=0,A=1,u=1,h=0,f=null,d=1,p=1,g=Uf({point:function(t,e){var n=v([t,e]);this.stream.point(n[0],n[1])}}),m=Oh;function y(){return d=s*A,p=s*u,a=o=null,v}function v(n){var r=n[0]*d,i=n[1]*p;if(h){var a=i*t-r*e;r=r*t+i*e,i=a}return[r+c,i+l]}return v.invert=function(n){var r=n[0]-c,i=n[1]-l;if(h){var a=i*t+r*e;r=r*t-i*e,i=a}return[r/d,i/p]},v.stream=function(t){return a&&o===t?a:a=g(m(o=t))},v.postclip=function(t){return arguments.length?(m=t,f=n=r=i=null,y()):m},v.clipExtent=function(t){return arguments.length?(m=null==t?(f=n=r=i=null,Oh):Ah(f=+t[0][0],n=+t[0][1],r=+t[1][0],i=+t[1][1]),y()):null==f?null:[[f,n],[r,i]]},v.scale=function(t){return arguments.length?(s=+t,y()):s},v.translate=function(t){return arguments.length?(c=+t[0],l=+t[1],y()):[c,l]},v.angle=function(n){return arguments.length?(e=iA(h=n%360*Wl),t=Jl(h),y()):h*zl},v.reflectX=function(t){return arguments.length?(A=t?-1:1,y()):A<0},v.reflectY=function(t){return arguments.length?(u=t?-1:1,y()):u<0},v.fitExtent=function(t,e){return Qf(v,t,e)},v.fitSize=function(t,e){return Gf(v,t,e)},v.fitWidth=function(t,e){return jf(v,t,e)},v.fitHeight=function(t,e){return $f(v,t,e)},v}function kd(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),e*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}function Sd(){return Vf(kd).scale(175.295)}function Id(t,e){return[Jl(e)*iA(t),iA(e)]}function Ld(){return Vf(Id).scale(249.5).clipAngle(90.000001)}function Fd(t,e){var n=Jl(e),r=1+Jl(t)*n;return[n*iA(t)/r,iA(e)/r]}function Nd(){return Vf(Fd).scale(250).clipAngle(142)}function Od(t,e){return[nA(sA(($l+e)/2)),-t]}function Dd(){var t=Ad(Od),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}function Md(t,e){return t.parent===e.parent?1:2}function Rd(t,e){return t+e.x}function Ud(t,e){return Math.max(t,e.y)}function Pd(){var t=Md,e=1,n=1,r=!1;function i(i){var a,o=0;i.eachAfter((function(e){var n=e.children;n?(e.x=function(t){return t.reduce(Rd,0)/t.length}(n),e.y=function(t){return 1+t.reduce(Ud,0)}(n)):(e.x=a?o+=t(e,a):0,e.y=0,a=e)}));var s=function(t){for(var e;e=t.children;)t=e[0];return t}(i),c=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),l=s.x-t(s,c)/2,A=c.x+t(c,s)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-l)/(A-l)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function Hd(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function Qd(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=jd)):void 0===e&&(e=Gd);for(var n,r,i,a,o,s=new Yd(t),c=[s];n=c.pop();)if((i=e(n.data))&&(o=(i=Array.from(i)).length))for(n.children=i,a=o-1;a>=0;--a)c.push(r=i[a]=new Yd(i[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Kd)}function Gd(t){return t.children}function jd(t){return Array.isArray(t)?t[1]:null}function $d(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Kd(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Yd(t){this.data=t,this.depth=this.height=0,this.parent=null}function zd(t){for(var e,n,r=0,i=(t=function(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}(Array.from(t))).length,a=[];r<i;)e=t[r],n&&qd(n,e)?++r:(n=Jd(a=Wd(a,e)),r=0);return n}function Wd(t,e){var n,r;if(Xd(e,t))return[e];for(n=0;n<t.length;++n)if(Vd(e,t[n])&&Xd(Zd(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(Vd(Zd(t[n],t[r]),e)&&Vd(Zd(t[n],e),t[r])&&Vd(Zd(t[r],e),t[n])&&Xd(tp(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function Vd(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function qd(t,e){var n=t.r-e.r+1e-9*Math.max(t.r,e.r,1),r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function Xd(t,e){for(var n=0;n<e.length;++n)if(!qd(t,e[n]))return!1;return!0}function Jd(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return Zd(t[0],t[1]);case 3:return tp(t[0],t[1],t[2])}var e}function Zd(t,e){var n=t.x,r=t.y,i=t.r,a=e.x,o=e.y,s=e.r,c=a-n,l=o-r,A=s-i,u=Math.sqrt(c*c+l*l);return{x:(n+a+c/u*A)/2,y:(r+o+l/u*A)/2,r:(u+i+s)/2}}function tp(t,e,n){var r=t.x,i=t.y,a=t.r,o=e.x,s=e.y,c=e.r,l=n.x,A=n.y,u=n.r,h=r-o,f=r-l,d=i-s,p=i-A,g=c-a,m=u-a,y=r*r+i*i-a*a,v=y-o*o-s*s+c*c,b=y-l*l-A*A+u*u,_=f*d-h*p,w=(d*b-p*v)/(2*_)-r,E=(p*g-d*m)/_,C=(f*v-h*b)/(2*_)-i,x=(h*m-f*g)/_,B=E*E+x*x-1,T=2*(a+w*E+C*x),k=w*w+C*C-a*a,S=-(B?(T+Math.sqrt(T*T-4*B*k))/(2*B):k/T);return{x:r+w+E*S,y:i+C+x*S,r:S}}function ep(t,e,n){var r,i,a,o,s=t.x-e.x,c=t.y-e.y,l=s*s+c*c;l?(i=e.r+n.r,i*=i,o=t.r+n.r,i>(o*=o)?(r=(l+o-i)/(2*l),a=Math.sqrt(Math.max(0,o/l-r*r)),n.x=t.x-r*s-a*c,n.y=t.y-r*c+a*s):(r=(l+i-o)/(2*l),a=Math.sqrt(Math.max(0,i/l-r*r)),n.x=e.x+r*s-a*c,n.y=e.y+r*c+a*s)):(n.x=e.x+n.r,n.y=e.y)}function np(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function rp(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,a=(e.y*n.r+n.y*e.r)/r;return i*i+a*a}function ip(t){this._=t,this.next=null,this.previous=null}function ap(t){if(!(a=(e=t,t="object"==typeof e&&"length"in e?e:Array.from(e)).length))return 0;var e,n,r,i,a,o,s,c,l,A,u,h;if((n=t[0]).x=0,n.y=0,!(a>1))return n.r;if(r=t[1],n.x=-r.r,r.x=n.r,r.y=0,!(a>2))return n.r+r.r;ep(r,n,i=t[2]),n=new ip(n),r=new ip(r),i=new ip(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;t:for(c=3;c<a;++c){ep(n._,r._,i=t[c]),i=new ip(i),l=r.next,A=n.previous,u=r._.r,h=n._.r;do{if(u<=h){if(np(l._,i._)){r=l,n.next=r,r.previous=n,--c;continue t}u+=l._.r,l=l.next}else{if(np(A._,i._)){(n=A).next=r,r.previous=n,--c;continue t}h+=A._.r,A=A.previous}}while(l!==A.next);for(i.previous=n,i.next=r,n.next=r.previous=r=i,o=rp(n);(i=i.next)!==r;)(s=rp(i))<o&&(n=i,o=s);r=n.next}for(n=[r._],i=r;(i=i.next)!==r;)n.push(i._);for(i=zd(n),c=0;c<a;++c)(n=t[c]).x-=i.x,n.y-=i.y;return i.r}function op(t){return ap(t),t}function sp(t){return null==t?null:cp(t)}function cp(t){if("function"!=typeof t)throw new Error;return t}function lp(){return 0}function Ap(t){return function(){return t}}function up(t){return Math.sqrt(t.value)}function hp(){var t=null,e=1,n=1,r=lp;function i(i){return i.x=e/2,i.y=n/2,t?i.eachBefore(fp(t)).eachAfter(dp(r,.5)).eachBefore(pp(1)):i.eachBefore(fp(up)).eachAfter(dp(lp,1)).eachAfter(dp(r,i.r/Math.min(e,n))).eachBefore(pp(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=sp(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:Ap(+t),i):r},i}function fp(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function dp(t,e){return function(n){if(r=n.children){var r,i,a,o=r.length,s=t(n)*e||0;if(s)for(i=0;i<o;++i)r[i].r+=s;if(a=ap(r),s)for(i=0;i<o;++i)r[i].r-=s;n.r=a+s}}}function pp(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}function gp(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function mp(t,e,n,r,i){for(var a,o=t.children,s=-1,c=o.length,l=t.value&&(r-e)/t.value;++s<c;)(a=o[s]).y0=n,a.y1=i,a.x0=e,a.x1=e+=a.value*l}function yp(){var t=1,e=1,n=0,r=!1;function i(i){var a=i.height+1;return i.x0=i.y0=n,i.x1=t,i.y1=e/a,i.eachBefore(function(t,e){return function(r){r.children&&mp(r,r.x0,t*(r.depth+1)/e,r.x1,t*(r.depth+2)/e);var i=r.x0,a=r.y0,o=r.x1-n,s=r.y1-n;o<i&&(i=o=(i+o)/2),s<a&&(a=s=(a+s)/2),r.x0=i,r.y0=a,r.x1=o,r.y1=s}}(e,a)),r&&i.eachBefore(gp),i}return i.round=function(t){return arguments.length?(r=!!t,i):r},i.size=function(n){return arguments.length?(t=+n[0],e=+n[1],i):[t,e]},i.padding=function(t){return arguments.length?(n=+t,i):n},i}Ed.invert=function(t,e){for(var n,r=e,i=r*r,a=i*i*i,o=0;o<12&&(a=(i=(r-=n=(r*(yd+vd*i+a*(bd+_d*i))-e)/(yd+3*vd*i+a*(7*bd+9*_d*i)))*r)*i*i,!(Vl(n)<Gl));++o);return[wd*t*(yd+3*vd*i+a*(7*bd+9*_d*i))/Jl(r),lA(iA(r)/wd)]},xd.invert=rd(ql),kd.invert=function(t,e){var n,r=e,i=25;do{var a=r*r,o=a*a;r-=n=(r*(1.007226+a*(.015085+o*(.028874*a-.044475-.005916*o)))-e)/(1.007226+a*(.045255+o*(.259866*a-.311325-.005916*11*o)))}while(Vl(n)>Ql&&--i>0);return[t/(.8707+(a=r*r)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),r]},Id.invert=rd(lA),Fd.invert=rd((function(t){return 2*ql(t)})),Od.invert=function(t,e){return[-e,2*ql(tA(t))-$l]},Yd.prototype=Qd.prototype={constructor:Yd,count:function(){return this.eachAfter(Hd)},each:function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,i,a=this,o=[a],s=[],c=-1;a=o.pop();)if(s.push(a),n=a.children)for(r=0,i=n.length;r<i;++r)o.push(n[r]);for(;a=s.pop();)t.call(e,a,++c,this);return this},eachBefore:function(t,e){for(var n,r,i=this,a=[i],o=-1;i=a.pop();)if(t.call(e,i,++o,this),n=i.children)for(r=n.length-1;r>=0;--r)a.push(n[r]);return this},find:function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return Qd(this).eachBefore($d)},[Symbol.iterator]:function*(){var t,e,n,r,i=this,a=[i];do{for(t=a.reverse(),a=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;n<r;++n)a.push(e[n])}while(a.length)}};var vp={depth:-1},bp={},_p={};function wp(t){return t.id}function Ep(t){return t.parentId}function Cp(){var t,e=wp,n=Ep;function r(r){var i,a,o,s,c,l,A,u,h=Array.from(r),f=e,d=n,p=new Map;if(null!=t){const e=h.map((e,n)=>function(t){let e=(t=""+t).length;return Bp(t,e-1)&&!Bp(t,e-2)&&(t=t.slice(0,-1)),"/"===t[0]?t:"/"+t}(t(e,n,r))),n=e.map(xp),i=new Set(e).add("");for(const t of n)i.has(t)||(i.add(t),e.push(t),n.push(xp(t)),h.push(_p));f=(t,n)=>e[n],d=(t,e)=>n[e]}for(o=0,i=h.length;o<i;++o)a=h[o],l=h[o]=new Yd(a),null!=(A=f(a,o,r))&&(A+="")&&(u=l.id=A,p.set(u,p.has(u)?bp:l)),null!=(A=d(a,o,r))&&(A+="")&&(l.parent=A);for(o=0;o<i;++o)if(A=(l=h[o]).parent){if(!(c=p.get(A)))throw new Error("missing: "+A);if(c===bp)throw new Error("ambiguous: "+A);c.children?c.children.push(l):c.children=[l],l.parent=c}else{if(s)throw new Error("multiple roots");s=l}if(!s)throw new Error("no root");if(null!=t){for(;s.data===_p&&1===s.children.length;)s=s.children[0],--i;for(let t=h.length-1;t>=0&&(l=h[t]).data===_p;--t)l.data=null}if(s.parent=vp,s.eachBefore((function(t){t.depth=t.parent.depth+1,--i})).eachBefore(Kd),s.parent=null,i>0)throw new Error("cycle");return s}return r.id=function(t){return arguments.length?(e=sp(t),r):e},r.parentId=function(t){return arguments.length?(n=sp(t),r):n},r.path=function(e){return arguments.length?(t=sp(e),r):t},r}function xp(t){let e=t.length;if(e<2)return"";for(;--e>1&&!Bp(t,e););return t.slice(0,e)}function Bp(t,e){if("/"===t[e]){let n=0;for(;e>0&&"\\"===t[--e];)++n;if(0==(1&n))return!0}return!1}function Tp(t,e){return t.parent===e.parent?1:2}function kp(t){var e=t.children;return e?e[0]:t.t}function Sp(t){var e=t.children;return e?e[e.length-1]:t.t}function Ip(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Lp(t,e,n){return t.a.parent===e.parent?t.a:n}function Fp(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function Np(){var t=Tp,e=1,n=1,r=null;function i(i){var c=function(t){for(var e,n,r,i,a,o=new Fp(t,0),s=[o];e=s.pop();)if(r=e._.children)for(e.children=new Array(a=r.length),i=a-1;i>=0;--i)s.push(n=e.children[i]=new Fp(r[i],i)),n.parent=e;return(o.parent=new Fp(null,0)).children=[o],o}(i);if(c.eachAfter(a),c.parent.m=-c.z,c.eachBefore(o),r)i.eachBefore(s);else{var l=i,A=i,u=i;i.eachBefore((function(t){t.x<l.x&&(l=t),t.x>A.x&&(A=t),t.depth>u.depth&&(u=t)}));var h=l===A?1:t(l,A)/2,f=h-l.x,d=e/(A.x+h+f),p=n/(u.depth||1);i.eachBefore((function(t){t.x=(t.x+f)*d,t.y=t.depth*p}))}return i}function a(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,a=i.length;--a>=0;)(e=i[a]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var a=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,a=e,o=e,s=n,c=a.parent.children[0],l=a.m,A=o.m,u=s.m,h=c.m;s=Sp(s),a=kp(a),s&&a;)c=kp(c),(o=Sp(o)).a=e,(i=s.z+u-a.z-l+t(s._,a._))>0&&(Ip(Lp(s,e,r),e,i),l+=i,A+=i),u+=s.m,l+=a.m,h+=c.m,A+=o.m;s&&!Sp(o)&&(o.t=s,o.m+=u-A),a&&!kp(c)&&(c.t=a,c.m+=l-h,r=e)}return r}(e,i,e.parent.A||r[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function Op(t,e,n,r,i){for(var a,o=t.children,s=-1,c=o.length,l=t.value&&(i-n)/t.value;++s<c;)(a=o[s]).x0=e,a.x1=r,a.y0=n,a.y1=n+=a.value*l}Fp.prototype=Object.create(Yd.prototype);var Dp=(1+Math.sqrt(5))/2;function Mp(t,e,n,r,i,a){for(var o,s,c,l,A,u,h,f,d,p,g,m=[],y=e.children,v=0,b=0,_=y.length,w=e.value;v<_;){c=i-n,l=a-r;do{A=y[b++].value}while(!A&&b<_);for(u=h=A,g=A*A*(p=Math.max(l/c,c/l)/(w*t)),d=Math.max(h/g,g/u);b<_;++b){if(A+=s=y[b].value,s<u&&(u=s),s>h&&(h=s),g=A*A*p,(f=Math.max(h/g,g/u))>d){A-=s;break}d=f}m.push(o={value:A,dice:c<l,children:y.slice(v,b)}),o.dice?mp(o,n,r,i,w?r+=l*A/w:a):Op(o,n,r,w?n+=c*A/w:i,a),w-=A,v=b}return m}const Rp=function t(e){function n(t,n,r,i,a){Mp(e,t,n,r,i,a)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(Dp);function Up(){var t=Rp,e=!1,n=1,r=1,i=[0],a=lp,o=lp,s=lp,c=lp,l=lp;function A(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(u),i=[0],e&&t.eachBefore(gp),t}function u(e){var n=i[e.depth],r=e.x0+n,A=e.y0+n,u=e.x1-n,h=e.y1-n;u<r&&(r=u=(r+u)/2),h<A&&(A=h=(A+h)/2),e.x0=r,e.y0=A,e.x1=u,e.y1=h,e.children&&(n=i[e.depth+1]=a(e)/2,r+=l(e)-n,A+=o(e)-n,(u-=s(e)-n)<r&&(r=u=(r+u)/2),(h-=c(e)-n)<A&&(A=h=(A+h)/2),t(e,r,A,u,h))}return A.round=function(t){return arguments.length?(e=!!t,A):e},A.size=function(t){return arguments.length?(n=+t[0],r=+t[1],A):[n,r]},A.tile=function(e){return arguments.length?(t=cp(e),A):t},A.padding=function(t){return arguments.length?A.paddingInner(t).paddingOuter(t):A.paddingInner()},A.paddingInner=function(t){return arguments.length?(a="function"==typeof t?t:Ap(+t),A):a},A.paddingOuter=function(t){return arguments.length?A.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):A.paddingTop()},A.paddingTop=function(t){return arguments.length?(o="function"==typeof t?t:Ap(+t),A):o},A.paddingRight=function(t){return arguments.length?(s="function"==typeof t?t:Ap(+t),A):s},A.paddingBottom=function(t){return arguments.length?(c="function"==typeof t?t:Ap(+t),A):c},A.paddingLeft=function(t){return arguments.length?(l="function"==typeof t?t:Ap(+t),A):l},A}function Pp(t,e,n,r,i){var a,o,s=t.children,c=s.length,l=new Array(c+1);for(l[0]=o=a=0;a<c;++a)l[a+1]=o+=s[a].value;!function t(e,n,r,i,a,o,c){if(e>=n-1){var A=s[e];return A.x0=i,A.y0=a,A.x1=o,void(A.y1=c)}for(var u=l[e],h=r/2+u,f=e+1,d=n-1;f<d;){var p=f+d>>>1;l[p]<h?f=p+1:d=p}h-l[f-1]<l[f]-h&&e+1<f&&--f;var g=l[f]-u,m=r-g;if(o-i>c-a){var y=r?(i*m+o*g)/r:o;t(e,f,g,i,a,y,c),t(f,n,m,y,a,o,c)}else{var v=r?(a*m+c*g)/r:c;t(e,f,g,i,a,o,v),t(f,n,m,i,v,o,c)}}(0,c,t.value,e,n,r,i)}function Hp(t,e,n,r,i){(1&t.depth?Op:mp)(t,e,n,r,i)}const Qp=function t(e){function n(t,n,r,i,a){if((o=t._squarify)&&o.ratio===e)for(var o,s,c,l,A,u=-1,h=o.length,f=t.value;++u<h;){for(c=(s=o[u]).children,l=s.value=0,A=c.length;l<A;++l)s.value+=c[l].value;s.dice?mp(s,n,r,i,f?r+=(a-r)*s.value/f:a):Op(s,n,r,f?n+=(i-n)*s.value/f:i,a),f-=s.value}else t._squarify=o=Mp(e,t,n,r,i,a),o.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(Dp);function Gp(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}function jp(t,e){var n=gr(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}}function $p(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Kp(t){return((t=Math.exp(t))+1/t)/2}const Yp=function t(e,n,r){function i(t,i){var a,o,s=t[0],c=t[1],l=t[2],A=i[0],u=i[1],h=i[2],f=A-s,d=u-c,p=f*f+d*d;if(p<1e-12)o=Math.log(h/l)/e,a=function(t){return[s+t*f,c+t*d,l*Math.exp(e*t*o)]};else{var g=Math.sqrt(p),m=(h*h-l*l+r*p)/(2*l*n*g),y=(h*h-l*l-r*p)/(2*h*n*g),v=Math.log(Math.sqrt(m*m+1)-m),b=Math.log(Math.sqrt(y*y+1)-y);o=(b-v)/e,a=function(t){var r,i=t*o,a=Kp(v),A=l/(n*g)*(a*(r=e*i+v,((r=Math.exp(2*r))-1)/(r+1))-function(t){return((t=Math.exp(t))-1/t)/2}(v));return[s+A*f,c+A*d,l*a/Kp(e*i+v)]}}return a.duration=1e3*o*e/Math.SQRT2,a}return i.rho=function(e){var n=Math.max(.001,+e),r=n*n;return t(n,r,r*r)},i}(Math.SQRT2,2,4);function zp(t){return function(e,n){var r=t((e=cr(e)).h,(n=cr(n)).h),i=mr(e.s,n.s),a=mr(e.l,n.l),o=mr(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=a(t),e.opacity=o(t),e+""}}}const Wp=zp(gr);var Vp=zp(mr);function qp(t,e){var n=mr((t=po(t)).l,(e=po(e)).l),r=mr(t.a,e.a),i=mr(t.b,e.b),a=mr(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=r(e),t.b=i(e),t.opacity=a(e),t+""}}function Xp(t){return function(e,n){var r=t((e=Eo(e)).h,(n=Eo(n)).h),i=mr(e.c,n.c),a=mr(e.l,n.l),o=mr(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+""}}}const Jp=Xp(gr);var Zp=Xp(mr);function tg(t){return function e(n){function r(e,r){var i=t((e=Oo(e)).h,(r=Oo(r)).h),a=mr(e.s,r.s),o=mr(e.l,r.l),s=mr(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=a(t),e.l=o(Math.pow(t,n)),e.opacity=s(t),e+""}}return n=+n,r.gamma=e,r}(1)}const eg=tg(gr);var ng=tg(mr);function rg(t,e){void 0===e&&(e=t,t=Fr);for(var n=0,r=e.length-1,i=e[0],a=new Array(r<0?0:r);n<r;)a[n]=t(i,i=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return a[e](t-e)}}function ig(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n}function ag(t){for(var e,n=-1,r=t.length,i=t[r-1],a=0;++n<r;)e=i,i=t[n],a+=e[1]*i[0]-e[0]*i[1];return a/2}function og(t){for(var e,n,r=-1,i=t.length,a=0,o=0,s=t[i-1],c=0;++r<i;)e=s,s=t[r],c+=n=e[0]*s[1]-s[0]*e[1],a+=(e[0]+s[0])*n,o+=(e[1]+s[1])*n;return[a/(c*=3),o/c]}function sg(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function cg(t,e){return t[0]-e[0]||t[1]-e[1]}function lg(t){const e=t.length,n=[0,1];let r,i=2;for(r=2;r<e;++r){for(;i>1&&sg(t[n[i-2]],t[n[i-1]],t[r])<=0;)--i;n[i++]=r}return n.slice(0,i)}function Ag(t){if((n=t.length)<3)return null;var e,n,r=new Array(n),i=new Array(n);for(e=0;e<n;++e)r[e]=[+t[e][0],+t[e][1],e];for(r.sort(cg),e=0;e<n;++e)i[e]=[r[e][0],-r[e][1]];var a=lg(r),o=lg(i),s=o[0]===a[0],c=o[o.length-1]===a[a.length-1],l=[];for(e=a.length-1;e>=0;--e)l.push(t[r[a[e]][2]]);for(e=+s;e<o.length-c;++e)l.push(t[r[o[e]][2]]);return l}function ug(t,e){for(var n,r,i=t.length,a=t[i-1],o=e[0],s=e[1],c=a[0],l=a[1],A=!1,u=0;u<i;++u)n=(a=t[u])[0],(r=a[1])>s!=l>s&&o<(c-n)*(s-r)/(l-r)+n&&(A=!A),c=n,l=r;return A}function hg(t){for(var e,n,r=-1,i=t.length,a=t[i-1],o=a[0],s=a[1],c=0;++r<i;)e=o,n=s,e-=o=(a=t[r])[0],n-=s=a[1],c+=Math.hypot(e,n);return c}const fg=Math.random,dg=function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,1===arguments.length?(n=t,t=0):n-=t,function(){return e()*n+t}}return n.source=t,n}(fg),pg=function t(e){function n(t,n){return arguments.length<2&&(n=t,t=0),t=Math.floor(t),n=Math.floor(n)-t,function(){return Math.floor(e()*n+t)}}return n.source=t,n}(fg),gg=function t(e){function n(t,n){var r,i;return t=null==t?0:+t,n=null==n?1:+n,function(){var a;if(null!=r)a=r,r=null;else do{r=2*e()-1,a=2*e()-1,i=r*r+a*a}while(!i||i>1);return t+n*a*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(fg),mg=function t(e){var n=gg.source(e);function r(){var t=n.apply(this,arguments);return function(){return Math.exp(t())}}return r.source=t,r}(fg),yg=function t(e){function n(t){return(t=+t)<=0?()=>0:function(){for(var n=0,r=t;r>1;--r)n+=e();return n+r*e()}}return n.source=t,n}(fg),vg=function t(e){var n=yg.source(e);function r(t){if(0==(t=+t))return e;var r=n(t);return function(){return r()/t}}return r.source=t,r}(fg),bg=function t(e){function n(t){return function(){return-Math.log1p(-e())/t}}return n.source=t,n}(fg),_g=function t(e){function n(t){if((t=+t)<0)throw new RangeError("invalid alpha");return t=1/-t,function(){return Math.pow(1-e(),t)}}return n.source=t,n}(fg),wg=function t(e){function n(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return function(){return Math.floor(e()+t)}}return n.source=t,n}(fg),Eg=function t(e){function n(t){if((t=+t)<0||t>1)throw new RangeError("invalid p");return 0===t?()=>1/0:1===t?()=>1:(t=Math.log1p(-t),function(){return 1+Math.floor(Math.log1p(-e())/t)})}return n.source=t,n}(fg),Cg=function t(e){var n=gg.source(e)();function r(t,r){if((t=+t)<0)throw new RangeError("invalid k");if(0===t)return()=>0;if(r=null==r?1:+r,1===t)return()=>-Math.log1p(-e())*r;var i=(t<1?t+1:t)-1/3,a=1/(3*Math.sqrt(i)),o=t<1?()=>Math.pow(e(),1/t):()=>1;return function(){do{do{var t=n(),s=1+a*t}while(s<=0);s*=s*s;var c=1-e()}while(c>=1-.0331*t*t*t*t&&Math.log(c)>=.5*t*t+i*(1-s+Math.log(s)));return i*s*o()*r}}return r.source=t,r}(fg),xg=function t(e){var n=Cg.source(e);function r(t,e){var r=n(t),i=n(e);return function(){var t=r();return 0===t?0:t/(t+i())}}return r.source=t,r}(fg),Bg=function t(e){var n=Eg.source(e),r=xg.source(e);function i(t,e){return t=+t,(e=+e)>=1?()=>t:e<=0?()=>0:function(){for(var i=0,a=t,o=e;a*o>16&&a*(1-o)>16;){var s=Math.floor((a+1)*o),c=r(s,a-s+1)();c<=o?(i+=s,a-=s,o=(o-c)/(1-c)):(a=s-1,o/=c)}for(var l=o<.5,A=n(l?o:1-o),u=A(),h=0;u<=a;++h)u+=A();return i+(l?h:a-h)}}return i.source=t,i}(fg),Tg=function t(e){function n(t,n,r){var i;return 0==(t=+t)?i=t=>-Math.log(t):(t=1/t,i=e=>Math.pow(e,t)),n=null==n?0:+n,r=null==r?1:+r,function(){return n+r*i(-Math.log1p(-e()))}}return n.source=t,n}(fg),kg=function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,function(){return t+n*Math.tan(Math.PI*e())}}return n.source=t,n}(fg),Sg=function t(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,function(){var r=e();return t+n*Math.log(r/(1-r))}}return n.source=t,n}(fg),Ig=function t(e){var n=Cg.source(e),r=Bg.source(e);function i(t){return function(){for(var i=0,a=t;a>16;){var o=Math.floor(.875*a),s=n(o)();if(s>a)return i+r(o-1,a/s)();i+=o,a-=s}for(var c=-Math.log1p(-e()),l=0;c<=a;++l)c-=Math.log1p(-e());return i+l}}return i.source=t,i}(fg),Lg=1/4294967296;function Fg(t=Math.random()){let e=0|(0<=t&&t<1?t/Lg:Math.abs(t));return()=>(e=1664525*e+1013904223|0,Lg*(e>>>0))}function Ng(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Og(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}const Dg=Symbol("implicit");function Mg(){var t=new C,e=[],n=[],r=Dg;function i(i){let a=t.get(i);if(void 0===a){if(r!==Dg)return r;t.set(i,a=e.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new C;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return Mg(e,n).unknown(r)},Ng.apply(i,arguments),i}function Rg(){var t,e,n=Mg().unknown(void 0),r=n.domain,i=n.range,a=0,o=1,s=!1,c=0,l=0,A=.5;function u(){var n=r().length,u=o<a,h=u?o:a,f=u?a:o;t=(f-h)/Math.max(1,n-c+2*l),s&&(t=Math.floor(t)),h+=(f-h-t*(n-c))*A,e=t*(1-c),s&&(h=Math.round(h),e=Math.round(e));var d=bt(n).map((function(e){return h+t*e}));return i(u?d.reverse():d)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),u()):r()},n.range=function(t){return arguments.length?([a,o]=t,a=+a,o=+o,u()):[a,o]},n.rangeRound=function(t){return[a,o]=t,a=+a,o=+o,s=!0,u()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(s=!!t,u()):s},n.padding=function(t){return arguments.length?(c=Math.min(1,l=+t),u()):c},n.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),u()):c},n.paddingOuter=function(t){return arguments.length?(l=+t,u()):l},n.align=function(t){return arguments.length?(A=Math.max(0,Math.min(1,t)),u()):A},n.copy=function(){return Rg(r(),[a,o]).round(s).paddingInner(c).paddingOuter(l).align(A)},Ng.apply(u(),arguments)}function Ug(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Ug(e())},t}function Pg(){return Ug(Rg.apply(null,arguments).paddingInner(1))}function Hg(t){return+t}var Qg=[0,1];function Gg(t){return t}function jg(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function $g(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];return i<r?(r=jg(i,r),a=n(o,a)):(r=jg(r,i),a=n(a,o)),function(t){return a(r(t))}}function Kg(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),a=new Array(r),o=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<r;)i[o]=jg(t[o],t[o+1]),a[o]=n(e[o],e[o+1]);return function(e){var n=A(t,e,1,r)-1;return a[n](i[n](e))}}function Yg(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function zg(){var t,e,n,r,i,a,o=Qg,s=Qg,c=Fr,l=Gg;function A(){var t,e,n,c=Math.min(o.length,s.length);return l!==Gg&&(t=o[0],e=o[c-1],t>e&&(n=t,t=e,e=n),l=function(n){return Math.max(t,Math.min(e,n))}),r=c>2?Kg:$g,i=a=null,u}function u(e){return null==e||isNaN(e=+e)?n:(i||(i=r(o.map(t),s,c)))(t(l(e)))}return u.invert=function(n){return l(e((a||(a=r(s,o.map(t),Tr)))(n)))},u.domain=function(t){return arguments.length?(o=Array.from(t,Hg),A()):o.slice()},u.range=function(t){return arguments.length?(s=Array.from(t),A()):s.slice()},u.rangeRound=function(t){return s=Array.from(t),c=$p,A()},u.clamp=function(t){return arguments.length?(l=!!t||Gg,A()):l!==Gg},u.interpolate=function(t){return arguments.length?(c=t,A()):c},u.unknown=function(t){return arguments.length?(n=t,u):n},function(n,r){return t=n,e=r,A()}}function Wg(){return zg()(Gg,Gg)}function Vg(t,e,n,r){var i,a=tt(t,e,n);switch((r=Bl(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=Pl(a,o))||(r.precision=i),Nl(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=Hl(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=Ul(a))||(r.precision=i-2*("%"===r.type))}return Fl(r)}function qg(t){var e=t.domain;return t.ticks=function(t){var n=e();return J(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Vg(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,a=e(),o=0,s=a.length-1,c=a[o],l=a[s],A=10;for(l<c&&(i=c,c=l,l=i,i=o,o=s,s=i);A-- >0;){if((i=Z(c,l,n))===r)return a[o]=c,a[s]=l,e(a);if(i>0)c=Math.floor(c/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,l=Math.floor(l*i)/i}r=i}return t},t}function Xg(){var t=Wg();return t.copy=function(){return Yg(t,Xg())},Ng.apply(t,arguments),qg(t)}function Jg(t){var e;function n(t){return null==t||isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,Hg),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return Jg(t).unknown(e)},t=arguments.length?Array.from(t,Hg):[0,1],qg(n)}function Zg(t,e){var n,r=0,i=(t=t.slice()).length-1,a=t[r],o=t[i];return o<a&&(n=r,r=i,i=n,n=a,a=o,o=n),t[r]=e.floor(a),t[i]=e.ceil(o),t}function tm(t){return Math.log(t)}function em(t){return Math.exp(t)}function nm(t){return-Math.log(-t)}function rm(t){return-Math.exp(-t)}function im(t){return isFinite(t)?+("1e"+t):t<0?0:t}function am(t){return(e,n)=>-t(-e,n)}function om(t){const e=t(tm,em),n=e.domain;let r,i,a=10;function o(){return r=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(a),i=function(t){return 10===t?im:t===Math.E?Math.exp:e=>Math.pow(t,e)}(a),n()[0]<0?(r=am(r),i=am(i),t(nm,rm)):t(tm,em),e}return e.base=function(t){return arguments.length?(a=+t,o()):a},e.domain=function(t){return arguments.length?(n(t),o()):n()},e.ticks=t=>{const e=n();let o=e[0],s=e[e.length-1];const c=s<o;c&&([o,s]=[s,o]);let l,A,u=r(o),h=r(s);const f=null==t?10:+t;let d=[];if(!(a%1)&&h-u<f){if(u=Math.floor(u),h=Math.ceil(h),o>0){for(;u<=h;++u)for(l=1;l<a;++l)if(A=u<0?l/i(-u):l*i(u),!(A<o)){if(A>s)break;d.push(A)}}else for(;u<=h;++u)for(l=a-1;l>=1;--l)if(A=u>0?l/i(-u):l*i(u),!(A<o)){if(A>s)break;d.push(A)}2*d.length<f&&(d=J(o,s,f))}else d=J(u,h,Math.min(h-u,f)).map(i);return c?d.reverse():d},e.tickFormat=(t,n)=>{if(null==t&&(t=10),null==n&&(n=10===a?"s":","),"function"!=typeof n&&(a%1||null!=(n=Bl(n)).precision||(n.trim=!0),n=Fl(n)),t===1/0)return n;const o=Math.max(1,a*t/e.ticks().length);return t=>{let e=t/i(Math.round(r(t)));return e*a<a-.5&&(e*=a),e<=o?n(t):""}},e.nice=()=>n(Zg(n(),{floor:t=>i(Math.floor(r(t))),ceil:t=>i(Math.ceil(r(t)))})),e}function sm(){const t=om(zg()).domain([1,10]);return t.copy=()=>Yg(t,sm()).base(t.base()),Ng.apply(t,arguments),t}function cm(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function lm(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Am(t){var e=1,n=t(cm(e),lm(e));return n.constant=function(n){return arguments.length?t(cm(e=+n),lm(e)):e},qg(n)}function um(){var t=Am(zg());return t.copy=function(){return Yg(t,um()).constant(t.constant())},Ng.apply(t,arguments)}function hm(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function fm(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function dm(t){return t<0?-t*t:t*t}function pm(t){var e=t(Gg,Gg),n=1;function r(){return 1===n?t(Gg,Gg):.5===n?t(fm,dm):t(hm(n),hm(1/n))}return e.exponent=function(t){return arguments.length?(n=+t,r()):n},qg(e)}function gm(){var t=pm(zg());return t.copy=function(){return Yg(t,gm()).exponent(t.exponent())},Ng.apply(t,arguments),t}function mm(){return gm.apply(null,arguments).exponent(.5)}function ym(t){return Math.sign(t)*t*t}function vm(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function bm(){var t,e=Wg(),n=[0,1],r=!1;function i(n){var i=vm(e(n));return isNaN(i)?t:r?Math.round(i):i}return i.invert=function(t){return e.invert(ym(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain()},i.range=function(t){return arguments.length?(e.range((n=Array.from(t,Hg)).map(ym)),i):n.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(r=!!t,i):r},i.clamp=function(t){return arguments.length?(e.clamp(t),i):e.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return bm(e.domain(),n).round(r).clamp(e.clamp()).unknown(t)},Ng.apply(i,arguments),qg(i)}function _m(){var t,e=[],n=[],i=[];function a(){var t=0,r=Math.max(1,n.length);for(i=new Array(r-1);++t<r;)i[t-1]=lt(e,t/r);return o}function o(e){return null==e||isNaN(e=+e)?t:n[A(i,e)]}return o.invertExtent=function(t){var r=n.indexOf(t);return r<0?[NaN,NaN]:[r>0?i[r-1]:e[0],r<i.length?i[r]:e[e.length-1]]},o.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(r),a()},o.range=function(t){return arguments.length?(n=Array.from(t),a()):n.slice()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.quantiles=function(){return i.slice()},o.copy=function(){return _m().domain(e).range(n).unknown(t)},Ng.apply(o,arguments)}function wm(){var t,e=0,n=1,r=1,i=[.5],a=[0,1];function o(e){return null!=e&&e<=e?a[A(i,e,0,r)]:t}function s(){var t=-1;for(i=new Array(r);++t<r;)i[t]=((t+1)*n-(t-r)*e)/(r+1);return o}return o.domain=function(t){return arguments.length?([e,n]=t,e=+e,n=+n,s()):[e,n]},o.range=function(t){return arguments.length?(r=(a=Array.from(t)).length-1,s()):a.slice()},o.invertExtent=function(t){var o=a.indexOf(t);return o<0?[NaN,NaN]:o<1?[e,i[0]]:o>=r?[i[r-1],n]:[i[o-1],i[o]]},o.unknown=function(e){return arguments.length?(t=e,o):o},o.thresholds=function(){return i.slice()},o.copy=function(){return wm().domain([e,n]).range(a).unknown(t)},Ng.apply(qg(o),arguments)}function Em(){var t,e=[.5],n=[0,1],r=1;function i(i){return null!=i&&i<=i?n[A(e,i,0,r)]:t}return i.domain=function(t){return arguments.length?(e=Array.from(t),r=Math.min(e.length,n.length-1),i):e.slice()},i.range=function(t){return arguments.length?(n=Array.from(t),r=Math.min(e.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return Em().domain(e).range(n).unknown(t)},Ng.apply(i,arguments)}const Cm=1e3,xm=6e4,Bm=36e5,Tm=864e5,km=6048e5,Sm=31536e6;var Im=new Date,Lm=new Date;function Fm(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,a){var o,s=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o<n&&n<r);return s},i.filter=function(n){return Fm((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return Im.setTime(+e),Lm.setTime(+r),t(Im),t(Lm),Math.floor(n(Im,Lm))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var Nm=Fm((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));Nm.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Fm((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):Nm:null};const Om=Nm;var Dm=Nm.range,Mm=Fm((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*Cm)}),(function(t,e){return(e-t)/Cm}),(function(t){return t.getUTCSeconds()}));const Rm=Mm;var Um=Mm.range,Pm=Fm((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Cm)}),(function(t,e){t.setTime(+t+e*xm)}),(function(t,e){return(e-t)/xm}),(function(t){return t.getMinutes()}));const Hm=Pm;var Qm=Pm.range,Gm=Fm((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Cm-t.getMinutes()*xm)}),(function(t,e){t.setTime(+t+e*Bm)}),(function(t,e){return(e-t)/Bm}),(function(t){return t.getHours()}));const jm=Gm;var $m=Gm.range,Km=Fm(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*xm)/Tm,t=>t.getDate()-1);const Ym=Km;var zm=Km.range;function Wm(t){return Fm((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*xm)/km}))}var Vm=Wm(0),qm=Wm(1),Xm=Wm(2),Jm=Wm(3),Zm=Wm(4),ty=Wm(5),ey=Wm(6),ny=Vm.range,ry=qm.range,iy=Xm.range,ay=Jm.range,oy=Zm.range,sy=ty.range,cy=ey.range,ly=Fm((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));const Ay=ly;var uy=ly.range,hy=Fm((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));hy.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Fm((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const fy=hy;var dy=hy.range,py=Fm((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*xm)}),(function(t,e){return(e-t)/xm}),(function(t){return t.getUTCMinutes()}));const gy=py;var my=py.range,yy=Fm((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*Bm)}),(function(t,e){return(e-t)/Bm}),(function(t){return t.getUTCHours()}));const vy=yy;var by=yy.range,_y=Fm((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/Tm}),(function(t){return t.getUTCDate()-1}));const wy=_y;var Ey=_y.range;function Cy(t){return Fm((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/km}))}var xy=Cy(0),By=Cy(1),Ty=Cy(2),ky=Cy(3),Sy=Cy(4),Iy=Cy(5),Ly=Cy(6),Fy=xy.range,Ny=By.range,Oy=Ty.range,Dy=ky.range,My=Sy.range,Ry=Iy.range,Uy=Ly.range,Py=Fm((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));const Hy=Py;var Qy=Py.range,Gy=Fm((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));Gy.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Fm((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const jy=Gy;var $y=Gy.range;function Ky(t,e,n,r,a,o){const s=[[Rm,1,Cm],[Rm,5,5e3],[Rm,15,15e3],[Rm,30,3e4],[o,1,xm],[o,5,3e5],[o,15,9e5],[o,30,18e5],[a,1,Bm],[a,3,108e5],[a,6,216e5],[a,12,432e5],[r,1,Tm],[r,2,1728e5],[n,1,km],[e,1,2592e6],[e,3,7776e6],[t,1,Sm]];function c(e,n,r){const a=Math.abs(n-e)/r,o=i(([,,t])=>t).right(s,a);if(o===s.length)return t.every(tt(e/Sm,n/Sm,r));if(0===o)return Om.every(Math.max(tt(e,n,r),1));const[c,l]=s[a/s[o-1][2]<s[o][2]/a?o-1:o];return c.every(l)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const i=n&&"function"==typeof n.range?n:c(t,e,n),a=i?i.range(t,+e+1):[];return r?a.reverse():a},c]}const[Yy,zy]=Ky(jy,Hy,xy,wy,vy,gy),[Wy,Vy]=Ky(fy,Ay,Vm,Ym,jm,Hm);function qy(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Xy(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Jy(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Zy(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,s=t.months,c=t.shortMonths,l=uv(i),A=hv(i),u=uv(a),h=hv(a),f=uv(o),d=hv(o),p=uv(s),g=hv(s),m=uv(c),y=hv(c),v={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Nv,e:Nv,f:Uv,g:Vv,G:Xv,H:Ov,I:Dv,j:Mv,L:Rv,m:Pv,M:Hv,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:bb,s:_b,S:Qv,u:Gv,U:jv,V:Kv,w:Yv,W:zv,x:null,X:null,y:Wv,Y:qv,Z:Jv,"%":vb},b={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Zv,e:Zv,f:ib,g:pb,G:mb,H:tb,I:eb,j:nb,L:rb,m:ab,M:ob,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:bb,s:_b,S:sb,u:cb,U:lb,V:ub,w:hb,W:fb,x:null,X:null,y:db,Y:gb,Z:yb,"%":vb},_={a:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=p.exec(e.slice(n));return r?(t.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return C(t,e,n,r)},d:Ev,e:Ev,f:Sv,g:vv,G:yv,H:xv,I:xv,j:Cv,L:kv,m:wv,M:Bv,p:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=A.get(r[0].toLowerCase()),n+r[0].length):-1},q:_v,Q:Lv,s:Fv,S:Tv,u:dv,U:pv,V:gv,w:fv,W:mv,x:function(t,e,r){return C(t,n,e,r)},X:function(t,e,n){return C(t,r,e,n)},y:vv,Y:yv,Z:bv,"%":Iv};function w(t,e){return function(n){var r,i,a,o=[],s=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++s<l;)37===t.charCodeAt(s)&&(o.push(t.slice(c,s)),null!=(i=av[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(a=e[r])&&(r=a(n,i)),o.push(r),c=s+1);return o.push(t.slice(c,s)),o.join("")}}function E(t,e){return function(n){var r,i,a=Jy(1900,void 0,1);if(C(a,t,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(e&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=Xy(Jy(a.y,0,1))).getUTCDay(),r=i>4||0===i?By.ceil(r):By(r),r=wy.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=qy(Jy(a.y,0,1))).getDay(),r=i>4||0===i?qm.ceil(r):qm(r),r=Ym.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?Xy(Jy(a.y,0,1)).getUTCDay():qy(Jy(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Xy(a)):qy(a)}}function C(t,e,n,r){for(var i,a,o=0,s=e.length,c=n.length;o<s;){if(r>=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=_[i in av?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return v.x=w(n,v),v.X=w(r,v),v.c=w(e,v),b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),{format:function(t){var e=w(t+="",v);return e.toString=function(){return t},e},parse:function(t){var e=E(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=E(t+="",!0);return e.toString=function(){return t},e}}}var tv,ev,nv,rv,iv,av={"-":"",_:" ",0:"0"},ov=/^\s*\d+/,sv=/^%/,cv=/[\\^$*+?|[\]().{}]/g;function lv(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(e)+i:i)}function Av(t){return t.replace(cv,"\\$&")}function uv(t){return new RegExp("^(?:"+t.map(Av).join("|")+")","i")}function hv(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function fv(t,e,n){var r=ov.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function dv(t,e,n){var r=ov.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function pv(t,e,n){var r=ov.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function gv(t,e,n){var r=ov.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function mv(t,e,n){var r=ov.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function yv(t,e,n){var r=ov.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function vv(t,e,n){var r=ov.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function bv(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function _v(t,e,n){var r=ov.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function wv(t,e,n){var r=ov.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ev(t,e,n){var r=ov.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Cv(t,e,n){var r=ov.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function xv(t,e,n){var r=ov.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Bv(t,e,n){var r=ov.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Tv(t,e,n){var r=ov.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function kv(t,e,n){var r=ov.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Sv(t,e,n){var r=ov.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Iv(t,e,n){var r=sv.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Lv(t,e,n){var r=ov.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Fv(t,e,n){var r=ov.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Nv(t,e){return lv(t.getDate(),e,2)}function Ov(t,e){return lv(t.getHours(),e,2)}function Dv(t,e){return lv(t.getHours()%12||12,e,2)}function Mv(t,e){return lv(1+Ym.count(fy(t),t),e,3)}function Rv(t,e){return lv(t.getMilliseconds(),e,3)}function Uv(t,e){return Rv(t,e)+"000"}function Pv(t,e){return lv(t.getMonth()+1,e,2)}function Hv(t,e){return lv(t.getMinutes(),e,2)}function Qv(t,e){return lv(t.getSeconds(),e,2)}function Gv(t){var e=t.getDay();return 0===e?7:e}function jv(t,e){return lv(Vm.count(fy(t)-1,t),e,2)}function $v(t){var e=t.getDay();return e>=4||0===e?Zm(t):Zm.ceil(t)}function Kv(t,e){return t=$v(t),lv(Zm.count(fy(t),t)+(4===fy(t).getDay()),e,2)}function Yv(t){return t.getDay()}function zv(t,e){return lv(qm.count(fy(t)-1,t),e,2)}function Wv(t,e){return lv(t.getFullYear()%100,e,2)}function Vv(t,e){return lv((t=$v(t)).getFullYear()%100,e,2)}function qv(t,e){return lv(t.getFullYear()%1e4,e,4)}function Xv(t,e){var n=t.getDay();return lv((t=n>=4||0===n?Zm(t):Zm.ceil(t)).getFullYear()%1e4,e,4)}function Jv(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+lv(e/60|0,"0",2)+lv(e%60,"0",2)}function Zv(t,e){return lv(t.getUTCDate(),e,2)}function tb(t,e){return lv(t.getUTCHours(),e,2)}function eb(t,e){return lv(t.getUTCHours()%12||12,e,2)}function nb(t,e){return lv(1+wy.count(jy(t),t),e,3)}function rb(t,e){return lv(t.getUTCMilliseconds(),e,3)}function ib(t,e){return rb(t,e)+"000"}function ab(t,e){return lv(t.getUTCMonth()+1,e,2)}function ob(t,e){return lv(t.getUTCMinutes(),e,2)}function sb(t,e){return lv(t.getUTCSeconds(),e,2)}function cb(t){var e=t.getUTCDay();return 0===e?7:e}function lb(t,e){return lv(xy.count(jy(t)-1,t),e,2)}function Ab(t){var e=t.getUTCDay();return e>=4||0===e?Sy(t):Sy.ceil(t)}function ub(t,e){return t=Ab(t),lv(Sy.count(jy(t),t)+(4===jy(t).getUTCDay()),e,2)}function hb(t){return t.getUTCDay()}function fb(t,e){return lv(By.count(jy(t)-1,t),e,2)}function db(t,e){return lv(t.getUTCFullYear()%100,e,2)}function pb(t,e){return lv((t=Ab(t)).getUTCFullYear()%100,e,2)}function gb(t,e){return lv(t.getUTCFullYear()%1e4,e,4)}function mb(t,e){var n=t.getUTCDay();return lv((t=n>=4||0===n?Sy(t):Sy.ceil(t)).getUTCFullYear()%1e4,e,4)}function yb(){return"+0000"}function vb(){return"%"}function bb(t){return+t}function _b(t){return Math.floor(+t/1e3)}function wb(t){return tv=Zy(t),ev=tv.format,nv=tv.parse,rv=tv.utcFormat,iv=tv.utcParse,tv}function Eb(t){return new Date(t)}function Cb(t){return t instanceof Date?+t:+new Date(+t)}function xb(t,e,n,r,i,a,o,s,c,l){var A=Wg(),u=A.invert,h=A.domain,f=l(".%L"),d=l(":%S"),p=l("%I:%M"),g=l("%I %p"),m=l("%a %d"),y=l("%b %d"),v=l("%B"),b=l("%Y");function _(t){return(c(t)<t?f:s(t)<t?d:o(t)<t?p:a(t)<t?g:r(t)<t?i(t)<t?m:y:n(t)<t?v:b)(t)}return A.invert=function(t){return new Date(u(t))},A.domain=function(t){return arguments.length?h(Array.from(t,Cb)):h().map(Eb)},A.ticks=function(e){var n=h();return t(n[0],n[n.length-1],null==e?10:e)},A.tickFormat=function(t,e){return null==e?_:l(e)},A.nice=function(t){var n=h();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?h(Zg(n,t)):A},A.copy=function(){return Yg(A,xb(t,e,n,r,i,a,o,s,c,l))},A}function Bb(){return Ng.apply(xb(Wy,Vy,fy,Ay,Vm,Ym,jm,Hm,Rm,ev).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Tb(){return Ng.apply(xb(Yy,zy,jy,Hy,xy,wy,vy,gy,Rm,rv).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function kb(){var t,e,n,r,i,a=0,o=1,s=Gg,c=!1;function l(e){return null==e||isNaN(e=+e)?i:s(0===n?.5:(e=(r(e)-t)*n,c?Math.max(0,Math.min(1,e)):e))}function A(t){return function(e){var n,r;return arguments.length?([n,r]=e,s=t(n,r),l):[s(0),s(1)]}}return l.domain=function(i){return arguments.length?([a,o]=i,t=r(a=+a),e=r(o=+o),n=t===e?0:1/(e-t),l):[a,o]},l.clamp=function(t){return arguments.length?(c=!!t,l):c},l.interpolator=function(t){return arguments.length?(s=t,l):s},l.range=A(Fr),l.rangeRound=A($p),l.unknown=function(t){return arguments.length?(i=t,l):i},function(i){return r=i,t=i(a),e=i(o),n=t===e?0:1/(e-t),l}}function Sb(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Ib(){var t=qg(kb()(Gg));return t.copy=function(){return Sb(t,Ib())},Og.apply(t,arguments)}function Lb(){var t=om(kb()).domain([1,10]);return t.copy=function(){return Sb(t,Lb()).base(t.base())},Og.apply(t,arguments)}function Fb(){var t=Am(kb());return t.copy=function(){return Sb(t,Fb()).constant(t.constant())},Og.apply(t,arguments)}function Nb(){var t=pm(kb());return t.copy=function(){return Sb(t,Nb()).exponent(t.exponent())},Og.apply(t,arguments)}function Ob(){return Nb.apply(null,arguments).exponent(.5)}function Db(){var t=[],e=Gg;function n(n){if(null!=n&&!isNaN(n=+n))return e((A(t,n,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(r),n},n.interpolator=function(t){return arguments.length?(e=t,n):e},n.range=function(){return t.map((n,r)=>e(r/(t.length-1)))},n.quantiles=function(e){return Array.from({length:e+1},(n,r)=>ct(t,r/e))},n.copy=function(){return Db(e).domain(t)},Og.apply(n,arguments)}function Mb(){var t,e,n,r,i,a,o,s=0,c=.5,l=1,A=1,u=Gg,h=!1;function f(t){return isNaN(t=+t)?o:(t=.5+((t=+a(t))-e)*(A*t<A*e?r:i),u(h?Math.max(0,Math.min(1,t)):t))}function d(t){return function(e){var n,r,i;return arguments.length?([n,r,i]=e,u=rg(t,[n,r,i]),f):[u(0),u(.5),u(1)]}}return f.domain=function(o){return arguments.length?([s,c,l]=o,t=a(s=+s),e=a(c=+c),n=a(l=+l),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),A=e<t?-1:1,f):[s,c,l]},f.clamp=function(t){return arguments.length?(h=!!t,f):h},f.interpolator=function(t){return arguments.length?(u=t,f):u},f.range=d(Fr),f.rangeRound=d($p),f.unknown=function(t){return arguments.length?(o=t,f):o},function(o){return a=o,t=o(s),e=o(c),n=o(l),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),A=e<t?-1:1,f}}function Rb(){var t=qg(Mb()(Gg));return t.copy=function(){return Sb(t,Rb())},Og.apply(t,arguments)}function Ub(){var t=om(Mb()).domain([.1,1,10]);return t.copy=function(){return Sb(t,Ub()).base(t.base())},Og.apply(t,arguments)}function Pb(){var t=Am(Mb());return t.copy=function(){return Sb(t,Pb()).constant(t.constant())},Og.apply(t,arguments)}function Hb(){var t=pm(Mb());return t.copy=function(){return Sb(t,Hb()).exponent(t.exponent())},Og.apply(t,arguments)}function Qb(){return Hb.apply(null,arguments).exponent(.5)}function Gb(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(6*r,6*++r);return n}wb({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const jb=Gb("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),$b=Gb("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Kb=Gb("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Yb=Gb("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),zb=Gb("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Wb=Gb("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Vb=Gb("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),qb=Gb("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Xb=Gb("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Jb=Gb("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Zb=t=>br(t[t.length-1]);var t_=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Gb);const e_=Zb(t_);var n_=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Gb);const r_=Zb(n_);var i_=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Gb);const a_=Zb(i_);var o_=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Gb);const s_=Zb(o_);var c_=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Gb);const l_=Zb(c_);var A_=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Gb);const u_=Zb(A_);var h_=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Gb);const f_=Zb(h_);var d_=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Gb);const p_=Zb(d_);var g_=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Gb);const m_=Zb(g_);var y_=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Gb);const v_=Zb(y_);var b_=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Gb);const __=Zb(b_);var w_=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Gb);const E_=Zb(w_);var C_=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Gb);const x_=Zb(C_);var B_=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Gb);const T_=Zb(B_);var k_=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Gb);const S_=Zb(k_);var I_=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Gb);const L_=Zb(I_);var F_=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Gb);const N_=Zb(F_);var O_=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Gb);const D_=Zb(O_);var M_=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Gb);const R_=Zb(M_);var U_=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Gb);const P_=Zb(U_);var H_=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Gb);const Q_=Zb(H_);var G_=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Gb);const j_=Zb(G_);var $_=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Gb);const K_=Zb($_);var Y_=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Gb);const z_=Zb(Y_);var W_=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Gb);const V_=Zb(W_);var q_=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Gb);const X_=Zb(q_);var J_=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Gb);const Z_=Zb(J_);function tw(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"}const ew=ng(Oo(300,.5,0),Oo(-240,.5,1));var nw=ng(Oo(-100,.75,.35),Oo(80,1.5,.8)),rw=ng(Oo(260,.75,.35),Oo(80,1.5,.8)),iw=Oo();function aw(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return iw.h=360*t-100,iw.s=1.5-1.5*e,iw.l=.8-.9*e,iw+""}var ow=er(),sw=Math.PI/3,cw=2*Math.PI/3;function lw(t){var e;return t=(.5-t)*Math.PI,ow.r=255*(e=Math.sin(t))*e,ow.g=255*(e=Math.sin(t+sw))*e,ow.b=255*(e=Math.sin(t+cw))*e,ow+""}function Aw(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"}function uw(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}const hw=uw(Gb("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var fw=uw(Gb("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),dw=uw(Gb("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),pw=uw(Gb("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function gw(t){return Tn(hn(t).call(document.documentElement))}var mw=0;function yw(){return new vw}function vw(){this._="@"+(++mw).toString(36)}function bw(t,e){return t.target&&(t=Nr(t),void 0===e&&(e=t.currentTarget),t=t.touches||[t]),Array.from(t,t=>Or(t,e))}function _w(t){return"string"==typeof t?new Cn([document.querySelectorAll(t)],[document.documentElement]):new Cn([fe(t)],En)}function ww(t){return function(){return t}}vw.prototype=yw.prototype={constructor:vw,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var Ew=Math.abs,Cw=Math.atan2,xw=Math.cos,Bw=Math.max,Tw=Math.min,kw=Math.sin,Sw=Math.sqrt,Iw=1e-12,Lw=Math.PI,Fw=Lw/2,Nw=2*Lw;function Ow(t){return t>1?0:t<-1?Lw:Math.acos(t)}function Dw(t){return t>=1?Fw:t<=-1?-Fw:Math.asin(t)}function Mw(t){return t.innerRadius}function Rw(t){return t.outerRadius}function Uw(t){return t.startAngle}function Pw(t){return t.endAngle}function Hw(t){return t&&t.padAngle}function Qw(t,e,n,r,i,a,o,s){var c=n-t,l=r-e,A=o-i,u=s-a,h=u*c-A*l;if(!(h*h<Iw))return[t+(h=(A*(e-a)-u*(t-i))/h)*c,e+h*l]}function Gw(t,e,n,r,i,a,o){var s=t-n,c=e-r,l=(o?a:-a)/Sw(s*s+c*c),A=l*c,u=-l*s,h=t+A,f=e+u,d=n+A,p=r+u,g=(h+d)/2,m=(f+p)/2,y=d-h,v=p-f,b=y*y+v*v,_=i-a,w=h*p-d*f,E=(v<0?-1:1)*Sw(Bw(0,_*_*b-w*w)),C=(w*v-y*E)/b,x=(-w*y-v*E)/b,B=(w*v+y*E)/b,T=(-w*y+v*E)/b,k=C-g,S=x-m,I=B-g,L=T-m;return k*k+S*S>I*I+L*L&&(C=B,x=T),{cx:C,cy:x,x01:-A,y01:-u,x11:C*(i/_-1),y11:x*(i/_-1)}}function jw(){var t=Mw,e=Rw,n=ww(0),r=null,i=Uw,a=Pw,o=Hw,s=null;function c(){var c,l,A=+t.apply(this,arguments),u=+e.apply(this,arguments),h=i.apply(this,arguments)-Fw,f=a.apply(this,arguments)-Fw,d=Ew(f-h),p=f>h;if(s||(s=c=qa()),u<A&&(l=u,u=A,A=l),u>Iw)if(d>Nw-Iw)s.moveTo(u*xw(h),u*kw(h)),s.arc(0,0,u,h,f,!p),A>Iw&&(s.moveTo(A*xw(f),A*kw(f)),s.arc(0,0,A,f,h,p));else{var g,m,y=h,v=f,b=h,_=f,w=d,E=d,C=o.apply(this,arguments)/2,x=C>Iw&&(r?+r.apply(this,arguments):Sw(A*A+u*u)),B=Tw(Ew(u-A)/2,+n.apply(this,arguments)),T=B,k=B;if(x>Iw){var S=Dw(x/A*kw(C)),I=Dw(x/u*kw(C));(w-=2*S)>Iw?(b+=S*=p?1:-1,_-=S):(w=0,b=_=(h+f)/2),(E-=2*I)>Iw?(y+=I*=p?1:-1,v-=I):(E=0,y=v=(h+f)/2)}var L=u*xw(y),F=u*kw(y),N=A*xw(_),O=A*kw(_);if(B>Iw){var D,M=u*xw(v),R=u*kw(v),U=A*xw(b),P=A*kw(b);if(d<Lw&&(D=Qw(L,F,U,P,M,R,N,O))){var H=L-D[0],Q=F-D[1],G=M-D[0],j=R-D[1],$=1/kw(Ow((H*G+Q*j)/(Sw(H*H+Q*Q)*Sw(G*G+j*j)))/2),K=Sw(D[0]*D[0]+D[1]*D[1]);T=Tw(B,(A-K)/($-1)),k=Tw(B,(u-K)/($+1))}}E>Iw?k>Iw?(g=Gw(U,P,L,F,u,k,p),m=Gw(M,R,N,O,u,k,p),s.moveTo(g.cx+g.x01,g.cy+g.y01),k<B?s.arc(g.cx,g.cy,k,Cw(g.y01,g.x01),Cw(m.y01,m.x01),!p):(s.arc(g.cx,g.cy,k,Cw(g.y01,g.x01),Cw(g.y11,g.x11),!p),s.arc(0,0,u,Cw(g.cy+g.y11,g.cx+g.x11),Cw(m.cy+m.y11,m.cx+m.x11),!p),s.arc(m.cx,m.cy,k,Cw(m.y11,m.x11),Cw(m.y01,m.x01),!p))):(s.moveTo(L,F),s.arc(0,0,u,y,v,!p)):s.moveTo(L,F),A>Iw&&w>Iw?T>Iw?(g=Gw(N,O,M,R,A,-T,p),m=Gw(L,F,U,P,A,-T,p),s.lineTo(g.cx+g.x01,g.cy+g.y01),T<B?s.arc(g.cx,g.cy,T,Cw(g.y01,g.x01),Cw(m.y01,m.x01),!p):(s.arc(g.cx,g.cy,T,Cw(g.y01,g.x01),Cw(g.y11,g.x11),!p),s.arc(0,0,A,Cw(g.cy+g.y11,g.cx+g.x11),Cw(m.cy+m.y11,m.cx+m.x11),p),s.arc(m.cx,m.cy,T,Cw(m.y11,m.x11),Cw(m.y01,m.x01),!p))):s.arc(0,0,A,_,b,p):s.lineTo(N,O)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Lw/2;return[xw(r)*n,kw(r)*n]},c.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:ww(+e),c):t},c.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:ww(+t),c):e},c.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:ww(+t),c):n},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:ww(+t),c):r},c.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:ww(+t),c):i},c.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:ww(+t),c):a},c.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:ww(+t),c):o},c.context=function(t){return arguments.length?(s=null==t?null:t,c):s},c}var $w=Array.prototype.slice;function Kw(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Yw(t){this._context=t}function zw(t){return new Yw(t)}function Ww(t){return t[0]}function Vw(t){return t[1]}function qw(t,e){var n=ww(!0),r=null,i=zw,a=null;function o(o){var s,c,l,A=(o=Kw(o)).length,u=!1;for(null==r&&(a=i(l=qa())),s=0;s<=A;++s)!(s<A&&n(c=o[s],s,o))===u&&((u=!u)?a.lineStart():a.lineEnd()),u&&a.point(+t(c,s,o),+e(c,s,o));if(l)return a=null,l+""||null}return t="function"==typeof t?t:void 0===t?Ww:ww(t),e="function"==typeof e?e:void 0===e?Vw:ww(e),o.x=function(e){return arguments.length?(t="function"==typeof e?e:ww(+e),o):t},o.y=function(t){return arguments.length?(e="function"==typeof t?t:ww(+t),o):e},o.defined=function(t){return arguments.length?(n="function"==typeof t?t:ww(!!t),o):n},o.curve=function(t){return arguments.length?(i=t,null!=r&&(a=i(r)),o):i},o.context=function(t){return arguments.length?(null==t?r=a=null:a=i(r=t),o):r},o}function Xw(t,e,n){var r=null,i=ww(!0),a=null,o=zw,s=null;function c(c){var l,A,u,h,f,d=(c=Kw(c)).length,p=!1,g=new Array(d),m=new Array(d);for(null==a&&(s=o(f=qa())),l=0;l<=d;++l){if(!(l<d&&i(h=c[l],l,c))===p)if(p=!p)A=l,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),u=l-1;u>=A;--u)s.point(g[u],m[u]);s.lineEnd(),s.areaEnd()}p&&(g[l]=+t(h,l,c),m[l]=+e(h,l,c),s.point(r?+r(h,l,c):g[l],n?+n(h,l,c):m[l]))}if(f)return s=null,f+""||null}function l(){return qw().defined(i).curve(o).context(a)}return t="function"==typeof t?t:void 0===t?Ww:ww(+t),e="function"==typeof e?e:ww(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?Vw:ww(+n),c.x=function(e){return arguments.length?(t="function"==typeof e?e:ww(+e),r=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:ww(+e),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:ww(+t),c):r},c.y=function(t){return arguments.length?(e="function"==typeof t?t:ww(+t),n=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:ww(+t),c):e},c.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:ww(+t),c):n},c.lineX0=c.lineY0=function(){return l().x(t).y(e)},c.lineY1=function(){return l().x(t).y(n)},c.lineX1=function(){return l().x(r).y(e)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:ww(!!t),c):i},c.curve=function(t){return arguments.length?(o=t,null!=a&&(s=o(a)),c):o},c.context=function(t){return arguments.length?(null==t?a=s=null:s=o(a=t),c):a},c}function Jw(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Zw(t){return t}function tE(){var t=Zw,e=Jw,n=null,r=ww(0),i=ww(Nw),a=ww(0);function o(o){var s,c,l,A,u,h=(o=Kw(o)).length,f=0,d=new Array(h),p=new Array(h),g=+r.apply(this,arguments),m=Math.min(Nw,Math.max(-Nw,i.apply(this,arguments)-g)),y=Math.min(Math.abs(m)/h,a.apply(this,arguments)),v=y*(m<0?-1:1);for(s=0;s<h;++s)(u=p[d[s]=s]=+t(o[s],s,o))>0&&(f+=u);for(null!=e?d.sort((function(t,n){return e(p[t],p[n])})):null!=n&&d.sort((function(t,e){return n(o[t],o[e])})),s=0,l=f?(m-h*v)/f:0;s<h;++s,g=A)c=d[s],A=g+((u=p[c])>0?u*l:0)+v,p[c]={data:o[c],index:s,value:u,startAngle:g,endAngle:A,padAngle:y};return p}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:ww(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,n=null,o):e},o.sort=function(t){return arguments.length?(n=t,e=null,o):n},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:ww(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:ww(+t),o):i},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:ww(+t),o):a},o}Yw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var eE=rE(zw);function nE(t){this._curve=t}function rE(t){function e(e){return new nE(t(e))}return e._curve=t,e}function iE(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(rE(t)):e()._curve},t}function aE(){return iE(qw().curve(eE))}function oE(){var t=Xw().curve(eE),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return iE(n())},delete t.lineX0,t.lineEndAngle=function(){return iE(r())},delete t.lineX1,t.lineInnerRadius=function(){return iE(i())},delete t.lineY0,t.lineOuterRadius=function(){return iE(a())},delete t.lineY1,t.curve=function(t){return arguments.length?e(rE(t)):e()._curve},t}function sE(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}function cE(t){return t.source}function lE(t){return t.target}function AE(t){var e=cE,n=lE,r=Ww,i=Vw,a=null;function o(){var o,s=$w.call(arguments),c=e.apply(this,s),l=n.apply(this,s);if(a||(a=o=qa()),t(a,+r.apply(this,(s[0]=c,s)),+i.apply(this,s),+r.apply(this,(s[0]=l,s)),+i.apply(this,s)),o)return a=null,o+""||null}return o.source=function(t){return arguments.length?(e=t,o):e},o.target=function(t){return arguments.length?(n=t,o):n},o.x=function(t){return arguments.length?(r="function"==typeof t?t:ww(+t),o):r},o.y=function(t){return arguments.length?(i="function"==typeof t?t:ww(+t),o):i},o.context=function(t){return arguments.length?(a=null==t?null:t,o):a},o}function uE(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function hE(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function fE(t,e,n,r,i){var a=sE(e,n),o=sE(e,n=(n+i)/2),s=sE(r,n),c=sE(r,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(o[0],o[1],s[0],s[1],c[0],c[1])}function dE(){return AE(uE)}function pE(){return AE(hE)}function gE(){var t=AE(fE);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}nE.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};const mE={draw:function(t,e){var n=Math.sqrt(e/Lw);t.moveTo(n,0),t.arc(0,0,n,0,Nw)}},yE={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}};var vE=Math.sqrt(1/3),bE=2*vE;const _E={draw:function(t,e){var n=Math.sqrt(e/bE),r=n*vE;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}};var wE=Math.sin(Lw/10)/Math.sin(7*Lw/10),EE=Math.sin(Nw/10)*wE,CE=-Math.cos(Nw/10)*wE;const xE={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=EE*n,i=CE*n;t.moveTo(0,-n),t.lineTo(r,i);for(var a=1;a<5;++a){var o=Nw*a/5,s=Math.cos(o),c=Math.sin(o);t.lineTo(c*n,-s*n),t.lineTo(s*r-c*i,c*r+s*i)}t.closePath()}},BE={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}};var TE=Math.sqrt(3);const kE={draw:function(t,e){var n=-Math.sqrt(e/(3*TE));t.moveTo(0,2*n),t.lineTo(-TE*n,-n),t.lineTo(TE*n,-n),t.closePath()}};var SE=-.5,IE=Math.sqrt(3)/2,LE=1/Math.sqrt(12),FE=3*(LE/2+1);const NE={draw:function(t,e){var n=Math.sqrt(e/FE),r=n/2,i=n*LE,a=r,o=n*LE+n,s=-a,c=o;t.moveTo(r,i),t.lineTo(a,o),t.lineTo(s,c),t.lineTo(SE*r-IE*i,IE*r+SE*i),t.lineTo(SE*a-IE*o,IE*a+SE*o),t.lineTo(SE*s-IE*c,IE*s+SE*c),t.lineTo(SE*r+IE*i,SE*i-IE*r),t.lineTo(SE*a+IE*o,SE*o-IE*a),t.lineTo(SE*s+IE*c,SE*c-IE*s),t.closePath()}};var OE=[mE,yE,_E,BE,xE,kE,NE];function DE(t,e){var n=null;function r(){var r;if(n||(n=r=qa()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return t="function"==typeof t?t:ww(t||mE),e="function"==typeof e?e:ww(void 0===e?64:+e),r.type=function(e){return arguments.length?(t="function"==typeof e?e:ww(e),r):t},r.size=function(t){return arguments.length?(e="function"==typeof t?t:ww(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r}function ME(){}function RE(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function UE(t){this._context=t}function PE(t){return new UE(t)}function HE(t){this._context=t}function QE(t){return new HE(t)}function GE(t){this._context=t}function jE(t){return new GE(t)}UE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:RE(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:RE(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},HE.prototype={areaStart:ME,areaEnd:ME,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:RE(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},GE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:RE(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class $E{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function KE(t){return new $E(t,!0)}function YE(t){return new $E(t,!1)}function zE(t,e){this._basis=new UE(t),this._beta=e}zE.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],a=e[0],o=t[n]-i,s=e[n]-a,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*o),this._beta*e[c]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const WE=function t(e){function n(t){return 1===e?new UE(t):new zE(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function VE(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function qE(t,e){this._context=t,this._k=(1-e)/6}qE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:VE(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:VE(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const XE=function t(e){function n(t){return new qE(t,e)}return n.tension=function(e){return t(+e)},n}(0);function JE(t,e){this._context=t,this._k=(1-e)/6}JE.prototype={areaStart:ME,areaEnd:ME,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:VE(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ZE=function t(e){function n(t){return new JE(t,e)}return n.tension=function(e){return t(+e)},n}(0);function tC(t,e){this._context=t,this._k=(1-e)/6}tC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:VE(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const eC=function t(e){function n(t){return new tC(t,e)}return n.tension=function(e){return t(+e)},n}(0);function nC(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>Iw){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>Iw){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,A=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/A,o=(o*l+t._y1*t._l23_2a-n*t._l12_2a)/A}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function rC(t,e){this._context=t,this._alpha=e}rC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:nC(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const iC=function t(e){function n(t){return e?new rC(t,e):new qE(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function aC(t,e){this._context=t,this._alpha=e}aC.prototype={areaStart:ME,areaEnd:ME,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:nC(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const oC=function t(e){function n(t){return e?new aC(t,e):new JE(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function sC(t,e){this._context=t,this._alpha=e}sC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:nC(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const cC=function t(e){function n(t){return e?new sC(t,e):new tC(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function lC(t){this._context=t}function AC(t){return new lC(t)}function uC(t){return t<0?-1:1}function hC(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(uC(a)+uC(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function fC(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function dC(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function pC(t){this._context=t}function gC(t){this._context=new mC(t)}function mC(t){this._context=t}function yC(t){return new pC(t)}function vC(t){return new gC(t)}function bC(t){this._context=t}function _C(t){var e,n,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/a[e-1],a[e]-=n,o[e]-=n*o[e-1];for(i[r-1]=o[r-1]/a[r-1],e=r-2;e>=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function wC(t){return new bC(t)}function EC(t,e){this._context=t,this._t=e}function CC(t){return new EC(t,.5)}function xC(t){return new EC(t,0)}function BC(t){return new EC(t,1)}function TC(t,e){if((i=t.length)>1)for(var n,r,i,a=1,o=t[e[0]],s=o.length;a<i;++a)for(r=o,o=t[e[a]],n=0;n<s;++n)o[n][1]+=o[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function kC(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function SC(t,e){return t[e]}function IC(t){const e=[];return e.key=t,e}function LC(){var t=ww([]),e=kC,n=TC,r=SC;function i(i){var a,o,s=Array.from(t.apply(this,arguments),IC),c=s.length,l=-1;for(const t of i)for(a=0,++l;a<c;++a)(s[a][l]=[0,+r(t,s[a].key,l,i)]).data=t;for(a=0,o=Kw(e(s));a<c;++a)s[o[a]].index=a;return n(s,o),s}return i.keys=function(e){return arguments.length?(t="function"==typeof e?e:ww(Array.from(e)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:ww(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?kC:"function"==typeof t?t:ww(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?TC:t,i):n},i}function FC(t,e){if((r=t.length)>0){for(var n,r,i,a=0,o=t[0].length;a<o;++a){for(i=n=0;n<r;++n)i+=t[n][a][1]||0;if(i)for(n=0;n<r;++n)t[n][a][1]/=i}TC(t,e)}}function NC(t,e){if((s=t.length)>0)for(var n,r,i,a,o,s,c=0,l=t[e[0]].length;c<l;++c)for(a=o=0,n=0;n<s;++n)(i=(r=t[e[n]][c])[1]-r[0])>0?(r[0]=a,r[1]=a+=i):i<0?(r[1]=o,r[0]=o+=i):(r[0]=0,r[1]=i)}function OC(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],a=i.length;r<a;++r){for(var o=0,s=0;o<n;++o)s+=t[o][r][1]||0;i[r][1]+=i[r][0]=-s/2}TC(t,e)}}function DC(t,e){if((i=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,a=0,o=1;o<r;++o){for(var s=0,c=0,l=0;s<i;++s){for(var A=t[e[s]],u=A[o][1]||0,h=(u-(A[o-1][1]||0))/2,f=0;f<s;++f){var d=t[e[f]];h+=(d[o][1]||0)-(d[o-1][1]||0)}c+=u,l+=h*u}n[o-1][1]+=n[o-1][0]=a,c&&(a-=l/c)}n[o-1][1]+=n[o-1][0]=a,TC(t,e)}}function MC(t){var e=t.map(RC);return kC(t).sort((function(t,n){return e[t]-e[n]}))}function RC(t){for(var e,n=-1,r=0,i=t.length,a=-1/0;++n<i;)(e=+t[n][1])>a&&(a=e,r=n);return r}function UC(t){var e=t.map(PC);return kC(t).sort((function(t,n){return e[t]-e[n]}))}function PC(t){for(var e,n=0,r=-1,i=t.length;++r<i;)(e=+t[r][1])&&(n+=e);return n}function HC(t){return UC(t).reverse()}function QC(t){var e,n,r=t.length,i=t.map(PC),a=MC(t),o=0,s=0,c=[],l=[];for(e=0;e<r;++e)n=a[e],o<s?(o+=i[n],c.push(n)):(s+=i[n],l.push(n));return l.reverse().concat(c)}function GC(t){return kC(t).reverse()}lC.prototype={areaStart:ME,areaEnd:ME,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},pC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:dC(this,this._t0,fC(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,dC(this,fC(this,n=hC(this,t,e)),n);break;default:dC(this,this._t0,n=hC(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(gC.prototype=Object.create(pC.prototype)).point=function(t,e){pC.prototype.point.call(this,e,t)},mC.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}},bC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=_C(t),i=_C(e),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},EC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var jC="%Y-%m-%dT%H:%M:%S.%LZ";const $C=Date.prototype.toISOString?function(t){return t.toISOString()}:rv(jC);const KC=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:iv(jC);function YC(t,e,n){var r=new zr,i=e;return null==e?(r.restart(t,e,n),r):(r._restart=r.restart,r.restart=function(t,e,n){e=+e,n=null==n?Kr():+n,r._restart((function a(o){o+=i,r._restart(a,i+=e,n),t(o)}),e,n)},r.restart(t,e,n),r)}const zC=t=>()=>t;function WC(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function VC(t,e,n){this.k=t,this.x=e,this.y=n}VC.prototype={constructor:VC,scale:function(t){return 1===t?this:new VC(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new VC(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var qC=new VC(1,0,0);function XC(t){for(;!t.__zoom;)if(!(t=t.parentNode))return qC;return t.__zoom}function JC(t){t.stopImmediatePropagation()}function ZC(t){t.preventDefault(),t.stopImmediatePropagation()}function tx(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function ex(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function nx(){return this.__zoom||qC}function rx(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function ix(){return navigator.maxTouchPoints||"ontouchstart"in this}function ax(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],a=t.invertY(e[0][1])-n[0][1],o=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function ox(){var t,e,n,r=tx,i=ex,a=ax,o=rx,s=ix,c=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],A=250,u=Yp,h=Ae("start","zoom","end"),f=500,d=0,p=10;function g(t){t.property("__zoom",nx).on("wheel.zoom",E,{passive:!1}).on("mousedown.zoom",C).on("dblclick.zoom",x).filter(s).on("touchstart.zoom",B).on("touchmove.zoom",T).on("touchend.zoom touchcancel.zoom",k).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(t,e){return(e=Math.max(c[0],Math.min(c[1],e)))===t.k?t:new VC(e,t.x,t.y)}function y(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new VC(t.k,r,i)}function v(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function b(t,e,n,r){t.on("start.zoom",(function(){_(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){_(this,arguments).event(r).end()})).tween("zoom",(function(){var t=this,a=arguments,o=_(t,a).event(r),s=i.apply(t,a),c=null==n?v(s):"function"==typeof n?n.apply(t,a):n,l=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),A=t.__zoom,h="function"==typeof e?e.apply(t,a):e,f=u(A.invert(c).concat(l/A.k),h.invert(c).concat(l/h.k));return function(t){if(1===t)t=h;else{var e=f(t),n=l/e[2];t=new VC(n,c[0]-e[0]*n,c[1]-e[1]*n)}o.zoom(null,t)}}))}function _(t,e,n){return!n&&t.__zooming||new w(t,e)}function w(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,e),this.taps=0}function E(t,...e){if(r.apply(this,arguments)){var n=_(this,e).event(t),i=this.__zoom,s=Math.max(c[0],Math.min(c[1],i.k*Math.pow(2,o.apply(this,arguments)))),A=Or(t);if(n.wheel)n.mouse[0][0]===A[0]&&n.mouse[0][1]===A[1]||(n.mouse[1]=i.invert(n.mouse[0]=A)),clearTimeout(n.wheel);else{if(i.k===s)return;n.mouse=[A,i.invert(A)],oi(this),n.start()}ZC(t),n.wheel=setTimeout(u,150),n.zoom("mouse",a(y(m(i,s),n.mouse[0],n.mouse[1]),n.extent,l))}function u(){n.wheel=null,n.end()}}function C(t,...e){if(!n&&r.apply(this,arguments)){var i=t.currentTarget,o=_(this,e,!0).event(t),s=Tn(t.view).on("mousemove.zoom",h,!0).on("mouseup.zoom",f,!0),c=Or(t,i),A=t.clientX,u=t.clientY;Fn(t.view),JC(t),o.mouse=[c,this.__zoom.invert(c)],oi(this),o.start()}function h(t){if(ZC(t),!o.moved){var e=t.clientX-A,n=t.clientY-u;o.moved=e*e+n*n>d}o.event(t).zoom("mouse",a(y(o.that.__zoom,o.mouse[0]=Or(t,i),o.mouse[1]),o.extent,l))}function f(t){s.on("mousemove.zoom mouseup.zoom",null),Nn(t.view,o.moved),ZC(t),o.event(t).end()}}function x(t,...e){if(r.apply(this,arguments)){var n=this.__zoom,o=Or(t.changedTouches?t.changedTouches[0]:t,this),s=n.invert(o),c=n.k*(t.shiftKey?.5:2),u=a(y(m(n,c),o,s),i.apply(this,e),l);ZC(t),A>0?Tn(this).transition().duration(A).call(b,u,o,t):Tn(this).call(g.transform,u,o,t)}}function B(n,...i){if(r.apply(this,arguments)){var a,o,s,c,l=n.touches,A=l.length,u=_(this,i,n.changedTouches.length===A).event(n);for(JC(n),o=0;o<A;++o)c=[c=Or(s=l[o],this),this.__zoom.invert(c),s.identifier],u.touch0?u.touch1||u.touch0[2]===c[2]||(u.touch1=c,u.taps=0):(u.touch0=c,a=!0,u.taps=1+!!t);t&&(t=clearTimeout(t)),a&&(u.taps<2&&(e=c[0],t=setTimeout((function(){t=null}),f)),oi(this),u.start())}}function T(t,...e){if(this.__zooming){var n,r,i,o,s=_(this,e).event(t),c=t.changedTouches,A=c.length;for(ZC(t),n=0;n<A;++n)i=Or(r=c[n],this),s.touch0&&s.touch0[2]===r.identifier?s.touch0[0]=i:s.touch1&&s.touch1[2]===r.identifier&&(s.touch1[0]=i);if(r=s.that.__zoom,s.touch1){var u=s.touch0[0],h=s.touch0[1],f=s.touch1[0],d=s.touch1[1],p=(p=f[0]-u[0])*p+(p=f[1]-u[1])*p,g=(g=d[0]-h[0])*g+(g=d[1]-h[1])*g;r=m(r,Math.sqrt(p/g)),i=[(u[0]+f[0])/2,(u[1]+f[1])/2],o=[(h[0]+d[0])/2,(h[1]+d[1])/2]}else{if(!s.touch0)return;i=s.touch0[0],o=s.touch0[1]}s.zoom("touch",a(y(r,i,o),s.extent,l))}}function k(t,...r){if(this.__zooming){var i,a,o=_(this,r).event(t),s=t.changedTouches,c=s.length;for(JC(t),n&&clearTimeout(n),n=setTimeout((function(){n=null}),f),i=0;i<c;++i)a=s[i],o.touch0&&o.touch0[2]===a.identifier?delete o.touch0:o.touch1&&o.touch1[2]===a.identifier&&delete o.touch1;if(o.touch1&&!o.touch0&&(o.touch0=o.touch1,delete o.touch1),o.touch0)o.touch0[1]=this.__zoom.invert(o.touch0[0]);else if(o.end(),2===o.taps&&(a=Or(a,this),Math.hypot(e[0]-a[0],e[1]-a[1])<p)){var l=Tn(this).on("dblclick.zoom");l&&l.apply(this,arguments)}}}return g.transform=function(t,e,n,r){var i=t.selection?t.selection():t;i.property("__zoom",nx),t!==i?b(t,e,n,r):i.interrupt().each((function(){_(this,arguments).event(r).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()}))},g.scaleBy=function(t,e,n,r){g.scaleTo(t,(function(){var t=this.__zoom.k,n="function"==typeof e?e.apply(this,arguments):e;return t*n}),n,r)},g.scaleTo=function(t,e,n,r){g.transform(t,(function(){var t=i.apply(this,arguments),r=this.__zoom,o=null==n?v(t):"function"==typeof n?n.apply(this,arguments):n,s=r.invert(o),c="function"==typeof e?e.apply(this,arguments):e;return a(y(m(r,c),o,s),t,l)}),n,r)},g.translateBy=function(t,e,n,r){g.transform(t,(function(){return a(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),i.apply(this,arguments),l)}),null,r)},g.translateTo=function(t,e,n,r,o){g.transform(t,(function(){var t=i.apply(this,arguments),o=this.__zoom,s=null==r?v(t):"function"==typeof r?r.apply(this,arguments):r;return a(qC.translate(s[0],s[1]).scale(o.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,l)}),r,o)},w.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=Tn(this.that).datum();h.call(t,this.that,new WC(t,{sourceEvent:this.sourceEvent,target:g,type:t,transform:this.that.__zoom,dispatch:h}),e)}},g.wheelDelta=function(t){return arguments.length?(o="function"==typeof t?t:zC(+t),g):o},g.filter=function(t){return arguments.length?(r="function"==typeof t?t:zC(!!t),g):r},g.touchable=function(t){return arguments.length?(s="function"==typeof t?t:zC(!!t),g):s},g.extent=function(t){return arguments.length?(i="function"==typeof t?t:zC([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),g):i},g.scaleExtent=function(t){return arguments.length?(c[0]=+t[0],c[1]=+t[1],g):[c[0],c[1]]},g.translateExtent=function(t){return arguments.length?(l[0][0]=+t[0][0],l[1][0]=+t[1][0],l[0][1]=+t[0][1],l[1][1]=+t[1][1],g):[[l[0][0],l[0][1]],[l[1][0],l[1][1]]]},g.constrain=function(t){return arguments.length?(a=t,g):a},g.duration=function(t){return arguments.length?(A=+t,g):A},g.interpolate=function(t){return arguments.length?(u=t,g):u},g.on=function(){var t=h.on.apply(h,arguments);return t===h?g:t},g.clickDistance=function(t){return arguments.length?(d=(t=+t)*t,g):Math.sqrt(d)},g.tapDistance=function(t){return arguments.length?(p=+t,g):p},g}XC.prototype=VC.prototype}},tM={};function eM(t){var e=tM[t];if(void 0!==e)return e.exports;var n=tM[t]={id:t,loaded:!1,exports:{}};return ZD[t].call(n.exports,n,n.exports,eM),n.loaded=!0,n.exports}eM.c=tM,eM.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return eM.d(e,{a:e}),e},eM.d=(t,e)=>{for(var n in e)eM.o(e,n)&&!eM.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},eM.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),eM.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),eM.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},eM.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var nM=eM(eM.s=6187).Z,rM=null==nM?void 0:nM.mermaidAPI;QD.usePlugin(KD,{mermaidAPI:rM,theme:"default",sequence:{useMaxWidth:!1}}),QD.usePlugin(JD,{}),t.MenuHookBase=t_,t.SyntaxHookBase=fu,t.default=QD,Object.defineProperty(t,"__esModule",{value:!0})}));