text: !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).RevealNotes=e()}(this,(function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(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 r(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){i=!0,a=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(t,e)||a(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 a(t,e){if(t){if("string"==typeof t)return o(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)?o(t,e):void 0}}function o(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 s(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=a(t))){var e=0,n=function(){};return{s:n,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:n}}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 r,i,o=!0,s=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(t,e,n){return t(n={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&n.path)}},n.exports),n.exports}var c=function(t){return t&&t.Math==Math&&t},f=c("object"==("undefined"==typeof globalThis?"undefined":t(globalThis))&&globalThis)||c("object"==("undefined"==typeof window?"undefined":t(window))&&window)||c("object"==("undefined"==typeof self?"undefined":t(self))&&self)||c("object"==t(l)&&l)||Function("return this")(),p=function(t){try{return!!t()}catch(t){return!0}},d=function(e){return"object"===t(e)?null!==e:"function"==typeof e},h=ya("match"),g=function(t){var e;return d(t)&&(void 0!==(e=t[h])?!!e:"RegExp"==Sa(t))},v=function(t){if(g(t))throw TypeError("The method doesn't accept regular expressions");return t},m=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},y=ya("match"),b=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[y]=!1,"/./"[t](e)}catch(t){}}return!1};Fa({target:"String",proto:!0,forced:!b("includes")},{includes:function(t){return!!~String(m(this)).indexOf(v(t),arguments.length>1?arguments[1]:void 0)}});var k=function(t){if(!d(t))throw TypeError(String(t)+" is not an object");return t},w=!p((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),x=f.document,S=d(x)&&d(x.createElement),E=function(t){return S?x.createElement(t):{}},T=!w&&!p((function(){return 7!=Object.defineProperty(E("div"),"a",{get:function(){return 7}}).a})),A=function(t,e){if(!d(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!d(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!d(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!d(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},_=Object.defineProperty,O={f:w?_:function(t,e,n){if(k(t),e=A(e,!0),k(n),T)try{return _(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},z=function(t){return Object(m(t))},R=p((function(){N(1)}));Fa({target:"Object",stat:!0,forced:R},{keys:function(t){return N(z(t))}});var I,j={}.hasOwnProperty,L=function(t,e){return j.call(t,e)},P={},C=St.indexOf,$=function(t,e){var n,r=$a(t),i=0,a=[];for(n in r)!L(P,n)&&L(r,n)&&a.push(n);for(;e.length>i;)L(r,n=e[i++])&&(~C(a,n)||a.push(n));return a},M=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],N=Object.keys||function(t){return $(t,M)},D=w?Object.defineProperties:function(t,e){k(t);for(var n,r=N(e),i=r.length,a=0;i>a;)O.f(t,n=r[a++],e[n]);return t},q=f,U=function(t){return"function"==typeof t?t:void 0},F=function(t,e){return arguments.length<2?U(q[t])||U(f[t]):q[t]&&q[t][e]||f[t]&&f[t][e]},W=F("document","documentElement"),Z=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},K=w?function(t,e,n){return O.f(t,e,Z(1,n))}:function(t,e,n){return t[e]=n,t},H=function(t,e){try{K(f,t,e)}catch(n){f[t]=e}return e},J=f["__core-js_shared__"]||H("__core-js_shared__",{}),G=u((function(t){(t.exports=function(t,e){return J[t]||(J[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),V=0,B=Math.random(),Y=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++V+B).toString(36)},X=G("keys"),Q=function(t){return X[t]||(X[t]=Y(t))},tt=Q("IE_PROTO"),et=function(){},nt=function(t){return"<script>"+t+"<\/script>"},rt=function(){try{I=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;rt=I?function(t){t.write(nt("")),t.close();var e=t.parentWindow.Object;return t=null,e}(I):((e=E("iframe")).style.display="none",W.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(nt("document.F=Object")),t.close(),t.F);for(var n=M.length;n--;)delete rt.prototype[M[n]];return rt()};P[tt]=!0;var it=Object.create||function(t,e){var n;return null!==t?(et.prototype=k(t),n=new et,et.prototype=null,n[tt]=t):n=rt(),void 0===e?n:D(n,e)},at=ya("unscopables"),ot=Array.prototype;null==ot[at]&&O.f(ot,at,{configurable:!0,value:it(null)});var st=function(t){ot[at][t]=!0},lt=Object.defineProperty,ut={},ct=function(t){throw t},ft=function(t,e){if(L(ut,t))return ut[t];e||(e={});var n=[][t],r=!!L(e,"ACCESSORS")&&e.ACCESSORS,i=L(e,0)?e[0]:ct,a=L(e,1)?e[1]:void 0;return ut[t]=!!n&&!p((function(){if(r&&!w)return!0;var t={length:-1};r?lt(t,1,{enumerable:!0,get:ct}):t[1]=1,n.call(t,i,a)}))},pt=St.includes,dt=ft("indexOf",{ACCESSORS:!0,1:0});Fa({target:"Array",proto:!0,forced:!dt},{includes:function(t){return pt(this,t,arguments.length>1?arguments[1]:void 0)}}),st("includes");var ht=Math.ceil,gt=Math.floor,vt=function(t){return isNaN(t=+t)?0:(t>0?gt:ht)(t)},mt=Math.min,yt=function(t){return t>0?mt(vt(t),9007199254740991):0},bt=Math.max,kt=Math.min,wt=function(t,e){var n=vt(t);return n<0?bt(n+e,0):kt(n,e)},xt=function(t){return function(e,n,r){var i,a=$a(e),o=yt(a.length),s=wt(r,o);if(t&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}},St={includes:xt(!0),indexOf:xt(!1)},Et=function(t,e){var n=[][t];return!!n&&p((function(){n.call(null,e||function(){throw 1},1)}))},Tt=St.indexOf,At=[].indexOf,_t=!!At&&1/[1].indexOf(1,-0)<0,Ot=Et("indexOf"),zt=ft("indexOf",{ACCESSORS:!0,1:0});Fa({target:"Array",proto:!0,forced:_t||!Ot||!zt},{indexOf:function(t){return _t?At.apply(this,arguments)||0:Tt(this,t,arguments.length>1?arguments[1]:void 0)}});var Rt,It,jt=function(t,e,n){var r=A(e);r in t?O.f(t,r,Z(0,n)):t[r]=n},Lt=ya("species"),Pt=function(t,e){var n;return Ea(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Ea(n.prototype)?d(n)&&null===(n=n[Lt])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Ct=F("navigator","userAgent")||"",$t=f.process,Mt=$t&&$t.versions,Nt=Mt&&Mt.v8;Nt?It=(Rt=Nt.split("."))[0]+Rt[1]:Ct&&(!(Rt=Ct.match(/Edge\/(\d+)/))||Rt[1]>=74)&&(Rt=Ct.match(/Chrome\/(\d+)/))&&(It=Rt[1]);var Dt=It&&+It,qt=ya("species"),Ut=function(t){return Dt>=51||!p((function(){var e=[];return(e.constructor={})[qt]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Ft=ya("isConcatSpreadable"),Wt=Dt>=51||!p((function(){var t=[];return t[Ft]=!1,t.concat()[0]!==t})),Zt=Ut("concat"),Kt=function(t){if(!d(t))return!1;var e=t[Ft];return void 0!==e?!!e:Ea(t)};Fa({target:"Array",proto:!0,forced:!Wt||!Zt},{concat:function(t){var e,n,r,i,a,o=z(this),s=Pt(o,0),l=0;for(e=-1,r=arguments.length;e<r;e++)if(a=-1===e?o:arguments[e],Kt(a)){if(l+(i=yt(a.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,l++)n in a&&jt(s,l,a[n])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");jt(s,l++,a)}return s.length=l,s}});var Ht=function(){var t=k(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};function Jt(t,e){return RegExp(t,e)}var Gt={UNSUPPORTED_Y:p((function(){var t=Jt("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:p((function(){var t=Jt("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))};w&&("g"!=/./g.flags||Gt.UNSUPPORTED_Y)&&O.f(RegExp.prototype,"flags",{configurable:!0,get:Ht});var Vt=[].join,Bt=Ca!=Object,Yt=Et("join",",");Fa({target:"Array",proto:!0,forced:Bt||!Yt},{join:function(t){return Vt.call($a(this),void 0===t?",":t)}});var Xt=Function.toString;"function"!=typeof J.inspectSource&&(J.inspectSource=function(t){return Xt.call(t)});var Qt=J.inspectSource,te={},ee={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},ne=ya("iterator"),re=ya("toStringTag"),ie=Le.values;for(var ae in ee){var oe=f[ae],se=oe&&oe.prototype;if(se){if(se[ne]!==ie)try{K(se,ne,ie)}catch(t){se[ne]=ie}if(se[re]||K(se,re,ae),ee[ae])for(var le in Le)if(se[le]!==Le[le])try{K(se,le,Le[le])}catch(t){se[le]=Le[le]}}}var ue=!p((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),ce=p((function(){ve(1)}));Fa({target:"Object",stat:!0,forced:ce,sham:!ue},{getPrototypeOf:function(t){return ve(z(t))}});var fe,pe,de,he=Q("IE_PROTO"),ge=Object.prototype,ve=ue?Object.getPrototypeOf:function(t){return t=z(t),L(t,he)?t[he]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?ge:null},me=ya("iterator"),ye=!1;[].keys&&("next"in(de=[].keys())?(pe=ve(ve(de)))!==Object.prototype&&(fe=pe):ye=!0),null==fe&&(fe={}),L(fe,me)||K(fe,me,(function(){return this}));var be={IteratorPrototype:fe,BUGGY_SAFARI_ITERATORS:ye},ke=O.f,we=ya("toStringTag"),xe=function(t,e,n){t&&!L(t=n?t:t.prototype,we)&&ke(t,we,{configurable:!0,value:e})},Se=be.IteratorPrototype,Ee=function(){return this},Te=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return k(n),function(t){if(!d(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),Ae=be.IteratorPrototype,_e=be.BUGGY_SAFARI_ITERATORS,Oe=ya("iterator"),ze=function(){return this},Re=function(t,e,n,r,i,a,o){!function(t,e,n){var r=e+" Iterator";t.prototype=it(Se,{next:Z(1,n)}),xe(t,r,!1),te[r]=Ee}(n,e,r);var s,l,u,c=function(t){if(t===i&&g)return g;if(!_e&&t in d)return d[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,h=d[Oe]||d["@@iterator"]||i&&d[i],g=!_e&&h||c(i),v="Array"==e&&d.entries||h;if(v&&(s=ve(v.call(new t)),Ae!==Object.prototype&&s.next&&(ve(s)!==Ae&&(Te?Te(s,Ae):"function"!=typeof s[Oe]&&K(s,Oe,ze)),xe(s,f,!0))),"values"==i&&h&&"values"!==h.name&&(p=!0,g=function(){return h.call(this)}),d[Oe]!==g&&K(d,Oe,g),te[e]=g,i)if(l={values:c("values"),keys:a?g:c("keys"),entries:c("entries")},o)for(u in l)(_e||p||!(u in d))&&wr(d,u,l[u]);else Fa({target:e,proto:!0,forced:_e||p},l);return l},Ie=kr.set,je=kr.getterFor("Array Iterator"),Le=Re(Array,"Array",(function(t,e){Ie(this,{type:"Array Iterator",target:$a(t),index:0,kind:e})}),(function(){var t=je(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");te.Arguments=te.Array,st("keys"),st("values"),st("entries");var Pe=function(t){return function(e,n){var r,i,a=String(m(e)),o=vt(n),s=a.length;return o<0||o>=s?t?"":void 0:(r=a.charCodeAt(o))<55296||r>56319||o+1===s||(i=a.charCodeAt(o+1))<56320||i>57343?t?a.charAt(o):r:t?a.slice(o,o+2):i-56320+(r-55296<<10)+65536}},Ce={codeAt:Pe(!1),charAt:Pe(!0)},$e=Ce.charAt,Me=kr.set,Ne=kr.getterFor("String Iterator");Re(String,"String",(function(t){Me(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=Ne(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=$e(n,r),e.index+=t.length,{value:t,done:!1})}));var De=Object.isExtensible,qe=p((function(){De(1)}));Fa({target:"Object",stat:!0,forced:qe},{isExtensible:function(t){return!!d(t)&&(!De||De(t))}});var Ue=function(t,e,n){for(var r in e)wr(t,r,e[r],n);return t},Fe=He.onFreeze,We=Object.preventExtensions,Ze=p((function(){We(1)}));Fa({target:"Object",stat:!0,forced:Ze,sham:!Ke},{preventExtensions:function(t){return We&&d(t)?We(Fe(t)):t}});var Ke=!p((function(){return Object.isExtensible(Object.preventExtensions({}))})),He=u((function(e){var n=O.f,r=Y("meta"),i=0,a=Object.isExtensible||function(){return!0},o=function(t){n(t,r,{value:{objectID:"O"+ ++i,weakData:{}}})},s=e.exports={REQUIRED:!1,fastKey:function(e,n){if(!d(e))return"symbol"==t(e)?e:("string"==typeof e?"S":"P")+e;if(!L(e,r)){if(!a(e))return"F";if(!n)return"E";o(e)}return e[r].objectID},getWeakData:function(t,e){if(!L(t,r)){if(!a(t))return!0;if(!e)return!1;o(t)}return t[r].weakData},onFreeze:function(t){return Ke&&s.REQUIRED&&a(t)&&!L(t,r)&&o(t),t}};P[r]=!0}));He.REQUIRED,He.fastKey,He.getWeakData,He.onFreeze;for(var Je in ee){var Ge=f[Je],Ve=Ge&&Ge.prototype;if(Ve&&Ve.forEach!==Sn)try{K(Ve,"forEach",Sn)}catch(t){Ve.forEach=Sn}}var Be=bn.every,Ye=Et("every"),Xe=ft("every");Fa({target:"Array",proto:!0,forced:!Ye||!Xe},{every:function(t){return Be(this,t,arguments.length>1?arguments[1]:void 0)}});var Qe=bn.filter,tn=Ut("filter"),en=ft("filter");Fa({target:"Array",proto:!0,forced:!tn||!en},{filter:function(t){return Qe(this,t,arguments.length>1?arguments[1]:void 0)}});var nn=bn.find,rn=!0,an=ft("find");"find"in[]&&Array(1).find((function(){rn=!1})),Fa({target:"Array",proto:!0,forced:rn||!an},{find:function(t){return nn(this,t,arguments.length>1?arguments[1]:void 0)}}),st("find");var on=bn.findIndex,sn=!0,ln=ft("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){sn=!1})),Fa({target:"Array",proto:!0,forced:sn||!ln},{findIndex:function(t){return on(this,t,arguments.length>1?arguments[1]:void 0)}}),st("findIndex");var un=bn.map,cn=Ut("map"),fn=ft("map");Fa({target:"Array",proto:!0,forced:!cn||!fn},{map:function(t){return un(this,t,arguments.length>1?arguments[1]:void 0)}});var pn=bn.some,dn=Et("some"),hn=ft("some");Fa({target:"Array",proto:!0,forced:!dn||!hn},{some:function(t){return pn(this,t,arguments.length>1?arguments[1]:void 0)}});var gn=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},vn=function(t,e,n){if(gn(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}},mn=[].push,yn=function(t){var e=1==t,n=2==t,r=3==t,i=4==t,a=6==t,o=5==t||a;return function(s,l,u,c){for(var f,p,d=z(s),h=Ca(d),g=vn(l,u,3),v=yt(h.length),m=0,y=c||Pt,b=e?y(s,v):n?y(s,0):void 0;v>m;m++)if((o||m in h)&&(p=g(f=h[m],m,d),t))if(e)b[m]=p;else if(p)switch(t){case 3:return!0;case 5:return f;case 6:return m;case 2:mn.call(b,f)}else if(i)return!1;return a?-1:r||i?i:b}},bn={forEach:yn(0),map:yn(1),filter:yn(2),some:yn(3),every:yn(4),find:yn(5),findIndex:yn(6)},kn=bn.forEach,wn=Et("forEach"),xn=ft("forEach"),Sn=wn&&xn?[].forEach:function(t){return kn(this,t,arguments.length>1?arguments[1]:void 0)};Fa({target:"Array",proto:!0,forced:[].forEach!=Sn},{forEach:Sn});var En=/#|\.prototype\./,Tn=function(t,e){var n=_n[An(t)];return n==zn||n!=On&&("function"==typeof e?p(e):!!e)},An=Tn.normalize=function(t){return String(t).replace(En,".").toLowerCase()},_n=Tn.data={},On=Tn.NATIVE="N",zn=Tn.POLYFILL="P",Rn=Tn,In=ya("iterator"),jn=Array.prototype,Ln=function(t){return void 0!==t&&(te.Array===t||jn[In]===t)},Pn=ya("toStringTag"),Cn="Arguments"==Sa(function(){return arguments}()),$n=ka?Sa: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=Object(t),Pn))?n:Cn?Sa(e):"Object"==(r=Sa(e))&&"function"==typeof e.callee?"Arguments":r},Mn=ya("iterator"),Nn=function(t){if(null!=t)return t[Mn]||t["@@iterator"]||te[$n(t)]},Dn=function(t,e,n,r){try{return r?e(k(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&k(i.call(t)),e}},qn=u((function(e){var n=function(t,e){this.stopped=t,this.result=e};(e.exports=function(e,r,i,a,o){var s,l,u,c,f,p,d,h=vn(r,i,a?2:1);if(o)s=e;else{if("function"!=typeof(l=Nn(e)))throw TypeError("Target is not iterable");if(Ln(l)){for(u=0,c=yt(e.length);c>u;u++)if((f=a?h(k(d=e[u])[0],d[1]):h(e[u]))&&f instanceof n)return f;return new n(!1)}s=l.call(e)}for(p=s.next;!(d=p.call(s)).done;)if("object"==t(f=Dn(s,h,d.value,a))&&f&&f instanceof n)return f;return new n(!1)}).stop=function(t){return new n(!0,t)}})),Un=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t},Fn=!Jn((function(t){Array.from(t)}));Fa({target:"Array",stat:!0,forced:Fn},{from:function(t){var e,n,r,i,a,o,s=z(t),l="function"==typeof this?this:Array,u=arguments.length,c=u>1?arguments[1]:void 0,f=void 0!==c,p=Nn(s),d=0;if(f&&(c=vn(c,u>2?arguments[2]:void 0,2)),null==p||l==Array&&Ln(p))for(n=new l(e=yt(s.length));e>d;d++)o=f?c(s[d],d):s[d],jt(n,d,o);else for(a=(i=p.call(s)).next,n=new l;!(r=a.call(i)).done;d++)o=f?Dn(i,c,[r.value,d],!0):r.value,jt(n,d,o);return n.length=d,n}});var Wn=ya("iterator"),Zn=!1;try{var Kn=0,Hn={next:function(){return{done:!!Kn++}},return:function(){Zn=!0}};Hn[Wn]=function(){return this},Array.from(Hn,(function(){throw 2}))}catch(t){}var Jn=function(t,e){if(!e&&!Zn)return!1;var n=!1;try{var r={};r[Wn]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},Gn=function(t,e,n){var r,i;return Te&&"function"==typeof(r=e.constructor)&&r!==n&&d(i=r.prototype)&&i!==n.prototype&&Te(t,i),t},Vn=Ut("splice"),Bn=ft("splice",{ACCESSORS:!0,0:0,1:2}),Yn=Math.max,Xn=Math.min;Fa({target:"Array",proto:!0,forced:!Vn||!Bn},{splice:function(t,e){var n,r,i,a,o,s,l=z(this),u=yt(l.length),c=wt(t,u),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=u-c):(n=f-2,r=Xn(Yn(vt(e),0),u-c)),u+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(i=Pt(l,r),a=0;a<r;a++)(o=c+a)in l&&jt(i,a,l[o]);if(i.length=r,n<r){for(a=c;a<u-r;a++)s=a+n,(o=a+r)in l?l[s]=l[o]:delete l[s];for(a=u;a>u-r+n;a--)delete l[a-1]}else if(n>r)for(a=u-r;a>c;a--)s=a+n-1,(o=a+r-1)in l?l[s]=l[o]:delete l[s];for(a=0;a<n;a++)l[a+c]=arguments[a+2];return l.length=u-r+n,i}});var Qn=He.getWeakData,tr=kr.set,er=kr.getterFor,nr=bn.find,rr=bn.findIndex,ir=0,ar=function(t){return t.frozen||(t.frozen=new or)},or=function(){this.entries=[]},sr=function(t,e){return nr(t.entries,(function(t){return t[0]===e}))};or.prototype={get:function(t){var e=sr(this,t);if(e)return e[1]},has:function(t){return!!sr(this,t)},set:function(t,e){var n=sr(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=rr(this.entries,(function(e){return e[0]===t}));return~e&&this.entries.splice(e,1),!!~e}};var lr,ur,cr,fr={getConstructor:function(t,e,n,r){var i=t((function(t,a){Un(t,i,e),tr(t,{type:e,id:ir++,frozen:void 0}),null!=a&&qn(a,t[r],t,n)})),a=er(e),o=function(t,e,n){var r=a(t),i=Qn(k(e),!0);return!0===i?ar(r).set(e,n):i[r.id]=n,t};return Ue(i.prototype,{delete:function(t){var e=a(this);if(!d(t))return!1;var n=Qn(t);return!0===n?ar(e).delete(t):n&&L(n,e.id)&&delete n[e.id]},has:function(t){var e=a(this);if(!d(t))return!1;var n=Qn(t);return!0===n?ar(e).has(t):n&&L(n,e.id)}}),Ue(i.prototype,n?{get:function(t){var e=a(this);if(d(t)){var n=Qn(t);return!0===n?ar(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return o(this,t,e)}}:{add:function(t){return o(this,t,!0)}}),i}},pr=f.WeakMap,dr="function"==typeof pr&&/native code/.test(Qt(pr)),hr=(u((function(t){var e,n=kr.enforce,r=!f.ActiveXObject&&"ActiveXObject"in f,i=Object.isExtensible,a=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},o=t.exports=function(t,e,n){var r=-1!==t.indexOf("Map"),i=-1!==t.indexOf("Weak"),a=r?"set":"add",o=f[t],s=o&&o.prototype,l=o,u={},c=function(t){var e=s[t];wr(s,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(i&&!d(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return i&&!d(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(i&&!d(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(Rn(t,"function"!=typeof o||!(i||s.forEach&&!p((function(){(new o).entries().next()})))))l=n.getConstructor(e,t,r,a),He.REQUIRED=!0;else if(Rn(t,!0)){var h=new l,g=h[a](i?{}:-0,1)!=h,v=p((function(){h.has(1)})),m=Jn((function(t){new o(t)})),y=!i&&p((function(){for(var t=new o,e=5;e--;)t[a](e,e);return!t.has(-0)}));m||((l=e((function(e,n){Un(e,l,t);var i=Gn(new o,e,l);return null!=n&&qn(n,i[a],i,r),i}))).prototype=s,s.constructor=l),(v||y)&&(c("delete"),c("has"),r&&c("get")),(y||g)&&c(a),i&&s.clear&&delete s.clear}return u[t]=l,Fa({global:!0,forced:l!=o},u),xe(l,t),i||n.setStrong(l,t,r),l}("WeakMap",a,fr);if(dr&&r){e=fr.getConstructor(a,"WeakMap",!0),He.REQUIRED=!0;var s=o.prototype,l=s.delete,u=s.has,c=s.get,h=s.set;Ue(s,{delete:function(t){if(d(t)&&!i(t)){var r=n(this);return r.frozen||(r.frozen=new e),l.call(this,t)||r.frozen.delete(t)}return l.call(this,t)},has:function(t){if(d(t)&&!i(t)){var r=n(this);return r.frozen||(r.frozen=new e),u.call(this,t)||r.frozen.has(t)}return u.call(this,t)},get:function(t){if(d(t)&&!i(t)){var r=n(this);return r.frozen||(r.frozen=new e),u.call(this,t)?c.call(this,t):r.frozen.get(t)}return c.call(this,t)},set:function(t,r){if(d(t)&&!i(t)){var a=n(this);a.frozen||(a.frozen=new e),u.call(this,t)?h.call(this,t,r):a.frozen.set(t,r)}else h.call(this,t,r);return this}})}})),f.WeakMap);if(dr){var gr=new hr,vr=gr.get,mr=gr.has,yr=gr.set;lr=function(t,e){return yr.call(gr,t,e),e},ur=function(t){return vr.call(gr,t)||{}},cr=function(t){return mr.call(gr,t)}}else{var br=Q("state");P[br]=!0,lr=function(t,e){return K(t,br,e),e},ur=function(t){return L(t,br)?t[br]:{}},cr=function(t){return L(t,br)}}var kr={set:lr,get:ur,has:cr,enforce:function(t){return cr(t)?ur(t):lr(t,{})},getterFor:function(t){return function(e){var n;if(!d(e)||(n=ur(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},wr=u((function(t){var e=kr.get,n=kr.enforce,r=String(String).split("String");(t.exports=function(t,e,i,a){var o=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof e||L(i,"name")||K(i,"name",e),n(i).source=r.join("string"==typeof e?e:"")),t!==f?(o?!l&&t[e]&&(s=!0):delete t[e],s?t[e]=i:K(t,e,i)):s?t[e]=i:H(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||Qt(this)}))})),xr=RegExp.prototype.exec,Sr=String.prototype.replace,Er=xr,Tr=function(){var t=/a/,e=/b*/g;return xr.call(t,"a"),xr.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Ar=Gt.UNSUPPORTED_Y||Gt.BROKEN_CARET,_r=void 0!==/()??/.exec("")[1];(Tr||_r||Ar)&&(Er=function(t){var e,n,r,i,a=this,o=Ar&&a.sticky,s=Ht.call(a),l=a.source,u=0,c=t;return o&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),c=String(t).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==t[a.lastIndex-1])&&(l="(?: "+l+")",c=" "+c,u++),n=new RegExp("^(?:"+l+")",s)),_r&&(n=new RegExp("^"+l+"$(?!\\s)",s)),Tr&&(e=a.lastIndex),r=xr.call(o?n:a,c),o?r?(r.input=r.input.slice(u),r[0]=r[0].slice(u),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:Tr&&r&&(a.lastIndex=a.global?r.index+r[0].length:e),_r&&r&&r.length>1&&Sr.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r});var Or=Er,zr=ya("species"),Rr=!p((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Ir="$0"==="a".replace(/./,"$0"),jr=ya("replace"),Lr=!!/./[jr]&&""===/./[jr]("a","$0"),Pr=!p((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]})),Cr=function(t,e,n,r){var i=ya(t),a=!p((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),o=a&&!p((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[zr]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e}));if(!a||!o||"replace"===t&&(!Rr||!Ir||Lr)||"split"===t&&!Pr){var s=/./[i],l=n(i,""[t],(function(t,e,n,r,i){return e.exec===Or?a&&!i?{done:!0,value:s.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Ir,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Lr}),u=l[0],c=l[1];wr(String.prototype,t,u),wr(RegExp.prototype,i,2==e?function(t,e){return c.call(t,this,e)}:function(t){return c.call(t,this)})}r&&K(RegExp.prototype[i],"sham",!0)},$r=Ce.charAt,Mr=function(t,e,n){return e+(n?$r(t,e).length:1)},Nr=function(e,n){var r=e.exec;if("function"==typeof r){var i=r.call(e,n);if("object"!==t(i))throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==Sa(e))throw TypeError("RegExp#exec called on incompatible receiver");return Or.call(e,n)},Dr=Math.max,qr=Math.min,Ur=Math.floor,Fr=/\$([$&'`]|\d\d?|<[^>]*>)/g,Wr=/\$([$&'`]|\d\d?)/g;Cr("replace",2,(function(t,e,n,r){var i=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,a=r.REPLACE_KEEPS_$0,o=i?"$":"$0";return[function(n,r){var i=m(this),a=null==n?void 0:n[t];return void 0!==a?a.call(n,i,r):e.call(String(i),n,r)},function(t,r){if(!i&&a||"string"==typeof r&&-1===r.indexOf(o)){var l=n(e,t,this,r);if(l.done)return l.value}var u=k(t),c=String(this),f="function"==typeof r;f||(r=String(r));var p=u.global;if(p){var d=u.unicode;u.lastIndex=0}for(var h=[];;){var g=Nr(u,c);if(null===g)break;if(h.push(g),!p)break;""===String(g[0])&&(u.lastIndex=Mr(c,yt(u.lastIndex),d))}for(var v,m="",y=0,b=0;b<h.length;b++){g=h[b];for(var w=String(g[0]),x=Dr(qr(vt(g.index),c.length),0),S=[],E=1;E<g.length;E++)S.push(void 0===(v=g[E])?v:String(v));var T=g.groups;if(f){var A=[w].concat(S,x,c);void 0!==T&&A.push(T);var _=String(r.apply(void 0,A))}else _=s(w,c,x,S,T,r);x>=y&&(m+=c.slice(y,x)+_,y=x+w.length)}return m+c.slice(y)}];function s(t,n,r,i,a,o){var s=r+t.length,l=i.length,u=Wr;return void 0!==a&&(a=z(a),u=Fr),e.call(o,u,(function(e,o){var u;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":u=a[o.slice(1,-1)];break;default:var c=+o;if(0===c)return e;if(c>l){var f=Ur(c/10);return 0===f?e:f<=l?void 0===i[f-1]?o.charAt(1):i[f-1]+o.charAt(1):e}u=i[c-1]}return void 0===u?"":u}))}}));var Zr=Yr.f,Kr={}.toString,Hr="object"==("undefined"==typeof window?"undefined":t(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Jr={f:function(t){return Hr&&"[object Window]"==Kr.call(t)?function(t){try{return Zr(t)}catch(t){return Hr.slice()}}(t):Zr($a(t))}},Gr=Jr.f,Vr=p((function(){return!Object.getOwnPropertyNames(1)}));Fa({target:"Object",stat:!0,forced:Vr},{getOwnPropertyNames:Gr});var Br=M.concat("length","prototype"),Yr={f:Object.getOwnPropertyNames||function(t){return $(t,Br)}},Xr=ya("species"),Qr=O.f,ti=Yr.f,ei=kr.set,ni=ya("match"),ri=f.RegExp,ii=ri.prototype,ai=/a/g,oi=/a/g,si=new ri(ai)!==ai,li=Gt.UNSUPPORTED_Y;if(w&&Rn("RegExp",!si||li||p((function(){return oi[ni]=!1,ri(ai)!=ai||ri(oi)==oi||"/a/i"!=ri(ai,"i")})))){for(var ui=function(t,e){var n,r=this instanceof ui,i=g(t),a=void 0===e;if(!r&&i&&t.constructor===ui&&a)return t;si?i&&!a&&(t=t.source):t instanceof ui&&(a&&(e=Ht.call(t)),t=t.source),li&&(n=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,""));var o=Gn(si?new ri(t,e):ri(t,e),r?this:ii,ui);return li&&n&&ei(o,{sticky:n}),o},ci=function(t){t in ui||Qr(ui,t,{configurable:!0,get:function(){return ri[t]},set:function(e){ri[t]=e}})},fi=ti(ri),pi=0;fi.length>pi;)ci(fi[pi++]);ii.constructor=ui,ui.prototype=ii,wr(f,"RegExp",ui)}!function(t){var e=F(t),n=O.f;w&&e&&!e[Xr]&&n(e,Xr,{configurable:!0,get:function(){return this}})}("RegExp"),Cr("match",1,(function(t,e,n){return[function(e){var n=m(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var i=k(t),a=String(this);if(!i.global)return Nr(i,a);var o=i.unicode;i.lastIndex=0;for(var s,l=[],u=0;null!==(s=Nr(i,a));){var c=String(s[0]);l[u]=c,""===c&&(i.lastIndex=Mr(a,yt(i.lastIndex),o)),u++}return 0===u?null:l}]}));var di=O.f,hi=Function.prototype,gi=hi.toString,vi=/^\s*function ([^ (]*)/;w&&!("name"in hi)&&di(hi,"name",{configurable:!0,get:function(){try{return gi.call(this).match(vi)[1]}catch(t){return""}}});var mi=RegExp.prototype,yi=mi.toString,bi=p((function(){return"/a/b"!=yi.call({source:"a",flags:"b"})})),ki="toString"!=yi.name;(bi||ki)&&wr(RegExp.prototype,"toString",(function(){var t=k(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in mi)?Ht.call(t):n)}),{unsafe:!0});var wi={f:Object.getOwnPropertySymbols},xi=F("Reflect","ownKeys")||function(t){var e=Yr.f(k(t)),n=wi.f;return n?e.concat(n(t)):e},Si=function(t,e){for(var n=xi(e),r=O.f,i=qa.f,a=0;a<n.length;a++){var o=n[a];L(t,o)||r(t,o,i(e,o))}},Ei=O.f,Ti=f.Symbol;if(w&&"function"==typeof Ti&&(!("description"in Ti.prototype)||void 0!==Ti().description)){var Ai={},_i=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof _i?new Ti(t):void 0===t?Ti():Ti(t);return""===t&&(Ai[e]=!0),e};Si(_i,Ti);var Oi=_i.prototype=Ti.prototype;Oi.constructor=_i;var zi=Oi.toString,Ri="Symbol(test)"==String(Ti("test")),Ii=/^Symbol\((.*)\)[^)]+$/;Ei(Oi,"description",{configurable:!0,get:function(){var t=d(this)?this.valueOf():this,e=zi.call(t);if(L(Ai,t))return"";var n=Ri?e.slice(7,-1):e.replace(Ii,"$1");return""===n?void 0:n}}),Fa({global:!0,forced:!0},{Symbol:_i})}var ji=!!Object.getOwnPropertySymbols&&!p((function(){return!String(Symbol())})),Li={f:ya},Pi=O.f,Ci=function(t){var e=q.Symbol||(q.Symbol={});L(e,t)||Pi(e,t,{value:Li.f(t)})};Ci("iterator");var $i=ji&&!Symbol.sham&&"symbol"==t(Symbol.iterator),Mi={}.propertyIsEnumerable,Ni=Object.getOwnPropertyDescriptor,Di={f:Ni&&!Mi.call({1:2},1)?function(t){var e=Ni(this,t);return!!e&&e.enumerable}:Mi},qi=bn.forEach,Ui=Q("hidden"),Fi=ya("toPrimitive"),Wi=kr.set,Zi=kr.getterFor("Symbol"),Ki=Object.prototype,Hi=f.Symbol,Ji=F("JSON","stringify"),Gi=qa.f,Vi=O.f,Bi=Jr.f,Yi=Di.f,Xi=G("symbols"),Qi=G("op-symbols"),ta=G("string-to-symbol-registry"),ea=G("symbol-to-string-registry"),na=G("wks"),ra=f.QObject,ia=!ra||!ra.prototype||!ra.prototype.findChild,aa=w&&p((function(){return 7!=it(Vi({},"a",{get:function(){return Vi(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Gi(Ki,e);r&&delete Ki[e],Vi(t,e,n),r&&t!==Ki&&Vi(Ki,e,r)}:Vi,oa=function(t,e){var n=Xi[t]=it(Hi.prototype);return Wi(n,{type:"Symbol",tag:t,description:e}),w||(n.description=e),n},sa=$i?function(e){return"symbol"==t(e)}:function(t){return Object(t)instanceof Hi},la=function(t,e,n){t===Ki&&la(Qi,e,n),k(t);var r=A(e,!0);return k(n),L(Xi,r)?(n.enumerable?(L(t,Ui)&&t[Ui][r]&&(t[Ui][r]=!1),n=it(n,{enumerable:Z(0,!1)})):(L(t,Ui)||Vi(t,Ui,Z(1,{})),t[Ui][r]=!0),aa(t,r,n)):Vi(t,r,n)},ua=function(t,e){k(t);var n=$a(e),r=N(n).concat(da(n));return qi(r,(function(e){w&&!ca.call(n,e)||la(t,e,n[e])})),t},ca=function(t){var e=A(t,!0),n=Yi.call(this,e);return!(this===Ki&&L(Xi,e)&&!L(Qi,e))&&(!(n||!L(this,e)||!L(Xi,e)||L(this,Ui)&&this[Ui][e])||n)},fa=function(t,e){var n=$a(t),r=A(e,!0);if(n!==Ki||!L(Xi,r)||L(Qi,r)){var i=Gi(n,r);return!i||!L(Xi,r)||L(n,Ui)&&n[Ui][r]||(i.enumerable=!0),i}},pa=function(t){var e=Bi($a(t)),n=[];return qi(e,(function(t){L(Xi,t)||L(P,t)||n.push(t)})),n},da=function(t){var e=t===Ki,n=Bi(e?Qi:$a(t)),r=[];return qi(n,(function(t){!L(Xi,t)||e&&!L(Ki,t)||r.push(Xi[t])})),r};if(ji||(wr((Hi=function(){if(this instanceof Hi)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=Y(t),n=function t(n){this===Ki&&t.call(Qi,n),L(this,Ui)&&L(this[Ui],e)&&(this[Ui][e]=!1),aa(this,e,Z(1,n))};return w&&ia&&aa(Ki,e,{configurable:!0,set:n}),oa(e,t)}).prototype,"toString",(function(){return Zi(this).tag})),wr(Hi,"withoutSetter",(function(t){return oa(Y(t),t)})),Di.f=ca,O.f=la,qa.f=fa,Yr.f=Jr.f=pa,wi.f=da,Li.f=function(t){return oa(ya(t),t)},w&&(Vi(Hi.prototype,"description",{configurable:!0,get:function(){return Zi(this).description}}),wr(Ki,"propertyIsEnumerable",ca,{unsafe:!0}))),Fa({global:!0,wrap:!0,forced:!ji,sham:!ji},{Symbol:Hi}),qi(N(na),(function(t){Ci(t)})),Fa({target:"Symbol",stat:!0,forced:!ji},{for:function(t){var e=String(t);if(L(ta,e))return ta[e];var n=Hi(e);return ta[e]=n,ea[n]=e,n},keyFor:function(t){if(!sa(t))throw TypeError(t+" is not a symbol");if(L(ea,t))return ea[t]},useSetter:function(){ia=!0},useSimple:function(){ia=!1}}),Fa({target:"Object",stat:!0,forced:!ji,sham:!w},{create:function(t,e){return void 0===e?it(t):ua(it(t),e)},defineProperty:la,defineProperties:ua,getOwnPropertyDescriptor:fa}),Fa({target:"Object",stat:!0,forced:!ji},{getOwnPropertyNames:pa,getOwnPropertySymbols:da}),Fa({target:"Object",stat:!0,forced:p((function(){wi.f(1)}))},{getOwnPropertySymbols:function(t){return wi.f(z(t))}}),Ji){var ha=!ji||p((function(){var t=Hi();return"[null]"!=Ji([t])||"{}"!=Ji({a:t})||"{}"!=Ji(Object(t))}));Fa({target:"JSON",stat:!0,forced:ha},{stringify:function(t,e,n){for(var r,i=[t],a=1;arguments.length>a;)i.push(arguments[a++]);if(r=e,(d(e)||void 0!==t)&&!sa(t))return Ea(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!sa(e))return e}),i[1]=e,Ji.apply(null,i)}})}Hi.prototype[Fi]||K(Hi.prototype,Fi,Hi.prototype.valueOf),xe(Hi,"Symbol"),P[Ui]=!0;var ga=G("wks"),va=f.Symbol,ma=$i?va:va&&va.withoutSetter||Y,ya=function(t){return L(ga,t)||(ji&&L(va,t)?ga[t]=va[t]:ga[t]=ma("Symbol."+t)),ga[t]},ba={};ba[ya("toStringTag")]="z";var ka="[object z]"===String(ba),wa=ka?{}.toString:function(){return"[object "+$n(this)+"]"};ka||wr(Object.prototype,"toString",wa,{unsafe:!0});var xa={}.toString,Sa=function(t){return xa.call(t).slice(8,-1)},Ea=Array.isArray||function(t){return"Array"==Sa(t)},Ta=Ut("slice"),Aa=ft("slice",{ACCESSORS:!0,0:0,1:2}),_a=ya("species"),Oa=[].slice,za=Math.max;Fa({target:"Array",proto:!0,forced:!Ta||!Aa},{slice:function(t,e){var n,r,i,a=$a(this),o=yt(a.length),s=wt(t,o),l=wt(void 0===e?o:e,o);if(Ea(a)&&("function"!=typeof(n=a.constructor)||n!==Array&&!Ea(n.prototype)?d(n)&&null===(n=n[_a])&&(n=void 0):n=void 0,n===Array||void 0===n))return Oa.call(a,s,l);for(r=new(void 0===n?Array:n)(za(l-s,0)),i=0;s<l;s++,i++)s in a&&jt(r,i,a[s]);return r.length=i,r}});var Ra=ya("species"),Ia=[].push,ja=Math.min,La=!p((function(){return!RegExp(4294967295,"y")}));Cr("split",2,(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=String(m(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===t)return[r];if(!g(t))return e.call(r,t,i);for(var a,o,s,l=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),c=0,f=new RegExp(t.source,u+"g");(a=Or.call(f,r))&&!((o=f.lastIndex)>c&&(l.push(r.slice(c,a.index)),a.length>1&&a.index<r.length&&Ia.apply(l,a.slice(1)),s=a[0].length,c=o,l.length>=i));)f.lastIndex===a.index&&f.lastIndex++;return c===r.length?!s&&f.test("")||l.push(""):l.push(r.slice(c)),l.length>i?l.slice(0,i):l}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var i=m(this),a=null==e?void 0:e[t];return void 0!==a?a.call(e,i,n):r.call(String(i),e,n)},function(t,i){var a=n(r,t,this,i,r!==e);if(a.done)return a.value;var o=k(t),s=String(this),l=function(t,e){var n,r=k(t).constructor;return void 0===r||null==(n=k(r)[Ra])?e:gn(n)}(o,RegExp),u=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(La?"y":"g"),f=new l(La?o:"^(?:"+o.source+")",c),p=void 0===i?4294967295:i>>>0;if(0===p)return[];if(0===s.length)return null===Nr(f,s)?[s]:[];for(var d=0,h=0,g=[];h<s.length;){f.lastIndex=La?h:0;var v,m=Nr(f,La?s:s.slice(h));if(null===m||(v=ja(yt(f.lastIndex+(La?0:h)),s.length))===d)h=Mr(s,h,u);else{if(g.push(s.slice(d,h)),g.length===p)return g;for(var y=1;y<=m.length-1;y++)if(g.push(m[y]),g.length===p)return g;h=d=v}}return g.push(s.slice(d)),g}]}),!La);var Pa="".split,Ca=p((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==Sa(t)?Pa.call(t,""):Object(t)}:Object,$a=function(t){return Ca(m(t))},Ma=qa.f,Na=p((function(){Ma(1)}));Fa({target:"Object",stat:!0,forced:!w||Na,sham:!w},{getOwnPropertyDescriptor:function(t,e){return Ma($a(t),e)}});var Da=Object.getOwnPropertyDescriptor,qa={f:w?Da:function(t,e){if(t=$a(t),e=A(e,!0),T)try{return Da(t,e)}catch(t){}if(L(t,e))return Z(!Di.f.call(t,e),t[e])}},Ua=qa.f,Fa=function(e,n){var r,i,a,o,s,l=e.target,u=e.global,c=e.stat;if(r=u?f:c?f[l]||H(l,{}):(f[l]||{}).prototype)for(i in n){if(o=n[i],a=e.noTargetGet?(s=Ua(r,i))&&s.value:r[i],!Rn(u?i:l+(c?".":"#")+i,e.forced)&&void 0!==a){if(t(o)===t(a))continue;Si(o,a)}(e.sham||a&&a.sham)&&K(o,"sham",!0),wr(r,i,o,e)}};Fa({target:"RegExp",proto:!0,forced:/./.exec!==Or},{exec:Or}),Fa({target:"Object",stat:!0},{is:Wa});var Wa=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};Cr("search",1,(function(t,e,n){return[function(e){var n=m(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var i=k(t),a=String(this),o=i.lastIndex;Wa(o,0)||(i.lastIndex=0);var s=Nr(i,a);return Wa(i.lastIndex,o)||(i.lastIndex=o),null===s?-1:s.index}]}));var Za=/"/g;Fa({target:"String",proto:!0,forced:function(t){return p((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}("link")},{link:function(t){return e="a",n="href",r=t,i=String(m(this)),a="<"+e,""!==n&&(a+=" "+n+'="'+String(r).replace(Za,"&quot;")+'"'),a+">"+i+"</"+e+">";var e,n,r,i,a}});var Ka,Ha=qa.f,Ja="".endsWith,Ga=Math.min,Va=b("endsWith"),Ba=!(Va||(Ka=Ha(String.prototype,"endsWith"),!Ka||Ka.writable));Fa({target:"String",proto:!0,forced:!Ba&&!Va},{endsWith:function(t){var e=String(m(this));v(t);var n=arguments.length>1?arguments[1]:void 0,r=yt(e.length),i=void 0===n?r:Ga(yt(n),r),a=String(t);return Ja?Ja.call(e,a,i):e.slice(i-a.length,i)===a}});var Ya=qa.f,Xa="".startsWith,Qa=Math.min,to=b("startsWith"),eo=!to&&!!function(){var t=Ya(String.prototype,"startsWith");return t&&!t.writable}();Fa({target:"String",proto:!0,forced:!eo&&!to},{startsWith:function(t){var e=String(m(this));v(t);var n=yt(Qa(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return Xa?Xa.call(e,r,n):e.slice(n,n+r.length)===r}});var no="\t\n\v\f\r                　\u2028\u2029\ufeff",ro="["+no+"]",io=RegExp("^"+ro+ro+"*"),ao=RegExp(ro+ro+"*$"),oo=function(t){return function(e){var n=String(m(e));return 1&t&&(n=n.replace(io,"")),2&t&&(n=n.replace(ao,"")),n}},so={start:oo(1),end:oo(2),trim:oo(3)},lo=function(t){return p((function(){return!!no[t]()||"​᠎"!="​᠎"[t]()||no[t].name!==t}))},uo=so.trim;Fa({target:"String",proto:!0,forced:lo("trim")},{trim:function(){return uo(this)}});var co=so.end,fo=lo("trimEnd"),po=fo?function(){return co(this)}:"".trimEnd;Fa({target:"String",proto:!0,forced:fo},{trimEnd:po,trimRight:po});var ho=u((function(t){function e(){return{baseUrl:null,breaks:!1,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}}t.exports={defaults:{baseUrl:null,breaks:!1,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:e,changeDefaults:function(e){t.exports.defaults=e}}})),go=(ho.defaults,ho.getDefaults,ho.changeDefaults,/[&<>"']/),vo=/[&<>"']/g,mo=/[<>"']|&(?!#?\w+;)/,yo=/[<>"']|&(?!#?\w+;)/g,bo={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ko=function(t){return bo[t]};var wo=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function xo(t){return t.replace(wo,(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 So=/(^|[^\[])\^/g;var Eo=/[^\w:]/g,To=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;var Ao={},_o=/^[^:]+:\/*[^/]*$/,Oo=/^([^:]+:)[\s\S]*$/,zo=/^([^:]+:\/*[^/]*)[\s\S]*$/;function Ro(t,e){Ao[" "+t]||(_o.test(t)?Ao[" "+t]=t+"/":Ao[" "+t]=Io(t,"/",!0));var n=-1===(t=Ao[" "+t]).indexOf(":");return"//"===e.substring(0,2)?n?e:t.replace(Oo,"$1")+e:"/"===e.charAt(0)?n?e:t.replace(zo,"$1")+e:t+e}function Io(t,e,n){var r=t.length;if(0===r)return"";for(var i=0;i<r;){var a=t.charAt(r-i-1);if(a!==e||n){if(a===e||!n)break;i++}else i++}return t.substr(0,r-i)}var jo=function(t,e){if(e){if(go.test(t))return t.replace(vo,ko)}else if(mo.test(t))return t.replace(yo,ko);return t},Lo=xo,Po=function(t,e){t=t.source||t,e=e||"";var n={replace:function(e,r){return r=(r=r.source||r).replace(So,"$1"),t=t.replace(e,r),n},getRegex:function(){return new RegExp(t,e)}};return n},Co=function(t,e,n){if(t){var r;try{r=decodeURIComponent(xo(n)).replace(Eo,"").toLowerCase()}catch(t){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}e&&!To.test(n)&&(n=Ro(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(t){return null}return n},$o={exec:function(){}},Mo=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},No=function(t,e){var n=t.replace(/\|/g,(function(t,e,n){for(var r=!1,i=e;--i>=0&&"\\"===n[i];)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},Do=Io,qo=function(t,e){if(-1===t.indexOf(e[1]))return-1;for(var n=t.length,r=0,i=0;i<n;i++)if("\\"===t[i])i++;else if(t[i]===e[0])r++;else if(t[i]===e[1]&&--r<0)return i;return-1},Uo=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")},Fo=ho.defaults,Wo=Do,Zo=No,Ko=jo,Ho=qo;function Jo(t,e,n){var r=e.href,i=e.title?Ko(e.title):null;return"!"!==t[0].charAt(0)?{type:"link",raw:n,href:r,title:i,text:t[1]}:{type:"image",raw:n,text:Ko(t[1]),href:r,title:i}}var Go=function(){function t(n){e(this,t),this.options=n||Fo}return r(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,e){var n=this.rules.block.code.exec(t);if(n){var r=e[e.length-1];if(r&&"paragraph"===r.type)return{raw:n[0],text:n[0].trimRight()};var i=n[0].replace(/^ {4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Wo(i,"\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:i(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)return{type:"heading",raw:e[0],depth:e[1].length,text:e[2]}}},{key:"nptable",value:function(t){var e=this.rules.block.nptable.exec(t);if(e){var n={type:"table",header:Zo(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,i=n.align.length;for(r=0;r<i;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(i=n.cells.length,r=0;r<i;r++)n.cells[r]=Zo(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){for(var n,r,i,a,o,s,l,u=e[0],c=e[2],f=c.length>1,p={type:"list",raw:u,ordered:f,start:f?+c:"",loose:!1,items:[]},d=e[0].match(this.rules.block.item),h=!1,g=d.length,v=0;v<g;v++)u=n=d[v],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"),"")),v!==g-1&&(i=this.rules.block.bullet.exec(d[v+1])[0],(c.length>1?1===i.length:i.length>1||this.options.smartLists&&i!==c)&&(a=d.slice(v+1).join("\n"),p.raw=p.raw.substring(0,p.raw.length-a.length),v=g-1)),o=h||/\n\n(?!\s*$)/.test(n),v!==g-1&&(h="\n"===n.charAt(n.length-1),o||(o=h)),o&&(p.loose=!0),l=void 0,(s=/^\[[ xX]\] /.test(n))&&(l=" "!==n[1],n=n.replace(/^\[[ xX]\] +/,"")),p.items.push({type:"list_item",raw:u,task:s,checked:l,loose:o,text:n});return p}}},{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]):Ko(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)),{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:Zo(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,i=n.align.length;for(r=0;r<i;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(i=n.cells.length,r=0;r<i;r++)n.cells[r]=Zo(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,e){var n=this.rules.block.text.exec(t);if(n){var r=e[e.length-1];return r&&"text"===r.type?{raw:n[0],text:n[0]}:{type:"text",raw:n[0],text:n[0]}}}},{key:"escape",value:function(t){var e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:Ko(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]):Ko(r[0]):r[0]}}},{key:"link",value:function(t){var e=this.rules.inline.link.exec(t);if(e){var n=Ho(e[2],"()");if(n>-1){var r=(0===e[0].indexOf("!")?5:4)+e[1].length+n;e[2]=e[2].substring(0,n),e[0]=e[0].substring(0,r).trim(),e[3]=""}var i=e[2],a="";if(this.options.pedantic){var o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);o?(i=o[1],a=o[3]):a=""}else a=e[3]?e[3].slice(1,-1):"";return Jo(e,{href:(i=i.trim().replace(/^<([\s\S]*)>$/,"$1"))?i.replace(this.rules.inline._escapes,"$1"):i,title:a?a.replace(this.rules.inline._escapes,"$1"):a},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 i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return Jo(n,r,n[0])}}},{key:"strong",value:function(t){var e=this.rules.inline.strong.exec(t);if(e)return{type:"strong",raw:e[0],text:e[4]||e[3]||e[2]||e[1]}}},{key:"em",value:function(t){var e=this.rules.inline.em.exec(t);if(e)return{type:"em",raw:e[0],text:e[6]||e[5]||e[4]||e[3]||e[2]||e[1]}}},{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),i=n.startsWith(" ")&&n.endsWith(" ");return r&&i&&(n=n.substring(1,n.length-1)),n=Ko(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[1]}}},{key:"autolink",value:function(t,e){var n,r,i=this.rules.inline.autolink.exec(t);if(i)return r="@"===i[2]?"mailto:"+(n=Ko(this.options.mangle?e(i[1]):i[1])):n=Ko(i[1]),{type:"link",raw:i[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,i;if("@"===n[2])i="mailto:"+(r=Ko(this.options.mangle?e(n[0]):n[0]));else{var a;do{a=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(a!==n[0]);r=Ko(n[0]),i="www."===n[1]?"http://"+r:r}return{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}},{key:"inlineText",value:function(t,e,n){var r,i=this.rules.inline.text.exec(t);if(i)return r=e?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):Ko(i[0]):i[0]:Ko(this.options.smartypants?n(i[0]):i[0]),{type:"text",raw:i[0],text:r}}}]),t}(),Vo=$o,Bo=Po,Yo=Mo,Xo={newline:/^\n+/,code:/^( {4}[^\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}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\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{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:Vo,table:Vo,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Xo.def=Bo(Xo.def).replace("label",Xo._label).replace("title",Xo._title).getRegex(),Xo.bullet=/(?:[*+-]|\d{1,9}\.)/,Xo.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Xo.item=Bo(Xo.item,"gm").replace(/bull/g,Xo.bullet).getRegex(),Xo.list=Bo(Xo.list).replace(/bull/g,Xo.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Xo.def.source+")").getRegex(),Xo._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",Xo._comment=/<!--(?!-?>)[\s\S]*?-->/,Xo.html=Bo(Xo.html,"i").replace("comment",Xo._comment).replace("tag",Xo._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Xo.paragraph=Bo(Xo._paragraph).replace("hr",Xo.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|!--)").replace("tag",Xo._tag).getRegex(),Xo.blockquote=Bo(Xo.blockquote).replace("paragraph",Xo.paragraph).getRegex(),Xo.normal=Yo({},Xo),Xo.gfm=Yo({},Xo.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Xo.gfm.nptable=Bo(Xo.gfm.nptable).replace("hr",Xo.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|!--)").replace("tag",Xo._tag).getRegex(),Xo.gfm.table=Bo(Xo.gfm.table).replace("hr",Xo.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|!--)").replace("tag",Xo._tag).getRegex(),Xo.pedantic=Yo({},Xo.normal,{html:Bo("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Xo._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]+?) *(?:#+ *)?(?:\n+|$)/,fences:Vo,paragraph:Bo(Xo.normal._paragraph).replace("hr",Xo.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Xo.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Qo={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Vo,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*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^_([^\s_<][\s\S]*?[^\s_])_(?!_|[^\s,punctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\s,punctuation])|^\*([^\s*<\[])\*(?!\*)|^\*([^\s<"][\s\S]*?[^\s\[\*])\*(?![\]`punctuation])|^\*([^\s*"<\[][\s\S]*[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Vo,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,_punctuation:"!\"#$%&'()*+\\-./:;<=>?@\\[^_{|}~"};Qo.em=Bo(Qo.em).replace(/punctuation/g,Qo._punctuation).getRegex(),Qo._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Qo._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Qo._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])?)+(?![-_])/,Qo.autolink=Bo(Qo.autolink).replace("scheme",Qo._scheme).replace("email",Qo._email).getRegex(),Qo._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Qo.tag=Bo(Qo.tag).replace("comment",Xo._comment).replace("attribute",Qo._attribute).getRegex(),Qo._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Qo._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,Qo._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Qo.link=Bo(Qo.link).replace("label",Qo._label).replace("href",Qo._href).replace("title",Qo._title).getRegex(),Qo.reflink=Bo(Qo.reflink).replace("label",Qo._label).getRegex(),Qo.normal=Yo({},Qo),Qo.pedantic=Yo({},Qo.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:Bo(/^!?\[(label)\]\((.*?)\)/).replace("label",Qo._label).getRegex(),reflink:Bo(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Qo._label).getRegex()}),Qo.gfm=Yo({},Qo.normal,{escape:Bo(Qo.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)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),Qo.gfm.url=Bo(Qo.gfm.url,"i").replace("email",Qo.gfm._extended_email).getRegex(),Qo.breaks=Yo({},Qo.gfm,{br:Bo(Qo.br).replace("{2,}","*").getRegex(),text:Bo(Qo.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var ts={block:Xo,inline:Qo},es=ho.defaults,ns=ts.block,rs=ts.inline;function is(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 as(t){var e,n,r="",i=t.length;for(e=0;e<i;e++)n=t.charCodeAt(e),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}var os=function(){function t(n){e(this,t),this.tokens=[],this.tokens.links=Object.create(null),this.options=n||es,this.options.tokenizer=this.options.tokenizer||new Go,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var r={block:ns.normal,inline:rs.normal};this.options.pedantic?(r.block=ns.pedantic,r.inline=rs.pedantic):this.options.gfm&&(r.block=ns.gfm,this.options.breaks?r.inline=rs.breaks:r.inline=rs.gfm),this.tokenizer.rules=r}return r(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,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];for(t=t.replace(/^ +$/gm,"");t;)if(e=this.tokenizer.space(t))t=t.substring(e.raw.length),e.type&&a.push(e);else if(e=this.tokenizer.code(t,a))t=t.substring(e.raw.length),e.type?a.push(e):((i=a[a.length-1]).raw+="\n"+e.raw,i.text+="\n"+e.text);else if(e=this.tokenizer.fences(t))t=t.substring(e.raw.length),a.push(e);else if(e=this.tokenizer.heading(t))t=t.substring(e.raw.length),a.push(e);else if(e=this.tokenizer.nptable(t))t=t.substring(e.raw.length),a.push(e);else if(e=this.tokenizer.hr(t))t=t.substring(e.raw.length),a.push(e);else if(e=this.tokenizer.blockquote(t))t=t.substring(e.raw.length),e.tokens=this.blockTokens(e.text,[],o),a.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);a.push(e)}else if(e=this.tokenizer.html(t))t=t.substring(e.raw.length),a.push(e);else if(o&&(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),a.push(e);else if(e=this.tokenizer.lheading(t))t=t.substring(e.raw.length),a.push(e);else if(o&&(e=this.tokenizer.paragraph(t)))t=t.substring(e.raw.length),a.push(e);else if(e=this.tokenizer.text(t,a))t=t.substring(e.raw.length),e.type?a.push(e):((i=a[a.length-1]).raw+="\n"+e.raw,i.text+="\n"+e.text);else if(t){var s="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(s);break}throw new Error(s)}return a}},{key:"inline",value:function(t){var e,n,r,i,a,o,s=t.length;for(e=0;e<s;e++)switch((o=t[e]).type){case"paragraph":case"text":case"heading":o.tokens=[],this.inlineTokens(o.text,o.tokens);break;case"table":for(o.tokens={header:[],cells:[]},i=o.header.length,n=0;n<i;n++)o.tokens.header[n]=[],this.inlineTokens(o.header[n],o.tokens.header[n]);for(i=o.cells.length,n=0;n<i;n++)for(a=o.cells[n],o.tokens.cells[n]=[],r=0;r<a.length;r++)o.tokens.cells[n][r]=[],this.inlineTokens(a[r],o.tokens.cells[n][r]);break;case"blockquote":this.inline(o.tokens);break;case"list":for(i=o.items.length,n=0;n<i;n++)this.inline(o.items[n].tokens)}return t}},{key:"inlineTokens",value:function(t){for(var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t;)if(e=this.tokenizer.escape(t))t=t.substring(e.raw.length),n.push(e);else if(e=this.tokenizer.tag(t,r,i))t=t.substring(e.raw.length),r=e.inLink,i=e.inRawBlock,n.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,i)),n.push(e);else if(e=this.tokenizer.reflink(t,this.tokens.links))t=t.substring(e.raw.length),"link"===e.type&&(e.tokens=this.inlineTokens(e.text,[],!0,i)),n.push(e);else if(e=this.tokenizer.strong(t))t=t.substring(e.raw.length),e.tokens=this.inlineTokens(e.text,[],r,i),n.push(e);else if(e=this.tokenizer.em(t))t=t.substring(e.raw.length),e.tokens=this.inlineTokens(e.text,[],r,i),n.push(e);else if(e=this.tokenizer.codespan(t))t=t.substring(e.raw.length),n.push(e);else if(e=this.tokenizer.br(t))t=t.substring(e.raw.length),n.push(e);else if(e=this.tokenizer.del(t))t=t.substring(e.raw.length),e.tokens=this.inlineTokens(e.text,[],r,i),n.push(e);else if(e=this.tokenizer.autolink(t,as))t=t.substring(e.raw.length),n.push(e);else if(r||!(e=this.tokenizer.url(t,as))){if(e=this.tokenizer.inlineText(t,i,is))t=t.substring(e.raw.length),n.push(e);else if(t){var a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}}else t=t.substring(e.raw.length),n.push(e);return n}}],[{key:"lex",value:function(e,n){return new t(n).lex(e)}},{key:"rules",get:function(){return{block:ns,inline:rs}}}]),t}(),ss=ho.defaults,ls=Co,us=jo,cs=function(){function t(n){e(this,t),this.options=n||ss}return r(t,[{key:"code",value:function(t,e,n){var r=(e||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(t,r);null!=i&&i!==t&&(n=!0,t=i)}return r?'<pre><code class="'+this.options.langPrefix+us(r,!0)+'">'+(n?t:us(t,!0))+"</code></pre>\n":"<pre><code>"+(n?t:us(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=ls(this.options.sanitize,this.options.baseUrl,t)))return n;var r='<a href="'+us(t)+'"';return e&&(r+=' title="'+e+'"'),r+=">"+n+"</a>"}},{key:"image",value:function(t,e,n){if(null===(t=ls(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}(),fs=function(){function t(){e(this,t)}return r(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}(),ps=function(){function t(){e(this,t),this.seen={}}return r(t,[{key:"slug",value:function(t){var e=t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(e)){var n=e;do{this.seen[n]++,e=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(e))}return this.seen[e]=0,e}}]),t}(),ds=ho.defaults,hs=Lo,gs=function(){function t(n){e(this,t),this.options=n||ds,this.options.renderer=this.options.renderer||new cs,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new fs,this.slugger=new ps}return r(t,[{key:"parse",value:function(t){var e,n,r,i,a,o,s,l,u,c,f,p,d,h,g,v,m,y,b=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],k="",w=t.length;for(e=0;e<w;e++)switch((c=t[e]).type){case"space":continue;case"hr":k+=this.renderer.hr();continue;case"heading":k+=this.renderer.heading(this.parseInline(c.tokens),c.depth,hs(this.parseInline(c.tokens,this.textRenderer)),this.slugger);continue;case"code":k+=this.renderer.code(c.text,c.lang,c.escaped);continue;case"table":for(l="",s="",i=c.header.length,n=0;n<i;n++)s+=this.renderer.tablecell(this.parseInline(c.tokens.header[n]),{header:!0,align:c.align[n]});for(l+=this.renderer.tablerow(s),u="",i=c.cells.length,n=0;n<i;n++){for(s="",a=(o=c.tokens.cells[n]).length,r=0;r<a;r++)s+=this.renderer.tablecell(this.parseInline(o[r]),{header:!1,align:c.align[r]});u+=this.renderer.tablerow(s)}k+=this.renderer.table(l,u);continue;case"blockquote":u=this.parse(c.tokens),k+=this.renderer.blockquote(u);continue;case"list":for(f=c.ordered,p=c.start,d=c.loose,i=c.items.length,u="",n=0;n<i;n++)v=(g=c.items[n]).checked,m=g.task,h="",g.task&&(y=this.renderer.checkbox(v),d?g.tokens.length>0&&"text"===g.tokens[0].type?(g.tokens[0].text=y+" "+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=y+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:y}):h+=y),h+=this.parse(g.tokens,d),u+=this.renderer.listitem(h,m,v);k+=this.renderer.list(u,f,p);continue;case"html":k+=this.renderer.html(c.text);continue;case"paragraph":k+=this.renderer.paragraph(this.parseInline(c.tokens));continue;case"text":for(u=c.tokens?this.parseInline(c.tokens):c.text;e+1<w&&"text"===t[e+1].type;)u+="\n"+((c=t[++e]).tokens?this.parseInline(c.tokens):c.text);k+=b?this.renderer.paragraph(u):u;continue;default:var x='Token with "'+c.type+'" type was not found.';if(this.options.silent)return void console.error(x);throw new Error(x)}return k}},{key:"parseInline",value:function(t,e){e=e||this.renderer;var n,r,i="",a=t.length;for(n=0;n<a;n++)switch((r=t[n]).type){case"escape":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;case"text":i+=e.text(r.text);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)}return i}}],[{key:"parse",value:function(e,n){return new t(n).parse(e)}}]),t}(),vs=Mo,ms=Uo,ys=jo,bs=ho.getDefaults,ks=ho.changeDefaults,ws=ho.defaults;function xs(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=vs({},xs.defaults,e||{}),ms(e),n){var r,i=e.highlight;try{r=os.lex(t,e)}catch(t){return n(t)}var a=function(t){var a;if(!t)try{a=gs.parse(r,e)}catch(e){t=e}return e.highlight=i,t?n(t):n(null,a)};if(!i||i.length<3)return a();if(delete e.highlight,!r.length)return a();var o=0;return xs.walkTokens(r,(function(t){"code"===t.type&&(o++,i(t.text,t.lang,(function(e,n){if(e)return a(e);null!=n&&n!==t.text&&(t.text=n,t.escaped=!0),0===--o&&a()})))})),void(0===o&&a())}try{var s=os.lex(t,e);return e.walkTokens&&xs.walkTokens(s,e.walkTokens),gs.parse(s,e)}catch(t){if(t.message+="\nPlease report this to https://github.com/markedjs/marked.",e.silent)return"<p>An error occurred:</p><pre>"+ys(t.message+"",!0)+"</pre>";throw t}}xs.options=xs.setOptions=function(t){return vs(xs.defaults,t),ks(xs.defaults),xs},xs.getDefaults=bs,xs.defaults=ws,xs.use=function(t){var e=vs({},t);if(t.renderer&&function(){var n=xs.defaults.renderer||new cs,r=function(e){var r=n[e];n[e]=function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=t.renderer[e].apply(n,a);return!1===s&&(s=r.apply(n,a)),s}};for(var i in t.renderer)r(i);e.renderer=n}(),t.tokenizer&&function(){var n=xs.defaults.tokenizer||new Go,r=function(e){var r=n[e];n[e]=function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=t.tokenizer[e].apply(n,a);return!1===s&&(s=r.apply(n,a)),s}};for(var i in t.tokenizer)r(i);e.tokenizer=n}(),t.walkTokens){var n=xs.defaults.walkTokens;e.walkTokens=function(e){t.walkTokens(e),n&&n(e)}}xs.setOptions(e)},xs.walkTokens=function(t,e){var n,r=s(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;switch(e(i),i.type){case"table":var a,o=s(i.tokens.header);try{for(o.s();!(a=o.n()).done;){var l=a.value;xs.walkTokens(l,e)}}catch(t){o.e(t)}finally{o.f()}var u,c=s(i.tokens.cells);try{for(c.s();!(u=c.n()).done;){var f,p=s(u.value);try{for(p.s();!(f=p.n()).done;){var d=f.value;xs.walkTokens(d,e)}}catch(t){p.e(t)}finally{p.f()}}}catch(t){c.e(t)}finally{c.f()}break;case"list":xs.walkTokens(i.items,e);break;default:i.tokens&&xs.walkTokens(i.tokens,e)}}}catch(t){r.e(t)}finally{r.f()}},xs.Parser=gs,xs.parser=gs.parse,xs.Renderer=cs,xs.TextRenderer=fs,xs.Lexer=os,xs.lexer=os.lex,xs.Tokenizer=Go,xs.Slugger=ps,xs.parse=xs;var Ss=xs;return 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=Ss,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(i){var a,o,s,l,u=JSON.parse(i.data);u&&"reveal-notes"===u.namespace&&"connected"===u.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()),u&&"reveal-notes"===u.namespace&&"call"===u.type&&(a=u.methodName,o=u.arguments,s=u.callId,l=t[a].apply(t,o),e.postMessage(JSON.stringify({namespace:"reveal-notes",type:"return",result:l,callId:s}),"*"))}))):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(),i=r.querySelector("aside.notes"),a=r.querySelector(".current-fragment"),o={namespace:"reveal-notes",type:"state",notes:"",markdown:!1,whitespace:"normal",state:t.getState()};if(r.hasAttribute("data-notes")&&(o.notes=r.getAttribute("data-notes"),o.whitespace="pre-wrap"),a){var s=a.querySelector("aside.notes");s?i=s:a.hasAttribute("data-notes")&&(o.notes=a.getAttribute("data-notes"),o.whitespace="pre-wrap",i=null)}i&&(o.notes=i.innerHTML,o.markdown="string"==typeof i.getAttribute("data-markdown")),e.postMessage(JSON.stringify(o),"*")}}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}}}));
  