2 lines
105 KiB
JavaScript
2 lines
105 KiB
JavaScript
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=function(t){return t&&t.Math==Math&&t},n=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||function(){return this}()||Function("return this")(),r={},u=function(t){try{return!!t()}catch(t){return!0}},i=!u((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a=!u((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),o=a,s=Function.prototype.call,l=o?s.bind(s):function(){return s.apply(s,arguments)},c={},p={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,f=d&&!p.call({1:2},1);c.f=f?function(t){var e=d(this,t);return!!e&&e.enumerable}:p;var h,g,D=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},m=a,v=Function.prototype,y=v.bind,k=v.call,b=m&&y.bind(k,k),E=m?function(t){return t&&b(t)}:function(t){return t&&function(){return k.apply(t,arguments)}},A=E,x=A({}.toString),F=A("".slice),C=function(t){return F(x(t),8,-1)},w=E,S=u,B=C,T=n.Object,_=w("".split),z=S((function(){return!T("z").propertyIsEnumerable(0)}))?function(t){return"String"==B(t)?_(t,""):T(t)}:T,I=n.TypeError,O=function(t){if(null==t)throw I("Can't call method on "+t);return t},R=z,L=O,$=function(t){return R(L(t))},P=function(t){return"function"==typeof t},j=P,M=function(t){return"object"==typeof t?null!==t:j(t)},N=n,q=P,U=function(t){return q(t)?t:void 0},Z=function(t,e){return arguments.length<2?U(N[t]):N[t]&&N[t][e]},H=E({}.isPrototypeOf),K=n,V=Z("navigator","userAgent")||"",J=K.process,G=K.Deno,Y=J&&J.versions||G&&G.version,W=Y&&Y.v8;W&&(g=(h=W.split("."))[0]>0&&h[0]<4?1:+(h[0]+h[1])),!g&&V&&(!(h=V.match(/Edge\/(\d+)/))||h[1]>=74)&&(h=V.match(/Chrome\/(\d+)/))&&(g=+h[1]);var X=g,Q=X,tt=u,et=!!Object.getOwnPropertySymbols&&!tt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Q&&Q<41})),nt=et&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,rt=Z,ut=P,it=H,at=nt,ot=n.Object,st=at?function(t){return"symbol"==typeof t}:function(t){var e=rt("Symbol");return ut(e)&&it(e.prototype,ot(t))},lt=n.String,ct=function(t){try{return lt(t)}catch(t){return"Object"}},pt=P,dt=ct,ft=n.TypeError,ht=function(t){if(pt(t))return t;throw ft(dt(t)+" is not a function")},gt=ht,Dt=function(t,e){var n=t[e];return null==n?void 0:gt(n)},mt=l,vt=P,yt=M,kt=n.TypeError,bt={exports:{}},Et=n,At=Object.defineProperty,xt=function(t,e){try{At(Et,t,{value:e,configurable:!0,writable:!0})}catch(n){Et[t]=e}return e},Ft=xt,Ct=n["__core-js_shared__"]||Ft("__core-js_shared__",{}),wt=Ct;(bt.exports=function(t,e){return wt[t]||(wt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.20.3",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.20.3/LICENSE",source:"https://github.com/zloirock/core-js"});var St=O,Bt=n.Object,Tt=function(t){return Bt(St(t))},_t=Tt,zt=E({}.hasOwnProperty),It=Object.hasOwn||function(t,e){return zt(_t(t),e)},Ot=E,Rt=0,Lt=Math.random(),$t=Ot(1..toString),Pt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+$t(++Rt+Lt,36)},jt=n,Mt=bt.exports,Nt=It,qt=Pt,Ut=et,Zt=nt,Ht=Mt("wks"),Kt=jt.Symbol,Vt=Kt&&Kt.for,Jt=Zt?Kt:Kt&&Kt.withoutSetter||qt,Gt=function(t){if(!Nt(Ht,t)||!Ut&&"string"!=typeof Ht[t]){var e="Symbol."+t;Ut&&Nt(Kt,t)?Ht[t]=Kt[t]:Ht[t]=Zt&&Vt?Vt(e):Jt(e)}return Ht[t]},Yt=l,Wt=M,Xt=st,Qt=Dt,te=function(t,e){var n,r;if("string"===e&&vt(n=t.toString)&&!yt(r=mt(n,t)))return r;if(vt(n=t.valueOf)&&!yt(r=mt(n,t)))return r;if("string"!==e&&vt(n=t.toString)&&!yt(r=mt(n,t)))return r;throw kt("Can't convert object to primitive value")},ee=Gt,ne=n.TypeError,re=ee("toPrimitive"),ue=function(t,e){if(!Wt(t)||Xt(t))return t;var n,r=Qt(t,re);if(r){if(void 0===e&&(e="default"),n=Yt(r,t,e),!Wt(n)||Xt(n))return n;throw ne("Can't convert object to primitive value")}return void 0===e&&(e="number"),te(t,e)},ie=st,ae=function(t){var e=ue(t,"string");return ie(e)?e:e+""},oe=M,se=n.document,le=oe(se)&&oe(se.createElement),ce=function(t){return le?se.createElement(t):{}},pe=ce,de=!i&&!u((function(){return 7!=Object.defineProperty(pe("div"),"a",{get:function(){return 7}}).a})),fe=i,he=l,ge=c,De=D,me=$,ve=ae,ye=It,ke=de,be=Object.getOwnPropertyDescriptor;r.f=fe?be:function(t,e){if(t=me(t),e=ve(e),ke)try{return be(t,e)}catch(t){}if(ye(t,e))return De(!he(ge.f,t,e),t[e])};var Ee={},Ae=i&&u((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),xe=n,Fe=M,Ce=xe.String,we=xe.TypeError,Se=function(t){if(Fe(t))return t;throw we(Ce(t)+" is not an object")},Be=i,Te=de,_e=Ae,ze=Se,Ie=ae,Oe=n.TypeError,Re=Object.defineProperty,Le=Object.getOwnPropertyDescriptor;Ee.f=Be?_e?function(t,e,n){if(ze(t),e=Ie(e),ze(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var r=Le(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 Re(t,e,n)}:Re:function(t,e,n){if(ze(t),e=Ie(e),ze(n),Te)try{return Re(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Oe("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var $e=Ee,Pe=D,je=i?function(t,e,n){return $e.f(t,e,Pe(1,n))}:function(t,e,n){return t[e]=n,t},Me={exports:{}},Ne=P,qe=Ct,Ue=E(Function.toString);Ne(qe.inspectSource)||(qe.inspectSource=function(t){return Ue(t)});var Ze,He,Ke,Ve=qe.inspectSource,Je=P,Ge=Ve,Ye=n.WeakMap,We=Je(Ye)&&/native code/.test(Ge(Ye)),Xe=bt.exports,Qe=Pt,tn=Xe("keys"),en=function(t){return tn[t]||(tn[t]=Qe(t))},nn={},rn=We,un=n,an=E,on=M,sn=je,ln=It,cn=Ct,pn=en,dn=nn,fn=un.TypeError,hn=un.WeakMap;if(rn||cn.state){var gn=cn.state||(cn.state=new hn),Dn=an(gn.get),mn=an(gn.has),vn=an(gn.set);Ze=function(t,e){if(mn(gn,t))throw new fn("Object already initialized");return e.facade=t,vn(gn,t,e),e},He=function(t){return Dn(gn,t)||{}},Ke=function(t){return mn(gn,t)}}else{var yn=pn("state");dn[yn]=!0,Ze=function(t,e){if(ln(t,yn))throw new fn("Object already initialized");return e.facade=t,sn(t,yn,e),e},He=function(t){return ln(t,yn)?t[yn]:{}},Ke=function(t){return ln(t,yn)}}var kn={set:Ze,get:He,has:Ke,enforce:function(t){return Ke(t)?He(t):Ze(t,{})},getterFor:function(t){return function(e){var n;if(!on(e)||(n=He(e)).type!==t)throw fn("Incompatible receiver, "+t+" required");return n}}},bn=i,En=It,An=Function.prototype,xn=bn&&Object.getOwnPropertyDescriptor,Fn=En(An,"name"),Cn={EXISTS:Fn,PROPER:Fn&&"something"===function(){}.name,CONFIGURABLE:Fn&&(!bn||bn&&xn(An,"name").configurable)},wn=n,Sn=P,Bn=It,Tn=je,_n=xt,zn=Ve,In=Cn.CONFIGURABLE,On=kn.get,Rn=kn.enforce,Ln=String(String).split("String");(Me.exports=function(t,e,n,r){var u,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,o=!!r&&!!r.noTargetGet,s=r&&void 0!==r.name?r.name:e;Sn(n)&&("Symbol("===String(s).slice(0,7)&&(s="["+String(s).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Bn(n,"name")||In&&n.name!==s)&&Tn(n,"name",s),(u=Rn(n)).source||(u.source=Ln.join("string"==typeof s?s:""))),t!==wn?(i?!o&&t[e]&&(a=!0):delete t[e],a?t[e]=n:Tn(t,e,n)):a?t[e]=n:_n(e,n)})(Function.prototype,"toString",(function(){return Sn(this)&&On(this).source||zn(this)}));var $n={},Pn=Math.ceil,jn=Math.floor,Mn=function(t){var e=+t;return e!=e||0===e?0:(e>0?jn:Pn)(e)},Nn=Mn,qn=Math.max,Un=Math.min,Zn=function(t,e){var n=Nn(t);return n<0?qn(n+e,0):Un(n,e)},Hn=Mn,Kn=Math.min,Vn=function(t){return t>0?Kn(Hn(t),9007199254740991):0},Jn=Vn,Gn=function(t){return Jn(t.length)},Yn=$,Wn=Zn,Xn=Gn,Qn=function(t){return function(e,n,r){var u,i=Yn(e),a=Xn(i),o=Wn(r,a);if(t&&n!=n){for(;a>o;)if((u=i[o++])!=u)return!0}else for(;a>o;o++)if((t||o in i)&&i[o]===n)return t||o||0;return!t&&-1}},tr={includes:Qn(!0),indexOf:Qn(!1)},er=It,nr=$,rr=tr.indexOf,ur=nn,ir=E([].push),ar=function(t,e){var n,r=nr(t),u=0,i=[];for(n in r)!er(ur,n)&&er(r,n)&&ir(i,n);for(;e.length>u;)er(r,n=e[u++])&&(~rr(i,n)||ir(i,n));return i},or=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],sr=ar,lr=or.concat("length","prototype");$n.f=Object.getOwnPropertyNames||function(t){return sr(t,lr)};var cr={};cr.f=Object.getOwnPropertySymbols;var pr=Z,dr=$n,fr=cr,hr=Se,gr=E([].concat),Dr=pr("Reflect","ownKeys")||function(t){var e=dr.f(hr(t)),n=fr.f;return n?gr(e,n(t)):e},mr=It,vr=Dr,yr=r,kr=Ee,br=u,Er=P,Ar=/#|\.prototype\./,xr=function(t,e){var n=Cr[Fr(t)];return n==Sr||n!=wr&&(Er(e)?br(e):!!e)},Fr=xr.normalize=function(t){return String(t).replace(Ar,".").toLowerCase()},Cr=xr.data={},wr=xr.NATIVE="N",Sr=xr.POLYFILL="P",Br=xr,Tr=n,_r=r.f,zr=je,Ir=Me.exports,Or=xt,Rr=function(t,e,n){for(var r=vr(e),u=kr.f,i=yr.f,a=0;a<r.length;a++){var o=r[a];mr(t,o)||n&&mr(n,o)||u(t,o,i(e,o))}},Lr=Br,$r=function(t,e){var n,r,u,i,a,o=t.target,s=t.global,l=t.stat;if(n=s?Tr:l?Tr[o]||Or(o,{}):(Tr[o]||{}).prototype)for(r in e){if(i=e[r],u=t.noTargetGet?(a=_r(n,r))&&a.value:n[r],!Lr(s?r:o+(l?".":"#")+r,t.forced)&&void 0!==u){if(typeof i==typeof u)continue;Rr(i,u)}(t.sham||u&&u.sham)&&zr(i,"sham",!0),Ir(n,r,i,t)}},Pr={};Pr[Gt("toStringTag")]="z";var jr="[object z]"===String(Pr),Mr=n,Nr=jr,qr=P,Ur=C,Zr=Gt("toStringTag"),Hr=Mr.Object,Kr="Arguments"==Ur(function(){return arguments}()),Vr=Nr?Ur: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=Hr(t),Zr))?n:Kr?Ur(e):"Object"==(r=Ur(e))&&qr(e.callee)?"Arguments":r},Jr=Vr,Gr=n.String,Yr=function(t){if("Symbol"===Jr(t))throw TypeError("Cannot convert a Symbol value to a string");return Gr(t)},Wr=Se,Xr=function(){var t=Wr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Qr=u,tu=n.RegExp,eu=Qr((function(){var t=tu("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),nu=eu||Qr((function(){return!tu("a","y").sticky})),ru={BROKEN_CARET:eu||Qr((function(){var t=tu("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:nu,UNSUPPORTED_Y:eu},uu={},iu=ar,au=or,ou=Object.keys||function(t){return iu(t,au)},su=i,lu=Ae,cu=Ee,pu=Se,du=$,fu=ou;uu.f=su&&!lu?Object.defineProperties:function(t,e){pu(t);for(var n,r=du(e),u=fu(e),i=u.length,a=0;i>a;)cu.f(t,n=u[a++],r[n]);return t};var hu,gu=Z("document","documentElement"),Du=Se,mu=uu,vu=or,yu=nn,ku=gu,bu=ce,Eu=en("IE_PROTO"),Au=function(){},xu=function(t){return"<script>"+t+"<\/script>"},Fu=function(t){t.write(xu("")),t.close();var e=t.parentWindow.Object;return t=null,e},Cu=function(){try{hu=new ActiveXObject("htmlfile")}catch(t){}var t,e;Cu="undefined"!=typeof document?document.domain&&hu?Fu(hu):((e=bu("iframe")).style.display="none",ku.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(xu("document.F=Object")),t.close(),t.F):Fu(hu);for(var n=vu.length;n--;)delete Cu.prototype[vu[n]];return Cu()};yu[Eu]=!0;var wu=Object.create||function(t,e){var n;return null!==t?(Au.prototype=Du(t),n=new Au,Au.prototype=null,n[Eu]=t):n=Cu(),void 0===e?n:mu.f(n,e)},Su=u,Bu=n.RegExp,Tu=Su((function(){var t=Bu(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),_u=u,zu=n.RegExp,Iu=_u((function(){var t=zu("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Ou=l,Ru=E,Lu=Yr,$u=Xr,Pu=ru,ju=bt.exports,Mu=wu,Nu=kn.get,qu=Tu,Uu=Iu,Zu=ju("native-string-replace",String.prototype.replace),Hu=RegExp.prototype.exec,Ku=Hu,Vu=Ru("".charAt),Ju=Ru("".indexOf),Gu=Ru("".replace),Yu=Ru("".slice),Wu=function(){var t=/a/,e=/b*/g;return Ou(Hu,t,"a"),Ou(Hu,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Xu=Pu.BROKEN_CARET,Qu=void 0!==/()??/.exec("")[1];(Wu||Qu||Xu||qu||Uu)&&(Ku=function(t){var e,n,r,u,i,a,o,s=this,l=Nu(s),c=Lu(t),p=l.raw;if(p)return p.lastIndex=s.lastIndex,e=Ou(Ku,p,c),s.lastIndex=p.lastIndex,e;var d=l.groups,f=Xu&&s.sticky,h=Ou($u,s),g=s.source,D=0,m=c;if(f&&(h=Gu(h,"y",""),-1===Ju(h,"g")&&(h+="g"),m=Yu(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Vu(c,s.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,D++),n=new RegExp("^(?:"+g+")",h)),Qu&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Wu&&(r=s.lastIndex),u=Ou(Hu,f?n:s,m),f?u?(u.input=Yu(u.input,D),u[0]=Yu(u[0],D),u.index=s.lastIndex,s.lastIndex+=u[0].length):s.lastIndex=0:Wu&&u&&(s.lastIndex=s.global?u.index+u[0].length:r),Qu&&u&&u.length>1&&Ou(Zu,u[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(u[i]=void 0)})),u&&d)for(u.groups=a=Mu(null),i=0;i<d.length;i++)a[(o=d[i])[0]]=u[o[1]];return u});var ti=Ku;$r({target:"RegExp",proto:!0,forced:/./.exec!==ti},{exec:ti});var ei=E,ni=Me.exports,ri=ti,ui=u,ii=Gt,ai=je,oi=ii("species"),si=RegExp.prototype,li=function(t,e,n,r){var u=ii(t),i=!ui((function(){var e={};return e[u]=function(){return 7},7!=""[t](e)})),a=i&&!ui((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[oi]=function(){return n},n.flags="",n[u]=/./[u]),n.exec=function(){return e=!0,null},n[u](""),!e}));if(!i||!a||n){var o=ei(/./[u]),s=e(u,""[t],(function(t,e,n,r,u){var a=ei(t),s=e.exec;return s===ri||s===si.exec?i&&!u?{done:!0,value:o(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));ni(String.prototype,t,s[0]),ni(si,u,s[1])}r&&ai(si[u],"sham",!0)},ci=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e},pi=l,di=Se,fi=P,hi=C,gi=ti,Di=n.TypeError,mi=function(t,e){var n=t.exec;if(fi(n)){var r=pi(n,t,e);return null!==r&&di(r),r}if("RegExp"===hi(t))return pi(gi,t,e);throw Di("RegExp#exec called on incompatible receiver")},vi=l,yi=Se,ki=O,bi=ci,Ei=Yr,Ai=Dt,xi=mi;li("search",(function(t,e,n){return[function(e){var n=ki(this),r=null==e?void 0:Ai(e,t);return r?vi(r,e,n):new RegExp(e)[t](Ei(n))},function(t){var r=yi(this),u=Ei(t),i=n(e,r,u);if(i.done)return i.value;var a=r.lastIndex;bi(a,0)||(r.lastIndex=0);var o=xi(r,u);return bi(r.lastIndex,a)||(r.lastIndex=a),null===o?-1:o.index}]}));var Fi=E,Ci=Mn,wi=Yr,Si=O,Bi=Fi("".charAt),Ti=Fi("".charCodeAt),_i=Fi("".slice),zi=function(t){return function(e,n){var r,u,i=wi(Si(e)),a=Ci(n),o=i.length;return a<0||a>=o?t?"":void 0:(r=Ti(i,a))<55296||r>56319||a+1===o||(u=Ti(i,a+1))<56320||u>57343?t?Bi(i,a):r:t?_i(i,a,a+2):u-56320+(r-55296<<10)+65536}},Ii={codeAt:zi(!1),charAt:zi(!0)}.charAt,Oi=function(t,e,n){return e+(n?Ii(t,e).length:1)},Ri=l,Li=Se,$i=Vn,Pi=Yr,ji=O,Mi=Dt,Ni=Oi,qi=mi;function Ui(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zi(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 Hi(t,e,n){return e&&Zi(t.prototype,e),n&&Zi(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ki(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)return;var r,u,i=[],a=!0,o=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){o=!0,u=t}finally{try{a||null==n.return||n.return()}finally{if(o)throw u}}return i}(t,e)||Vi(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 Vi(t,e){if(t){if("string"==typeof t)return Ji(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)?Ji(t,e):void 0}}function Ji(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 Gi(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Vi(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,u=function(){};return{s:u,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,o=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){o=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(o)throw i}}}}li("match",(function(t,e,n){return[function(e){var n=ji(this),r=null==e?void 0:Mi(e,t);return r?Ri(r,e,n):new RegExp(e)[t](Pi(n))},function(t){var r=Li(this),u=Pi(t),i=n(e,r,u);if(i.done)return i.value;if(!r.global)return qi(r,u);var a=r.unicode;r.lastIndex=0;for(var o,s=[],l=0;null!==(o=qi(r,u));){var c=Pi(o[0]);s[l]=c,""===c&&(r.lastIndex=Ni(u,$i(r.lastIndex),a)),l++}return 0===l?null:s}]}));var Yi=Vr,Wi=jr?{}.toString:function(){return"[object "+Yi(this)+"]"},Xi=jr,Qi=Me.exports,ta=Wi;Xi||Qi(Object.prototype,"toString",ta,{unsafe:!0});var ea=C,na=Array.isArray||function(t){return"Array"==ea(t)},ra=ae,ua=Ee,ia=D,aa=function(t,e,n){var r=ra(e);r in t?ua.f(t,r,ia(0,n)):t[r]=n},oa=E,sa=u,la=P,ca=Vr,pa=Ve,da=function(){},fa=[],ha=Z("Reflect","construct"),ga=/^\s*(?:class|function)\b/,Da=oa(ga.exec),ma=!ga.exec(da),va=function(t){if(!la(t))return!1;try{return ha(da,fa,t),!0}catch(t){return!1}},ya=function(t){if(!la(t))return!1;switch(ca(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ma||!!Da(ga,pa(t))}catch(t){return!0}};ya.sham=!0;var ka=!ha||sa((function(){var t;return va(va.call)||!va(Object)||!va((function(){t=!0}))||t}))?ya:va,ba=n,Ea=na,Aa=ka,xa=M,Fa=Gt("species"),Ca=ba.Array,wa=function(t){var e;return Ea(t)&&(e=t.constructor,(Aa(e)&&(e===Ca||Ea(e.prototype))||xa(e)&&null===(e=e[Fa]))&&(e=void 0)),void 0===e?Ca:e},Sa=function(t,e){return new(wa(t))(0===e?0:e)},Ba=u,Ta=X,_a=Gt("species"),za=function(t){return Ta>=51||!Ba((function(){var e=[];return(e.constructor={})[_a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Ia=$r,Oa=n,Ra=u,La=na,$a=M,Pa=Tt,ja=Gn,Ma=aa,Na=Sa,qa=za,Ua=X,Za=Gt("isConcatSpreadable"),Ha=Oa.TypeError,Ka=Ua>=51||!Ra((function(){var t=[];return t[Za]=!1,t.concat()[0]!==t})),Va=qa("concat"),Ja=function(t){if(!$a(t))return!1;var e=t[Za];return void 0!==e?!!e:La(t)};Ia({target:"Array",proto:!0,forced:!Ka||!Va},{concat:function(t){var e,n,r,u,i,a=Pa(this),o=Na(a,0),s=0;for(e=-1,r=arguments.length;e<r;e++)if(Ja(i=-1===e?a:arguments[e])){if(s+(u=ja(i))>9007199254740991)throw Ha("Maximum allowed index exceeded");for(n=0;n<u;n++,s++)n in i&&Ma(o,s,i[n])}else{if(s>=9007199254740991)throw Ha("Maximum allowed index exceeded");Ma(o,s++,i)}return o.length=s,o}});var Ga=ce("span").classList,Ya=Ga&&Ga.constructor&&Ga.constructor.prototype,Wa=Ya===Object.prototype?void 0:Ya,Xa=ht,Qa=a,to=E(E.bind),eo=function(t,e){return Xa(t),void 0===e?t:Qa?to(t,e):function(){return t.apply(e,arguments)}},no=z,ro=Tt,uo=Gn,io=Sa,ao=E([].push),oo=function(t){var e=1==t,n=2==t,r=3==t,u=4==t,i=6==t,a=7==t,o=5==t||i;return function(s,l,c,p){for(var d,f,h=ro(s),g=no(h),D=eo(l,c),m=uo(g),v=0,y=p||io,k=e?y(s,m):n||a?y(s,0):void 0;m>v;v++)if((o||v in g)&&(f=D(d=g[v],v,h),t))if(e)k[v]=f;else if(f)switch(t){case 3:return!0;case 5:return d;case 6:return v;case 2:ao(k,d)}else switch(t){case 4:return!1;case 7:ao(k,d)}return i?-1:r||u?u:k}},so={forEach:oo(0),map:oo(1),filter:oo(2),some:oo(3),every:oo(4),find:oo(5),findIndex:oo(6),filterReject:oo(7)},lo=u,co=function(t,e){var n=[][t];return!!n&&lo((function(){n.call(null,e||function(){throw 1},1)}))},po=so.forEach,fo=n,ho={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},go=Wa,Do=co("forEach")?[].forEach:function(t){return po(this,t,arguments.length>1?arguments[1]:void 0)},mo=je,vo=function(t){if(t&&t.forEach!==Do)try{mo(t,"forEach",Do)}catch(e){t.forEach=Do}};for(var yo in ho)ho[yo]&&vo(fo[yo]&&fo[yo].prototype);vo(go);var ko=i,bo=Cn.EXISTS,Eo=E,Ao=Ee.f,xo=Function.prototype,Fo=Eo(xo.toString),Co=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,wo=Eo(Co.exec);ko&&!bo&&Ao(xo,"name",{configurable:!0,get:function(){try{return wo(Co,Fo(this))[1]}catch(t){return""}}});var So=a,Bo=Function.prototype,To=Bo.apply,_o=Bo.call,zo="object"==typeof Reflect&&Reflect.apply||(So?_o.bind(To):function(){return _o.apply(To,arguments)}),Io=E,Oo=Tt,Ro=Math.floor,Lo=Io("".charAt),$o=Io("".replace),Po=Io("".slice),jo=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Mo=/\$([$&'`]|\d{1,2})/g,No=zo,qo=l,Uo=E,Zo=li,Ho=u,Ko=Se,Vo=P,Jo=Mn,Go=Vn,Yo=Yr,Wo=O,Xo=Oi,Qo=Dt,ts=function(t,e,n,r,u,i){var a=n+t.length,o=r.length,s=Mo;return void 0!==u&&(u=Oo(u),s=jo),$o(i,s,(function(i,s){var l;switch(Lo(s,0)){case"$":return"$";case"&":return t;case"`":return Po(e,0,n);case"'":return Po(e,a);case"<":l=u[Po(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>o){var p=Ro(c/10);return 0===p?i:p<=o?void 0===r[p-1]?Lo(s,1):r[p-1]+Lo(s,1):i}l=r[c-1]}return void 0===l?"":l}))},es=mi,ns=Gt("replace"),rs=Math.max,us=Math.min,is=Uo([].concat),as=Uo([].push),os=Uo("".indexOf),ss=Uo("".slice),ls="$0"==="a".replace(/./,"$0"),cs=!!/./[ns]&&""===/./[ns]("a","$0");Zo("replace",(function(t,e,n){var r=cs?"$":"$0";return[function(t,n){var r=Wo(this),u=null==t?void 0:Qo(t,ns);return u?qo(u,t,r,n):qo(e,Yo(r),t,n)},function(t,u){var i=Ko(this),a=Yo(t);if("string"==typeof u&&-1===os(u,r)&&-1===os(u,"$<")){var o=n(e,i,a,u);if(o.done)return o.value}var s=Vo(u);s||(u=Yo(u));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var p=[];;){var d=es(i,a);if(null===d)break;if(as(p,d),!l)break;""===Yo(d[0])&&(i.lastIndex=Xo(a,Go(i.lastIndex),c))}for(var f,h="",g=0,D=0;D<p.length;D++){for(var m=Yo((d=p[D])[0]),v=rs(us(Jo(d.index),a.length),0),y=[],k=1;k<d.length;k++)as(y,void 0===(f=d[k])?f:String(f));var b=d.groups;if(s){var E=is([m],y,v,a);void 0!==b&&as(E,b);var A=Yo(No(u,void 0,E))}else A=ts(m,a,v,y,b,u);v>=g&&(h+=ss(a,g,v)+A,g=v+m.length)}return h+ss(a,g)}]}),!!Ho((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!ls||cs);var ps=E,ds=Cn.PROPER,fs=Me.exports,hs=Se,gs=H,Ds=Yr,ms=u,vs=Xr,ys=RegExp.prototype,ks=ys.toString,bs=ps(vs),Es=ms((function(){return"/a/b"!=ks.call({source:"a",flags:"b"})})),As=ds&&"toString"!=ks.name;(Es||As)&&fs(RegExp.prototype,"toString",(function(){var t=hs(this),e=Ds(t.source),n=t.flags;return"/"+e+"/"+Ds(void 0===n&&gs(ys,t)&&!("flags"in ys)?bs(t):n)}),{unsafe:!0});var xs=E([].slice),Fs=$r,Cs=n,ws=na,Ss=ka,Bs=M,Ts=Zn,_s=Gn,zs=$,Is=aa,Os=Gt,Rs=xs,Ls=za("slice"),$s=Os("species"),Ps=Cs.Array,js=Math.max;Fs({target:"Array",proto:!0,forced:!Ls},{slice:function(t,e){var n,r,u,i=zs(this),a=_s(i),o=Ts(t,a),s=Ts(void 0===e?a:e,a);if(ws(i)&&(n=i.constructor,(Ss(n)&&(n===Ps||ws(n.prototype))||Bs(n)&&null===(n=n[$s]))&&(n=void 0),n===Ps||void 0===n))return Rs(i,o,s);for(r=new(void 0===n?Ps:n)(js(s-o,0)),u=0;o<s;o++,u++)o in i&&Is(r,u,i[o]);return r.length=u,r}});var Ms=Tt,Ns=ou;$r({target:"Object",stat:!0,forced:u((function(){Ns(1)}))},{keys:function(t){return Ns(Ms(t))}});var qs=wu,Us=Ee,Zs=Gt("unscopables"),Hs=Array.prototype;null==Hs[Zs]&&Us.f(Hs,Zs,{configurable:!0,value:qs(null)});var Ks=tr.includes,Vs=function(t){Hs[Zs][t]=!0};$r({target:"Array",proto:!0},{includes:function(t){return Ks(this,t,arguments.length>1?arguments[1]:void 0)}}),Vs("includes");var Js=M,Gs=C,Ys=Gt("match"),Ws=function(t){var e;return Js(t)&&(void 0!==(e=t[Ys])?!!e:"RegExp"==Gs(t))},Xs=Ws,Qs=n.TypeError,tl=Gt("match"),el=$r,nl=function(t){if(Xs(t))throw Qs("The method doesn't accept regular expressions");return t},rl=O,ul=Yr,il=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[tl]=!1,"/./"[t](e)}catch(t){}}return!1},al=E("".indexOf);el({target:"String",proto:!0,forced:!il("includes")},{includes:function(t){return!!~al(ul(rl(this)),ul(nl(t)),arguments.length>1?arguments[1]:void 0)}});var ol=O,sl=Yr,ll=/"/g,cl=E("".replace),pl=u,dl=function(t,e,n,r){var u=sl(ol(t)),i="<"+e;return""!==n&&(i+=" "+n+'="'+cl(sl(r),ll,""")+'"'),i+">"+u+"</"+e+">"},fl=function(t){return pl((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))};$r({target:"String",proto:!0,forced:fl("link")},{link:function(t){return dl(this,"a","href",t)}});var hl=$r,gl=z,Dl=$,ml=co,vl=E([].join),yl=gl!=Object,kl=ml("join",",");hl({target:"Array",proto:!0,forced:yl||!kl},{join:function(t){return vl(Dl(this),void 0===t?",":t)}});var bl=so.map;$r({target:"Array",proto:!0,forced:!za("map")},{map:function(t){return bl(this,t,arguments.length>1?arguments[1]:void 0)}});var El=ka,Al=ct,xl=n.TypeError,Fl=Se,Cl=function(t){if(El(t))return t;throw xl(Al(t)+" is not a constructor")},wl=Gt("species"),Sl=Zn,Bl=Gn,Tl=aa,_l=n.Array,zl=Math.max,Il=zo,Ol=l,Rl=E,Ll=li,$l=Ws,Pl=Se,jl=O,Ml=function(t,e){var n,r=Fl(t).constructor;return void 0===r||null==(n=Fl(r)[wl])?e:Cl(n)},Nl=Oi,ql=Vn,Ul=Yr,Zl=Dt,Hl=function(t,e,n){for(var r=Bl(t),u=Sl(e,r),i=Sl(void 0===n?r:n,r),a=_l(zl(i-u,0)),o=0;u<i;u++,o++)Tl(a,o,t[u]);return a.length=o,a},Kl=mi,Vl=ti,Jl=u,Gl=ru.UNSUPPORTED_Y,Yl=Math.min,Wl=[].push,Xl=Rl(/./.exec),Ql=Rl(Wl),tc=Rl("".slice);Ll("split",(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=Ul(jl(this)),u=void 0===n?4294967295:n>>>0;if(0===u)return[];if(void 0===t)return[r];if(!$l(t))return Ol(e,r,t,u);for(var i,a,o,s=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),c=0,p=new RegExp(t.source,l+"g");(i=Ol(Vl,p,r))&&!((a=p.lastIndex)>c&&(Ql(s,tc(r,c,i.index)),i.length>1&&i.index<r.length&&Il(Wl,s,Hl(i,1)),o=i[0].length,c=a,s.length>=u));)p.lastIndex===i.index&&p.lastIndex++;return c===r.length?!o&&Xl(p,"")||Ql(s,""):Ql(s,tc(r,c)),s.length>u?Hl(s,0,u):s}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:Ol(e,this,t,n)}:e,[function(e,n){var u=jl(this),i=null==e?void 0:Zl(e,t);return i?Ol(i,e,u,n):Ol(r,Ul(u),e,n)},function(t,u){var i=Pl(this),a=Ul(t),o=n(r,i,a,u,r!==e);if(o.done)return o.value;var s=Ml(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Gl?"g":"y"),p=new s(Gl?"^(?:"+i.source+")":i,c),d=void 0===u?4294967295:u>>>0;if(0===d)return[];if(0===a.length)return null===Kl(p,a)?[a]:[];for(var f=0,h=0,g=[];h<a.length;){p.lastIndex=Gl?0:h;var D,m=Kl(p,Gl?tc(a,h):a);if(null===m||(D=Yl(ql(p.lastIndex+(Gl?h:0)),a.length))===f)h=Nl(a,h,l);else{if(Ql(g,tc(a,f,h)),g.length===d)return g;for(var v=1;v<=m.length-1;v++)if(Ql(g,m[v]),g.length===d)return g;h=f=D}}return Ql(g,tc(a,f)),g}]}),!!Jl((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Gl);var ec=O,nc=Yr,rc=E("".replace),uc="[\t\n\v\f\r \u2028\u2029\ufeff]",ic=RegExp("^"+uc+uc+"*"),ac=RegExp(uc+uc+"*$"),oc=function(t){return function(e){var n=nc(ec(e));return 1&t&&(n=rc(n,ic,"")),2&t&&(n=rc(n,ac,"")),n}},sc={start:oc(1),end:oc(2),trim:oc(3)},lc=Cn.PROPER,cc=u,pc="\t\n\v\f\r \u2028\u2029\ufeff",dc=sc.trim;$r({target:"String",proto:!0,forced:function(t){return cc((function(){return!!pc[t]()||"
"!=="
"[t]()||lc&&pc[t].name!==t}))}("trim")},{trim:function(){return dc(this)}});var fc=n,hc=P,gc=fc.String,Dc=fc.TypeError,mc=E,vc=Se,yc=function(t){if("object"==typeof t||hc(t))return t;throw Dc("Can't set "+gc(t)+" as a prototype")},kc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=mc(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return vc(n),yc(r),e?t(n,r):n.__proto__=r,n}}():void 0),bc=P,Ec=M,Ac=kc,xc=Z,Fc=Ee,Cc=i,wc=Gt("species"),Sc=i,Bc=n,Tc=E,_c=Br,zc=function(t,e,n){var r,u;return Ac&&bc(r=e.constructor)&&r!==n&&Ec(u=r.prototype)&&u!==n.prototype&&Ac(t,u),t},Ic=je,Oc=Ee.f,Rc=$n.f,Lc=H,$c=Ws,Pc=Yr,jc=Xr,Mc=ru,Nc=Me.exports,qc=u,Uc=It,Zc=kn.enforce,Hc=function(t){var e=xc(t),n=Fc.f;Cc&&e&&!e[wc]&&n(e,wc,{configurable:!0,get:function(){return this}})},Kc=Tu,Vc=Iu,Jc=Gt("match"),Gc=Bc.RegExp,Yc=Gc.prototype,Wc=Bc.SyntaxError,Xc=Tc(jc),Qc=Tc(Yc.exec),tp=Tc("".charAt),ep=Tc("".replace),np=Tc("".indexOf),rp=Tc("".slice),up=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,ip=/a/g,ap=/a/g,op=new Gc(ip)!==ip,sp=Mc.MISSED_STICKY,lp=Mc.UNSUPPORTED_Y,cp=Sc&&(!op||sp||Kc||Vc||qc((function(){return ap[Jc]=!1,Gc(ip)!=ip||Gc(ap)==ap||"/a/i"!=Gc(ip,"i")})));if(_c("RegExp",cp)){for(var pp=function(t,e){var n,r,u,i,a,o,s=Lc(Yc,this),l=$c(t),c=void 0===e,p=[],d=t;if(!s&&l&&c&&t.constructor===pp)return t;if((l||Lc(Yc,t))&&(t=t.source,c&&(e="flags"in d?d.flags:Xc(d))),t=void 0===t?"":Pc(t),e=void 0===e?"":Pc(e),d=t,Kc&&"dotAll"in ip&&(r=!!e&&np(e,"s")>-1)&&(e=ep(e,/s/g,"")),n=e,sp&&"sticky"in ip&&(u=!!e&&np(e,"y")>-1)&&lp&&(e=ep(e,/y/g,"")),Vc&&(i=function(t){for(var e,n=t.length,r=0,u="",i=[],a={},o=!1,s=!1,l=0,c="";r<=n;r++){if("\\"===(e=tp(t,r)))e+=tp(t,++r);else if("]"===e)o=!1;else if(!o)switch(!0){case"["===e:o=!0;break;case"("===e:Qc(up,rp(t,r+1))&&(r+=2,s=!0),u+=e,l++;continue;case">"===e&&s:if(""===c||Uc(a,c))throw new Wc("Invalid capture group name");a[c]=!0,i[i.length]=[c,l],s=!1,c="";continue}s?c+=e:u+=e}return[u,i]}(t),t=i[0],p=i[1]),a=zc(Gc(t,e),s?this:Yc,pp),(r||u||p.length)&&(o=Zc(a),r&&(o.dotAll=!0,o.raw=pp(function(t){for(var e,n=t.length,r=0,u="",i=!1;r<=n;r++)"\\"!==(e=tp(t,r))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),u+=e):u+="[\\s\\S]":u+=e+tp(t,++r);return u}(t),n)),u&&(o.sticky=!0),p.length&&(o.groups=p)),t!==d)try{Ic(a,"source",""===d?"(?:)":d)}catch(t){}return a},dp=function(t){t in pp||Oc(pp,t,{configurable:!0,get:function(){return Gc[t]},set:function(e){Gc[t]=e}})},fp=Rc(Gc),hp=0;fp.length>hp;)dp(fp[hp++]);Yc.constructor=pp,pp.prototype=Yc,Nc(Bc,"RegExp",pp)}Hc("RegExp");var gp=$r,Dp=n,mp=Zn,vp=Mn,yp=Gn,kp=Tt,bp=Sa,Ep=aa,Ap=za("splice"),xp=Dp.TypeError,Fp=Math.max,Cp=Math.min;gp({target:"Array",proto:!0,forced:!Ap},{splice:function(t,e){var n,r,u,i,a,o,s=kp(this),l=yp(s),c=mp(t,l),p=arguments.length;if(0===p?n=r=0:1===p?(n=0,r=l-c):(n=p-2,r=Cp(Fp(vp(e),0),l-c)),l+n-r>9007199254740991)throw xp("Maximum allowed length exceeded");for(u=bp(s,r),i=0;i<r;i++)(a=c+i)in s&&Ep(u,i,s[a]);if(u.length=r,n<r){for(i=c;i<l-r;i++)o=i+n,(a=i+r)in s?s[o]=s[a]:delete s[o];for(i=l;i>l-r+n;i--)delete s[i-1]}else if(n>r)for(i=l-r;i>c;i--)o=i+n-1,(a=i+r-1)in s?s[o]=s[a]:delete s[o];for(i=0;i<n;i++)s[i+c]=arguments[i+2];return s.length=l-r+n,u}});var wp={exports:{}};function Sp(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}wp.exports={defaults:{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:Sp,changeDefaults:function(t){wp.exports.defaults=t}};var Bp=/[&<>"']/,Tp=/[&<>"']/g,_p=/[<>"']|&(?!#?\w+;)/,zp=/[<>"']|&(?!#?\w+;)/g,Ip={"&":"&","<":"<",">":">",'"':""","'":"'"},Op=function(t){return Ip[t]};var Rp=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Lp(t){return t.replace(Rp,(function(t,e){return"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""}))}var $p=/(^|[^\[])\^/g;var Pp=/[^\w:]/g,jp=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;var Mp={},Np=/^[^:]+:\/*[^/]*$/,qp=/^([^:]+:)[\s\S]*$/,Up=/^([^:]+:\/*[^/]*)[\s\S]*$/;function Zp(t,e){Mp[" "+t]||(Np.test(t)?Mp[" "+t]=t+"/":Mp[" "+t]=Hp(t,"/",!0));var n=-1===(t=Mp[" "+t]).indexOf(":");return"//"===e.substring(0,2)?n?e:t.replace(qp,"$1")+e:"/"===e.charAt(0)?n?e:t.replace(Up,"$1")+e:t+e}function Hp(t,e,n){var r=t.length;if(0===r)return"";for(var u=0;u<r;){var i=t.charAt(r-u-1);if(i!==e||n){if(i===e||!n)break;u++}else u++}return t.substr(0,r-u)}var Kp=function(t,e){if(e){if(Bp.test(t))return t.replace(Tp,Op)}else if(_p.test(t))return t.replace(zp,Op);return t},Vp=Lp,Jp=function(t,e){t=t.source||t,e=e||"";var n={replace:function(e,r){return r=(r=r.source||r).replace($p,"$1"),t=t.replace(e,r),n},getRegex:function(){return new RegExp(t,e)}};return n},Gp=function(t,e,n){if(t){var r;try{r=decodeURIComponent(Lp(n)).replace(Pp,"").toLowerCase()}catch(t){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}e&&!jp.test(n)&&(n=Zp(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(t){return null}return n},Yp={exec:function(){}},Wp=function(t){for(var e,n,r=1;r<arguments.length;r++)for(n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},Xp=function(t,e){var n=t.replace(/\|/g,(function(t,e,n){for(var r=!1,u=e;--u>=0&&"\\"===n[u];)r=!r;return r?"|":" |"})).split(/ \|/),r=0;if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n},Qp=Hp,td=function(t,e){if(-1===t.indexOf(e[1]))return-1;for(var n=t.length,r=0,u=0;u<n;u++)if("\\"===t[u])u++;else if(t[u]===e[0])r++;else if(t[u]===e[1]&&--r<0)return u;return-1},ed=function(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")},nd=function(t,e){if(e<1)return"";for(var n="";e>1;)1&e&&(n+=t),e>>=1,t+=t;return n+t},rd=wp.exports.defaults,ud=Qp,id=Xp,ad=Kp,od=td;function sd(t,e,n){var r=e.href,u=e.title?ad(e.title):null,i=t[1].replace(/\\([\[\]])/g,"$1");return"!"!==t[0].charAt(0)?{type:"link",raw:n,href:r,title:u,text:i}:{type:"image",raw:n,href:r,title:u,text:ad(i)}}var ld=function(){function t(e){Ui(this,t),this.options=e||rd}return Hi(t,[{key:"space",value:function(t){var e=this.rules.block.newline.exec(t);if(e)return e[0].length>1?{type:"space",raw:e[0]}:{raw:"\n"}}},{key:"code",value:function(t){var e=this.rules.block.code.exec(t);if(e){var n=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:ud(n,"\n")}}}},{key:"fences",value:function(t){var e=this.rules.block.fences.exec(t);if(e){var n=e[0],r=function(t,e){var n=t.match(/^(\s+)(?:```)/);if(null===n)return e;var r=n[1];return e.split("\n").map((function(t){var e=t.match(/^\s+/);return null===e?t:Ki(e,1)[0].length>=r.length?t.slice(r.length):t})).join("\n")}(n,e[3]||"");return{type:"code",raw:n,lang:e[2]?e[2].trim():e[2],text:r}}}},{key:"heading",value:function(t){var e=this.rules.block.heading.exec(t);if(e){var n=e[2].trim();if(/#$/.test(n)){var r=ud(n,"#");this.options.pedantic?n=r.trim():r&&!/ $/.test(r)||(n=r.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n}}}},{key:"nptable",value:function(t){var e=this.rules.block.nptable.exec(t);if(e){var n={type:"table",header:id(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[],raw:e[0]};if(n.header.length===n.align.length){var r,u=n.align.length;for(r=0;r<u;r++)/^ *-+: *$/.test(n.align[r])?n.align[r]="right":/^ *:-+: *$/.test(n.align[r])?n.align[r]="center":/^ *:-+ *$/.test(n.align[r])?n.align[r]="left":n.align[r]=null;for(u=n.cells.length,r=0;r<u;r++)n.cells[r]=id(n.cells[r],n.header.length);return n}}}},{key:"hr",value:function(t){var e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}}},{key:"blockquote",value:function(t){var e=this.rules.block.blockquote.exec(t);if(e){var n=e[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:e[0],text:n}}}},{key:"list",value:function(t){var e=this.rules.block.list.exec(t);if(e){var n,r,u,i,a,o,s,l,c,p=e[0],d=e[2],f=d.length>1,h={type:"list",raw:p,ordered:f,start:f?+d.slice(0,-1):"",loose:!1,items:[]},g=e[0].match(this.rules.block.item),D=!1,m=g.length;u=this.rules.block.listItemStart.exec(g[0]);for(var v=0;v<m;v++){if(p=n=g[v],this.options.pedantic||(c=n.match(new RegExp("\\n\\s*\\n {0,"+(u[0].length-1)+"}\\S")))&&(a=n.length-c.index+g.slice(v+1).join("\n").length,h.raw=h.raw.substring(0,h.raw.length-a),p=n=n.substring(0,c.index),m=v+1),v!==m-1){if(i=this.rules.block.listItemStart.exec(g[v+1]),this.options.pedantic?i[1].length>u[1].length:i[1].length>=u[0].length||i[1].length>3){g.splice(v,2,g[v]+(!this.options.pedantic&&i[1].length<u[0].length&&!g[v].match(/\n$/)?"":"\n")+g[v+1]),v--,m--;continue}(!this.options.pedantic||this.options.smartLists?i[2][i[2].length-1]!==d[d.length-1]:f===(1===i[2].length))&&(a=g.slice(v+1).join("\n").length,h.raw=h.raw.substring(0,h.raw.length-a),v=m-1),u=i}r=n.length,~(n=n.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(r-=n.length,n=this.options.pedantic?n.replace(/^ {1,4}/gm,""):n.replace(new RegExp("^ {1,"+r+"}","gm"),"")),n=ud(n,"\n"),v!==m-1&&(p+="\n"),o=D||/\n\n(?!\s*$)/.test(p),v!==m-1&&(D="\n\n"===p.slice(-2),o||(o=D)),o&&(h.loose=!0),this.options.gfm&&(l=void 0,(s=/^\[[ xX]\] /.test(n))&&(l=" "!==n[1],n=n.replace(/^\[[ xX]\] +/,""))),h.items.push({type:"list_item",raw:p,task:s,checked:l,loose:o,text:n})}return h}}},{key:"html",value:function(t){var e=this.rules.block.html.exec(t);if(e)return{type:this.options.sanitize?"paragraph":"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):ad(e[0]):e[0]}}},{key:"def",value:function(t){var e=this.rules.block.def.exec(t);if(e)return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{type:"def",tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}}},{key:"table",value:function(t){var e=this.rules.block.table.exec(t);if(e){var n={type:"table",header:id(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=e[0];var r,u=n.align.length;for(r=0;r<u;r++)/^ *-+: *$/.test(n.align[r])?n.align[r]="right":/^ *:-+: *$/.test(n.align[r])?n.align[r]="center":/^ *:-+ *$/.test(n.align[r])?n.align[r]="left":n.align[r]=null;for(u=n.cells.length,r=0;r<u;r++)n.cells[r]=id(n.cells[r].replace(/^ *\| *| *\| *$/g,""),n.header.length);return n}}}},{key:"lheading",value:function(t){var e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1]}}},{key:"paragraph",value:function(t){var e=this.rules.block.paragraph.exec(t);if(e)return{type:"paragraph",raw:e[0],text:"\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1]}}},{key:"text",value:function(t){var e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0]}}},{key:"escape",value:function(t){var e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:ad(e[1])}}},{key:"tag",value:function(t,e,n){var r=this.rules.inline.tag.exec(t);if(r)return!e&&/^<a /i.test(r[0])?e=!0:e&&/^<\/a>/i.test(r[0])&&(e=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:e,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):ad(r[0]):r[0]}}},{key:"link",value:function(t){var e=this.rules.inline.link.exec(t);if(e){var n=e[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;var r=ud(n.slice(0,-1),"\\");if((n.length-r.length)%2==0)return}else{var u=od(e[2],"()");if(u>-1){var i=(0===e[0].indexOf("!")?5:4)+e[1].length+u;e[2]=e[2].substring(0,u),e[0]=e[0].substring(0,i).trim(),e[3]=""}}var a=e[2],o="";if(this.options.pedantic){var s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);s&&(a=s[1],o=s[3])}else o=e[3]?e[3].slice(1,-1):"";return a=a.trim(),/^</.test(a)&&(a=this.options.pedantic&&!/>$/.test(n)?a.slice(1):a.slice(1,-1)),sd(e,{href:a?a.replace(this.rules.inline._escapes,"$1"):a,title:o?o.replace(this.rules.inline._escapes,"$1"):o},e[0])}}},{key:"reflink",value:function(t,e){var n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){var r=(n[2]||n[1]).replace(/\s+/g," ");if(!(r=e[r.toLowerCase()])||!r.href){var u=n[0].charAt(0);return{type:"text",raw:u,text:u}}return sd(n,r,n[0])}}},{key:"emStrong",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.rules.inline.emStrong.lDelim.exec(t);if(r&&(!r[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\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\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\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-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\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\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var u=r[1]||r[2]||"";if(!u||u&&(""===n||this.rules.inline.punctuation.exec(n))){var i,a,o=r[0].length-1,s=o,l=0,c="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,e=e.slice(-1*t.length+o);null!=(r=c.exec(e));)if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])if(a=i.length,r[3]||r[4])s+=a;else if(!((r[5]||r[6])&&o%3)||(o+a)%3){if(!((s-=a)>0))return a=Math.min(a,a+s+l),Math.min(o,a)%2?{type:"em",raw:t.slice(0,o+r.index+a+1),text:t.slice(1,o+r.index+a)}:{type:"strong",raw:t.slice(0,o+r.index+a+1),text:t.slice(2,o+r.index+a-1)}}else l+=a}}}},{key:"codespan",value:function(t){var e=this.rules.inline.code.exec(t);if(e){var n=e[2].replace(/\n/g," "),r=/[^ ]/.test(n),u=/^ /.test(n)&&/ $/.test(n);return r&&u&&(n=n.substring(1,n.length-1)),n=ad(n,!0),{type:"codespan",raw:e[0],text:n}}}},{key:"br",value:function(t){var e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}},{key:"del",value:function(t){var e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2]}}},{key:"autolink",value:function(t,e){var n,r,u=this.rules.inline.autolink.exec(t);if(u)return r="@"===u[2]?"mailto:"+(n=ad(this.options.mangle?e(u[1]):u[1])):n=ad(u[1]),{type:"link",raw:u[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}},{key:"url",value:function(t,e){var n;if(n=this.rules.inline.url.exec(t)){var r,u;if("@"===n[2])u="mailto:"+(r=ad(this.options.mangle?e(n[0]):n[0]));else{var i;do{i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(i!==n[0]);r=ad(n[0]),u="www."===n[1]?"http://"+r:r}return{type:"link",raw:n[0],text:r,href:u,tokens:[{type:"text",raw:r,text:r}]}}}},{key:"inlineText",value:function(t,e,n){var r,u=this.rules.inline.text.exec(t);if(u)return r=e?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(u[0]):ad(u[0]):u[0]:ad(this.options.smartypants?n(u[0]):u[0]),{type:"text",raw:u[0],text:r}}}]),t}(),cd=Yp,pd=Jp,dd=Wp,fd={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:cd,table:cd,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};fd.def=pd(fd.def).replace("label",fd._label).replace("title",fd._title).getRegex(),fd.bullet=/(?:[*+-]|\d{1,9}[.)])/,fd.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,fd.item=pd(fd.item,"gm").replace(/bull/g,fd.bullet).getRegex(),fd.listItemStart=pd(/^( *)(bull) */).replace("bull",fd.bullet).getRegex(),fd.list=pd(fd.list).replace(/bull/g,fd.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+fd.def.source+")").getRegex(),fd._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",fd._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,fd.html=pd(fd.html,"i").replace("comment",fd._comment).replace("tag",fd._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),fd.paragraph=pd(fd._paragraph).replace("hr",fd.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",fd._tag).getRegex(),fd.blockquote=pd(fd.blockquote).replace("paragraph",fd.paragraph).getRegex(),fd.normal=dd({},fd),fd.gfm=dd({},fd.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),fd.gfm.nptable=pd(fd.gfm.nptable).replace("hr",fd.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",fd._tag).getRegex(),fd.gfm.table=pd(fd.gfm.table).replace("hr",fd.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",fd._tag).getRegex(),fd.pedantic=dd({},fd.normal,{html:pd("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",fd._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:cd,paragraph:pd(fd.normal._paragraph).replace("hr",fd.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",fd.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var hd={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:cd,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_*]*?\*[^_*]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^_*]*?\_[^_*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:cd,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};hd.punctuation=pd(hd.punctuation).replace(/punctuation/g,hd._punctuation).getRegex(),hd.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,hd.escapedEmSt=/\\\*|\\_/g,hd._comment=pd(fd._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),hd.emStrong.lDelim=pd(hd.emStrong.lDelim).replace(/punct/g,hd._punctuation).getRegex(),hd.emStrong.rDelimAst=pd(hd.emStrong.rDelimAst,"g").replace(/punct/g,hd._punctuation).getRegex(),hd.emStrong.rDelimUnd=pd(hd.emStrong.rDelimUnd,"g").replace(/punct/g,hd._punctuation).getRegex(),hd._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,hd._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,hd._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[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])?)+(?![-_])/,hd.autolink=pd(hd.autolink).replace("scheme",hd._scheme).replace("email",hd._email).getRegex(),hd._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,hd.tag=pd(hd.tag).replace("comment",hd._comment).replace("attribute",hd._attribute).getRegex(),hd._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,hd._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,hd._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,hd.link=pd(hd.link).replace("label",hd._label).replace("href",hd._href).replace("title",hd._title).getRegex(),hd.reflink=pd(hd.reflink).replace("label",hd._label).getRegex(),hd.reflinkSearch=pd(hd.reflinkSearch,"g").replace("reflink",hd.reflink).replace("nolink",hd.nolink).getRegex(),hd.normal=dd({},hd),hd.pedantic=dd({},hd.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:pd(/^!?\[(label)\]\((.*?)\)/).replace("label",hd._label).getRegex(),reflink:pd(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",hd._label).getRegex()}),hd.gfm=dd({},hd.normal,{escape:pd(hd.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),hd.gfm.url=pd(hd.gfm.url,"i").replace("email",hd.gfm._extended_email).getRegex(),hd.breaks=dd({},hd.gfm,{br:pd(hd.br).replace("{2,}","*").getRegex(),text:pd(hd.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var gd={block:fd,inline:hd},Dd=ld,md=wp.exports.defaults,vd=gd.block,yd=gd.inline,kd=nd;function bd(t){return t.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function Ed(t){var e,n,r="",u=t.length;for(e=0;e<u;e++)n=t.charCodeAt(e),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}var Ad=function(){function t(e){Ui(this,t),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||md,this.options.tokenizer=this.options.tokenizer||new Dd,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var n={block:vd.normal,inline:yd.normal};this.options.pedantic?(n.block=vd.pedantic,n.inline=yd.pedantic):this.options.gfm&&(n.block=vd.gfm,this.options.breaks?n.inline=yd.breaks:n.inline=yd.gfm),this.tokenizer.rules=n}return Hi(t,[{key:"lex",value:function(t){return t=t.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(t,this.tokens,!0),this.inline(this.tokens),this.tokens}},{key:"blockTokens",value:function(t){var e,n,r,u,i,a,o=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],l=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];for(this.options.pedantic&&(t=t.replace(/^ +$/gm,""));t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(n){return!!(e=n.call(o,t,s))&&(t=t.substring(e.raw.length),s.push(e),!0)}))))if(e=this.tokenizer.space(t))t=t.substring(e.raw.length),e.type&&s.push(e);else if(e=this.tokenizer.code(t))t=t.substring(e.raw.length),(u=s[s.length-1])&&"paragraph"===u.type?(u.raw+="\n"+e.raw,u.text+="\n"+e.text):s.push(e);else if(e=this.tokenizer.fences(t))t=t.substring(e.raw.length),s.push(e);else if(e=this.tokenizer.heading(t))t=t.substring(e.raw.length),s.push(e);else if(e=this.tokenizer.nptable(t))t=t.substring(e.raw.length),s.push(e);else if(e=this.tokenizer.hr(t))t=t.substring(e.raw.length),s.push(e);else if(e=this.tokenizer.blockquote(t))t=t.substring(e.raw.length),e.tokens=this.blockTokens(e.text,[],l),s.push(e);else if(e=this.tokenizer.list(t)){for(t=t.substring(e.raw.length),r=e.items.length,n=0;n<r;n++)e.items[n].tokens=this.blockTokens(e.items[n].text,[],!1);s.push(e)}else if(e=this.tokenizer.html(t))t=t.substring(e.raw.length),s.push(e);else if(l&&(e=this.tokenizer.def(t)))t=t.substring(e.raw.length),this.tokens.links[e.tag]||(this.tokens.links[e.tag]={href:e.href,title:e.title});else if(e=this.tokenizer.table(t))t=t.substring(e.raw.length),s.push(e);else if(e=this.tokenizer.lheading(t))t=t.substring(e.raw.length),s.push(e);else if(i=t,this.options.extensions&&this.options.extensions.startBlock&&function(){var e=1/0,n=t.slice(1),r=void 0;o.options.extensions.startBlock.forEach((function(t){"number"==typeof(r=t.call(this,n))&&r>=0&&(e=Math.min(e,r))})),e<1/0&&e>=0&&(i=t.substring(0,e+1))}(),l&&(e=this.tokenizer.paragraph(i)))u=s[s.length-1],a&&"paragraph"===u.type?(u.raw+="\n"+e.raw,u.text+="\n"+e.text):s.push(e),a=i.length!==t.length,t=t.substring(e.raw.length);else if(e=this.tokenizer.text(t))t=t.substring(e.raw.length),(u=s[s.length-1])&&"text"===u.type?(u.raw+="\n"+e.raw,u.text+="\n"+e.text):s.push(e);else if(t){var c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}return s}},{key:"inline",value:function(t){var e,n,r,u,i,a,o=t.length;for(e=0;e<o;e++)switch((a=t[e]).type){case"paragraph":case"text":case"heading":a.tokens=[],this.inlineTokens(a.text,a.tokens);break;case"table":for(a.tokens={header:[],cells:[]},u=a.header.length,n=0;n<u;n++)a.tokens.header[n]=[],this.inlineTokens(a.header[n],a.tokens.header[n]);for(u=a.cells.length,n=0;n<u;n++)for(i=a.cells[n],a.tokens.cells[n]=[],r=0;r<i.length;r++)a.tokens.cells[n][r]=[],this.inlineTokens(i[r],a.tokens.cells[n][r]);break;case"blockquote":this.inline(a.tokens);break;case"list":for(u=a.items.length,n=0;n<u;n++)this.inline(a.items[n].tokens)}return t}},{key:"inlineTokens",value:function(t){var e,n,r,u,i,a,o=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=arguments.length>3&&void 0!==arguments[3]&&arguments[3],p=t;if(this.tokens.links){var d=Object.keys(this.tokens.links);if(d.length>0)for(;null!=(u=this.tokenizer.rules.inline.reflinkSearch.exec(p));)d.includes(u[0].slice(u[0].lastIndexOf("[")+1,-1))&&(p=p.slice(0,u.index)+"["+kd("a",u[0].length-2)+"]"+p.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(u=this.tokenizer.rules.inline.blockSkip.exec(p));)p=p.slice(0,u.index)+"["+kd("a",u[0].length-2)+"]"+p.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(u=this.tokenizer.rules.inline.escapedEmSt.exec(p));)p=p.slice(0,u.index)+"++"+p.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;t;)if(i||(a=""),i=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(n){return!!(e=n.call(o,t,s))&&(t=t.substring(e.raw.length),s.push(e),!0)}))))if(e=this.tokenizer.escape(t))t=t.substring(e.raw.length),s.push(e);else if(e=this.tokenizer.tag(t,l,c))t=t.substring(e.raw.length),l=e.inLink,c=e.inRawBlock,(n=s[s.length-1])&&"text"===e.type&&"text"===n.type?(n.raw+=e.raw,n.text+=e.text):s.push(e);else if(e=this.tokenizer.link(t))t=t.substring(e.raw.length),"link"===e.type&&(e.tokens=this.inlineTokens(e.text,[],!0,c)),s.push(e);else if(e=this.tokenizer.reflink(t,this.tokens.links))t=t.substring(e.raw.length),n=s[s.length-1],"link"===e.type?(e.tokens=this.inlineTokens(e.text,[],!0,c),s.push(e)):n&&"text"===e.type&&"text"===n.type?(n.raw+=e.raw,n.text+=e.text):s.push(e);else if(e=this.tokenizer.emStrong(t,p,a))t=t.substring(e.raw.length),e.tokens=this.inlineTokens(e.text,[],l,c),s.push(e);else if(e=this.tokenizer.codespan(t))t=t.substring(e.raw.length),s.push(e);else if(e=this.tokenizer.br(t))t=t.substring(e.raw.length),s.push(e);else if(e=this.tokenizer.del(t))t=t.substring(e.raw.length),e.tokens=this.inlineTokens(e.text,[],l,c),s.push(e);else if(e=this.tokenizer.autolink(t,Ed))t=t.substring(e.raw.length),s.push(e);else if(l||!(e=this.tokenizer.url(t,Ed))){if(r=t,this.options.extensions&&this.options.extensions.startInline&&function(){var e=1/0,n=t.slice(1),u=void 0;o.options.extensions.startInline.forEach((function(t){"number"==typeof(u=t.call(this,n))&&u>=0&&(e=Math.min(e,u))})),e<1/0&&e>=0&&(r=t.substring(0,e+1))}(),e=this.tokenizer.inlineText(r,c,bd))t=t.substring(e.raw.length),"_"!==e.raw.slice(-1)&&(a=e.raw.slice(-1)),i=!0,(n=s[s.length-1])&&"text"===n.type?(n.raw+=e.raw,n.text+=e.text):s.push(e);else if(t){var f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}throw new Error(f)}}else t=t.substring(e.raw.length),s.push(e);return s}}],[{key:"rules",get:function(){return{block:vd,inline:yd}}},{key:"lex",value:function(e,n){return new t(n).lex(e)}},{key:"lexInline",value:function(e,n){return new t(n).inlineTokens(e)}}]),t}(),xd=wp.exports.defaults,Fd=Gp,Cd=Kp,wd=function(){function t(e){Ui(this,t),this.options=e||xd}return Hi(t,[{key:"code",value:function(t,e,n){var r=(e||"").match(/\S*/)[0];if(this.options.highlight){var u=this.options.highlight(t,r);null!=u&&u!==t&&(n=!0,t=u)}return t=t.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+Cd(r,!0)+'">'+(n?t:Cd(t,!0))+"</code></pre>\n":"<pre><code>"+(n?t:Cd(t,!0))+"</code></pre>\n"}},{key:"blockquote",value:function(t){return"<blockquote>\n"+t+"</blockquote>\n"}},{key:"html",value:function(t){return t}},{key:"heading",value:function(t,e,n,r){return this.options.headerIds?"<h"+e+' id="'+this.options.headerPrefix+r.slug(n)+'">'+t+"</h"+e+">\n":"<h"+e+">"+t+"</h"+e+">\n"}},{key:"hr",value:function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}},{key:"list",value:function(t,e,n){var r=e?"ol":"ul";return"<"+r+(e&&1!==n?' start="'+n+'"':"")+">\n"+t+"</"+r+">\n"}},{key:"listitem",value:function(t){return"<li>"+t+"</li>\n"}},{key:"checkbox",value:function(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}},{key:"paragraph",value:function(t){return"<p>"+t+"</p>\n"}},{key:"table",value:function(t,e){return e&&(e="<tbody>"+e+"</tbody>"),"<table>\n<thead>\n"+t+"</thead>\n"+e+"</table>\n"}},{key:"tablerow",value:function(t){return"<tr>\n"+t+"</tr>\n"}},{key:"tablecell",value:function(t,e){var n=e.header?"th":"td";return(e.align?"<"+n+' align="'+e.align+'">':"<"+n+">")+t+"</"+n+">\n"}},{key:"strong",value:function(t){return"<strong>"+t+"</strong>"}},{key:"em",value:function(t){return"<em>"+t+"</em>"}},{key:"codespan",value:function(t){return"<code>"+t+"</code>"}},{key:"br",value:function(){return this.options.xhtml?"<br/>":"<br>"}},{key:"del",value:function(t){return"<del>"+t+"</del>"}},{key:"link",value:function(t,e,n){if(null===(t=Fd(this.options.sanitize,this.options.baseUrl,t)))return n;var r='<a href="'+Cd(t)+'"';return e&&(r+=' title="'+e+'"'),r+=">"+n+"</a>"}},{key:"image",value:function(t,e,n){if(null===(t=Fd(this.options.sanitize,this.options.baseUrl,t)))return n;var r='<img src="'+t+'" alt="'+n+'"';return e&&(r+=' title="'+e+'"'),r+=this.options.xhtml?"/>":">"}},{key:"text",value:function(t){return t}}]),t}(),Sd=function(){function t(){Ui(this,t)}return Hi(t,[{key:"strong",value:function(t){return t}},{key:"em",value:function(t){return t}},{key:"codespan",value:function(t){return t}},{key:"del",value:function(t){return t}},{key:"html",value:function(t){return t}},{key:"text",value:function(t){return t}},{key:"link",value:function(t,e,n){return""+n}},{key:"image",value:function(t,e,n){return""+n}},{key:"br",value:function(){return""}}]),t}(),Bd=function(){function t(){Ui(this,t),this.seen={}}return Hi(t,[{key:"serialize",value:function(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}},{key:"getNextSafeSlug",value:function(t,e){var n=t,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[t];do{n=t+"-"+ ++r}while(this.seen.hasOwnProperty(n))}return e||(this.seen[t]=r,this.seen[n]=0),n}},{key:"slug",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.serialize(t);return this.getNextSafeSlug(n,e.dryrun)}}]),t}(),Td=wd,_d=Sd,zd=Bd,Id=wp.exports.defaults,Od=Vp,Rd=function(){function t(e){Ui(this,t),this.options=e||Id,this.options.renderer=this.options.renderer||new Td,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new _d,this.slugger=new zd}return Hi(t,[{key:"parse",value:function(t){var e,n,r,u,i,a,o,s,l,c,p,d,f,h,g,D,m,v,y,k=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],b="",E=t.length;for(e=0;e<E;e++)if(c=t[e],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[c.type])||!1===(y=this.options.extensions.renderers[c.type].call(this,c))&&["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(c.type))switch(c.type){case"space":continue;case"hr":b+=this.renderer.hr();continue;case"heading":b+=this.renderer.heading(this.parseInline(c.tokens),c.depth,Od(this.parseInline(c.tokens,this.textRenderer)),this.slugger);continue;case"code":b+=this.renderer.code(c.text,c.lang,c.escaped);continue;case"table":for(s="",o="",u=c.header.length,n=0;n<u;n++)o+=this.renderer.tablecell(this.parseInline(c.tokens.header[n]),{header:!0,align:c.align[n]});for(s+=this.renderer.tablerow(o),l="",u=c.cells.length,n=0;n<u;n++){for(o="",i=(a=c.tokens.cells[n]).length,r=0;r<i;r++)o+=this.renderer.tablecell(this.parseInline(a[r]),{header:!1,align:c.align[r]});l+=this.renderer.tablerow(o)}b+=this.renderer.table(s,l);continue;case"blockquote":l=this.parse(c.tokens),b+=this.renderer.blockquote(l);continue;case"list":for(p=c.ordered,d=c.start,f=c.loose,u=c.items.length,l="",n=0;n<u;n++)D=(g=c.items[n]).checked,m=g.task,h="",g.task&&(v=this.renderer.checkbox(D),f?g.tokens.length>0&&"text"===g.tokens[0].type?(g.tokens[0].text=v+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=v+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:v}):h+=v),h+=this.parse(g.tokens,f),l+=this.renderer.listitem(h,m,D);b+=this.renderer.list(l,p,d);continue;case"html":b+=this.renderer.html(c.text);continue;case"paragraph":b+=this.renderer.paragraph(this.parseInline(c.tokens));continue;case"text":for(l=c.tokens?this.parseInline(c.tokens):c.text;e+1<E&&"text"===t[e+1].type;)l+="\n"+((c=t[++e]).tokens?this.parseInline(c.tokens):c.text);b+=k?this.renderer.paragraph(l):l;continue;default:var A='Token with "'+c.type+'" type was not found.';if(this.options.silent)return void console.error(A);throw new Error(A)}else b+=y||"";return b}},{key:"parseInline",value:function(t,e){e=e||this.renderer;var n,r,u,i="",a=t.length;for(n=0;n<a;n++)if(r=t[n],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type])||!1===(u=this.options.extensions.renderers[r.type].call(this,r))&&["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type))switch(r.type){case"escape":case"text":i+=e.text(r.text);break;case"html":i+=e.html(r.text);break;case"link":i+=e.link(r.href,r.title,this.parseInline(r.tokens,e));break;case"image":i+=e.image(r.href,r.title,r.text);break;case"strong":i+=e.strong(this.parseInline(r.tokens,e));break;case"em":i+=e.em(this.parseInline(r.tokens,e));break;case"codespan":i+=e.codespan(r.text);break;case"br":i+=e.br();break;case"del":i+=e.del(this.parseInline(r.tokens,e));break;default:var o='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(o);throw new Error(o)}else i+=u||"";return i}}],[{key:"parse",value:function(e,n){return new t(n).parse(e)}},{key:"parseInline",value:function(e,n){return new t(n).parseInline(e)}}]),t}(),Ld=Ad,$d=Rd,Pd=ld,jd=wd,Md=Sd,Nd=Bd,qd=Wp,Ud=ed,Zd=Kp,Hd=wp.exports.getDefaults,Kd=wp.exports.changeDefaults,Vd=wp.exports.defaults;function Jd(t,e,n){if(null==t)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof t)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected");if("function"==typeof e&&(n=e,e=null),e=qd({},Jd.defaults,e||{}),Ud(e),n){var r,u=e.highlight;try{r=Ld.lex(t,e)}catch(t){return n(t)}var i=function(t){var i;if(!t)try{e.walkTokens&&Jd.walkTokens(r,e.walkTokens),i=$d.parse(r,e)}catch(e){t=e}return e.highlight=u,t?n(t):n(null,i)};if(!u||u.length<3)return i();if(delete e.highlight,!r.length)return i();var a=0;return Jd.walkTokens(r,(function(t){"code"===t.type&&(a++,setTimeout((function(){u(t.text,t.lang,(function(e,n){if(e)return i(e);null!=n&&n!==t.text&&(t.text=n,t.escaped=!0),0===--a&&i()}))}),0))})),void(0===a&&i())}try{var o=Ld.lex(t,e);return e.walkTokens&&Jd.walkTokens(o,e.walkTokens),$d.parse(o,e)}catch(t){if(t.message+="\nPlease report this to https://github.com/markedjs/marked.",e.silent)return"<p>An error occurred:</p><pre>"+Zd(t.message+"",!0)+"</pre>";throw t}}Jd.options=Jd.setOptions=function(t){return qd(Jd.defaults,t),Kd(Jd.defaults),Jd},Jd.getDefaults=Hd,Jd.defaults=Vd,Jd.use=function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var u,i=qd.apply(void 0,[{}].concat(n)),a=Jd.defaults.extensions||{renderers:{},childTokens:{}};n.forEach((function(e){if(e.extensions&&(u=!0,e.extensions.forEach((function(t){if(!t.name)throw new Error("extension name required");if(t.renderer){var e=a.renderers?a.renderers[t.name]:null;a.renderers[t.name]=e?function(){for(var n=arguments.length,r=new Array(n),u=0;u<n;u++)r[u]=arguments[u];var i=t.renderer.apply(this,r);return!1===i&&(i=e.apply(this,r)),i}:t.renderer}if(t.tokenizer){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw new Error("extension level must be 'block' or 'inline'");a[t.level]?a[t.level].unshift(t.tokenizer):a[t.level]=[t.tokenizer],t.start&&("block"===t.level?a.startBlock?a.startBlock.push(t.start):a.startBlock=[t.start]:"inline"===t.level&&(a.startInline?a.startInline.push(t.start):a.startInline=[t.start]))}t.childTokens&&(a.childTokens[t.name]=t.childTokens)}))),e.renderer&&function(){var t=Jd.defaults.renderer||new jd,n=function(n){var r=t[n];t[n]=function(){for(var u=arguments.length,i=new Array(u),a=0;a<u;a++)i[a]=arguments[a];var o=e.renderer[n].apply(t,i);return!1===o&&(o=r.apply(t,i)),o}};for(var r in e.renderer)n(r);i.renderer=t}(),e.tokenizer&&function(){var t=Jd.defaults.tokenizer||new Pd,n=function(n){var r=t[n];t[n]=function(){for(var u=arguments.length,i=new Array(u),a=0;a<u;a++)i[a]=arguments[a];var o=e.tokenizer[n].apply(t,i);return!1===o&&(o=r.apply(t,i)),o}};for(var r in e.tokenizer)n(r);i.tokenizer=t}(),e.walkTokens){var n=Jd.defaults.walkTokens;i.walkTokens=function(r){e.walkTokens.call(t,r),n&&n(r)}}u&&(i.extensions=a),Jd.setOptions(i)}))},Jd.walkTokens=function(t,e){var n,r=Gi(t);try{var u=function(){var t=n.value;switch(e(t),t.type){case"table":var r,u=Gi(t.tokens.header);try{for(u.s();!(r=u.n()).done;){var i=r.value;Jd.walkTokens(i,e)}}catch(t){u.e(t)}finally{u.f()}var a,o=Gi(t.tokens.cells);try{for(o.s();!(a=o.n()).done;){var s,l=Gi(a.value);try{for(l.s();!(s=l.n()).done;){var c=s.value;Jd.walkTokens(c,e)}}catch(t){l.e(t)}finally{l.f()}}}catch(t){o.e(t)}finally{o.f()}break;case"list":Jd.walkTokens(t.items,e);break;default:Jd.defaults.extensions&&Jd.defaults.extensions.childTokens&&Jd.defaults.extensions.childTokens[t.type]?Jd.defaults.extensions.childTokens[t.type].forEach((function(n){Jd.walkTokens(t[n],e)})):t.tokens&&Jd.walkTokens(t.tokens,e)}};for(r.s();!(n=r.n()).done;)u()}catch(t){r.e(t)}finally{r.f()}},Jd.parseInline=function(t,e){if(null==t)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof t)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected");e=qd({},Jd.defaults,e||{}),Ud(e);try{var n=Ld.lexInline(t,e);return e.walkTokens&&Jd.walkTokens(n,e.walkTokens),$d.parseInline(n,e)}catch(t){if(t.message+="\nPlease report this to https://github.com/markedjs/marked.",e.silent)return"<p>An error occurred:</p><pre>"+Zd(t.message+"",!0)+"</pre>";throw t}},Jd.Parser=$d,Jd.parser=$d.parse,Jd.Renderer=jd,Jd.TextRenderer=Md,Jd.Lexer=Ld,Jd.lexer=Ld.lex,Jd.Tokenizer=Pd,Jd.Slugger=Nd,Jd.parse=Jd;var Gd=Jd,Yd=function(){var t,e=null;function n(){var n;!e||e.closed?((e=window.open("about:blank","reveal.js - Notes","width=1100,height=700")).marked=Gd,e.document.write("<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\">\n\n\t\t<title>reveal.js - Speaker View</title>\n\n\t\t<style>\n\t\t\tbody {\n\t\t\t\tfont-family: Helvetica;\n\t\t\t\tfont-size: 18px;\n\t\t\t}\n\n\t\t\t#current-slide,\n\t\t\t#upcoming-slide,\n\t\t\t#speaker-controls {\n\t\t\t\tpadding: 6px;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\t-moz-box-sizing: border-box;\n\t\t\t}\n\n\t\t\t#current-slide iframe,\n\t\t\t#upcoming-slide iframe {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tborder: 1px solid #ddd;\n\t\t\t}\n\n\t\t\t#current-slide .label,\n\t\t\t#upcoming-slide .label {\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 10px;\n\t\t\t\tleft: 10px;\n\t\t\t\tz-index: 2;\n\t\t\t}\n\n\t\t\t#connection-status {\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tz-index: 20;\n\t\t\t\tpadding: 30% 20% 20% 20%;\n\t\t\t\tfont-size: 18px;\n\t\t\t\tcolor: #222;\n\t\t\t\tbackground: #fff;\n\t\t\t\ttext-align: center;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tline-height: 1.4;\n\t\t\t}\n\n\t\t\t.overlay-element {\n\t\t\t\theight: 34px;\n\t\t\t\tline-height: 34px;\n\t\t\t\tpadding: 0 10px;\n\t\t\t\ttext-shadow: none;\n\t\t\t\tbackground: rgba( 220, 220, 220, 0.8 );\n\t\t\t\tcolor: #222;\n\t\t\t\tfont-size: 14px;\n\t\t\t}\n\n\t\t\t.overlay-element.interactive:hover {\n\t\t\t\tbackground: rgba( 220, 220, 220, 1 );\n\t\t\t}\n\n\t\t\t#current-slide {\n\t\t\t\tposition: absolute;\n\t\t\t\twidth: 60%;\n\t\t\t\theight: 100%;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tpadding-right: 0;\n\t\t\t}\n\n\t\t\t#upcoming-slide {\n\t\t\t\tposition: absolute;\n\t\t\t\twidth: 40%;\n\t\t\t\theight: 40%;\n\t\t\t\tright: 0;\n\t\t\t\ttop: 0;\n\t\t\t}\n\n\t\t\t/* Speaker controls */\n\t\t\t#speaker-controls {\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 40%;\n\t\t\t\tright: 0;\n\t\t\t\twidth: 40%;\n\t\t\t\theight: 60%;\n\t\t\t\toverflow: auto;\n\t\t\t\tfont-size: 18px;\n\t\t\t}\n\n\t\t\t\t.speaker-controls-time.hidden,\n\t\t\t\t.speaker-controls-notes.hidden {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\n\t\t\t\t.speaker-controls-time .label,\n\t\t\t\t.speaker-controls-pace .label,\n\t\t\t\t.speaker-controls-notes .label {\n\t\t\t\t\ttext-transform: uppercase;\n\t\t\t\t\tfont-weight: normal;\n\t\t\t\t\tfont-size: 0.66em;\n\t\t\t\t\tcolor: #666;\n\t\t\t\t\tmargin: 0;\n\t\t\t\t}\n\n\t\t\t\t.speaker-controls-time, .speaker-controls-pace {\n\t\t\t\t\tborder-bottom: 1px solid rgba( 200, 200, 200, 0.5 );\n\t\t\t\t\tmargin-bottom: 10px;\n\t\t\t\t\tpadding: 10px 16px;\n\t\t\t\t\tpadding-bottom: 20px;\n\t\t\t\t\tcursor: pointer;\n\t\t\t\t}\n\n\t\t\t\t.speaker-controls-time .reset-button {\n\t\t\t\t\topacity: 0;\n\t\t\t\t\tfloat: right;\n\t\t\t\t\tcolor: #666;\n\t\t\t\t\ttext-decoration: none;\n\t\t\t\t}\n\t\t\t\t.speaker-controls-time:hover .reset-button {\n\t\t\t\t\topacity: 1;\n\t\t\t\t}\n\n\t\t\t\t.speaker-controls-time .timer,\n\t\t\t\t.speaker-controls-time .clock {\n\t\t\t\t\twidth: 50%;\n\t\t\t\t}\n\n\t\t\t\t.speaker-controls-time .timer,\n\t\t\t\t.speaker-controls-time .clock,\n\t\t\t\t.speaker-controls-time .pacing .hours-value,\n\t\t\t\t.speaker-controls-time .pacing .minutes-value,\n\t\t\t\t.speaker-controls-time .pacing .seconds-value {\n\t\t\t\t\tfont-size: 1.9em;\n\t\t\t\t}\n\n\t\t\t\t.speaker-controls-time .timer {\n\t\t\t\t\tfloat: left;\n\t\t\t\t}\n\n\t\t\t\t.speaker-controls-time .clock {\n\t\t\t\t\tfloat: right;\n\t\t\t\t\ttext-align: right;\n\t\t\t\t}\n\n\t\t\t\t.speaker-controls-time span.mute {\n\t\t\t\t\topacity: 0.3;\n\t\t\t\t}\n\n\t\t\t\t.speaker-controls-time .pacing-title {\n\t\t\t\t\tmargin-top: 5px;\n\t\t\t\t}\n\n\t\t\t\t.speaker-controls-time .pacing.ahead {\n\t\t\t\t\tcolor: blue;\n\t\t\t\t}\n\n\t\t\t\t.speaker-controls-time .pacing.on-track {\n\t\t\t\t\tcolor: green;\n\t\t\t\t}\n\n\t\t\t\t.speaker-controls-time .pacing.behind {\n\t\t\t\t\tcolor: red;\n\t\t\t\t}\n\n\t\t\t\t.speaker-controls-notes {\n\t\t\t\t\tpadding: 10px 16px;\n\t\t\t\t}\n\n\t\t\t\t.speaker-controls-notes .value {\n\t\t\t\t\tmargin-top: 5px;\n\t\t\t\t\tline-height: 1.4;\n\t\t\t\t\tfont-size: 1.2em;\n\t\t\t\t}\n\n\t\t\t/* Layout selector */\n\t\t\t#speaker-layout {\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 10px;\n\t\t\t\tright: 10px;\n\t\t\t\tcolor: #222;\n\t\t\t\tz-index: 10;\n\t\t\t}\n\t\t\t\t#speaker-layout select {\n\t\t\t\t\tposition: absolute;\n\t\t\t\t\twidth: 100%;\n\t\t\t\t\theight: 100%;\n\t\t\t\t\ttop: 0;\n\t\t\t\t\tleft: 0;\n\t\t\t\t\tborder: 0;\n\t\t\t\t\tbox-shadow: 0;\n\t\t\t\t\tcursor: pointer;\n\t\t\t\t\topacity: 0;\n\n\t\t\t\t\tfont-size: 1em;\n\t\t\t\t\tbackground-color: transparent;\n\n\t\t\t\t\t-moz-appearance: none;\n\t\t\t\t\t-webkit-appearance: none;\n\t\t\t\t\t-webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n\t\t\t\t}\n\n\t\t\t\t#speaker-layout select:focus {\n\t\t\t\t\toutline: none;\n\t\t\t\t\tbox-shadow: none;\n\t\t\t\t}\n\n\t\t\t.clear {\n\t\t\t\tclear: both;\n\t\t\t}\n\n\t\t\t/* Speaker layout: Wide */\n\t\t\tbody[data-speaker-layout=\"wide\"] #current-slide,\n\t\t\tbody[data-speaker-layout=\"wide\"] #upcoming-slide {\n\t\t\t\twidth: 50%;\n\t\t\t\theight: 45%;\n\t\t\t\tpadding: 6px;\n\t\t\t}\n\n\t\t\tbody[data-speaker-layout=\"wide\"] #current-slide {\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t}\n\n\t\t\tbody[data-speaker-layout=\"wide\"] #upcoming-slide {\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 50%;\n\t\t\t}\n\n\t\t\tbody[data-speaker-layout=\"wide\"] #speaker-controls {\n\t\t\t\ttop: 45%;\n\t\t\t\tleft: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 50%;\n\t\t\t\tfont-size: 1.25em;\n\t\t\t}\n\n\t\t\t/* Speaker layout: Tall */\n\t\t\tbody[data-speaker-layout=\"tall\"] #current-slide,\n\t\t\tbody[data-speaker-layout=\"tall\"] #upcoming-slide {\n\t\t\t\twidth: 45%;\n\t\t\t\theight: 50%;\n\t\t\t\tpadding: 6px;\n\t\t\t}\n\n\t\t\tbody[data-speaker-layout=\"tall\"] #current-slide {\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t}\n\n\t\t\tbody[data-speaker-layout=\"tall\"] #upcoming-slide {\n\t\t\t\ttop: 50%;\n\t\t\t\tleft: 0;\n\t\t\t}\n\n\t\t\tbody[data-speaker-layout=\"tall\"] #speaker-controls {\n\t\t\t\tpadding-top: 40px;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 45%;\n\t\t\t\twidth: 55%;\n\t\t\t\theight: 100%;\n\t\t\t\tfont-size: 1.25em;\n\t\t\t}\n\n\t\t\t/* Speaker layout: Notes only */\n\t\t\tbody[data-speaker-layout=\"notes-only\"] #current-slide,\n\t\t\tbody[data-speaker-layout=\"notes-only\"] #upcoming-slide {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\n\t\t\tbody[data-speaker-layout=\"notes-only\"] #speaker-controls {\n\t\t\t\tpadding-top: 40px;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tfont-size: 1.25em;\n\t\t\t}\n\n\t\t\t@media screen and (max-width: 1080px) {\n\t\t\t\tbody[data-speaker-layout=\"default\"] #speaker-controls {\n\t\t\t\t\tfont-size: 16px;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@media screen and (max-width: 900px) {\n\t\t\t\tbody[data-speaker-layout=\"default\"] #speaker-controls {\n\t\t\t\t\tfont-size: 14px;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@media screen and (max-width: 800px) {\n\t\t\t\tbody[data-speaker-layout=\"default\"] #speaker-controls {\n\t\t\t\t\tfont-size: 12px;\n\t\t\t\t}\n\t\t\t}\n\n\t\t</style>\n\t</head>\n\n\t<body>\n\n\t\t<div id=\"connection-status\">Loading speaker view...</div>\n\n\t\t<div id=\"current-slide\"></div>\n\t\t<div id=\"upcoming-slide\"><span class=\"overlay-element label\">Upcoming</span></div>\n\t\t<div id=\"speaker-controls\">\n\t\t\t<div class=\"speaker-controls-time\">\n\t\t\t\t<h4 class=\"label\">Time <span class=\"reset-button\">Click to Reset</span></h4>\n\t\t\t\t<div class=\"clock\">\n\t\t\t\t\t<span class=\"clock-value\">0:00 AM</span>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"timer\">\n\t\t\t\t\t<span class=\"hours-value\">00</span><span class=\"minutes-value\">:00</span><span class=\"seconds-value\">:00</span>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"clear\"></div>\n\n\t\t\t\t<h4 class=\"label pacing-title\" style=\"display: none\">Pacing – Time to finish current slide</h4>\n\t\t\t\t<div class=\"pacing\" style=\"display: none\">\n\t\t\t\t\t<span class=\"hours-value\">00</span><span class=\"minutes-value\">:00</span><span class=\"seconds-value\">:00</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<div class=\"speaker-controls-notes hidden\">\n\t\t\t\t<h4 class=\"label\">Notes</h4>\n\t\t\t\t<div class=\"value\"></div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div id=\"speaker-layout\" class=\"overlay-element interactive\">\n\t\t\t<span class=\"speaker-layout-label\"></span>\n\t\t\t<select class=\"speaker-layout-dropdown\"></select>\n\t\t</div>\n\n\t\t<script>\n\n\t\t\t(function() {\n\n\t\t\t\tvar notes,\n\t\t\t\t\tnotesValue,\n\t\t\t\t\tcurrentState,\n\t\t\t\t\tcurrentSlide,\n\t\t\t\t\tupcomingSlide,\n\t\t\t\t\tlayoutLabel,\n\t\t\t\t\tlayoutDropdown,\n\t\t\t\t\tpendingCalls = {},\n\t\t\t\t\tlastRevealApiCallId = 0,\n\t\t\t\t\tconnected = false;\n\n\t\t\t\tvar SPEAKER_LAYOUTS = {\n\t\t\t\t\t'default': 'Default',\n\t\t\t\t\t'wide': 'Wide',\n\t\t\t\t\t'tall': 'Tall',\n\t\t\t\t\t'notes-only': 'Notes only'\n\t\t\t\t};\n\n\t\t\t\tsetupLayout();\n\n\t\t\t\tvar connectionStatus = document.querySelector( '#connection-status' );\n\t\t\t\tvar connectionTimeout = setTimeout( function() {\n\t\t\t\t\tconnectionStatus.innerHTML = 'Error connecting to main window.<br>Please try closing and reopening the speaker view.';\n\t\t\t\t}, 5000 );\n\n\t\t\t\twindow.addEventListener( 'message', function( event ) {\n\n\t\t\t\t\tclearTimeout( connectionTimeout );\n\t\t\t\t\tconnectionStatus.style.display = 'none';\n\n\t\t\t\t\tvar data = JSON.parse( event.data );\n\n\t\t\t\t\t// The overview mode is only useful to the reveal.js instance\n\t\t\t\t\t// where navigation occurs so we don't sync it\n\t\t\t\t\tif( data.state ) delete data.state.overview;\n\n\t\t\t\t\t// Messages sent by the notes plugin inside of the main window\n\t\t\t\t\tif( data && data.namespace === 'reveal-notes' ) {\n\t\t\t\t\t\tif( data.type === 'connect' ) {\n\t\t\t\t\t\t\thandleConnectMessage( data );\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if( data.type === 'state' ) {\n\t\t\t\t\t\t\thandleStateMessage( data );\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if( data.type === 'return' ) {\n\t\t\t\t\t\t\tpendingCalls[data.callId](data.result);\n\t\t\t\t\t\t\tdelete pendingCalls[data.callId];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Messages sent by the reveal.js inside of the current slide preview\n\t\t\t\t\telse if( data && data.namespace === 'reveal' ) {\n\t\t\t\t\t\tif( /ready/.test( data.eventName ) ) {\n\t\t\t\t\t\t\t// Send a message back to notify that the handshake is complete\n\t\t\t\t\t\t\twindow.opener.postMessage( JSON.stringify({ namespace: 'reveal-notes', type: 'connected'} ), '*' );\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if( /slidechanged|fragmentshown|fragmenthidden|paused|resumed/.test( data.eventName ) && currentState !== JSON.stringify( data.state ) ) {\n\n\t\t\t\t\t\t\twindow.opener.postMessage( JSON.stringify({ method: 'setState', args: [ data.state ]} ), '*' );\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t} );\n\n\t\t\t\t/**\n\t\t\t\t * Asynchronously calls the Reveal.js API of the main frame.\n\t\t\t\t */\n\t\t\t\tfunction callRevealApi( methodName, methodArguments, callback ) {\n\n\t\t\t\t\tvar callId = ++lastRevealApiCallId;\n\t\t\t\t\tpendingCalls[callId] = callback;\n\t\t\t\t\twindow.opener.postMessage( JSON.stringify( {\n\t\t\t\t\t\tnamespace: 'reveal-notes',\n\t\t\t\t\t\ttype: 'call',\n\t\t\t\t\t\tcallId: callId,\n\t\t\t\t\t\tmethodName: methodName,\n\t\t\t\t\t\targuments: methodArguments\n\t\t\t\t\t} ), '*' );\n\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * Called when the main window is trying to establish a\n\t\t\t\t * connection.\n\t\t\t\t */\n\t\t\t\tfunction handleConnectMessage( data ) {\n\n\t\t\t\t\tif( connected === false ) {\n\t\t\t\t\t\tconnected = true;\n\n\t\t\t\t\t\tsetupIframes( data );\n\t\t\t\t\t\tsetupKeyboard();\n\t\t\t\t\t\tsetupNotes();\n\t\t\t\t\t\tsetupTimer();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * Called when the main window sends an updated state.\n\t\t\t\t */\n\t\t\t\tfunction handleStateMessage( data ) {\n\n\t\t\t\t\t// Store the most recently set state to avoid circular loops\n\t\t\t\t\t// applying the same state\n\t\t\t\t\tcurrentState = JSON.stringify( data.state );\n\n\t\t\t\t\t// No need for updating the notes in case of fragment changes\n\t\t\t\t\tif ( data.notes ) {\n\t\t\t\t\t\tnotes.classList.remove( 'hidden' );\n\t\t\t\t\t\tnotesValue.style.whiteSpace = data.whitespace;\n\t\t\t\t\t\tif( data.markdown ) {\n\t\t\t\t\t\t\tnotesValue.innerHTML = marked( data.notes );\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tnotesValue.innerHTML = data.notes;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tnotes.classList.add( 'hidden' );\n\t\t\t\t\t}\n\n\t\t\t\t\t// Update the note slides\n\t\t\t\t\tcurrentSlide.contentWindow.postMessage( JSON.stringify({ method: 'setState', args: [ data.state ] }), '*' );\n\t\t\t\t\tupcomingSlide.contentWindow.postMessage( JSON.stringify({ method: 'setState', args: [ data.state ] }), '*' );\n\t\t\t\t\tupcomingSlide.contentWindow.postMessage( JSON.stringify({ method: 'next' }), '*' );\n\n\t\t\t\t}\n\n\t\t\t\t// Limit to max one state update per X ms\n\t\t\t\thandleStateMessage = debounce( handleStateMessage, 200 );\n\n\t\t\t\t/**\n\t\t\t\t * Forward keyboard events to the current slide window.\n\t\t\t\t * This enables keyboard events to work even if focus\n\t\t\t\t * isn't set on the current slide iframe.\n\t\t\t\t *\n\t\t\t\t * Block F5 default handling, it reloads and disconnects\n\t\t\t\t * the speaker notes window.\n\t\t\t\t */\n\t\t\t\tfunction setupKeyboard() {\n\n\t\t\t\t\tdocument.addEventListener( 'keydown', function( event ) {\n\t\t\t\t\t\tif( event.keyCode === 116 || ( event.metaKey && event.keyCode === 82 ) ) {\n\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcurrentSlide.contentWindow.postMessage( JSON.stringify({ method: 'triggerKey', args: [ event.keyCode ] }), '*' );\n\t\t\t\t\t} );\n\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * Creates the preview iframes.\n\t\t\t\t */\n\t\t\t\tfunction setupIframes( data ) {\n\n\t\t\t\t\tvar params = [\n\t\t\t\t\t\t'receiver',\n\t\t\t\t\t\t'progress=false',\n\t\t\t\t\t\t'history=false',\n\t\t\t\t\t\t'transition=none',\n\t\t\t\t\t\t'autoSlide=0',\n\t\t\t\t\t\t'backgroundTransition=none'\n\t\t\t\t\t].join( '&' );\n\n\t\t\t\t\tvar urlSeparator = /\\?/.test(data.url) ? '&' : '?';\n\t\t\t\t\tvar hash = '#/' + data.state.indexh + '/' + data.state.indexv;\n\t\t\t\t\tvar currentURL = data.url + urlSeparator + params + '&postMessageEvents=true' + hash;\n\t\t\t\t\tvar upcomingURL = data.url + urlSeparator + params + '&controls=false' + hash;\n\n\t\t\t\t\tcurrentSlide = document.createElement( 'iframe' );\n\t\t\t\t\tcurrentSlide.setAttribute( 'width', 1280 );\n\t\t\t\t\tcurrentSlide.setAttribute( 'height', 1024 );\n\t\t\t\t\tcurrentSlide.setAttribute( 'src', currentURL );\n\t\t\t\t\tdocument.querySelector( '#current-slide' ).appendChild( currentSlide );\n\n\t\t\t\t\tupcomingSlide = document.createElement( 'iframe' );\n\t\t\t\t\tupcomingSlide.setAttribute( 'width', 640 );\n\t\t\t\t\tupcomingSlide.setAttribute( 'height', 512 );\n\t\t\t\t\tupcomingSlide.setAttribute( 'src', upcomingURL );\n\t\t\t\t\tdocument.querySelector( '#upcoming-slide' ).appendChild( upcomingSlide );\n\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * Setup the notes UI.\n\t\t\t\t */\n\t\t\t\tfunction setupNotes() {\n\n\t\t\t\t\tnotes = document.querySelector( '.speaker-controls-notes' );\n\t\t\t\t\tnotesValue = document.querySelector( '.speaker-controls-notes .value' );\n\n\t\t\t\t}\n\n\t\t\t\tfunction getTimings( callback ) {\n\n\t\t\t\t\tcallRevealApi( 'getSlidesAttributes', [], function ( slideAttributes ) {\n\t\t\t\t\t\tcallRevealApi( 'getConfig', [], function ( config ) {\n\t\t\t\t\t\t\tvar totalTime = config.totalTime;\n\t\t\t\t\t\t\tvar minTimePerSlide = config.minimumTimePerSlide || 0;\n\t\t\t\t\t\t\tvar defaultTiming = config.defaultTiming;\n\t\t\t\t\t\t\tif ((defaultTiming == null) && (totalTime == null)) {\n\t\t\t\t\t\t\t\tcallback(null);\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Setting totalTime overrides defaultTiming\n\t\t\t\t\t\t\tif (totalTime) {\n\t\t\t\t\t\t\t\tdefaultTiming = 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tvar timings = [];\n\t\t\t\t\t\t\tfor ( var i in slideAttributes ) {\n\t\t\t\t\t\t\t\tvar slide = slideAttributes[ i ];\n\t\t\t\t\t\t\t\tvar timing = defaultTiming;\n\t\t\t\t\t\t\t\tif( slide.hasOwnProperty( 'data-timing' )) {\n\t\t\t\t\t\t\t\t\tvar t = slide[ 'data-timing' ];\n\t\t\t\t\t\t\t\t\ttiming = parseInt(t);\n\t\t\t\t\t\t\t\t\tif( isNaN(timing) ) {\n\t\t\t\t\t\t\t\t\t\tconsole.warn(\"Could not parse timing '\" + t + \"' of slide \" + i + \"; using default of \" + defaultTiming);\n\t\t\t\t\t\t\t\t\t\ttiming = defaultTiming;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\ttimings.push(timing);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif ( totalTime ) {\n\t\t\t\t\t\t\t\t// After we've allocated time to individual slides, we summarize it and\n\t\t\t\t\t\t\t\t// subtract it from the total time\n\t\t\t\t\t\t\t\tvar remainingTime = totalTime - timings.reduce( function(a, b) { return a + b; }, 0 );\n\t\t\t\t\t\t\t\t// The remaining time is divided by the number of slides that have 0 seconds\n\t\t\t\t\t\t\t\t// allocated at the moment, giving the average time-per-slide on the remaining slides\n\t\t\t\t\t\t\t\tvar remainingSlides = (timings.filter( function(x) { return x == 0 }) ).length\n\t\t\t\t\t\t\t\tvar timePerSlide = Math.round( remainingTime / remainingSlides, 0 )\n\t\t\t\t\t\t\t\t// And now we replace every zero-value timing with that average\n\t\t\t\t\t\t\t\ttimings = timings.map( function(x) { return (x==0 ? timePerSlide : x) } );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tvar slidesUnderMinimum = timings.filter( function(x) { return (x < minTimePerSlide) } ).length\n\t\t\t\t\t\t\tif ( slidesUnderMinimum ) {\n\t\t\t\t\t\t\t\tmessage = \"The pacing time for \" + slidesUnderMinimum + \" slide(s) is under the configured minimum of \" + minTimePerSlide + \" seconds. Check the data-timing attribute on individual slides, or consider increasing the totalTime or minimumTimePerSlide configuration options (or removing some slides).\";\n\t\t\t\t\t\t\t\talert(message);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcallback( timings );\n\t\t\t\t\t\t} );\n\t\t\t\t\t} );\n\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * Return the number of seconds allocated for presenting\n\t\t\t\t * all slides up to and including this one.\n\t\t\t\t */\n\t\t\t\tfunction getTimeAllocated( timings, callback ) {\n\n\t\t\t\t\tcallRevealApi( 'getSlidePastCount', [], function ( currentSlide ) {\n\t\t\t\t\t\tvar allocated = 0;\n\t\t\t\t\t\tfor (var i in timings.slice(0, currentSlide + 1)) {\n\t\t\t\t\t\t\tallocated += timings[i];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcallback( allocated );\n\t\t\t\t\t} );\n\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * Create the timer and clock and start updating them\n\t\t\t\t * at an interval.\n\t\t\t\t */\n\t\t\t\tfunction setupTimer() {\n\n\t\t\t\t\tvar start = new Date(),\n\t\t\t\t\ttimeEl = document.querySelector( '.speaker-controls-time' ),\n\t\t\t\t\tclockEl = timeEl.querySelector( '.clock-value' ),\n\t\t\t\t\thoursEl = timeEl.querySelector( '.hours-value' ),\n\t\t\t\t\tminutesEl = timeEl.querySelector( '.minutes-value' ),\n\t\t\t\t\tsecondsEl = timeEl.querySelector( '.seconds-value' ),\n\t\t\t\t\tpacingTitleEl = timeEl.querySelector( '.pacing-title' ),\n\t\t\t\t\tpacingEl = timeEl.querySelector( '.pacing' ),\n\t\t\t\t\tpacingHoursEl = pacingEl.querySelector( '.hours-value' ),\n\t\t\t\t\tpacingMinutesEl = pacingEl.querySelector( '.minutes-value' ),\n\t\t\t\t\tpacingSecondsEl = pacingEl.querySelector( '.seconds-value' );\n\n\t\t\t\t\tvar timings = null;\n\t\t\t\t\tgetTimings( function ( _timings ) {\n\n\t\t\t\t\t\ttimings = _timings;\n\t\t\t\t\t\tif (_timings !== null) {\n\t\t\t\t\t\t\tpacingTitleEl.style.removeProperty('display');\n\t\t\t\t\t\t\tpacingEl.style.removeProperty('display');\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Update once directly\n\t\t\t\t\t\t_updateTimer();\n\n\t\t\t\t\t\t// Then update every second\n\t\t\t\t\t\tsetInterval( _updateTimer, 1000 );\n\n\t\t\t\t\t} );\n\n\n\t\t\t\t\tfunction _resetTimer() {\n\n\t\t\t\t\t\tif (timings == null) {\n\t\t\t\t\t\t\tstart = new Date();\n\t\t\t\t\t\t\t_updateTimer();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t// Reset timer to beginning of current slide\n\t\t\t\t\t\t\tgetTimeAllocated( timings, function ( slideEndTimingSeconds ) {\n\t\t\t\t\t\t\t\tvar slideEndTiming = slideEndTimingSeconds * 1000;\n\t\t\t\t\t\t\t\tcallRevealApi( 'getSlidePastCount', [], function ( currentSlide ) {\n\t\t\t\t\t\t\t\t\tvar currentSlideTiming = timings[currentSlide] * 1000;\n\t\t\t\t\t\t\t\t\tvar previousSlidesTiming = slideEndTiming - currentSlideTiming;\n\t\t\t\t\t\t\t\t\tvar now = new Date();\n\t\t\t\t\t\t\t\t\tstart = new Date(now.getTime() - previousSlidesTiming);\n\t\t\t\t\t\t\t\t\t_updateTimer();\n\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\ttimeEl.addEventListener( 'click', function() {\n\t\t\t\t\t\t_resetTimer();\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t} );\n\n\t\t\t\t\tfunction _displayTime( hrEl, minEl, secEl, time) {\n\n\t\t\t\t\t\tvar sign = Math.sign(time) == -1 ? \"-\" : \"\";\n\t\t\t\t\t\ttime = Math.abs(Math.round(time / 1000));\n\t\t\t\t\t\tvar seconds = time % 60;\n\t\t\t\t\t\tvar minutes = Math.floor( time / 60 ) % 60 ;\n\t\t\t\t\t\tvar hours = Math.floor( time / ( 60 * 60 )) ;\n\t\t\t\t\t\thrEl.innerHTML = sign + zeroPadInteger( hours );\n\t\t\t\t\t\tif (hours == 0) {\n\t\t\t\t\t\t\thrEl.classList.add( 'mute' );\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\thrEl.classList.remove( 'mute' );\n\t\t\t\t\t\t}\n\t\t\t\t\t\tminEl.innerHTML = ':' + zeroPadInteger( minutes );\n\t\t\t\t\t\tif (hours == 0 && minutes == 0) {\n\t\t\t\t\t\t\tminEl.classList.add( 'mute' );\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tminEl.classList.remove( 'mute' );\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsecEl.innerHTML = ':' + zeroPadInteger( seconds );\n\t\t\t\t\t}\n\n\t\t\t\t\tfunction _updateTimer() {\n\n\t\t\t\t\t\tvar diff, hours, minutes, seconds,\n\t\t\t\t\t\tnow = new Date();\n\n\t\t\t\t\t\tdiff = now.getTime() - start.getTime();\n\n\t\t\t\t\t\tclockEl.innerHTML = now.toLocaleTimeString( 'en-US', { hour12: true, hour: '2-digit', minute:'2-digit' } );\n\t\t\t\t\t\t_displayTime( hoursEl, minutesEl, secondsEl, diff );\n\t\t\t\t\t\tif (timings !== null) {\n\t\t\t\t\t\t\t_updatePacing(diff);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfunction _updatePacing(diff) {\n\n\t\t\t\t\t\tgetTimeAllocated( timings, function ( slideEndTimingSeconds ) {\n\t\t\t\t\t\t\tvar slideEndTiming = slideEndTimingSeconds * 1000;\n\n\t\t\t\t\t\t\tcallRevealApi( 'getSlidePastCount', [], function ( currentSlide ) {\n\t\t\t\t\t\t\t\tvar currentSlideTiming = timings[currentSlide] * 1000;\n\t\t\t\t\t\t\t\tvar timeLeftCurrentSlide = slideEndTiming - diff;\n\t\t\t\t\t\t\t\tif (timeLeftCurrentSlide < 0) {\n\t\t\t\t\t\t\t\t\tpacingEl.className = 'pacing behind';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if (timeLeftCurrentSlide < currentSlideTiming) {\n\t\t\t\t\t\t\t\t\tpacingEl.className = 'pacing on-track';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tpacingEl.className = 'pacing ahead';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t_displayTime( pacingHoursEl, pacingMinutesEl, pacingSecondsEl, timeLeftCurrentSlide );\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t} );\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * Sets up the speaker view layout and layout selector.\n\t\t\t\t */\n\t\t\t\tfunction setupLayout() {\n\n\t\t\t\t\tlayoutDropdown = document.querySelector( '.speaker-layout-dropdown' );\n\t\t\t\t\tlayoutLabel = document.querySelector( '.speaker-layout-label' );\n\n\t\t\t\t\t// Render the list of available layouts\n\t\t\t\t\tfor( var id in SPEAKER_LAYOUTS ) {\n\t\t\t\t\t\tvar option = document.createElement( 'option' );\n\t\t\t\t\t\toption.setAttribute( 'value', id );\n\t\t\t\t\t\toption.textContent = SPEAKER_LAYOUTS[ id ];\n\t\t\t\t\t\tlayoutDropdown.appendChild( option );\n\t\t\t\t\t}\n\n\t\t\t\t\t// Monitor the dropdown for changes\n\t\t\t\t\tlayoutDropdown.addEventListener( 'change', function( event ) {\n\n\t\t\t\t\t\tsetLayout( layoutDropdown.value );\n\n\t\t\t\t\t}, false );\n\n\t\t\t\t\t// Restore any currently persisted layout\n\t\t\t\t\tsetLayout( getLayout() );\n\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * Sets a new speaker view layout. The layout is persisted\n\t\t\t\t * in local storage.\n\t\t\t\t */\n\t\t\t\tfunction setLayout( value ) {\n\n\t\t\t\t\tvar title = SPEAKER_LAYOUTS[ value ];\n\n\t\t\t\t\tlayoutLabel.innerHTML = 'Layout' + ( title ? ( ': ' + title ) : '' );\n\t\t\t\t\tlayoutDropdown.value = value;\n\n\t\t\t\t\tdocument.body.setAttribute( 'data-speaker-layout', value );\n\n\t\t\t\t\t// Persist locally\n\t\t\t\t\tif( supportsLocalStorage() ) {\n\t\t\t\t\t\twindow.localStorage.setItem( 'reveal-speaker-layout', value );\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * Returns the ID of the most recently set speaker layout\n\t\t\t\t * or our default layout if none has been set.\n\t\t\t\t */\n\t\t\t\tfunction getLayout() {\n\n\t\t\t\t\tif( supportsLocalStorage() ) {\n\t\t\t\t\t\tvar layout = window.localStorage.getItem( 'reveal-speaker-layout' );\n\t\t\t\t\t\tif( layout ) {\n\t\t\t\t\t\t\treturn layout;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Default to the first record in the layouts hash\n\t\t\t\t\tfor( var id in SPEAKER_LAYOUTS ) {\n\t\t\t\t\t\treturn id;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tfunction supportsLocalStorage() {\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlocalStorage.setItem('test', 'test');\n\t\t\t\t\t\tlocalStorage.removeItem('test');\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\tcatch( e ) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tfunction zeroPadInteger( num ) {\n\n\t\t\t\t\tvar str = '00' + parseInt( num );\n\t\t\t\t\treturn str.substring( str.length - 2 );\n\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * Limits the frequency at which a function can be called.\n\t\t\t\t */\n\t\t\t\tfunction debounce( fn, ms ) {\n\n\t\t\t\t\tvar lastTime = 0,\n\t\t\t\t\t\ttimeout;\n\n\t\t\t\t\treturn function() {\n\n\t\t\t\t\t\tvar args = arguments;\n\t\t\t\t\t\tvar context = this;\n\n\t\t\t\t\t\tclearTimeout( timeout );\n\n\t\t\t\t\t\tvar timeSinceLastCall = Date.now() - lastTime;\n\t\t\t\t\t\tif( timeSinceLastCall > ms ) {\n\t\t\t\t\t\t\tfn.apply( context, args );\n\t\t\t\t\t\t\tlastTime = Date.now();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\ttimeout = setTimeout( function() {\n\t\t\t\t\t\t\t\tfn.apply( context, args );\n\t\t\t\t\t\t\t\tlastTime = Date.now();\n\t\t\t\t\t\t\t}, ms - timeSinceLastCall );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t})();\n\n\t\t<\/script>\n\t</body>\n</html>"),e?(n=setInterval((function(){e.postMessage(JSON.stringify({namespace:"reveal-notes",type:"connect",url:window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,state:t.getState()}),"*")}),500),window.addEventListener("message",(function(u){var i,a,o,s,l=JSON.parse(u.data);l&&"reveal-notes"===l.namespace&&"connected"===l.type&&(clearInterval(n),t.on("slidechanged",r),t.on("fragmentshown",r),t.on("fragmenthidden",r),t.on("overviewhidden",r),t.on("overviewshown",r),t.on("paused",r),t.on("resumed",r),r()),l&&"reveal-notes"===l.namespace&&"call"===l.type&&(i=l.methodName,a=l.arguments,o=l.callId,s=t[i].apply(t,a),e.postMessage(JSON.stringify({namespace:"reveal-notes",type:"return",result:s,callId:o}),"*"))}))):alert("Speaker view popup failed to open. Please make sure popups are allowed and reopen the speaker view.")):e.focus();function r(n){var r=t.getCurrentSlide(),u=r.querySelector("aside.notes"),i=r.querySelector(".current-fragment"),a={namespace:"reveal-notes",type:"state",notes:"",markdown:!1,whitespace:"normal",state:t.getState()};if(r.hasAttribute("data-notes")&&(a.notes=r.getAttribute("data-notes"),a.whitespace="pre-wrap"),i){var o=i.querySelector("aside.notes");o?u=o:i.hasAttribute("data-notes")&&(a.notes=i.getAttribute("data-notes"),a.whitespace="pre-wrap",u=null)}u&&(a.notes=u.innerHTML,a.markdown="string"==typeof u.getAttribute("data-markdown")),e.postMessage(JSON.stringify(a),"*")}}return{id:"notes",init:function(e){t=e,/receiver/i.test(window.location.search)||(null!==window.location.search.match(/(\?|\&)notes/gi)&&n(),t.addKeyBinding({keyCode:83,key:"S",description:"Speaker notes view"},(function(){n()})))},open:n}};export{Yd as default};
|