text: !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("tslib"),require("react"),require("reactstrap")):"function"==typeof define&&define.amd?define(["exports","tslib","react","reactstrap"],t):t((e=e||self)["reactstrap-md-textarea"]={},e.tslib,e.React,e.reactstrap)}(this,(function(e,t,n,r){"use strict";var i="default"in n?n.default:n,o=n.memo((function(e){var r=e.children,i=e.style;return n.createElement("div",{style:t.__assign({border:"1px solid #ddd",borderTop:"0px",borderRadius:"5px",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",padding:"10px",backgroundColor:"#fff",textAlign:"left"},void 0===i?{}:i)},r)})),a=n.memo((function(e){var i=e.allowFilteredHtml,a=t.__rest(e,["allowFilteredHtml"]);return n.createElement(o,null,i&&n.createElement("p",null,"You can input markdown or html (start with < to indicate html) for styling the text."),n.createElement(r.Input,t.__assign({type:"textarea"},a)))})),l=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)c.call(n,r)&&(e[r]=n[r])}return e},c=Object.prototype.hasOwnProperty;var s=Object.prototype.hasOwnProperty,u=Object.prototype.toString,f=Object.defineProperty,p=Object.getOwnPropertyDescriptor,h=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===u.call(e)},d=function(e){if(!e||"[object Object]"!==u.call(e))return!1;var t,n=s.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&s.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||s.call(e,t)},g=function(e,t){f&&"__proto__"===t.name?f(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},m=function(e,t){if("__proto__"===t){if(!s.call(e,t))return;if(p)return p(e,t).value}return e[t]},v=function e(){var t,n,r,i,o,a,l=arguments[0],c=1,s=arguments.length,u=!1;for("boolean"==typeof l&&(u=l,l=arguments[1]||{},c=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});c<s;++c)if(null!=(t=arguments[c]))for(n in t)r=m(l,n),l!==(i=m(t,n))&&(u&&i&&(d(i)||(o=h(i)))?(o?(o=!1,a=r&&h(r)?r:[]):a=r&&d(r)?r:{},g(l,{name:n,newValue:e(u,a,i)})):void 0!==i&&g(l,{name:n,newValue:i}));return l},y=function(e){if(e)throw e};var b={}.hasOwnProperty,w=function(e){if(!e||"object"!=typeof e)return null;if(b.call(e,"position")||b.call(e,"type"))return A(e.position);if(b.call(e,"start")||b.call(e,"end"))return A(e);if(b.call(e,"line")||b.call(e,"column"))return k(e);return null};function k(e){return e&&"object"==typeof e||(e={}),x(e.line)+":"+x(e.column)}function A(e){return e&&"object"==typeof e||(e={}),k(e.start)+"-"+k(e.end)}function x(e){return e&&"number"==typeof e?e:1}var O=T;function S(){}S.prototype=Error.prototype;var E=T.prototype=new S;function T(e,t,n){var r,i,o;"string"==typeof t&&(n=t,t=null),r=function(e){var t,n=[null,null];"string"==typeof e&&(-1===(t=e.indexOf(":"))?n[1]=e:(n[0]=e.slice(0,t),n[1]=e.slice(t+1)));return n}(n),i=w(t)||"1:1",o={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(o=t,t=t.start):o.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=i,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=o,this.source=r[0],this.ruleId=r[1]}function I(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}E.file="",E.name="",E.reason="",E.message="",E.stack="",E.fatal=null,E.column=null,E.line=null;var j=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,C=function(e){return j.exec(e).slice(1)};function P(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:"/";if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r.charAt(0))}return(t?"/":"")+(e=I(N(e.split("/"),(function(e){return!!e})),!t).join("/"))||"."}function _(e){var t=L(e),n="/"===$(e,-1);return(e=I(N(e.split("/"),(function(e){return!!e})),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e}function L(e){return"/"===e.charAt(0)}var z={extname:function(e){return C(e)[3]},basename:function(e,t){var n=C(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},dirname:function(e){var t=C(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},sep:"/",delimiter:":",relative:function(e,t){function n(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=P(e).substr(1),t=P(t).substr(1);for(var r=n(e.split("/")),i=n(t.split("/")),o=Math.min(r.length,i.length),a=o,l=0;l<o;l++)if(r[l]!==i[l]){a=l;break}var c=[];for(l=a;l<r.length;l++)c.push("..");return(c=c.concat(i.slice(a))).join("/")},join:function(){var e=Array.prototype.slice.call(arguments,0);return _(N(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},isAbsolute:L,normalize:_,resolve:P};function N(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}var $="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)};var H=function(e,t){if("string"!=typeof e)return e;if(0===e.length)return e;var n=z.basename(e,z.extname(e))+t;return z.join(z.dirname(e),n)},R=function(e){return null!=e&&(B(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&B(e.slice(0,0))}(e)||!!e._isBuffer)};function B(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var F=D,V={}.hasOwnProperty,M=D.prototype;M.toString=function(e){var t=this.contents||"";return R(t)?t.toString(e):String(t)};var q=["history","path","basename","stem","extname","dirname"];function D(e){var t,n,r;if(e){if("string"==typeof e||R(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof D))return new D(e);for(this.data={},this.messages=[],this.history=[],this.cwd=process.cwd(),n=-1,r=q.length;++n<r;)V.call(e,t=q[n])&&(this[t]=e[t]);for(t in e)-1===q.indexOf(t)&&(this[t]=e[t])}function U(e,t){if(-1!==e.indexOf(z.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+z.sep+"`")}function W(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function X(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}Object.defineProperty(M,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){W(e,"path"),e!==this.path&&this.history.push(e)}}),Object.defineProperty(M,"dirname",{get:function(){return"string"==typeof this.path?z.dirname(this.path):void 0},set:function(e){X(this.path,"dirname"),this.path=z.join(e||"",this.basename)}}),Object.defineProperty(M,"basename",{get:function(){return"string"==typeof this.path?z.basename(this.path):void 0},set:function(e){W(e,"basename"),U(e,"basename"),this.path=z.join(this.dirname||"",e)}}),Object.defineProperty(M,"extname",{get:function(){return"string"==typeof this.path?z.extname(this.path):void 0},set:function(e){var t=e||"";if(U(t,"extname"),X(this.path,"extname"),t){if("."!==t.charAt(0))throw new Error("`extname` must start with `.`");if(-1!==t.indexOf(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=H(this.path,t)}}),Object.defineProperty(M,"stem",{get:function(){return"string"==typeof this.path?z.basename(this.path,this.extname):void 0},set:function(e){W(e,"stem"),U(e,"stem"),this.path=z.join(this.dirname||"",e+(this.extname||""))}});var Z=F,Y=F.prototype;function G(e,t,n){var r=this.path,i=new O(e,t,n);return r&&(i.name=r+":"+i.name,i.file=r),i.fatal=!1,this.messages.push(i),i}Y.message=G,Y.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},Y.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e},Y.warn=G;var K=[].slice,J=function(e,t){var n;return function(){var t,o=K.call(arguments,0),a=e.length>o.length;a&&o.push(r);try{t=e.apply(null,o)}catch(e){if(a&&n)throw e;return r(e)}a||(t&&"function"==typeof t.then?t.then(i,r):t instanceof Error?r(t):i(t))};function r(){n||(n=!0,t.apply(null,arguments))}function i(e){r(null,e)}};var Q=te;te.wrap=J;var ee=[].slice;function te(){var e=[],t={run:function(){var t=-1,n=ee.call(arguments,0,-1),r=arguments[arguments.length-1];if("function"!=typeof r)throw new Error("Expected function as last argument, not "+r);function i(o){var a=e[++t],l=ee.call(arguments,0),c=l.slice(1),s=n.length,u=-1;if(o)r(o);else{for(;++u<s;)null==c[u]&&(c[u]=n[u]);n=c,a?J(a,i).apply(null,n):r.apply(null,[null].concat(n))}}i.apply(null,[null].concat(n))},use:function(n){if("function"!=typeof n)throw new Error("Expected `fn` to be a function, not "+n);return e.push(n),t}};return t}var ne=Object.prototype.toString,re=function(e){return"[object String]"===ne.call(e)};var ie=Object.prototype.toString,oe=function(e){var t;return"[object Object]"===ie.call(e)&&(null===(t=Object.getPrototypeOf(e))||t===Object.getPrototypeOf({}))},ae=function e(){var t=[],n=Q(),r={},i=!1,o=-1;return a.data=function(e,t){if(re(e))return 2===arguments.length?(he("data",i),r[e]=t,a):ce.call(r,e)&&r[e]||null;if(e)return he("data",i),r=e,a;return r},a.freeze=l,a.attachers=t,a.use=function(e){var n;if(he("use",i),null==e);else if("function"==typeof e)u.apply(null,arguments);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?s(e):o(e)}n&&(r.settings=v(r.settings||{},n));return a;function o(e){s(e.plugins),e.settings&&(n=v(n||{},e.settings))}function l(e){if("function"==typeof e)u(e);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?u.apply(null,e):o(e)}}function s(e){var t,n;if(null==e);else{if("object"!=typeof e||!("length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(t=e.length,n=-1;++n<t;)l(e[n])}}function u(e,n){var r=c(e);r?(oe(r[1])&&oe(n)&&(n=v(r[1],n)),r[1]=n):t.push(le.call(arguments))}},a.parse=function(e){var t,n=Z(e);if(l(),fe("parse",t=a.Parser),ue(t))return new t(String(n),n).parse();return t(String(n),n)},a.stringify=function(e,t){var n,r=Z(t);if(l(),pe("stringify",n=a.Compiler),de(e),ue(n))return new n(e,r).compile();return n(e,r)},a.run=s,a.runSync=function(e,t){var n,r=!1;return s(e,t,(function(e,t){r=!0,y(e),n=t})),ge("runSync","run",r),n},a.process=u,a.processSync=function(e){var t,n=!1;return l(),fe("processSync",a.Parser),pe("processSync",a.Compiler),u(t=Z(e),(function(e){n=!0,y(e)})),ge("processSync","process",n),t},a;function a(){for(var n=e(),i=t.length,o=-1;++o<i;)n.use.apply(null,t[o]);return n.data(v(!0,{},r)),n}function l(){var e,r,l,c;if(i)return a;for(;++o<t.length;)r=(e=t[o])[0],null,!1!==(l=e[1])&&(!0===l&&(e[1]=void 0),"function"==typeof(c=r.apply(a,e.slice(1)))&&n.use(c));return i=!0,o=Infinity,a}function c(e){for(var n,r=t.length,i=-1;++i<r;)if((n=t[i])[0]===e)return n}function s(e,t,r){if(de(e),l(),r||"function"!=typeof t||(r=t,t=null),!r)return new Promise(i);function i(i,o){n.run(e,Z(t),(function(t,n,a){n=n||e,t?o(t):i?i(n):r(null,n,a)}))}i(null,r)}function u(e,t){if(l(),fe("process",a.Parser),pe("process",a.Compiler),!t)return new Promise(n);function n(n,r){var i=Z(e);se.run(a,{file:i},(function(e){e?r(e):n?n(i):t(null,i)}))}n(null,t)}}().freeze(),le=[].slice,ce={}.hasOwnProperty,se=Q().use((function(e,t){t.tree=e.parse(t.file)})).use((function(e,t,n){e.run(t.tree,t.file,(function(e,r,i){e?n(e):(t.tree=r,t.file=i,n())}))})).use((function(e,t){t.file.contents=e.stringify(t.tree,t.file)}));function ue(e){return"function"==typeof e&&function(e){var t;for(t in e)return!0;return!1}(e.prototype)}function fe(e,t){if("function"!=typeof t)throw new Error("Cannot `"+e+"` without `Parser`")}function pe(e,t){if("function"!=typeof t)throw new Error("Cannot `"+e+"` without `Compiler`")}function he(e,t){if(t)throw new Error(["Cannot invoke `"+e+"` on a frozen processor.\nCreate a new ","processor first, by invoking it: use `processor()` instead of ","`processor`."].join(""))}function de(e){if(!e||!re(e.type))throw new Error("Expected node, got `"+e+"`")}function ge(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function me(e,t){return e(t={exports:{}},t.exports),t.exports}var ve=me((function(e){e.exports="function"==typeof Object.create?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),ye=function(e){var t,n,r;for(n in ve(o,e),ve(i,o),t=o.prototype)(r=t[n])&&"object"==typeof r&&(t[n]="concat"in r?r.concat():l(r));return o;function i(t){return e.apply(this,t)}function o(){return this instanceof o?e.apply(this,arguments):new i(arguments)}};var be=function(e,t,n){return function(){var r=n||this,i=r[e];return r[e]=!t,function(){r[e]=i}}};var we=function(e){var t=function(e){var t=[],n=e.indexOf("\n");for(;-1!==n;)t.push(n+1),n=e.indexOf("\n",n+1);return t.push(e.length+1),t}(String(e));return{toPosition:ke(t),toOffset:Ae(t)}};function ke(e){return function(t){var n=-1,r=e.length;if(t<0)return{};for(;++n<r;)if(e[n]>t)return{line:n+1,column:t-(e[n-1]||0)+1,offset:t};return{}}}function Ae(e){return function(t){var n=t&&t.line,r=t&&t.column;if(!isNaN(n)&&!isNaN(r)&&n-1 in e)return(e[n-2]||0)+r-1||0;return-1}}var xe=function(e,t){return function(n){var r,i=0,o=n.indexOf("\\"),a=e[t],l=[];for(;-1!==o;)l.push(n.slice(i,o)),(r=n.charAt(i=o+1))&&-1!==a.indexOf(r)||l.push("\\"),o=n.indexOf("\\",i);return l.push(n.slice(i)),l.join("")}};var Oe={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"},Se={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},Ee=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57};var Te=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57};var Ie=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90};var je,Ce=function(e){return Ie(e)||Ee(e)};var Pe=function(e){var t,n="&"+e+";";if((je=je||document.createElement("i")).innerHTML=n,59===(t=je.textContent).charCodeAt(t.length-1)&&"semi"!==e)return!1;return t!==n&&t};var _e=function(e,t){var n,r,i={};t||(t={});for(r in $e)i[r]=null==(n=t[r])?$e[r]:n;(i.position.indent||i.position.start)&&(i.indent=i.position.indent||[],i.position=i.position.start);return function(e,t){var n,r,i,o,a,l,c,s,u,f,p,h,d,g,m,v,y,b,w,k=t.additional,A=t.nonTerminated,x=t.text,O=t.reference,S=t.warning,E=t.textContext,T=t.referenceContext,I=t.warningContext,j=t.position,C=t.indent||[],P=e.length,_=0,L=-1,z=j.column||1,N=j.line||1,$="",H=[];"string"==typeof k&&(k=k.charCodeAt(0));v=B(),s=S?function(e,t){var n=B();n.column+=t,n.offset+=t,S.call(I,Ve[e],n,e)}:Ne,_--,P++;for(;++_<P;)if(10===a&&(z=C[L]||1),38===(a=e.charCodeAt(_))){if(9===(c=e.charCodeAt(_+1))||10===c||12===c||32===c||38===c||60===c||c!=c||k&&c===k){$+=ze(a),z++;continue}for(h=d=_+1,w=d,35===c?(w=++h,88===(c=e.charCodeAt(w))||120===c?(g=Re,w=++h):g="decimal"):g=He,n="",p="",o="",m=Fe[g],w--;++w<P&&(c=e.charCodeAt(w),m(c));)o+=ze(c),g===He&&Le.call(Oe,o)&&(n=o,p=Oe[o]);(i=59===e.charCodeAt(w))&&(w++,(r=g===He&&Pe(o))&&(n=o,p=r)),b=1+w-d,(i||A)&&(o?g===He?(i&&!p?s(5,1):(n!==o&&(b=1+(w=h+n.length)-h,i=!1),i||(u=n?1:3,t.attribute?61===(c=e.charCodeAt(w))?(s(u,b),p=null):Ce(c)?p=null:s(u,b):s(u,b))),l=p):(i||s(2,b),l=parseInt(o,Be[g]),(R=l)>=55296&&R<=57343||R>1114111?(s(7,b),l=ze(65533)):l in Se?(s(6,b),l=Se[l]):(f="",Me(l)&&s(6,b),l>65535&&(f+=ze((l-=65536)>>>10|55296),l=56320|1023&l),l=f+ze(l))):g!==He&&s(4,b)),l?(F(),v=B(),_=w-1,z+=w-d+1,H.push(l),(y=B()).offset++,O&&O.call(T,l,{start:v,end:y},e.slice(d-1,w)),v=y):(o=e.slice(d-1,w),$+=o,z+=o.length,_=w-1)}else 10===a&&(N++,L++,z=0),a==a?($+=ze(a),z++):F();var R;return H.join("");function B(){return{line:N,column:z,offset:_+(j.offset||0)}}function F(){$&&(H.push($),x&&x.call(E,$,{start:v,end:B()}),$="")}}(e,i)},Le={}.hasOwnProperty,ze=String.fromCharCode,Ne=Function.prototype,$e={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},He="named",Re="hexadecimal",Be={hexadecimal:16,decimal:10},Fe={};Fe[He]=Ce,Fe.decimal=Ee,Fe[Re]=Te;var Ve={};function Me(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}Ve[1]="Named character references must be terminated by a semicolon",Ve[2]="Numeric character references must be terminated by a semicolon",Ve[3]="Named character references cannot be empty",Ve[4]="Numeric character references cannot be empty",Ve[5]="Named character references must be known",Ve[6]="Numeric character references cannot be disallowed",Ve[7]="Numeric character references cannot be outside the permissible Unicode range";var qe=function(e){return r.raw=i,r;function t(t){for(var n=e.offset,r=t.line,i=[];++r&&r in n;)i.push((n[r]||0)+1);return{start:t,indent:i}}function n(t,n,r){3!==r&&e.file.message(t,n)}function r(r,i,o){_e(r,{position:t(i),warning:n,text:o,reference:o,textContext:e,referenceContext:e})}function i(e,r,i){return _e(e,l(i,{position:t(r),warning:n}))}};var De=function(e){return function(t,n){var r,i,o,a,l,c=this,s=c.offset,u=[],f=c[e+"Methods"],p=c[e+"Tokenizers"],h=n.line,d=n.column;if(!t)return u;y.now=m,y.file=c.file,g("");for(;t;){for(r=-1,i=f.length,a=!1;++r<i&&(!(o=p[f[r]])||o.onlyAtStart&&!c.atStart||o.notInList&&c.inList||o.notInBlock&&c.inBlock||o.notInLink&&c.inLink||(l=t.length,o.apply(c,[y,t]),!(a=l!==t.length))););a||c.file.fail(new Error("Infinite loop"),y.now())}return c.eof=m(),u;function g(e){for(var t=-1,n=e.indexOf("\n");-1!==n;)h++,t=n,n=e.indexOf("\n",n+1);-1===t?d+=e.length:d=e.length-t,h in s&&(-1!==t?d+=s[h]:d<=s[h]&&(d=s[h]+1))}function m(){var e={line:h,column:d};return e.offset=c.toOffset(e),e}function v(e){this.start=e,this.end=m()}function y(e){var n,r=function(){var e=[],t=h+1;return function(){for(var n=h+1;t<n;)e.push((s[t]||0)+1),t++;return e}}(),i=(n=m(),function(e,t){var r=e.position,i=[],o=r&&r.end.line,a=n.line;if(e.position=new v(r?r.start:n),r&&t&&r.indent){if(i=r.indent,o<a){for(;++o<a;)i.push((s[o]||0)+1);i.push(n.column)}t=i.concat(t)}return e.position.indent=t||[],e}),o=m();return function(e){t.substring(0,e.length)!==e&&c.file.fail(new Error("Incorrectly eaten value: please report this warning on http://git.io/vg5Ft"),m())}(e),a.reset=l,l.test=f,a.test=f,t=t.substring(e.length),g(e),r=r(),a;function a(e,t){return i(function(e,t){var n=t?t.children:u,r=n[n.length-1];return r&&e.type===r.type&&e.type in Ue&&We(r)&&We(e)&&(e=Ue[e.type].call(c,r,e)),e!==r&&n.push(e),c.atStart&&0!==u.length&&c.exitStart(),e}(i(e),t),r)}function l(){var n=a.apply(null,arguments);return h=o.line,d=o.column,t=e+t,n}function f(){var n=i({});return h=o.line,d=o.column,t=e+t,n.position}}}},Ue={text:function(e,t){return e.value+=t.value,e},blockquote:function(e,t){if(this.options.commonmark)return t;return e.children=e.children.concat(t.children),e}};function We(e){var t,n;return"text"!==e.type||!e.position||((t=e.position.start).line!==(n=e.position.end).line||n.column-t.column===e.value.length)}var Xe=Ke,Ze=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],Ye=Ze.concat(["~","|"]),Ge=Ye.concat(["\n",'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);function Ke(e){var t=e||{};return t.commonmark?Ge:t.gfm?Ye:Ze}Ke.default=Ze,Ke.gfm=Ye,Ke.commonmark=Ge;var Je={position:!0,gfm:!0,commonmark:!1,footnotes:!1,pedantic:!1,blocks:["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","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},Qe=function(e){var t,n,r=this.options;if(null==e)e={};else{if("object"!=typeof e)throw new Error("Invalid value `"+e+"` for setting `options`");e=l(e)}for(t in Je){if(null==(n=e[t])&&(n=r[t]),"blocks"!==t&&"boolean"!=typeof n||"blocks"===t&&"object"!=typeof n)throw new Error("Invalid value `"+n+"` for setting `options."+t+"`");e[t]=n}return this.options=e,this.escape=Xe(e),this};var et=tt;function tt(e){if("string"==typeof e)return function(e){return function(t){return Boolean(t&&t.type===e)}}(e);if(null==e)return it;if("object"==typeof e)return("length"in e?rt:nt)(e);if("function"==typeof e)return e;throw new Error("Expected function, string, or object as test")}function nt(e){return function(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function rt(e){var t=function(e){for(var t=[],n=e.length,r=-1;++r<n;)t[r]=tt(e[r]);return t}(e),n=t.length;return function(){var e=-1;for(;++e<n;)if(t[e].apply(this,arguments))return!0;return!1}}function it(){return!0}var ot=at;function at(e,t,n,r){var i;function o(e,a,l){var c,s=[];return(t&&!i(e,a,l[l.length-1]||null)||!1!==(s=lt(n(e,l)))[0])&&e.children&&"skip"!==s[0]&&!1===(c=lt(function(e,t){var n,i=r?-1:1,a=(r?e.length:-1)+i;for(;a>-1&&a<e.length;){if(!1===(n=o(e[a],a,t))[0])return n;a="number"==typeof n[1]?n[1]:a+i}}(e.children,l.concat(e))))[0]?c:s}"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null),i=et(t),o(e,null,[])}function lt(e){return null!==e&&"object"==typeof e&&"length"in e?e:"number"==typeof e?[!0,e]:[e]}at.CONTINUE=!0,at.SKIP="skip",at.EXIT=!1;var ct=ft,st=ot.SKIP,ut=ot.EXIT;function ft(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null),ot(e,t,(function(e,t){var r=t[t.length-1],i=r?r.children.indexOf(e):null;return n(e,i,r)}),r)}ft.CONTINUE=ot.CONTINUE,ft.SKIP=st,ft.EXIT=ut;var pt=function(e,t){return ct(e,t?ht:dt),e};function ht(e){delete e.position}function dt(e){e.position=void 0}var gt=function(){var e,t=String(this.file),n={line:1,column:1,offset:0},r=l(n);65279===(t=t.replace(mt,"\n")).charCodeAt(0)&&(t=t.slice(1),r.column++,r.offset++);e={type:"root",children:this.tokenizeBlock(t,r),position:{start:n,end:this.eof||l(n)}},this.options.position||pt(e,!0);return e},mt=/\r\n|\r/g;var vt=function(e){return bt.test("number"==typeof e?yt(e):e.charAt(0))},yt=String.fromCharCode,bt=/\s/;var wt=function(e,t,n){var r,i,o,a,l=t.charAt(0);if("\n"!==l)return;if(n)return!0;a=1,r=t.length,i=l,o="";for(;a<r&&(l=t.charAt(a),vt(l));)o+=l,"\n"===l&&(i+=o,o=""),a++;e(i)};var kt,At="",xt=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");if(1===t)return e;if(2===t)return e+e;var n=e.length*t;if(kt!==e||void 0===kt)kt=e,At="";else if(At.length>=n)return At.substr(0,n);for(;n>At.length&&t>1;)1&t&&(At+=e),t>>=1,e+=e;return At=(At+=e).substr(0,n)};var Ot=function(e){var t=String(e),n=t.length;for(;"\n"===t.charAt(--n););return t.slice(0,n+1)};var St=function(e,t,n){var r,i,o,a=-1,l=t.length,c="",s="",u="",f="";for(;++a<l;)if(r=t.charAt(a),o)if(o=!1,c+=u,s+=f,u="",f="","\n"===r)u=r,f=r;else for(c+=r,s+=r;++a<l;){if(!(r=t.charAt(a))||"\n"===r){f=r,u=r;break}c+=r,s+=r}else if(" "===r&&t.charAt(a+1)===r&&t.charAt(a+2)===r&&t.charAt(a+3)===r)u+=Et,a+=3,o=!0;else if("\t"===r)u+=r,o=!0;else{for(i="";"\t"===r||" "===r;)i+=r,r=t.charAt(++a);if("\n"!==r)break;u+=i+r,f+=r}if(s)return!!n||e(c)({type:"code",lang:null,value:Ot(s)})},Et=xt(" ",4);var Tt=function(e,t,n){var r,i,o,a,l,c,s,u,f,p,h,d=t.length+1,g=0,m="";if(!this.options.gfm)return;for(;g<d&&(" "===(o=t.charAt(g))||"\t"===o);)m+=o,g++;if(p=g,"~"!==(o=t.charAt(g))&&"`"!==o)return;g++,i=o,r=1,m+=o;for(;g<d&&(o=t.charAt(g))===i;)m+=o,r++,g++;if(r<3)return;for(;g<d&&(" "===(o=t.charAt(g))||"\t"===o);)m+=o,g++;a="",l="";for(;g<d&&"\n"!==(o=t.charAt(g))&&"~"!==o&&"`"!==o;)" "===o||"\t"===o?l+=o:(a+=l+o,l=""),g++;if((o=t.charAt(g))&&"\n"!==o)return;if(n)return!0;(h=e.now()).column+=m.length,h.offset+=m.length,m+=a,a=this.decode.raw(this.unescape(a),h),l&&(m+=l);l="",u="",f="",c="",s="";for(;g<d;)if(o=t.charAt(g),c+=u,s+=f,u="",f="","\n"===o){for(c?(u+=o,f+=o):m+=o,l="",g++;g<d&&" "===(o=t.charAt(g));)l+=o,g++;if(u+=l,f+=l.slice(p),!(l.length>=4)){for(l="";g<d&&(o=t.charAt(g))===i;)l+=o,g++;if(u+=l,f+=l,!(l.length<r)){for(l="";g<d&&(" "===(o=t.charAt(g))||"\t"===o);)u+=o,f+=o,g++;if(!o||"\n"===o)break}}}else c+=o,f+=o,g++;return e(m+=c+u)({type:"code",lang:a||null,value:Ot(s)})};var It=me((function(e,t){(t=e.exports=function(e){return e.replace(/^\s*|\s*$/g,"")}).left=function(e){return e.replace(/^\s*/,"")},t.right=function(e){return e.replace(/\s*$/,"")}})),jt=function(e,t,n,r){var i,o,a,l,c,s,u=["pedantic","commonmark"],f=u.length,p=e.length,h=-1;for(;++h<p;){for(o=(i=e[h])[1]||{},a=i[0],l=-1,s=!1;++l<f;)if(void 0!==o[c=u[l]]&&o[c]!==n.options[c]){s=!0;break}if(!s&&t[a].apply(n,r))return!0}return!1};var Ct=function(e,t,n){var r,i,o,a,l,c,s,u,f,p=this.offset,h=this.blockTokenizers,d=this.interruptBlockquote,g=e.now(),m=g.line,v=t.length,y=[],b=[],w=[],k=0;for(;k<v&&(" "===(i=t.charAt(k))||"\t"===i);)k++;if(">"!==t.charAt(k))return;if(n)return!0;k=0;for(;k<v;){for(a=t.indexOf("\n",k),s=k,u=!1,-1===a&&(a=v);k<v&&(" "===(i=t.charAt(k))||"\t"===i);)k++;if(">"===t.charAt(k)?(k++,u=!0," "===t.charAt(k)&&k++):k=s,l=t.slice(k,a),!u&&!It(l)){k=s;break}if(!u&&(o=t.slice(k),jt(d,h,this,[e,o,!0])))break;c=s===k?l:t.slice(s,a),w.push(k-s),y.push(c),b.push(l),k=a+1}k=-1,v=w.length,r=e(y.join("\n"));for(;++k<v;)p[m]=(p[m]||0)+w[k],m++;return f=this.enterBlock(),b=this.tokenizeBlock(b.join("\n"),g),f(),r({type:"blockquote",children:b})};var Pt=function(e,t,n){var r,i,o,a=this.options,l=t.length+1,c=-1,s=e.now(),u="",f="";for(;++c<l;){if(" "!==(r=t.charAt(c))&&"\t"!==r){c--;break}u+=r}o=0;for(;++c<=l;){if("#"!==(r=t.charAt(c))){c--;break}u+=r,o++}if(o>6)return;if(!o||!a.pedantic&&"#"===t.charAt(c+1))return;l=t.length+1,i="";for(;++c<l;){if(" "!==(r=t.charAt(c))&&"\t"!==r){c--;break}i+=r}if(!a.pedantic&&0===i.length&&r&&"\n"!==r)return;if(n)return!0;u+=i,i="",f="";for(;++c<l&&(r=t.charAt(c))&&"\n"!==r;)if(" "===r||"\t"===r||"#"===r){for(;" "===r||"\t"===r;)i+=r,r=t.charAt(++c);for(;"#"===r;)i+=r,r=t.charAt(++c);for(;" "===r||"\t"===r;)i+=r,r=t.charAt(++c);c--}else f+=i+r,i="";return s.column+=u.length,s.offset+=u.length,e(u+=f+i)({type:"heading",depth:o,children:this.tokenizeInline(f,s)})};var _t=function(e,t,n){var r,i,o,a,l=-1,c=t.length+1,s="";for(;++l<c&&("\t"===(r=t.charAt(l))||" "===r);)s+=r;if("*"!==r&&"-"!==r&&"_"!==r)return;i=r,s+=r,o=1,a="";for(;++l<c;)if((r=t.charAt(l))===i)o++,s+=a+i,a="";else{if(" "!==r)return o>=3&&(!r||"\n"===r)?(s+=a,!!n||e(s)({type:"thematicBreak"})):void 0;a+=r}};var Lt=function(e){var t,n=0,r=0,i=e.charAt(n),o={};for(;i in zt;)r+=t=zt[i],t>1&&(r=Math.floor(r/t)*t),o[r]=n,i=e.charAt(++n);return{indent:r,stops:o}},zt={" ":1,"\t":4};var Nt=function(e,t){var n,r,i,o,a=e.split("\n"),l=a.length+1,c=Infinity,s=[];a.unshift(xt(" ",t)+"!");for(;l--;)if(r=Lt(a[l]),s[l]=r.stops,0!==It(a[l]).length){if(!r.indent){c=Infinity;break}r.indent>0&&r.indent<c&&(c=r.indent)}if(Infinity!==c)for(l=a.length;l--;){for(i=s[l],n=c;n&&!(n in i);)n--;o=0!==It(a[l]).length&&c&&n!==c?"\t":"",a[l]=o+a[l].slice(n in i?i[n]+1:0)}return a.shift(),a.join("\n")};var $t=function(e,t,n){var r,i,o,a,l,c,s,u,f,p,h,d,g,m,v,y,b,w,k,A,x,O,S,E,T=this.options.commonmark,I=this.options.pedantic,j=this.blockTokenizers,C=this.interruptList,P=0,_=t.length,L=null,z=0;for(;P<_;){if("\t"===(a=t.charAt(P)))z+=4-z%4;else{if(" "!==a)break;z++}P++}if(z>=4)return;if(a=t.charAt(P),r=T?Dt:qt,!0===Mt[a])l=a,o=!1;else{for(o=!0,i="";P<_&&(a=t.charAt(P),Ee(a));)i+=a,P++;if(a=t.charAt(P),!i||!0!==r[a])return;L=parseInt(i,10),l=a}if(" "!==(a=t.charAt(++P))&&"\t"!==a)return;if(n)return!0;P=0,m=[],v=[],y=[];for(;P<_;){for(c=t.indexOf("\n",P),s=P,u=!1,E=!1,-1===c&&(c=_),S=P+4,z=0;P<_;){if("\t"===(a=t.charAt(P)))z+=4-z%4;else{if(" "!==a)break;z++}P++}if(z>=4&&(E=!0),b&&z>=b.indent&&(E=!0),a=t.charAt(P),f=null,!E){if(!0===Mt[a])f=a,P++,z++;else{for(i="";P<_&&(a=t.charAt(P),Ee(a));)i+=a,P++;a=t.charAt(P),P++,i&&!0===r[a]&&(f=a,z+=i.length+1)}if(f)if("\t"===(a=t.charAt(P)))z+=4-z%4,P++;else if(" "===a){for(S=P+4;P<S&&" "===t.charAt(P);)P++,z++;P===S&&" "===t.charAt(P)&&(P-=3,z-=3)}else"\n"!==a&&""!==a&&(f=null)}if(f){if(!I&&l!==f)break;u=!0}else T||E||" "!==t.charAt(s)?T&&b&&(E=z>=b.indent||z>4):E=!0,u=!1,P=s;if(h=t.slice(s,c),p=s===P?h:t.slice(P,c),("*"===f||"_"===f||"-"===f)&&j.thematicBreak.call(this,e,h,!0))break;if(d=g,g=!It(p).length,E&&b)b.value=b.value.concat(y,h),v=v.concat(y,h),y=[];else if(u)0!==y.length&&(b.value.push(""),b.trail=y.concat()),m.push(b={value:[h],indent:z,trail:[]}),v=v.concat(y,h),y=[];else if(g){if(d)break;y.push(h)}else{if(d)break;if(jt(C,j,this,[e,h,!0]))break;b.value=b.value.concat(y,h),v=v.concat(y,h),y=[]}P=c+1}x=e(v.join("\n")).reset({type:"list",ordered:o,start:L,loose:null,children:[]}),w=this.enterList(),k=this.enterBlock(),A=!1,P=-1,_=m.length;for(;++P<_;)b=m[P].value.join("\n"),O=e.now(),(b=e(b)(Ut(this,b,O),x)).loose&&(A=!0),b=m[P].trail.join("\n"),P!==_-1&&(b+="\n"),e(b);return w(),k(),x.loose=A,x},Ht=/\n\n(?!\s*$)/,Rt=/^\[([ \t]|x|X)][ \t]/,Bt=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,Ft=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,Vt=/^( {1,4}|\t)?/gm,Mt={"*":!0,"+":!0,"-":!0},qt={".":!0},Dt={};function Ut(e,t,n){var r,i,o=e.offset,a=e.options.pedantic?Wt:Xt,l=null;return t=a.apply(null,arguments),e.options.gfm&&(r=t.match(Rt))&&(i=r[0].length,l="x"===r[1].toLowerCase(),o[n.line]+=i,t=t.slice(i)),{type:"listItem",loose:Ht.test(t)||"\n"===t.charAt(t.length-1),checked:l,children:e.tokenizeBlock(t,n)}}function Wt(e,t,n){var r=e.offset,i=n.line;return t=t.replace(Ft,o),i=n.line,t.replace(Vt,o);function o(e){return r[i]=(r[i]||0)+e.length,i++,""}}function Xt(e,t,n){var r,i,o,a,l,c,s,u=e.offset,f=n.line;for(a=(t=t.replace(Bt,(function(e,t,n,a,l){i=t+n+a,o=l,Number(n)<10&&i.length%2==1&&(n=" "+n);return(r=t+xt(" ",n.length)+a)+o}))).split("\n"),(l=Nt(t,Lt(r).indent).split("\n"))[0]=o,u[f]=(u[f]||0)+i.length,f++,c=0,s=a.length;++c<s;)u[f]=(u[f]||0)+a[c].length-l[c].length,f++;return l.join("\n")}Dt["."]=!0,Dt[")"]=!0;var Zt=function(e,t,n){var r,i,o,a,l,c=e.now(),s=t.length,u=-1,f="";for(;++u<s;){if(" "!==(o=t.charAt(u))||u>=3){u--;break}f+=o}r="",i="";for(;++u<s;){if("\n"===(o=t.charAt(u))){u--;break}" "===o||"\t"===o?i+=o:(r+=i+o,i="")}if(c.column+=f.length,c.offset+=f.length,f+=r+i,o=t.charAt(++u),a=t.charAt(++u),"\n"!==o||!Yt[a])return;f+=o,i=a,l=Yt[a];for(;++u<s;){if((o=t.charAt(u))!==a){if("\n"!==o)return;u--;break}i+=o}if(n)return!0;return e(f+i)({type:"heading",depth:l,children:this.tokenizeInline(r,c)})},Yt={};Yt["="]=1,Yt["-"]=2;var Gt="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\u0000-\\u0020]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",Kt="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Jt={openCloseTag:new RegExp("^(?:"+Gt+"|"+Kt+")"),tag:new RegExp("^(?:"+Gt+"|"+Kt+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|<![A-Za-z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)")},Qt=Jt.openCloseTag,en=function(e,t,n){var r,i,o,a,l,c,s,u=t.length,f=0,p=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+this.options.blocks.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Qt.source+"\\s*$"),/^$/,!1]];for(;f<u&&("\t"===(a=t.charAt(f))||" "===a);)f++;if("<"!==t.charAt(f))return;r=t.indexOf("\n",f+1),i=t.slice(f,r=-1===r?u:r),o=-1,l=p.length;for(;++o<l;)if(p[o][0].test(i)){c=p[o];break}if(!c)return;if(n)return c[2];if(f=r,!c[1].test(i))for(;f<u;){if(r=t.indexOf("\n",f+1),i=t.slice(f+1,r=-1===r?u:r),c[1].test(i)){i&&(f=r);break}f=r}return s=t.slice(0,f),e(s)({type:"html",value:s})};var tn=function(e){return String(e).replace(/\s+/g," ")};var nn=function(e){return tn(e).toLowerCase()};var rn=an;an.notInList=!0,an.notInBlock=!0;var on=/^( {4}|\t)?/gm;function an(e,t,n){var r,i,o,a,l,c,s,u,f,p,h,d,g=this.offset;if(this.options.footnotes){for(r=0,i=t.length,o="",a=e.now(),l=a.line;r<i&&(f=t.charAt(r),vt(f));)o+=f,r++;if("["===t.charAt(r)&&"^"===t.charAt(r+1)){for(r=(o+="[^").length,s="";r<i&&"]"!==(f=t.charAt(r));)"\\"===f&&(s+=f,r++,f=t.charAt(r)),s+=f,r++;if(s&&"]"===t.charAt(r)&&":"===t.charAt(r+1)){if(n)return!0;for(p=nn(s),r=(o+=s+"]:").length;r<i&&("\t"===(f=t.charAt(r))||" "===f);)o+=f,r++;for(a.column+=o.length,a.offset+=o.length,s="",c="",u="";r<i;){if("\n"===(f=t.charAt(r))){for(u=f,r++;r<i&&"\n"===(f=t.charAt(r));)u+=f,r++;for(s+=u,u="";r<i&&" "===(f=t.charAt(r));)u+=f,r++;if(0===u.length)break;s+=u}s&&(c+=s,s=""),c+=f,r++}return o+=c,c=c.replace(on,(function(e){return g[l]=(g[l]||0)+e.length,l++,""})),h=e(o),d=this.enterBlock(),c=this.tokenizeBlock(c,a),d(),h({type:"footnoteDefinition",identifier:p,children:c})}}}}var ln=cn;cn.notInList=!0,cn.notInBlock=!0;function cn(e,t,n){for(var r,i,o,a,l,c,s,u,f=this.options.commonmark,p=0,h=t.length,d="";p<h&&(" "===(a=t.charAt(p))||"\t"===a);)d+=a,p++;if("["===(a=t.charAt(p))){for(p++,d+=a,o="";p<h&&"]"!==(a=t.charAt(p));)"\\"===a&&(o+=a,p++,a=t.charAt(p)),o+=a,p++;if(o&&"]"===t.charAt(p)&&":"===t.charAt(p+1)){for(c=o,p=(d+=o+"]:").length,o="";p<h&&("\t"===(a=t.charAt(p))||" "===a||"\n"===a);)d+=a,p++;if(o="",r=d,"<"===(a=t.charAt(p))){for(p++;p<h&&sn(a=t.charAt(p));)o+=a,p++;if((a=t.charAt(p))===sn.delimiter)d+="<"+o+a,p++;else{if(f)return;p-=o.length+1,o=""}}if(!o){for(;p<h&&un(a=t.charAt(p));)o+=a,p++;d+=o}if(o){for(s=o,o="";p<h&&("\t"===(a=t.charAt(p))||" "===a||"\n"===a);)o+=a,p++;if(l=null,'"'===(a=t.charAt(p))?l='"':"'"===a?l="'":"("===a&&(l=")"),l){if(!o)return;for(p=(d+=o+a).length,o="";p<h&&(a=t.charAt(p))!==l;){if("\n"===a){if(p++,"\n"===(a=t.charAt(p))||a===l)return;o+="\n"}o+=a,p++}if((a=t.charAt(p))!==l)return;i=d,d+=o+a,p++,u=o,o=""}else o="",p=d.length;for(;p<h&&("\t"===(a=t.charAt(p))||" "===a);)d+=a,p++;return(a=t.charAt(p))&&"\n"!==a?void 0:!!n||(r=e(r).test().end,s=this.decode.raw(this.unescape(s),r,{nonTerminated:!1}),u&&(i=e(i).test().end,u=this.decode.raw(this.unescape(u),i)),e(d)({type:"definition",identifier:nn(c),title:u||null,url:s}))}}}}function sn(e){return">"!==e&&"["!==e&&"]"!==e}function un(e){return"["!==e&&"]"!==e&&!vt(e)}sn.delimiter=">";var fn=function(e,t,n){var r,i,o,a,l,c,s,u,f,p,h,d,g,m,v,y,b,w,k,A,x,O,S,E;if(!this.options.gfm)return;r=0,w=0,c=t.length+1,s=[];for(;r<c;){if(O=t.indexOf("\n",r),S=t.indexOf("|",r+1),-1===O&&(O=t.length),-1===S||S>O){if(w<2)return;break}s.push(t.slice(r,O)),w++,r=O+1}a=s.join("\n"),i=s.splice(1,1)[0]||[],r=0,c=i.length,w--,o=!1,h=[];for(;r<c;){if("|"===(f=i.charAt(r))){if(p=null,!1===o){if(!1===E)return}else h.push(o),o=!1;E=!1}else if("-"===f)p=!0,o=o||null;else if(":"===f)o="left"===o?"center":p&&null===o?"right":"left";else if(!vt(f))return;r++}!1!==o&&h.push(o);if(h.length<1)return;if(n)return!0;b=-1,A=[],x=e(a).reset({type:"table",align:h,children:A});for(;++b<w;){for(k=s[b],l={type:"tableRow",children:[]},b&&e("\n"),e(k).reset(l,x),c=k.length+1,r=0,u="",d="",g=!0,m=null,v=null;r<c;)if("\t"!==(f=k.charAt(r))&&" "!==f){if(""===f||"|"===f)if(g)e(f);else{if(f&&v){u+=f,r++;continue}!d&&!f||g||(a=d,u.length>1&&(f?(a+=u.slice(0,u.length-1),u=u.charAt(u.length-1)):(a+=u,u="")),y=e.now(),e(a)({type:"tableCell",children:this.tokenizeInline(d,y)},l)),e(u+f),u="",d=""}else if(u&&(d+=u,u=""),d+=f,"\\"===f&&r!==c-2&&(d+=k.charAt(r+1),r++),"`"===f){for(m=1;k.charAt(r+1)===f;)d+=f,r++,m++;v?m>=v&&(v=0):v=m}g=!1,r++}else d?u+=f:e(f),r++;b||e("\n"+i)}return x};var pn=function(e,t,n){var r,i,o,a,l,c=this.options,s=c.commonmark,u=c.gfm,f=this.blockTokenizers,p=this.interruptParagraph,h=t.indexOf("\n"),d=t.length;for(;h<d;){if(-1===h){h=d;break}if("\n"===t.charAt(h+1))break;if(s){for(a=0,r=h+1;r<d;){if("\t"===(o=t.charAt(r))){a=4;break}if(" "!==o)break;a++,r++}if(a>=4){h=t.indexOf("\n",h+1);continue}}if(i=t.slice(h+1),jt(p,f,this,[e,i,!0]))break;if(f.list.call(this,e,i,!0)&&(this.inList||s||u&&!Ee(It.left(i).charAt(0))))break;if(r=h,-1!==(h=t.indexOf("\n",h+1))&&""===It(t.slice(r,h))){h=r;break}}if(i=t.slice(0,h),""===It(i))return e(i),null;if(n)return!0;return l=e.now(),i=Ot(i),e(i)({type:"paragraph",children:this.tokenizeInline(i,l)})};var hn=dn;function dn(e,t,n){var r,i;if("\\"===t.charAt(0)&&(r=t.charAt(1),-1!==this.escape.indexOf(r)))return!!n||(i="\n"===r?{type:"break"}:{type:"text",value:r},e("\\"+r)(i))}dn.locator=function(e,t){return e.indexOf("\\",t)};var gn=function(e,t){return e.indexOf("<",t)};var mn=yn;yn.locator=gn,yn.notInLink=!0;var vn="mailto:".length;function yn(e,t,n){var r,i,o,a,l,c,s,u,f,p,h;if("<"===t.charAt(0)){for(this,r="",i=t.length,o=0,a="",c=!1,s="",o++,r="<";o<i&&(l=t.charAt(o),!(vt(l)||">"===l||"@"===l||":"===l&&"/"===t.charAt(o+1)));)a+=l,o++;if(a){if(s+=a,a="",s+=l=t.charAt(o),o++,"@"===l)c=!0;else{if(":"!==l||"/"!==t.charAt(o+1))return;s+="/",o++}for(;o<i&&(l=t.charAt(o),!vt(l)&&">"!==l);)a+=l,o++;if(l=t.charAt(o),a&&">"===l)return!!n||(f=s+=a,r+=s+l,(u=e.now()).column++,u.offset++,c&&("mailto:"===s.slice(0,vn).toLowerCase()?(f=f.substr(vn),u.column+=vn,u.offset+=vn):s="mailto:"+s),this.inlineTokenizers={text:(p=this.inlineTokenizers).text},h=this.enterLink(),f=this.tokenizeInline(f,u),this.inlineTokenizers=p,h(),e(r)({type:"link",title:null,url:_e(s,{nonTerminated:!1}),children:f}))}}}var bn=function(e,t){var n,r=wn.length,i=-1,o=-1;if(!this.options.gfm)return-1;for(;++i<r;)-1!==(n=e.indexOf(wn[i],t))&&(n<o||-1===o)&&(o=n);return o},wn=["https://","http://","mailto:"];var kn=On;On.locator=bn,On.notInLink=!0;var An=["http://","https://","mailto:"],xn=An.length;function On(e,t,n){var r,i,o,a,l,c,s,u,f,p,h,d;if(this.options.gfm){for(r="",a=-1,u=xn;++a<u;)if((s=t.slice(0,(c=An[a]).length)).toLowerCase()===c){r=s;break}if(r){for(a=r.length,u=t.length,f="",p=0;a<u&&(o=t.charAt(a),!vt(o)&&"<"!==o)&&("."!==o&&","!==o&&":"!==o&&";"!==o&&'"'!==o&&"'"!==o&&")"!==o&&"]"!==o||(h=t.charAt(a+1))&&!vt(h))&&("("!==o&&"["!==o||p++,")"!==o&&"]"!==o||!(--p<0));)f+=o,a++;if(f){if(i=r+=f,"mailto:"===c){if(-1===(l=f.indexOf("@"))||l===u-1)return;i=i.substr("mailto:".length)}return!!n||(d=this.enterLink(),i=this.tokenizeInline(i,e.now()),d(),e(r)({type:"link",title:null,url:_e(r,{nonTerminated:!1}),children:i}))}}}}var Sn=Jt.tag,En=jn;jn.locator=gn;var Tn=/^<a /i,In=/^<\/a>/i;function jn(e,t,n){var r,i,o=t.length;if(!("<"!==t.charAt(0)||o<3)&&(r=t.charAt(1),(Ie(r)||"?"===r||"!"===r||"/"===r)&&(i=t.match(Sn))))return!!n||(i=i[0],!this.inLink&&Tn.test(i)?this.inLink=!0:this.inLink&&In.test(i)&&(this.inLink=!1),e(i)({type:"html",value:i}))}var Cn=function(e,t){var n=e.indexOf("[",t),r=e.indexOf("![",t);if(-1===r)return n;return n<r?n:r};var Pn=Nn;Nn.locator=Cn;var _n={}.hasOwnProperty,Ln={'"':'"',"'":"'"},zn={};function Nn(e,t,n){var r,i,o,a,l,c,s,u,f,p,h,d,g,m,v,y,b,w,k,A="",x=0,O=t.charAt(0),S=this.options.pedantic,E=this.options.commonmark,T=this.options.gfm;if("!"===O&&(f=!0,A=O,O=t.charAt(++x)),"["===O&&(f||!this.inLink)){for(A+=O,v="",x++,d=t.length,m=0,(b=e.now()).column+=x,b.offset+=x;x<d;){if(c=O=t.charAt(x),"`"===O){for(i=1;"`"===t.charAt(x+1);)c+=O,x++,i++;o?i>=o&&(o=0):o=i}else if("\\"===O)x++,c+=t.charAt(x);else if(o&&!T||"["!==O){if((!o||T)&&"]"===O){if(!m){if(!S)for(;x<d&&(O=t.charAt(x+1),vt(O));)c+=O,x++;if("("!==t.charAt(x+1))return;c+="(",r=!0,x++;break}m--}}else m++;v+=c,c="",x++}if(r){for(p=v,A+=v+c,x++;x<d&&(O=t.charAt(x),vt(O));)A+=O,x++;if(O=t.charAt(x),u=E?zn:Ln,v="",a=A,"<"===O){for(x++,a+="<";x<d&&">"!==(O=t.charAt(x));){if(E&&"\n"===O)return;v+=O,x++}if(">"!==t.charAt(x))return;A+="<"+v+">",y=v,x++}else{for(O=null,c="";x<d&&(O=t.charAt(x),!c||!_n.call(u,O));){if(vt(O)){if(!S)break;c+=O}else{if("("===O)m++;else if(")"===O){if(0===m)break;m--}v+=c,c="","\\"===O&&(v+="\\",O=t.charAt(++x)),v+=O}x++}y=v,x=(A+=v).length}for(v="";x<d&&(O=t.charAt(x),vt(O));)v+=O,x++;if(O=t.charAt(x),A+=v,v&&_n.call(u,O))if(x++,v="",h=u[O],l=A+=O,E){for(;x<d&&(O=t.charAt(x))!==h;)"\\"===O&&(v+="\\",O=t.charAt(++x)),x++,v+=O;if((O=t.charAt(x))!==h)return;for(g=v,A+=v+O,x++;x<d&&(O=t.charAt(x),vt(O));)A+=O,x++}else for(c="";x<d;){if((O=t.charAt(x))===h)s&&(v+=h+c,c=""),s=!0;else if(s){if(")"===O){A+=v+h+c,g=v;break}vt(O)?c+=O:(v+=h+c+O,c="",s=!1)}else v+=O;x++}if(")"===t.charAt(x))return!!n||(A+=")",y=this.decode.raw(this.unescape(y),e(a).test().end,{nonTerminated:!1}),g&&(l=e(l).test().end,g=this.decode.raw(this.unescape(g),l)),k={type:f?"image":"link",title:g||null,url:y},f?k.alt=this.decode.raw(this.unescape(p),b)||null:(w=this.enterLink(),k.children=this.tokenizeInline(p,b),w()),e(A)(k))}}}zn['"']='"',zn["'"]="'",zn["("]=")";var $n=Hn;Hn.locator=Cn;function Hn(e,t,n){var r,i,o,a,l,c,s,u,f=t.charAt(0),p=0,h=t.length,d="",g="",m="link",v="shortcut";if("!"===f&&(m="image",g=f,f=t.charAt(++p)),"["===f){if(p++,g+=f,c="",this.options.footnotes&&"^"===t.charAt(p)){if("image"===m)return;g+="^",p++,m="footnote"}for(u=0;p<h;){if("["===(f=t.charAt(p)))s=!0,u++;else if("]"===f){if(!u)break;u--}"\\"===f&&(c+="\\",f=t.charAt(++p)),c+=f,p++}if(d=c,r=c,"]"===(f=t.charAt(p))){for(p++,d+=f,c="";p<h&&(f=t.charAt(p),vt(f));)c+=f,p++;if(f=t.charAt(p),"footnote"!==m&&"["===f){for(i="",c+=f,p++;p<h&&"["!==(f=t.charAt(p))&&"]"!==f;)"\\"===f&&(i+="\\",f=t.charAt(++p)),i+=f,p++;"]"===(f=t.charAt(p))?(v=i?"full":"collapsed",c+=i+f,p++):i="",d+=c,c=""}else{if(!r)return;i=r}if("full"===v||!s)return d=g+d,"link"===m&&this.inLink?null:!!n||("footnote"===m&&-1!==r.indexOf(" ")?e(d)({type:"footnote",children:this.tokenizeInline(r,e.now())}):((o=e.now()).column+=g.length,o.offset+=g.length,a={type:m+"Reference",identifier:nn(i="full"===v?i:r)},"link"!==m&&"image"!==m||(a.referenceType=v),"link"===m?(l=this.enterLink(),a.children=this.tokenizeInline(r,o),l()):"image"===m&&(a.alt=this.decode.raw(this.unescape(r),o)||null),e(d)(a)))}}}var Rn=Bn;Bn.locator=function(e,t){var n=e.indexOf("**",t),r=e.indexOf("__",t);if(-1===r)return n;if(-1===n)return r;return r<n?r:n};function Bn(e,t,n){var r,i,o,a,l,c,s,u=0,f=t.charAt(u);if(!("*"!==f&&"_"!==f||t.charAt(++u)!==f||(l=(o=f)+o,c=t.length,u++,a="",f="",(i=this.options.pedantic)&&vt(t.charAt(u)))))for(;u<c;){if(s=f,!((f=t.charAt(u))!==o||t.charAt(u+1)!==o||i&&vt(s))&&(f=t.charAt(u+2))!==o){if(!It(a))return;return!!n||((r=e.now()).column+=2,r.offset+=2,e(l+a+l)({type:"strong",children:this.tokenizeInline(a,r)}))}i||"\\"!==f||(a+=f,f=t.charAt(++u)),a+=f,u++}}var Fn=function(e){return Mn.test("number"==typeof e?Vn(e):e.charAt(0))},Vn=String.fromCharCode,Mn=/\w/;var qn=Dn;Dn.locator=function(e,t){var n=e.indexOf("*",t),r=e.indexOf("_",t);if(-1===r)return n;if(-1===n)return r;return r<n?r:n};function Dn(e,t,n){var r,i,o,a,l,c,s,u=0,f=t.charAt(u);if(!("*"!==f&&"_"!==f||(l=f,o=f,c=t.length,u++,a="",f="",(i=this.options.pedantic)&&vt(t.charAt(u)))))for(;u<c;){if(s=f,!((f=t.charAt(u))!==o||i&&vt(s))){if((f=t.charAt(++u))!==o){if(!It(a)||s===o)return;if(!i&&"_"===o&&Fn(f)){a+=o;continue}return!!n||((r=e.now()).column++,r.offset++,e(l+a+o)({type:"emphasis",children:this.tokenizeInline(a,r)}))}a+=o}i||"\\"!==f||(a+=f,f=t.charAt(++u)),a+=f,u++}}var Un=Wn;Wn.locator=function(e,t){return e.indexOf("~~",t)};function Wn(e,t,n){var r,i,o,a="",l="",c="",s="";if(this.options.gfm&&"~"===t.charAt(0)&&"~"===t.charAt(1)&&!vt(t.charAt(2)))for(r=1,i=t.length,(o=e.now()).column+=2,o.offset+=2;++r<i;){if(!("~"!==(a=t.charAt(r))||"~"!==l||c&&vt(c)))return!!n||e("~~"+s+"~~")({type:"delete",children:this.tokenizeInline(s,o)});s+=l,c=l,l=a}}var Xn=Zn;Zn.locator=function(e,t){return e.indexOf("`",t)};function Zn(e,t,n){for(var r,i,o,a,l,c,s,u,f=t.length,p=0,h="",d="";p<f&&"`"===t.charAt(p);)h+="`",p++;if(h){for(l=h,a=p,h="",u=t.charAt(p),o=0;p<f;){if(c=u,u=t.charAt(p+1),"`"===c?(o++,d+=c):(o=0,h+=c),o&&"`"!==u){if(o===a){l+=h+d,s=!0;break}h+=d,d=""}p++}if(!s){if(a%2!=0)return;h=""}if(n)return!0;for(r="",i="",f=h.length,p=-1;++p<f;)c=h.charAt(p),vt(c)?i+=c:(i&&(r&&(r+=i),i=""),r+=c);return e(l)({type:"inlineCode",value:r})}}var Yn=Gn;Gn.locator=function(e,t){var n=e.indexOf("\n",t);for(;n>t&&" "===e.charAt(n-1);)n--;return n};function Gn(e,t,n){for(var r,i=t.length,o=-1,a="";++o<i;){if("\n"===(r=t.charAt(o))){if(o<2)return;return!!n||e(a+=r)({type:"break"})}if(" "!==r)return;a+=r}}var Kn=function(e,t,n){var r,i,o,a,l,c,s,u,f,p;if(n)return!0;a=(r=this.inlineMethods).length,i=this.inlineTokenizers,o=-1,f=t.length;for(;++o<a;)"text"!==(u=r[o])&&i[u]&&((s=i[u].locator)||e.file.fail("Missing locator: `"+u+"`"),-1!==(c=s.call(this,t,1))&&c<f&&(f=c));l=t.slice(0,f),p=e.now(),this.decode(l,p,(function(t,n,r){e(r||t)({type:"text",value:t})}))};var Jn=Qn;function Qn(e,t){this.file=t,this.offset={},this.options=l(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=we(t).toOffset,this.unescape=xe(this,"escape"),this.decode=qe(this)}var er=Qn.prototype;function tr(e){var t,n=[];for(t in e)n.push(t);return n}er.setOptions=Qe,er.parse=gt,er.options=Je,er.exitStart=be("atStart",!0),er.enterList=be("inList",!1),er.enterLink=be("inLink",!1),er.enterBlock=be("inBlock",!1),er.interruptParagraph=[["thematicBreak"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],er.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],er.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],er.blockTokenizers={newline:wt,indentedCode:St,fencedCode:Tt,blockquote:Ct,atxHeading:Pt,thematicBreak:_t,list:$t,setextHeading:Zt,html:en,footnote:rn,definition:ln,table:fn,paragraph:pn},er.inlineTokenizers={escape:hn,autoLink:mn,url:kn,html:En,link:Pn,reference:$n,strong:Rn,emphasis:qn,deletion:Un,code:Xn,break:Yn,text:Kn},er.blockMethods=tr(er.blockTokenizers),er.inlineMethods=tr(er.inlineTokenizers),er.tokenizeBlock=De("block"),er.tokenizeInline=De("inline"),er.tokenizeFactory=De;var nr=rr;function rr(e){var t=ye(Jn);t.prototype.options=l(t.prototype.options,this.data("settings"),e),this.Parser=t}rr.Parser=Jn;var ir="function"==typeof Symbol&&Symbol.for,or=ir?Symbol.for("react.element"):60103,ar=ir?Symbol.for("react.portal"):60106,lr=ir?Symbol.for("react.fragment"):60107,cr=ir?Symbol.for("react.strict_mode"):60108,sr=ir?Symbol.for("react.profiler"):60114,ur=ir?Symbol.for("react.provider"):60109,fr=ir?Symbol.for("react.context"):60110,pr=ir?Symbol.for("react.async_mode"):60111,hr=ir?Symbol.for("react.concurrent_mode"):60111,dr=ir?Symbol.for("react.forward_ref"):60112,gr=ir?Symbol.for("react.suspense"):60113,mr=ir?Symbol.for("react.suspense_list"):60120,vr=ir?Symbol.for("react.memo"):60115,yr=ir?Symbol.for("react.lazy"):60116,br=ir?Symbol.for("react.block"):60121,wr=ir?Symbol.for("react.fundamental"):60117,kr=ir?Symbol.for("react.responder"):60118,Ar=ir?Symbol.for("react.scope"):60119;function xr(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case or:switch(e=e.type){case pr:case hr:case lr:case sr:case cr:case gr:return e;default:switch(e=e&&e.$$typeof){case fr:case dr:case yr:case vr:case ur:return e;default:return t}}case ar:return t}}}function Or(e){return xr(e)===hr}var Sr={AsyncMode:pr,ConcurrentMode:hr,ContextConsumer:fr,ContextProvider:ur,Element:or,ForwardRef:dr,Fragment:lr,Lazy:yr,Memo:vr,Portal:ar,Profiler:sr,StrictMode:cr,Suspense:gr,isAsyncMode:function(e){return Or(e)||xr(e)===pr},isConcurrentMode:Or,isContextConsumer:function(e){return xr(e)===fr},isContextProvider:function(e){return xr(e)===ur},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===or},isForwardRef:function(e){return xr(e)===dr},isFragment:function(e){return xr(e)===lr},isLazy:function(e){return xr(e)===yr},isMemo:function(e){return xr(e)===vr},isPortal:function(e){return xr(e)===ar},isProfiler:function(e){return xr(e)===sr},isStrictMode:function(e){return xr(e)===cr},isSuspense:function(e){return xr(e)===gr},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===lr||e===hr||e===sr||e===cr||e===gr||e===mr||"object"==typeof e&&null!==e&&(e.$$typeof===yr||e.$$typeof===vr||e.$$typeof===ur||e.$$typeof===fr||e.$$typeof===dr||e.$$typeof===wr||e.$$typeof===kr||e.$$typeof===Ar||e.$$typeof===br)},typeOf:xr},Er=me((function(e,t){"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var h=e.type;switch(h){case s:case u:case i:case a:case o:case p:return h;default:var m=h&&h.$$typeof;switch(m){case c:case f:case g:case d:case l:return m;default:return t}}case r:return t}}}var k=u,A=c,x=l,O=n,S=f,E=i,T=g,I=d,j=r,C=a,P=o,_=p,L=!1;function z(e){return w(e)===u}t.AsyncMode=s,t.ConcurrentMode=k,t.ContextConsumer=A,t.ContextProvider=x,t.Element=O,t.ForwardRef=S,t.Fragment=E,t.Lazy=T,t.Memo=I,t.Portal=j,t.Profiler=C,t.StrictMode=P,t.Suspense=_,t.isAsyncMode=function(e){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(e)||w(e)===s},t.isConcurrentMode=z,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===d},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===o},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===u||e===a||e===o||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===d||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===v||e.$$typeof===y||e.$$typeof===b||e.$$typeof===m)},t.typeOf=w}()})),Tr=me((function(e){e.exports="production"===process.env.NODE_ENV?Sr:Er})),Ir=Object.getOwnPropertySymbols,jr=Object.prototype.hasOwnProperty,Cr=Object.prototype.propertyIsEnumerable;function Pr(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var _r=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,i=Pr(e),o=1;o<arguments.length;o++){for(var a in n=Object(arguments[o]))jr.call(n,a)&&(i[a]=n[a]);if(Ir){r=Ir(n);for(var l=0;l<r.length;l++)Cr.call(n,r[l])&&(i[r[l]]=n[r[l]])}}return i},Lr="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",zr=function(){};if("production"!==process.env.NODE_ENV){var Nr=Lr,$r={},Hr=Function.call.bind(Object.prototype.hasOwnProperty);zr=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function Rr(e,t,n,r,i){if("production"!==process.env.NODE_ENV)for(var o in e)if(Hr(e,o)){var a;try{if("function"!=typeof e[o]){var l=Error((r||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.");throw l.name="Invariant Violation",l}a=e[o](t,o,r,n,null,Nr)}catch(e){a=e}if(!a||a instanceof Error||zr((r||"React class")+": type specification of "+n+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in $r)){$r[a.message]=!0;var c=i?i():"";zr("Failed "+n+" type: "+a.message+(null!=c?c:""))}}}Rr.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&($r={})};var Br=Rr,Fr=Function.call.bind(Object.prototype.hasOwnProperty),Vr=function(){};function Mr(){return null}"production"!==process.env.NODE_ENV&&(Vr=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}});var qr=function(e,t){var n="function"==typeof Symbol&&Symbol.iterator;var r={array:l("array"),bool:l("boolean"),func:l("function"),number:l("number"),object:l("object"),string:l("string"),symbol:l("symbol"),any:a(Mr),arrayOf:function(e){return a((function(t,n,r,i,a){if("function"!=typeof e)return new o("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var l=t[n];if(!Array.isArray(l))return new o("Invalid "+i+" `"+a+"` of type `"+s(l)+"` supplied to `"+r+"`, expected an array.");for(var c=0;c<l.length;c++){var u=e(l,c,r,i,a+"["+c+"]",Lr);if(u instanceof Error)return u}return null}))},element:a((function(t,n,r,i,a){var l=t[n];return e(l)?null:new o("Invalid "+i+" `"+a+"` of type `"+s(l)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:a((function(e,t,n,r,i){var a=e[t];return Tr.isValidElementType(a)?null:new o("Invalid "+r+" `"+i+"` of type `"+s(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return a((function(t,n,r,i,a){if(!(t[n]instanceof e)){var l=e.name||"<<anonymous>>";return new o("Invalid "+i+" `"+a+"` of type `"+function(e){if(!e.constructor||!e.constructor.name)return"<<anonymous>>";return e.constructor.name}(t[n])+"` supplied to `"+r+"`, expected instance of `"+l+"`.")}return null}))},node:a((function(e,t,n,r,i){return c(e[t])?null:new o("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return a((function(t,n,r,i,a){if("function"!=typeof e)return new o("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var l=t[n],c=s(l);if("object"!==c)return new o("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var u in l)if(Fr(l,u)){var f=e(l,u,r,i,a+"."+u,Lr);if(f instanceof Error)return f}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&Vr(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),Mr;function t(t,n,r,a,l){for(var c=t[n],s=0;s<e.length;s++)if(i(c,e[s]))return null;var f=JSON.stringify(e,(function(e,t){return"symbol"===u(t)?String(t):t}));return new o("Invalid "+a+" `"+l+"` of value `"+String(c)+"` supplied to `"+r+"`, expected one of "+f+".")}return a(t)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&Vr("Invalid argument supplied to oneOfType, expected an instance of array."),Mr;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return Vr("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+f(n)+" at index "+t+"."),Mr}return a((function(t,n,r,i,a){for(var l=0;l<e.length;l++){if(null==(0,e[l])(t,n,r,i,a,Lr))return null}return new o("Invalid "+i+" `"+a+"` supplied to `"+r+"`.")}))},shape:function(e){return a((function(t,n,r,i,a){var l=t[n],c=s(l);if("object"!==c)return new o("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var u in e){var f=e[u];if(f){var p=f(l,u,r,i,a+"."+u,Lr);if(p)return p}}return null}))},exact:function(e){return a((function(t,n,r,i,a){var l=t[n],c=s(l);if("object"!==c)return new o("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var u=_r({},t[n],e);for(var f in u){var p=e[f];if(!p)return new o("Invalid "+i+" `"+a+"` key `"+f+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null,"  ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null,"  "));var h=p(l,f,r,i,a+"."+f,Lr);if(h)return h}return null}))}};function i(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function o(e){this.message=e,this.stack=""}function a(e){if("production"!==process.env.NODE_ENV)var n={},r=0;function i(i,a,l,c,s,u,f){if(c=c||"<<anonymous>>",u=u||l,f!==Lr){if(t){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var h=c+":"+l;!n[h]&&r<3&&(Vr("You are manually calling a React.PropTypes validation function for the `"+u+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[h]=!0,r++)}}return null==a[l]?i?new o(null===a[l]?"The "+s+" `"+u+"` is marked as required in `"+c+"`, but its value is `null`.":"The "+s+" `"+u+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,l,c,s,u)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function l(e){return a((function(t,n,r,i,a,l){var c=t[n];return s(c)!==e?new o("Invalid "+i+" `"+a+"` of type `"+u(c)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function c(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(c);if(null===t||e(t))return!0;var r=function(e){var t=e&&(n&&e[n]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!r)return!1;var i,o=r.call(t);if(r!==t.entries){for(;!(i=o.next()).done;)if(!c(i.value))return!1}else for(;!(i=o.next()).done;){var a=i.value;if(a&&!c(a[1]))return!1}return!0;default:return!1}}function s(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function u(e){if(null==e)return""+e;var t=s(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function f(e){var t=u(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return o.prototype=Error.prototype,r.checkPropTypes=Br,r.resetWarningCache=Br.resetWarningCache,r.PropTypes=r,r};function Dr(){}function Ur(){}Ur.resetWarningCache=Dr;var Wr=me((function(e){if("production"!==process.env.NODE_ENV){e.exports=qr(Tr.isElement,!0)}else e.exports=function(){function e(e,t,n,r,i,o){if(o!==Lr){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ur,resetWarningCache:Dr};return n.PropTypes=n,n}()})),Xr=function(e,t,n){var r=[];"function"==typeof t&&(n=t,t=null);function i(e){var o;return t&&e.type!==t||(o=n(e,r.concat())),e.children&&!1!==o?function(e,t){var n,o=e.length,a=-1;r.push(t);for(;++a<o;)if((n=e[a])&&!1===i(n))return!1;return r.pop(),!0}(e.children,e):o}i(e)};var Zr=function(){return function(e){return Xr(e,"list",(function(e,t){var n,r,i=0;for(n=0,r=t.length;n<r;n++)"list"===t[n].type&&(i+=1);for(n=0,r=e.children.length;n<r;n++){var o=e.children[n];o.index=n,o.ordered=e.ordered}e.depth=i})),e}},Yr=/^<(area|base|br|col|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)\s*\/?>$/i,Gr=/^<(\/?)([a-z]+)\s*>$/,Kr=function(e){var t,n;return ct(e,"html",(function(e,r,i){n!==i&&(t=[],n=i);var o=function(e){var t=e.value.match(Yr);return!!t&&t[1]}(e);if(o)return i.children.splice(r,1,{type:"virtualHtml",tag:o,position:e.position}),!0;var a=function(e,t){var n=e.value.match(Gr);return!!n&&{tag:n[2],opening:!n[1],node:e}}(e);if(!a)return!0;var l=function(e,t){var n=e.length;for(;n--;)if(e[n].tag===t)return e.splice(n,1)[0];return!1}(t,a.tag);return l?i.children.splice(r,0,function(e,t,n){var r=n.children.indexOf(e.node),i=n.children.indexOf(t.node),o=n.children.splice(r,i-r+1).slice(1,-1);return{type:"virtualHtml",children:o,tag:e.tag,position:{start:e.node.position.start,end:t.node.position.end,indent:[]}}}(a,l,i)):a.opening||t.push(a),!0}),!0),e};function Jr(e,t,n,r){if("remove"===r)n.children.splice(t,1);else if("unwrap"===r){var i=[t,1];e.children&&(i=i.concat(e.children)),Array.prototype.splice.apply(n.children,i)}}var Qr=function(e,t){return function(t){return e.forEach((function(e){return ct(t,e,n,!0)})),t};function n(e,n,r){r&&Jr(e,n,r,t)}},ei=function(e,t){return function(e){return ct(e,n,!0),e};function n(n,r,i){i&&!e(n,r,i)&&Jr(n,r,i,t)}},ti={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function ni(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=t.renderers[e.type];void 0===e.position&&(e.position=n.node&&n.node.position||ti);var a=e.position.start,l=[e.type,a.line,a.column,r].join("-");if(!Tr.isValidElementType(o))throw new Error("Renderer for type `".concat(e.type,"` not defined or is not renderable"));var c=ri(e,l,t,o,n,r);return i.createElement(o,c,c.children||s()||void 0);function s(){return e.children&&e.children.map((function(n,r){return ni(n,t,{node:e,props:c},r)}))}}function ri(e,t,n,r,o,a){var c,s={key:t},u="string"==typeof r;n.sourcePos&&e.position&&(s["data-sourcepos"]=[(c=e.position).start.line,":",c.start.column,"-",c.end.line,":",c.end.column].map(String).join("")),n.rawSourcePos&&!u&&(s.sourcePosition=e.position),n.includeNodeIndex&&o.node&&o.node.children&&!u&&(s.index=o.node.children.indexOf(e),s.parentChildCount=o.node.children.length);var f=null!=e.identifier?n.definitions[e.identifier]||{}:null;switch(e.type){case"root":ii(s,{className:n.className});break;case"text":s.nodeKey=t,s.children=e.value;break;case"heading":s.level=e.depth;break;case"list":s.start=e.start,s.ordered=e.ordered,s.tight=!e.loose,s.depth=e.depth;break;case"listItem":s.checked=e.checked,s.tight=!e.loose,s.ordered=e.ordered,s.index=e.index,s.children=function(e,t){if(e.loose)return e.children;if(t.node&&e.index>0&&t.node.children[e.index-1].loose)return e.children;return function(e){return e.children.reduce((function(e,t){return e.concat("paragraph"===t.type?t.children||[]:[t])}),[])}(e)}(e,o).map((function(t,r){return ni(t,n,{node:e,props:s},r)}));break;case"definition":ii(s,{identifier:e.identifier,title:e.title,url:e.url});break;case"code":ii(s,{language:e.lang&&e.lang.split(/\s/,1)[0]});break;case"inlineCode":s.children=e.value,s.inline=!0;break;case"link":ii(s,{title:e.title||void 0,target:"function"==typeof n.linkTarget?n.linkTarget(e.url,e.children,e.title):n.linkTarget,href:n.transformLinkUri?n.transformLinkUri(e.url,e.children,e.title):e.url});break;case"image":ii(s,{alt:e.alt||void 0,title:e.title||void 0,src:n.transformImageUri?n.transformImageUri(e.url,e.children,e.title,e.alt):e.url});break;case"linkReference":ii(s,l(f,{href:n.transformLinkUri?n.transformLinkUri(f.href):f.href}));break;case"imageReference":ii(s,{src:n.transformImageUri&&f.href?n.transformImageUri(f.href,e.children,f.title,e.alt):f.href,title:f.title||void 0,alt:e.alt||void 0});break;case"table":case"tableHead":case"tableBody":s.columnAlignment=e.align;break;case"tableRow":s.isHeader="tableHead"===o.node.type,s.columnAlignment=o.props.columnAlignment;break;case"tableCell":ii(s,{isHeader:o.props.isHeader,align:o.props.columnAlignment[a]});break;case"virtualHtml":s.tag=e.tag;break;case"html":s.isBlock=e.position.start.line!==e.position.end.line,s.escapeHtml=n.escapeHtml,s.skipHtml=n.skipHtml;break;case"parsedHtml":var p;e.children&&(p=e.children.map((function(t,r){return ni(t,n,{node:e,props:s},r)}))),s.escapeHtml=n.escapeHtml,s.skipHtml=n.skipHtml,s.element=function(e,t){var n=e.element;if(Array.isArray(n)){return i.createElement(i.Fragment||"div",null,n)}if(n.props.children||t){var r=i.Children.toArray(n.props.children).concat(t);return i.cloneElement(n,null,r)}return i.cloneElement(n,null)}(e,p);break;default:ii(s,l(e,{type:void 0,position:void 0,children:void 0}))}return!u&&e.value&&(s.value=e.value),s}function ii(e,t){for(var n in t)void 0!==t[n]&&(e[n]=t[n])}var oi=ni,ai=function(e){return ct(e,"table",li),e};function li(e){var t=e.children;e.children=[{type:"tableHead",align:e.align,children:[t[0]],position:t[0].position}],t.length>1&&e.children.push({type:"tableBody",align:e.align,children:t.slice(1),position:{start:t[1].position.start,end:t[t.length-1].position.end}})}var ci=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(t.children||[]).reduce((function(t,n){return"definition"===n.type&&(t[n.identifier]={href:n.url,title:n.title}),e(n,t)}),n)},si=["http","https","mailto","tel"],ui=function(e){var t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;var r=t.indexOf(":");if(-1===r)return t;for(var i=si.length,o=-1;++o<i;){var a=si[o];if(r===a.length&&t.slice(0,a.length).toLowerCase()===a)return t}return-1!==(o=t.indexOf("?"))&&r>o||-1!==(o=t.indexOf("#"))&&r>o?t:"javascript:void(0)"},fi=parseInt((i.version||"16").slice(0,2),10)>=16,pi=i.createElement,hi={break:"br",paragraph:"p",emphasis:"em",strong:"strong",thematicBreak:"hr",blockquote:"blockquote",delete:"del",link:"a",image:"img",linkReference:"a",imageReference:"img",table:di.bind(null,"table"),tableHead:di.bind(null,"thead"),tableBody:di.bind(null,"tbody"),tableRow:di.bind(null,"tr"),tableCell:function(e){var t=e.align?{textAlign:e.align}:void 0,n=gi(e);return pi(e.isHeader?"th":"td",t?l({style:t},n):n,e.children)},root:function(e){var t=!e.className;return pi(t&&i.Fragment||"div",t?null:e,e.children)},text:function(e){return fi?e.children:pi("span",null,e.children)},list:function(e){var t=gi(e);null!==e.start&&1!==e.start&&void 0!==e.start&&(t.start=e.start.toString());return pi(e.ordered?"ol":"ul",t,e.children)},listItem:function(e){var t=null;if(null!=e.checked){t=pi("input",{type:"checkbox",checked:e.checked,readOnly:!0})}return pi("li",gi(e),t,e.children)},definition:function(){return null},heading:function(e){return pi("h".concat(e.level),gi(e),e.children)},inlineCode:function(e){return pi("code",gi(e),e.children)},code:function(e){var t=e.language&&"language-".concat(e.language),n=pi("code",t?{className:t}:null,e.value);return pi("pre",gi(e),n)},html:function(e){if(e.skipHtml)return null;var t=e.isBlock?"div":"span";if(e.escapeHtml){return pi(i.Fragment||t,null,e.value)}return pi(t,{dangerouslySetInnerHTML:{__html:e.value}})},virtualHtml:function(e){return pi(e.tag,gi(e),e.children)},parsedHtml:function(e){return e["data-sourcepos"]?i.cloneElement(e.element,{"data-sourcepos":e["data-sourcepos"]}):e.element}};function di(e,t){return pi(e,gi(t),t.children)}function gi(e){return e["data-sourcepos"]?{"data-sourcepos":e["data-sourcepos"]}:{}}var mi="undefined"==typeof Symbol?"__RMD_HTML_PARSER__":Symbol("__RMD_HTML_PARSER__");function vi(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var yi=Object.keys(hi),bi=function(e){var t=e.source||e.children||"",n=e.parserOptions;if(e.allowedTypes&&e.disallowedTypes)throw new Error("Only one of `allowedTypes` and `disallowedTypes` should be defined");var r=l(hi,e.renderers),i=[[nr,n]].concat(e.plugins||[]).reduce(wi,ae()),o=i.parse(t),a=l(e,{renderers:r,definitions:ci(o)}),c=function(e){var t=[ai,Zr()],n=e.disallowedTypes;e.allowedTypes&&(n=yi.filter((function(t){return"root"!==t&&-1===e.allowedTypes.indexOf(t)})));var r=e.unwrapDisallowed?"unwrap":"remove";n&&n.length>0&&t.push(Qr(n,r));e.allowNode&&t.push(ei(e.allowNode,r));var i=!e.escapeHtml&&!e.skipHtml,o=(e.astPlugins||[]).some((function(e){return(Array.isArray(e)?e[0]:e).identity===mi}));i&&!o&&t.push(Kr);return e.astPlugins?t.concat(e.astPlugins):t}(e),s=i.runSync(o),u=c.reduce((function(e,t){return t(e,a)}),s);return oi(u,a)};function wi(e,t){return Array.isArray(t)?e.use.apply(e,vi(t)):e.use(t)}bi.defaultProps={renderers:{},escapeHtml:!0,skipHtml:!1,sourcePos:!1,rawSourcePos:!1,transformLinkUri:ui,astPlugins:[],plugins:[],parserOptions:{}},bi.propTypes={className:Wr.string,source:Wr.string,children:Wr.string,sourcePos:Wr.bool,rawSourcePos:Wr.bool,escapeHtml:Wr.bool,skipHtml:Wr.bool,allowNode:Wr.func,allowedTypes:Wr.arrayOf(Wr.oneOf(yi)),disallowedTypes:Wr.arrayOf(Wr.oneOf(yi)),transformLinkUri:Wr.oneOfType([Wr.func,Wr.bool]),linkTarget:Wr.oneOfType([Wr.func,Wr.string]),transformImageUri:Wr.func,astPlugins:Wr.arrayOf(Wr.func),unwrapDisallowed:Wr.bool,renderers:Wr.object,plugins:Wr.array,parserOptions:Wr.object},bi.types=yi,bi.renderers=hi,bi.uriTransformer=ui;var ki=bi;function Ai(){var e={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return e}var xi=/javascript\s*\:/gim;var Oi={whiteList:Ai(),getDefaultWhiteList:Ai,onAttr:function(e,t,n){},onIgnoreAttr:function(e,t,n){},safeAttrValue:function(e,t){return xi.test(t)?"":t}},Si=function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},Ei=function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")};var Ti=function(e,t){";"!==(e=Ei(e))[e.length-1]&&(e+=";");var n=e.length,r=!1,i=0,o=0,a="";function l(){if(!r){var n=Si(e.slice(i,o)),l=n.indexOf(":");if(-1!==l){var c=Si(n.slice(0,l)),s=Si(n.slice(l+1));if(c){var u=t(i,a.length,c,s,n);u&&(a+=u+"; ")}}}i=o+1}for(;o<n;o++){var c=e[o];if("/"===c&&"*"===e[o+1]){var s=e.indexOf("*/",o+2);if(-1===s)break;i=(o=s+1)+1,r=!1}else"("===c?r=!0:")"===c?r=!1:";"===c?r||l():"\n"===c&&l()}return Si(a)};function Ii(e){return null==e}function ji(e){(e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{})).whiteList=e.whiteList||Oi.whiteList,e.onAttr=e.onAttr||Oi.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||Oi.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||Oi.safeAttrValue,this.options=e}ji.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onAttr,i=t.onIgnoreAttr,o=t.safeAttrValue;return Ti(e,(function(e,t,a,l,c){var s=n[a],u=!1;if(!0===s?u=s:"function"==typeof s?u=s(l):s instanceof RegExp&&(u=s.test(l)),!0!==u&&(u=!1),l=o(a,l)){var f,p={position:t,sourcePosition:e,source:c,isWhite:u};return u?Ii(f=r(a,l,p))?a+":"+l:f:Ii(f=i(a,l,p))?void 0:f}}))};var Ci=ji,Pi=me((function(e,t){for(var n in(t=e.exports=function(e,t){return new Ci(t).process(e)}).FilterCSS=Ci,Oi)t[n]=Oi[n];"undefined"!=typeof window&&(window.filterCSS=e.exports)})),_i=function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},Li=function(e,t,n){var r,i;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)},zi=function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},Ni=function(e){var t=/\s|\n|\t/.exec(e);return t?t.index:-1},$i=Pi.getDefaultWhiteList;function Hi(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","loop","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],sup:[],strong:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","loop","preload","src","height","width"]}}var Ri=new(0,Pi.FilterCSS);function Bi(e){return e.replace(Fi,"&lt;").replace(Vi,"&gt;")}var Fi=/</g,Vi=/>/g,Mi=/"/g,qi=/&quot;/g,Di=/&#([a-zA-Z0-9]*);?/gim,Ui=/&colon;?/gim,Wi=/&newline;?/gim,Xi=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a)\:/gi,Zi=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Yi=/u\s*r\s*l\s*\(.*/gi;function Gi(e){return e.replace(Mi,"&quot;")}function Ki(e){return e.replace(qi,'"')}function Ji(e){return e.replace(Di,(function(e,t){return String.fromCharCode("x"===t[0]||"X"===t[0]?parseInt(t.substr(1),16):parseInt(t,10))}))}function Qi(e){return e.replace(Ui,":").replace(Wi," ")}function eo(e){for(var t="",n=0,r=e.length;n<r;n++)t+=e.charCodeAt(n)<32?" ":e.charAt(n);return zi(t)}function to(e){return e=eo(e=Qi(e=Ji(e=Ki(e))))}function no(e){return e=Bi(e=Gi(e))}var ro=/<!--[\s\S]*?-->/g;var io={whiteList:{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","loop","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],sup:[],strong:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","loop","preload","src","height","width"]},getDefaultWhiteList:Hi,onTag:function(e,t,n){},onIgnoreTag:function(e,t,n){},onTagAttr:function(e,t,n){},onIgnoreTagAttr:function(e,t,n){},safeAttrValue:function(e,t,n,r){if(n=to(n),"href"===t||"src"===t){if("#"===(n=zi(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===t){if(Xi.lastIndex=0,Xi.test(n))return""}else if("style"===t){if(Zi.lastIndex=0,Zi.test(n))return"";if(Yi.lastIndex=0,Yi.test(n)&&(Xi.lastIndex=0,Xi.test(n)))return"";!1!==r&&(n=(r=r||Ri).process(n))}return n=no(n)},escapeHtml:Bi,escapeQuote:Gi,unescapeQuote:Ki,escapeHtmlEntities:Ji,escapeDangerHtml5Entities:Qi,clearNonPrintableCharacter:eo,friendlyAttrValue:to,escapeAttrValue:no,onIgnoreTagStripAll:function(){return""},StripTagBody:function(e,t){"function"!=typeof t&&(t=function(){});var n=!Array.isArray(e),r=[],i=!1;return{onIgnoreTag:function(o,a,l){if(function(t){return!!n||-1!==_i(e,t)}(o)){if(l.isClosing){var c="[/removed]";return r.push([!1!==i?i:l.position,l.position+c.length]),i=!1,c}return i||(i=l.position),"[removed]"}return t(o,a,l)},remove:function(e){var t="",n=0;return Li(r,(function(r){t+=e.slice(n,r[0]),n=r[1]})),t+=e.slice(n)}}},stripCommentTag:function(e){return e.replace(ro,"")},stripBlankChar:function(e){var t=e.split("");return(t=t.filter((function(e){var t=e.charCodeAt(0);return 127!==t&&(!(t<=31)||(10===t||13===t))}))).join("")},cssFilter:Ri,getDefaultCSSWhiteList:$i};function oo(e){var t=Ni(e);if(-1===t)var n=e.slice(1,-1);else n=e.slice(1,t+1);return"/"===(n=zi(n).toLowerCase()).slice(0,1)&&(n=n.slice(1)),"/"===n.slice(-1)&&(n=n.slice(0,-1)),n}function ao(e){return"</"===e.slice(0,2)}var lo=/[^a-zA-Z0-9_:\.\-]/gim;function co(e,t){for(;t<e.length;t++){var n=e[t];if(" "!==n)return"="===n?t:-1}}function so(e,t){for(;t>0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}}function uo(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}var fo={parseTag:function(e,t,n){var r="",i=0,o=!1,a=!1,l=0,c=e.length,s="",u="";for(l=0;l<c;l++){var f=e.charAt(l);if(!1===o){if("<"===f){o=l;continue}}else if(!1===a){if("<"===f){r+=n(e.slice(i,l)),o=l,i=l;continue}if(">"===f){r+=n(e.slice(i,o)),s=oo(u=e.slice(o,l+1)),r+=t(o,r.length,s,u,ao(u)),i=l+1,o=!1;continue}if(('"'===f||"'"===f)&&"="===e.charAt(l-1)){a=f;continue}}else if(f===a){a=!1;continue}}return i<e.length&&(r+=n(e.substr(i))),r},parseAttr:function(e,t){var n=0,r=[],i=!1,o=e.length;function a(e,n){if(!((e=(e=zi(e)).replace(lo,"").toLowerCase()).length<1)){var i=t(e,n||"");i&&r.push(i)}}for(var l=0;l<o;l++){var c,s=e.charAt(l);if(!1!==i||"="!==s)if(!1===i||l!==n||'"'!==s&&"'"!==s||"="!==e.charAt(l-1))if(/\s|\n|\t/.test(s)){if(e=e.replace(/\s|\n|\t/g," "),!1===i){if(-1===(c=co(e,l))){a(zi(e.slice(n,l))),i=!1,n=l+1;continue}l=c-1;continue}if(-1===(c=so(e,l-1))){a(i,uo(zi(e.slice(n,l)))),i=!1,n=l+1;continue}}else;else{if(-1===(c=e.indexOf(s,l+1)))break;a(i,zi(e.slice(n+1,c))),i=!1,n=(l=c)+1}else i=e.slice(n,l),n=l+1}return n<e.length&&(!1===i?a(e.slice(n)):a(i,uo(zi(e.slice(n))))),zi(r.join(" "))}},po=Pi.FilterCSS,ho=fo.parseTag,go=fo.parseAttr;function mo(e){return null==e}function vo(e){(e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{})).stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=io.onIgnoreTagStripAll),e.whiteList=e.whiteList||io.whiteList,e.onTag=e.onTag||io.onTag,e.onTagAttr=e.onTagAttr||io.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||io.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||io.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||io.safeAttrValue,e.escapeHtml=e.escapeHtml||io.escapeHtml,this.options=e,!1===e.css?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new po(e.css))}vo.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onTag,i=t.onIgnoreTag,o=t.onTagAttr,a=t.onIgnoreTagAttr,l=t.safeAttrValue,c=t.escapeHtml,s=this.cssFilter;t.stripBlankChar&&(e=io.stripBlankChar(e)),t.allowCommentTag||(e=io.stripCommentTag(e));var u=!1;if(t.stripIgnoreTagBody){u=io.StripTagBody(t.stripIgnoreTagBody,i);i=u.onIgnoreTag}var f=ho(e,(function(e,t,u,f,p){var h,d={sourcePosition:e,position:t,isClosing:p,isWhite:n.hasOwnProperty(u)};if(!mo(h=r(u,f,d)))return h;if(d.isWhite){if(d.isClosing)return"</"+u+">";var g=function(e){var t=Ni(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=zi(e.slice(t+1,-1)))[e.length-1];return n&&(e=zi(e.slice(0,-1))),{html:e,closing:n}}(f),m=n[u],v=go(g.html,(function(e,t){var n,r=-1!==_i(m,e);return mo(n=o(u,e,t,r))?r?(t=l(u,e,t,s))?e+'="'+t+'"':e:mo(n=a(u,e,t,r))?void 0:n:n}));f="<"+u;return v&&(f+=" "+v),g.closing&&(f+=" /"),f+=">"}return mo(h=i(u,f,d))?c(f):h}),c);return u&&(f=u.remove(f)),f};var yo=vo,bo=me((function(e,t){function n(e,t){return new yo(t).process(e)}for(var r in(t=e.exports=n).filterXSS=n,t.FilterXSS=yo,io)t[r]=io[r];for(var r in fo)t[r]=fo[r];"undefined"!=typeof window&&(window.filterXSS=e.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)})),wo=bo.getDefaultWhiteList,ko=bo.filterXSS,Ao=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(r,e),r.filterXss=function(e){var n=e.value,r=e.whiteList,i=void 0===r?{source:["src","type"],img:["src","alt","title","width","height","style"],video:["autoplay","controls","loop","preload","src","height","width","style"]}:r,o={whiteList:t.__assign(t.__assign({},wo()),i),stripIgnoreTagBody:["script"]};return ko(n,o)},r.prototype.render=function(){var e=this.props,t=e.value,i=e.allowFilteredHtml,o=e.whiteList;if("string"!=typeof t)return null;if(void 0!==i&&i&&0===t.indexOf("<")){var a=r.filterXss({value:t,whiteList:o});return n.createElement("div",{dangerouslySetInnerHTML:{__html:a}})}return n.createElement(ki,{source:t,escapeHtml:!1})},r}(n.PureComponent),xo=n.memo((function(e){var t=e.value;return n.createElement(o,null,"string"!=typeof t?"-":n.createElement(Ao,{value:t,allowFilteredHtml:e.allowFilteredHtml}))}),(function(e,t){return!t.skipRender&&(t.value!==e.value||t.allowFilteredHtml!==e.allowFilteredHtml)})),Oo=n.memo((function(e){var i=e.id,o=void 0===i?"unknown_markdown_id":i,l=e.value,c=e.toggle,s=e.allowFilteredHtml,u=void 0!==s&&s,f=e.rows,p=e.cols,h=e.onChange,d=e.onFocus,g=e.onBlur,m=e.valid,v=e.invalid,y=e.bsSize,b=e.name,w=e.autoFocus,k=e.disabled,A=e.maxLength,x=e.readOnly,O=e.required,S=e.wrap,E=e.whiteList,T=e.filteredValue,I=n.useState(!0),j=I[0],C=I[1],P=n.useCallback((function(){C(!c||!j)}),[j]),_=n.useCallback((function(){C(!!c&&!j)}),[j]);return n.useEffect((function(){T&&(T.current="string"==typeof l?Ao.filterXss({value:l,whiteList:E}):void 0)}),[l,E]),n.createElement(n.Fragment,null,n.createElement(r.Nav,{tabs:!0,key:"Nav"},n.createElement(r.NavItem,null,n.createElement(r.NavLink,{active:j,onClick:P},"Edit")),n.createElement(r.NavItem,null,n.createElement(r.NavLink,{active:!j,onClick:_},"Preview"))),n.createElement(r.TabContent,{key:"Content",id:"tabpane_"+o,activeTab:j?"Edit":"Preview"},n.createElement(r.TabPane,{tabId:"Edit"},n.createElement(a,t.__assign({allowFilteredHtml:u,value:l,rows:f,cols:p},{onChange:h,onFocus:d,onBlur:g},{valid:m,name:b,invalid:v,bsSize:y},{autoFocus:w,disabled:k,maxLength:A,readOnly:x,required:O,wrap:S}))),n.createElement(r.TabPane,{tabId:"Preview"},n.createElement(xo,{allowFilteredHtml:u,value:l,skipRender:!j}))))}));e.FormattedText=Ao,e.Textarea=Oo,Object.defineProperty(e,"__esModule",{value:!0})}));
  